/* ===== MASTER V10 BUILD 3.0: MASTER 3 + HIDDEN VISIBILITY FIX =====
   Author CSS display:flex/grid overrides the browser's default [hidden] rule.
   Keep boot/shell mutually exclusive explicitly. */
.master-boot[hidden],
.master-shell[hidden]{display:none !important;}

:root{--master-sidebar:264px;--master-sidebar-collapsed:82px;--master-topbar:78px;--master-bg:#f5f8fa;--master-card:#fff;--master-border:#dce6eb;--master-muted:#6b7d88;--master-ink:#173244;--master-accent:#0f6f91}
*{box-sizing:border-box}.master-v10-body{margin:0;background:var(--master-bg);color:var(--master-ink);font-family:var(--brand-font-primary)}
.master-boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:linear-gradient(180deg,var(--brand-background),#fff);text-align:center;padding:24px}.master-boot img{width:min(250px,70vw);margin-bottom:12px}.master-boot span{color:var(--master-muted)}.master-boot-spinner{width:34px;height:34px;border:3px solid #d7e5ea;border-top-color:var(--brand-secondary);border-radius:50%;animation:masterSpin .9s linear infinite}@keyframes masterSpin{to{transform:rotate(360deg)}}
.master-shell{min-height:100vh;display:grid;grid-template-columns:var(--master-sidebar) minmax(0,1fr);transition:grid-template-columns .2s ease}.master-shell.collapsed{grid-template-columns:var(--master-sidebar-collapsed) minmax(0,1fr)}
.master-sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--master-border);display:flex;flex-direction:column;z-index:50;min-width:0}.master-sidebar-head{height:var(--master-topbar);display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--master-border);gap:8px}.master-logo{display:flex;align-items:center;min-width:0}.master-logo img{width:170px;max-height:48px;object-fit:contain;object-position:left center;transition:width .2s}.master-shell.collapsed .master-logo img{width:42px;object-fit:cover;object-position:left}.master-icon-btn{border:1px solid var(--master-border);background:#fff;border-radius:11px;width:40px;height:40px;cursor:pointer;color:var(--brand-primary);font-weight:900}.master-menu{padding:14px 10px;overflow:auto;flex:1}.master-menu-section{margin:16px 8px 7px;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#91a0a8}.master-shell.collapsed .master-menu-section{font-size:0;text-align:center}.master-shell.collapsed .master-menu-section:after{content:'•';font-size:14px}.master-menu-item{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:12px;border-radius:12px;padding:11px 12px;color:#36505e;font:inherit;font-weight:750;cursor:pointer;text-align:left;margin:2px 0}.master-menu-item:hover{background:#f0f6f8}.master-menu-item.active{background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary));color:#fff;box-shadow:0 8px 20px rgba(8,47,91,.13)}.master-menu-icon{width:24px;text-align:center;font-size:17px;flex:0 0 24px}.master-menu-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-shell.collapsed .master-menu-label{display:none}.master-sidebar-user{border-top:1px solid var(--master-border);padding:14px;display:flex;align-items:center;gap:10px}.master-user-avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary));color:#fff;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.master-user-avatar.small{width:34px;height:34px;font-size:13px}.master-user-meta{min-width:0}.master-user-meta strong,.master-user-meta span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-user-meta span{font-size:12px;color:var(--master-muted);margin-top:2px}.master-shell.collapsed .master-user-meta{display:none}
.master-main{min-width:0}.master-topbar{height:var(--master-topbar);position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--master-border);display:flex;align-items:center;justify-content:space-between;padding:0 26px;gap:18px}.master-topbar-left{display:flex;align-items:center;gap:12px;min-width:0}.master-topbar h1{font-size:21px;margin:1px 0 0;color:var(--brand-primary)}.master-breadcrumb{font-size:11px;color:var(--master-muted);font-weight:700}.master-mobile-menu{display:none}.master-topbar-actions{display:flex;align-items:center;gap:10px}.master-btn{border:0;border-radius:11px;padding:10px 14px;font-weight:850;cursor:pointer}.master-btn-primary{background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary));color:#fff}.master-btn-soft{background:#eef5f7;color:var(--brand-primary);border:1px solid #d8e7ec}.master-user-menu-wrap{position:relative}.master-user-button{display:flex;align-items:center;gap:9px;border:1px solid var(--master-border);background:#fff;border-radius:14px;padding:6px 9px;cursor:pointer;color:var(--master-ink)}.master-user-button-text{display:grid;text-align:left;max-width:180px}.master-user-button-text strong,.master-user-button-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.master-user-button-text small{color:var(--master-muted)}.master-user-menu{position:absolute;right:0;top:calc(100% + 8px);width:210px;background:#fff;border:1px solid var(--master-border);border-radius:13px;box-shadow:0 18px 44px rgba(8,47,91,.16);padding:7px;z-index:100}.master-user-menu a,.master-user-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px 11px;border-radius:9px;color:var(--master-ink);font:inherit;text-decoration:none;cursor:pointer}.master-user-menu a:hover,.master-user-menu button:hover{background:#eef5f7}
.master-content{padding:28px;max-width:1640px;margin:0 auto}.master-view{display:none}.master-view.active{display:block}.master-page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:20px}.master-page-head h2{font-size:30px;color:var(--brand-primary);margin:2px 0 6px}.master-page-head p{margin:0;color:var(--master-muted);line-height:1.5}.master-eyebrow{text-transform:uppercase;letter-spacing:.09em;font-size:11px!important;font-weight:900;color:var(--brand-secondary)!important}.master-page-head-meta{font-size:12px;color:var(--master-muted);white-space:nowrap}.master-alert{margin-bottom:18px;padding:12px 14px;border-radius:12px;background:#fff0ef;color:var(--brand-error);border:1px solid #f0c4bf}.master-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.master-kpi-card{background:#fff;border:1px solid var(--master-border);border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(8,47,91,.055);min-height:138px;display:flex;flex-direction:column;justify-content:space-between}.master-kpi-card.compact{min-height:118px}.master-kpi-card span{font-size:12px;font-weight:850;color:var(--master-muted)}.master-kpi-card strong{font-size:30px;color:var(--brand-primary);margin:6px 0}.master-kpi-card small{color:var(--master-muted)}.master-kpi-link{border:0;background:transparent;color:var(--brand-secondary);font-weight:850;cursor:pointer;padding:0;text-align:left}.master-section{margin-top:22px}.master-section-head,.master-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}.master-section-head h3,.master-panel-head h3{margin:0;color:var(--brand-primary);font-size:18px}.master-section-head p,.master-panel-head p{margin:4px 0 0;color:var(--master-muted);font-size:13px}.master-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.master-quick-action{border:1px solid var(--master-border);background:#fff;border-radius:16px;padding:16px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer;box-shadow:0 6px 18px rgba(8,47,91,.04)}.master-quick-action:hover{border-color:#b7d2dc;transform:translateY(-1px)}.master-quick-action-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#edf5f7;color:var(--brand-primary);font-weight:900}.master-quick-action strong{display:block;color:var(--master-ink)}.master-quick-action small{display:block;color:var(--master-muted);margin-top:2px}.master-recent-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.master-panel{background:#fff;border:1px solid var(--master-border);border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(8,47,91,.05)}.master-list{display:grid}.master-list-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #edf2f4}.master-list-row:first-child{border-top:0}.master-list-main{min-width:0}.master-list-main strong,.master-list-main span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.master-list-main strong{color:var(--master-ink);font-size:14px}.master-list-main span{font-size:12px;color:var(--master-muted);margin-top:2px}.master-list-meta{text-align:right;white-space:nowrap;font-size:12px;color:var(--master-muted)}.master-link-btn{border:0;background:transparent;color:var(--brand-secondary);font-weight:850;cursor:pointer}.master-status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900;background:#edf5f7;color:var(--brand-primary)}.master-status-badge.ok{background:#e9f7ef;color:var(--brand-success)}.master-status-badge.off{background:#f2f3f4;color:#6a757c}.master-table-wrap{overflow:auto;border:1px solid var(--master-border);border-radius:14px}.master-table{width:100%;border-collapse:collapse;min-width:720px}.master-table th,.master-table td{padding:11px 12px;border-bottom:1px solid #edf2f4;text-align:left;font-size:13px}.master-table th{background:#f5f9fa;color:var(--brand-primary);text-transform:uppercase;letter-spacing:.04em;font-size:11px}.master-empty{padding:22px;text-align:center;color:var(--master-muted)}.master-placeholder-card{text-align:center;padding:54px 24px}.master-placeholder-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#e9f7ef;color:var(--brand-success);font-size:24px;font-weight:900}.master-placeholder-card h3{margin:0 0 8px;color:var(--brand-primary)}.master-placeholder-card p{max-width:640px;margin:0 auto;color:var(--master-muted);line-height:1.6}.master-mobile-overlay{position:fixed;inset:0;background:rgba(7,35,52,.42);z-index:45}
@media(max-width:1180px){.master-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.master-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.master-shell,.master-shell.collapsed{display:block}.master-sidebar{position:fixed;left:0;top:0;width:264px;transform:translateX(-104%);transition:transform .2s ease;box-shadow:0 20px 60px rgba(8,47,91,.18)}.master-sidebar.open{transform:translateX(0)}.master-sidebar-collapse{display:none}.master-mobile-menu{display:inline-grid;place-items:center}.master-topbar{padding:0 16px}.master-content{padding:22px 16px}.master-recent-grid{grid-template-columns:1fr}.master-user-button-text{display:none}}
@media(max-width:620px){.master-kpi-grid,.master-quick-grid{grid-template-columns:1fr}.master-page-head{align-items:flex-start;flex-direction:column}.master-page-head-meta{white-space:normal}.master-topbar-actions>.master-btn-soft{display:none}.master-content{padding:18px 12px}.master-page-head h2{font-size:26px}}

/* ===== MASTER V10 PHASE 2: EMPRESAS ===== */
.master-alert.ok{background:#eaf7ef;color:#176a3a;border-color:#c6e8d4}
.master-btn-danger{background:#fff0ef;color:#a13d36;border:1px solid #efc7c3}
.master-btn-danger:hover{background:#fde8e6}
.master-btn:disabled,.master-mini-btn:disabled{opacity:.6;cursor:not-allowed}
.master-company-toolbar{display:grid;grid-template-columns:minmax(320px,1fr) minmax(160px,210px) auto;gap:14px;align-items:end}
.master-company-search-wrap,.master-company-status-wrap{display:grid;gap:6px}.master-field-label{font-size:11px;font-weight:900;color:var(--master-muted);text-transform:uppercase;letter-spacing:.06em}
.master-input,.master-select{width:100%;border:1px solid var(--master-border);background:#fff;border-radius:11px;padding:11px 12px;color:var(--master-ink);font:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.master-input:focus,.master-select:focus{border-color:#8bb8c8;box-shadow:0 0 0 3px rgba(15,111,145,.09)}
.master-company-toolbar-actions{display:flex;gap:8px;justify-content:flex-end}.master-company-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 10px;color:var(--master-muted);font-size:12px}.master-company-summary strong{color:var(--master-ink);font-size:13px}.master-company-table{min-width:1080px}.master-company-name{display:grid;gap:2px;min-width:220px}.master-company-name strong{color:var(--master-ink)}.master-company-name span{font-size:12px;color:var(--master-muted)}
.master-row-actions{display:flex;gap:6px;white-space:nowrap}.master-mini-btn{border:1px solid var(--master-border);background:#fff;color:var(--brand-primary);border-radius:9px;padding:7px 9px;font:inherit;font-size:12px;font-weight:850;cursor:pointer}.master-mini-btn:hover{background:#eef5f7}.master-mini-btn.danger{color:#a13d36;border-color:#efd2cf}.master-mini-btn.success{color:#176a3a;border-color:#cde7d7}.master-empty-stack{display:grid;justify-items:center;gap:7px}.master-empty-stack strong{color:var(--master-ink)}.master-empty-stack span{color:var(--master-muted)}
.master-modal-open{overflow:hidden}.master-modal-backdrop{position:fixed;inset:0;background:rgba(5,31,48,.54);z-index:200;display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.master-modal-backdrop[hidden]{display:none}.master-modal{width:min(560px,100%);background:#fff;border:1px solid var(--master-border);border-radius:20px;box-shadow:0 26px 70px rgba(5,31,48,.24);padding:20px}.master-modal-large{width:min(820px,100%);max-height:calc(100vh - 48px);overflow:auto}.master-modal-confirm{width:min(520px,100%)}.master-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:15px;border-bottom:1px solid #edf2f4}.master-modal-head h2{margin:2px 0 4px;color:var(--brand-primary);font-size:24px}.master-modal-head p{margin:0;color:var(--master-muted);line-height:1.5}.master-company-form{padding-top:16px}.master-form-error{margin-bottom:14px;padding:11px 12px;border-radius:10px;background:#fff0ef;color:var(--brand-error);border:1px solid #f0c4bf}.master-form-section{border:0;padding:0;margin:0 0 18px}.master-form-section legend{font-weight:900;color:var(--brand-primary);font-size:14px;margin-bottom:10px}.master-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.master-form-field{display:grid;gap:6px}.master-form-field>span{font-size:12px;font-weight:800;color:#425b68}.master-field-span-2{grid-column:span 2}.master-modal-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:16px;border-top:1px solid #edf2f4}.master-confirm-text{color:var(--master-ink);line-height:1.65;margin:18px 0 8px}
@media(max-width:900px){.master-company-toolbar{grid-template-columns:1fr 180px}.master-company-toolbar-actions{grid-column:1/-1;justify-content:flex-start}.master-modal-backdrop{padding:14px}.master-modal-large{max-height:calc(100vh - 28px)}}
@media(max-width:620px){.master-company-toolbar{grid-template-columns:1fr}.master-company-toolbar-actions{grid-column:auto;display:grid;grid-template-columns:1fr 1fr}.master-form-grid{grid-template-columns:1fr}.master-field-span-2{grid-column:auto}.master-modal{border-radius:16px;padding:16px}.master-modal-actions{display:grid;grid-template-columns:1fr 1fr}.master-company-summary{align-items:flex-start;flex-direction:column}.master-company-table-wrap{border:0}.master-company-table{min-width:930px}}

/* ===== MASTER V10 PHASE 3: USUARIOS ===== */
.master-users-toolbar{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(4,minmax(135px,.72fr)) auto;gap:12px;align-items:end}.master-users-search-wrap,.master-filter-field{display:grid;gap:6px}.master-users-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 10px;color:var(--master-muted);font-size:12px}.master-users-summary strong{color:var(--master-ink);font-size:13px}.master-users-table{min-width:1180px}.master-user-cell{display:flex;align-items:center;gap:10px;min-width:185px}.master-user-cell>div{min-width:0}.master-user-cell strong,.master-user-cell small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-user-cell small{margin-top:2px;color:var(--master-muted);font-size:11px}.table-avatar{width:34px;height:34px;font-size:11px}.master-auth-stack{display:grid;gap:4px;justify-items:start}.master-auth-stack small{font-size:10px;color:var(--master-muted)}.master-badge-stack{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.master-role-badge,.master-company-chip,.master-role-more{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:850;line-height:1.1}.master-role-badge.active{background:#eaf3fb;color:#15547a}.master-role-badge.inactive{background:#f1f2f3;color:#6c7479;text-decoration:line-through}.master-company-chip{background:#eef7f5;color:#156c5f}.master-role-more{background:#f3f0fa;color:#67548c}.master-muted-text{font-size:12px;color:var(--master-muted)}
.master-modal-xlarge{width:min(1180px,100%);max-height:calc(100vh - 42px);overflow:auto}.master-user-detail-body{display:grid;gap:20px;padding-top:16px}.master-user-profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.master-detail-card{border:1px solid var(--master-border);border-radius:14px;background:#f9fbfc;padding:13px;display:grid;gap:5px;min-width:0}.master-detail-card span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:var(--master-muted)}.master-detail-card strong{color:var(--master-ink);overflow-wrap:anywhere}.master-detail-card small{color:var(--master-muted)}.master-detail-section{display:grid;gap:2px}.master-detail-section .master-section-head{margin-bottom:10px}.master-user-detail-actions{position:sticky;bottom:-20px;background:#fff;margin:0 -20px -20px;padding:14px 20px 18px;z-index:2}.master-lock-note{font-size:11px;color:var(--master-muted);font-weight:800}.master-field-hint{font-size:11px;line-height:1.4;color:var(--master-muted)}
@media(max-width:1280px){.master-users-toolbar{grid-template-columns:minmax(260px,1fr) repeat(2,minmax(150px,.6fr));}.master-users-toolbar .master-filter-field:nth-of-type(4),.master-users-toolbar .master-filter-field:nth-of-type(5),#userClearFilters{grid-row:2}.master-user-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.master-users-toolbar{grid-template-columns:1fr 1fr}.master-users-search-wrap{grid-column:1/-1}.master-users-table{min-width:980px}.master-modal-xlarge{max-height:calc(100vh - 28px)}.master-user-detail-actions{bottom:-16px;margin:0 -16px -16px;padding:12px 16px 16px}}
@media(max-width:620px){.master-users-toolbar{grid-template-columns:1fr}.master-users-search-wrap,.master-users-toolbar .master-filter-field:nth-of-type(4),.master-users-toolbar .master-filter-field:nth-of-type(5),#userClearFilters{grid-column:auto;grid-row:auto}.master-users-summary{align-items:flex-start;flex-direction:column}.master-user-profile-grid{grid-template-columns:1fr}.master-users-table-wrap{border:0}.master-user-detail-actions{grid-template-columns:1fr 1fr}}


/* ===== MASTER V10 BUILD 4.0: ROLES + EVALUACIONES + TOKENS ===== */
.master-role-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px;align-items:start}.master-role-list-panel{padding:0;overflow:hidden}.master-role-list-panel .master-panel-head{padding:18px;border-bottom:1px solid var(--master-border)}.master-role-list{padding:10px;display:grid;gap:6px}.master-role-card{width:100%;border:1px solid transparent;background:#fff;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;color:var(--master-ink)}.master-role-card:hover{background:#f4f8fa}.master-role-card.active{border-color:#9bc2d0;background:#eef6f8}.master-role-card strong,.master-role-card small{display:block}.master-role-card small{color:var(--master-muted);margin-top:3px;font-size:11px}.master-role-card-meta{text-align:right}.master-role-card-meta span,.master-role-card-meta b{display:block}.master-role-card-meta span{font-size:11px;color:var(--master-muted)}.master-role-card-meta b{margin-top:3px;color:var(--brand-secondary)}.master-role-detail{padding:22px}.master-role-detail-head{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--master-border);padding-bottom:18px}.master-role-detail-head h3{margin:3px 0 6px;color:var(--brand-primary);font-size:24px}.master-role-detail-head p{margin:0;color:var(--master-muted);max-width:700px}.master-role-detail-badges{display:flex;gap:8px;align-items:flex-start}.master-scope-badge{background:#eef5f7;color:var(--brand-primary);border:1px solid #d8e7ec;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:850}.master-role-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.master-role-summary>div{border:1px solid var(--master-border);border-radius:12px;padding:12px}.master-role-summary span,.master-role-summary strong{display:block}.master-role-summary span{font-size:11px;color:var(--master-muted);text-transform:uppercase;font-weight:850}.master-role-summary strong{margin-top:5px}.master-inline-note{padding:12px 14px;border-radius:12px;background:#fff7df;border:1px solid #f2dfa1;color:#6f5913;margin:14px 0}.master-permission-group{margin-top:22px}.master-permission-group-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.master-permission-group-head h4{margin:0;color:var(--brand-primary)}.master-permission-group-head span{font-size:11px;color:var(--master-muted)}.master-permission-item{display:flex;gap:10px;padding:12px 0;border-top:1px solid #edf1f3}.master-permission-check{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e9f6ef;color:#176a3a;font-weight:900;flex:0 0 26px}.master-permission-item strong{display:block}.master-permission-item p{margin:3px 0;color:var(--master-muted);font-size:12px}.master-permission-item code{font-size:10px;color:#73848d;background:#f4f6f7;border-radius:5px;padding:2px 5px}
.master-evaluation-toolbar{grid-template-columns:minmax(300px,1fr) minmax(160px,220px)}.master-eval-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.master-chip-list{display:flex;gap:8px;flex-wrap:wrap}.master-muted-text{color:var(--master-muted);font-size:12px}
.master-token-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.master-token-summary article{background:#fff;border:1px solid var(--master-border);border-radius:15px;padding:16px}.master-token-summary article.accent{background:linear-gradient(135deg,#edf8f4,#eef6f9);border-color:#c9e5dd}.master-token-summary span,.master-token-summary strong{display:block}.master-token-summary span{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--master-muted);font-weight:850}.master-token-summary strong{margin-top:5px;font-size:26px;color:var(--brand-primary)}.master-token-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) minmax(180px,260px) minmax(180px,260px) auto;gap:12px;align-items:end}.master-token-toolbar label{display:grid;gap:6px}.master-token-table{min-width:900px}
@media(max-width:1000px){.master-role-layout{grid-template-columns:1fr}.master-role-list{grid-template-columns:repeat(2,minmax(0,1fr))}.master-token-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.master-token-toolbar{grid-template-columns:1fr 1fr}.master-evaluation-toolbar{grid-template-columns:1fr 220px}}
@media(max-width:650px){.master-role-list{grid-template-columns:1fr}.master-role-detail-head{flex-direction:column}.master-role-summary,.master-eval-detail-grid,.master-token-summary,.master-token-toolbar,.master-evaluation-toolbar{grid-template-columns:1fr}.master-role-detail-badges{align-items:flex-start}.master-token-toolbar .master-btn{width:100%}}
\n\n/* ===== MASTER V10 BUILD 5.0: PEDIDOS + SOLICITUDES + AUDITORIA + CONFIGURACION ===== */\n.master-page-actions{display:flex;gap:9px;align-items:center}.master-order-toolbar,.master-audit-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) minmax(160px,210px) minmax(180px,260px) auto;gap:12px;align-items:end}.master-order-toolbar label,.master-audit-toolbar label,.master-request-toolbar label{display:grid;gap:6px}.master-order-table{min-width:900px}.master-status-badge.warn{background:#fff6df;color:#856215}.master-status-badge.info{background:#eaf3fb;color:#15547a}.master-textarea{min-height:110px;resize:vertical}.master-request-toolbar{display:grid;grid-template-columns:minmax(300px,1fr) minmax(170px,220px) auto;gap:12px;align-items:end}.master-request-table{min-width:1050px}.master-request-message{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--master-muted);font-size:12px}.master-request-detail{display:grid;gap:18px;padding:12px 0 18px}.master-request-full{border:1px solid var(--master-border);border-radius:14px;background:#f9fbfc;padding:15px}.master-request-full>span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:var(--master-muted)}.master-request-full p{white-space:pre-wrap;line-height:1.65;margin:9px 0 0;color:var(--master-ink)}.master-audit-table{min-width:980px}.master-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.master-config-list{display:grid;gap:0}.master-config-item{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-top:1px solid #edf1f3}.master-config-item:first-child{border-top:0}.master-config-item span{color:var(--master-muted);font-size:12px}.master-config-item strong{text-align:right;overflow-wrap:anywhere}.master-config-visual{display:grid;gap:8px}.master-color-row{display:flex;align-items:center;gap:10px;padding:8px 0}.master-color-swatch{width:34px;height:34px;border-radius:9px;border:1px solid var(--master-border);flex:0 0 34px}.master-color-row strong,.master-color-row small{display:block}.master-color-row small{color:var(--master-muted);margin-top:2px}.master-config-links{display:flex;gap:9px;flex-wrap:wrap}\n@media(max-width:900px){.master-order-toolbar,.master-audit-toolbar,.master-request-toolbar{grid-template-columns:1fr 1fr}.master-config-grid{grid-template-columns:1fr}.master-page-actions{width:100%;justify-content:flex-start}}\n@media(max-width:620px){.master-order-toolbar,.master-audit-toolbar,.master-request-toolbar{grid-template-columns:1fr}.master-page-actions{display:grid;grid-template-columns:1fr 1fr}.master-config-item{align-items:flex-start;flex-direction:column;gap:3px}.master-config-item strong{text-align:left}}\n\n/* ===== BUILD V10 6.0: LOGOUT + PAGO DE PEDIDOS ===== */\n.master-sidebar-logout{margin:0 12px 12px;border:1px solid #ead7d5;background:#fff7f6;color:#a13d36;border-radius:12px;padding:11px 12px;font:inherit;font-weight:850;display:flex;align-items:center;gap:10px;cursor:pointer;transition:.15s ease}.master-sidebar-logout:hover{background:#fdeceb;border-color:#e6c0bc}.master-shell.collapsed .master-sidebar-logout{justify-content:center;padding:11px}.master-shell.collapsed .master-sidebar-logout-label{display:none}.master-payment-summary{display:grid;gap:14px;color:var(--master-ink)}.master-payment-summary p{margin:0;line-height:1.55}.master-payment-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.master-payment-facts>div{border:1px solid var(--master-border);background:#f8fbfc;border-radius:12px;padding:12px;display:grid;gap:5px}.master-payment-facts span{font-size:11px;color:var(--master-muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.master-payment-facts strong{font-size:15px}.master-payment-warning{background:#fff7ea;border:1px solid #f0dbb9;padding:11px 12px;border-radius:11px;color:#77551e}.master-mini-btn.pay{background:#eaf7ef;border-color:#b9dfc8;color:#176a3a;white-space:normal;max-width:180px}.master-mini-btn.pay:hover{background:#ddf1e5}@media(max-width:700px){.master-payment-facts{grid-template-columns:1fr}}\n