/* Amar home only. Reference: Manrope, three independent columns, pale-blue totals. */
body:has(.workspace){background:#fff}
#app .layout.top main:has(>.workspace){max-width:none;width:100%;margin:0;padding:20px 12px 26px 20px;background:#fff;min-height:calc(100dvh - 50px)}
#app .layout.top:has(main>.workspace) .tbar.evital-nav{--nav-blue:#084b95;--nav-hover:#063d79;--nav-action:#0ca1f6;background:var(--nav-blue)}
#app .layout.top:has(main>.workspace) .evnav-topline>.evnav-add:hover{background:transparent;color:var(--nav-action)}
.workspace{
 --ws-blue:#084b95;--ws-cyan:#069fea;--ws-teal:#08a8bc;--ws-red:#c95160;--ws-ink:#111;
 --ws-muted:#64798e;--ws-line:#dcdde3;--ws-soft:#044c9d0f;--ws-underline:#673ab7;
 font:500 14px/1.42 "Amar Inventory Manrope",Manrope,Arial,sans-serif;color:var(--ws-ink)
}
.workspace *{box-sizing:border-box}
.workspace [hidden]{display:none!important}
.workspace :is(button,select,input){font:inherit}
.workspace :is(button,select){cursor:pointer}
.workspace a{color:var(--ws-blue);text-decoration:none}
.workspace a:hover{text-decoration:underline}
.workspace :is(a,button,select,input,[tabindex]):focus-visible{outline:2px solid var(--ws-cyan);outline-offset:2px}
.workspace .ws-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ws-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;margin:0 0 20px}
.ws-activity{display:flex;align-items:center;gap:8px;min-height:35px;min-width:0;padding:5px 12px 5px 10px;border:2px solid #ffdc91;border-radius:16px;background:#fffbf2;color:#231f18;font-size:13px;font-weight:650}
.ws-activity .ws-icon{width:15px;height:15px;color:#bd8a28}
.ws-top-actions{display:flex;align-items:center;gap:10px;flex:none;color:#5e7794;font-size:12px;font-weight:650}
.ws-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.ws-column{display:flex;flex-direction:column;gap:20px;min-width:0}
.ws-slot{min-width:0}.ws-slot:empty{display:none}
.workspace .ws-card{display:flex;flex-direction:column;min-width:0;padding:15px;border:0;border-radius:2px;background:#fff;box-shadow:0 0 16px #00000029}
.ws-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:33px;margin:0 0 10px}
.workspace h2{display:flex;align-items:center;gap:5px;margin:0;color:#111;font:600 16px/1.42 "Amar Inventory Manrope",Manrope,Arial,sans-serif;letter-spacing:0;text-transform:none}
.workspace .cyan{color:var(--ws-cyan)}.workspace .blue{color:var(--ws-blue)}.workspace .teal{color:var(--ws-teal)}.workspace .ws-red{color:var(--ws-red)}
.ws-icon{width:17px;height:17px;flex:none;vertical-align:middle}
.ws-glyph{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border-radius:6px;background:#e7eff8;color:var(--ws-blue)}
.ws-glyph.cyan{background:#e7f5ff;color:var(--ws-cyan)}.ws-glyph.teal{background:#e3faff;color:var(--ws-teal)}
.ws-glyph.gold{background:#fcf5e1;color:#b98e32}.ws-glyph.purple{background:#eeeaf9;color:#7160bf}
.workspace .ws-info{display:inline-grid;place-items:center;flex:none;width:16px;height:17px;padding:0;border:0;border-radius:3px;background:none;color:#98adc2;cursor:help}
.ws-info .ws-icon,[role=tab] .ws-icon{width:13px;height:13px;color:#92a9c0}
.workspace .ws-tooltip{position:fixed;z-index:60;width:max-content;max-width:min(260px,calc(100vw - 16px));padding:6px 9px;background:#5a5a5a;border-radius:4px;
 color:#fff;font:500 12px/1.4 "Amar Inventory Manrope",Manrope,Arial,sans-serif;white-space:pre-line;box-shadow:0 2px 6px #0002;pointer-events:none}
.ws-period{display:flex;align-items:stretch;gap:1px;width:100%;height:35px;padding:3px;border-radius:9px;background:var(--ws-soft)}
.workspace .ws-period>button{flex:1;min-width:0;white-space:nowrap;height:29px;padding:3px 5px;border:0;border-radius:7px;background:none;color:#556573;font-size:12px}
.workspace .ws-period>button[aria-pressed=true]{background:#fff;color:var(--ws-blue);box-shadow:0 2px 6px #044c9d1f;font-weight:700}
.workspace .ws-period>button:hover:not([aria-pressed=true]){color:var(--ws-blue);background:#fff8}
.workspace .ws-sales{min-height:433px;padding-top:12px}
.ws-chart-options{display:flex;align-items:center;justify-content:flex-end;min-height:39px}
.workspace .ws-refresh{display:grid;place-items:center;width:29px;height:28px;padding:0;border:1px solid #dce6f1;border-radius:4px;background:#fff;color:var(--ws-blue)}
.workspace .ws-refresh:hover{background:#eaf4fd}
.ws-refresh svg{width:15px;height:15px}
.ws-net{display:flex;align-items:center;gap:5px;color:#596570;font-size:12px}
.workspace .ws-net>button:not(.ws-switch){padding:0 1px;border:0;background:none;color:inherit;font-size:12px}
.workspace .ws-net>button:not(.ws-switch)[aria-pressed=true]{color:#344d66}
.workspace .ws-switch{position:relative;border:0;border-radius:11px;width:30px;height:18px;background:var(--ws-cyan);padding:0}
.ws-switch::after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;background:#fff;border-radius:50%;transition:transform .15s ease-out}
.ws-switch[aria-checked=true]::after{transform:translateX(12px)}
.ws-metrics{display:grid;grid-template-columns:repeat(var(--ws-metrics,3),minmax(0,1fr));gap:10px;margin:0 0 17px}
.ws-metric{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;min-height:104px;padding:11px 10px;border:1px solid #e1e7ee;border-radius:10px;background:#044c9d0a}
.ws-metric>span{display:flex;align-items:center;gap:6px;min-height:27px;font-size:14px;font-weight:700;line-height:1.23;cursor:help}
.ws-metric strong{font-size:18px;line-height:1.22;margin-top:3px;font-weight:700;max-width:100%;overflow-wrap:anywhere}
.ws-metric small{color:#465761;font-size:11px;line-height:1.3}
.ws-metric .ws-glyph{width:27px;height:27px}
.ws-chart{min-width:0;margin:0}
.ws-sales-chart figcaption{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px 8px;min-height:22px;padding-bottom:3px}
.workspace .ws-sales-chart figcaption button{display:inline-flex;align-items:center;gap:5px;padding:1px 0;border:0;background:none;color:#555;font:500 11px/16px Arial,sans-serif;white-space:nowrap}
.ws-sales-chart figcaption i{display:inline-block;width:40px;height:12px;background:var(--series)}
.ws-sales-chart figcaption button[aria-pressed=false]{text-decoration:line-through;opacity:.53}
.ws-chart svg{display:block;width:100%;height:auto;font:500 11px Arial,sans-serif;fill:#666;overflow:visible}
.ws-sales-chart svg{height:188px}
.ws-gridline{stroke:#e0e0e0}.ws-axisline{stroke:#ececef}.ws-baseline{stroke:#a2aebf}
.ws-chart-hit{fill:transparent;cursor:default}
.ws-chart-hit:focus-visible{fill:#044c9d10;stroke:#4f99de;stroke-width:1;outline:none}
.workspace .ws-sales>.ws-empty{min-height:203px}
.workspace .ws-stock{padding:0;min-height:246px}
.ws-stock-head{padding:8px 15px;background:linear-gradient(95deg,#f0f6fb,#e8f4fd)}
.ws-stock-head .ws-card-head{min-height:34px;margin:0}
.ws-stock-head h2{gap:7px}
.ws-stock-legend{display:flex;justify-content:flex-end;align-items:center;gap:15px;font-size:11px;text-transform:uppercase;white-space:nowrap}
.ws-stock-legend>span::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:currentColor;vertical-align:1px}
.ws-stock-body{padding:3px 15px 4px}
.ws-stock-row{display:grid;grid-template-columns:minmax(83px,1fr) minmax(56px,.84fr) minmax(56px,.74fr);align-items:center;gap:6px;
 min-height:47px;border-bottom:1px dashed #e0e5eb}
.ws-stock-row:last-child{border-bottom:0}
.ws-stock-row>div{display:flex;align-items:center;gap:7px;min-width:0;font-size:14px}
.ws-stock-money{justify-self:end;min-width:0;max-width:100%;padding:4px 7px;border-radius:4px;background:#f2f5fa;color:var(--ws-blue);font-size:14px;font-weight:700;text-align:right;overflow-wrap:anywhere}
.ws-stock-money.ws-red{background:#fff0f1}
.ws-tabs{display:flex;align-items:stretch;gap:0;min-height:34px;box-shadow:inset 0 -1px #dedfe4;margin:0 0 4px}
.workspace .ws-tabs>[role=tab]{display:inline-flex;justify-content:center;align-items:center;gap:4px;min-width:0;width:min(160px,50%);min-height:34px;padding:0 4px 7px;
 border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#666;font-size:16px;font-weight:600;white-space:nowrap}
.workspace .ws-tabs>[aria-selected=true]{color:#111;border-bottom-color:var(--ws-underline)}
.ws-tabs>[role=tab]:hover{background:#f5f8fd}
.workspace .ws-staff{min-height:531px}
.ws-staff select{background:#fff;border:1px solid #d6dee7;border-radius:1px;color:var(--ws-blue);font-size:14px;width:min(130px,38%);padding:3px 8px;height:30px}
.ws-staff-chart{display:flex;align-items:center;justify-content:space-around;gap:9px;padding:5px;min-height:232px}
.ws-staff-chart>svg{width:55%;max-width:213px;height:202px;overflow:visible}
.ws-arc{cursor:help}.ws-arc:hover,.ws-arc:focus-visible{opacity:.85}
.ws-staff-chart ul{list-style:none;padding:0;margin:0;color:#3a4856;font:500 11px/1.4 Arial,sans-serif;min-width:0;max-width:44%}
.ws-staff-chart li{display:flex;align-items:center;gap:5px;margin:4px 0;max-width:100%;overflow-wrap:anywhere;cursor:help}
.ws-staff-chart li i{width:10px;height:10px;flex:none;border-radius:50%;background:var(--staff)}
.workspace .ws-training{display:flex;align-items:flex-start;isolation:isolate;position:relative;overflow:hidden;min-height:180px;margin-top:auto;padding:16px 18px;border:1px solid #d9e3f2;border-radius:2px;
 background:linear-gradient(116deg,#f5f8ff,#eef4ff 70%,#e8f1fd);color:#202642;text-decoration:none}
.ws-training>div{max-width:83%;z-index:1}
.ws-training b{font-size:16px;font-weight:750}
.ws-training p{font-size:13px;line-height:1.4;margin:5px 0 19px;max-width:205px;color:#4a5f7a}
.ws-training-button{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:5px;background:#307dec;color:#fff;font-size:12px;font-weight:700;box-shadow:0 2px 8px #2c7ae947}
.ws-training .ws-icon{width:13px;height:13px}
.ws-training-art{position:absolute;z-index:0;bottom:0;right:2px;width:min(40%,170px);height:auto}
.workspace .ws-training:hover .ws-training-button{background:#236ad2}
.ws-table-wrap{overflow-x:auto;min-width:0;max-width:100%}
.workspace table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:14px;line-height:1.35;margin:0}
.workspace table :is(th,td){border:0;border-bottom:1px solid var(--ws-line);padding:8px 3px 8px 0;vertical-align:middle;overflow:hidden}
.workspace th{background:#fff;color:#7890a7;font-size:14px;text-transform:none;letter-spacing:0;font-weight:500;text-align:left;height:42px}
.workspace td{font-size:14px;color:#171c23}
.workspace table :is(th,td):not(:first-child){text-align:right;padding-right:0}
.ws-row-link .ws-item,.ws-item,.ws-party-name{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.workspace .ws-row-link,.workspace .ws-item{color:#141922}
.workspace .ws-row-link:hover,.workspace tr:hover .ws-row-link{color:var(--ws-blue)}
.workspace tbody tr:hover{background:#f4f9fd}
.workspace .ws-sub,.workspace .ws-party-name small{display:block;color:#616f7a;font-size:12px;line-height:1.35;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace .ws-view{display:flex;align-items:center;justify-content:flex-end;gap:3px;padding-top:10px;margin-top:auto;color:var(--ws-blue);font-size:14px;line-height:19px}
.ws-view svg{width:14px;height:14px}
.workspace .ws-expiry{min-height:430px}
.ws-expiry #ws-expiry-panel{flex:1;display:flex;flex-direction:column;min-width:0}
.ws-expiry td{height:56px}.ws-expiry th:first-child{width:57%}.ws-expiry th:nth-child(2){width:17%}.ws-expiry th:nth-child(3){width:26%}
.workspace .ws-dues{min-height:412px}
.ws-dues .ws-card-head{margin-bottom:2px}
.ws-dues th:first-child{width:65%}.ws-dues td{height:51px}
.ws-due-total{display:inline-flex;align-items:center;gap:7px;font-size:23px;line-height:1.2;font-weight:750;letter-spacing:-.55px;white-space:nowrap}
.ws-due-total .ws-icon{width:18px;height:18px}
.ws-party{display:flex;align-items:center;gap:8px;min-width:0}.ws-party-name{font-weight:600;min-width:0}
.ws-avatar{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:#8776cf;color:#fff;font-size:19px;font-weight:500}
.ws-avatar[data-tone="1"]{background:#044c9d}.ws-avatar[data-tone="2"]{background:#37a9c3}.ws-avatar[data-tone="3"]{background:#c89b3e}.ws-avatar[data-tone="4"]{background:#c0668c}
.workspace .ws-loyalty{min-height:169px;border-radius:4px;padding:0;background:
 radial-gradient(circle at 88% 3%,#f3e7f8 0,transparent 29%),radial-gradient(ellipse at 87% 97%,#faeef6 0,transparent 31%),#fff}
.ws-loyalty-link{display:grid;grid-template-columns:minmax(143px,37%) minmax(0,1fr);gap:10px;align-items:stretch;padding:23px 24px 18px;min-height:169px}
.workspace .ws-loyalty-link:hover{text-decoration:none;background:#9b61ab08}
.ws-loyalty-art h2{font-size:20px;font-weight:750;color:#7d64be}
.ws-coin{display:block;width:82px;height:68px;margin:9px 0 0 9px}
.ws-loyalty-values{display:flex;flex-direction:column;justify-content:space-around;gap:7px;min-width:0}
.ws-loyalty-value{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:13px}
.ws-loyalty-value span{color:#1c2531;min-width:0;overflow-wrap:anywhere}
.ws-loyalty-value b{color:inherit;font-size:18px;line-height:1.1}
.ws-loyalty-value.cyan b{color:var(--ws-cyan)}.ws-loyalty-value.blue b{color:var(--ws-blue)}.ws-loyalty-value.teal b{color:var(--ws-teal)}
.ws-loyalty-value progress{min-width:0;width:36%;height:8px;margin:0;border:0;border-radius:9px;overflow:hidden;appearance:none;color:inherit;background:#e7e7ed}
.ws-loyalty-value progress::-webkit-progress-bar{background:#e7e7ed;border-radius:9px}
.ws-loyalty-value progress::-webkit-progress-value{background:currentColor;border-radius:9px}
.ws-loyalty-value progress::-moz-progress-bar{background:currentColor;border-radius:9px}
.workspace .ws-loyalty-empty{padding:15px}
.workspace .ws-loyalty-empty .ws-empty{min-height:86px}
.workspace .ws-pdc{min-height:257px}
.ws-pdc .ws-card-head{min-height:42px;margin-bottom:0}.ws-pdc .ws-empty{min-height:143px}.ws-pdc th:first-child{width:65%}
.ws-pdc td{height:45px}
.workspace .ws-margin{min-height:329px}.ws-margin td{height:39px}
.ws-margin .ws-card-head{margin-bottom:3px}.ws-margin th{height:39px}
.ws-margin th:first-child{width:43%}.ws-margin th:nth-child(2){width:21%}.ws-margin th:nth-child(3){width:13%}
.ws-margin td:nth-child(2){white-space:nowrap;text-overflow:ellipsis}
.ws-margin-order{width:min(115px,38%);height:32px;border-radius:7px;flex:none}
.workspace .ws-margin-order>button{height:26px}
.ws-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;width:100%;min-height:145px;padding:16px 8px;text-align:center;color:#747f89;font-size:14px}
.ws-empty .ws-icon{width:23px;height:23px;color:#c2daf1}.ws-empty p{margin:0;max-width:260px}
.ws-alert{margin:0 0 14px;padding:8px 12px;background:#fff6e2;border:1px solid #f1d8a4;color:#775519}
.ws-alert button{margin-left:5px;padding:2px 7px;border:1px solid #ddc688;border-radius:3px;background:#fffdfa;color:inherit}
/* Amar's New Users stays in the reference's 250px feature slot; its list can expand. */
.workspace .ws-users{min-height:250px;padding:10px 15px 8px;color:#f1f7ff;background:linear-gradient(112deg,#082b53 0%,#0b315d 52%,#0b4b92 100%)}
.ws-users .ws-card-head{min-height:24px;margin-bottom:6px}
.workspace .ws-users h2{color:#fff}.workspace .ws-users .ws-info{color:#a7c6e5}
.nu-total{color:#fff;font-size:22px;font-weight:750;line-height:1.05}
.ws-users .ws-period{height:27px;padding:2px;background:#e3f1ff22;border-radius:5px}
.workspace .ws-users .ws-period>button{height:23px;border-radius:4px;color:#e6f2ff;font-size:11px}
.workspace .ws-users .ws-period>button:hover:not([aria-pressed=true]){background:#f0f8ff25;color:#fff}
.workspace .ws-users .ws-period>button[aria-pressed=true]{color:var(--ws-blue)}
.nu-range-row{display:flex;justify-content:flex-end;margin-top:5px}
.nu-range{display:flex;align-items:center;flex-wrap:wrap;gap:4px;color:#dfedfa;font-size:11px}
.workspace .nu-range input{min-width:0;width:110px;height:25px;padding:1px 4px;border:1px solid #b4cdea;border-radius:2px;background:#f1f7ff;color:#09386a;font-size:11px}
.workspace .nu-range button{min-height:25px;padding:2px 9px;border:1px solid #80c4ff;border-radius:3px;background:#a9d8ff;color:#09386a;font-size:11px;font-weight:750}
.nu-chips{display:flex;flex-wrap:wrap;gap:3px 10px;margin:5px 0 2px;color:#dcecff;font-size:11px}
.nu-chips i{display:inline-block;width:9px;height:9px;margin-right:4px;vertical-align:-1px;border-radius:2px}
.nu-chips b{color:#fff}.nu-chart svg{height:97px;fill:#d3e5f8;font-size:11px}
.nu-gridline{stroke:#c1d8ef;stroke-opacity:.25}
.nu-chart .nu-hit{cursor:pointer}.nu-chart .nu-hit:hover,.nu-chart .nu-hit:focus-visible{fill:#dceeff18;outline:none}.nu-chart .nu-hit.on{fill:#dceeff28}
.nu-foot{display:flex;gap:12px;align-items:center;margin-top:3px}
.workspace .nu-foot button.ws-view{min-height:22px;padding:0;border:0;background:none;color:#e7f3ff;font-size:12px;cursor:pointer}
.nu-foot button.ws-view:hover{text-decoration:underline}
.nu-src{display:inline-block;padding:2px 6px;border-radius:3px;background:var(--c);color:#10264a;font-weight:750;font-size:11px}
.nu-mut{color:#66777f;font-size:12px}.nu-wait,.ws-users .ws-empty{color:#dbeafe}
.workspace .nu-table{min-width:330px;background:#f9fcff}.nu-table td{font-size:12px;overflow-wrap:anywhere}.nu-table td:last-child{white-space:normal}
.ws-users .ws-table-wrap{margin-top:5px;border-radius:3px}
.workspace .nu-table :is(th,td):first-child{padding-left:6px}
.workspace .nu-table :is(th,td):last-child{padding-right:6px}
.nu-table th:nth-child(1){width:24%}.nu-table th:nth-child(2){width:28%}.nu-table th:nth-child(3){width:22%}
@media(max-width:1330px) and (min-width:1001px){.ws-metric{padding-inline:7px}.ws-metric>span{font-size:13px;gap:5px}.ws-metric .ws-glyph{width:24px;height:24px}.ws-loyalty-link{padding-inline:16px;grid-template-columns:minmax(123px,38%) minmax(0,1fr)}.ws-loyalty-art h2{font-size:17px}.ws-loyalty-value progress{width:32%}}
@media(max-width:1000px){
 .ws-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ws-column:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;grid-column:1/-1;align-items:start}
}
@media(max-width:700px){
 #app .layout.top main:has(>.workspace){padding:14px 12px 20px}
 .ws-topline{margin-bottom:14px}.ws-activity{font-size:12px;padding-inline:8px}
 .ws-top-actions>[data-home-period]{display:none}
 .ws-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 .ws-column:last-child{display:flex;grid-column:auto}
 .workspace .ws-card{padding-inline:12px}.workspace .ws-stock,.workspace .ws-loyalty:not(.ws-loyalty-empty){padding-inline:0}
 .ws-stock-head,.ws-stock-body{padding-inline:12px}.ws-metrics{gap:6px}.ws-metric{padding:9px 6px}.ws-metric>span{font-size:12px;gap:3px}.ws-metric .ws-glyph{width:22px;height:23px}
 .ws-metric strong{font-size:16px}.ws-loyalty-link{padding-inline:15px}.ws-loyalty-art h2{font-size:17px}.ws-loyalty-value progress{width:30%}
 .ws-due-total{font-size:19px}.workspace h2{font-size:15px}.workspace [role=tab]{font-size:15px}
}
@media(max-width:350px){.ws-metric .ws-glyph{display:none}.ws-loyalty-link{grid-template-columns:1fr 1.6fr;gap:6px}.ws-loyalty-value progress{display:none}.ws-stock-row>div{gap:2px}.ws-stock-row .ws-glyph{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){.workspace *{transition:none!important}}
