:root{--navy:#0c2032;--navy2:#18394b;--green:#07997d;--teal:#13ba9b;--blue:#367bb8;--orange:#edab54;--purple:#997bd1;--line:#e5ebef;--text:#162c3f;--muted:#7b8c9b;--bg:#f5f8fa;--white:#fff;--shadow:0 3px 24px rgba(25,50,70,.045)}
*{box-sizing:border-box}html{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif}body{margin:0;color:var(--text);background:var(--bg);font-size:13px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}.hidden{display:none!important}.workspace{display:flex;min-height:100vh}.sidebar{width:245px;min-width:245px;min-height:100vh;background:var(--navy);color:white;padding:28px 14px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 45px}.brand-icon,.logo-icon{width:35px;height:35px;display:grid;place-items:center;color:#27d3ae;font-size:30px}.brand strong{display:block;font-size:19px;letter-spacing:1.3px;line-height:1.1}.brand strong span{color:#46d9b7;margin-left:4px}.brand small{font-size:9px;letter-spacing:1.9px;color:#92a8b8}.nav-kicker{margin:0 12px 12px;font-size:9px;letter-spacing:2px;color:#637e92;font-weight:800}.nav-kicker.more{margin-top:27px}.sidebar nav{display:grid;gap:4px}.nav-btn{border:0;background:transparent;text-align:left;color:#aec1d0;font-size:12px;font-weight:630;border-radius:10px;padding:12px 12px;display:flex;align-items:center;gap:12px;width:100%;min-height:43px}.nav-btn span{width:19px;font-size:18px;text-align:center}.nav-btn i{margin-left:auto;font-style:normal;color:#6d8696;font-size:9px;white-space:nowrap}.nav-btn:hover{background:#183447;color:white}.nav-btn.selected{background:#164a54;border-left:3px solid #34d0ac;padding-left:9px;color:#9af2db}.sidebar-bottom{margin-top:auto;padding:17px 12px 0;border-top:1px solid #274355}.online{display:flex;align-items:center;gap:9px;color:#a6d3c7;font-size:11px}.online span{height:7px;width:7px;background:#31ce9f;border-radius:50%;box-shadow:0 0 0 4px rgba(49,206,159,.13)}.sidebar-bottom small{display:block;margin-top:10px;color:#7192a4;font-size:10px}.page-area{flex:1;min-width:0}.topbar{height:66px;border-bottom:1px solid var(--line);background:#fff;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:15px}.crumb{font-size:10px;letter-spacing:1.3px;color:#91a1ae;font-weight:700}.crumb span{padding:0 10px;color:#bdc8d2}.crumb strong{color:#2a4557}.top-right{display:flex;align-items:center;gap:16px}.sync-badge{border:1px solid #d3eee4;background:#effaf6;border-radius:99px;padding:7px 11px;color:#168366;font-size:10px;white-space:nowrap}.user-badge{display:flex;align-items:center;gap:8px;min-width:0}.avatar{height:29px;width:29px;display:grid;place-items:center;border-radius:50%;background:#e6f6ef;color:var(--green);font-weight:800}.user-badge strong{display:block;font-size:11px;max-width:175px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-badge small{display:block;font-size:9px;color:var(--muted);letter-spacing:.7px;margin-top:3px}.main{max-width:1550px;padding:34px 32px 22px;margin:0 auto}.top-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:2.1px;color:var(--green);font-weight:820}.eyebrow.light{color:#5ce5c6}.top-heading h1{margin:7px 0 7px;font-size:29px;line-height:1.15;letter-spacing:-.65px}.top-heading p{margin:0;font-size:12px;color:var(--muted)}.heading-tools{display:flex;gap:9px}.btn{border:1px solid #e1e9ed;border-radius:9px;background:white;padding:11px 14px;font-weight:700;color:#536879;font-size:12px;white-space:nowrap}.btn.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 6px 16px rgba(11,140,113,.13)}.btn.primary:hover{background:#087b66}.btn.subtle:hover{background:#f3f8fa}.btn.small{padding:8px 11px;font-size:11px}.btn.wide{width:100%;display:flex;justify-content:space-between}.filters{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px 16px;display:flex;align-items:end;flex-wrap:wrap;gap:10px 12px;box-shadow:var(--shadow)}.filter-caption{font-size:10px;letter-spacing:1.35px;color:#8396a3;font-weight:850;align-self:center;min-width:115px}.filters label{display:grid;gap:5px;font-weight:690;font-size:10px;color:#738695}.filters select,.filters input{min-width:115px;max-width:195px;color:#2e475a;border:1px solid #e1e8ed;padding:9px 11px;background:#fbfdfe;border-radius:7px;font-size:12px;outline-color:#9fe9d1}.filters .reset{padding:9px 11px}.statusline{display:flex;justify-content:space-between;gap:8px;margin:10px 1px 18px;color:#95a4ae;font-size:10px}.statusline #syncStatus:before{content:'●';color:#20b68e;margin-right:6px}.alert{padding:11px 14px;border:1px solid #f1d9b6;background:#fffaed;color:#916821;border-radius:9px;margin-bottom:16px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:16px}.kpi{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:20px 19px;min-height:139px}.kpi-label{display:flex;justify-content:space-between;align-items:center;font-weight:850;letter-spacing:1.2px;font-size:10px;color:#6f88a0}.kpi-value{margin-top:18px;font-size:28px;letter-spacing:-1.1px;font-weight:850;color:#10283f;font-variant-numeric:tabular-nums}.kpi-sub{font-size:10px;color:#96a5b0;margin-top:8px;line-height:1.5}.kpi-icon{font-size:17px;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;letter-spacing:0}.kpi-icon.green{background:#e5f7ef;color:#0cad84}.kpi-icon.blue{background:#eaf2fb;color:#4e91d3}.kpi-icon.orange{background:#fef3e6;color:#e6a047}.kpi-icon.purple{background:#f1eafb;color:#9870d1}.chart-grid{display:grid;grid-template-columns:1.42fr 1fr;gap:15px;margin-bottom:16px}.chart-grid .large{min-width:0}.panel{min-width:0;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:21px 20px}.panel-title{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:18px}.panel-title h2{font-size:14px;font-weight:820;letter-spacing:-.2px;margin:0 0 4px}.panel-title p{font-size:10px;color:#98a6b0;margin:0}.tag{font-size:9px;background:#e8f7ef;color:#0c9570;border-radius:5px;padding:5px 7px;font-weight:800}.chart-slot{height:280px;min-height:210px;display:grid;align-items:center}.chart-slot svg{height:100%;width:100%}.chart-empty{display:grid;place-items:center;text-align:center;color:#97a8b4;font-size:12px;min-height:180px}.plot-grid{stroke:#eaf0f3;stroke-width:1}.plot-area{fill:rgba(12,165,129,.1)}.plot-line{stroke:#0da785;stroke-width:3;fill:none;stroke-linejoin:round}.plot-dot{stroke:#fff;stroke-width:2;fill:#0da785}.plot-label{fill:#93a5ae;font-size:11px}.bar-rows{display:flex;flex-direction:column;gap:19px;justify-content:center;min-height:205px}.bar-row{display:grid;grid-template-columns:minmax(70px,125px) minmax(40px,1fr) 88px;align-items:center;gap:10px}.bar-name{font-size:11px;color:#49677b;white-space:normal;line-height:1.35;overflow-wrap:anywhere}.bar-track{height:7px;background:#eaf0f3;border-radius:99px;overflow:hidden}.bar-fill{height:100%;background:#0fb090;border-radius:99px}.bar-val{text-align:right;white-space:nowrap;color:#3b5368;font-size:10px;font-weight:800}.scroll-table{width:100%;overflow:auto;max-height:415px}.scroll-table table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}.scroll-table th{background:#f6f9fb;color:#7891a4;font-size:9px;letter-spacing:.65px;font-weight:820;padding:12px 10px;position:sticky;top:0}.scroll-table td{padding:12px 10px;border-bottom:1px solid #edf1f4;color:#425c70;max-width:300px}.scroll-table tr:last-child td{border-bottom:none}.num{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}.scroll-table td:last-child{font-weight:760;color:#087d67}.donut-wrap{display:flex;justify-content:center;align-items:center;gap:24px;min-height:230px}.donut{width:166px;height:166px;border-radius:50%;flex:none;display:grid;place-items:center;background:#e6eef2}.donut>div{border-radius:50%;width:118px;height:118px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.donut strong{font-size:18px;letter-spacing:-.5px}.donut small{font-size:8px;color:#99a9b2;letter-spacing:1px;font-weight:800}.legend{min-width:140px;display:grid;gap:13px}.legend-row{display:flex;align-items:center;gap:9px;color:#4f677a;font-size:11px}.legend-dot{height:8px;width:8px;border-radius:50%;flex:none}.legend-row span.name{flex:1;min-width:50px;overflow-wrap:anywhere}.legend-row strong{font-size:10px}.notice{border:1px solid #ddece7;border-radius:10px;background:#f1faf6;color:#5b786e;padding:13px 16px;font-size:11px;line-height:1.7;margin:3px 0 16px}.footer{margin-top:26px;text-align:center;color:#a1afb8;font-size:10px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-content{padding:10px 0;font-size:12px;line-height:2.3;white-space:pre-wrap;overflow-wrap:anywhere}.help{font-size:11px;color:#90a2ab}.empty-panel{text-align:center;background:white;border:1px solid var(--line);border-radius:14px;padding:68px 22px;min-height:310px}.empty-symbol{font-size:44px;color:#5dbba4}.empty-panel h2{font-size:23px}.empty-panel p{max-width:440px;margin:0 auto;color:var(--muted);line-height:1.6}.empty-pill{display:inline-block;margin-top:28px;background:#edf8f3;color:#219879;padding:8px 12px;border-radius:100px;font-size:10px;font-weight:800;letter-spacing:1px}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr;background:#f6f9fa}.auth-aside{background:linear-gradient(145deg,#0d2438,#123b45);color:white;padding:55px 8%;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.auth-logo{font-size:22px;font-weight:850;letter-spacing:2px}.auth-logo span,.auth-logo em{color:#39ddb1}.auth-logo em{font-style:normal}.auth-message h1{font-size:50px;line-height:1.12;letter-spacing:-2px;margin:20px 0}.auth-message p{font-size:15px;line-height:1.9;color:#adc6c8;max-width:430px}.auth-orbit{display:flex;gap:16px;margin-top:38px}.auth-orbit span{border:1px solid #285d64;border-radius:50%;display:grid;place-items:center;width:62px;height:62px;color:#71d7c0}.auth-note{font-size:10px;letter-spacing:1.8px;color:#7895a6}.auth-center{display:grid;place-items:center;padding:35px}.auth-card{max-width:430px;width:100%;background:white;padding:45px;border-radius:17px;box-shadow:0 9px 40px rgba(12,42,58,.07)}.auth-card .logo-icon{font-size:40px;margin:0 auto 19px}.auth-card h2{text-align:center;margin:0;font-size:25px}.auth-card>p:not(.error){text-align:center;color:var(--muted);line-height:1.7;margin:13px 0 31px}.auth-card label{display:block;font-weight:750;margin:14px 0 7px;color:#536879;font-size:11px}.auth-card input{width:100%;border:1px solid #dfe8ee;border-radius:9px;padding:13px;outline-color:#62c9ac}.auth-card button{margin-top:24px;padding:14px}.auth-help{text-align:center;color:#91a4b0;margin-top:18px;font-size:11px}.error{padding:10px;background:#fff3f1;border:1px solid #f1c6be;border-radius:7px;color:#b04f44;font-size:11px;line-height:1.5}
@media(max-width:1230px){.sidebar{width:205px;min-width:205px}.main{padding:25px 22px}.topbar{padding:0 20px}.filters{gap:9px}.kpi-value{font-size:23px}.bar-row{grid-template-columns:minmax(75px,110px) 1fr 73px}}@media(max-width:930px){.sidebar{width:72px;min-width:72px;padding:23px 9px}.brand{padding:0 5px 35px}.brand>div:last-child,.nav-kicker,.nav-btn i,.sidebar-bottom{display:none}.nav-btn{font-size:0;justify-content:center;padding:10px}.nav-btn span{font-size:21px}.nav-btn.selected{padding:10px}.chart-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,1fr)}.donut-wrap{min-height:190px}}@media(max-width:630px){.sidebar{width:54px;min-width:54px;padding:17px 4px}.brand-icon{font-size:25px}.main{padding:19px 14px}.topbar{padding:0 13px}.top-heading{align-items:start;flex-direction:column}.top-heading h1{font-size:25px}.top-right{gap:7px}.sync-badge{display:none}.user-badge strong{max-width:100px}.auth-screen{grid-template-columns:1fr}.auth-aside{display:none}.auth-card{padding:30px 24px}.kpi-grid{gap:9px}.kpi{min-height:119px;padding:14px}.kpi-value{font-size:22px;margin-top:15px}.kpi-label{font-size:8px}.kpi-sub{font-size:9px}.filter-caption{width:100%}.filters label{flex:1;min-width:130px}.filters select,.filters input{max-width:none;width:100%}.bar-row{grid-template-columns:84px 1fr 70px;gap:6px}.donut-wrap{gap:15px;flex-wrap:wrap}.panel{padding:15px}.footer{line-height:1.6}}@media print{.sidebar,.topbar,.filters,.heading-tools,.statusline,.footer,.btn{display:none!important}.page-area,.main{display:block;margin:0;padding:0}.panel,.kpi{break-inside:avoid;box-shadow:none}.chart-grid{grid-template-columns:1fr 1fr}.hidden{display:none!important}body{background:white}}


/* NEXUS BI 2.1 / Operations */
.ops-intro{display:flex;justify-content:space-between;gap:16px;margin:0 0 18px}.ops-intro h2{font-size:17px;color:#10293f;margin:0 0 6px}.ops-intro p{max-width:850px;color:#718096;font-size:12px;margin:0;line-height:1.6}.ops-tabs{display:flex;gap:8px;margin:2px 0 17px;flex-wrap:wrap}.ops-tab{border:1px solid #dce6ea;border-radius:10px;padding:12px 17px;background:#fff;font-size:12px;font-weight:750;color:#527183;cursor:pointer}.ops-tab:hover{border-color:#24a889}.ops-tab.active{background:#e5f6ef;border-color:#19a98c;color:#087a66}.ops-panel{margin-top:16px}.ops-filterrow{display:flex;flex-wrap:wrap;align-items:end;gap:11px;margin:15px 0 17px}.ops-filterrow label{display:flex;flex-direction:column;gap:5px;min-width:155px;flex:1;font-size:10px;font-weight:700;color:#6d8090}.ops-filterrow label:first-child{min-width:230px;flex:2}.ops-filterrow input,.ops-filterrow select{height:37px;width:100%;box-sizing:border-box;border-radius:8px;border:1px solid #dfe6ea;background:#fff;color:#143248;padding:0 10px;font-size:12px}.ops-filterrow .btn{height:37px}.ops-scroll{max-height:560px;overflow:auto}.ops-scroll table{min-width:1080px}.ops-scroll td{font-size:12px;vertical-align:top;white-space:normal}.ops-scroll td:nth-child(2){min-width:165px}.ops-scroll td:nth-child(9){min-width:210px}.ops-status{font-size:11px;font-weight:700;padding:5px 7px;border-radius:7px;background:#edf4f8;color:#526d81;display:inline-block;white-space:nowrap}.ops-status.ok{background:#e5f7ed;color:#067f60}.ops-status.warn{background:#fff4db;color:#906106}.ops-status.danger{background:#fff0ef;color:#ad4d43}.ops-kpis .kpi-value{font-size:27px}.ops-note{color:#7b8e99}
@media(max-width:950px){.ops-filterrow label:first-child{min-width:190px}.ops-tabs .ops-tab{flex:1}}

/* NEXUS BI 2.2 additions */
.v22-extra{margin-bottom:16px}.v22-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.v22-kpis>div{background:#f4f8fa;border:1px solid #e2ebef;border-radius:10px;padding:15px}.v22-kpis small{display:block;font-size:10px;color:#7891a3;font-weight:700;margin-bottom:8px}.v22-kpis strong{font-size:20px;word-break:break-word;color:#15334a}.v22-inline{display:flex;align-items:center;gap:9px;font-size:11px;color:#637c8d}.v22-inline select{border:1px solid #dbe5e8;border-radius:8px;padding:7px 12px;background:white}.v22-extra .scroll-table{max-height:420px}.v22-extra .bar-rows{min-height:240px}.v22-extra .bar-row{grid-template-columns:120px 1fr 95px}
@media(max-width:750px){.v22-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.v22-extra .bar-row{grid-template-columns:70px 1fr 80px}}


/* NEXUS BI 2.2 - Self-service password change */
.password-dialog{border:1px solid #e1e9ed;border-radius:17px;padding:0;box-shadow:0 24px 65px rgba(9,31,49,.23);width:min(460px,calc(100vw - 30px));max-height:min(94vh,770px);overflow:auto;background:#fff;color:var(--text)}
.password-dialog::backdrop{background:rgba(8,27,41,.58)}
.password-dialog form{padding:28px 30px 26px}
.password-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.password-dialog-head h2{margin:7px 0 0;font-size:23px;letter-spacing:-.4px}
.password-dialog-close{border:1px solid var(--line);background:#fff;border-radius:9px;width:32px;height:32px;color:#617486;font-size:16px;cursor:pointer}
.password-dialog-desc{color:#698091;font-size:12px;line-height:1.7;margin:13px 0 22px}
.password-dialog form>label{display:block;font-weight:750;font-size:11px;color:#536879;margin:17px 0 7px}
.password-dialog input{display:block;width:100%;padding:12px 13px;border:1px solid #dce5eb;background:#fbfdfe;border-radius:8px;color:#173047;outline-color:#13ba9b;font-size:13px}
.password-hint{font-size:11px;color:#8a9baa;line-height:1.6;margin:14px 0 0}
.password-feedback{font-size:12px;line-height:1.6;border-radius:9px;padding:12px 13px;margin:16px 0 0}
.password-feedback.is-error{background:#fff3f0;border:1px solid #f4d1c8;color:#a64036}
.password-feedback.is-success{background:#eaf8f1;border:1px solid #c8e9d7;color:#087a56}
.password-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:22px}
.account-action{border-color:#dce9e7;color:#0b8971}
@media(max-width:630px){.account-action{padding:7px 8px;font-size:10px}.password-dialog form{padding:21px 18px 22px}.password-actions{flex-wrap:wrap}.password-actions .btn{flex:1}}
@media print{.password-dialog{display:none!important}}

/* VIKKAFE BI 2.2 BRAND OVERRIDES · Official vector artwork rasterized from LOGO - CMYK.pdf */
:root{--green:#159a78;--teal:#29b78b;--navy:#11273b;--navy2:#233f56}
.logo-panel{display:flex;align-items:center;justify-content:center;background:white;border-radius:13px;overflow:hidden}
.logo-panel img,.login-logo img{display:block;max-width:100%;height:auto;object-fit:contain}
.brand-vikkafe{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:1px 7px 27px}
.nav-logo{width:100%;padding:7px 9px;min-height:95px;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.nav-logo img{width:100%;max-height:102px}
.brand-name{font-size:12px;font-weight:780;color:#dfeeea;letter-spacing:2px;text-align:center}
.brand-name strong{display:inline;color:#70e3bd;margin-left:4px}
.brand-name small{display:block;color:#7f9eac;font-size:8px;letter-spacing:1.45px;margin-top:4px;font-weight:700}
.auth-logo .login-side-logo{width:min(360px,100%);padding:14px 19px;min-height:110px;box-shadow:0 8px 28px rgba(0,0,0,.12)}
.auth-logo .login-side-logo img{width:100%;max-height:124px}
.brand-byline{font-size:11px;letter-spacing:2px;margin-top:13px;color:#9bc0c4;font-weight:700}
.login-logo{display:flex;justify-content:center;margin:0 auto 20px;max-width:270px;padding:3px 16px}
.login-logo img{width:min(240px,100%)}
.auth-card h2{line-height:1.25}
.print-brand{display:none}
/* Keep the original multi-colour CMYK logo visible against the navy sidebar on white; no recolouring */
@media(max-width:930px){.sidebar{width:100px;min-width:100px;padding:18px 7px}.brand-vikkafe{padding:0 0 22px;gap:5px}.nav-logo{min-height:65px;padding:6px}.brand-name{font-size:9px;letter-spacing:.7px}.brand-name small{font-size:7px;letter-spacing:0}.nav-btn{font-size:0;justify-content:center}.nav-btn span{font-size:21px}}
@media(max-width:630px){.sidebar{width:62px;min-width:62px;padding:14px 4px}.brand-vikkafe{padding:0 0 17px}.nav-logo{min-height:43px;padding:2px;border-radius:6px}.brand-name{font-size:8px}.brand-name small{display:none}}
@media print{
 .print-brand{display:flex!important;align-items:center;gap:15px;padding:0 0 12px;margin-bottom:12px;border-bottom:2px solid #e4e9ed;break-inside:avoid}
 .print-brand img{width:150px;height:auto;max-height:60px;object-fit:contain}
 .print-brand div{display:flex;flex-direction:column;gap:3px;font-size:13px;color:#1e3647}
 .print-brand span{font-size:9px;letter-spacing:1.5px;color:#60798a}
}

/* Sidebar credit – requested single-line signature; official VIKKAFE logo unchanged */
.brand-powered-by{display:block;text-align:center;font-size:10.5px;font-weight:800;color:#e5f5f1;letter-spacing:.9px;line-height:1.45;white-space:nowrap;padding:3px 0 0}
@media(max-width:930px){.brand-powered-by{font-size:7px;letter-spacing:0;white-space:normal;overflow-wrap:normal}}
@media(max-width:630px){.brand-powered-by{display:none}}


/* ===== VIKKAFE 2.2 · Brand visual refresh (logo and credit unchanged) ===== */
/* Sidebar palette draws on Vikkafé teal/green, with subdued purple and warm coral undertones. */
.sidebar{
  background:
    radial-gradient(circle at 3% -5%, rgba(41,185,139,.23), transparent 40%),
    radial-gradient(circle at 115% 68%, rgba(238,131,87,.11), transparent 48%),
    linear-gradient(172deg,#103e4a 0%,#103744 48%,#102838 100%);
  border-right:1px solid rgba(110,219,190,.12);
}
.sidebar .nav-btn.selected{background:rgba(36,146,135,.27);border-left-color:#48dab1;color:#e4fff4}
.sidebar .nav-btn:hover{background:rgba(55,143,145,.20)}
.sidebar .nav-kicker{color:#8baeb8}
.sidebar .sidebar-bottom{border-top-color:rgba(157,212,207,.22)}
/* The login left panel is purely visual beneath the official brand. */
.auth-aside.auth-aside-vikkafe{
  isolation:isolate;
  position:relative;
  overflow:hidden;
  justify-content:flex-start;
  background:
    radial-gradient(circle at 82% 30%,rgba(38,181,146,.26) 0%, transparent 47%),
    radial-gradient(circle at 5% 85%,rgba(149,83,152,.22) 0%,transparent 39%),
    linear-gradient(142deg,#103442 0%,#0b3540 50%,#0a2735 100%);
  padding:49px 7% 35px;
}
.auth-aside-vikkafe::before{
  content:"";position:absolute;pointer-events:none;
  z-index:-1;left:-25%;bottom:-27%;width:70%;height:55%;border-radius:50%;
  background:radial-gradient(circle,rgba(230,139,95,.15),transparent 70%);
}
.auth-aside-vikkafe .auth-logo{position:relative;z-index:2;flex:0 0 auto}
.auth-aside-vikkafe .login-side-logo{width:min(345px,100%);padding:11px 14px;min-height:100px}
.auth-aside-vikkafe .brand-byline{
  margin-top:14px;color:#d9f4e9;font-size:11px;letter-spacing:1.75px;font-weight:750;
  line-height:1.6;text-shadow:0 2px 10px rgba(3,20,27,.4)
}
.auth-hero-art{
  pointer-events:none;position:absolute;z-index:1;right:-3.3%;bottom:-2%;width:83%;height:91%;
  display:flex;justify-content:flex-end;align-items:flex-end;
}
.auth-hero-art img{
  display:block;height:100%;max-width:100%;width:auto;object-fit:contain;object-position:right bottom;
  filter:drop-shadow(-14px 13px 27px rgba(2,18,24,.33));
}
@media(min-width:1500px){
  .auth-aside.auth-aside-vikkafe{padding-left:8%}
  .auth-hero-art{right:0;width:76%;height:92%}
}
@media(min-width:631px) and (max-width:1080px){
  .auth-aside.auth-aside-vikkafe{padding:32px 6%}
  .auth-aside-vikkafe .login-side-logo{width:min(285px,100%);min-height:80px}
  .auth-hero-art{right:-7%;width:92%;height:82%}
  .auth-aside-vikkafe .brand-byline{font-size:9.5px;letter-spacing:1.15px}
}
@media(max-width:630px){
  /* Keep a compact brand panel on mobile instead of hiding it altogether. */
  .auth-screen{grid-template-columns:1fr}
  .auth-aside.auth-aside-vikkafe{display:block;min-height:224px;height:224px;padding:20px 21px}
  .auth-aside-vikkafe .auth-logo{max-width:62%}
  .auth-aside-vikkafe .login-side-logo{width:198px;max-width:100%;padding:8px;min-height:62px}
  .auth-aside-vikkafe .brand-byline{font-size:8px;letter-spacing:.55px;margin-top:8px}
  .auth-hero-art{height:235px;width:49%;right:0;bottom:-12px}
  .auth-center{padding:22px 15px 32px;display:block}
  .auth-card{margin:0 auto}
}
@media print{.auth-hero-art{display:none!important}}

/* VIKKAFE BI 2.2 – footer credit beneath login brand caption */
.auth-aside-vikkafe .auth-credit{
  display:block; margin-top:7px; color:#f1fff9; font-weight:850;
  font-size:11px; letter-spacing:1.8px; line-height:1.5;
  text-shadow:0 2px 9px rgba(1,25,28,.35);
}
@media(min-width:631px) and (max-width:1080px){
  .auth-aside-vikkafe .auth-credit{font-size:10px;letter-spacing:1.1px;margin-top:6px}
}
@media(max-width:630px){
  .auth-aside-vikkafe .auth-credit{font-size:9px;letter-spacing:.7px;margin-top:5px}
}

/* VIKKAFE 2.2 – đăng nhập sẵn sàng sử dụng trên Windows, điện thoại */
.login-password-wrap{position:relative;width:100%}
.login-password-wrap input{padding-right:66px}
.login-visibility{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:9px 10px!important;color:#167d70;font-size:11px!important;font-weight:800;min-height:35px;min-width:49px}
.login-visibility:hover,.login-visibility:focus-visible{background:#e7f7f0!important;border-radius:7px;outline-offset:1px}
.auth-card .login-logo{margin-bottom:15px}
.auth-card h2{font-weight:800;letter-spacing:-.45px}
.auth-aside-vikkafe .brand-byline,.auth-aside-vikkafe .auth-credit{max-width:390px}
@media(min-width:631px) and (max-width:1100px){
 .auth-aside.auth-aside-vikkafe{padding-left:5%;padding-right:4%}
 .auth-aside-vikkafe .login-side-logo{width:min(285px,100%)}
 .auth-center{padding:22px}
 .auth-card{padding:36px 28px}
}
@media(max-width:630px){
 .auth-aside.auth-aside-vikkafe{min-height:230px;height:230px}
 .auth-aside-vikkafe .brand-byline{max-width:290px;line-height:1.35}
 .auth-aside-vikkafe .auth-credit{max-width:290px;line-height:1.35}
 .auth-center{padding:20px 15px 34px}
 .auth-card{padding:26px 22px}
 .auth-card h2{font-size:23px}
 .login-visibility{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.auth-screen *{scroll-behavior:auto!important}}
/* Keep the decorative VIKKAFE illustration visible above the mobile gradient. */
@media(max-width:630px){
 .auth-aside-vikkafe .auth-hero-art{z-index:3!important}
 .auth-aside-vikkafe .auth-hero-art img{filter:none}
}


/* =====================================================================
   VIKKAFE BI 2.2 · EXECUTIVE LIGHT / 2026-11-24 · UI LAYER ONLY
   No data, auth, RLS, RPC, status, export or backend mutations.
   ===================================================================== */
:root{--green:#009c75;--teal:#12b88f;--navy:#10283b;--line:#e3ebf0;--bg:#f3f7fa;--text:#102841;--muted:#71899d;--shadow:0 7px 24px rgba(13,51,70,.055)}
body{background:var(--bg);-webkit-font-smoothing:antialiased}
.sidebar{background:radial-gradient(ellipse at 0% 0%,rgba(25,186,137,.23),transparent 50%),linear-gradient(168deg,#063f44 0%,#092d3b 61%,#0c293b 100%);border-right:1px solid #163e47}
.sidebar .nav-btn{color:#c9e3e3;font-weight:690;transition:background .14s ease,color .14s ease,transform .14s ease}
.sidebar .nav-btn.selected{color:white;background:linear-gradient(90deg,#009e7b91,#12b99950);border-left:3px solid #52ffbe;box-shadow:inset 0 0 18px #00b48e12}
.sidebar .nav-btn:hover{color:white;transform:translateX(1px)}
.sidebar .nav-kicker{color:#9cbac4;letter-spacing:2.4px}
.page-area{background:linear-gradient(180deg,#fff 0%,#f4f8fa 165px,#f3f7fa 100%)}
.topbar{height:62px;padding:0 29px;border-color:#e5eef1;background:#fff}
.main{max-width:1700px;padding:28px 29px 34px}
.top-heading{margin-bottom:21px;border-left:6px solid #06b883;padding-left:24px;min-height:66px}
.top-heading h1{font-size:29px;letter-spacing:-.7px;color:#0e2b41;font-weight:850}
.top-heading p{color:#778da0;line-height:1.5}
.eyebrow{color:#008c72;letter-spacing:2.3px;font-size:10px}
.heading-tools .btn,.topbar .btn{border-radius:10px}
.btn.primary{background:linear-gradient(135deg,#0caf89 0%,#078b70 100%);border-color:#079b77;box-shadow:0 7px 14px #0a9e7521}
.btn.primary:hover{filter:brightness(.96)}
.btn:focus-visible,.nav-btn:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #08b08a;outline-offset:2px}
.filters{border-radius:15px;border:1px solid #dfe9ee;padding:15px 19px;box-shadow:0 5px 23px #14364e0a;gap:10px}
.filters label{font-weight:760;color:#69839a;letter-spacing:.05px}
.filters select,.filters input{background:linear-gradient(180deg,#fff,#f9fbfd);color:#193b52;border-color:#dce8ec;border-radius:8px;min-height:38px;box-shadow:0 1px 2px #17374d06}
.filter-caption{color:#486b81;letter-spacing:1.4px}
.statusline{color:#78909e;padding-inline:3px}
.kpi-grid{gap:14px;margin-bottom:15px}
.kpi{position:relative;overflow:hidden;background:linear-gradient(135deg,#fff 65%,#fafeff 100%);border-color:#e0eaf0;border-radius:15px;min-height:144px;padding:17px 19px;box-shadow:0 7px 25px #123d570d;transition:transform .16s ease,box-shadow .16s ease}
.kpi:hover{transform:translateY(-2px);box-shadow:0 13px 30px #123d5715}
.kpi-label{color:#506f89;font-size:10px;letter-spacing:.6px;font-weight:840}
.kpi-value{color:#082841;font-size:clamp(21px,2vw,29px);letter-spacing:-.9px;margin-top:16px;position:relative;z-index:1}
.kpi-sub{color:#859ba9;font-size:10px;line-height:1.5;max-width:95%;position:relative;z-index:1}
.kpi-icon{border-radius:11px;font-weight:800;font-size:18px;width:34px;height:34px}
.kpi-icon.green{background:#e4faf0;color:#00a876}.kpi-icon.blue{background:#e9f3ff;color:#2889d5}.kpi-icon.orange{background:#fff2e2;color:#f29b2e}.kpi-icon.purple{background:#f2eafd;color:#9373d3}
.kpi .mini-spark{position:absolute;width:111px;bottom:14px;right:12px;opacity:.85;z-index:0;pointer-events:none}
.kpi .mini-spark svg{width:100%;height:auto;display:block}
.kpi:has(.mini-spark) .kpi-sub{max-width:64%}
.kpi .exec-text-value{font-size:clamp(17px,1.5vw,24px);line-height:1.24;overflow-wrap:anywhere}
.panel{border-color:#e0eaf0;border-radius:16px;background:#fff;box-shadow:0 7px 25px rgba(12,56,77,.055);padding:21px 22px}
.chart-grid{gap:14px;margin-bottom:15px}
.panel-title{margin-bottom:17px}.panel-title h2{font-size:15px;color:#103046;font-weight:850;letter-spacing:-.25px}.panel-title p{color:#8aa0ad;font-size:10.5px;line-height:1.45}
.chart-slot{height:307px;min-height:240px;display:flex;align-items:stretch;justify-content:stretch}
.chart-slot svg{display:block;width:100%;height:100%;overflow:visible}
.plot-grid{stroke:#e8f0f4;stroke-width:1;stroke-dasharray:2 0}
.plot-line{stroke:#00a67d;stroke-width:3.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.plot-dot{stroke:white;stroke-width:2.3;fill:#00ac82;filter:drop-shadow(0 1px 1px #09584230)}
.plot-label{fill:#869bad;font-size:11px;font-weight:500}
.bar-rows{gap:14px;min-height:210px}.bar-row{grid-template-columns:minmax(110px,170px) minmax(45px,1fr) minmax(68px,100px);gap:12px}
.bar-name{font-size:11px;line-height:1.3;color:#4d6b82;font-weight:660}
.bar-track{height:11px;background:#e9f0f4;border-radius:100px}
.bar-fill{background:linear-gradient(90deg,#11c896,#00996f);border-radius:100px;box-shadow:inset 0 1px 1px #ffffff50}
.bar-fill.is-negative{background:#e28475}
.bar-val{color:#1c4559;font-size:11px}
.region-compact{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 23px}
.scroll-table{border:1px solid #edf2f5;border-radius:11px;max-height:480px}
.scroll-table th{background:#f4f8fb;color:#658098;padding:11px;font-size:9px}
.scroll-table td{padding:11px;color:#36546b}.scroll-table tbody tr:nth-child(even){background:#fbfdfe}.scroll-table tbody tr:hover{background:#f0faf7}
.donut-wrap{gap:22px}.donut{width:174px;height:174px;box-shadow:0 0 0 7px #f6fbfa}.donut>div{width:120px;height:120px}.donut strong{font-size:21px}
.legend-row{color:#42637a;font-size:11px}.legend-row strong{color:#173a51}
.tag{border-radius:8px;color:#09876b;background:#e6f9f0;padding:7px 10px}
.notice{background:#f2faf7;border:1px solid #deeee7;color:#57796a;border-radius:12px;padding:14px 17px}
.report-added{margin-bottom:15px}
.insight-panel{background:linear-gradient(130deg,#fff 15%,#f2fcf9 100%)}
.insight-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.insight-row{display:flex;align-items:flex-start;gap:11px;border:1px solid #ddefe7;background:#ffffffca;border-radius:11px;padding:14px;min-height:75px}
.insight-symbol{flex:none;font-size:18px;color:#039c79;background:#dff8ed;border-radius:9px;width:32px;height:32px;display:grid;place-items:center}
.insight-row p{margin:0;color:#345668;font-size:12px;line-height:1.65;font-weight:620}
.insight-empty{color:#7e96a5;font-size:12px}
.vbar{fill:#2ed19a}.vbar:nth-of-type(even){fill:#08ad83}
.exec-treemap{display:flex;align-items:stretch;min-height:255px;gap:8px;overflow:hidden;border-radius:12px}
.exec-treemap-item{min-width:92px;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:18px;color:#fff;border-radius:11px;min-height:245px;background:linear-gradient(155deg,#047b67,#01af7c)}
.exec-treemap-item strong{font-size:27px;letter-spacing:-.8px}.exec-treemap-item small{font-size:12px}.tree-name{font-size:13px;font-weight:780}
.exec-treemap-item.shade-1{background:linear-gradient(160deg,#34bc9d,#81e8b4);color:#074d43}
.exec-treemap-item.shade-2{background:linear-gradient(160deg,#b6f1d8,#def9df);color:#064b43}
.exec-treemap-item.shade-3{background:linear-gradient(160deg,#f8cc83,#ffe5b4);color:#765019}
.exec-treemap-item.shade-4{background:linear-gradient(160deg,#b9a5ed,#e9e1fb);color:#503979}
.exec-treemap-item.shade-5{background:linear-gradient(160deg,#5bafcb,#bfe7ef);color:#204a61}
.stack-list{display:flex;flex-direction:column;gap:16px}.stack-legend{display:flex;gap:13px 18px;flex-wrap:wrap;margin-bottom:6px}
.stack-legend span{display:inline-flex;align-items:center;gap:7px;color:#4a6880;font-size:11px;font-weight:650}.stack-legend b{width:10px;height:10px;border-radius:3px}
.stack-row{display:grid;grid-template-columns:minmax(140px,190px) minmax(0,1fr) 84px;gap:12px;align-items:center}
.stack-label{color:#4b6b81;font-size:11px;font-weight:700}.stack-track{display:flex;height:20px;overflow:hidden;border-radius:6px;background:#e5f2f1}
.stack-segment{min-width:1px;transition:filter .1s ease}.stack-segment:hover{filter:brightness(1.15)}.stack-total{text-align:right;color:#20475c;font-size:10.5px}
.hour-ribbon{display:grid;grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:8px}.hour-cell{border-radius:9px;border:1px solid #d5eee3;min-height:67px;background:color-mix(in srgb,#04ac7e calc(var(--intensity)*88%),white);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;color:#174e46}
.hour-cell strong{font-size:13px}.hour-cell small{font-size:9px;font-weight:620;white-space:nowrap}
.empty-panel{border-radius:16px;box-shadow:var(--shadow);background:linear-gradient(135deg,#fff,#f0fbf8)}
.footer{padding-top:14px;border-top:1px solid #e2ebf0}
@media(max-width:1300px){.region-compact,.insight-list{grid-template-columns:1fr}.bar-row{grid-template-columns:minmax(95px,150px) 1fr 85px}.main{padding:25px 21px}}
@media(max-width:930px){.chart-grid{grid-template-columns:1fr}.sidebar{width:90px;min-width:90px}.insight-list{grid-template-columns:repeat(2,minmax(0,1fr))}.exec-treemap{flex-wrap:wrap}.exec-treemap-item{flex-basis:25%;min-height:120px}.hour-ribbon{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))}}
@media(max-width:630px){.sidebar{width:60px;min-width:60px}.main{padding:19px 11px}.top-heading{padding-left:13px;gap:12px}.topbar{padding:0 10px}.filters{padding:12px}.kpi-grid{gap:8px}.kpi{padding:13px;min-height:125px}.kpi-value{font-size:19px}.kpi .mini-spark{width:66px;bottom:8px}.kpi:has(.mini-spark) .kpi-sub{max-width:75%}.panel{padding:16px 12px}.chart-slot{height:244px}.insight-list{grid-template-columns:1fr}.exec-treemap-item{min-width:42%;flex-basis:42%;min-height:108px;padding:11px}.exec-treemap-item strong{font-size:19px}.stack-row{grid-template-columns:80px minmax(0,1fr) 54px;gap:7px}.stack-label,.stack-total{font-size:9px}.bar-row{grid-template-columns:72px minmax(0,1fr) 60px;gap:6px}.bar-name,.bar-val{font-size:9px}}
@media print{.main{padding:0}.insight-row,.panel,.kpi{box-shadow:none!important;break-inside:avoid}.sidebar,.topbar,.filters,.heading-tools{display:none!important}.report-added{break-inside:avoid}}
@media(prefers-reduced-motion:reduce){.kpi,.nav-btn,.stack-segment{transition:none!important}}

/* Executive Light: monthly growth combo and accurate sync status */
.growth-line{fill:none;stroke:#0f8cae;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}.growth-dot{fill:#0b8fab;stroke:white;stroke-width:2}.exec-legend{display:flex;align-items:center;justify-content:center;gap:25px;flex-wrap:wrap;color:#58738a;font-size:11px;font-weight:700;margin:7px 0 0}.exec-legend span{display:inline-flex;align-items:center;gap:7px}.legend-square{height:10px;width:10px;border-radius:2px;background:#27ca94}.legend-line{display:inline-block;width:18px;height:3px;border-radius:4px;background:#0f8cae}.sync-snapshot{display:flex;align-items:center;gap:14px;padding:15px 18px;background:#ecfaf5;border:1px solid #d4eee5;border-radius:10px;color:#176950}.sync-snapshot-icon{width:35px;height:35px;display:grid;place-items:center;background:#cbf6e2;border-radius:10px;color:#078c6f;font-size:21px}
@media(max-width:630px){.topbar{height:auto;min-height:64px;flex-wrap:wrap;align-items:flex-start;gap:7px;padding:8px 9px}.topbar .crumb{width:100%}.topbar .top-right{width:100%;max-width:100%;gap:3px;justify-content:space-between}.topbar .user-badge{gap:4px;min-width:0;flex:1}.topbar .user-badge strong{max-width:88px;font-size:9px}.topbar .user-badge small{font-size:8px}.topbar .btn.small{padding:6px 5px;font-size:9px}.topbar .avatar{height:24px;width:24px;min-width:24px}.topbar .sync-badge{display:none}}

.vbar-negative{fill:#e18d83!important}

/* ===================================================================
   EXECUTIVE LIGHT V2 — MATCH APPROVED CONCEPT / 24-11-2026
   UI-only. All values sourced from existing Supabase RPC, no mock data.
   =================================================================== */
:root{--green:#05ae80;--teal:#10b991;--navy:#0b2939;--line:#dfe9ef;--bg:#f2f7fa;--text:#0b2840;--muted:#7b94a5;--shadow:0 6px 22px #153e5710}
.page-area{background:#f3f8fa}
.main{max-width:1780px;padding:24px 25px 36px}
.topbar{height:60px;border-bottom:1px solid #e4edf0;background:#ffffffed}
.sidebar{background:linear-gradient(165deg,#063e3d,#092e3a 56%,#0a2a3d);box-shadow:inset -1px 0 rgba(255,255,255,.06)}
.sidebar .nav-btn{min-height:44px;font-weight:730;letter-spacing:-.08px;font-size:12px}
.sidebar .nav-btn.selected{background:linear-gradient(95deg,#08b58a9e,#0aa67b38);color:#fff;border-left:4px solid #5af5bb}
.sidebar .nav-btn i{color:#a5c5ca}
.brand-vikkafe{padding-bottom:26px}
.brand-powered-by{font-weight:900;letter-spacing:.55px}
.top-heading{padding-left:22px;border-left:6px solid #0cbd8b;margin:10px 0 21px;min-height:61px}
.top-heading h1{font-size:29px;font-weight:900;letter-spacing:-.8px;margin:6px 0}
.top-heading p{font-size:11.5px}
.eyebrow{color:#018c70;letter-spacing:2.2px}
.filters{padding:14px 15px;gap:10px;border-radius:15px;margin-bottom:8px}
.filter-caption{min-width:120px;color:#56788a;font-weight:900}
.filters label{color:#637f92;font-size:10px}
.filters select,.filters input{border:1px solid #d9e5ec;background:#fbfdfe;min-height:39px}
.statusline{margin-top:9px;margin-bottom:14px}
.kpi-grid{gap:11px;margin-bottom:13px}
.kpi.executive-kpi{min-height:128px;padding:16px 16px 14px;border-radius:14px;box-shadow:0 5px 22px #163b5010}
.kpi-meta{display:flex;align-items:center;gap:10px}
.kpi-title{font-size:12px;letter-spacing:-.12px;font-weight:830;color:#2b4960}
.kpi.executive-kpi .kpi-icon{order:0;flex:none;display:grid;place-items:center;width:39px;height:39px;border-radius:13px;font-size:20px}
.kpi.executive-kpi .kpi-value{margin-top:10px;font-size:clamp(20px,1.8vw,28px);font-weight:900;color:#0b2a41;letter-spacing:-.7px}
.kpi.executive-kpi .kpi-sub{margin-top:5px;font-size:9px;color:#7991a0;line-height:1.35}
.kpi.executive-kpi .kpi-compare{font-size:10px;min-height:15px;margin-top:5px;font-weight:780;color:#049b70}
.kpi.executive-kpi .kpi-compare.is-muted{color:#95a6b0;font-weight:600}
.kpi.executive-kpi .kpi-compare.is-down{color:#bc6353}
.kpi.executive-kpi .mini-spark{width:94px;bottom:10px;opacity:.8}
.kpi.executive-kpi:has(.mini-spark) .kpi-sub{max-width:67%}
.panel{padding:18px 19px;border-radius:15px;border:1px solid #e0eaf0;box-shadow:0 5px 20px #163e5910}
.panel-title{align-items:center;margin-bottom:13px}
.panel-title h2{font-size:14px;font-weight:850;color:#0d2b42}
.panel-title p{font-size:10px;color:#8097a7;margin-top:3px}
#module-overview>.chart-grid{grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:12px;margin-bottom:13px}
#module-overview .chart-slot{height:268px;min-height:230px}
.trend-tools{display:flex;border:1px solid #dce9ee;border-radius:20px;padding:3px;gap:2px;background:#f6fafb}
.trend-switch{border:0;min-width:75px;padding:7px 11px;border-radius:18px;background:transparent;color:#516d80;font-size:10px;font-weight:750}
.trend-switch.active{background:linear-gradient(135deg,#009a79,#087a65);color:#fff;box-shadow:0 3px 8px #098b6b24}
.region-rank-row{display:grid;grid-template-columns:minmax(120px,147px) minmax(0,1fr) minmax(90px,118px);align-items:center;gap:10px;min-height:30px}
.region-rank-name{font-size:10px;line-height:1.2;color:#47647b;font-weight:670}
.region-rank-track{height:9px;background:#e8eff3;overflow:hidden;border-radius:100px}
.region-rank-fill{height:100%;background:linear-gradient(90deg,#0bc499,#06a17a);border-radius:100px;min-width:1.5px}
.region-rank-value{text-align:right;display:flex;gap:5px;align-items:center;justify-content:flex-end;white-space:nowrap}
.region-rank-value strong{font-size:10.5px;color:#1a3950}
.region-rank-value small{font-size:9px;color:#7996a7}
.executive-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.24fr) minmax(0,1.01fr);gap:12px;margin:0 0 12px;align-items:stretch}
.executive-bottom-grid>.panel{min-width:0;margin:0;min-height:250px}
.executive-bottom-grid .donut-wrap{gap:15px;min-height:188px;align-items:center;justify-content:space-between}
.executive-bottom-grid .donut{height:135px;width:135px;box-shadow:none}
.executive-bottom-grid .donut>div{height:93px;width:93px}
.executive-bottom-grid .donut strong{font-size:17px}
.executive-bottom-grid .legend{min-width:0;flex:1;gap:10px}
.executive-bottom-grid .legend-row{font-size:10px;gap:6px}
.executive-bottom-grid .legend-row strong{font-size:10px}
.executive-stores .scroll-table{max-height:none;overflow:visible;border:0}
.executive-stores .scroll-table table{font-size:10px}
.executive-stores .scroll-table th{padding:7px 5px;color:#79919e;font-size:9px;letter-spacing:0}
.executive-stores .scroll-table td{padding:9px 5px;font-size:10px;max-width:170px}
.executive-stores .scroll-table td.ranking-number{font-weight:900;color:#0ba57f;width:25px}
.executive-stores .scroll-table td.ranking-name{font-weight:740;color:#31516a}
.executive-stores .scroll-table td.ranking-sum{color:#058e72}
.executive-insights{background:linear-gradient(135deg,#f5fffb,#e9f8f1);border-color:#d1f0e1}
.executive-insights .insight-list{grid-template-columns:1fr;gap:0}
.executive-insights .insight-row{border:0;border-bottom:1px solid #d4eae0;border-radius:0;padding:10px 0;background:transparent;min-height:55px;gap:9px}
.executive-insights .insight-row:last-child{border-bottom:0}
.executive-insights .insight-symbol{width:31px;height:31px;flex:none;font-size:17px}
.executive-insights .insight-row p{font-size:10px;line-height:1.5;color:#305869}
#module-overview>.notice{font-size:9px;margin-top:9px;background:transparent;color:#8498a4;padding:8px 10px;border:0}
#module-products .low-volume-panel .bar-rows{min-height:0}
.low-volume-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.low-volume-row{display:flex;align-items:center;gap:9px;min-height:41px;padding:9px 11px;border:1px solid #e9f0f4;border-radius:9px;background:linear-gradient(90deg,#f9fcfd,#fff)}
.low-volume-ordinal{font-size:10px;font-weight:900;color:#17a788;min-width:22px}
.low-volume-name{flex:1;color:#37556a;font-size:10.5px;font-weight:650;overflow-wrap:anywhere}
.low-volume-qty{flex:none;border-radius:20px;padding:5px 7px;background:#eef8f4;color:#24795e;font-size:10px;font-weight:850}
#module-analytics .chart-slot{max-height:285px}
#module-sales .chart-slot{max-height:270px}
#module-products .exec-treemap-item{min-height:205px}
#module-stores .bar-rows,#module-products .bar-rows{gap:12px}
#module-sales .panel,#module-analytics .panel,#module-stores .panel,#module-products .panel,#module-payments .panel,#module-regpay .panel{margin-bottom:4px}
@media(max-width:1470px){
 .executive-bottom-grid{grid-template-columns:1fr 1.14fr}.executive-insights{grid-column:span 2}
 .executive-insights .insight-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
 .executive-insights .insight-row{border-right:1px solid #d6ece3;border-bottom:0;padding:6px 10px}
 .executive-insights .insight-row:last-child{border-right:0}
}
@media(max-width:1080px){
 #module-overview>.chart-grid{grid-template-columns:1fr}
 .region-rank-row{grid-template-columns:minmax(110px,200px) minmax(0,1fr) 115px}
 .executive-bottom-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:850px){
 .executive-bottom-grid{grid-template-columns:1fr}
 .executive-insights{grid-column:auto}
 .executive-insights .insight-list{grid-template-columns:1fr}
 .executive-insights .insight-row{border-right:0;border-bottom:1px solid #d6ece3}
}
@media(max-width:630px){
 .main{padding:16px 9px 30px}
 .top-heading{padding-left:12px}
 .kpi.executive-kpi{padding:12px 10px;min-height:137px}
 .kpi-title{font-size:10px}
 .kpi.executive-kpi .kpi-icon{width:30px;height:30px;font-size:16px}
 .kpi.executive-kpi .kpi-value{font-size:18px}
 .kpi.executive-kpi .mini-spark{width:67px}
 .panel{padding:15px 12px}
 .region-rank-row{grid-template-columns:minmax(65px,100px) 1fr minmax(60px,88px);gap:5px}
 .region-rank-name{font-size:9px}.region-rank-value{display:block}.region-rank-value strong,.region-rank-value small{display:block;font-size:9px}
 .low-volume-list{grid-template-columns:1fr}
 .trend-switch{min-width:52px;padding:6px 7px}
}
@media print{.trend-tools{display:none!important}.executive-bottom-grid{grid-template-columns:1fr 1.3fr 1fr;gap:8px}.executive-insights .insight-list{display:block}}

.growth-caution{font-size:10px;line-height:1.5;color:#738e9e;background:#f4f9fb;border-left:3px solid #8fc8b8;border-radius:4px;padding:8px 11px;margin:7px 0 8px}

/* VIKKAFE IN BANK · BRAND EXECUTIVE LIGHT V3 / 24-11-2026
   Visual-only layer except responsive navigation. CSS does not calculate KPIs.
   Approved palette: Be Vietnam Pro, brown text, beige accents, Vikkafe green,
   blue / purple / orange / red semantic charts. All financial numbers come from RPC. */
:root{
  --brown:#4a210e; --brown-soft:#76503b; --beige:#cda580;
  --cream:#fff9ef; --cream-2:#fffdf7; --green:#00b949;--green-deep:#008d4f;
  --blue:#1268f5;--purple:#751be6;--orange:#ffb958;--red:#fa432b;
  --navy:#00493f;--navy2:#073e39;
  --text:#4a210e;--muted:#937d6d;--line:#efe2d3;--bg:#fff9f0;
  --shadow:0 6px 22px rgba(92,45,16,.065);
}
html,body{font-family:'Be Vietnam Pro',Arial,sans-serif;color:var(--brown);background:var(--bg)}
body{letter-spacing:-.1px;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
.workspace{min-height:100vh}
.sidebar{width:221px;min-width:221px;background:linear-gradient(157deg,#004a41 0%,#005447 48%,#003b37 100%);border-right:1px solid #1b7466;box-shadow:3px 0 14px #113d3212}
.sidebar .brand-vikkafe{padding:18px 15px 25px;gap:9px}
.sidebar .nav-logo{min-height:93px;border-radius:13px;padding:9px 11px;background:#fff;box-shadow:0 9px 16px #00261c22}
.sidebar .nav-logo img{max-height:95px}
.sidebar .brand-powered-by{font-weight:850;letter-spacing:.25px;font-size:10px;color:#fff;text-align:center}
.sidebar .nav-kicker{padding:10px 20px 9px;font-size:9px;letter-spacing:2.1px;color:#b6dbcd;font-weight:900}
.sidebar .nav-kicker.more{margin-top:17px}
.sidebar .nav-btn{min-height:43px;margin:3px 12px;width:calc(100% - 24px);color:#e7faf4;font-weight:650;font-size:11px;border-radius:9px;letter-spacing:0;padding:9px 12px;gap:9px;transition:background .18s ease}
.sidebar .nav-btn span{font-size:15px;min-width:22px;text-align:center}
.sidebar .nav-btn.selected{background:linear-gradient(90deg,#00934f,#03aa62);color:#fff;border-left:3px solid #8af0a7;box-shadow:0 5px 15px #022e2d2a}
.sidebar .nav-btn:hover{background:#ffffff20;transform:none}
.sidebar .nav-btn.selected:hover{background:linear-gradient(90deg,#008d4c,#05ad63)}
.sidebar .nav-btn i{background:#ffffff20;color:#e3f9ef;padding:3px 5px;border-radius:12px;font-size:8px}
.sidebar .sidebar-bottom{border-color:#ffffff30;padding:18px 15px;color:#e6f9ef}
.sidebar-bottom small{font-size:9px;color:#bddecd}
.sidebar-bottom .online>span{background:#1dd16f}
.page-area{background:linear-gradient(165deg,#fffaf2 0%,#fffdf8 130px,#fff8ef 100%);min-width:0}
.topbar{height:57px;padding:0 22px;gap:12px;background:#fffdf9;border-bottom:1px solid #eadbcc;box-shadow:0 1px 5px #6e452e06}
.topbar .crumb{font-weight:750;color:var(--brown-soft);letter-spacing:.1px;font-size:11px}
.topbar .crumb span{color:#c3a68f;margin:0 12px}
.topbar .crumb strong{color:var(--brown)}
.top-style-label{display:inline-flex;align-items:center;padding:7px 12px;background:#e4f9eb;border-radius:24px;color:#007346;font-weight:740;font-size:10px;white-space:nowrap}
.topbar .user-badge strong{color:var(--brown);font-size:10px}
.topbar .user-badge small{color:var(--brown-soft);font-size:9px}
.topbar .avatar{background:#e3faed;color:#007a4b}
.topbar .sync-badge{background:#f0fbf4;color:#177746;border-color:#d5eedc}
.topbar .btn.small{font-size:10px}
.main{max-width:1900px;padding:20px 23px 36px}
.top-heading{border-left:6px solid #03bd55;margin:3px 0 17px;padding-left:20px;min-height:66px;gap:10px}
.top-heading h1{font-size:clamp(22px,2vw,29px);color:var(--brown);font-weight:900;letter-spacing:-.85px;margin:4px 0 3px}
.top-heading p{font-size:11px;color:var(--brown-soft)}
.eyebrow{font-weight:850;font-size:9.5px;color:#008f48;letter-spacing:1.6px}
.heading-tools{gap:10px}
.btn{font-weight:750}
.btn.subtle{color:var(--brown);background:#fffdf9;border:1px solid #eadacb;box-shadow:0 2px 6px #68432308}
.btn.primary{border:1px solid #00aa54;background:linear-gradient(105deg,#04c669,#009749);box-shadow:0 5px 12px #00a14d1c;color:white}
.btn.primary:hover{filter:brightness(.96)}
.btn:focus-visible,.nav-btn:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #13bc64;outline-offset:2px}
.filters{padding:12px 15px;margin-bottom:8px;border:1px solid #efdfce;box-shadow:0 4px 15px #663a1510;background:#fffdf9;border-radius:14px;gap:10px}
.filter-caption{font-size:10px;color:var(--brown);font-weight:900;letter-spacing:.1px;min-width:125px}
.filters label{color:var(--brown-soft);font-size:9px;font-weight:770;letter-spacing:0;min-width:112px}
.filters select,.filters input{border:1px solid #e7d9c9;background:linear-gradient(#fffdfb,#fffaf5);color:var(--brown);border-radius:9px;min-height:36px;font-size:10px;box-shadow:0 1px 2px #68422308}
.filters select:focus,.filters input:focus{border-color:#54bf7b}
.statusline{margin-top:7px;margin-bottom:11px;color:#9c8d7f;font-size:9px}
.statusline>span:first-child:before{content:'•';color:#00bd54;font-size:17px;margin-right:5px;vertical-align:middle}
.kpi-grid{gap:12px;margin-bottom:13px;grid-template-columns:repeat(4,minmax(0,1fr))}
.kpi,.kpi.brand-kpi{background:#fffefa;border:1px solid #f0e1d2;box-shadow:0 5px 16px #7543270c;border-radius:14px;min-width:0;min-height:118px;padding:15px 16px 14px;transition:transform .16s ease,box-shadow .16s ease}
.kpi:hover{box-shadow:0 8px 21px #73401d16;transform:translateY(-1px)}
.kpi-meta{display:flex;align-items:center;gap:10px;min-width:0}
.kpi-title{font-size:11px!important;color:var(--brown)!important;font-weight:800;line-height:1.4;letter-spacing:0;text-transform:none}
.kpi .kpi-icon,.kpi.executive-kpi .kpi-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:12px;font-size:19px}
.kpi-icon.green{color:#00b64d;background:#e4fbed}.kpi-icon.blue{color:#0b68ec;background:#e9f2ff}.kpi-icon.purple{color:#771ae8;background:#f4eafa}.kpi-icon.orange{color:#f7a922;background:#fff3dd}
.kpi .kpi-value,.kpi.executive-kpi .kpi-value{color:var(--brown);font-weight:900;font-size:clamp(19px,1.75vw,26px);letter-spacing:-.7px;line-height:1.2;margin-top:12px;overflow-wrap:anywhere}
.kpi .kpi-value.exec-text-value{font-size:clamp(15px,1.4vw,21px);line-height:1.35}
.kpi .kpi-sub{color:var(--brown-soft);font-size:9px;margin-top:7px;line-height:1.55}
.kpi .kpi-compare{color:#059c44;font-size:10px;font-weight:800;margin-top:7px}
.kpi .kpi-compare.is-muted{color:#9c8c7b;font-weight:550}.kpi .kpi-compare.is-down{color:var(--red)}
.kpi .mini-spark{bottom:10px;right:11px;width:90px}
.kpi:has(.mini-spark) .kpi-sub{max-width:66%}
.panel{background:#fffefa;border:1px solid #f0e2d4;border-radius:15px;padding:17px 18px;box-shadow:0 5px 18px #73421f0c;min-width:0}
.panel-title{margin-bottom:12px;min-width:0;gap:8px}
.panel-title h2{font-size:14px;color:var(--brown);font-weight:900;line-height:1.45;letter-spacing:-.35px}
.panel-title p{font-size:9.5px;color:#907b6b;line-height:1.55}
.chart-grid{gap:13px;margin-bottom:13px}
.chart-slot{height:275px;min-height:210px}
.plot-grid{stroke:#eee7df;stroke-width:1}
.plot-line{stroke:#03b94d;stroke-width:3.2;fill:none}
.plot-dot{fill:#00c14c;stroke:#fff;stroke-width:2.2}
.plot-label{fill:#9f8674;font-size:10px}
.growth-line{stroke:#1268f5!important}.growth-dot{fill:#1268f5!important}
.vbar{fill:#39d176}.vbar:nth-of-type(even){fill:#00ac55}.vbar-negative{fill:#fa4f3e!important}
.trend-switch,.ops-tab,.v22-inline select{color:var(--brown-soft);border-color:#eddccb;background:#fffdfa}
.trend-tools{border:1px solid #f0dfcf;background:#fff9f0}
.trend-switch.active,.ops-tab.active{color:#fff;background:#009a51;border-color:#009a51}
.region-rank-name,.bar-name,.stack-label{font-size:10px;color:var(--brown-soft);font-weight:700}
.region-rank-track,.bar-track{background:#e8eaf0}
.region-rank-fill,.bar-fill{background:linear-gradient(90deg,#33d270,#009a52)}
.region-rank-value strong,.bar-val,.stack-total{color:var(--brown);font-weight:800}
.region-rank-value small{color:#9d8a7b}
.region-rank-row{grid-template-columns:minmax(115px,158px) minmax(65px,1fr) minmax(94px,117px);min-height:34px;gap:9px}
.executive-bottom-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.16fr) minmax(0,1.04fr);gap:13px}
.executive-bottom-grid>.panel{min-height:265px}
.executive-insights{background:linear-gradient(135deg,#fffefa,#f6fff6);border:1px solid #ddf0dd}
.executive-insights .insight-row{border-color:#e5eee4}
.insight-panel{background:linear-gradient(140deg,#fffdf9,#f5fff5)}
.insight-row{background:#ffffffaa;border-color:#ebeadf}
.insight-symbol{color:#00ab50;background:#e3f9e9}
.insight-row p{font-size:10px;color:var(--brown);font-weight:670}
.executive-stores .scroll-table td,.executive-stores .scroll-table th{font-size:9px}
.executive-stores .scroll-table td.ranking-name{color:var(--brown);font-weight:750}
.scroll-table{border-color:#eee6dd;background:#fff;border-radius:11px}
.scroll-table table{width:100%}
.scroll-table th{background:#f9f3ea!important;color:#927763!important;font-weight:850;font-size:9px}
.scroll-table td{color:var(--brown-soft);font-size:10px;border-color:#f4ebe2}
.scroll-table tbody tr:nth-child(even){background:#fdf9f3}
.scroll-table tbody tr:hover{background:#f2faee}
.tag{color:#008b4f;background:#e7f9ec}
.legend-row{color:var(--brown-soft);font-size:10px}.legend-row strong{color:var(--brown)}
.donut{box-shadow:none}.donut strong{color:var(--brown)}.donut small{color:#b29b87}
.notice{background:#fffaf1;border:1px solid #f0e0cf;color:#886b57}
.growth-caution{background:#fff8ee;color:#937762;border-color:#f5bd67}
.v22-kpis>div{background:#fffaf3;border:1px solid #f1e3d2}
.v22-kpis strong{color:var(--brown)}.v22-kpis small{color:#9b846d}
.exec-treemap-item{border-radius:12px;background:linear-gradient(155deg,#068448,#39cd75)}
.exec-treemap-item.shade-1{background:linear-gradient(145deg,#078fd4,#65d0ff);color:#fff}
.exec-treemap-item.shade-2{background:linear-gradient(145deg,#6f1ce1,#c4a0ff);color:#fff}
.exec-treemap-item.shade-3{background:linear-gradient(145deg,#ff9a32,#ffd577);color:#643400}
.exec-treemap-item.shade-4{background:linear-gradient(145deg,#ff5639,#ffb2a0);color:#6b1700}
.exec-treemap-item.shade-5{background:linear-gradient(145deg,#2aa660,#aff6c5);color:#044b2c}
.exec-treemap{gap:7px}
.low-volume-list{grid-template-columns:1fr;gap:8px}
.low-volume-row{display:grid;grid-template-columns:26px minmax(110px,1fr) minmax(70px,1fr) 68px;gap:8px;align-items:center;background:#fffdfa;border:1px solid #f1e4d5;border-radius:9px;min-height:38px;padding:8px 11px}
.low-volume-name{font-size:10px;color:var(--brown);font-weight:730}
.low-volume-ordinal{color:#9253bd}
.low-volume-track{width:100%;height:9px;overflow:hidden;background:#f0ebf5;border-radius:50px}
.low-volume-fill{height:100%;background:linear-gradient(90deg,#8d39ef,#b66bf2);border-radius:50px}
.low-volume-qty{color:#783e9c;background:#f7effd;text-align:center;white-space:nowrap}
.exec-legend{color:var(--brown-soft)}.legend-square{background:#23c86b}.legend-line{background:#1069f9}
.stack-track{background:#f1eae3}
.stack-row{grid-template-columns:minmax(124px,170px) minmax(0,1fr) 83px}
.stack-legend span{color:var(--brown-soft)}
.hour-ribbon{gap:8px}
.hour-cell{background:linear-gradient(180deg,#fff7ea,#effcef);color:var(--brown);border:1px solid #efdfcb}
.hour-cell:hover{border-color:#34c765}
.heat-matrix-wrap{overflow:auto;max-width:100%}
.heat-matrix{border-collapse:separate;border-spacing:3px;min-width:490px;width:100%}
.heat-matrix th{font-size:9px;text-align:center;color:var(--brown-soft);font-weight:800;padding:9px 7px;background:#fff7ed}
.heat-matrix th:first-child{text-align:left;min-width:140px}
.heat-matrix td{font-size:10px;font-weight:850;color:var(--brown);text-align:center;padding:12px 5px;border-radius:6px;background:rgba(38,207,86,var(--heat))}
.chart-grid.sales-major-grid{grid-template-columns:minmax(0,1.55fr) minmax(0,.85fr)}
.chart-grid.sales-major-grid .chart-slot{height:275px}
.executive-three-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.22fr) minmax(0,1fr);gap:12px;margin-bottom:13px;align-items:stretch}
.executive-three-grid>.panel{margin:0!important;min-width:0}
.executive-three-grid .scroll-table{max-height:260px;overflow:auto}
.executive-three-grid .insight-list{display:grid;grid-template-columns:1fr;gap:8px}
.executive-three-grid .insight-row{min-height:auto;padding:9px 11px}
.stores-summary-grid .donut-wrap{display:flex;gap:13px;align-items:center}
.stores-summary-grid .donut{width:138px;height:138px;flex:none}
.stores-summary-grid .donut>div{width:96px;height:96px}
.stores-summary-grid .donut strong{font-size:19px}
.stores-summary-grid .legend{gap:7px;min-width:0}
.regpay-main-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.payments-major-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
#module-products .low-volume-panel{margin-top:13px}
#module-stores .stores-regions-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;min-height:0}
#module-analytics .analytics-main-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,.85fr)}
#module-analytics .analytics-main-grid .chart-slot{height:280px}
#module-analytics .analytics-main-grid .bar-rows{max-height:288px;overflow-y:auto;min-height:0}
#module-analytics .analytics-main-grid .bar-row{grid-template-columns:65px 1fr 74px}
#module-analytics .analytics-main-grid .bar-name,#module-analytics .analytics-main-grid .bar-val{font-size:9px}
.ops-intro h2,.settings-content{color:var(--brown)}
.ops-intro p,.ops-note{color:var(--brown-soft)}
.ops-tab{color:var(--brown-soft)}.ops-tab.active{background:#e6faed;color:#047441}
.ops-filterrow label{color:var(--brown-soft)}
.ops-filterrow input,.ops-filterrow select{color:var(--brown);background:#fffefa;border-color:#eddcca}
.ops-status.ok{background:#e5f9ea;color:#008d40}
.ops-status.warn{background:#fff3dc;color:#996520}
.ops-status.danger{background:#ffe9e2;color:#cf3e31}
.empty-panel{background:linear-gradient(145deg,#fffefa,#f4fff2);border:1px dashed #d8bd9b;color:var(--brown)}
.empty-panel h2{color:var(--brown)}
.password-dialog{font-family:'Be Vietnam Pro',Arial,sans-serif;border-color:#e9dbcb;color:var(--brown)}
.password-dialog-head h2{color:var(--brown)}
.password-dialog input{border-color:#ead9c8;background:#fffcf8;color:var(--brown)}
.password-dialog form>label{color:var(--brown-soft)}
.auth-center{background:#fffaf3}
.auth-aside-vikkafe{background:linear-gradient(125deg,#003a35,#005849)!important}
.auth-card{box-shadow:0 18px 45px #46231212;border:1px solid #f0e2d2}
.auth-card h2{color:var(--brown);font-weight:900}
.auth-card label{color:var(--brown-soft)}
.auth-card input{border-color:#e8d9c7;color:var(--brown);background:#fffdfa}
.auth-card>p:not(.error){color:#947961}
.mobile-nav-toggle,.mobile-menu-close,.nav-backdrop{display:none}
@media(min-width:1500px){.main{padding:22px 27px 40px}.chart-slot{height:285px}.executive-bottom-grid>.panel{min-height:275px}}
@media(max-width:1470px){.executive-bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-bottom-grid .executive-insights{grid-column:span 2}.executive-bottom-grid .executive-insights .insight-list{grid-template-columns:repeat(3,minmax(0,1fr))}.executive-three-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-three-grid>.panel:last-child{grid-column:span 2}}
@media(max-width:1180px){.top-style-label{display:none}.sidebar{width:205px;min-width:205px}.chart-grid.sales-major-grid,.regpay-main-grid{grid-template-columns:1fr 1fr}.main{padding:18px 17px 34px}.filters{gap:9px}.filters label{min-width:115px;flex:1}.kpi .kpi-value{font-size:20px}.kpi-title{font-size:10px!important}}
@media(max-width:930px){
 .mobile-nav-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:40px;width:42px;flex:none;border:1px solid #eddcc9;background:#fffdf7;border-radius:9px;cursor:pointer;z-index:3}
 .hamburger-line{width:19px;height:2px;border-radius:3px;background:#5a3927}
 .mobile-menu-close{display:grid;place-items:center;position:absolute;top:8px;right:8px;width:31px;height:31px;border:1px solid #ffffff45;background:#ffffff18;color:white;border-radius:8px;font-size:15px;cursor:pointer}
 .sidebar{display:block!important;position:fixed;inset:0 auto 0 0;z-index:101;width:min(285px,85vw)!important;min-width:0!important;padding:12px 0 14px!important;transform:translateX(-105%);transition:transform .2s ease;overflow-y:auto;box-shadow:8px 0 30px #10201d38}
 .sidebar .brand-vikkafe{padding:12px 15px 21px}
 .sidebar .nav-logo{width:min(205px,100%);min-height:100px;margin:auto;padding:9px}
 .sidebar .nav-btn{width:calc(100% - 24px);font-size:11px;justify-content:flex-start;padding:9px 12px;margin:3px 12px}
 .sidebar .nav-btn span{font-size:15px}
 .sidebar .nav-kicker,.sidebar .sidebar-bottom,.sidebar .nav-btn i{display:block}
 .sidebar .sidebar-bottom{margin-top:23px}
 .nav-backdrop{display:block;position:fixed;inset:0;z-index:100;background:#092c2880;border:0;opacity:0;visibility:hidden;transition:opacity .2s ease}
 .nav-open .sidebar{transform:translateX(0)}
 .nav-open .nav-backdrop{opacity:1;visibility:visible}
 .nav-open{overflow:hidden}
 .page-area{width:100%!important;min-width:0}
 .topbar{padding:0 14px;height:60px}
 .main{padding:18px 14px 32px}
 .chart-grid,.chart-grid.sales-major-grid,.regpay-main-grid,#module-overview>.chart-grid{grid-template-columns:1fr}
 .executive-three-grid{grid-template-columns:1fr 1fr}
 #module-stores .stores-regions-bars{grid-template-columns:1fr 1fr}
 .executive-bottom-grid{grid-template-columns:1fr 1fr}
 .executive-bottom-grid .executive-insights{grid-column:span 2}
 .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
 .filter-caption{grid-column:span 3}
 .filters label{min-width:0}
 .top-heading{margin-top:6px}
}
@media(max-width:640px){
 html{font-size:14px}
 .main{padding:13px 10px 26px}
 .topbar{min-height:57px;height:auto;padding:9px 10px;gap:7px;flex-wrap:wrap}
 .mobile-nav-toggle{width:40px;height:39px}
 .topbar .crumb{flex:1;font-size:10px}
 .topbar .top-right{width:100%;max-width:100%;justify-content:space-between;gap:6px;flex-wrap:nowrap}
 .topbar .user-badge{min-width:0;flex:1;gap:5px}
 .topbar .user-badge strong{font-size:9px;max-width:138px}
 .topbar .user-badge small{font-size:8px}
 .topbar .avatar{min-width:28px;width:28px;height:28px}
 .topbar .btn.small{padding:6px 7px;font-size:9px}
 .top-heading{padding-left:12px;border-left-width:5px;margin:4px 0 14px;gap:10px}
 .top-heading h1{font-size:23px;margin:4px 0}
 .top-heading .eyebrow{font-size:8px;letter-spacing:1.3px}
 .top-heading p{font-size:10px}
 .heading-tools{width:100%;justify-content:flex-start;gap:8px}
 .heading-tools .btn{font-size:11px;padding:9px 10px}
 .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:11px}
 .filter-caption{grid-column:span 2}
 .filters label{min-width:0!important;max-width:none;font-size:9px}
 .filters select,.filters input{height:36px;font-size:10px}
 .filters .reset{grid-column:span 2}
 .statusline{flex-wrap:wrap;line-height:1.5}
 .statusline>span{max-width:100%;overflow-wrap:anywhere}
 .kpi-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .kpi,.kpi.brand-kpi{min-height:129px;padding:12px 10px}
 .kpi .kpi-icon,.kpi.executive-kpi .kpi-icon{width:30px;height:30px;font-size:15px}
 .kpi-meta{gap:7px}
 .kpi-title{font-size:9px!important;line-height:1.4}
 .kpi .kpi-value,.kpi.executive-kpi .kpi-value{font-size:clamp(15px,4vw,20px);letter-spacing:-.5px;margin-top:10px;line-height:1.3}
 .kpi .kpi-value.exec-text-value{font-size:14px}
 .kpi .kpi-sub{font-size:8px;margin-top:6px}
 .kpi .kpi-compare{font-size:8px}
 .kpi .mini-spark{width:55px;bottom:8px}
 .panel{padding:13px 11px;border-radius:13px}
 .panel-title h2{font-size:12px}.panel-title p{font-size:9px}
 .panel-title{flex-wrap:wrap}
 .chart-slot,#module-overview .chart-slot,#module-sales .chart-slot,#module-analytics .chart-slot{height:240px;min-height:220px}
 .executive-bottom-grid,.executive-three-grid,.chart-grid.sales-major-grid,.payments-major-grid,.regpay-main-grid{grid-template-columns:1fr!important}
 .executive-bottom-grid .executive-insights,.executive-three-grid>.panel:last-child{grid-column:auto}
 .executive-bottom-grid .executive-insights .insight-list{grid-template-columns:1fr}
 .executive-bottom-grid>.panel{min-height:0}
 .executive-bottom-grid .donut-wrap,.stores-summary-grid .donut-wrap{gap:15px;flex-wrap:nowrap}
 .executive-bottom-grid .donut,.stores-summary-grid .donut{width:128px;height:128px;flex:none}
 .executive-bottom-grid .donut>div,.stores-summary-grid .donut>div{width:86px;height:86px}
 .executive-bottom-grid .donut strong,.stores-summary-grid .donut strong{font-size:15px}
 .region-rank-row{grid-template-columns:minmax(77px,110px) minmax(0,1fr) minmax(70px,92px);gap:7px;min-height:34px}
 .region-rank-name{font-size:9px}.region-rank-value strong{font-size:9px}
 .bar-row{grid-template-columns:minmax(81px,107px) minmax(0,1fr) minmax(64px,80px);gap:7px}
 #module-stores .stores-regions-bars{grid-template-columns:1fr}
 #module-analytics .analytics-main-grid{grid-template-columns:1fr}
 #module-analytics .analytics-main-grid .bar-row{grid-template-columns:69px minmax(0,1fr) 72px}
 .low-volume-row{grid-template-columns:25px minmax(85px,1.2fr) minmax(50px,1fr) 50px;gap:6px;padding:8px 7px}
 .low-volume-name,.low-volume-qty{font-size:9px}
 .stack-row{grid-template-columns:85px minmax(0,1fr) 65px;gap:6px}
 .stack-label,.stack-total{font-size:9px}
 .scroll-table{overflow-x:auto;max-width:100%}
 .scroll-table table{min-width:480px}
 .sales-leaders-table .scroll-table table,.executive-stores .scroll-table table{min-width:0}
 .sales-leaders-table .scroll-table td,.executive-stores .scroll-table td{font-size:9px}
 .v22-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .v22-kpis>div{padding:11px}.v22-kpis strong{font-size:14px}
 .v22-inline{width:100%;justify-content:flex-end}
 .auth-card{border-radius:15px;padding:25px 18px}
 .auth-center{padding:18px 12px 26px}
}
@media(max-width:360px){
 .kpi-grid{grid-template-columns:1fr}
 .filters{grid-template-columns:1fr}
 .filters .filter-caption,.filters .reset{grid-column:auto}
 .topbar .user-badge strong{max-width:92px}
}
@media print{
 .sidebar,.topbar,.mobile-nav-toggle,.nav-backdrop,.mobile-menu-close{display:none!important}
 .page-area{background:#fff!important}.main{max-width:none!important;padding:0!important}
 .panel,.kpi{box-shadow:none!important;border:1px solid #ebdfd4!important;break-inside:avoid}
 .executive-bottom-grid,.executive-three-grid{grid-template-columns:1fr 1fr 1fr!important}
 .top-heading h1{color:#32140b}
}
@media(prefers-reduced-motion:reduce){.sidebar,.nav-backdrop,.kpi{transition:none!important}}


/* =============================================================
   VIKKAFE BI 2.2 V3.1 — STORES REGION LAYOUT ONLY — 24/11/2026
   Scope every selector to #module-stores to preserve all other tabs.
   Brand palette, typography and global layout inherited without changes.
   ============================================================= */
#module-stores .store-hero-grid{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,.97fr);gap:14px;margin-bottom:14px;align-items:stretch}
#module-stores .store-hero-grid>.panel{margin:0;min-width:0;padding:19px 20px 14px;min-height:310px}
#module-stores .store-hero-grid .panel-title{margin-bottom:17px}
#module-stores .store-hero-grid .panel-title h2{display:flex;gap:9px;align-items:center;font-size:15px;line-height:1.4;color:var(--brown,#482618);font-weight:800}
#module-stores .store-hero-grid .panel-title p{margin-top:5px;line-height:1.5}
#module-stores .store-title-icon{height:29px;width:29px;flex:none;display:grid;place-items:center;border-radius:9px;color:#008b4b;background:#dcf8e7;font-size:16px}
#module-stores .store-title-icon.map-icon{font-size:23px}
#module-stores .store-region-ranking{display:grid;grid-template-columns:1fr;gap:3px;min-height:0}
#module-stores .store-region-ranking .region-rank-row{min-height:36px;display:grid;grid-template-columns:minmax(125px,175px) minmax(0,1fr) minmax(92px,137px);gap:9px;align-items:center}
#module-stores .store-region-ranking .region-rank-name{font-size:10.5px;font-weight:720;line-height:1.38;color:#63422c}
#module-stores .store-region-ranking .region-rank-track{height:10px;background:#e6e9e9;border-radius:99px}
#module-stores .store-region-ranking .region-rank-fill{background:linear-gradient(90deg,#40d877,#008e57);min-width:0}
#module-stores .store-region-ranking .region-rank-value{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}
#module-stores .store-region-ranking .region-rank-value strong{font-size:10.5px;color:#4b2412}
#module-stores .store-region-ranking .region-rank-value small{font-size:9px;color:#978272}
#module-stores .store-card-footnote{font-size:9px;line-height:1.5;color:#9c8774;margin-top:12px}
#module-stores .store-map-body{display:grid;grid-template-columns:minmax(135px,.94fr) minmax(0,1.22fr);gap:10px;align-items:center;min-height:245px}
#module-stores .store-map-stage{position:relative;aspect-ratio:240/320;max-height:260px;max-width:196px;width:100%;justify-self:center;isolation:isolate}
#module-stores .store-map-stage img{height:100%;width:100%;object-fit:contain;display:block}
#module-stores .store-map-marker-layer{position:absolute;inset:0;pointer-events:none}
#module-stores .store-map-marker{position:absolute;display:block;width:14px;height:14px;border-radius:50%;background:var(--store-mark,#058b51);border:2px solid #fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--store-mark,#058b51) 27%,transparent),0 3px 7px #00402654;transform:translate(-50%,-50%);pointer-events:auto;cursor:help;z-index:2}
#module-stores .store-map-marker:hover{z-index:4;transform:translate(-50%,-50%) scale(1.45)}
#module-stores .store-map-legend{display:flex;flex-direction:column;gap:6px;min-width:0}
#module-stores .store-map-legend-item{display:flex;align-items:flex-start;gap:9px;padding:3px 0;min-width:0}
#module-stores .store-map-legend-dot{display:block;flex:none;margin-top:4px;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 3px #eff7f1}
#module-stores .store-map-legend-label{display:flex;min-width:0;flex-direction:column;gap:2px}
#module-stores .store-map-legend-label strong{font-size:10.3px;font-weight:800;line-height:1.35;color:#4b261a}
#module-stores .store-map-legend-label small{font-size:9.5px;line-height:1.3;color:#8d7564}
#module-stores .stores-summary-grid{margin-bottom:14px}
#module-stores .stores-summary-grid>.panel{min-height:265px}
#module-stores .stores-summary-grid .insight-list{align-content:start}
@media(max-width:1360px){
 #module-stores .store-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,.97fr)}
 #module-stores .store-hero-grid>.panel{padding:15px 13px}
 #module-stores .store-region-ranking .region-rank-row{grid-template-columns:minmax(95px,130px) minmax(0,1fr) minmax(86px,100px);gap:6px}
 #module-stores .store-region-ranking .region-rank-value{display:block;text-align:right}
 #module-stores .store-region-ranking .region-rank-value small{display:block}
}
@media(max-width:1150px){
 #module-stores .store-hero-grid{grid-template-columns:1fr}
 #module-stores .store-hero-grid>.panel{min-height:0}
 #module-stores .store-region-ranking .region-rank-row{grid-template-columns:minmax(140px,190px) 1fr 115px}
 #module-stores .store-map-body{grid-template-columns:180px minmax(0,1fr)}
 #module-stores .store-map-stage{height:250px;width:188px}
 #module-stores .store-map-legend{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px}
}
@media(max-width:680px){
 #module-stores .store-hero-grid{gap:10px;margin-bottom:10px}
 #module-stores .store-hero-grid>.panel{padding:14px 11px}
 #module-stores .store-hero-grid .panel-title h2{font-size:12.5px}
 #module-stores .store-region-ranking .region-rank-row{grid-template-columns:minmax(74px,98px) minmax(0,1fr) minmax(65px,89px);gap:5px;min-height:38px}
 #module-stores .store-region-ranking .region-rank-name{font-size:9px}
 #module-stores .store-region-ranking .region-rank-value strong{font-size:9px}
 #module-stores .store-region-ranking .region-rank-value small{font-size:8px}
 #module-stores .store-map-body{grid-template-columns:125px minmax(0,1fr);gap:8px;min-height:0}
 #module-stores .store-map-stage{height:auto;width:125px}
 #module-stores .store-map-legend{display:flex;gap:3px}
 #module-stores .store-map-legend-item{gap:6px;padding:2px 0}
 #module-stores .store-map-legend-label strong{font-size:9px}
 #module-stores .store-map-legend-label small{font-size:8px}
 #module-stores .store-map-legend-dot{width:8px;height:8px}
 #module-stores .store-map-marker{width:11px;height:11px;border-width:1.5px}
}
@media(max-width:360px){
 #module-stores .store-map-body{grid-template-columns:100px minmax(0,1fr)}
 #module-stores .store-map-stage{width:100px}
 #module-stores .store-region-ranking .region-rank-row{grid-template-columns:minmax(73px,95px) minmax(0,1fr) 70px}
}
@media print{
 #module-stores .store-hero-grid{grid-template-columns:1.1fr .9fr!important}
 #module-stores .store-map-marker{box-shadow:none}
}

/* VIKKAFE BI 2.2 / V3.2 — VẬN HÀNH MỞ ĐIỂM. All unrelated modules retain V3.1 layout. */
.ops-source-label{background:#e8f8ef;color:#047d49;white-space:nowrap;padding:9px 12px;border-radius:16px;font-size:10px;font-weight:800;align-self:flex-start}
.ops-analysis-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.8fr);gap:14px;margin-top:15px}
.ops-region-progress{display:grid;gap:13px;padding:8px 0 4px}
.ops-region-item{min-width:0}.ops-region-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--brown);margin-bottom:7px}.ops-region-head strong{font-size:11px;font-weight:750}.ops-region-head span{font-weight:650;color:var(--brown-soft);white-space:nowrap}
.ops-progress-track{height:12px;border-radius:999px;background:#f0e8e1;overflow:hidden;display:flex}.ops-progress-open{height:100%;background:linear-gradient(90deg,#16c879,#009b53)}.ops-progress-pending{height:100%;background:#ffd28c}
.ops-review-total{font-size:26px;font-weight:850;color:var(--brown);line-height:1.2;margin:8px 0 12px}.ops-review-info{font-size:11px;color:var(--brown-soft);line-height:1.75;margin:0 0 15px}
.ops-status-dist{display:grid;gap:10px}.ops-status-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fffbec;border:1px solid #f0e1cb;padding:10px 12px;border-radius:10px;color:var(--brown-soft);font-size:11px}.ops-status-row strong{color:var(--brown)}
.ops-review-flag{font-weight:650!important;color:#ad3d25!important;background:#fff4e9!important}
.ops-scroll table{min-width:1180px}.ops-scroll td:nth-child(2),.ops-scroll td:nth-child(3){min-width:160px}.ops-scroll td:nth-child(9){min-width:230px}
@media (max-width:1040px){.ops-analysis-grid{grid-template-columns:1fr}.ops-source-label{white-space:normal}}
@media (max-width:640px){.ops-intro{flex-direction:column}.ops-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ops-tab{padding:10px 5px;font-size:10px}.ops-region-head{align-items:flex-start}.ops-region-head span{font-size:10px;white-space:normal;text-align:right}.ops-analysis-grid{margin-top:12px}}


/* VIKKAFE BI 2.2 V3.3 – Nhân sự. Scoped; keep all approved Executive Light styles intact. */
#module-people{--people-ink:#4b230f;--people-accent:#00ae61;--people-border:#eddbc9}
#module-people .people-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:4px 0 16px}
#module-people .people-topline h2{font-size:19px;color:var(--people-ink);margin:0 0 5px;font-weight:850}
#module-people .people-topline p{margin:0;font-size:12px;color:#9d7966;line-height:1.6}
#module-people .people-toolbar{padding:16px 18px;margin-bottom:14px}
#module-people .people-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
#module-people .people-filters label{flex:1;min-width:180px;display:grid;gap:6px;font-size:11px;font-weight:800;color:#75432a}
#module-people input,#module-people select,#module-people textarea{width:100%;min-height:41px;border-radius:9px;border:1px solid #ead6bf;padding:10px 12px;background:#fffdfa;color:#4a270f;font:500 12px 'Be Vietnam Pro',sans-serif;box-sizing:border-box}
#module-people textarea{min-height:66px;resize:vertical;line-height:1.55}
#module-people :is(input,select,textarea):focus{outline:2px solid #00ae61;outline-offset:1px}
#module-people .people-toolbar .help{margin:9px 0 0;font-size:10px;color:#997e6e}
#module-people .people-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:14px;margin:14px 0}
#module-people .people-editor .panel{min-width:0}
#module-people .people-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:10px}
#module-people .people-form label{font-size:11px;font-weight:750;color:#75432a;display:grid;gap:6px;align-content:start}
#module-people .people-form .people-wide{grid-column:1/-1}
#module-people .people-form-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#module-people .people-form-actions .help{font-size:10px;line-height:1.5;color:#977f71;flex:1;min-width:150px}
#module-people .people-weekly-form{grid-template-columns:1fr}
#module-people .people-reports-grid{display:grid;grid-template-columns:1fr;gap:14px}
#module-people .people-reports-grid>.panel{min-width:0}
#module-people .people-table{max-height:410px;overflow:auto;margin-top:13px}
#module-people .people-table table{min-width:940px;width:100%;table-layout:auto}
#module-people .people-table th{white-space:nowrap}
#module-people .people-table td{font-size:11px;line-height:1.55;white-space:pre-line;vertical-align:top}
#module-people .people-table td.people-report-cell{min-width:175px;max-width:350px;overflow-wrap:anywhere}
#module-people .people-table .btn{white-space:nowrap}
#module-people .people-bar{margin:12px 0 7px;max-width:100%;min-height:35px}
#module-people .people-bar .bar-row{grid-template-columns:minmax(95px,150px) minmax(30px,1fr) 65px;gap:12px}
#module-people .people-bar .bar-name{font-size:11px}
#module-people .people-bar .bar-val{font-size:11px}
#module-people .people-kpis .kpi-value{font-size:clamp(23px,2.5vw,30px)}
#module-people .people-failure{background:#fff1ed;border-color:#f6cabd;color:#9a3021}
#module-people .people-security-note{margin-top:14px;font-size:11px;line-height:1.6}
@media(min-width:1400px){#module-people .people-reports-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:980px){#module-people .people-editor{grid-template-columns:1fr}}
@media(max-width:620px){#module-people .people-topline{flex-direction:column}#module-people .people-filters{display:grid;grid-template-columns:1fr 1fr}#module-people .people-filters label{min-width:0}#module-people .people-filters button{grid-column:1/-1}#module-people .people-form{grid-template-columns:1fr 1fr}#module-people .people-form label{min-width:0}#module-people .people-form .people-wide{grid-column:1/-1}#module-people .people-form-actions .btn{flex:1}}
@media(max-width:360px){#module-people .people-filters{grid-template-columns:1fr}#module-people .people-form{grid-template-columns:1fr}}
@media print{#module-people .people-editor,#module-people .people-toolbar button,#module-people .people-reports-grid .panel-title button,#module-people .people-table td button{display:none!important}#module-people .people-table{max-height:none;overflow:visible}#module-people .people-table table{min-width:0}}

/* V3.4 — Only "Nhân sự" scoped styles; design system unchanged */
#module-people .people-period-view{flex:1.2;min-width:235px;display:flex;flex-direction:column;gap:6px;justify-content:center;border-right:1px solid #ead9c6;padding:2px 16px 2px 2px}
#module-people .people-period-view>span{font-size:10px;font-weight:850;letter-spacing:.04em;color:#82523b}
#module-people .people-period-view>strong{display:inline-flex;align-items:center;align-self:flex-start;min-height:36px;padding:8px 12px;border-radius:10px;background:#e7fae9;color:#086f43;font-size:13px;line-height:1.35;font-weight:850}
#module-people .people-calendar-panel{margin:14px 0 16px}
#module-people .people-calendar-heading{gap:12px;flex-wrap:wrap}
#module-people .people-range-tag{background:#e5f8e9;color:#006d3c;border-radius:9px;padding:8px 12px;font-size:11px;font-weight:800;white-space:nowrap}
#module-people .people-week-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:14px}
#module-people .people-calendar-day{border:1px solid #ead9c7;border-radius:10px;background:#fffdfa;overflow:hidden;display:flex;flex-direction:column;min-width:0;min-height:148px}
#module-people .people-calendar-dayhead{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;min-height:42px;background:#dcf7e1;color:#275034;text-align:center;padding:7px 5px;font-size:11px;line-height:1.3}
#module-people .people-calendar-dayhead strong{font-weight:850}
#module-people .people-calendar-dayhead span{font-size:10px;font-weight:700;color:#438057}
#module-people .people-calendar-daybody{padding:8px 7px;flex:1;display:flex;flex-direction:column;gap:7px;max-height:265px;overflow:auto}
#module-people .people-calendar-entry{min-width:0;padding:7px 7px 8px;background:#fff8f0;border:1px solid #f2e5d6;border-radius:7px;display:grid;gap:5px}
#module-people .people-calendar-person{font-size:11px;font-weight:850;color:#4b230f;overflow-wrap:anywhere}
#module-people .people-calendar-email{font-size:9px;color:#986a54;overflow-wrap:anywhere}
#module-people .people-calendar-hours{font-size:10px;color:#17644b;font-weight:800}
#module-people .people-calendar-place{font-size:10px;color:#623a24;font-weight:700;overflow-wrap:anywhere;line-height:1.45}
#module-people .people-calendar-empty{font-size:10px;color:#9a806e;font-style:italic;text-align:center;padding:18px 6px}
#module-people .people-calendar-count{text-align:center;padding:6px;border-top:1px solid #f1e4d9;color:#147747;font-size:10px;font-weight:800;background:#fafff9}
#module-people .people-calendar-help{margin:9px 0 0;font-size:10px;line-height:1.5;color:#8b6e5c}
#module-people .people-report-period,#module-people .people-table-period{background:#faf3e9;border:1px solid #f0e4d3;border-radius:9px;margin:12px 0 4px;padding:10px 12px;color:#6d391f;font-size:11px;font-weight:800}
#module-people .people-calendar-loading{font-size:11px;color:#90725f;padding:12px}
@media(max-width:1450px){#module-people .people-week-calendar{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){#module-people .people-week-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}#module-people .people-period-view{border-right:0}}
@media(max-width:630px){#module-people .people-week-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}#module-people .people-period-view{grid-column:1/-1;min-width:0}#module-people .people-range-tag{white-space:normal}}
@media(max-width:380px){#module-people .people-week-calendar{grid-template-columns:1fr}#module-people .people-range-tag{width:100%;text-align:center}}
@media print{#module-people .people-week-calendar{grid-template-columns:repeat(7,minmax(0,1fr))}#module-people .people-calendar-daybody{max-height:none;overflow:visible}#module-people .people-period-view{border:0}}


/* V3.5 / TRUNG TÂM CẢNH BÁO — namespace-only styling; other report modules unchanged */
#module-alert-center{--ac-border:#eedccc;--ac-soft:#faf4eb;--ac-ink:#4c240f;--ac-muted:#937464}
#module-alert-center .alert-center-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin:2px 0 15px}
#module-alert-center .alert-center-intro h2{font-size:21px;font-weight:900;color:var(--ac-ink);margin:0 0 5px;letter-spacing:-.5px}
#module-alert-center .alert-center-intro p{margin:0;font-size:11px;color:var(--ac-muted);line-height:1.6}
#module-alert-center .alert-center-role{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#module-alert-center .alert-center-role span{display:inline-block;background:#e8faee;color:#087c50;border-radius:100px;padding:9px 11px;font-weight:850;font-size:10px;white-space:nowrap}
#module-alert-center .alert-center-role span:last-child{background:#fff9ed;color:#a47128;border:1px solid #efd6b5}
#module-alert-center .alert-center-toolbar{padding:15px 16px;margin-bottom:10px}
#module-alert-center .alert-center-filters{display:grid;grid-template-columns:repeat(2,minmax(108px,.8fr)) minmax(150px,1fr) minmax(150px,1fr) minmax(120px,.75fr) auto;align-items:end;gap:10px}
#module-alert-center .alert-center-filters label{font-weight:800;font-size:10px;color:var(--ac-ink);display:grid;gap:6px;min-width:0}
#module-alert-center .alert-center-filters :is(input,select){width:100%;min-width:0;border:1px solid #ead8c5;border-radius:9px;background:#fffdfa;color:var(--ac-ink);font:600 11px 'Be Vietnam Pro',sans-serif;padding:9px 8px;min-height:39px}
#module-alert-center .alert-center-filters button{white-space:nowrap;min-height:39px}
#module-alert-center .alert-center-caption{font-size:10px;color:var(--ac-muted);line-height:1.65;margin:11px 0 0}
#module-alert-center .alert-center-error{padding:12px 14px;border-radius:10px;border:1px solid #e7ad9f;background:#fff2eb;color:#942f23;margin-bottom:12px;line-height:1.6;font-weight:650}
#module-alert-center .alert-center-status{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;color:#9d7e69;font-size:10px;margin:9px 0 12px;line-height:1.5}
#module-alert-center .alert-center-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:13px}
#module-alert-center .alert-center-kpis .kpi{min-width:0;padding:13px 12px;min-height:130px}
#module-alert-center .alert-center-kpis .kpi-title{font-size:9px;line-height:1.4}
#module-alert-center .alert-center-kpis .kpi-value{font-size:clamp(15px,1.5vw,22px);white-space:normal;overflow-wrap:anywhere;margin-top:13px}
#module-alert-center .alert-center-kpis .kpi-sub{font-size:9px;line-height:1.5;color:var(--ac-muted)}
#module-alert-center .alert-center-major{display:grid;grid-template-columns:minmax(0,1.43fr) minmax(0,.9fr);gap:12px;margin-bottom:12px}
#module-alert-center .alert-center-major .panel{min-width:0}
#module-alert-center #alertTrendChart{height:285px}
#module-alert-center .alert-center-region-list{display:grid;gap:12px;max-height:285px;overflow:auto;margin:15px 0}
#module-alert-center .alert-center-region{display:grid;grid-template-columns:minmax(105px,1fr) minmax(65px,1.2fr) 78px;align-items:center;gap:9px;font-size:10px;min-width:0}
#module-alert-center .alert-center-region label{overflow-wrap:anywhere;color:#6b3a23;font-weight:750;line-height:1.45}
#module-alert-center .alert-center-track{height:9px;border-radius:100px;background:#e9eaf0;overflow:hidden}
#module-alert-center .alert-center-track span{display:block;height:100%;border-radius:100px;background:linear-gradient(90deg,#36d788,#009e5b)}
#module-alert-center .alert-center-region-stat{text-align:right;white-space:nowrap;color:#562812;font-weight:850}
#module-alert-center .alert-center-region-stat small{display:block;margin-top:2px;color:#8396a1;font-size:9px;font-weight:650}
#module-alert-center .alert-center-region-stat .down{color:#d74435}#module-alert-center .alert-center-region-stat .up{color:#008c57}
#module-alert-center .alert-center-triple{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr) minmax(0,1fr);gap:12px;margin-bottom:12px}
#module-alert-center .alert-center-triple>.panel{min-width:0}
#module-alert-center .alert-center-alert-list{display:grid;gap:9px;max-height:380px;overflow:auto}
#module-alert-center .alert-center-alert{display:grid;grid-template-columns:35px 1fr;gap:10px;align-items:start;padding:11px 9px;border-radius:10px;border:1px solid #f0d8ca;background:#fff8f1}
#module-alert-center .alert-center-alert.p0{background:#fff2f0;border-color:#f5ccc5}
#module-alert-center .alert-center-alert.p1{background:#fff8ee;border-color:#f6dfbd}
#module-alert-center .alert-center-alert.p2{background:#f2fcf6;border-color:#d7efdc}
#module-alert-center .alert-center-priority{background:#df4739;color:#fff;font-weight:900;font-size:10px;text-align:center;padding:6px 4px;border-radius:7px}
#module-alert-center .p1 .alert-center-priority{background:#ec9e26}#module-alert-center .p2 .alert-center-priority{background:#20ab6c}
#module-alert-center .alert-center-alert strong{display:block;font-size:11px;color:#4c240f;line-height:1.4}
#module-alert-center .alert-center-alert p{font-size:9.5px;color:#7b614f;line-height:1.55;margin:4px 0}
#module-alert-center .alert-center-alert small{font-size:9.5px;color:#a3472e;font-weight:800;overflow-wrap:anywhere}
#module-alert-center .alert-center-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;max-height:370px;overflow:auto}
#module-alert-center .alert-center-day{background:#fffbf4;border:1px solid #efe0d1;border-radius:9px;min-width:0;overflow:hidden}
#module-alert-center .alert-center-day-head{background:#e6faed;text-align:center;padding:8px 3px;color:#175b46;font-size:9px;font-weight:850}
#module-alert-center .alert-center-day-head small{display:block;font-size:9px;font-weight:700}
#module-alert-center .alert-center-day-body{padding:6px 4px;display:grid;gap:6px}
#module-alert-center .alert-center-day-entry{border-radius:6px;border:1px solid #f0e2d4;background:#fff;padding:6px 4px;display:grid;gap:4px;min-width:0}
#module-alert-center .alert-center-day-entry strong{font-size:9px;color:#552d1c;overflow-wrap:anywhere}
#module-alert-center .alert-center-day-entry small{font-size:8px;line-height:1.5;color:#997561;overflow-wrap:anywhere}
#module-alert-center .alert-center-day-entry em{font-size:8px;color:#0f815b;font-style:normal;font-weight:800;line-height:1.4}
#module-alert-center .alert-center-weekly{display:grid;gap:8px;max-height:330px;overflow:auto}
#module-alert-center .alert-center-report{display:grid;grid-template-columns:1fr auto;align-items:start;gap:3px 8px;padding:8px 9px;border:1px solid #efe0d1;border-radius:8px;background:#fffdfa}
#module-alert-center .alert-center-report b{font-size:10px;color:#62341f;overflow-wrap:anywhere}
#module-alert-center .alert-center-report small{font-size:9px;color:#997765;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;grid-column:1/-1}
#module-alert-center .alert-center-pill{background:#dbf7e6;color:#148557;font-size:9px;border-radius:100px;padding:5px 7px;font-weight:850;white-space:nowrap}
#module-alert-center .alert-center-pill.draft{background:#fff1d4;color:#a76b28}
#module-alert-center .alert-center-lower{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);gap:12px;margin-bottom:12px}
#module-alert-center .alert-center-lower>.panel{min-width:0}
#module-alert-center .alert-center-top-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#module-alert-center .alert-center-top-bottom h3{font-size:11px;color:#633d29;margin:3px 0 9px}
#module-alert-center .alert-center-store-row{display:flex;justify-content:space-between;align-items:flex-start;gap:9px;margin:6px 0;padding-bottom:6px;border-bottom:1px solid #f5e9de;font-size:10px;color:#775040}
#module-alert-center .alert-center-store-row span{flex:1;overflow-wrap:anywhere}
#module-alert-center .alert-center-store-row strong{color:#3d291e;white-space:nowrap}
#module-alert-center .alert-center-quality{display:grid;gap:9px}
#module-alert-center .alert-center-quality-item{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #f4e9de;padding:8px 0;font-size:10px;color:#785c4b}
#module-alert-center .alert-center-quality-item strong{color:#4d2918}
#module-alert-center .alert-center-ai{display:flex;align-items:center;gap:15px;background:linear-gradient(105deg,#edfaf1,#fafff6);margin-bottom:12px}
#module-alert-center .alert-center-ai h2{font-size:17px;margin:0 0 5px;color:#613b23}
#module-alert-center .alert-center-ai p{font-size:10px;color:#806959;line-height:1.6;margin:0}
#module-alert-center .alert-center-sparkle{font-size:28px;color:#dea01c}
#module-alert-center .alert-center-coming{margin-left:auto;flex-shrink:0;background:#e7f7e9;border:1px solid #b8dec8;border-radius:9px;padding:9px;color:#17805b;font-weight:800;font-size:10px}
#module-alert-center .alert-center-note{font-size:10px;line-height:1.7}
@media(max-width:1500px){#module-alert-center .alert-center-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}#module-alert-center .alert-center-triple{grid-template-columns:repeat(2,minmax(0,1fr))}#module-alert-center .alert-center-triple>.panel:last-child{grid-column:1/-1}#module-alert-center .alert-center-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1080px){#module-alert-center .alert-center-major{grid-template-columns:1fr}#module-alert-center .alert-center-triple{grid-template-columns:1fr}#module-alert-center .alert-center-triple>.panel:last-child{grid-column:auto}#module-alert-center .alert-center-lower{grid-template-columns:1fr}}
@media(max-width:650px){#module-alert-center .alert-center-intro{flex-direction:column}#module-alert-center .alert-center-intro h2{font-size:18px}#module-alert-center .alert-center-role{justify-content:flex-start}#module-alert-center .alert-center-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#module-alert-center .alert-center-filters button{grid-column:1/-1}#module-alert-center .alert-center-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#module-alert-center .alert-center-kpis .kpi{min-height:123px;padding:12px}#module-alert-center .alert-center-kpis .kpi-value{font-size:17px}#module-alert-center .alert-center-calendar{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}#module-alert-center .alert-center-top-bottom{grid-template-columns:1fr}#module-alert-center .alert-center-ai{align-items:flex-start;flex-wrap:wrap}#module-alert-center .alert-center-coming{margin-left:0}#module-alert-center .alert-center-region{grid-template-columns:minmax(75px,1fr) minmax(35px,1fr) 73px}}
@media(max-width:360px){#module-alert-center .alert-center-filters{grid-template-columns:1fr}#module-alert-center .alert-center-calendar{grid-template-columns:1fr}}
@media print{#module-alert-center .alert-center-filters,#module-alert-center .alert-center-ai{display:none!important}#module-alert-center .alert-center-calendar{grid-template-columns:repeat(7,minmax(0,1fr))}#module-alert-center .alert-center-triple{grid-template-columns:1fr 1fr}#module-alert-center .alert-center-triple>.panel:last-child{grid-column:1/-1}}

/* V3.6 Advisor: scoped layout, no override for existing reports. */
#module-advisor .advisor-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;background:#004e43;color:#fff;border-radius:14px;padding:24px;margin-bottom:14px}#module-advisor .advisor-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.4px;color:#c1ebda}#module-advisor .advisor-hero h2{font-size:30px;margin:8px 0;color:white}#module-advisor .advisor-hero h2 span{font-size:12px;color:#c1ebda;white-space:nowrap}#module-advisor .advisor-hero p{font-size:13px;margin:0;line-height:1.6;color:#e0f1e9}#module-advisor .advisor-hero>strong{font-size:10px;border:1px solid #74af9f;border-radius:8px;padding:8px;white-space:nowrap}#module-advisor .advisor-toolbar{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:14px;align-items:end;margin-bottom:10px}#module-advisor .advisor-toolbar label{display:grid;gap:6px}#module-advisor .advisor-toolbar select,#module-advisor .advisor-toolbar input{width:100%;min-width:0}#module-advisor .advisor-scope{display:block;margin-top:5px}#module-advisor .advisor-caption{color:#78695f;font-size:11px;line-height:1.6;overflow-wrap:anywhere}#module-advisor .advisor-summary{padding:14px 0}#module-advisor .advisor-summary>strong{font-size:14px;letter-spacing:.8px;color:#005147}#module-advisor .advisor-summary p{font-size:12px;margin:7px 0}#module-advisor .advisor-quality{font-size:11px;font-weight:700;display:inline-block;padding:5px 8px;border-radius:6px;background:#f8eddf;color:#825323}#module-advisor .advisor-quality.pass{background:#e4f5e9;color:#087846}#module-advisor .advisor-quality.fail{background:#fbe4df;color:#a73825}#module-advisor .advisor-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}#module-advisor .advisor-panel{margin:0 0 14px;min-width:0}#module-advisor .advisor-panel h2{font-size:17px;margin:0 0 6px;color:#005147}#module-advisor .advisor-panel h3{font-size:13px;margin:16px 0 8px}#module-advisor .advisor-note{font-size:12px;line-height:1.7;margin:10px 0}#module-advisor .advisor-stat{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e9dfd5;padding:9px 0;font-size:12px}#module-advisor .advisor-stat strong{text-align:right;overflow-wrap:anywhere}#module-advisor .advisor-action{border:1px solid #e9ded3;border-left:4px solid #899c8a;border-radius:9px;padding:12px 14px;margin-top:10px;break-inside:avoid;overflow-wrap:anywhere}#module-advisor .advisor-action.p0{border-left-color:#b33824}#module-advisor .advisor-action.p1{border-left-color:#b27621}#module-advisor .advisor-action-title{display:flex;align-items:center;gap:10px;font-size:13px}#module-advisor .advisor-priority{font-size:11px;font-weight:800;color:#005147}#module-advisor .advisor-action p{margin:6px 0;font-size:12px;line-height:1.65}#module-advisor .advisor-action p.advisor-caption{font-size:11px}#module-advisor .advisor-kpis{margin-bottom:14px}#module-advisor .advisor-kpis .kpi-value{overflow-wrap:anywhere}#module-advisor .notice{line-height:1.7}@media(max-width:850px){#module-advisor .advisor-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}#module-advisor .advisor-grid{grid-template-columns:1fr}#module-advisor .advisor-hero{padding:16px;flex-wrap:wrap}}@media(max-width:420px){#module-advisor .advisor-toolbar{grid-template-columns:1fr}#module-advisor .advisor-kpis{grid-template-columns:1fr}#module-advisor .advisor-hero h2{font-size:24px}}@media print{#module-advisor .advisor-toolbar{display:none!important}#module-advisor .advisor-hero{color:#000;background:#fff;border:1px solid #999}#module-advisor .advisor-hero h2,#module-advisor .advisor-hero p,#module-advisor .advisor-hero h2 span,#module-advisor .advisor-eyebrow{color:#222}#module-advisor .advisor-grid{display:block}}

/* R2: advisor only; print panels may flow while individual actions stay intact. */
#module-advisor .advisor-confidence{padding:10px 12px;border-left:4px solid #b27621;background:#fff7e7;color:#65400b;border-radius:6px;font-weight:700;font-size:12px;line-height:1.5}
#module-advisor .advisor-confidence.covered{border-left-color:#007d55;background:#edf8f0;color:#175d45}#module-advisor .advisor-confidence.fail{border-left-color:#b33824;background:#fff0eb;color:#982e22}
#module-advisor .advisor-coverage-track,#module-advisor .advisor-delta-track{height:10px;background:#efe9df;position:relative;border-radius:4px;overflow:hidden;margin:6px 0}#module-advisor .advisor-coverage-fill{height:100%;background:#007d55}#module-advisor .advisor-delta-track:after{content:'';position:absolute;left:50%;height:100%;border-left:1px solid #7a6e64}#module-advisor .advisor-delta-bar{height:100%;position:absolute;background:#087f59}#module-advisor .advisor-delta-bar.negative{background:#bd5142}#module-advisor .advisor-delta{break-inside:avoid}#module-advisor .advisor-delta .advisor-stat{border:0;padding-bottom:2px}#module-advisor .advisor-focus{padding:12px;background:#f5f1e8;border-radius:8px;border-left:3px solid #82735a}#module-advisor .advisor-toolbar select,#module-advisor .advisor-toolbar input{border:1px solid #d9cbbd;background:#fffdf9;border-radius:8px;padding:9px;color:#4a3020;font:inherit}
@media print{#module-advisor .advisor-panel{break-inside:auto!important;padding:10px!important;margin-bottom:9px!important}#module-advisor .advisor-panel h2,#module-advisor .advisor-panel h3{break-after:avoid}#module-advisor .advisor-action{padding:7px 10px;margin-top:6px;break-inside:avoid}#module-advisor .advisor-action p{margin:3px 0;font-size:10px;line-height:1.45}#module-advisor .advisor-caption{font-size:10px;line-height:1.4}#module-advisor .advisor-hero{padding:12px;margin-bottom:8px}#module-advisor .advisor-hero h2{font-size:23px}#module-advisor .advisor-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px}#module-advisor .advisor-kpis .kpi{min-height:0!important;padding:9px!important}#module-advisor .advisor-kpis .kpi-value{font-size:15px!important}#module-advisor .advisor-coverage-track,#module-advisor .advisor-delta-track,#module-advisor .advisor-delta-bar,#module-advisor .advisor-coverage-fill{print-color-adjust:exact;-webkit-print-color-adjust:exact}.workspace:has(#module-advisor:not(.hidden)) .print-brand strong{font-size:0}.workspace:has(#module-advisor:not(.hidden)) .print-brand strong:after{content:'VIKKAFE BI V3.6 R3';font-size:15px}}
@media print{#module-advisor .advisor-driver-chart,#module-advisor .advisor-focus{break-inside:avoid}#module-advisor .advisor-stat{break-inside:avoid}}
@media print{.workspace:has(#module-advisor:not(.hidden)),.workspace:has(#module-advisor:not(.hidden)) .page-area,.workspace:has(#module-advisor:not(.hidden)) .main{background:white!important;min-height:0!important}.workspace:has(#module-advisor:not(.hidden)) .main{height:auto!important}}

/* R3: fail closed while sales report is not ready; print is guarded even via browser menu. */
body[data-sales-unavailable="yes"] #module-overview > *,body[data-sales-unavailable="yes"] #module-sales > *,body[data-sales-unavailable="yes"] #module-analytics > *,body[data-sales-unavailable="yes"] #module-stores > *,body[data-sales-unavailable="yes"] #module-products > *,body[data-sales-unavailable="yes"] #module-payments > *,body[data-sales-unavailable="yes"] #module-regpay > *{visibility:hidden!important}
@media print{body[data-print-blocked="yes"] #workspace{display:none!important} #module-advisor .advisor-delta{break-inside:avoid!important}}

/* V3.6 R3.1 UI hotfix: independent sidebar navigation scrolling.
   Screen only: no change to report printing, permissions or data logic. */
@media screen {
  .sidebar {
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .sidebar > .brand,
  .sidebar > .nav-kicker,
  .sidebar > .sidebar-bottom { flex: 0 0 auto; }
  .sidebar > #nav {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #83bfb0 #ffffff16;
    padding-block: 3px 8px;
  }
  .sidebar > #nav::-webkit-scrollbar { width: 8px; }
  .sidebar > #nav::-webkit-scrollbar-track { background: #ffffff16; border-radius: 8px; }
  .sidebar > #nav::-webkit-scrollbar-thumb { background: #83bfb0; border-radius: 8px; }
  .sidebar > #nav::-webkit-scrollbar-thumb:hover { background: #b8e9d9; }
  .sidebar > .sidebar-bottom { margin-top: 8px; }
}
@media screen and (max-width: 930px) {
  .sidebar { display: flex !important; flex-direction: column; }
}
/* Extremely short/landscape viewports: keep every menu reachable even if
   the fixed logo and footer would consume most of the viewport. */
@media screen and (max-height: 420px) {
  .sidebar { overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #83bfb0 #ffffff16; }
  .sidebar > #nav { flex: 0 0 auto; overflow: visible; scrollbar-gutter: auto; }
}

/* V4.0 Executive Premium RC2: screen design layer, preserves the underlying R3.2 security/print rules. */
:root{--v4-ink:#20332c;--v4-muted:#546b60;--v4-green:#126b4c;--v4-border:#dce5de;--v4-bg:#f3f5f1}
.v4-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.v4-account{position:relative;flex:none;min-width:0}.v4-account summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:5px 9px;border:1px solid var(--v4-border);border-radius:12px;background:#fff;color:var(--v4-ink)}.v4-account summary::-webkit-details-marker{display:none}.v4-account .user-badge{border:0!important;padding:0!important;box-shadow:none!important;background:transparent!important;min-width:0}.v4-account-popup{position:absolute;z-index:100;right:0;top:calc(100% + 7px);width:min(235px,80vw);background:#fff;border:1px solid var(--v4-border);border-radius:12px;padding:8px;box-shadow:0 12px 36px #102a2030;display:grid;gap:5px}.v4-account-popup .btn{width:100%;text-align:left;justify-content:flex-start;font-size:13px!important;padding:10px!important}.v4-chevron{font-size:16px;color:var(--v4-muted)}
.v4-date-label{font-size:10px;color:var(--v4-muted);font-variant-numeric:tabular-nums;display:block;margin-top:4px}.v4-comparison-note{margin:-3px 0 14px;color:var(--v4-muted);font-size:11px;line-height:1.6}
.v4-chart-tip{font-size:12px;font-weight:600;line-height:1.55;padding:10px 12px;border:1px solid var(--v4-border);border-radius:8px;color:var(--v4-ink);background:#f2f7f3;min-height:40px;overflow-wrap:anywhere}.v4-chart-legend{font-size:11px;color:var(--v4-muted);padding:6px 0 0}.v4-prev-line{stroke:#667a8b;stroke-width:2.3;stroke-dasharray:7 6;fill:none}.v4-prev-dot{fill:#667a8b}.v4-cross{stroke:#59786b;stroke-dasharray:4 4;stroke-width:1.3}.chart-slot svg rect[role=button]{cursor:crosshair;outline-offset:-2px}.chart-slot svg rect[role=button]:focus{outline:2px solid #126b4c}
.v4-payment-choice{appearance:none;background:transparent;border:0;width:100%;text-align:left;border-radius:6px;padding:7px 4px!important;color:var(--v4-ink);font:inherit;cursor:pointer}.v4-payment-choice:hover,.v4-payment-choice[aria-pressed=true]{background:#e6f1e9}.v4-payment-detail{font-size:11px;color:var(--v4-muted);line-height:1.6;margin-top:7px;min-height:35px;overflow-wrap:anywhere}.v4-single-grid{display:grid;grid-template-columns:minmax(0,1fr);margin-bottom:14px}
body[data-sales-unavailable=yes] #module-analytics>*,body[data-sales-unavailable=yes] #module-stores>*{visibility:hidden!important}
@media screen {
 body,.page-area{background:var(--v4-bg)!important;color:var(--v4-ink)}.main{max-width:1800px;min-width:0}.sidebar{background:linear-gradient(165deg,#123e31,#102d26)!important;border-right:0}.sidebar .nav-btn{color:#d4e7dd;font-weight:550}.sidebar .nav-btn.selected{background:#28624e!important;border-left-color:#89d9ad;color:#fff}.sidebar .nav-kicker{color:#abc6b7}.sidebar .nav-btn i{color:#c5decf}.topbar{background:#fff!important;border-color:var(--v4-border)!important}.top-style-label{color:var(--v4-green)!important;background:#e8f4eb!important}.top-heading h1{color:#19372a!important;letter-spacing:-.9px}.top-heading p,.statusline{color:var(--v4-muted)!important}.eyebrow{color:var(--v4-green)!important}.filters,.panel,.kpi{background:#fff!important;border:1px solid var(--v4-border)!important;box-shadow:0 3px 12px #1b3e2510!important;border-radius:12px!important;min-width:0}.panel-title h2,.kpi-title,.kpi-value{color:var(--v4-ink)!important}.panel-title h2{font-size:15px!important;font-weight:750!important}.panel-title p,.kpi-sub,.help{color:var(--v4-muted)!important}.panel-title p{font-size:11px!important}.kpi-value{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.kpi-title{font-size:12px!important;font-weight:650!important}.kpi.executive-kpi .kpi-value{font-size:clamp(18px,1.8vw,29px)!important;letter-spacing:-.75px}.kpi.executive-kpi{min-height:125px!important}.kpi.executive-kpi .mini-spark{display:none!important}.kpi-compare{font-size:11px!important;font-weight:650!important}.kpi-compare.is-up{color:#087447!important}.kpi-compare.is-down{color:#a63d38!important}.kpi-compare.is-muted{color:#647269!important}.btn.primary{background:#126b4c!important;border-color:#126b4c!important;color:white!important}.scroll-table{max-width:100%;overflow:auto}.scroll-table th{position:sticky;top:0;z-index:1;background:#edf2ed!important;color:#435a4d!important}.scroll-table td{font-size:12px!important;color:var(--v4-ink)!important;line-height:1.55}.scroll-table td.num{font-weight:500!important;font-variant-numeric:tabular-nums}.scroll-table td.ranking-sum{font-weight:800!important;color:var(--v4-ink)!important}.scroll-table td.ranking-name,.scroll-table td.ranking-number{font-weight:500!important}.scroll-table tbody tr:nth-child(even){background:#f7f9f6!important}.region-rank-fill,.bar-fill{background:#19764f!important}.bar-fill.is-negative{background:#b84b45!important}.plot-line{stroke:#19764f!important;stroke-width:3px!important;fill:none}.plot-dot{fill:#19764f!important}.plot-label{font-size:12px!important;fill:#586b61!important}.region-rank-name,.bar-name,.bar-val,.region-rank-value{font-size:12px!important}.region-rank-value small{color:var(--v4-muted)!important}.donut-wrap{min-width:0}.legend{min-width:0}.panel-title>div,.chart-slot,.bar-rows{min-width:0}.heading-tools{min-width:0}.chart-slot svg{max-width:100%;height:auto}.v4-account .user-badge strong{color:var(--v4-ink)!important;font-size:11px!important}.v4-account .user-badge small{color:var(--v4-muted)!important;font-size:10px!important}
}
@media screen and (max-width:930px){.topbar .top-right{width:auto;flex:1;justify-content:flex-end;min-width:0}.topbar .crumb{flex:none;width:auto}.topbar .sync-badge,.top-style-label{display:none!important}.v4-account{max-width:100%}.v4-account .user-badge strong{max-width:155px}.topbar{position:relative;z-index:20;flex-wrap:nowrap}.main{min-width:0}}
@media screen and (max-width:420px){.topbar .crumb{font-size:10px;white-space:nowrap}.v4-account .user-badge strong{max-width:105px;font-size:10px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v4-account summary{padding:4px 6px;gap:4px}.main{padding:12px 9px!important}.panel,.kpi{padding:11px!important}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.kpi.executive-kpi .kpi-value{font-size:17px!important}.kpi-meta{gap:5px!important}.kpi-icon{flex:none}.kpi-title{font-size:10px!important}.kpi-compare{font-size:10px!important}.panel-title{flex-wrap:wrap;gap:8px}.heading-tools{flex-wrap:wrap}.region-rank-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.region-rank-name{grid-column:1/-1}.region-rank-value{white-space:normal!important;text-align:right}.donut-wrap{display:flex!important;flex-wrap:wrap;justify-content:center}.donut-wrap .legend{width:100%}.v4-chart-tip{font-size:11px}}
@media print{#v4PrintMeta{font-size:9pt;line-height:1.5;max-width:100%;overflow-wrap:anywhere}.print-brand{flex-wrap:wrap}.print-brand #v4PrintMeta{flex-basis:100%;margin:0}.scroll-table{overflow:visible!important;max-height:none!important;height:auto!important}.scroll-table thead{display:table-header-group}.scroll-table tr{break-inside:avoid}.scroll-table th{position:static!important}.panel:has(.scroll-table){break-inside:auto!important}.panel:has(.scroll-table) h2{break-after:avoid}.v4-account,.v4-chart-tip,.v4-payment-detail,.v4-date-label{display:none!important}.workspace:has(#module-advisor:not(.hidden)) .print-brand strong:after{content:'VIKKAFE BI 4.0 RC4'!important}}
/* Chart panels have vertical layout; never squeeze chart tooltip alongside the SVG. */
#trendChart,#dailyChart,#alertTrendChart{display:block!important;height:auto!important;min-height:0!important;max-width:100%;width:100%}#trendChart>svg,#dailyChart>svg,#alertTrendChart>svg{display:block;width:100%;height:auto;max-height:320px}#trendChart>.v4-chart-tip,#dailyChart>.v4-chart-tip,#alertTrendChart>.v4-chart-tip{display:block;width:100%;min-width:0;max-width:100%;white-space:normal;word-break:normal;overflow-wrap:break-word}.v4-account-email{color:var(--v4-muted);font-size:11px;line-height:1.4;overflow-wrap:anywhere;padding:5px 8px;margin:0 0 3px;border-bottom:1px solid var(--v4-border)}
@media screen{#module-overview .executive-bottom-grid>.panel{min-height:0!important}#module-overview .executive-insights{min-height:0!important}#module-overview .executive-insights .insight-list{min-height:0!important}#module-overview .panel{min-width:0}#module-overview .executive-bottom-grid{align-items:stretch}}
@media screen and (max-width:420px){.top-heading,.main,.page-area,.module,.chart-grid,.executive-bottom-grid,.sales-details-grid{min-width:0;max-width:100%}.chart-slot{min-width:0!important}.chart-slot svg{width:100%;min-width:0!important}.v4-chart-legend{overflow-wrap:anywhere}.filters{min-width:0;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr))!important}.filters label{min-width:0}.filters input,.filters select{min-width:0;max-width:100%;width:100%}}

/* RC2: grouped navigation and floating viewport-clamped chart tooltip. */
.v4-subnav{display:flex;flex-wrap:wrap;gap:6px;width:max-content;max-width:100%;padding:5px;margin:0 0 14px;border:1px solid var(--v4-border);border-radius:11px;background:#fff}.v4-subnav.hidden,.v4-subnav button.hidden{display:none!important}.v4-subnav button{border:0;border-radius:8px;background:transparent;color:var(--v4-muted);padding:9px 16px;font-weight:650;min-width:0}.v4-subnav button[aria-pressed=true]{background:var(--v4-green);color:white}.v4-subnav button:focus-visible{outline:2px solid var(--v4-green);outline-offset:2px}
.v4-floating-tip{position:fixed;z-index:2000;pointer-events:none;max-width:calc(100vw - 16px);width:max-content;padding:10px 14px;border-radius:10px;background:#173b30;color:#fff;box-shadow:0 8px 24px #102c2940;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.v4-floating-tip[hidden]{display:none!important}.v4-floating-row{display:grid;gap:2px}.v4-floating-row+ .v4-floating-row{margin-top:7px;padding-top:7px;border-top:1px solid #ffffff40}.v4-floating-row span{color:#d7e9df}.v4-floating-row strong{font-size:14px;font-variant-numeric:tabular-nums}
#trendChart,#dailyChart,#alertTrendChart{max-height:none!important;overflow:visible!important}#trendChart>svg,#dailyChart>svg,#alertTrendChart>svg{max-height:320px}
@media screen and (max-width:420px){.v4-subnav{width:100%}.v4-subnav button{flex:1;padding:9px 7px}.v4-floating-tip{font-size:11px;padding:8px 10px}.v4-floating-row strong{font-size:13px}}
@media print{.v4-floating-tip,.v4-subnav{display:none!important}}

/* RC4: compact shared report toolbar, unified analytics/store pages and quick periods. */
#module-advisor .v4-advisor-heading{grid-column:1/-1;min-width:0;padding-bottom:13px;border-bottom:1px solid var(--v4-border)}
#module-advisor .v4-advisor-brand{display:flex;align-items:center;gap:12px;min-width:0}
#module-advisor .v4-advisor-brand img{width:38px;height:38px;object-fit:contain;flex:none;border:1px solid var(--v4-border);border-radius:9px;background:#fff}
#module-advisor .v4-advisor-brand h2{margin:0 0 4px;color:var(--v4-ink);font-size:clamp(17px,1.8vw,22px);font-weight:800;line-height:1.25;letter-spacing:-.35px}
#module-advisor .v4-advisor-brand p{margin:0;color:var(--v4-muted);font-size:11px;line-height:1.4}
#module-advisor .v4-advisor-method{grid-column:1/-1;font-size:11px;line-height:1.55;color:var(--v4-muted);margin:0}
@media screen{
 .topbar{gap:12px;min-height:57px;height:auto;padding-top:7px;padding-bottom:7px;align-items:center}
 .topbar .heading-tools{display:flex;flex:none;align-items:center;gap:8px;width:auto;margin:0;justify-content:flex-start}
 .topbar .heading-tools .btn{white-space:nowrap;padding:8px 12px;font-size:12px}
 .topbar .top-right{margin-left:auto;min-width:0;justify-content:flex-end}
 .main{padding-top:16px!important}
 #module-advisor .advisor-toolbar{padding:18px;gap:14px;border-radius:12px;margin-bottom:9px;min-width:0}
 #module-advisor .advisor-toolbar>*{min-width:0}
}
@media screen and (max-width:630px){
 .topbar{flex-wrap:wrap!important;gap:8px;padding:8px 10px;align-items:center}
 .topbar .mobile-nav-toggle{order:0;flex:none}
 .topbar .top-right{order:1;flex:1 1 auto;width:auto;min-width:0;justify-content:flex-end}
 .topbar .heading-tools{order:2;flex:1 0 100%;width:100%;justify-content:flex-end;border-top:1px solid var(--v4-border);padding-top:7px}
 .topbar .heading-tools .btn{padding:7px 10px;font-size:11px}
 .main{padding-top:10px!important}
 #module-advisor .advisor-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #module-advisor .advisor-toolbar #advisorRefresh{grid-column:1/-1;white-space:normal}
 #module-advisor .v4-advisor-brand h2{font-size:17px}
 #module-advisor .v4-advisor-brand img{width:32px;height:32px}
}
@media print{.topbar,.heading-tools{display:none!important}}

/* RC4 — one continuous page per management category; no inner tabs. */
.filters .filter-period select{min-width:176px;max-width:210px}
.filters label.filter-date{min-width:145px}
.filters label.filter-date input{min-width:145px;max-width:170px}
.v4-section-heading{display:flex;align-items:flex-start;gap:12px;margin:22px 0 12px;padding:0 2px;min-width:0}
.v4-section-heading-spaced{margin-top:26px}
.v4-section-index{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:10px;background:#e2f3e8;color:#126b4c;font-size:12px;font-weight:850}
.v4-section-kicker{display:block;color:#148057;font-size:9px;letter-spacing:1.3px;font-weight:850;margin-bottom:4px}
.v4-section-heading h2{margin:0;color:#20332c;font-size:16px;line-height:1.35;font-weight:820;letter-spacing:-.25px}
.v4-section-heading p{margin:4px 0 0;color:#667b70;font-size:11px;line-height:1.55}
#module-analytics .analytics-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
#module-analytics .analytics-kpis .kpi{min-height:126px}
#module-analytics .growth-caution{font-size:11px;line-height:1.65;padding:11px 13px;margin:10px 0 8px;background:#fff8ed;border-left:3px solid #e5ad59;color:#795f45;border-radius:7px}
#module-analytics #hourBars{gap:10px;min-height:0}
#module-analytics #hourRibbon{min-height:90px}
#module-stores .v4-region-content{display:grid;gap:14px;margin-bottom:4px}
#module-stores .v4-region-content>.store-hero-grid{margin-bottom:0}
#module-stores .v4-region-content>section.panel{margin-bottom:0}
#module-stores .stores-summary-grid{margin-top:0}
#module-stores .stores-summary-grid>.panel{min-width:0}
@media screen and (max-width:1100px){#module-analytics .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media screen and (max-width:930px){.filters .filter-period{grid-column:1/-1}}
@media screen and (max-width:630px){
 .v4-section-heading{margin-top:18px;gap:9px}
 .v4-section-heading h2{font-size:14px}
 .v4-section-index{width:29px;height:29px}
 #module-analytics .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .filters label.filter-date{min-width:0;width:100%}
}

/* RC4 Preview safety indicator — preview package only. */
.preview-chip{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #b7e4d2;border-radius:999px;background:#effaf4;color:#126b4c;font-size:10px;font-weight:850;letter-spacing:.35px;white-space:nowrap;flex:none}
@media screen and (max-width:630px){.preview-chip{font-size:9px;padding:6px 8px}}
