/* Gestión: superficies oscuras limitadas a acceso, navegación e Inicio.
   Las variables y formularios de los demás módulos conservan atelier.css. */
.login-carbon{min-height:100svh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0;padding:60px max(32px,6vw);position:relative;isolation:isolate;background:#111315;color:#f6f6f7;font-family:Inter,'Segoe UI',sans-serif}
.login-carbon::before{content:'';position:absolute;z-index:-2;inset:0 50% 0 0;background:radial-gradient(ellipse at 50% 43%,#64142b40,transparent 39%),url('../images/gestion-circuitos.svg') center/cover,#090d10}
.login-carbon .login-glow{display:none}
.login-carbon .login-identity{display:flex;align-items:center;justify-content:center;min-width:0;padding:30px 35px 30px 0}
.login-carbon .official-brand{gap:26px;max-width:100%;padding:0}
.login-carbon .official-brand .brand-emblem{width:clamp(180px,21vw,280px);border-radius:12px;box-shadow:0 0 65px #ae12322b}
.login-carbon .official-brand .brand-wordmark{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-size:clamp(32px,4.6vw,64px);font-weight:800;letter-spacing:0;white-space:nowrap;color:#f7f7f8}
.brand-accent{color:#a91b3b}
.login-carbon .brand-wordmark small{font-family:Inter,'Segoe UI',sans-serif;font-size:clamp(12px,1.6vw,22px);letter-spacing:.22em;color:#aeb4b9;margin-top:10px}
.login-carbon .login-card{width:min(100%,500px);max-width:500px;padding:40px;border:1px solid #ffffff04;border-radius:20px;background:linear-gradient(130deg,#23262a,#1d2024);box-shadow:0 20px 55px #0007;justify-self:end;position:relative;overflow:visible}
.login-carbon .login-heading{padding:0;margin:0 0 38px}
.login-carbon .login-heading h1{font-family:Inter,'Segoe UI',sans-serif;font-size:clamp(34px,3.7vw,50px);line-height:1.15;letter-spacing:-.035em;font-weight:750;color:#fff;text-transform:none}
.login-carbon #login-form{padding:0}
.login-carbon .field-label{color:#f3f3f4;font-size:16px;font-weight:500;margin:0 0 10px;display:block}
.login-carbon .input-wrap{margin:0 0 25px}
.login-carbon .input-wrap>.icon{display:none}
.login-carbon .input-wrap input{height:58px;width:100%;padding:14px 48px 14px 16px;color:#f6f6f8;background:#141619;border:1px solid #42464c;border-radius:10px;font-size:16px;box-shadow:none}
.login-carbon .input-wrap input::placeholder{color:#9ea5ad;opacity:1}
.login-carbon .input-wrap input:focus{border-color:#c14460;outline:2px solid #c1446050;outline-offset:2px}
.login-carbon .password-toggle{color:#a4abb3;right:12px}
.login-carbon .password-toggle:hover{color:#fff;background:#ffffff0b}
.login-carbon .login-submit{width:100%;height:58px;margin-top:6px;background:linear-gradient(110deg,#ac1236,#b41637);border:1px solid #c52247;border-radius:9px;font-size:17px;font-weight:650;box-shadow:0 4px 15px #870c2222}
.login-carbon .login-submit:hover{background:#c21a43}
.login-carbon .form-error{color:#ffb4c3;background:#54162a;padding:12px;border-radius:7px;margin-bottom:14px}
.login-carbon .demo-access{background:transparent;border:0;border-top:1px solid #ffffff10;padding:18px 0 0;margin:25px 0 0;color:#a8b0b8;font-size:12px;line-height:1.65}
.login-carbon .demo-access>.icon,.login-carbon .demo-access strong{display:none}
.login-carbon .demo-access p{color:#a8b0b8;font-size:12px;max-width:none}
.login-carbon .demo-access a{color:#e8a4b4;text-decoration:underline;text-underline-offset:3px}
.login-carbon .login-footer{grid-column:1/-1;position:absolute;bottom:18px;left:20px;right:20px;text-align:center;color:#939ca6;font-size:11px;letter-spacing:.09em}
.login-carbon .login-footer span{color:#bd3454}

/* Navegación común autorizada, sin cambiar las superficies de los formularios. */
.management-chrome .sidebar{background:#1b1d21;border-right:1px solid #37393f;color:#eff0f2;font-family:Inter,'Segoe UI',sans-serif;scrollbar-color:#484b51 transparent}
.management-chrome .sidebar-brand{min-height:190px;border-bottom-color:#34363b;margin-bottom:22px}
.management-chrome .sidebar .brand-emblem{width:76px}
.management-chrome .sidebar .brand-wordmark{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-size:26px;letter-spacing:-.025em}
.management-chrome .sidebar .brand-wordmark small{font-family:Inter,sans-serif;font-size:8px;letter-spacing:.14em;color:#d6d7db}
.management-chrome .sidebar-caption{font-size:11px;letter-spacing:.04em;color:#a9abb2}
.management-chrome .nav-item{font-size:14px;line-height:1.3;min-height:48px;color:#e2e3e7;padding:12px 13px;border-radius:7px;gap:12px}
.management-chrome .nav-item>.icon{width:20px;height:20px;color:#c0c2c9}
.management-chrome .nav-item:hover{background:#ffffff08}
.management-chrome .nav-item.active{background:linear-gradient(100deg,#661a30,#421c2b);color:#fff;font-weight:500}
.management-chrome .nav-item.active>.icon{color:#fff}
.management-chrome .nav-divider{background:#393b41}
.management-chrome .sidebar-footer{color:#d2d3d8}
.management-chrome .sidebar-footer small{color:#999da7}
.management-chrome .topbar{background:#1b1d20;color:#e8e9ed;border-bottom:1px solid #37393f;box-shadow:none;font-family:Inter,'Segoe UI',sans-serif}
.management-chrome .menu-button{color:#b9bdc7}
.management-chrome .module-search input{color:#f3f3f5;border-color:#4a4d55;background:#17191c;font-size:13px}
.management-chrome .module-search input::placeholder,.management-chrome .module-search>.icon{color:#afb3bd}
.management-chrome .module-search kbd{color:#a7acb5;border-color:#4b4e56}
.management-chrome .topbar-demo{color:#ccd0d6;font-size:11px}
.management-chrome .topbar-demo>span{background:#64ad82}
.management-chrome .profile-button{color:#f5f5f6;font-size:13px}
.management-chrome .profile-avatar{border:3px solid #1b1d20;box-shadow:0 0 0 1px #777c86;background:#7a1a33}
.management-chrome .profile-menu,.management-chrome .search-results{background:#24272c;border-color:#4a4d54;color:#f3f4f6;box-shadow:0 12px 35px #0005}
.management-chrome .profile-menu button{color:#f4f5f6}
.management-chrome .profile-menu button:hover,.management-chrome .search-results a:hover,.management-chrome .search-results a[aria-selected=true]{background:#4b2132}
.management-chrome .sidebar-scrim{background:#080b10a6}

/* Escritorio: encabezado y navegación horizontal compartidos por todos los módulos. */
@media (min-width:901px){
  .management-chrome{--navigation-height:64px}
  .management-chrome .topbar{left:0}
  .management-chrome .menu-button{display:none}
  .management-chrome .topbar-brand .brand-link{display:block}
  .management-chrome .topbar-brand .official-brand{flex-direction:row;gap:10px;padding:0;color:#f3f4f7}
  .management-chrome .topbar-brand .brand-emblem{width:44px}
  .management-chrome .topbar-brand .brand-wordmark{font-size:21px;color:#f3f4f7}
  .management-chrome .topbar-brand .brand-wordmark small{font-size:7px}
  .management-chrome .sidebar{inset:var(--topbar) 0 auto;width:auto;height:var(--navigation-height);padding:0 24px;transform:none;transition:none;border-right:0;border-bottom:1px solid #37393f;overflow:visible;z-index:45}
  .management-chrome .sidebar-brand,.management-chrome .sidebar-caption,.management-chrome .sidebar-footer,.management-chrome .nav-divider{display:none}
  .management-chrome .sidebar nav{height:100%;display:flex;flex-direction:row;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding:6px 4px}
  .management-chrome .nav-item{flex:0 0 auto;min-height:44px;padding:10px 13px;gap:8px;white-space:nowrap}
  .management-chrome .workspace,.management-chrome.dashboard-surface .workspace{margin-left:0;padding-top:calc(var(--topbar) + var(--navigation-height) + 24px)}
}

/* Solo Inicio: las clases de tablas/formularios no se oscurecen fuera de aquí. */
.dashboard-surface .workspace{--ink:#f1f2f5;--muted:#b5b8c2;--text-soft:#b5b8c2;--text-soft-strong:#d0d3db;--surface:#1c1e23;--background:#101114;--line:#41434b;--copper:#bf3355;--copper-soft:#3e202e;background:#101114;color:var(--ink);min-height:100svh;font-family:Inter,'Segoe UI',sans-serif}
.dashboard-surface .page-heading{margin-bottom:26px;gap:18px}
.dashboard-surface .page-heading h1{color:#fafafa;font-family:Inter,'Segoe UI',sans-serif;font-size:clamp(26px,2.8vw,36px);letter-spacing:-.035em;line-height:1.2}
.dashboard-surface .page-heading p{font-size:14px;color:#b9bbc4}
.dashboard-surface .breadcrumb,.dashboard-surface .breadcrumb>span{font-size:11px;color:#b9bbc4;letter-spacing:.025em}
.dashboard-surface .page-date{display:none}
.dashboard-surface .dashboard-tabs{border-bottom:1px solid #454750;margin-bottom:18px;gap:4px;display:flex}
.dashboard-surface .dashboard-tabs button{color:#c7c9d0;font-size:15px;padding:13px 20px;border-bottom-width:3px;font-weight:500}
.dashboard-surface .dashboard-tabs button.active{color:#e77c96;border-color:#b83c5b}
.dashboard-surface .dashboard-tabs button:disabled{color:#a5a8b2;opacity:.8}
.dashboard-surface #dashboard-filter{padding:16px 20px;background:#1b1d22;border:1px solid #484b53;border-radius:9px;display:flex;align-items:end;gap:20px;margin-bottom:18px}
.dashboard-surface #dashboard-filter>.form-section-title{display:none}
.dashboard-surface #dashboard-filter .form-grid{flex:1;grid-template-columns:1.1fr 1fr;gap:22px}
.dashboard-surface #dashboard-filter .form-field label{font-size:14px;color:#d4d6dd}
.dashboard-surface #dashboard-filter input,.dashboard-surface #dashboard-filter select{height:44px;padding:9px 13px;background:#15171b;color:#f2f3f5;border:1px solid #5c6069;font-size:15px;color-scheme:dark}
.dashboard-surface #dashboard-filter .form-actions{border:0;padding:0;margin:0;flex-shrink:0;width:auto}
.dashboard-surface .primary-button{background:#9b203f;color:#fff;border:1px solid #b33251;font-size:14px;min-height:44px}
.dashboard-surface .secondary-button,.dashboard-surface .text-button{background:#2c2029;border:1px solid #704051;color:#f4c8d3;font-size:14px}
.dashboard-surface .dashboard-note{font-size:13px;color:#b8bdc6}
.dashboard-surface .kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;background:transparent;border:0;margin-bottom:20px}
.dashboard-surface .kpi-card{position:relative;display:flex;flex-direction:row;align-items:center;gap:14px;border:1px solid #484b54!important;border-radius:10px;background:linear-gradient(120deg,#22242a,#1b1d22);padding:20px 17px;box-shadow:0 4px 15px #0001;min-width:0}
.dashboard-surface .kpi-icon{background:#3d202d;color:#d56a86;width:40px;height:44px;border-radius:8px}
.dashboard-surface .kpi-icon.green,.dashboard-surface .kpi-icon.blue{background:#2c3038;color:#c3c8d3}
.dashboard-surface .kpi-value{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-size:34px;font-weight:700;color:#f5f5f7;line-height:1.05;letter-spacing:-.02em;white-space:normal;overflow-wrap:anywhere}
.dashboard-surface .kpi-card h2{color:#c6c9d2;font-size:14px;font-weight:400;white-space:normal;line-height:1.35}
.dashboard-surface .kpi-card p{color:#a8aeba;font-size:12px;line-height:1.4;margin-top:6px}
.dashboard-surface .main-charts{display:flex;flex-direction:column;gap:20px;margin-bottom:20px}
.dashboard-surface .main-charts>.panel:first-child{order:2}
.dashboard-surface .panel{border:1px solid #454850;border-radius:10px;background:#1c1e23;padding:20px;box-shadow:none;color:#eff1f5}
.dashboard-surface h2,.dashboard-surface h3{color:#f1f2f6}
.dashboard-surface .panel-heading{margin-bottom:18px}
.dashboard-surface .panel-heading h2,.dashboard-surface .form-section-title{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-size:22px;font-weight:600;letter-spacing:.005em;color:#f4f5f7}
.dashboard-surface .state-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.75fr);gap:26px;align-items:center}
.dashboard-surface .data-table{background:transparent;color:#f1f2f6;font-size:14px}
.dashboard-surface .data-table th{background:#292c33;color:#e8ebf2;font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;padding:13px 15px;border-color:#444751}
.dashboard-surface .data-table td{padding:14px 15px;border-color:#383b43;color:#e1e4eb;font-size:14px}
.dashboard-surface .data-table tbody tr:hover{background:#282b32}
.dashboard-surface .data-table td:last-child,.dashboard-surface .data-table th:last-child{background:transparent}
.dashboard-surface .dashboard-state{display:inline-flex;align-items:center;gap:9px}
.dashboard-surface .report-total{color:#c6cad4;border-color:#383b45;font-size:15px}
.dashboard-surface .report-total strong{color:#f8f8fa}
.dashboard-surface .donut>div{background:#1c1e23;color:#f3f4f7}
.dashboard-surface .donut div span,.dashboard-surface .chart-legend li{color:#c0c5d0;font-size:13px}
.dashboard-surface .chart-legend strong{color:#f1f3f8;font-size:14px}
.dashboard-surface .hbar-row,.dashboard-surface .hbar-label{color:#c8ccd5;font-size:14px}
.dashboard-surface .hbar-track{background:#333640}
.dashboard-surface .hbar-fill{background:#aa2a4b}
.dashboard-surface .initial-avatar{background:#442535;color:#f1bfcc}
.dashboard-surface .chart-label,.dashboard-surface .chart-unit{fill:#bcc2ce}
.dashboard-surface .chart-grid{stroke:#383b45}
.dashboard-surface .hint,.dashboard-surface .loading-state,.dashboard-surface .empty-table{color:#bec4cf;background:transparent}
.dashboard-surface .form-error{color:#ffb2c1}
.dashboard-surface .report-columns,.dashboard-surface .report-card{background:transparent;color:#f1f3f8}
.dashboard-surface .workspace-footer{color:#b1b7c2;font-size:11px}
.dashboard-surface .badge{filter:brightness(1.3)}

@media(min-width:1500px){.login-carbon{padding-left:9vw;padding-right:9vw}.login-carbon .login-card{width:500px}}
@media(max-width:1150px){.login-carbon{padding:50px 35px}.login-carbon .login-card{padding:32px}.login-carbon .login-identity{padding-right:25px}.login-carbon .brand-wordmark small{font-size:14px}.dashboard-surface .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-surface .state-overview{grid-template-columns:1fr 1fr;gap:18px}}
@media(max-width:900px){.management-chrome .topbar-brand .official-brand{color:#f3f4f7}.management-chrome .topbar-brand .brand-wordmark{color:#f3f4f7}.management-chrome .sidebar-compact .brand-wordmark{display:block}.dashboard-surface .workspace{padding-left:22px;padding-right:22px}.dashboard-surface .state-overview{grid-template-columns:1fr}.dashboard-surface #dashboard-filter{gap:14px;flex-wrap:wrap}.dashboard-surface #dashboard-filter .form-actions{margin-left:auto}.management-chrome .sidebar-brand{min-height:170px}}
@media(max-width:700px){.login-carbon{grid-template-columns:1fr;gap:25px;padding:28px 20px 60px;align-content:center}.login-carbon::before{inset:0;background-size:auto 100%}.login-carbon .login-identity{padding:0}.login-carbon .official-brand{gap:10px}.login-carbon .official-brand .brand-emblem{width:110px}.login-carbon .official-brand .brand-wordmark{font-size:34px}.login-carbon .brand-wordmark small{font-size:11px;margin-top:5px}.login-carbon .login-card{justify-self:center;padding:28px;width:100%;max-width:450px;border-radius:15px}.login-carbon .login-heading{margin-bottom:27px}.login-carbon .login-heading h1{font-size:34px}.login-carbon .input-wrap input{height:52px}.login-carbon .demo-access{margin-top:20px;padding-top:14px}.dashboard-surface .workspace{padding-left:16px;padding-right:16px}.dashboard-surface .page-heading h1{font-size:28px}.dashboard-surface #dashboard-filter{padding:16px}.dashboard-surface #dashboard-filter .form-grid{grid-template-columns:1fr;gap:14px;min-width:100%}.dashboard-surface #dashboard-filter .form-actions,.dashboard-surface #dashboard-filter .primary-button{width:100%;margin:0}.dashboard-surface .kpi-grid{gap:12px}.dashboard-surface .kpi-card{padding:16px 13px;gap:10px;align-items:flex-start}.dashboard-surface .kpi-icon{width:30px;height:34px}.dashboard-surface .kpi-icon .icon{width:20px}.dashboard-surface .kpi-value{font-size:30px}.dashboard-surface .kpi-card h2{font-size:13px}.dashboard-surface .kpi-card p{font-size:11px}.dashboard-surface .panel{padding:17px}.dashboard-surface .panel-heading h2{font-size:21px}.dashboard-surface .data-table th:last-child,.dashboard-surface .data-table td:last-child{background:#1c1e23}.dashboard-surface .profile-button{font-size:13px}}
@media(max-width:390px){.login-carbon{padding-left:14px;padding-right:14px}.login-carbon .login-card{padding:24px}.login-carbon .official-brand .brand-wordmark{font-size:30px}.dashboard-surface .kpi-card{flex-direction:column;gap:9px}.dashboard-surface .kpi-value{font-size:31px}}

/* El helper actual envuelve el formulario en un panel; solo se ajusta su contenedor de Inicio. */
.dashboard-surface .form-panel:has(>#dashboard-filter){padding:16px 20px;margin-bottom:18px}
.dashboard-surface .form-panel:has(>#dashboard-filter)>.form-section-title{display:none}
.dashboard-surface #dashboard-filter{border:0;padding:0;margin:0;background:transparent}
.dashboard-surface .income-chart polyline{stroke:#d95075}
.dashboard-surface .income-chart circle{stroke:#d95075;fill:#20232a}
@media(max-width:700px){.dashboard-surface .form-panel:has(>#dashboard-filter){padding:16px}}

.login-carbon .login-submit{justify-content:center}
.dashboard-surface{background:#101114;min-height:100svh}
.dashboard-surface .dashboard-tabs button{background:transparent;box-shadow:none;border-radius:0}
.dashboard-surface .donut strong{color:#f3f4f7}
.dashboard-surface .data-table .empty-table{text-align:left;white-space:normal;font-size:14px}
.dashboard-surface .inline-note{background:#29252d;border-color:#51404c;color:#e0cfd9;font-size:13px}
.dashboard-surface .workspace{--background:#18191c;--surface:#202125;background:var(--background)}
.dashboard-surface .dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;border-bottom:1px solid #3d3e45}
.dashboard-surface .dashboard-toolbar .dashboard-tabs{border:0;margin:0;align-self:stretch}
.dashboard-surface .dashboard-export{position:relative}
.dashboard-surface .dashboard-export summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}
.dashboard-surface .dashboard-export summary::-webkit-details-marker{display:none}
.dashboard-surface .dashboard-export-options{position:absolute;right:0;top:calc(100% + 6px);z-index:5;min-width:210px;padding:5px;border:1px solid #51525c;border-radius:8px;background:#25262b;box-shadow:0 8px 24px #1118}
.dashboard-surface .dashboard-export-options button{display:block;width:100%;text-align:left;padding:10px 12px;color:#f4f4f6;background:transparent;border:0;border-radius:4px;cursor:pointer}
.dashboard-surface .dashboard-export-options button:disabled{opacity:.55;cursor:default}
.dashboard-surface .dashboard-export-options button:hover:not(:disabled){background:#412633}
.dashboard-surface .dashboard-export-status{margin:0 0 10px;color:var(--muted);font-size:13px}
/* Inicio: filtros en el encabezado y tres filas de resumen. */
.dashboard-surface .workspace{--background:#17181b;--surface:#202125;background:var(--background);padding-top:calc(var(--topbar) + 16px)}
.dashboard-surface .page-heading{margin-bottom:4px;align-items:end}
.dashboard-surface .page-heading h1{font-size:clamp(25px,2.4vw,34px);font-weight:650}
.dashboard-surface .page-heading p{margin-top:4px}
.dashboard-surface .form-panel:has(>#dashboard-filter){padding:0;margin:0;border:0;background:transparent;box-shadow:none;min-width:0}
.dashboard-surface #dashboard-filter{display:flex;flex-wrap:nowrap;align-items:end;gap:10px}
.dashboard-surface #dashboard-filter .form-grid{grid-template-columns:minmax(100px,1fr) minmax(130px,1fr);gap:10px;min-width:0}
.dashboard-surface #dashboard-filter input,.dashboard-surface #dashboard-filter select{height:35px;font-size:13px;padding:5px 9px}
.dashboard-surface #dashboard-filter .form-field label{font-size:12px}
.dashboard-surface #dashboard-filter .form-actions,.dashboard-surface #dashboard-filter .primary-button{width:auto;margin:0}
.dashboard-surface #dashboard-filter .primary-button{min-height:35px;font-size:12px;padding:6px 11px}
.dashboard-surface #dashboard-filter .form-error:not([hidden]){position:absolute;z-index:6;right:18px;max-width:300px;transform:translateY(calc(100% + 6px));background:#35222a;padding:6px 9px}
.dashboard-surface .dashboard-toolbar{margin-bottom:12px}
.dashboard-surface .dashboard-toolbar .dashboard-tabs button{font-size:13px;padding:7px 12px;border-bottom-width:2px}
.dashboard-surface .dashboard-export summary{min-height:28px;padding:3px 9px;font-size:12px}
.dashboard-surface .dashboard-export summary .icon{width:14px;height:14px}
.dashboard-surface .kpi-grid{grid-template-columns:repeat(var(--dashboard-cards,3),minmax(0,1fr));gap:13px;margin-bottom:13px}
.dashboard-surface .kpi-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 10px;align-items:start;padding:12px 14px;background:linear-gradient(150deg,#25262a,#202125);box-shadow:0 2px 5px #0003;border:1px solid #404147!important}
.dashboard-surface .kpi-card h2{margin:0;font-size:14px;font-weight:550}
.dashboard-surface .kpi-value{display:block;margin-top:4px;font-family:inherit;font-size:clamp(21px,2.1vw,29px);font-weight:650;font-variant-numeric:tabular-nums}
.dashboard-surface .kpi-card p{grid-column:1/-1;margin:0}
.dashboard-surface .kpi-card .kpi-icon{width:33px;height:33px;border-radius:50%}
.dashboard-surface .kpi-card .kpi-icon .icon{width:19px;height:19px}
.dashboard-surface .kpi-icon.green{background:#26463d;color:#92d3bb}
.dashboard-surface .kpi-icon.blue{background:#283d54;color:#9ec9f2}
.dashboard-surface .dashboard-grid{display:grid;gap:13px;margin-bottom:13px}
.dashboard-surface .dashboard-overview{grid-template-columns:minmax(0,3.45fr) minmax(186px,1fr)}
.dashboard-surface .dashboard-overview-restricted{grid-template-columns:minmax(0,1fr)}
.dashboard-surface .dashboard-detail{grid-template-columns:minmax(0,1.32fr) minmax(0,1fr) minmax(0,1fr)}
.dashboard-surface .dashboard-grid .panel,.dashboard-surface .dashboard-activity{min-width:0;padding:12px 15px;background:linear-gradient(150deg,#25262a,#202125);border-color:#404147;box-shadow:0 2px 5px #0003}
.dashboard-surface .dashboard-grid .panel-heading{margin-bottom:8px}
.dashboard-surface .dashboard-grid .panel-heading h2{font-family:inherit;font-size:clamp(15px,1.35vw,20px);font-weight:550;letter-spacing:-.015em}
.dashboard-surface .dashboard-grid .income-chart{display:block;width:100%;height:auto}
.dashboard-surface .dashboard-grid .income-chart polyline,.dashboard-surface .dashboard-grid .income-chart circle{stroke:#ce738a}
.dashboard-surface .dashboard-grid .donut-layout{display:grid;justify-items:center;gap:9px;min-height:0}
.dashboard-surface .dashboard-grid .donut{width:108px;height:108px}
.dashboard-surface .dashboard-grid .donut>div{width:82px;height:82px;background:#222327}
.dashboard-surface .dashboard-grid .donut strong{font-size:22px}
.dashboard-surface .dashboard-grid .chart-legend{width:100%;display:flex;justify-content:center;gap:2px 8px;flex-wrap:wrap}
.dashboard-surface .dashboard-grid .chart-legend li{display:inline-flex;gap:4px;margin:0;font-size:10px}
.dashboard-surface .dashboard-grid .chart-legend strong{font-size:10px;margin:0}
.dashboard-surface .dashboard-grid .chart-legend .legend-dot{width:6px;height:6px}
/* Fill the existing order-state card without resizing adjacent charts. */
.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders{display:flex;flex-direction:column}
.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .donut-layout{flex:1;contain:size;grid-template-rows:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:166px}
.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .donut{width:auto;height:100%;aspect-ratio:1;max-width:100%;max-height:184px}
.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .donut>div{width:76%;height:76%}
.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .donut strong{font-size:30px}
.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .chart-legend{max-width:280px;gap:5px 12px}
.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .chart-legend li,.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .chart-legend strong{font-size:11px}
@media(max-width:1080px){
 .dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .donut-layout{--order-donut-size:166px;contain:none;grid-template-rows:auto;grid-template-columns:auto minmax(0,160px);justify-content:center;align-items:center;gap:16px;min-height:166px}
 .dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .donut{width:var(--order-donut-size);height:var(--order-donut-size);max-height:none}
 .dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .chart-legend{display:grid;grid-template-columns:minmax(0,1fr);max-width:none;min-width:0;gap:6px}
 .dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .chart-legend li{display:flex}
 .dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .chart-legend strong{margin-left:auto}
}
@media(min-width:901px) and (max-width:1080px){.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .donut-layout{--order-donut-size:132px;min-height:132px}}
@media(max-width:700px){.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders .donut-layout{--order-donut-size:clamp(140px,42vw,166px);gap:12px}}
.dashboard-surface .dashboard-caption{margin:7px 0 0;color:var(--muted);font-size:11px}
.dashboard-surface .dashboard-small-action{background:#302f35;border:1px solid #494950;color:#f3f1f4;border-radius:5px;padding:4px 7px;white-space:nowrap;font-size:11px;text-decoration:none;cursor:pointer}
.dashboard-surface .dashboard-small-action:hover{background:#462a36}
.dashboard-surface .dashboard-status-bars{display:grid;gap:7px;list-style:none;margin:0;padding:0}
.dashboard-surface .dashboard-status-bars li{display:grid;grid-template-columns:minmax(88px,auto) minmax(24px,1fr) minmax(24px,auto);gap:8px;align-items:center;font-size:12px}
.dashboard-surface .dashboard-status-bars strong{text-align:right;font-variant-numeric:tabular-nums}
.dashboard-surface .dashboard-status-track{height:8px;background:#393a40;border-radius:4px;overflow:hidden}
.dashboard-surface .dashboard-status-track span{display:block;height:100%;border-radius:inherit}
.dashboard-surface .dashboard-columns{display:flex;gap:8px;padding:8px 1px 0}
.dashboard-surface .dashboard-column{display:grid;grid-template-rows:105px auto;min-width:0;flex:1;text-align:center}
.dashboard-surface .dashboard-column-plot{position:relative;display:flex;align-items:end;justify-content:center;background:repeating-linear-gradient(to top,#3a3c43 0 1px,transparent 1px 25%)}
.dashboard-surface .dashboard-column-bar{position:relative;width:min(70%,40px);height:calc(var(--bar-height) * .84);background:var(--bar-color);border-radius:3px 3px 0 0}
.dashboard-surface .dashboard-column-bar strong{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-size:11px;color:#f3f4f8}
.dashboard-surface .dashboard-column-label{padding-top:5px;color:#d0d1d9;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
.dashboard-surface .dashboard-empty,.dashboard-surface .dashboard-satisfaction .survey-results>.empty-state{min-height:103px;display:grid;place-items:center;text-align:center;padding:10px;border:1px dashed #45464c;border-radius:6px;color:#c2c3cc;background:#1d1e22;font-size:13px}
/* Dashboard filters: one selector per scope, no manual date controls. */
@media(min-width:1081px){.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders:not(.dashboard-orders-empty) .donut-layout{min-height:234px;grid-template-rows:184px auto}}
.dashboard-surface .dashboard-heading-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.dashboard-surface .dashboard-heading-actions #dashboard-filter .form-grid{grid-template-columns:minmax(90px,110px);min-width:0}
.dashboard-surface .dashboard-heading-actions #dashboard-filter .form-actions{width:auto;margin:0}
.dashboard-surface .dashboard-heading-actions .dashboard-export summary{min-height:35px;padding:6px 10px}
.dashboard-surface .dashboard-overview .panel-heading,.dashboard-surface #dashboard-analysis .report-income>.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dashboard-surface .panel-heading>.summary-income-filter,.dashboard-surface .panel-heading>.satisfaction-filter,.dashboard-surface .panel-heading>.income-filter{flex:0 0 auto;margin-left:auto}
.dashboard-surface .panel-heading .analysis-period-picker.period-picker-compact{margin:0;min-height:0;display:block}
.dashboard-surface .panel-heading .analysis-period-picker.period-picker-compact select{width:86px;min-height:34px;height:34px;font-size:12px;padding:5px 8px}
@media(max-width:700px){.dashboard-surface .dashboard-heading-actions{width:100%;gap:8px}.dashboard-surface .dashboard-heading-actions #dashboard-filter{flex-wrap:nowrap;gap:8px}.dashboard-surface .dashboard-heading-actions #dashboard-filter .form-grid{grid-template-columns:minmax(85px,100px);min-width:0}.dashboard-surface .dashboard-heading-actions #dashboard-filter .primary-button{width:auto;white-space:nowrap}.dashboard-surface .panel-heading .analysis-period-picker.period-picker-compact select{min-height:44px;height:44px}}
/* Quiet, unboxed empty states; populated chart rules remain unchanged. */
.dashboard-surface .dashboard-overview .dashboard-empty,.dashboard-surface .dashboard-satisfaction .survey-results>.empty-state{min-height:0;margin:0;padding:10px 8px;border:0;border-radius:0;background:transparent;color:#b5b8c2;line-height:1.5}
.dashboard-surface .summary-income-result:has(>.dashboard-empty),.dashboard-surface .dashboard-satisfaction .survey-results:has(>.empty-state){display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 0}
.dashboard-surface .dashboard-satisfaction .survey-results:has(>.empty-state)>.analysis-period-caption{order:1;margin:0;text-align:center}
.dashboard-surface .summary-income-result:has(>.dashboard-empty)>.dashboard-caption{margin:0;text-align:center}
.dashboard-surface .dashboard-orders-empty{display:flex;flex-direction:column}
.dashboard-surface .dashboard-orders-empty>.dashboard-empty{margin:auto 0}
.dashboard-surface .dashboard-activity{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dashboard-surface .dashboard-activity dl{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0;font-size:12px;color:var(--muted)}
.dashboard-surface .dashboard-activity dl div{display:flex;gap:7px}
.dashboard-surface .dashboard-activity dd{margin:0;color:var(--ink);font-weight:650}
@media(max-width:1080px){.dashboard-surface .dashboard-detail{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-surface .dashboard-status{grid-column:1/-1}}
@media(max-width:850px){.dashboard-surface .page-heading{flex-wrap:wrap;align-items:start;gap:12px}.dashboard-surface .dashboard-overview{grid-template-columns:minmax(0,2.5fr) minmax(155px,1fr)}}
@media(max-width:640px){.dashboard-surface .dashboard-overview,.dashboard-surface .dashboard-detail{grid-template-columns:minmax(0,1fr)}.dashboard-surface .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-surface .dashboard-grid .panel{padding:11px}.dashboard-surface .dashboard-toolbar{gap:7px}}
@media(max-width:360px){.dashboard-surface #dashboard-filter{flex-wrap:wrap}}

/* Satisfaction module: preserve existing dashboard and payment layout. */
.survey-analysis-grid{display:grid;grid-template-columns:minmax(140px,.7fr) minmax(240px,1.4fr) minmax(210px,1fr);gap:24px}.survey-analysis-grid h3{font-size:1rem}.survey-average{font-size:2.6rem;font-weight:650;color:#dca9b3}.survey-average span{font-size:1rem}.survey-bars{display:grid;gap:12px}.survey-bar-row{display:grid;grid-template-columns:minmax(92px,1fr) minmax(60px,1fr) 40px;gap:8px;align-items:center;font-size:.85rem}.survey-bar-row meter{width:100%;height:16px;accent-color:#a13450}.survey-bar-row meter::-webkit-meter-optimum-value{background:#a13450}.survey-share-actions>label{display:block;margin:12px 0}.survey-link input{width:100%;margin:10px 0}.survey-link a,.survey-link button{margin:6px 0}.survey-delivery p{line-height:1.55}@media(max-width:1100px){.survey-analysis-grid{grid-template-columns:1fr 1fr}.survey-analysis-grid>section:first-child{grid-column:1/-1}}@media(max-width:650px){.survey-analysis-grid{grid-template-columns:1fr}.survey-bar-row{grid-template-columns:minmax(100px,1fr) minmax(65px,1fr) 36px}}

/* Survey actions: one primary action, with explicit replacement confirmation. */
.survey-actions-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.survey-state{display:flex;gap:8px;align-items:baseline}.survey-state>span{font-weight:600;color:inherit}.survey-dates{font-size:.85rem;color:var(--muted,#b5b8c2)}.survey-confirmation{padding:16px;margin-top:14px;border:1px solid var(--line,#67505c);border-radius:8px}.survey-confirmation button{margin:6px 8px 0 0}.survey-feedback:not(:empty){margin-top:14px}.survey-manual-copy:not([hidden]){display:block;margin-top:14px}.survey-share-actions .survey-manual-copy[hidden],.survey-confirmation[hidden]{display:none}.survey-share-actions .primary-button,.survey-share-actions .secondary-button{min-height:44px}.survey-share-actions :is(button,a,input):focus-visible{outline:3px solid #e4b761;outline-offset:3px}@media(max-width:480px){.survey-actions-row{align-items:stretch;flex-direction:column}.survey-actions-row>a,.survey-actions-row>button,.survey-share-actions>.survey-share{width:100%;text-align:center;justify-content:center}}

/* Independent, compact analysis filters and a single Q5 satisfaction gauge. */
.analysis-period-picker{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:16px 0}.analysis-period-picker label{display:grid;gap:6px;font-size:.85rem}.analysis-period-picker :is(select,input){min-height:44px;max-width:100%;padding:9px;border:1px solid var(--line,#59505a);border-radius:7px;background:var(--surface,#24262b);color:inherit;font:inherit;color-scheme:dark}.analysis-period-picker button{min-width:44px;min-height:44px;margin:0}.analysis-period-picker :is(select,input,button):focus-visible{outline:3px solid #e4b761;outline-offset:3px}.analysis-period-caption{color:var(--muted,#b5b8c2);font-size:.85rem}.satisfaction-gauge{max-width:420px;margin:8px auto;text-align:center}.satisfaction-gauge svg{display:block;width:100%;height:auto;color:inherit;overflow:visible}.satisfaction-gauge path{fill:none;stroke-width:20}.satisfaction-gauge line{stroke:currentColor;stroke-width:4;stroke-linecap:round}.satisfaction-gauge circle{fill:currentColor}.satisfaction-scale{fill:currentColor;font-size:14px}.satisfaction-value{font-size:42px;font-weight:650;margin:0!important;line-height:1.2}.satisfaction-value span{font-size:20px;color:var(--muted,#b5b8c2)}.satisfaction-interpretation{font-size:1.05rem;font-weight:600}.satisfaction-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;font-size:.8rem}.satisfaction-legend span{display:flex;align-items:center;gap:5px}.satisfaction-legend i{width:10px;height:10px;border-radius:50%}.satisfaction-red{background:#c95459}.satisfaction-yellow{background:#d8ab48}.satisfaction-green{background:#36a376}.report-income{min-width:0}.income-content .income-chart{max-width:100%}@media(max-width:500px){.analysis-period-picker{gap:8px}.analysis-period-picker label{flex:1 1 135px}.analysis-period-picker button{flex:0 0 auto}.satisfaction-value{font-size:36px}}

.income-detail{margin:12px 0}.income-detail summary{cursor:pointer;padding:10px 0;color:inherit}.income-detail[open] .table-scroll{max-height:220px;overflow:auto}.income-detail summary:focus-visible{outline:3px solid #e4b761;outline-offset:3px}#historical-comparison :is(th,td){padding:10px;white-space:normal;overflow-wrap:anywhere}

/* Approved dashboard: four KPIs, income/satisfaction/orders, unchanged detail row. */
.dashboard-surface .kpi-icon.amber{background:#493b24;color:#edc265}.dashboard-surface .dashboard-overview-satisfaction{grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.9fr)}.dashboard-surface .dashboard-overview-satisfaction.dashboard-overview-restricted{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-satisfaction-card .kpi-value{font-size:clamp(19px,1.9vw,29px)}.dashboard-surface .dashboard-overview .analysis-period-picker{gap:6px;align-items:end;margin:10px 0}.dashboard-surface .dashboard-overview .analysis-period-picker label{font-size:10px;gap:4px;flex:0 0 auto}.dashboard-surface .dashboard-overview .analysis-period-picker select{width:76px}.dashboard-surface .dashboard-overview .analysis-period-picker input{width:124px}.dashboard-surface .dashboard-overview .analysis-period-picker :is(select,input,button){font-size:11px;padding:5px;min-height:44px}.dashboard-surface .dashboard-overview .analysis-period-picker button{min-width:38px}.dashboard-surface .dashboard-overview .analysis-period-picker .period-now{min-width:44px}.dashboard-surface .dashboard-overview .analysis-period-caption{font-size:10px;margin:6px 0}.dashboard-satisfaction .satisfaction-gauge{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);column-gap:10px;align-items:center;max-width:420px;margin:8px auto}.dashboard-satisfaction .satisfaction-gauge svg{grid-column:1;grid-row:1/4}.dashboard-satisfaction .satisfaction-value{grid-column:2;grid-row:1;align-self:end;font-size:clamp(23px,2vw,30px)}.dashboard-satisfaction .satisfaction-value span{font-size:16px}.dashboard-satisfaction .satisfaction-interpretation{grid-column:2;grid-row:2;font-size:13px;margin:6px 0!important}.dashboard-satisfaction .satisfaction-gauge>p:not([class]){grid-column:2;grid-row:3;align-self:start;font-size:12px;margin:0}.dashboard-satisfaction .satisfaction-legend{grid-column:1/-1;font-size:10px;gap:4px 8px;margin-top:8px}.dashboard-surface .dashboard-overview .panel-heading h2{font-size:clamp(16px,1.3vw,20px)}
@media(min-width:1081px){.dashboard-surface .dashboard-overview-satisfaction .analysis-period-picker{min-height:66px}}
@media(max-width:1080px){.dashboard-surface .dashboard-overview-satisfaction{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders{grid-column:1/-1}}
@media(max-width:700px){.dashboard-surface .dashboard-overview-satisfaction,.dashboard-surface .dashboard-overview-satisfaction.dashboard-overview-restricted{grid-template-columns:minmax(0,1fr)}.dashboard-surface .dashboard-overview-satisfaction .dashboard-orders{grid-column:auto}.dashboard-surface .dashboard-overview .analysis-period-picker{gap:8px}.dashboard-surface .dashboard-overview .analysis-period-picker button{min-width:44px}}
