@import url("./cocawi-login.css?v=d62ec39b9023");
/* COCAWI / ECOMETALES. Local assets; no external fonts or scripts. */
.ecom-app .ecom-alpha,.ecom-app .ec-fin{--ui-ink:#172b43;--ui-muted:#4b5c70;--ui-line:#d6dfe9;--ui-blue:#164b83;--ui-bg:#f4f7fb;max-width:1440px;margin:0 auto;padding:24px;color:var(--ui-ink);font:400 15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--ui-bg);box-sizing:border-box}.ecom-app .ecom-alpha *,.ecom-app .ec-fin *{box-sizing:border-box}.ecom-app .ecom-alpha h1,.ecom-app .ec-fin h1{font-size:clamp(24px,3vw,32px);line-height:1.2;letter-spacing:-.5px;margin:0 0 18px}.ecom-app .ecom-alpha h2,.ecom-app .ec-fin h2{font-size:20px;margin:0 0 14px}.ecom-app .ecom-alpha h3,.ecom-app .ec-fin h3{font-size:17px}.ecom-app .ecom-alpha p,.ecom-app .ec-fin p{margin:10px 0 16px}.ecom-app .ecom-alpha a,.ecom-app .ec-fin a{color:#124d87;text-underline-offset:3px}.ecom-app .ecom-alpha :focus-visible,.ecom-app .ec-fin :focus-visible{outline:3px solid #1b6dc1;outline-offset:3px}.ecom-app .ecom-ui-nav{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--ui-line);padding:12px 0 18px;margin-bottom:24px}.ecom-app .ecom-ui-nav a{padding:8px 12px;border-radius:5px;text-decoration:none;font-weight:600}.ecom-app .ecom-ui-nav a:hover{background:#e4edf8}.ecom-app .ecom-ui-nav a[aria-current=page]{background:#163e68;color:#fff}.ecom-app .ecom-alert,.ecom-app .ec-notice{padding:14px 18px;background:#e8f0fa;border-left:4px solid #245a91;border-radius:4px;font-size:14px}.ecom-app .ecom-alert p{margin:4px 0}.ecom-app .ec-warning,.ecom-app [role=alert]{padding:14px;background:#fff4dc;color:#624300;border-left:4px solid #aa7500}.ecom-app .ecom-eyebrow{display:block;text-transform:uppercase;letter-spacing:1.3px;font-size:12px;font-weight:700;color:var(--ui-muted);margin-bottom:8px}.ecom-app .ecom-badge,.ecom-app .ecom-lab-badge,.ecom-app .ui-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;font-size:12px;font-weight:650;border-radius:4px;background:#e7edf4;color:#32465e;margin:2px}.ecom-app .ecom-lab-badge,.ecom-app .ui-badge--warning{background:#fff0c9;color:#694800}.ecom-app .ui-badge--success{background:#e1f1e6;color:#15572f}.ecom-app .ui-badge--danger{background:#fde6e5;color:#9b2520}.ecom-app .ec-grid,.ecom-app .ecom-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:18px 0 24px}.ecom-app .ec-card,.ecom-app .ecom-kpi{padding:20px;background:#fff;border:1px solid var(--ui-line);border-radius:8px;box-shadow:0 2px 5px #142c4510}.ecom-app .ec-card h2,.ecom-app .ecom-kpi h2{font-size:15px;color:var(--ui-muted);font-weight:600}.ecom-app .ec-card p,.ecom-app .ecom-kpi p{font-size:13px;color:var(--ui-muted)}.ecom-app .ec-card .ec-value,.ecom-app .ecom-kpi strong{display:block;font-size:28px;font-weight:650;letter-spacing:-.5px;color:var(--ui-ink);font-variant-numeric:tabular-nums;margin:10px 0}.ecom-app .ec-card small{font-size:12px;color:var(--ui-muted)}.ecom-app .ui-section{margin:24px 0;padding:22px;background:#fff;border:1px solid var(--ui-line);border-radius:8px}.ecom-app .ui-section>header>p{color:var(--ui-muted);font-size:14px}.ecom-app .ui-section .ec-card{box-shadow:none;background:#fafcff}.ecom-app .ec-table,.ecom-app .ecom-table-wrap{overflow-x:auto;max-width:100%;border:1px solid var(--ui-line);border-radius:6px;margin:16px 0 24px;background:#fff}.ecom-app .ecom-alpha table,.ecom-app .ec-fin table{width:100%;border-collapse:collapse;min-width:640px;background:#fff;font-size:14px}.ecom-app .ecom-alpha th,.ecom-app .ec-fin th{background:#edf2f8;color:#34485e;font-weight:650;text-align:left;border-bottom:2px solid var(--ui-line)}.ecom-app .ecom-alpha th,.ecom-app .ec-fin th,.ecom-app .ecom-alpha td,.ecom-app .ec-fin td{padding:12px 14px;vertical-align:top;border-bottom:1px solid #e6ebf1}.ecom-app .ecom-alpha tbody tr:hover,.ecom-app .ec-fin tbody tr:hover{background:#f7faff}.ecom-app .ecom-alpha caption,.ecom-app .ec-fin caption{text-align:left;padding:12px 14px;font-weight:650;background:#fff}.ecom-app .ec-number,.ecom-app .ecom-number,.ecom-app .ui-number{font-variant-numeric:tabular-nums;text-align:right!important;white-space:nowrap}.ecom-app .ui-facts,.ecom-app .ecom-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px 24px;padding:20px;background:#fff;border:1px solid var(--ui-line);border-radius:8px;margin:18px 0}.ecom-app .ui-facts dt,.ecom-app .ecom-facts dt{font-size:13px;color:var(--ui-muted);font-weight:550;margin-bottom:4px}.ecom-app .ui-facts dd,.ecom-app .ecom-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.ecom-app .ecom-alpha>dl,.ecom-app .ec-fin>dl{display:grid;grid-template-columns:minmax(150px,1fr) 2fr;gap:10px;padding:20px;background:#fff;border:1px solid var(--ui-line)}.ecom-app .ecom-alpha dd,.ecom-app .ec-fin dd{margin:0;overflow-wrap:anywhere}.ecom-app .ecom-alpha code,.ecom-app .ec-fin code{font-size:12px;overflow-wrap:anywhere;white-space:normal}.ecom-app .ui-trace,.ecom-app .ecom-alpha details,.ecom-app .ec-fin details{padding:16px 18px;margin:18px 0;border:1px solid var(--ui-line);border-radius:6px;background:#fff}.ecom-app .ecom-alpha summary,.ecom-app .ec-fin summary{cursor:pointer;font-weight:650;min-height:28px}.ecom-app .ui-empty{padding:26px 16px;text-align:center;color:var(--ui-muted)}.ecom-app .ecom-alpha form,.ecom-app .ec-fin form{background:#fff;border:1px solid var(--ui-line);padding:20px;border-radius:8px;margin:16px 0 24px}.ecom-app .ecom-alpha form p,.ecom-app .ec-fin form p{margin:0 0 16px}.ecom-app .ecom-alpha label,.ecom-app .ec-fin label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;max-width:640px;margin-bottom:14px}.ecom-app .ecom-alpha input,.ecom-app .ecom-alpha select,.ecom-app .ecom-alpha textarea,.ecom-app .ec-fin input,.ecom-app .ec-fin select,.ecom-app .ec-fin textarea{font:400 15px/1.4 system-ui,sans-serif;padding:10px 12px;border:1px solid #8395aa!important;border-radius:4px;background:#fff;color:#172b43;width:100%;min-height:42px;box-shadow:none!important}.ecom-app .ecom-alpha input[type=hidden],.ecom-app .ec-fin input[type=hidden]{display:none}.ecom-app .ecom-alpha textarea,.ecom-app .ec-fin textarea{min-height:100px;resize:vertical}.ecom-app .ecom-alpha input:user-invalid,.ecom-app .ec-fin input:user-invalid,.ecom-app .ecom-alpha select:user-invalid,.ecom-app .ec-fin select:user-invalid{border-color:#a82424!important}.ecom-app .ecom-alpha button,.ecom-app .ec-fin button,.ecom-app .ui-primary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 16px;border:1px solid #164b83;border-radius:5px;background:#164b83;color:#fff;font:600 14px system-ui,sans-serif;cursor:pointer;text-decoration:none}.ecom-app .ecom-alpha button:hover,.ecom-app .ec-fin button:hover{background:#10385f}.ecom-app .ecom-alpha fieldset,.ecom-app .ec-fin fieldset{border:1px solid var(--ui-line);border-radius:6px;padding:18px;margin:16px 0}.ecom-app .ecom-alpha legend,.ecom-app .ec-fin legend{font-weight:650;padding:0 8px}.ecom-app .ec-filters{display:flex;align-items:end;flex-wrap:wrap;gap:16px}.ecom-app .ec-filters label{margin:0;min-width:155px}.ecom-app .ecom-pagination{display:flex;gap:14px;margin:20px 0}.ecom-app .ui-zone{font-size:12px;color:#4b5c70}.ecom-app .ui-skip{position:absolute;left:-10000px}.ecom-app .ui-skip:focus{position:static;display:block;padding:8px}.ecom-app .ecom-alpha output,.ecom-app .ec-fin output{font-weight:600}.ecom-app .ui-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}
@media(min-width:1000px){.ecom-app .ecom-alpha form:not(.ec-filters)>fieldset{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ecom-app .ecom-alpha form:not(.ec-filters)>fieldset legend{grid-column:1/-1}}
@media(max-width:700px){.ecom-app .ecom-alpha,.ecom-app .ec-fin{padding:16px 10px}.ecom-app .ecom-ui-nav{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;max-width:100%;padding-bottom:12px}.ecom-app .ecom-ui-nav a{flex:none}.ecom-app .ec-grid{grid-template-columns:1fr}.ecom-app .ui-facts{grid-template-columns:1fr 1fr;gap:14px}.ecom-app .ui-section{padding:14px}.ecom-app .ecom-alpha form,.ecom-app .ec-fin form{padding:14px}.ecom-app .ec-filters{display:block}.ecom-app .ec-filters label{margin-bottom:14px}.ecom-app .ecom-alpha table,.ecom-app .ec-fin table{min-width:700px}.ecom-app .ec-card .ec-value{font-size:26px}}
@media(prefers-reduced-motion:reduce){.ecom-app .ecom-alpha *,.ecom-app .ec-fin *{scroll-behavior:auto!important}}

#id-right:has(#ecom-content){min-width:0}#id-right:has(#ecom-content)>.fiche{min-width:0}
@media(max-width:900px){#id-container:has(#ecom-content){display:block!important;width:100%!important;min-width:0!important}#id-container:has(#ecom-content)>.side-nav{display:block;width:100%!important;min-width:0!important}body.sidebar-collapse #id-container:has(#ecom-content)>.side-nav{display:none!important}#id-right:has(#ecom-content){display:block!important;width:100%!important;min-width:0!important;margin-left:0!important;padding:10px 0!important}#id-right:has(#ecom-content)>.fiche{margin:0!important;padding:0 8px!important;max-width:100%}#ecom-content{width:100%;min-width:0;max-width:100%}.ecom-app .ecom-ui-nav{max-width:100%}.ecom-app .ec-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}.ecom-app .ui-facts>div{min-width:0}}.ecom-app .ecom-alpha .div-table-responsive{max-width:100%;overflow-x:auto;border:1px solid var(--ui-line);border-radius:6px;background:#fff;margin:16px 0}.ecom-app .ecom-alpha .ecom-facts{grid-template-columns:minmax(110px,1fr) 2fr}.ecom-app .ecom-alpha .right{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.ecom-app .ecom-alpha .ecom-card{padding:20px;background:#fff;border:1px solid var(--ui-line);border-radius:8px}
@media(min-width:901px){#id-container:has(#ecom-content){display:flex;width:100%;align-items:stretch}#id-container:has(#ecom-content)>.side-nav{flex:0 0 auto}#id-right:has(#ecom-content){display:block;flex:1 1 0%;min-width:0;width:auto!important}#ecom-content{width:100%}}

/* Enterprise identity. All component rules belong to the Ecometales root. */
.ecom-app{--brand:#116b65;--navy:#122d34;--paper:#f3f6f5;--line:#dce5e2;--muted:#4d6463;color:#193631;background:var(--paper);font:400 15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;isolation:isolate;min-width:0;width:100%;box-sizing:border-box}
.ecom-app *{box-sizing:border-box}
.ecom-app .ecom-app-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 30px;background:#fff;border-top:4px solid var(--brand);border-bottom:1px solid var(--line)}
.ecom-app .ecom-app-brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--navy)}
.ecom-app .ecom-app-monogram{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--brand);color:#fff;font-size:29px;font-weight:750}
.ecom-app .ecom-app-brand small{display:block;font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--muted)}
.ecom-app .ecom-app-brand strong{display:block;font-size:23px;line-height:1.3;letter-spacing:1.2px}
.ecom-app .ecom-app-session{display:flex;align-items:center;gap:18px;font-size:13px}
.ecom-app .ecom-app-session a{color:var(--brand);font-weight:650;text-underline-offset:4px;padding:10px}
.ecom-app .ecom-app-environment{color:#684a13;background:#fff3d8;border:1px solid #e5cd94;padding:5px 10px;border-radius:20px;font-size:12px}
.ecom-app .ecom-app-layout{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:70vh}
.ecom-app .ecom-app-sidebar{background:var(--navy);color:#dcebe7;padding:26px 16px;min-width:0}
.ecom-app .ecom-app-section-label{font-size:10px;letter-spacing:1.6px;font-weight:700;color:#b3ceca;margin:0 12px 18px}
.ecom-app .ecom-ui-nav{display:flex;flex-direction:column;gap:5px;border:0;margin:0;padding:0}
.ecom-app .ecom-ui-nav a{display:block;min-height:44px;padding:11px 14px;color:#e4efeb;border-radius:7px;text-decoration:none;font-size:13px;font-weight:550;white-space:normal;border-left:3px solid transparent}
.ecom-app .ecom-ui-nav a:hover{background:#204249;color:#fff}
.ecom-app .ecom-ui-nav a[aria-current=page]{background:#24524f;border-left-color:#71d6b5;color:#fff;font-weight:700}
.ecom-app .ecom-app-context{margin:32px 12px 0;padding-top:20px;border-top:1px solid #3c565b;font-size:12px;color:#c1d5d0}
.ecom-app .ecom-app-context p{margin:8px 0 14px}.ecom-app .ecom-app-context strong{color:#fff;font-size:12px}.ecom-app .ecom-app-context small{line-height:1.6;display:block}
.ecom-app .ecom-app-workspace{min-width:0;padding:30px}
.ecom-app #ecom-content{--ui-ink:#193631;--ui-muted:#4d6463;--ui-line:#dce5e2;--ui-blue:#116b65;--ui-bg:#f3f6f5;padding:0;max-width:1440px;margin:0 auto;width:100%;min-width:0;background:transparent;color:var(--ui-ink)}
.ecom-app #ecom-content h1{font-size:clamp(24px,2.3vw,34px);font-weight:700;letter-spacing:-.8px;margin:0 0 20px}
.ecom-app #ecom-content h2{letter-spacing:-.25px}.ecom-app #ecom-content a{color:#0c625c}.ecom-app #ecom-content a.ui-primary{color:#fff}
.ecom-app .ecom-eyebrow{color:#45665f;font-size:11px;letter-spacing:1.8px}
.ecom-app .ecom-alert,.ecom-app .ec-notice{border:1px solid #c9ded8;border-left:3px solid var(--brand);border-radius:8px;background:#e9f3ef;color:#2e5148;padding:14px 18px;font-size:12px}
.ecom-app .ui-zone{font-size:11px;color:#526965;margin:16px 0 24px}
.ecom-app .ec-card,.ecom-app .ecom-kpi,.ecom-app .ecom-card{border-color:var(--line);border-radius:12px;box-shadow:0 3px 12px #19363107;position:relative;border-top:3px solid #64a995;padding:22px}
.ecom-app .ec-card .ec-value,.ecom-app .ecom-kpi strong{font-size:clamp(24px,2.3vw,32px);font-weight:700;color:#174d43;overflow-wrap:anywhere}
.ecom-app .ui-section{border-color:var(--line);border-radius:12px;padding:24px}.ecom-app .ui-facts{border-color:var(--line);border-radius:10px}
.ecom-app #ecom-content th{background:#edf3f0;color:#3d5b53;font-size:12px;letter-spacing:.2px;border-bottom:1px solid #cddcd5}
.ecom-app #ecom-content td{border-color:#e4ece7;padding:14px}.ecom-app #ecom-content tbody tr:hover{background:#f0f7f3}
.ecom-app .ec-table,.ecom-app .ecom-table-wrap,.ecom-app .div-table-responsive{border-color:var(--line);border-radius:10px;scrollbar-color:#8cae9f #eff4f1}
.ecom-app #ecom-content form{border-color:var(--line);border-radius:10px;box-shadow:0 3px 12px #19363104}
.ecom-app #ecom-content input,.ecom-app #ecom-content select,.ecom-app #ecom-content textarea{border-color:#8aa69d!important;border-radius:6px;color:#193631;max-width:100%;min-width:0}
.ecom-app #ecom-content input[type=checkbox],.ecom-app #ecom-content input[type=radio]{width:auto;min-height:20px;accent-color:var(--brand)}
.ecom-app #ecom-content button,.ecom-app #ecom-content .ui-primary{background:var(--brand);border-color:var(--brand);border-radius:6px;box-shadow:0 2px 4px #123b3010}
.ecom-app #ecom-content button:hover,.ecom-app #ecom-content .ui-primary:hover{background:#0d514d}
.ecom-app :focus-visible{outline:3px solid #b17b17;outline-offset:3px}
.ecom-app .ecom-app-footer{display:flex;justify-content:space-between;gap:15px;padding:18px 30px;background:#fff;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
/* Native container sizing applies only while this module's root is present. */
#id-right:has(.ecom-app){padding:0!important;width:100%!important;min-width:0}
#id-right:has(.ecom-app)>.fiche{padding:0!important;margin:0!important}
#id-container:has(.ecom-app){width:100%;min-width:0}
@media(max-width:1100px){.ecom-app .ecom-app-layout{grid-template-columns:200px minmax(0,1fr)}.ecom-app .ecom-app-workspace{padding:24px 20px}.ecom-app .ecom-app-header{padding:18px 20px}}
@media(max-width:800px){.ecom-app .ecom-app-layout{display:block}.ecom-app .ecom-app-sidebar{padding:12px}.ecom-app .ecom-app-section-label,.ecom-app .ecom-app-context{display:none}.ecom-app .ecom-ui-nav{flex-direction:row;overflow-x:auto;max-width:100%;flex-wrap:nowrap;padding-bottom:5px;margin:0;gap:5px}.ecom-app .ecom-ui-nav a{flex:0 0 auto;white-space:nowrap;min-height:44px;border-left:0;border-bottom:3px solid transparent}.ecom-app .ecom-ui-nav a[aria-current=page]{border-bottom-color:#71d6b5}.ecom-app .ecom-app-header{flex-wrap:wrap;gap:12px}.ecom-app .ecom-app-session{justify-content:space-between;width:100%;gap:8px}.ecom-app .ecom-app-workspace{padding:22px 14px}.ecom-app .ecom-app-footer{flex-direction:column;padding:16px}.ecom-app .ec-grid,.ecom-app .ecom-kpis{grid-template-columns:minmax(0,1fr)}.ecom-app .ui-facts{grid-template-columns:minmax(0,1fr)}.ecom-app .ecom-facts{grid-template-columns:minmax(0,1fr)}.ecom-app .ec-filters label{min-width:0;width:100%}.ecom-app .ui-section{padding:16px}.ecom-app #ecom-content form{padding:16px}.ecom-app #ecom-content>dl{grid-template-columns:minmax(0,1fr)}}
@media print{.ecom-app .ecom-app-sidebar,.ecom-app .ecom-app-session,.ecom-app .ui-skip{display:none}.ecom-app .ecom-app-layout{display:block}.ecom-app .ecom-app-workspace{padding:0}.ecom-app .ec-table,.ecom-app .div-table-responsive{overflow:visible}.ecom-app #ecom-content table{min-width:0;font-size:10px}.ecom-app #ecom-content th,.ecom-app #ecom-content td{padding:5px}.ecom-app .ec-card{box-shadow:none;break-inside:avoid}}

/* Final dashboard spacing: retain the existing authorized metrics and sections. */
.ecom-app #ecom-content.ec-fin{max-width:none}
.ecom-app .ec-fin .ui-section{padding:18px;margin:16px 0}
.ecom-app .ec-fin .ui-section>.ec-grid{gap:12px;margin:12px 0 0;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.ecom-app .ec-fin .ui-section .ec-card{padding:16px;border-radius:9px}
.ecom-app .ec-fin .ui-section .ec-card h2{margin-bottom:8px;line-height:1.35}
.ecom-app .ec-fin .ui-section .ec-card .ec-value{margin:8px 0;font-size:clamp(23px,2vw,30px)}
.ecom-app .ec-fin .ui-section .ec-card p{margin:6px 0 8px}
.ecom-app .ec-fin .ui-section>.ec-grid:has(>.ec-card:nth-child(6)){grid-template-columns:repeat(3,minmax(0,1fr))}
.ecom-app .ec-fin>.ec-filters{padding:14px 18px;gap:12px;margin:16px 0;align-items:end}
.ecom-app .ec-fin>.ec-filters label{flex:0 1 230px}
.ecom-app .ecom-app-context small{margin-top:8px}
@media(min-width:1600px){.ecom-app .ec-fin .ui-section>.ec-grid:has(>.ec-card:nth-child(6)){grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1100px){.ecom-app .ec-fin .ui-section>.ec-grid:has(>.ec-card:nth-child(6)){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.ecom-app .ec-fin .ui-section{padding:14px}.ecom-app .ec-fin .ui-section>.ec-grid,.ecom-app .ec-fin .ui-section>.ec-grid:has(>.ec-card:nth-child(6)){grid-template-columns:minmax(0,1fr)}.ecom-app .ec-fin>.ec-filters label{width:100%;max-width:none}.ecom-app .ec-fin .ui-section .ec-card{padding:16px}}

/* COCAWI enterprise RC2. Scoped enhancement; business warnings and native fields remain visible. */
.ecom-app{--brand:#09674f;--navy:#132e28;--paper:#f4f7f4;--line:#dce5df;--muted:#546c61;color:#183b2e;background:var(--paper);font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.ecom-app .ecom-app-header{padding:20px 28px;border-top:0;gap:24px;min-height:94px}
.ecom-app .ecom-app-brand{color:#123b2d;gap:12px;flex-shrink:0}
.ecom-app .ecom-app-monogram{width:44px;height:44px;border-radius:13px;font-size:28px;background:#09674f}
.ecom-app .ecom-app-brand strong{font-size:23px;font-weight:800;letter-spacing:1px;line-height:1.1}
.ecom-app .ecom-app-brand small{font-size:9px;letter-spacing:1.2px;margin-top:7px;color:#526c61}
.ecom-app .ecom-app-session{gap:20px;min-width:0;flex-wrap:wrap}
.ecom-app .ecom-app-session>a{border:1px solid #d4dfd7;border-radius:7px;padding:10px 13px;color:#234f3d;min-height:44px;display:inline-flex;align-items:center}
.ecom-app .ecom-app-environment{border-radius:5px;background:#fff8e9;border-color:#e6d6aa;color:#76561f;font-size:11px;padding:5px 8px;white-space:nowrap}
.ecom-app .cocawi-user{display:flex;gap:9px;align-items:center;min-width:0;max-width:300px}
.ecom-app .cocawi-user small{display:block;font-size:10px;color:#546c61}
.ecom-app .cocawi-user strong{font-size:12px;font-weight:600;display:block;overflow-wrap:anywhere;max-width:230px}
.ecom-app .cocawi-avatar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#e7efe8;color:#31573f;font-size:13px;font-weight:700}
.ecom-app .ecom-app-layout{grid-template-columns:236px minmax(0,1fr);min-height:calc(100vh - 150px)}
.ecom-app .ecom-app-sidebar{padding:26px 15px;background:#142e25}
.ecom-app .ecom-app-section-label{font-size:9px;letter-spacing:1.2px;margin:0 13px 21px;color:#b1c3b4}
.ecom-app .cocawi-nav-label{display:block;font-size:9px;font-weight:650;letter-spacing:1.8px;color:#b1c3b4;margin:22px 14px 8px}
.ecom-app .cocawi-nav-label:first-child{margin-top:0}
.ecom-app .cocawi-nav-number{font-size:10px;color:#aac2b4;font-variant-numeric:tabular-nums;margin-right:13px;letter-spacing:.5px}
.ecom-app .ecom-ui-nav a{display:flex;align-items:center;font-size:13px;padding:11px 12px;min-height:44px;border:1px solid transparent;border-radius:7px;color:#e0e9df;white-space:normal;gap:0}
.ecom-app .ecom-ui-nav a:hover{background:#224035}
.ecom-app .ecom-ui-nav a[aria-current=page]{background:#2c4d3b;border-color:#44644b;color:#fff}
.ecom-app .ecom-ui-nav a[aria-current=page] .cocawi-nav-number{color:#b9e09c}
.ecom-app .ecom-app-context{margin:30px 14px 0;border-top:1px solid #385044;padding-top:24px}
.ecom-app .ecom-app-context strong{display:block;font-size:10px;margin:12px 0 8px;color:#d9e6d7;letter-spacing:.5px}
.ecom-app .ecom-app-context small{font-size:10px;line-height:1.7;color:#b1c3b4}
.ecom-app .cocawi-sidebar-mark{display:grid;place-items:center;width:26px;height:26px;border:1px solid #66836e;border-radius:7px;color:#d3e7c3;font-size:17px;font-weight:700}
.ecom-app .ecom-app-workspace{padding:30px clamp(18px,2.4vw,44px);min-width:0}
.ecom-app #ecom-content{--ui-ink:#183b2e;--ui-muted:#546c61;--ui-line:#dce5df;--ui-blue:#09674f;--ui-bg:#f4f7f4}
.ecom-app #ecom-content>h1,.ecom-app .ecom-heading h1{font-weight:650;font-size:27px;letter-spacing:-.8px;margin:0 0 16px}
.ecom-app .ecom-eyebrow{font-size:10px;color:#547260;letter-spacing:1.8px}
.ecom-app .ecom-heading .ecom-badge,.ecom-app .ecom-heading .ecom-lab-badge{font-size:10px;padding:3px 7px;margin-bottom:15px}
.ecom-app .ecom-alert,.ecom-app .ec-notice{background:#edf2ed;border:1px solid #d8e4d8;border-left:3px solid #71956a;border-radius:6px;padding:12px 15px;font-size:12px;line-height:1.6;color:#375c42}
.ecom-app .ui-zone{font-size:10px;color:#5b7063;margin:8px 0 20px}
.ecom-app .cocawi-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:27px 30px;background:#e8eee5;border:1px solid #d8e3d3;border-radius:12px;margin:22px 0 18px;overflow:hidden}
.ecom-app .cocawi-kicker{font-size:9px;font-weight:750;letter-spacing:1.8px;color:#426444}
.ecom-app .cocawi-welcome h2{font-size:clamp(23px,2.4vw,30px);font-weight:600;letter-spacing:-.9px;margin:9px 0 12px;color:#204b33}
.ecom-app .cocawi-welcome p{font-size:13px;color:#47614c;max-width:600px;margin:0;line-height:1.7}
.ecom-app .cocawi-unit{font-size:18px;font-weight:600;white-space:nowrap;color:#3d6143;border:1px solid #c6d5bd;border-radius:10px;padding:18px}
.ecom-app .cocawi-unit span{font-weight:400;color:#70856d;margin:0 5px}
.ecom-app .cocawi-insight{display:flex;justify-content:space-between;align-items:center;gap:24px;background:white;border:1px solid #dce5df;border-radius:10px;padding:24px 28px;margin:18px 0 30px}
.ecom-app .cocawi-insight h2{font-size:19px;margin:8px 0;font-weight:650;letter-spacing:-.4px}
.ecom-app .cocawi-insight p{font-size:12px;line-height:1.7;color:#546c61;max-width:650px;margin:0}
.ecom-app .cocawi-insight .ui-primary{flex-shrink:0;gap:12px;background:#09674f;border-color:#09674f;border-radius:7px;font-size:12px;min-height:44px}
.ecom-app .cocawi-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:18px 0}
.ecom-app .cocawi-section-heading h2{font-size:17px;margin:0;font-weight:650}
.ecom-app .cocawi-section-heading p{font-size:11px;color:#546c61;margin:0}
.ecom-app .cocawi-work-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 26px}
.ecom-app .ec-card{border-radius:10px;border-color:#dce5df;box-shadow:none;padding:22px}
.ecom-app .ec-card h2{color:#264f38;font-size:14px;font-weight:650;line-height:1.4}
.ecom-app .ec-card p{font-size:12px;color:#546c61;line-height:1.7}
.ecom-app .cocawi-work-grid .ec-card{min-height:170px;display:flex;flex-direction:column;align-items:flex-start}
.ecom-app .cocawi-work-grid .ec-card h2{margin:0 0 10px;font-size:15px}
.ecom-app .cocawi-work-grid .ec-card p{margin:0 0 14px;flex:1}
.ecom-app .cocawi-work-grid .ec-card>a{font-size:11px;font-weight:700;color:#09674f;min-height:44px;display:inline-flex;align-items:center}
.ecom-app .ec-card .ec-value{font-size:28px;font-weight:650;color:#1c4f37}
.ecom-app .ec-table,.ecom-app .div-table-responsive{border-radius:10px;border-color:#dce5df;box-shadow:none}
.ecom-app table caption{font-size:12px;color:#294b37;padding:16px!important;text-align:left}
.ecom-app #ecom-content th{font-size:10px;letter-spacing:.35px;background:#f0f4ee;color:#44654c;padding:13px 16px;border-bottom:1px solid #dce5df;line-height:1.5}
.ecom-app #ecom-content td{font-size:12px;padding:15px 16px;border-color:#e8eee7;line-height:1.7}
.ecom-app #ecom-content tbody tr:hover{background:#f5f9f2}
.ecom-app #ecom-content .ui-badge{font-size:10px;font-weight:650;padding:3px 8px;border-radius:5px}
.ecom-app #ecom-content .ui-badge--success{background:#e4f1df;color:#315d23}
.ecom-app #ecom-content .ui-badge--warning{background:#fff2d6;color:#6e531e}
.ecom-app #ecom-content form{border-color:#dce5df;border-radius:10px;padding:23px}
.ecom-app #ecom-content input,.ecom-app #ecom-content select,.ecom-app #ecom-content textarea{border-color:#9aafa0!important;border-radius:6px;min-height:44px;font-size:16px;color:#183b2e}
.ecom-app #ecom-content input[type=hidden]{display:none}
.ecom-app #ecom-content label{font-size:12px;font-weight:650;color:#3d5a45;line-height:1.5}
.ecom-app #ecom-content button{background:#09674f;border-color:#09674f;min-height:44px;border-radius:6px;font-size:12px}
.ecom-app #ecom-content .ec-filters{background:#fff;gap:18px;margin-top:16px}
.ecom-app #ecom-content .ec-filters label{flex:1;max-width:240px}
.ecom-app #ecom-content nav:not(.ecom-ui-nav){display:flex;gap:12px;flex-wrap:wrap;margin:20px 0;font-size:12px}
.ecom-app #ecom-content nav:not(.ecom-ui-nav) a{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;background:#fff;border:1px solid #dce5df;border-radius:6px}
.ecom-app .ecom-app-footer{font-size:10px;color:#65766a;padding:18px 28px;border-top:1px solid #dce5df;background:#fff;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ecom-app :focus-visible{outline:3px solid #0b785b;outline-offset:4px}
@media(min-width:1600px){.ecom-app .cocawi-work-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.ecom-app .ecom-app-layout{grid-template-columns:205px minmax(0,1fr)}.ecom-app .cocawi-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ecom-app .cocawi-insight{align-items:flex-start;flex-direction:column}.ecom-app .cocawi-unit{display:none}.ecom-app .ecom-app-environment{font-size:10px}}
@media(max-width:800px){.ecom-app .ecom-app-header{padding:16px;gap:15px;flex-wrap:wrap}.ecom-app .ecom-app-session{justify-content:flex-start;gap:12px;width:100%}.ecom-app .cocawi-user{flex:1}.ecom-app .ecom-app-layout{display:block}.ecom-app .ecom-app-sidebar{padding:10px 14px;background:#142e25}.ecom-app .ecom-app-section-label,.ecom-app .ecom-app-context,.ecom-app .cocawi-nav-label{display:none}.ecom-app .ecom-ui-nav{display:flex;flex-direction:row;overflow-x:auto;max-width:100%;gap:5px;flex-wrap:nowrap;padding-bottom:2px}.ecom-app .ecom-ui-nav a{flex:none;font-size:12px;white-space:nowrap;min-height:44px;padding:9px 13px}.ecom-app .cocawi-nav-number{display:none}.ecom-app .ecom-app-workspace{padding:22px 16px}.ecom-app .cocawi-welcome{padding:22px}.ecom-app .cocawi-section-heading{align-items:flex-start;flex-direction:column;gap:7px}.ecom-app .ecom-app-footer{padding:16px}}
@media(max-width:520px){.ecom-app .ecom-app-session{gap:10px}.ecom-app .cocawi-user strong{font-size:11px}.ecom-app .cocawi-user{max-width:200px}.ecom-app .ecom-app-environment{font-size:9px}.ecom-app .cocawi-work-grid{grid-template-columns:1fr}.ecom-app .cocawi-welcome h2{font-size:25px}.ecom-app .cocawi-insight{padding:21px}.ecom-app .ecom-app-session>a{font-size:11px;padding:8px 10px}.ecom-app .ecom-app-workspace{padding:20px 14px}.ecom-app #ecom-content>h1{font-size:24px}.ecom-app .ec-card{padding:20px}.ecom-app #ecom-content form{padding:16px}}
.ecom-app .cocawi-dialog{box-sizing:border-box;max-width:min(520px,calc(100vw - 32px));border:1px solid #cbd9cd;border-radius:14px;padding:28px;color:#183b2e;background:#fff;font:14px/1.7 system-ui;box-shadow:0 24px 80px #123b2d30}
.ecom-app .cocawi-dialog::backdrop{background:#102e2870}
.ecom-app .cocawi-dialog h2{font-size:20px;margin-top:0}
/* RC3: operational UI, progressive enhancement and native modal drawer. */
.ecom-app .cocawi-nav-symbol{display:inline-flex;margin-right:12px;flex-shrink:0;color:#bdd1c0}
.ecom-app .cocawi-icon{flex-shrink:0;display:block}
.ecom-app .cocawi-menu-toggle{display:none}
.ecom-app .cocawi-menu-toggle[hidden]{display:none!important}
.ecom-app .cocawi-drawer:not([open]){display:none}
.ecom-app .cocawi-drawer{box-sizing:border-box;position:fixed;inset:0 auto 0 0;margin:0;width:min(340px,90vw);max-width:90vw;height:100dvh;max-height:100dvh;overflow-y:auto;background:#142e25;color:#f1f6ee;border:0;padding:20px 16px;box-shadow:18px 0 55px #102e2840}
.ecom-app .cocawi-drawer::backdrop{background:#0b251cb3}
.ecom-app .cocawi-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:18px;border-bottom:1px solid #45624b}
.ecom-app .cocawi-drawer-heading strong{font-size:14px}
.ecom-app .cocawi-drawer-close{display:grid;place-items:center;width:44px;height:44px;background:#294d39;color:#fff;border:1px solid #57755c;border-radius:7px;cursor:pointer}
.ecom-app .cocawi-drawer .ecom-ui-nav{display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;gap:5px;margin-top:18px;padding:0}
.ecom-app .cocawi-drawer .ecom-ui-nav a{display:flex;white-space:normal;min-height:44px;font-size:14px;flex-shrink:0}
.ecom-app .cocawi-drawer .cocawi-nav-label{display:block;margin:20px 12px 8px;color:#b1c3b4}
.ecom-app .cocawi-drawer :focus-visible{outline-color:#a9dd9a}
.ecom-app .cocawi-executive{margin:22px 0 28px;padding:24px}
.ecom-app .cocawi-executive h2{font-size:22px;letter-spacing:-.5px;margin:8px 0 10px}
.ecom-app .cocawi-executive header>p{font-size:12px;color:#546c61;line-height:1.7}
.ecom-app .cocawi-executive-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ecom-app .cocawi-executive-grid .ec-card{padding:18px;min-width:0;background:#f8fbf6}
.ecom-app .cocawi-executive-grid h3{font-size:12px;font-weight:650;line-height:1.5;color:#31513b;margin:0}
.ecom-app .cocawi-executive-grid .ec-value{font-size:23px;overflow-wrap:anywhere}
.ecom-app .cocawi-executive .ui-primary{margin-top:8px;min-height:44px;font-size:12px}
.ecom-app .cocawi-table-tools{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#eef4ee;border:1px solid #d4e0d3;border-radius:8px;padding:12px 16px;margin:18px 0 8px}
.ecom-app #ecom-content .cocawi-table-tools label{margin:0;max-width:360px;min-width:min(240px,100%)}
.ecom-app .cocawi-table-tools [role=status]{font-size:11px;line-height:1.6;color:#47634b}
.ecom-app .cocawi-table-tools input{margin-top:5px}
.ecom-app .cocawi-required{font-size:11px;color:#685021;font-weight:500}
.ecom-app .cocawi-form-guidance,.ecom-app .cocawi-submit-note{font-size:12px;line-height:1.7;color:#47634b}
.ecom-app .cocawi-submit-note:empty{display:none}
.ecom-app .cocawi-submit-note:not(:empty){padding:12px;background:#fff5dd;border-left:3px solid #997230}
.ecom-app #ecom-content tr[hidden]{display:none!important}
.ecom-app #ecom-content td{vertical-align:middle}
@media(max-width:1200px){.ecom-app .cocawi-executive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.ecom-app .cocawi-menu-toggle{display:inline-flex;gap:8px;align-items:center;min-height:44px;background:#edf3eb;border:1px solid #cbdacb;border-radius:7px;padding:8px 12px;color:#204c34;font:600 12px system-ui;cursor:pointer}.ecom-app.cocawi-enhanced .ecom-app-sidebar{display:none}.ecom-app .ecom-app-header{gap:12px}.ecom-app .ecom-app-brand strong{font-size:21px}.ecom-app .ecom-app-brand small{font-size:8px;letter-spacing:1px}.ecom-app .cocawi-executive{padding:18px}.ecom-app .cocawi-nav-symbol{margin-right:9px}}
@media(max-width:520px){.ecom-app .cocawi-executive-grid{grid-template-columns:1fr}.ecom-app .cocawi-table-tools{align-items:stretch}.ecom-app #ecom-content .cocawi-table-tools label{max-width:100%;width:100%}.ecom-app .ecom-app-header>.ecom-app-brand{flex:1;min-width:0}}
@media print{.ecom-app .cocawi-menu-toggle,.ecom-app .cocawi-drawer,.ecom-app .cocawi-table-tools{display:none!important}}

/* RC3 fix1: the sidebar is a bounded grid item, not a full-height stretched column.
   Sticky remains constrained by the workspace, so it never covers the footer. */
@media screen and (min-width:801px){
 .ecom-app .ecom-app-sidebar{
  position:sticky;top:var(--cocawi-nav-top,0px);align-self:start;
  max-height:calc(100vh - var(--cocawi-nav-top,0px));
  max-height:calc(100dvh - var(--cocawi-nav-top,0px));
  overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;
  scroll-padding-block:16px;
 }
}

/* COCAWI Enterprise UI V0.8.2 — shared tokens and analytical workspace.
   Existing routes, forms, action names and native guards are unchanged. */
.ecom-app{--brand:#08664f;--brand-soft:#e9f4ef;--navy:#12372d;--paper:#f3f6f4;--surface:#fff;--line:#dce5df;--control-border:#789287;--ink:#17382d;--muted:#50645c;--focus:#095cc5;--danger:#a12525;--warning:#80500c;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;font-family:"Segoe UI",system-ui,-apple-system,sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:var(--paper)}
.ecom-app *{box-sizing:border-box}.ecom-app .ecom-app-layout{grid-template-columns:224px minmax(0,1fr)}
.ecom-app .ecom-app-header{min-height:80px;padding:14px 24px;gap:16px}.ecom-app .ecom-app-brand strong{font-size:22px;letter-spacing:1.2px}.ecom-app .ecom-app-brand small{font-size:10px;letter-spacing:.8px}.ecom-app .cocawi-product-version{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.ecom-app .ecom-app-sidebar,.ecom-app .cocawi-drawer{background:var(--navy)}.ecom-app .ecom-app-sidebar{padding:24px 12px}.ecom-app .ecom-ui-nav a{font-size:14px;min-height:44px;border-radius:var(--radius-sm);gap:0;padding:10px 12px;color:#e9f3ed}.ecom-app .ecom-ui-nav a:hover{background:#214b3e}.ecom-app .ecom-ui-nav a[aria-current=page]{background:#285a48;border-color:#5c9279;border-inline-start:3px solid #a4d8b6;padding-inline-start:10px;color:#fff}.ecom-app .cocawi-nav-label,.ecom-app .ecom-app-section-label{font-size:10px;letter-spacing:1.2px;color:#b9cebf}.ecom-app .ecom-app-context strong,.ecom-app .ecom-app-context small{font-size:11px;color:#c1d5c7}.ecom-app .cocawi-user strong{font-size:14px;max-width:250px}.ecom-app .cocawi-user small{font-size:12px}.ecom-app .ecom-app-session>a{font-size:13px;border-color:var(--control-border)}.ecom-app .ecom-app-environment{font-size:12px}.ecom-app .ecom-app-footer{font-size:12px;color:var(--muted)}
.ecom-app .ecom-app-workspace{padding:24px clamp(16px,2vw,32px);min-width:0}.ecom-app #ecom-content{max-width:none;padding:0;margin:0;min-width:0;font-size:16px;--ui-ink:var(--ink);--ui-muted:var(--muted);--ui-line:var(--line);--ui-blue:var(--brand);--ui-bg:var(--paper)}.ecom-app #ecom-content h1{font-size:clamp(25px,2.4vw,32px);font-weight:650;line-height:1.2;letter-spacing:-.7px}.ecom-app .ecom-eyebrow{font-size:11px}.ecom-app .ecom-heading{margin-bottom:16px}.ecom-app .ecom-heading h1{margin-bottom:10px}.ecom-app .ecom-heading .ecom-badge,.ecom-app .ecom-heading .ecom-lab-badge{font-size:11px}.ecom-app .ecom-alert,.ecom-app .ec-notice{font-size:14px}.ecom-app .ui-zone{font-size:12px;color:var(--muted)}
.ecom-app #ecom-content :focus-visible,.ecom-app .ecom-app-header :focus-visible{outline:3px solid var(--focus);outline-offset:3px}.ecom-app .ecom-app-sidebar :focus-visible,.ecom-app .cocawi-drawer :focus-visible{outline:3px solid #d6f3df;outline-offset:3px}.ecom-app #ecom-content :is(a,button,input,select,textarea,summary){scroll-margin-block:100px 24px}.ecom-app #ecom-content :is(button,a.ui-primary,a.butAction){min-height:44px}.ecom-app #ecom-content :is(button,summary){cursor:pointer}.ecom-app #ecom-content :is(input,select,textarea){font:inherit;font-size:14px;border:1px solid var(--control-border);border-radius:var(--radius-sm);min-height:44px;max-width:100%;padding:9px 11px;color:var(--ink);background:var(--surface)}.ecom-app #ecom-content label{font-size:14px;color:var(--ink);font-weight:600}.ecom-app #ecom-content :is(input[readonly],textarea[readonly]){background:#eef2ef;color:var(--muted)}.ecom-app #ecom-content button{font:600 14px/1.4 "Segoe UI",system-ui,sans-serif;background:var(--brand);border:1px solid var(--brand);border-radius:var(--radius-sm);color:white;padding:10px 16px;transition:background-color .15s}.ecom-app #ecom-content button:hover{background:#064e3c}.ecom-app #ecom-content button:disabled{cursor:default;opacity:.65}.ecom-app #ecom-content button[aria-pressed=false]{background:var(--surface);color:var(--ink);border-color:var(--control-border)}
.ecom-app #ecom-content table{font-size:14px;min-width:520px;border-collapse:collapse;width:100%;background:var(--surface)}.ecom-app #ecom-content :is(th,td){padding:12px 14px;line-height:1.5;overflow-wrap:anywhere}.ecom-app #ecom-content thead th{background:#edf3ef;color:#294b3d;font-size:12px;letter-spacing:.15px;font-weight:650;white-space:normal}.ecom-app #ecom-content tbody tr:nth-child(even){background:#f8faf8}.ecom-app #ecom-content tbody tr:hover{background:#eef6f1}.ecom-app #ecom-content caption{padding:12px 14px;font-size:14px;font-weight:600;text-align:left;color:var(--ink)}.ecom-app .ec-table,.ecom-app .div-table-responsive{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:var(--radius-md);scrollbar-gutter:stable}.ecom-app #ecom-content .ec-number,.ecom-app .bi-kpi-value,.ecom-app .bi-margin-compare strong{font-variant-numeric:tabular-nums}.ecom-app #ecom-content .ui-section{border-radius:var(--radius-md);padding:20px;background:var(--surface);border:1px solid var(--line)}.ecom-app #ecom-content .ec-filters{padding:16px;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md)}.ecom-app .cocawi-table-tools{background:#f0f5f1;font-size:13px}.ecom-app .cocawi-table-tools [role=status]{font-size:12px}.ecom-app .cocawi-required{font-size:12px;color:#775009}.ecom-app .ui-badge{font-size:12px;padding:4px 8px}.ecom-app .ui-facts{gap:16px}.ecom-app .ui-facts dt{font-size:13px}.ecom-app .ui-facts dd{font-size:15px}.ecom-app #ecom-content form{max-width:100%}.ecom-app #ecom-content textarea{width:100%;min-height:100px}
.ecom-app .bi-dashboard{display:grid;gap:16px}.ecom-app #ecom-content .bi-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md)}.ecom-app .bi-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.4px;color:var(--brand)}.ecom-app #ecom-content .bi-toolbar p{font-size:14px;margin:4px 0;color:var(--muted)}.ecom-app #ecom-content .bi-period,.ecom-app #ecom-content .bi-inventory-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0;padding:0;border:0;background:transparent;box-shadow:none}.ecom-app #ecom-content .bi-period label,.ecom-app #ecom-content .bi-inventory-filters label{display:grid;gap:5px;flex:1;min-width:140px;max-width:260px;margin:0}.ecom-app .bi-context{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px}.ecom-app #ecom-content .bi-context p{font-size:13px;margin:0;color:var(--ink)}.ecom-app .bi-context span{color:var(--muted)}.ecom-app .bi-alert{padding:12px 16px;background:#fff7e5;border:1px solid #d4b572;border-inline-start:3px solid #a46c0c;border-radius:var(--radius-sm);color:#664109;font-size:14px;margin:0}.ecom-app .bi-start-message{display:flex;gap:14px;padding:16px 20px;background:var(--brand-soft);border:1px solid #b7d9c7;border-radius:var(--radius-md)}.ecom-app .bi-start-message>span{width:40px;height:40px;display:grid;place-items:center;background:#d8eade;border-radius:var(--radius-sm);flex-shrink:0;color:var(--brand)}.ecom-app #ecom-content .bi-start-message p{font-size:14px;margin:3px 0 0;color:var(--muted)}
.ecom-app .bi-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ecom-app .bi-kpi{display:flex;flex-direction:column;min-width:0;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md)}.ecom-app .bi-kpi-heading{display:flex;justify-content:space-between;align-items:start;gap:8px}.ecom-app #ecom-content .bi-kpi h2{font-size:13px;font-weight:600;line-height:1.5;color:var(--muted);margin:0}.ecom-app .bi-kpi-heading>span{color:var(--brand);width:28px;height:28px;display:grid;place-items:center;background:#edf5ef;border-radius:var(--radius-sm);flex-shrink:0}.ecom-app #ecom-content .bi-kpi-value{font-size:clamp(23px,2.2vw,32px);font-weight:650;line-height:1.25;letter-spacing:-.6px;margin:12px 0 8px;overflow-wrap:anywhere}.ecom-app .bi-undetermined{font-size:19px;font-weight:600;color:var(--muted);letter-spacing:0}.ecom-app #ecom-content .bi-kpi-description{font-size:12px;color:var(--muted);margin:0 0 8px}.ecom-app #ecom-content .bi-kpi-comparison{font-size:12px;color:var(--ink);margin:4px 0 12px}.ecom-app .bi-kpi-comparison span{display:block;color:var(--muted)}.ecom-app #ecom-content .bi-kpi-link{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid #edf1ee;font-size:12px;font-weight:600;min-height:44px;color:var(--brand);text-decoration:none}.ecom-app #ecom-content .bi-definition{font-size:12px;margin:0;color:var(--muted);line-height:1.7}.ecom-app .bi-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:16px;align-items:start}.ecom-app .bi-panel{padding:20px;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md)}.ecom-app .bi-panel-full{grid-column:1/-1}.ecom-app .bi-panel-header{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:18px}.ecom-app #ecom-content .bi-panel-header h2{font-size:17px;font-weight:650;letter-spacing:-.2px;margin:0 0 5px}.ecom-app #ecom-content .bi-panel-header p{font-size:12px;color:var(--muted);margin:0}
.ecom-app .bi-chart{display:block;width:100%;height:auto;min-height:160px;max-height:300px;overflow:visible}.ecom-app .bi-chart [hidden],.ecom-app .bi-panel [hidden]{display:none!important}.ecom-app .bi-gridline{stroke:#e2e9e4;stroke-width:1}.ecom-app .bi-axis{font:13px "Segoe UI",system-ui,sans-serif;fill:#50645c}.ecom-app .bi-tone-0{fill:#08664f;color:#08664f}.ecom-app .bi-tone-1{fill:#9a4d0f;color:#9a4d0f}.ecom-app #bi-trading .bi-tone-0{fill:#9a4d0f;color:#9a4d0f}.ecom-app #bi-trading .bi-tone-1{fill:#08664f;color:#08664f}.ecom-app #bi-cash .bi-tone-1{fill:#914d86;color:#914d86}.ecom-app .bi-legend{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:12px;font-size:12px}.ecom-app .bi-legend-item{display:inline-flex;gap:7px;align-items:center;font-weight:600}.ecom-app .bi-key{display:inline-block;width:12px;height:12px;border-radius:2px;background:currentColor}.ecom-app #ecom-content .bi-series-toggle{font-size:12px;padding:6px 10px;min-height:44px;margin:0}.ecom-app #ecom-content .bi-selection{font-size:12px;margin:0 0 8px;color:var(--muted)}.ecom-app #ecom-content .bi-chart-note{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0}.ecom-app .bi-data-table{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.ecom-app .bi-data-table>summary{font-size:13px;font-weight:600;color:var(--brand);padding:6px 0;min-height:44px;cursor:pointer}.ecom-app .bi-data-table .ec-table{margin-top:10px}.ecom-app .bi-empty{display:grid;justify-items:center;text-align:center;gap:8px;min-height:190px;padding:24px 16px;color:var(--muted);background:#f8faf8;border:1px dashed #b5c7bc;border-radius:var(--radius-md)}.ecom-app .bi-empty-icon{width:44px;height:44px;display:grid;place-items:center;background:#edf3ef;border-radius:50%;color:var(--brand)}.ecom-app .bi-empty strong{font-size:15px;color:var(--ink)}.ecom-app #ecom-content .bi-empty p{font-size:13px;line-height:1.6;margin:0;max-width:46ch}.ecom-app .bi-margin-compare{display:grid;gap:16px}.ecom-app .bi-margin-compare>div{padding:16px;border:1px solid var(--line);border-radius:var(--radius-sm)}.ecom-app .bi-margin-compare>div:last-child{background:var(--brand-soft);border-color:#a6cdb7}.ecom-app .bi-margin-compare span,.ecom-app .bi-margin-compare small{display:block;font-size:12px;color:var(--muted)}.ecom-app .bi-margin-compare strong{display:block;font-size:28px;margin:6px 0;overflow-wrap:anywhere}.ecom-app #ecom-content .bi-margin-delta{font-size:13px;margin:16px 0 0}
.ecom-app .bi-inventory-totals{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:18px 0;font-size:12px;color:var(--muted)}.ecom-app .bi-inventory-totals strong{display:block;margin-top:4px;font-size:20px;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ecom-app .bi-material-list{display:grid;gap:14px}.ecom-app .bi-material-row>div{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:6px}.ecom-app .bi-material-row strong{font-size:13px;font-weight:600;max-width:100%;overflow-wrap:anywhere}.ecom-app .bi-material-row span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.ecom-app .bi-material-bar{display:block;width:100%;height:10px}.ecom-app .bi-bar-track{fill:#e7eee9}.ecom-app .bi-bar-value{fill:var(--brand)}.ecom-app .bi-ageing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}.ecom-app .bi-ageing-grid article{padding:16px;background:#f5f8f5;border:1px solid var(--line);border-radius:var(--radius-sm)}.ecom-app #ecom-content .bi-ageing-grid h3{font-size:14px;margin:0 0 10px}.ecom-app #ecom-content .bi-ageing-grid p{font-size:12px;margin:6px 0}.ecom-app .bi-ageing-grid strong{display:block;font-size:17px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ecom-app .bi-quick-access{margin-top:24px}.ecom-app #ecom-content .bi-quick-access h2{font-size:17px;margin:0 0 12px}.ecom-app .bi-quick-access>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ecom-app #ecom-content .bi-quick-access a{display:flex;align-items:center;gap:12px;padding:14px 16px;min-height:52px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);font-size:14px;font-weight:600;text-decoration:none;color:var(--brand)}.ecom-app .bi-quick-access a>span:last-child{margin-left:auto}
@media(min-width:1600px){.ecom-app .ecom-app-workspace{padding-inline:40px}.ecom-app .bi-kpis{gap:16px}.ecom-app .bi-kpi{padding:22px}}
@media(max-width:1200px){.ecom-app .bi-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ecom-app .bi-grid{grid-template-columns:minmax(0,1fr)}.ecom-app .bi-panel-full{grid-column:auto}.ecom-app .bi-margin-compare{grid-template-columns:repeat(2,minmax(0,1fr))}.ecom-app #ecom-content .bi-toolbar{align-items:stretch;flex-direction:column}.ecom-app .ecom-app-layout{grid-template-columns:200px minmax(0,1fr)}.ecom-app .bi-quick-access>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.ecom-app .ecom-app-layout{display:block}.ecom-app .ecom-app-header{padding:12px 16px;min-height:0}.ecom-app .ecom-app-workspace{padding:20px 16px}.ecom-app .cocawi-avatar{width:32px;height:32px}.ecom-app .ecom-app-session{gap:10px}.ecom-app .cocawi-user strong{font-size:13px;max-width:180px}.ecom-app .ecom-app-brand small{font-size:9px}.ecom-app .cocawi-product-version{font-size:10px}.ecom-app .bi-ageing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ecom-app .bi-panel{padding:16px}.ecom-app .bi-context{font-size:11px}.ecom-app .bi-chart{min-height:130px}.ecom-app .bi-period button,.ecom-app .bi-inventory-filters button{flex-grow:1}.ecom-app #ecom-content .ui-section{padding:16px}.ecom-app .cocawi-drawer .ecom-ui-nav a{font-size:14px}}
@media(max-width:540px){.ecom-app .bi-kpis{grid-template-columns:minmax(0,1fr)}.ecom-app .bi-kpi{padding:16px}.ecom-app .bi-kpi-value{font-size:28px}.ecom-app .bi-margin-compare{grid-template-columns:minmax(0,1fr)}.ecom-app .bi-ageing-grid{grid-template-columns:minmax(0,1fr)}.ecom-app .bi-quick-access>div{grid-template-columns:minmax(0,1fr)}.ecom-app #ecom-content .bi-period label,.ecom-app #ecom-content .bi-inventory-filters label{min-width:0;max-width:none;flex:1 1 100%}.ecom-app .bi-period button,.ecom-app .bi-inventory-filters button{width:100%}.ecom-app .ecom-app-session{justify-content:flex-start}.ecom-app .ecom-app-environment{font-size:11px}.ecom-app #ecom-content .bi-toolbar{padding:16px}.ecom-app .bi-material-row>div{gap:4px}.ecom-app .bi-material-row span{width:100%}}
@media(prefers-reduced-motion:reduce){.ecom-app *,.ecom-app *::before,.ecom-app *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(forced-colors:active){.ecom-app .bi-kpi,.ecom-app .bi-panel{border-color:CanvasText}.ecom-app .bi-chart rect{fill:CanvasText;stroke:CanvasText}.ecom-app .bi-chart [data-bi-series=sales] rect,.ecom-app .bi-chart [data-bi-series=cash_out] rect{fill:Canvas;stroke:CanvasText;stroke-width:2}}
/* Existing semantic fieldsets retain every native field, action and token. */
.ecom-app #ecom-content fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0;padding:20px;margin:18px 0;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}.ecom-app #ecom-content fieldset legend{font-size:16px;font-weight:650;padding:0 8px;color:var(--ink)}.ecom-app #ecom-content fieldset>label,.ecom-app #ecom-content fieldset>p{min-width:0;margin:0}.ecom-app #ecom-content fieldset label{display:grid;gap:6px;overflow-wrap:anywhere}.ecom-app #ecom-content fieldset :is(input,select,textarea){width:100%}.ecom-app #ecom-content fieldset>label:has(textarea),.ecom-app #ecom-content fieldset>p:has(textarea),.ecom-app #ecom-content fieldset>p:not(:has(input,select,textarea)){grid-column:1/-1}.ecom-app #ecom-content .ec-number{white-space:nowrap}.ecom-app .preview-notice{margin:0;padding:12px 20px;font:600 14px/1.5 system-ui;background:#fff0c9;color:#64460b;border-bottom:2px solid #9f6b0b}
@media(max-width:540px){.ecom-app #ecom-content fieldset{grid-template-columns:minmax(0,1fr);padding:16px}}
