:root{--home-surface:#fff;--home-tint:#fafbfc;--home-teal:#087f79;--home-blue:#2475b9;--home-rose:#bf4255;--home-amber:#b46a06}
:root[data-theme=dark]{--home-surface:#202224;--home-tint:#26292c;--home-teal:#5ac6b3;--home-blue:#77b7ec;--home-rose:#f18b9c;--home-amber:#f3b960}
.navigation{display:flex;flex-direction:column;gap:4px;padding:14px 10px;flex:1}.nav-item{gap:10px;min-height:43px;line-height:1.35}.nav-item>span{flex:1;min-width:0;overflow-wrap:anywhere}.nav-group-toggle{font-weight:500}.nav-group-toggle>svg:last-child{width:14px;transition:transform .18s}.nav-group-toggle[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}.nav-children{padding:1px 0 7px 16px;border-inline-start:1px solid var(--border);margin-inline-start:19px}.nav-children[hidden]{display:none}.nav-children .nav-item{font-size:13px;min-height:37px;margin:0;padding:7px 9px}.nav-children .nav-item>svg{width:15px;height:15px}.nav-bottom{border-top:1px solid var(--border);padding-top:14px;margin-top:auto}.sidebar-foot{flex:none}.current-group>.nav-group-toggle{color:var(--accent)}.content:has(#home-dashboard){max-width:1800px}.home-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:6px 0 28px}.home-head h1{font-size:28px;margin-bottom:12px}.home-tools{display:flex;align-items:center;gap:14px;flex:none}.home-tools img{border-radius:50%;object-fit:contain}.home-tools label{min-width:105px}.home-live{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.live-pulse{width:7px;height:7px;flex:none;border-radius:50%;background:var(--green);animation:live-breathe 2.5s ease-in-out infinite}.home-sales>.section-head,.home-fleet>.section-head{margin:28px 0 15px}.home-sales>.section-head>.sub,.home-fleet>.section-head>.sub{text-align:end;max-width:65%;margin:0}.income-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.income-card{grid-column:span 2;background:var(--home-surface);border:1px solid var(--border);border-top:3px solid var(--home-teal);border-radius:8px;min-width:0;overflow:hidden;transition:border-color .18s,box-shadow .18s}.income-card:hover{box-shadow:0 5px 18px #0000000a;border-inline-color:var(--muted)}.income-today{grid-column:span 4;border-top-color:var(--accent)}.income-yesterday{border-top-color:var(--home-blue)}.income-same-time{border-top-color:var(--home-rose)}.income-week{border-top-color:var(--home-teal)}.income-month{border-top-color:var(--home-amber)}.income-heading{display:flex;gap:10px;align-items:center;padding:18px 18px 0}.period-symbol{display:grid;place-items:center;width:34px;height:34px;background:var(--home-tint);border-radius:6px;color:var(--accent);flex:none}.income-yesterday .period-symbol{color:var(--home-blue)}.income-same-time .period-symbol{color:var(--home-rose)}.income-week .period-symbol{color:var(--home-teal)}.income-month .period-symbol{color:var(--home-amber)}.income-title{font-size:15px;font-weight:500;justify-content:space-between;border:0;background:transparent;text-align:start;padding:0;gap:10px;flex:1;min-width:0}.income-title>svg{width:15px;color:var(--muted)}.income-title:hover{background:transparent;color:var(--accent)}.income-total{padding:14px 18px 18px;min-height:103px;display:grid;align-content:center;gap:7px}.income-total>strong{font-size:27px;line-height:1.2;font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.income-total>span{font-size:12px;color:var(--muted)}.income-today .income-total>strong{font-size:34px}.income-breakdown{padding:0 18px 17px;display:grid;gap:16px}.income-kind{border-top:1px solid var(--border);padding-top:13px}.income-kind h4{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:500;margin:0 0 12px}.income-kind h4>svg{width:15px;height:15px;color:var(--muted)}.income-payments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.payment-figure{display:grid;gap:6px;min-width:0;font-variant-numeric:tabular-nums}.payment-figure>span{font-size:11px;color:var(--muted);display:flex;gap:6px;align-items:center}.payment-figure svg{width:15px;height:15px}.payment-figure.cash svg{color:var(--home-teal)}.payment-figure.card svg{color:var(--home-blue)}.payment-figure>strong{font-size:17px;font-weight:500;overflow-wrap:anywhere}.payment-figure>small{color:var(--muted);font-size:11px}.income-today .income-breakdown{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.income-today .income-total{min-height:185px;align-content:start;padding-top:26px}.income-foot{padding:11px 18px;background:var(--home-tint);border-top:1px solid var(--border);font-size:10px;color:var(--muted);display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;min-height:47px;align-items:center}.unconfirmed{color:var(--home-amber)}.health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.health-tile{border-radius:8px;background:var(--home-surface);padding:18px 16px;justify-content:flex-start;align-items:flex-start;gap:13px;text-align:start;min-width:0;transition:transform .18s,border-color .18s}.health-tile:hover{transform:translateY(-2px);background:var(--home-surface)}.health-symbol{width:37px;height:37px;display:grid;place-items:center;flex:none;border-radius:7px;background:var(--home-tint);color:var(--tone)}.health-symbol>svg{width:23px;height:23px}.health-tile.green{--tone:var(--green)}.health-tile.rose{--tone:var(--home-rose)}.health-tile.amber{--tone:var(--home-amber)}.health-tile.teal{--tone:var(--home-teal)}.health-copy{display:grid;gap:8px;min-width:0;flex:1}.health-copy>span{font-size:12px;overflow-wrap:anywhere}.health-copy>strong{font-size:29px;font-weight:500;color:var(--tone)}.health-copy>small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.health-tile>svg{width:13px;height:13px;align-self:center;color:var(--muted)}.attention-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.attention-machine{display:flex;align-items:flex-start;gap:14px;border-block:1px solid var(--border);padding:17px 4px;min-width:0}.attention-machine>img,.attention-art{width:58px;height:74px;object-fit:contain;flex:none;background:var(--home-tint);border-radius:5px}.attention-art{display:grid;place-items:center;color:var(--muted)}.attention-art>svg{width:29px;height:29px}.attention-machine>div{min-width:0;flex:1}.attention-machine h4{font-size:14px;font-weight:500;overflow-wrap:anywhere;margin:0 0 4px}.attention-machine>.icon{width:30px;min-height:30px;padding:5px;background:transparent}.attention-stock{display:flex;gap:7px;align-items:center;margin-top:10px;font-size:12px;color:var(--muted)}.attention-stock>svg{width:15px;height:15px}.home-healthy{display:flex;gap:12px;align-items:center;padding:25px 0;color:var(--green);border-block:1px solid var(--border)}.home-loading{min-height:300px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.home-loading svg{animation:home-spin 1s linear infinite}.home-enter{animation:home-enter .3s ease-out}.fault-summary-band{display:flex;align-items:center;gap:12px;padding:20px 0;border-block:1px solid var(--border);color:var(--home-rose)}.fault-summary-band strong{font-size:30px;font-weight:500}.fault-summary-band span{color:var(--muted)}.machine-fault-group{padding-block:10px 22px;border-bottom:1px solid var(--border)}
#page[data-view=sales]:not([data-sales-section=all]):not([data-sales-section=transactions]) .transaction-export-head{display:none}
#page[data-view=sales][data-sales-section=transactions] .transaction-export-head h3{display:none}
#page[data-view=sales]:not([data-sales-section=all]):not([data-sales-section=comparison]) [data-action=export-comparison]{display:none}
#page[data-view=sales][data-sales-section=machine] #sales-view-controls,#page[data-view=sales][data-sales-section=product] #sales-view-controls{display:none}
#page:not([data-view=warehouse])>.tabs{display:none}
.nav-children{padding:1px 0 7px;padding-inline-start:16px}
@media(min-width:1251px){.income-today{grid-column:span 2}.income-today .income-total{min-height:103px;padding-top:14px}.income-today .income-breakdown{grid-template-columns:minmax(0,1fr);gap:16px}.income-week,.income-month{grid-column:span 3}.income-week .income-breakdown,.income-month .income-breakdown{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}}
#page[data-view=sales][data-sales-section=comparison] #sales-result,#page[data-view=sales][data-sales-section=comparison] #sales-result~*,#page[data-view=sales][data-sales-section=comparison] #sales-result~.filters{display:none}
#page[data-view=sales][data-sales-section=comparison] #sales-result~*{display:none}
#page[data-view=sales][data-sales-section=comparison] .filters:has(#sales-range){display:none}
#page[data-view=sales][data-sales-section=transactions] #sales-summary-details,#page[data-view=sales][data-sales-section=transactions] #sales-product-section{display:none}
#page[data-view=sales][data-sales-section=machine] .transaction-only,#page[data-view=sales][data-sales-section=product] .transaction-only{display:none}
#page[data-view=sales][data-sales-section=machine] #sales-product-section,#page[data-view=sales][data-sales-section=machine] [data-report-key="report-section:method"],#page[data-view=sales][data-sales-section=product] #sales-summary-details{display:none}
#page[data-view=slots][data-slot-section=slots] #stock-summary,#page[data-view=slots][data-slot-section=slots] .stock-history-band{display:none}
#page[data-view=slots][data-slot-section=slots] .stock-toolbar [data-action=stock-batch-value],#page[data-view=slots][data-slot-section=slots] .stock-toolbar [data-action=capacity-batch-value],#page[data-view=slots][data-slot-section=slots] .stock-toolbar [data-action=refill]{display:none}
@keyframes home-enter{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes home-spin{to{transform:rotate(360deg)}}@keyframes live-breathe{50%{opacity:.35}}
@media(min-width:1600px){.income-total>strong{font-size:31px}.income-today .income-total>strong{font-size:40px}.payment-figure>strong{font-size:20px}}
@media(max-width:1250px){.income-card{grid-column:span 3}.income-today{grid-column:span 6}.income-today .income-total{min-height:105px}.health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.income-grid{grid-template-columns:minmax(0,1fr);gap:14px}.income-card,.income-today{grid-column:1}.income-today .income-total{min-height:103px;padding-top:14px}.income-today .income-total>strong{font-size:30px}.income-today .income-breakdown{grid-template-columns:minmax(0,1fr);gap:16px}.home-head{margin-top:4px}.home-head h1{font-size:24px}.home-tools>img{width:42px;height:42px}.home-tools{flex-direction:column-reverse;gap:8px}.home-live{font-size:11px;gap:7px}.home-sales>.section-head,.home-fleet>.section-head{align-items:flex-start}.home-sales>.section-head>.sub,.home-fleet>.section-head>.sub{max-width:55%;font-size:10px}.health-grid{gap:10px}.health-tile{padding:14px 11px;gap:8px}.health-symbol{width:28px;height:28px}.health-symbol>svg{width:19px;height:19px}.health-copy>strong{font-size:25px}.health-tile>svg{display:none}.health-copy>span{font-size:11px}.attention-grid{grid-template-columns:minmax(0,1fr)}.nav-children{padding-inline-start:10px}.income-foot{font-size:11px}}
.home-profit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;border-top:1px solid var(--border);padding-top:12px;margin-top:8px;font-variant-numeric:tabular-nums;align-items:start;min-width:0}.home-profit>span{display:flex;align-items:flex-start;gap:6px;color:var(--muted);font-size:12px;line-height:1.5;min-width:0;overflow-wrap:anywhere}.home-profit>span svg{width:15px;height:15px;flex:none;margin-top:2px;color:var(--home-teal)}.home-profit>strong{font-size:20px;font-weight:500;line-height:1.4;color:var(--home-teal);overflow-wrap:anywhere;max-width:100%;text-align:end}.home-profit.loss>strong,.home-profit.loss>span svg{color:var(--home-rose)}.home-profit>small{grid-column:1/-1;font-size:11px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}.home-profit .profit-unavailable{color:var(--home-amber)}.home-profit.compact{display:flex;flex-direction:column;gap:5px;border:0;margin:0 0 12px;padding:0}.home-profit.compact>strong{font-size:15px;text-align:start}.home-profit.compact>span{font-size:11px}.home-profit.compact>small{font-size:10px}.payment-figure .home-profit{border-top:1px solid var(--border);padding-top:9px;margin:4px 0 0}.payment-figure .home-profit>span svg{display:none}.payment-figure .home-profit>strong{font-size:14px}.home-profit-basis{font-size:12px;line-height:1.6;margin:14px 0 0;max-width:1000px}.income-total:has(.home-profit){min-height:190px}.income-card:has(.home-profit){display:flex;flex-direction:column}.income-card:has(.home-profit) .income-foot{margin-top:auto}.home-profit>strong:only-of-type{min-width:0}@media(max-width:420px){.income-total .home-profit{grid-template-columns:minmax(0,1fr)}.income-total .home-profit>strong{text-align:start}}
.home-profit.unavailable>strong{color:var(--home-amber)}
@media(prefers-reduced-motion:reduce){.home-enter,.live-pulse,.home-loading svg{animation:none}.health-tile,.income-card,.nav-group-toggle>svg:last-child{transition:none}.health-tile:hover{transform:none}}
