:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#17303b;background:#f3f6f6;font-synthesis:none}
*{box-sizing:border-box}html{min-width:320px}body{margin:0}a{color:#08756f}button,input,textarea,select{font:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #53bcb3;outline-offset:2px}
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(350px,.95fr);background:#f4f7f6}.login-hero{padding:clamp(2rem,7vw,6rem);background:#123d40;color:#fff;display:flex;flex-direction:column;justify-content:space-between;gap:4rem}.brand-mark{display:flex;align-items:center;gap:.8rem;font-weight:800;letter-spacing:.02em}.brand-symbol{width:2.5rem;height:2.5rem;display:grid;place-items:center;border:2px solid #88d5c8;border-radius:12px;color:#a8e6db;font-size:1.5rem}.login-hero h1{font-size:clamp(3rem,5vw,5.5rem);line-height:1.04;letter-spacing:-.055em;max-width:11ch;margin:0}.login-hero p{max-width:40rem;color:#c4deda;font-size:1.12rem;line-height:1.65}.login-hero small{color:#9fc4bf}.login-main{display:grid;place-items:center;padding:2rem}.login-card{width:min(100%,28rem)}.eyebrow{color:#08756f;text-transform:uppercase;letter-spacing:.14em;font-size:.75rem;font-weight:800}.login-card h2{font-size:2.15rem;letter-spacing:-.04em;margin:.5rem 0}.muted{color:#60747c;line-height:1.55}.form-stack{display:grid;gap:1.15rem;margin-top:2rem}.field{display:grid;gap:.5rem}.field label{font-weight:700;font-size:.9rem}.field input,.field textarea,.field select{display:block;width:100%;border:1px solid #cbdad9;border-radius:.75rem;background:#fff;padding:.85rem 1rem;color:#17303b}.field input[type=file]{padding:.7rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:1px solid transparent;border-radius:.7rem;padding:.82rem 1.2rem;text-decoration:none;font-weight:750;line-height:1.3;white-space:normal}.btn-primary{background:#0a6e69;color:white}.btn-primary:hover{background:#075651;color:white}.btn-secondary{background:#e5f1ef;color:#0a5e59}.btn-secondary:hover{background:#d3e7e4}.btn-outline{border-color:#c8dad8;color:#164c4b;background:white}.btn-outline:hover{background:#f2f8f7}.btn-full{width:100%}.error{padding:1rem;background:#fff0ef;color:#9c3130;border:1px solid #f0c7c3;border-radius:.7rem}.notice{padding:1rem 1.2rem;background:#e4f5ef;color:#16574e;border:1px solid #b4e3d5;border-radius:.7rem;margin-bottom:1.25rem}
.panel-body{min-height:100vh;background:#f3f6f6}.app-shell{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{background:#173d40;color:#fff;display:flex;flex-direction:column;padding:1.7rem 1rem;min-width:0}.sidebar .brand-mark{padding:.2rem .65rem 1.8rem;font-size:.95rem}.sidebar .brand-symbol{width:2rem;height:2rem;border-radius:9px;font-size:1.2rem}.nav-label{font-size:.67rem;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:#9fc3bf;padding:1rem .85rem .5rem}.sidebar nav{display:grid;gap:.16rem}.nav-link{display:flex;gap:.75rem;align-items:center;padding:.75rem .85rem;text-decoration:none;color:#d8ecea;border-radius:.62rem;font-size:.91rem}.nav-link:hover{background:#2a5657;color:#fff}.nav-link.active{background:#d8f2e8;color:#164d49;font-weight:800}.nav-icon{width:1.35rem;text-align:center;font-size:1.05rem;flex:none}.sidebar-bottom{margin-top:auto;padding:.9rem .6rem 0;border-top:1px solid #416064}.user-pill{display:flex;align-items:center;gap:.65rem;color:#e7f3f1;margin-bottom:.8rem;font-size:.88rem;overflow-wrap:anywhere}.avatar{width:2rem;height:2rem;border-radius:50%;display:grid;place-items:center;background:#3b7470;color:white;font-weight:800;flex:none}.sidebar-bottom form{margin:0}.sidebar-bottom button{width:100%;text-align:left;background:transparent;color:#d6e9e7;border:0;padding:.6rem .5rem;border-radius:.5rem}.sidebar-bottom button:hover{background:#2a5657}.workspace{min-width:0}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #dfebea;background:#fff;padding:0 clamp(1.2rem,3vw,3.5rem)}.topbar-title{font-weight:800;font-size:.92rem}.topbar-right{display:flex;align-items:center;gap:1rem;color:#60747c;font-size:.82rem}.topbar-status{display:inline-flex;align-items:center;gap:.45rem;background:#edf8f3;color:#1b6a53;border-radius:100px;padding:.4rem .7rem;font-weight:700}.status-dot{width:.45rem;height:.45rem;border-radius:50%;background:#28a875}.page{max-width:1500px;margin:0 auto;padding:clamp(1.5rem,3.5vw,3.5rem)}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1.25rem;margin-bottom:1.8rem}.page-header h1{font-size:clamp(2rem,3.3vw,3.1rem);letter-spacing:-.05em;line-height:1.1;margin:.4rem 0 .6rem}.page-header p{margin:.2rem 0;color:#60747c;line-height:1.55}.header-actions{display:flex;gap:.6rem;flex-wrap:wrap;padding-top:.45rem}.breadcrumb{color:#71868e;font-size:.8rem;font-weight:700;margin-bottom:.5rem}.breadcrumb a{color:#597078;text-decoration:none}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.4rem 0 1.8rem}.kpi{border:1px solid #dfe9e8;border-radius:1rem;background:#fff;padding:1.25rem 1.35rem;min-height:135px;display:flex;flex-direction:column;justify-content:space-between}.kpi-label{font-size:.82rem;color:#60747c;font-weight:700}.kpi-value{font-size:2rem;font-weight:850;letter-spacing:-.05em;line-height:1.1}.kpi-foot{font-size:.75rem;color:#81939a}.placeholder-value{font-size:1.5rem;color:#a3b4b8}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:1rem}.surface{background:#fff;border:1px solid #dfe9e8;border-radius:1rem;box-shadow:0 8px 28px rgba(26,63,67,.025);padding:1.5rem;margin-bottom:1rem}.surface h2{font-size:1.12rem;letter-spacing:-.02em;margin:0 0 .45rem}.surface h3{font-size:.94rem}.surface p{color:#60747c;line-height:1.55}.surface-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.surface-head p{margin:.2rem 0 0}.empty-state{border:1px dashed #c6d8d5;border-radius:.9rem;background:#f8fbfa;padding:2rem;text-align:center}.empty-icon{display:grid;place-items:center;margin:0 auto .8rem;width:3rem;height:3rem;border-radius:.85rem;background:#e6f4ef;color:#117367;font-size:1.4rem}.empty-state h3{font-size:1.08rem;margin:.2rem 0}.empty-state p{max-width:34rem;margin:.45rem auto 1.1rem}.steps{display:grid;gap:.9rem;margin:1.2rem 0 0;padding:0;list-style:none}.steps li{display:flex;gap:.75rem;align-items:flex-start;font-size:.9rem;color:#3d5962}.step-number{display:grid;place-items:center;flex:none;width:1.6rem;height:1.6rem;border-radius:50%;background:#e6f4ef;color:#08756f;font-weight:800;font-size:.75rem}.section-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.section-card{display:block;background:#fff;border:1px solid #dfe9e8;border-radius:1rem;padding:1.4rem;text-decoration:none;color:#17303b}.section-card:hover{border-color:#81bcb5;box-shadow:0 10px 25px rgba(26,63,67,.06)}.section-card .icon{display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:.7rem;background:#e7f5f1;color:#08756f;font-size:1.2rem}.section-card h3{margin:1rem 0 .4rem}.section-card p{font-size:.86rem;color:#60747c;line-height:1.5;margin:0}.badge{display:inline-flex;align-items:center;border-radius:100px;padding:.32rem .65rem;font-size:.72rem;font-weight:800;background:#ecf2f2;color:#547078}.badge-success{background:#dff4e7;color:#1a7053}.badge-warning{background:#fff0d2;color:#8c6418}.badge-error{background:#fde5e2;color:#9d3a36}.table-wrap{width:100%;overflow:auto;border:1px solid #dfe9e8;border-radius:.8rem}table{border-collapse:collapse;width:100%;background:#fff}th,td{padding:.88rem 1rem;text-align:left;border-bottom:1px solid #e9efee;vertical-align:top;font-size:.88rem}th{font-size:.73rem;text-transform:uppercase;letter-spacing:.06em;background:#f8fbfa;color:#657d83}tr:last-child td{border-bottom:0}.table-link{font-weight:750;text-decoration:none}.table-link:hover{text-decoration:underline}.meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.meta-item{padding:.9rem 0;border-top:1px solid #e9efee}.meta-item dt{font-size:.72rem;color:#71868e;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.meta-item dd{margin:.35rem 0 0;font-weight:700;overflow-wrap:anywhere}.warning{background:#fff9ed;border:1px solid #efd8a7;border-radius:.8rem;padding:1rem 1.2rem}.warning h2{margin:.1rem 0}.columns{display:flex;gap:.4rem;flex-wrap:wrap}.columns span{padding:.25rem .5rem;background:#f2f7f6;border:1px solid #dfe9e8;border-radius:.45rem;font-size:.78rem}.upload-zone{border:2px dashed #9fc9c1;background:#f7fbf9;border-radius:1rem;text-align:center;padding:2.2rem 1.4rem}.upload-zone input{max-width:100%;margin-top:1rem}.upload-zone p{margin:.5rem 0}.review-form{display:grid;gap:1rem;max-width:40rem}.review-form p{display:grid;gap:.4rem;margin:0}.review-form input,.review-form textarea,.review-form select{width:100%;padding:.8rem 1rem;border:1px solid #cbdad9;border-radius:.7rem}.review-form textarea{min-height:100px}.hash{font-family:ui-monospace,monospace;font-size:.78rem;word-break:break-all}.small{font-size:.8rem;color:#71868e}.text-link{font-weight:750;text-decoration:none}.text-link:hover{text-decoration:underline}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{padding:.8rem 1rem}.sidebar .brand-mark{padding:.2rem .2rem .7rem}.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:.25rem}.nav-link{white-space:nowrap;padding:.55rem .65rem}.nav-icon{display:none}.topbar{height:54px;padding:0 1rem}.topbar-right{display:none}.page{padding:1.25rem}.page-header{display:block}.header-actions{padding-top:.8rem}.section-cards{grid-template-columns:1fr}.meta-grid{grid-template-columns:1fr 1fr}.login-page{grid-template-columns:1fr}.login-hero{gap:1.5rem;padding:2rem}.login-hero h1{font-size:2.4rem}.login-main{padding:2rem 1.25rem}}
@media(max-width:480px){.kpi-grid,.meta-grid{grid-template-columns:1fr}.surface{padding:1.1rem}.page-header h1{font-size:2rem}}

/* Identidad visual de Óptica Navarro: azul del logotipo oficial. */
:root{color:#17324a;background:#f3f8fc}
body.panel-body{background:#f3f8fc}
a,.eyebrow,.text-link,.table-link{color:#087fbd}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#45b9f4}
.sidebar{background:#084c79}
.sidebar .brand-mark{display:grid;justify-items:start;gap:.15rem;border-bottom:1px solid rgba(255,255,255,.18);margin-bottom:1rem}
.brand-logo{display:block;object-fit:contain;object-position:left center;width:145px;height:auto;max-width:100%;background:#fff;padding:.45rem;border-radius:.65rem}
.brand-slogan{font-size:.72rem;letter-spacing:.025em;color:#d4efff;font-weight:700}
.nav-label{color:#a9d9f5}
.nav-link{color:#e4f5ff}
.nav-link:hover,.sidebar-bottom button:hover{background:#12699f}
.nav-link.active{background:#e0f3ff;color:#075282}
.sidebar-bottom{border-top-color:#3481aa}
.user-pill,.sidebar-bottom button{color:#e4f5ff}
.avatar{background:#168cc7}
.topbar{border-bottom-color:#dcebf4}
.topbar-status{background:#e9f6fd;color:#08669d}
.status-dot{background:#009fef}
.btn-primary{background:#087fbd;color:#fff}
.btn-primary:hover{background:#08689b;color:#fff}
.btn-secondary{background:#e5f4fc;color:#075f93}
.btn-secondary:hover{background:#d3ebf8}
.btn-outline{border-color:#c2dbe9;color:#145776;background:#fff}
.btn-outline:hover{background:#eff8fd}
.surface,.kpi,.section-card{border-color:#d9e8f1}
.section-card:hover{border-color:#7abfe5;box-shadow:0 10px 25px rgba(13,91,137,.08)}
.section-card .icon,.empty-icon,.step-number{background:#e6f5fd;color:#087fbd}
.empty-state{border-color:#bcd9e9;background:#f8fcff}
.table-wrap{border-color:#d9e8f1}
th{background:#f3f9fd;color:#526f81}
th,td,.meta-item{border-bottom-color:#e4eff5}
.upload-zone{border-color:#94cbe8;background:#f6fbfe}
.field input,.field textarea,.field select,.review-form input,.review-form textarea,.review-form select{border-color:#c4dce9;color:#17324a}
.notice{background:#e9f7ff;color:#175777;border-color:#b7def2}
.login-page{background:#f4f9fd}
.login-hero{background:linear-gradient(145deg,#075480 0%,#008dcc 75%,#009fef 100%)}
.login-hero .brand-logo{width:190px}
.login-hero p{color:#ebf8ff}
.login-hero small{color:#c5eaff}
.login-card{background:#fff;border:1px solid #deebf3;border-radius:1.25rem;padding:clamp(1.5rem,3vw,2.3rem);box-shadow:0 18px 56px rgba(5,79,127,.08)}
.user-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.15rem}
.user-form-grid .field input[type=checkbox]{width:1.2rem;height:1.2rem;margin:.5rem 0;accent-color:#087fbd}
.user-form-grid .field:has(input[type=checkbox]){align-content:start}
.user-form-grid .field:has(input[type=checkbox]) label{order:1}
.user-form-grid .field:has(input[type=checkbox]) input{order:0}
@media(max-width:760px){.sidebar .brand-mark{display:flex;align-items:center;margin-bottom:.6rem;padding-bottom:.6rem}.sidebar .brand-logo{width:105px}.brand-slogan{font-size:.68rem}.user-form-grid{grid-template-columns:1fr}.login-card{box-shadow:none}}
.capability-field{grid-column:1/-1;border-top:1px solid #d9e8f1;padding-top:1.2rem}
.capability-field .small{margin:0 0 .4rem}
.capability-field>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
.capability-field label{display:flex;align-items:center;gap:.65rem;border:1px solid #d9e8f1;background:#f8fcff;border-radius:.7rem;padding:.8rem;font-weight:650}
.capability-field input[type=checkbox]{width:1.15rem;height:1.15rem;flex:none;margin:0;accent-color:#087fbd}
.user-management-layout{grid-template-columns:minmax(0,1.65fr) minmax(280px,.55fr)}
.permission-builder{grid-column:1/-1;margin:1.5rem 0;border-top:1px solid #d9e8f1;padding-top:1.5rem}
.permission-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);gap:1.5rem;align-items:start;margin-bottom:1.25rem}
.permission-heading h2{margin:.15rem 0 .4rem}.permission-heading p{margin:.25rem 0}
.suggestion-picker{background:#edf7fc;border:1px solid #c9e3f1;border-radius:14px;padding:1rem}.suggestion-picker>label{display:block;font-weight:800;margin-bottom:.5rem}
.suggestion-controls{display:flex;gap:.6rem;align-items:stretch}.suggestion-controls select{min-width:0;flex:1}.suggestion-controls .btn{white-space:nowrap}
.permission-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.permission-section{min-width:0;margin:0;border:1px solid #d9e8f1;border-radius:14px;padding:1rem;background:#fbfdff}
.permission-section legend{padding:0 .35rem;font-size:1.08rem;font-weight:850;color:#0d597d}
.permission-options{display:grid;gap:.55rem;margin-top:.8rem}
.permission-option{display:flex;align-items:flex-start;gap:.7rem;border:1px solid #d9e8f1;border-radius:10px;padding:.75rem;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.permission-option:hover{border-color:#1595cf;background:#f4fbff}.permission-option:has(input:checked){border-color:#1595cf;background:#eaf7fd;box-shadow:inset 3px 0 #1595cf}
.permission-option input{width:1.1rem;height:1.1rem;flex:none;margin:.15rem 0 0;accent-color:#087fbd}
.permission-option span,.permission-option strong,.permission-option small{display:block}.permission-option small{font-weight:400;color:#526875;margin-top:.18rem;line-height:1.35}
.access-badge{margin:.15rem .25rem .15rem 0}
@media(max-width:760px){.capability-field>div{grid-template-columns:1fr}}
@media(max-width:980px){.user-management-layout,.permission-heading,.permission-sections{grid-template-columns:1fr}}
@media(max-width:600px){.suggestion-controls{display:grid}.permission-section{padding:.8rem}}
.mfa-card{max-width:760px;padding:2rem}.mfa-qr{display:block;background:#fff;border:1px solid #d9e4e9;border-radius:14px;padding:10px;margin:1.2rem 0}.mfa-secret{background:#f1f7f8;border-radius:10px;padding:1rem;overflow-wrap:anywhere}.mfa-secret code,.mfa-codes code{font-size:1.12rem;letter-spacing:.09em}.mfa-codes{columns:2;max-width:450px;line-height:2.4}.mfa-badge{display:inline-block;background:#dcf3ee;color:#075849;border-radius:20px;padding:.35rem .8rem;font-weight:700}.mfa-checkbox{display:flex;align-items:center;gap:.6rem;line-height:1.4}.mfa-link-button{border:0;background:none;color:#086070;text-decoration:underline;cursor:pointer;font:inherit}

/* Panel operativo, filtros, móvil y tema oscuro. */
.filter-bar{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;padding:1rem;background:#f5fafe;border:1px solid #d9e8f1;border-radius:.85rem;margin-bottom:1rem}.filter-bar .field{min-width:150px;flex:1}.filter-bar .field-wide{min-width:220px;flex:2}.filter-bar input,.filter-bar select{width:100%;padding:.7rem .8rem;border:1px solid #c4dce9;border-radius:.6rem;background:#fff;color:#17324a}.action-row{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}.action-row form{margin:0}.btn-danger{background:#a73b3b;color:#fff}.btn-danger:hover{background:#842d2d}.btn-small{padding:.55rem .75rem;font-size:.8rem}.nav-count{margin-left:auto;display:grid;place-items:center;min-width:1.4rem;height:1.4rem;padding:0 .35rem;border-radius:99px;background:#fff;color:#075282;font-size:.7rem;font-weight:850}.theme-toggle,.notification-link{border:1px solid #d4e5ef;background:#fff;color:#145776;border-radius:.6rem;padding:.45rem .65rem;text-decoration:none}.notification-link{position:relative}.notification-link b{position:absolute;right:-.35rem;top:-.4rem;background:#b73e45;color:#fff;border-radius:99px;padding:.1rem .35rem;font-size:.65rem}.mobile-menu{display:none;position:fixed;z-index:50;left:.7rem;top:.55rem;border:0;border-radius:.55rem;background:#084c79;color:#fff;padding:.55rem .7rem}.progress-track{height:.6rem;background:#dfeaf0;border-radius:99px;overflow:hidden}.progress-bar{height:100%;background:#087fbd;border-radius:inherit}.timeline{display:grid;gap:.75rem}.timeline-item{border-left:3px solid #b8dcec;padding:.4rem 0 .4rem 1rem}.timeline-item.unread{border-color:#087fbd;background:#f4faff}.danger-zone{border-color:#efcaca;background:#fffafa}.data-contract{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.data-stage{padding:1rem;border:1px solid #d9e8f1;border-radius:.8rem;background:#f8fcff}.data-stage strong{display:block;margin-bottom:.3rem}.health-good{color:#168051}.health-warn{color:#9a6610}.nowrap{white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

html[data-theme="dark"]{color-scheme:dark;color:#dcebf3;background:#0d1720}html[data-theme="dark"] body.panel-body{background:#0d1720}html[data-theme="dark"] .workspace,html[data-theme="dark"] .page{background:#0d1720}html[data-theme="dark"] .topbar,html[data-theme="dark"] .surface,html[data-theme="dark"] .kpi,html[data-theme="dark"] .section-card,html[data-theme="dark"] table,html[data-theme="dark"] .login-card{background:#142432;color:#e7f2f8;border-color:#284253}html[data-theme="dark"] .topbar{border-bottom-color:#284253}html[data-theme="dark"] .surface p,html[data-theme="dark"] .page-header p,html[data-theme="dark"] .muted,html[data-theme="dark"] .small,html[data-theme="dark"] .kpi-label,html[data-theme="dark"] .kpi-foot{color:#a9becb}html[data-theme="dark"] th{background:#1b3040;color:#bdd0db}html[data-theme="dark"] td,html[data-theme="dark"] th,html[data-theme="dark"] .meta-item{border-color:#29404f}html[data-theme="dark"] .empty-state,html[data-theme="dark"] .filter-bar,html[data-theme="dark"] .data-stage{background:#11212d;border-color:#2b4658}html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select,html[data-theme="dark"] .field input,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .field select,html[data-theme="dark"] .review-form input,html[data-theme="dark"] .review-form textarea,html[data-theme="dark"] .review-form select{background:#0f1d27;color:#e7f2f8;border-color:#365365}html[data-theme="dark"] .btn-outline,html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .notification-link{background:#152938;color:#ddecf4;border-color:#365365}html[data-theme="dark"] .btn-outline:hover{background:#203949}html[data-theme="dark"] .notice{background:#12354a;color:#bce7ff;border-color:#24648a}html[data-theme="dark"] .warning{background:#332b17;color:#f4dda4;border-color:#685626}html[data-theme="dark"] .error{background:#3b2021;color:#ffc7c5;border-color:#743d3d}html[data-theme="dark"] .badge{background:#263b48;color:#d8e7ef}html[data-theme="dark"] .badge-success{background:#173d31;color:#a6edce}html[data-theme="dark"] .badge-warning{background:#3b321b;color:#f0d38c}html[data-theme="dark"] .badge-error{background:#422527;color:#ffbbb8}html[data-theme="dark"] .capability-field label{background:#11212d;border-color:#2b4658}html[data-theme="dark"] a{color:#66c9ff}
html[data-theme="dark"] .permission-builder{border-color:#29404f}html[data-theme="dark"] .suggestion-picker{background:#102a3a;border-color:#28516a}html[data-theme="dark"] .permission-section{background:#11212d;border-color:#2b4658}html[data-theme="dark"] .permission-section legend{color:#72cef7}html[data-theme="dark"] .permission-option{background:#142432;border-color:#2b4658}html[data-theme="dark"] .permission-option:hover,html[data-theme="dark"] .permission-option:has(input:checked){background:#163144;border-color:#2baee9}html[data-theme="dark"] .permission-option small{color:#a9becb}

@media(max-width:760px){.mobile-menu{display:block}.app-shell{display:block}.sidebar{position:fixed;z-index:40;inset:0 auto 0 0;width:min(86vw,310px);transform:translateX(-105%);transition:transform .2s ease;padding-top:3.7rem;overflow:auto}.sidebar.open{transform:translateX(0)}.sidebar .nav-label,.sidebar .sidebar-bottom{display:block}.sidebar nav{display:grid;overflow:visible}.sidebar .nav-icon{display:block}.topbar{padding-left:4rem}.topbar-right{display:flex}.topbar-status{display:none}.theme-toggle span{display:none}.data-contract{grid-template-columns:1fr}.filter-bar{display:grid}.filter-bar .field,.filter-bar .field-wide{min-width:0}.page{padding:1.1rem}.table-wrap{font-size:.85rem}}

.manual-content{max-width:980px}.manual-content h2{margin-top:2rem}.manual-content h2:first-child{margin-top:0}.manual-content li{margin:.55rem 0;line-height:1.55}.device-agent{display:block;max-width:32rem;overflow-wrap:anywhere}.error-page{max-width:720px;margin:8vh auto;padding:clamp(2rem,6vw,4.5rem)}.error-page h1{font-size:clamp(2rem,5vw,4rem)}.query-due{border-left:3px solid #d59824}.run-progress{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}

html[data-theme="dark"] body.login-page{background:#0d1720}html[data-theme="dark"] .login-main{background:#0d1720}

.app-version{margin:.25rem .5rem .75rem;color:#b8dced;font-size:.68rem;font-weight:700;letter-spacing:.035em;line-height:1.35}
.login-version{display:inline-block;margin-top:.45rem;font-weight:750;letter-spacing:.025em;color:#e8f7ff}

.permission-matrix-wrap{width:100%;overflow:auto;border:1px solid #d9e8f1;border-radius:.85rem;max-height:70vh}.permission-matrix{width:max-content;min-width:100%;font-size:.78rem}.permission-matrix th,.permission-matrix td{text-align:center;padding:.65rem .55rem}.permission-matrix thead th{position:sticky;top:0;z-index:3}.permission-matrix thead tr:nth-child(2) th{top:41px}.permission-matrix .matrix-user{position:sticky;left:0;z-index:4;min-width:145px;text-align:left;background:#f8fbfd}.permission-matrix thead .matrix-user{z-index:6}.matrix-user small{display:block;color:#71868e;font-weight:500;margin-top:.2rem}.matrix-group{color:#fff!important;background:#096d9f!important}.matrix-group-management{background:#244f69!important}.matrix-permission{width:58px;max-width:58px;height:135px;vertical-align:bottom}.matrix-permission span{display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}.matrix-cell{font-size:1rem;font-weight:900}.matrix-yes{background:#e4f6ed;color:#14714f}.matrix-no{color:#a7b4b9}.matrix-total{font-weight:800;white-space:nowrap}.matrix-inactive{opacity:.58}
.indicator-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2rem;align-items:center}.indicator-summary{display:grid;grid-template-columns:auto auto;align-items:center;gap:.2rem .65rem;min-width:210px}.indicator-summary strong{font-size:1.55rem;color:#087fbd}.indicator-summary span{color:#60747c;font-size:.78rem}.indicator-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.indicator-card{border:1px solid #d9e8f1;border-radius:.9rem;background:#fbfdff;padding:1.15rem}.indicator-card-head{display:flex;justify-content:space-between;gap:.75rem;align-items:center}.indicator-code{display:inline-grid;place-items:center;min-width:3.1rem;padding:.35rem .55rem;border-radius:.5rem;background:#087fbd;color:#fff;font-weight:850;letter-spacing:.05em}.indicator-card h3{font-size:1.06rem;margin:.8rem 0 1rem}.indicator-card dl{margin:0;display:grid;gap:.35rem}.indicator-card dt{margin-top:.55rem;color:#527180;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-weight:850}.indicator-card dd{margin:0;color:#344f5b;line-height:1.5;font-size:.86rem}
html[data-theme="dark"] .permission-matrix-wrap,html[data-theme="dark"] .indicator-card{border-color:#2b4658}html[data-theme="dark"] .permission-matrix .matrix-user{background:#172936}html[data-theme="dark"] .matrix-yes{background:#173d31;color:#a6edce}html[data-theme="dark"] .matrix-no{color:#657b87}html[data-theme="dark"] .indicator-card{background:#11212d}html[data-theme="dark"] .indicator-card dt{color:#8fb2c2}html[data-theme="dark"] .indicator-card dd{color:#c4d6df}html[data-theme="dark"] .indicator-summary span{color:#a9becb}
@media(max-width:850px){.indicator-grid,.indicator-intro{grid-template-columns:1fr}.indicator-summary{justify-content:start}}
