/* A small daily workspace, with setup kept in the More menu. */
.simple-shell{grid-template-columns:200px minmax(0,1fr)}.simple-shell .sidebar{padding:26px 14px}.simple-shell .brand{font-size:21px;margin:0 6px 36px;gap:8px}.simple-shell .mark{width:32px;height:32px}.simple-shell .sidebar nav{display:grid;grid-template-columns:1fr;gap:9px;overflow:visible}.simple-shell .nav{display:flex;align-items:center;gap:12px;text-align:left;min-height:50px;padding:12px 16px;font-size:14px;white-space:normal}.nav svg{width:22px;height:22px;flex:0 0 auto}.simple-shell .nav.active{box-shadow:inset 3px 0 var(--accent)}.simple-shell .topbar{min-height:84px;height:auto;padding:16px 32px;gap:20px}.location-control{flex:1;max-width:380px;min-width:0}.location-control label{font-size:12px;color:var(--muted);font-weight:500;margin-bottom:3px}.simple-shell .location-control select{display:block;width:100%;max-width:100%;border:0;border-radius:4px;background:transparent;padding:3px 20px 3px 0;font-size:19px;font-weight:650}.more-button{min-height:44px;white-space:nowrap;flex-shrink:0;font-size:14px}.simple-shell .content{max-width:1150px;padding:30px 32px 40px}.simple-shell .eyebrow{display:none}.simple-shell .heading{margin-bottom:22px}.simple-shell h1{font-size:30px;margin:0 0 8px;letter-spacing:-.8px}.simple-shell .heading p{font-size:14px;margin:0;color:var(--muted)}.simple-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:20px}.simple-summary>div{display:grid;gap:5px;padding:19px 22px;min-width:0}.simple-summary>div+div{border-left:1px solid var(--line)}.simple-summary small{font-size:12px}.simple-summary strong{font-size:28px;line-height:1.2;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.simple-summary span{font-size:12px;color:var(--muted)}.simple-summary>div:nth-child(3){grid-column:1/-1;border-left:0;border-top:1px solid var(--line);display:flex;align-items:center;gap:14px;padding:12px 22px}.simple-summary>div:nth-child(3) strong{font-size:18px}.daily-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:center;margin:0 0 28px}.daily-actions>button{display:flex;align-items:center;text-align:left;gap:12px;padding:15px 18px;min-height:78px;font-size:16px;border-radius:12px}.daily-actions small{display:block;font-size:12px;line-height:1.5;font-weight:400;margin-top:2px}.daily-actions .primary small{color:#fff;opacity:.85}.action-symbol{font-size:25px;font-weight:400;flex-shrink:0}.daily-actions>.subtle-action{min-height:44px;padding:10px;background:transparent;border:0;font-size:12px;text-align:center;justify-content:center;color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2{font-size:19px;margin:0}.section-title button{font-size:13px;padding:9px 13px}.stock-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}.stock-filters input,.stock-filters select{max-width:100%;min-width:0}.inventory-table{white-space:normal}.inventory-table td:first-child{min-width:180px}.inventory-table .product-name-cell>div{min-width:0}.inventory-table .product-name-cell strong{overflow-wrap:anywhere}.inventory-table td[data-label="Available"]{white-space:nowrap}.inventory-table td[data-label="Available"] strong{font-weight:650}.recent-details{padding:15px 18px;background:var(--surface)}.recent-details>summary{font-size:14px}.activity-list{display:grid}.activity-row{display:grid;grid-template-columns:150px minmax(0,1fr) 130px;gap:16px;padding:17px 0;border-bottom:1px solid var(--line);align-items:start}.activity-row:last-child{border-bottom:0}.activity-row>div:first-child small{display:block;margin-top:8px;font-size:12px}.activity-items{min-width:0}.activity-items strong{font-size:13px}.activity-items p{white-space:normal;overflow-wrap:anywhere;margin:5px 0 0;font-size:13px;color:var(--muted)}.activity-end{text-align:right;display:grid;justify-items:end;gap:9px}.more-menu{display:grid;margin:12px 0}.more-menu button{display:flex;align-items:center;justify-content:space-between;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:17px 6px;font-weight:500;min-height:54px;gap:15px}.more-menu button span{font-size:22px;color:var(--muted)}.optional-details{border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 0;margin:12px 0}.optional-details summary{font-size:13px;color:var(--muted);font-weight:500}.simple-movement{max-width:850px}.simple-movement>.note{margin-top:0}.simple-movement .line-entry{padding:16px 0;border-bottom:1px solid var(--line)}.simple-movement .total-box{margin-top:18px}.simple-shell .bot-layout{grid-template-columns:minmax(0,1fr);max-width:900px}.simple-shell .bot-help{display:block}.bot-help>details{margin:0;background:var(--surface);padding:16px 20px}.bot-help summary{font-size:14px;font-weight:500}.bot-example-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bot-example-list>button{text-align:left;white-space:pre-wrap;font-size:13px;font-weight:500}.bot-example-list .footnote{grid-column:1/-1;margin:6px 0}.simple-shell .bot-messages{max-height:420px}.simple-shell .bot-help h2{font-size:17px}.simple-shell .sidebar .bottom{gap:12px}.simple-shell .sidebar .bottom button{font-size:12px}.simple-shell .sidebar .bottom small{padding:0 10px}
@media screen and (max-width:1100px) and (min-width:901px){.simple-shell{grid-template-columns:180px minmax(0,1fr)}.simple-shell .content{padding:26px 24px}.simple-shell .topbar{padding:16px 24px}.daily-actions{grid-template-columns:1fr 1fr}.daily-actions>.subtle-action{grid-column:1/-1;justify-self:end;min-height:25px;padding:0}.simple-summary strong{font-size:25px}}
@media screen and (max-width:900px){.simple-shell{display:block}.simple-shell .sidebar{height:0;padding:0;border:0;position:static}.simple-shell .sidebar>.brand,.simple-shell .sidebar>.bottom{display:none}.simple-shell .sidebar nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line);z-index:40;box-shadow:0 -4px 20px #10271b05}.simple-shell .nav{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:54px;padding:7px 3px;font-size:12px;font-weight:600;border-radius:9px;text-align:center}.simple-shell .nav svg{width:22px;height:22px}.simple-shell .nav.active{box-shadow:none;background:var(--soft)}.simple-shell .topbar{position:sticky;top:0;z-index:20;padding:13px 20px;min-height:76px;gap:14px}.simple-shell .content{padding:24px 20px calc(110px + env(safe-area-inset-bottom,0px))}.simple-shell .location-control{max-width:480px}.simple-shell .location-control select{font-size:18px}.simple-shell h1{font-size:27px}.simple-shell .heading{margin-bottom:20px}.simple-shell .bot-messages{max-height:44dvh}.simple-shell .topbar .more-button{font-size:13px;padding:9px 12px}#toast{bottom:calc(90px + env(safe-area-inset-bottom,0px))}.daily-actions{grid-template-columns:1fr 1fr;gap:10px}.daily-actions>.subtle-action{grid-column:1/-1;justify-self:end;min-height:24px;padding:0 4px}.activity-row{grid-template-columns:minmax(0,1fr) 120px}.activity-row>div:first-child{grid-column:1/-1;display:flex;align-items:center;gap:10px}.activity-row>div:first-child small{margin:0}.simple-summary strong{font-size:25px}}
@media screen and (max-width:700px){.simple-shell .content{padding:22px 16px calc(105px + env(safe-area-inset-bottom,0px))}.simple-shell .topbar{padding:12px 16px}.simple-shell .heading p{font-size:13px;line-height:1.6}.simple-summary{border-radius:12px}.simple-summary>div{padding:15px 14px}.simple-summary strong{font-size:23px}.simple-summary small,.simple-summary span{font-size:12px;line-height:1.5}.simple-summary>div:nth-child(3){padding:10px 14px;gap:9px;flex-wrap:wrap}.simple-summary>div:nth-child(3) span{flex-basis:100%}.daily-actions{margin-bottom:22px}.daily-actions>button{padding:13px 12px;gap:8px;font-size:15px;min-height:76px}.daily-actions small{font-size:12px}.action-symbol{font-size:22px}.stock-filters{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px;margin:14px 0}.stock-filters input,.stock-filters select{font-size:14px;padding:11px 9px}.inventory-wrap{border:0;background:transparent;overflow:visible}.inventory-table,.inventory-table tbody{display:block;width:100%}.inventory-table thead{display:none}.inventory-table tbody{display:grid;gap:12px}.inventory-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 14px;background:var(--surface);border:1px solid var(--line);border-radius:12px;position:relative;padding:16px}.inventory-table td{display:block;border:0;padding:0;white-space:normal!important;min-width:0!important;text-align:left}.inventory-table td[data-label="Item"]{grid-column:1/-1;padding-right:44px}.inventory-table td[data-label="Available"]{grid-row:2;grid-column:1;font-size:18px;align-self:center}.inventory-table td[data-label="Status"]{grid-row:2;grid-column:2;align-self:center;justify-self:end}.inventory-table td[data-label="Unit cost"]{grid-row:3;grid-column:1;border-top:1px solid var(--line);padding-top:10px;font-size:13px}.inventory-table td[data-label="Stock value"]{grid-row:3;grid-column:2;border-top:1px solid var(--line);padding-top:10px;font-size:13px}.inventory-table td[data-label="Unit cost"]:before,.inventory-table td[data-label="Stock value"]:before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:3px}.inventory-table td[data-label="Edit"]{position:absolute;right:12px;top:13px}.inventory-table td[data-label="Edit"] button{padding:6px 9px;font-size:12px;min-height:32px}.inventory-table .product-name-cell{gap:10px;align-items:center}.inventory-table .product-name-cell strong{font-size:15px;line-height:1.4}.inventory-table .product-name-cell small{font-size:12px;margin-top:4px}.inventory-table .product-thumb{width:42px;height:42px}.inventory-table .badge{font-size:12px;padding:4px 8px}.recent-details{margin-top:22px}.activity-row{grid-template-columns:minmax(0,1fr) 100px;gap:10px;padding:15px 0}.activity-end strong{font-size:13px}.activity-end button{font-size:12px}.activity-items p{font-size:12px}.bot-example-list{grid-template-columns:minmax(0,1fr)}.simple-shell .bot-chat{padding:16px}.simple-shell .bot-context{gap:8px}.simple-shell .bot-context small{font-size:12px}.simple-shell .bot-message{padding:12px}.simple-shell .bot-message p{font-size:13px}.simple-shell .bot-layout{gap:14px}.simple-movement{padding:16px}.simple-movement .note{font-size:13px}.optional-details summary{font-size:12px}}
@media screen and (max-width:360px){.simple-summary strong{font-size:20px}.simple-summary>div{padding:13px 11px}.daily-actions>button{font-size:13px}.daily-actions small{font-size:12px}.stock-filters{grid-template-columns:minmax(0,1fr)}.more-button span{display:none}.simple-shell .location-control select{font-size:17px}}
body.motion .simple-shell .card,body.motion .simple-shell .tablewrap{animation:none}
@media screen and (max-width:900px){.simple-shell .topbar{padding-top:calc(12px + env(safe-area-inset-top,0px))}}
@media screen and (max-width:700px){.stock-filters input,.stock-filters select{font-size:16px}}
.destination-slider{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:6px 2px 18px;scroll-padding:2px}.destination-card{flex:0 0 175px;min-height:170px;display:flex;flex-direction:column;align-items:start;justify-content:center;text-align:left;gap:10px;scroll-snap-align:start;padding:18px;white-space:normal}.destination-card strong{font-size:16px;overflow-wrap:anywhere}.destination-card small{font-size:12px;font-weight:400}.destination-card:hover,.destination-card:focus-visible{border-color:var(--accent);background:var(--soft)}.destination-symbol{font-size:28px;color:var(--accent);line-height:1}.destination-slider-controls{display:flex;justify-content:space-between;gap:12px;align-items:center}.destination-slider-controls>div{display:flex;gap:7px}.destination-slider-controls button{font-size:24px;line-height:1;padding:6px 12px;min-height:38px}.use-steps{display:flex;gap:10px;margin:-5px 0 20px;flex-wrap:wrap}.use-steps span{font-size:12px;color:var(--muted);padding:7px 10px;border-radius:8px;background:var(--surface);border:1px solid var(--line)}.use-steps .done,.use-steps .current{color:var(--accent)}.use-steps .current{background:var(--soft);border-color:var(--accent)}.use-route{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:14px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:18px}.use-route small,.use-route strong{display:block}.use-route small{font-size:12px;margin-bottom:5px}.use-route strong{font-size:16px;overflow-wrap:anywhere}.use-route>span{font-size:24px;color:var(--muted)}@media(max-width:550px){.use-route{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:9px}.use-route button{grid-column:1/-1;justify-self:end}.use-route strong{font-size:14px}.use-steps{gap:6px}.use-steps span{font-size:12px;padding:6px 8px}.destination-card{flex-basis:160px;min-height:165px}}
.profit-control{margin:1rem 0;padding:1rem;border:1px solid var(--border,#dae4e0);border-radius:12px}.profit-control input[type=checkbox]{width:auto}.profit-control input[type=range]{width:100%;padding:0;min-height:40px}.profit-control label{display:block}#install-stockroom{display:block;margin:12px auto;max-width:90%;font-size:14px}#install-stockroom[hidden]{display:none}.history-actions{flex-wrap:wrap}
@media print{#install-stockroom{display:none!important}}
/* Keep thermal text black and legible; receipt content stays vector text. */
.receipt-preview .receipt-paper{font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5}
.receipt-preview .receipt-paper[lang=bn]{font-family:StockroomBangla,Arial,sans-serif;font-size:15px;font-weight:500}
.receipt-preview .receipt-grid th,.receipt-preview .receipt-grid td{font-size:inherit!important}
@media print{
 html,body{height:auto!important;min-height:0!important;overflow:visible!important;background:#fff!important;color:#000!important;margin:0!important;padding:0!important}
 #receipt{position:static!important;display:block!important;height:auto!important;overflow:visible!important;font:14px/1.45 Arial,Helvetica,sans-serif!important;color:#000!important;margin:0!important}
 #receipt .receipt-paper{width:100%;color:#000!important;background:#fff!important;isolation:auto}
 #receipt .receipt-paper[lang=bn],#receipt .receipt-paper[lang=bn] table{font-family:StockroomBangla,Arial,sans-serif!important;font-size:15px!important;font-weight:500!important;line-height:1.65!important}
 #receipt[data-paper="58"]{font-size:13px!important}
 #receipt[data-paper="58"] .receipt-paper[lang=bn],#receipt[data-paper="58"] .receipt-paper[lang=bn] table{font-size:14px!important}
 #receipt table,#receipt .receipt-grid{width:100%!important;font-size:inherit!important;line-height:inherit!important;border-collapse:collapse}
 #receipt .receipt-grid th,#receipt .receipt-grid td{font-size:inherit!important;padding:5px 2px!important;color:#000!important;border-color:#000!important}
 #receipt .receipt-grid th{font-weight:700!important}
 #receipt h1{font:700 21px/1.4 Arial,Helvetica,sans-serif!important;color:#000!important}
 #receipt .receipt-paper[lang=bn] h1{font-family:StockroomBangla,Arial,sans-serif!important}
 #receipt .small{font-size:11px!important}
 #receipt .grand{font-size:17px!important;color:#000!important}
 #receipt .receipt-watermark{display:none!important}
 #receipt .receipt-paper:has(.receipt-watermark) .grand:after{content:none}
}
.compact-receipt-rate{display:none}
.receipt-preview[data-paper="58"] .receipt-grid col:nth-child(1),.receipt-preview[data-paper="58"] .receipt-grid col:nth-child(4),.receipt-preview[data-paper="58"] .receipt-grid tr>:nth-child(1),.receipt-preview[data-paper="58"] .receipt-grid tr>:nth-child(4),.receipt-preview[data-paper="58"] .receipt-unit{display:none}
.receipt-preview[data-paper="58"] .receipt-grid col:nth-child(2){width:50%!important}.receipt-preview[data-paper="58"] .receipt-grid col:nth-child(3){width:20%!important}.receipt-preview[data-paper="58"] .receipt-grid col:nth-child(5){width:30%!important}
.receipt-preview[data-paper="58"] .compact-receipt-rate{display:block;font-size:11px;margin-top:4px}
@media print{
 #receipt[data-paper="58"] .receipt-grid col:nth-child(1),#receipt[data-paper="58"] .receipt-grid col:nth-child(4),#receipt[data-paper="58"] .receipt-grid tr>:nth-child(1),#receipt[data-paper="58"] .receipt-grid tr>:nth-child(4),#receipt[data-paper="58"] .receipt-unit{display:none!important}
 #receipt[data-paper="58"] .receipt-grid col:nth-child(2){width:50%!important}#receipt[data-paper="58"] .receipt-grid col:nth-child(3){width:20%!important}#receipt[data-paper="58"] .receipt-grid col:nth-child(5){width:30%!important}
 #receipt[data-paper="58"] .compact-receipt-rate{display:block;font-size:11px;margin-top:4px}
}
/* Receipt uses two short lines per item, independent of dashboard table widths. */
.thermal-items{margin:8px 0;color:#000;font-variant-numeric:tabular-nums}
.thermal-item-heading,.thermal-item-top{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:8px;align-items:start}
.thermal-item-heading{border-top:1px dashed #000;border-bottom:1px dashed #000;padding:4px 0;font-size:12px;line-height:1.25}
.thermal-item{padding:5px 0;border-bottom:1px dotted #bbb;break-inside:avoid;page-break-inside:avoid}
.thermal-item-name{overflow-wrap:break-word;word-break:normal;line-height:1.3;min-width:0}
.thermal-amount{white-space:nowrap;word-break:normal;overflow-wrap:normal;text-align:right;line-height:1.3}
.thermal-item-detail{font-size:12px;line-height:1.3;margin-top:2px;word-break:normal;overflow-wrap:normal}
.receipt-preview .receipt-paper{font-size:13px;line-height:1.35}
.receipt-preview .receipt-paper[lang=bn]{font-size:14px;line-height:1.45}
.receipt-preview h1{font-size:19px;margin:4px 0 6px}
.receipt-preview p{margin:3px 0}.receipt-preview .receipt-recipient{padding:2px 0}
.receipt-preview .grand{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:16px;line-height:1.35}
.receipt-preview .grand span:last-child{white-space:nowrap;margin-left:auto}
@media print{
 #receipt{font-size:13px!important;line-height:1.3!important;box-sizing:border-box!important}
 #receipt .receipt-paper[lang=bn]{font-size:14px!important;line-height:1.45!important}
 #receipt .thermal-item{padding:4px 0!important}
 #receipt .thermal-item-detail{font-size:12px!important;line-height:1.3!important}
 #receipt .thermal-item-heading{font-size:12px!important;white-space:nowrap}
 #receipt h1{font-size:19px!important;line-height:1.3!important;margin:3px 0 5px!important}
 #receipt p{margin:3px 0!important;line-height:1.3!important}
 #receipt p:empty{display:none!important}
 #receipt .receipt-recipient{padding:2px 0!important}
 #receipt hr{margin:6px 0!important}
 #receipt .grand{display:flex!important;flex-wrap:wrap!important;justify-content:space-between;gap:5px;font-size:16px!important;line-height:1.3!important;padding-top:5px!important}
 #receipt .grand span:last-child{white-space:nowrap!important;margin-left:auto}
 #receipt .row{gap:5px;flex-wrap:wrap}
 #receipt .small{font-size:10px!important}
}
/* Five-column receipt layout; keep numeric values on one line. */
.receipt-preview .thermal-column-grid,#receipt .thermal-column-grid{width:100%!important;table-layout:auto!important;border-collapse:collapse!important;font:12px/1.35 Arial,Helvetica,sans-serif;margin:8px 0!important}
.thermal-column-grid .thermal-col-no{width:6%}.thermal-column-grid .thermal-col-item{width:38%}.thermal-column-grid .thermal-col-qty{width:8%}.thermal-column-grid .thermal-col-rate{width:21%}.thermal-column-grid .thermal-col-amount{width:27%}
.receipt-preview .thermal-column-grid th,.receipt-preview .thermal-column-grid td,#receipt .thermal-column-grid th,#receipt .thermal-column-grid td{width:auto!important;padding:4px 2px!important;border:0!important;font-size:12px!important;line-height:1.35!important;letter-spacing:0!important;vertical-align:top;word-break:normal!important;overflow-wrap:normal!important;background:#fff!important;color:#000!important}
.receipt-preview .thermal-column-grid th,#receipt .thermal-column-grid th{white-space:nowrap!important;border-top:1px dashed #000!important;border-bottom:1px dashed #000!important;text-align:left}
.receipt-preview .thermal-column-grid .num,#receipt .thermal-column-grid .num{white-space:nowrap!important;text-align:right!important;font-variant-numeric:tabular-nums}
.receipt-preview .thermal-column-grid .thermal-name,#receipt .thermal-column-grid .thermal-name{white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;min-width:0}
.receipt-paper[lang=bn] .thermal-column-grid,.receipt-paper[lang=bn] .thermal-column-grid th,.receipt-paper[lang=bn] .thermal-column-grid td{font-family:StockroomBangla,Arial,sans-serif!important;font-size:13px!important}
/* Compact receipt masthead/footer, with no blank contact lines. */
.thermal-receipt-head h1{font-size:18px!important;line-height:1.25!important;margin:0 0 3px!important}
.thermal-receipt-head p{margin:2px 0!important;padding:0!important}
.thermal-receipt-head .receipt-recipient{line-height:1.25!important;text-align:center}
.thermal-receipt-meta{display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap;font:11px/1.3 Arial,Helvetica,sans-serif}
.thermal-receipt-meta span:last-child{margin-left:auto;white-space:nowrap}
.thermal-receipt-status{font-size:11px;line-height:1.3!important;text-align:center}
.receipt-paper[lang=bn] .thermal-receipt-meta{font-family:StockroomBangla,Arial,sans-serif}
.thermal-receipt-foot{font-size:10px;line-height:1.25;border-top:1px dashed #000;margin-top:5px;padding-top:4px;text-align:center;overflow-wrap:break-word}
@media print{
 #receipt .thermal-receipt-head h1{font-size:18px!important;line-height:1.25!important;margin:0 0 3px!important}
 #receipt .thermal-receipt-head p{margin:2px 0!important;padding:0!important}
 #receipt .thermal-receipt-meta,#receipt .thermal-receipt-status{font-size:11px!important;line-height:1.3!important}
 #receipt .thermal-column-grid{margin:5px 0!important}
 #receipt .thermal-receipt-foot{font-size:10px!important;line-height:1.25!important;margin-top:4px!important;padding-top:3px!important}
}
.concept-head h1{text-transform:uppercase}
.receipt-document-title{text-align:center;border-top:1px dashed #000;padding-top:3px!important;margin:3px 0!important;font-size:12px;font-weight:700;line-height:1.25}
.receipt-head-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:5px;align-items:start;font:11px/1.3 Arial,Helvetica,sans-serif;margin:2px 0}
.receipt-head-row>span:first-child{min-width:0;overflow-wrap:break-word}.receipt-head-row>span:last-child{text-align:right;white-space:nowrap}
.receipt-reference-row{font-size:10px}.receipt-paper[lang=bn] .receipt-head-row{font-family:StockroomBangla,Arial,sans-serif}
.receipt-reference-row>span:first-child{white-space:nowrap}
@media print{#receipt .receipt-document-title{padding-top:3px!important;margin:3px 0!important}#receipt .receipt-head-row{font-size:11px!important;line-height:1.3!important}#receipt .receipt-reference-row{font-size:10px!important}#receipt .concept-head .receipt-contact{font-size:11px!important;margin:2px 0!important}}
.receipt-history{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important;gap:16px!important}
.history-filter-panel{padding:16px;margin-bottom:18px}.history-filter-panel>input{width:100%;min-width:0}.history-filter-options{border:0;padding:0;margin:12px 0}.history-filter-options summary{font-size:13px;margin:0}.history-filter-options[open] summary{margin-bottom:12px}.history-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.history-filter-fields label{font-size:12px;min-width:0}.history-filter-fields select,.history-filter-fields input{width:100%;min-width:0;font-size:14px;margin-top:5px}.history-filter-panel .row{margin-top:10px;gap:8px;flex-wrap:wrap}
.compact-history-card{padding:18px;min-width:0;align-self:start;overflow-wrap:break-word}.compact-history-card[hidden]{display:none!important}.history-card-top{display:flex;align-items:start;justify-content:space-between;gap:10px}.compact-history-card h2{font-size:19px;line-height:1.3;margin:0;min-width:0}.history-card-total{font-size:19px;line-height:1.3;white-space:nowrap;flex-shrink:0}.compact-history-card .history-card-reference{font-size:12px;line-height:1.4;margin:7px 0 10px;color:var(--muted);overflow-wrap:anywhere}.history-badges{display:flex;gap:6px;flex-wrap:wrap}.history-unpaid{background:#fff3da;color:#815600}.history-item-details{border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0 0;margin:12px 0}.history-item-details summary,.history-manage summary{font-size:13px;margin:0;cursor:pointer}.history-item-details ul{list-style:none;margin:12px 0 0;padding:0}.history-item-details li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13px}.history-item-details li strong{white-space:nowrap;font-size:12px}.history-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.history-primary-actions button{min-width:0;min-height:42px;font-size:13px;padding:10px 8px}.history-manage{border:0;border-top:1px solid var(--line);border-radius:0;margin:12px 0 0;padding:12px 0 0}.history-manage .actions{flex-wrap:wrap;gap:8px}.history-manage button{font-size:13px;min-height:40px}.compact-history-card .history-manage p{font-size:12px;line-height:1.5;margin:10px 0;color:var(--muted)}.history-no-results{padding:24px;text-align:center}.history-no-results[hidden]{display:none}
@media(max-width:700px){.receipt-history{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.history-filter-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.history-filter-fields select,.history-filter-fields input{font-size:16px}.compact-history-card{padding:16px}.history-card-top h2,.history-card-total{font-size:18px}}
@media(max-width:360px){.history-card-top{flex-wrap:wrap}.history-filter-fields{grid-template-columns:minmax(0,1fr)}}
/* Thermal heads often cannot print to the nominal right edge of a roll. */
@media print{
 #receipt{box-sizing:border-box!important;padding:0 3mm 0 1mm!important;max-width:100%!important}
 #receipt>.receipt-paper{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important}
}
/* Approved Stock/order visual system. Screen-only: thermal receipt rules stay intact. */
@media screen{
 body:not(.dark){--bg:#f7f9f8;--ink:#16352e;--muted:#52655d;--line:#dce5e0;--soft:#e6f3ee}
 .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
 .simple-shell .sidebar{padding:28px 16px}.simple-shell .brand{margin-bottom:36px}.simple-shell .content{padding:28px 30px 40px;max-width:1210px}.simple-shell .topbar{min-height:80px;padding:14px 30px}.simple-shell .location-control{max-width:480px}.simple-shell .location-control select{font-size:19px;font-weight:750;max-width:100%;padding:0 24px 0 0;line-height:1.3}.location-address{display:block;margin-top:4px;font-size:13px;line-height:1.3}
 .simple-shell button{transition:background-color .15s,border-color .15s}.simple-shell .heading{margin-bottom:22px}.simple-shell h1{font-size:32px;line-height:1.2;letter-spacing:-.8px}.simple-shell .heading p{font-size:14px;line-height:1.5}.stock-workspace .simple-summary{border-radius:12px;margin-bottom:20px}.stock-workspace .simple-summary>div{padding:18px 24px;gap:5px}.stock-workspace .simple-summary strong{font-size:29px;line-height:1.2}.stock-workspace .simple-summary small{font-size:13px}
 .stock-workspace .daily-actions{display:flex;gap:12px;margin-bottom:30px}.stock-workspace .daily-actions>button{min-height:48px;padding:11px 22px;border-radius:10px;font-size:15px;gap:10px}.stock-workspace .daily-actions>.subtle-action{margin-left:auto;padding:10px 8px;font-size:12px;min-height:44px}.stock-workspace .action-symbol{font-size:23px;line-height:1}.stock-workspace .section-title h2{font-size:21px}.stock-workspace .section-title button{min-height:42px;padding:9px 14px}.stock-workspace .stock-filters{grid-template-columns:minmax(160px,1fr) minmax(130px,.55fr) auto;align-items:center;gap:12px;margin:18px 0}.stock-workspace .stock-filters input,.stock-workspace .stock-filters select{height:46px;font-size:14px;background:var(--surface)}.stock-level-switch{display:flex;gap:6px}.stock-level-switch button{min-height:44px;padding:9px 14px;font-size:13px;white-space:nowrap;border-radius:9px}.stock-level-switch .selected{background:var(--soft);color:var(--accent);border-color:transparent}
 .mobile-item-detail{display:none!important}.stock-workspace .inventory-table th{font-size:12px;text-transform:none;letter-spacing:0;font-weight:650;padding:13px 16px}.stock-workspace .inventory-table td{padding:17px 16px;font-size:14px}.stock-workspace .inventory-table .product-name-cell strong{font-size:14px;font-weight:700}.stock-workspace .inventory-table .product-name-cell small{margin-top:3px;font-size:12px}.stock-workspace .inventory-table td[data-label=Edit] button{min-height:36px;padding:7px 10px}
 .order-workspace>.back-to-stock{background:transparent;color:var(--accent);border:0;padding:0;min-height:28px;font-size:13px;margin-bottom:12px}.order-workspace>h1{margin:0 0 18px}.order-workspace .use-steps{margin:0 0 22px;gap:10px}.order-workspace .use-steps span{padding:7px 12px;font-size:12px;background:var(--surface);border-radius:8px}.order-workspace .use-steps .current{color:var(--accent);border-color:var(--accent);background:var(--soft);font-weight:650}
 .order-route{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,1fr) auto;align-items:center;gap:20px;padding:18px 22px;border:1px solid var(--line);background:var(--surface);border-radius:12px}.order-source{display:flex;align-items:center;gap:12px;min-width:0}.order-source span{font-size:12px;color:var(--muted)}.order-source strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.order-target{border-left:1px solid var(--line);padding-left:22px;min-width:0}.order-target label{font-size:12px;margin-bottom:4px}.order-target select{padding:8px 12px;font-size:15px;font-weight:600;height:42px}.order-route>button{min-height:40px;font-size:12px}.order-stock-note{font-size:13px;margin:12px 0 20px;color:var(--muted)}
 .order-columns{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:start}.order-items-panel,.order-summary-panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}.order-items-panel{padding:16px}.order-search{position:relative;margin-bottom:16px}.order-search input{height:46px;font-size:14px}.order-search #order-search-results{position:absolute;top:100%;left:0;right:0;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 24px #16352e15;z-index:8;max-height:320px;overflow:auto;border-radius:9px;margin-top:4px}.order-search-results[hidden],#order-search-results[hidden]{display:none}.order-search #order-search-results button{display:flex;flex-direction:column;align-items:start;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px;font-size:14px;gap:3px}.order-search #order-search-results small{font-size:12px}.order-search #order-search-results p{padding:12px;margin:0;font-size:13px}
 .order-column-head,.order-workspace .line-entry{display:grid;grid-template-columns:minmax(130px,1fr) 85px 85px 80px 24px;gap:10px;align-items:center}.order-column-head{font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);padding:10px 0}.order-column-head span:last-child{text-align:right}.order-workspace .line-entry{padding:18px 0;border-bottom:1px solid var(--line)}.order-workspace .line-entry>div{min-width:0}.order-workspace .line-entry .item{grid-column:auto;min-width:0}.order-workspace .line-entry label{display:none}.order-workspace .item-picker{border:0;background:transparent;padding:0;min-height:24px;border-radius:3px;font-size:14px;font-weight:700;gap:6px;line-height:1.4;white-space:normal}.order-workspace .item-picker span{display:none}.order-workspace .item-picker:after{content:'⌄';font-size:12px;color:var(--muted);margin-left:3px}.order-workspace .line-entry .item>small{display:block;font-size:12px;line-height:1.4;margin-top:3px}.order-workspace .line-entry input{padding:8px;font-size:14px;height:40px;background:var(--bg)}.order-workspace .line-total{font-size:14px;font-weight:700;text-align:right;white-space:nowrap;grid-column:auto}.order-workspace .line-entry .remove{padding:0;width:24px;min-height:36px;background:transparent;border:0;font-size:21px;line-height:1}.order-workspace .add-order-line{min-height:42px;font-size:13px;padding:9px 14px;margin-top:16px}.order-summary-panel{padding:20px;position:sticky;top:18px}.order-summary-panel h2{font-size:20px;margin:0 0 12px;letter-spacing:-.5px}.order-recipient-name{display:block;font-size:14px}.order-summary-panel>small{display:block;font-size:12px;margin-top:2px}.order-subtotal{display:flex;justify-content:space-between;gap:8px;font-size:13px;border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.order-subtotal strong{font-weight:500}.order-summary-panel .profit-control{margin:14px 0;padding:0;border:0;border-radius:0}.order-summary-panel .profit-control>label{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:10px;font-size:13px;font-weight:500;margin:0;min-height:36px}.order-summary-panel #profit-enabled{appearance:none;-webkit-appearance:none;width:38px;height:22px;min-width:38px;padding:2px;border:0;border-radius:20px;background:#c7d0cc;position:relative;cursor:pointer;margin:0}.order-summary-panel #profit-enabled:after{content:'';display:block;width:18px;height:18px;border-radius:50%;background:white;transition:transform .15s}.order-summary-panel #profit-enabled:checked{background:var(--accent)}.order-summary-panel #profit-enabled:checked:after{transform:translateX(16px)}.order-summary-panel #profit-options{margin-top:10px}.order-summary-panel #profit-breakdown{font-size:12px;margin:4px 0}.order-summary-panel #profit-breakdown:empty{display:none}.order-summary-panel .optional-details{padding:12px 0 0;margin:12px 0 14px;border:0}.order-summary-panel .optional-details summary{font-size:13px;color:var(--ink)}.order-summary-panel .total-box{display:flex;align-items:center;justify-content:space-between;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;margin:12px 0 18px;padding:16px 0 0;gap:8px}.order-summary-panel .total-box span{font-size:16px;font-weight:700}.order-summary-panel .total-box strong{font-size:24px;font-weight:750;letter-spacing:-.5px}.order-summary-panel .review-order-button{width:100%;min-height:46px;font-size:14px}.order-save-help{text-align:center;font-size:12px;color:var(--muted);line-height:1.5;margin:10px 0 0}.order-summary-panel .error{font-size:13px;line-height:1.4}
}
@media screen and (max-width:1199px){.order-columns{grid-template-columns:minmax(0,1fr)}.order-summary-panel{position:static}.order-items-panel{padding:16px}.order-summary-panel h2,.order-summary-panel>.order-recipient-name,.order-summary-panel>small{display:none}.order-summary-panel .order-subtotal{margin-top:0;border:0;padding-top:0}.order-summary-panel .total-box strong{font-size:24px}}
@media screen and (max-width:900px){.simple-shell .sidebar{padding:0}.simple-shell .content{padding:22px 20px calc(110px + env(safe-area-inset-bottom,0px))}.simple-shell .topbar{min-height:74px;padding:12px 20px}.simple-shell .location-control select{font-size:17px}.location-address{font-size:12px}.simple-shell h1{font-size:28px}.stock-workspace .simple-summary>div{padding:15px 16px}.stock-workspace .simple-summary strong{font-size:24px}.stock-workspace .daily-actions{gap:10px;flex-wrap:wrap;margin-bottom:20px}.stock-workspace .daily-actions>button:not(.subtle-action){flex:1;justify-content:center;font-size:14px;padding:10px 12px;min-height:46px}.stock-workspace .daily-actions>.subtle-action{min-height:32px;padding:4px 0;margin-top:-2px;flex:0 0 100%;justify-content:end}.stock-workspace .stock-filters{grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr);gap:8px;margin:12px 0}.stock-level-switch{grid-column:1/-1}.stock-level-switch button{min-height:36px;padding:6px 14px}.stock-workspace .stock-filters input,.stock-workspace .stock-filters select{font-size:16px}.order-workspace .use-steps{margin-bottom:16px}.order-workspace .use-steps span{font-size:12px;padding:6px 10px}.order-workspace>h1{margin-bottom:12px}.order-route{padding:0;border:0;background:transparent;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;border-radius:0}.order-source{grid-column:1/-1;gap:10px}.order-target{border:0;padding:0}.order-stock-note{font-size:12px;margin:9px 0 16px}.order-items-panel{padding:0;border:0;background:transparent;border-radius:0}.order-columns{gap:16px}.order-workspace .line-entry{background:var(--surface);border:0;border-bottom:1px solid var(--line);border-radius:0;padding:13px 4px;grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(66px,.7fr) 20px;gap:8px}.order-workspace .line-entry .item{grid-column:1/4}.order-workspace .line-entry label{display:block;font-size:12px;margin:0 0 4px}.order-workspace .line-entry .item>label{display:none}.order-workspace .line-entry .item-picker{font-size:14px}.order-workspace .line-entry .item>small{font-size:12px;margin-top:1px}.order-workspace .line-entry>div:nth-child(2){grid-column:1;grid-row:2}.order-workspace .line-entry>div:nth-child(3){grid-column:2;grid-row:2}.order-workspace .line-entry .line-total{grid-column:3/5;grid-row:2;align-self:end;line-height:40px;font-size:15px}.order-workspace .line-entry .remove{grid-column:4;grid-row:1;align-self:start;width:20px;min-height:24px}.order-workspace .line-entry input{font-size:16px;height:40px;padding:7px}.order-column-head{display:none}.order-search{margin-bottom:10px}.order-search input{font-size:16px;height:44px}.order-workspace .add-order-line{margin-top:12px;min-height:42px}.order-summary-panel{border:0;border-radius:0;background:transparent;padding:0}.order-summary-panel .order-subtotal{display:none}.order-summary-panel .profit-control{margin:0;padding:0}.order-summary-panel .optional-details{margin:4px 0 10px;padding:6px 0}.order-summary-panel .total-box{padding-top:12px;margin:8px 0 14px}.order-save-help{font-size:12px}.order-workspace>.back-to-stock{margin-bottom:7px}
}
@media screen and (max-width:700px){.simple-shell .content{padding:20px 16px calc(105px + env(safe-area-inset-bottom,0px))}.simple-shell .topbar{padding:11px 16px;min-height:72px}.simple-shell .heading{margin-bottom:18px}.stock-workspace .simple-summary{margin-bottom:16px}.stock-workspace .simple-summary>div{padding:14px 16px}.stock-workspace .simple-summary strong{font-size:24px}.stock-workspace .simple-summary small{font-size:12px}.stock-workspace .section-title h2{font-size:21px}.stock-workspace .inventory-wrap{border:1px solid var(--line);border-radius:10px;background:var(--surface)}.stock-workspace .inventory-table tbody{gap:0}.stock-workspace .inventory-table tr{display:grid;grid-template-columns:minmax(0,1fr) 72px 42px;grid-template-rows:auto auto;gap:5px 8px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);padding:14px 12px;align-items:center}.stock-workspace .inventory-table tr:last-child{border:0}.stock-workspace .inventory-table td{padding:0!important;font-size:13px;min-width:0}.stock-workspace .inventory-table td[data-label=Item]{grid-row:1/3;grid-column:1;padding-right:0!important}.stock-workspace .inventory-table .product-name-cell{gap:7px}.stock-workspace .inventory-table .product-name-cell strong{font-size:13px;line-height:1.35}.stock-workspace .inventory-table .product-name-cell .desktop-item-detail{display:none!important}.stock-workspace .inventory-table .product-name-cell .mobile-item-detail{display:block!important;font-size:12px;line-height:1.4;margin-top:4px;overflow-wrap:anywhere}.stock-workspace .inventory-table td[data-label=Available]{grid-column:2;grid-row:1;justify-self:end;align-self:end;white-space:nowrap;font-size:13px}.stock-workspace .inventory-table td[data-label=Status]{grid-column:2;grid-row:2;justify-self:end;align-self:start}.stock-workspace .inventory-table td[data-label=Status] .badge{font-size:9px;white-space:nowrap;padding:3px 5px}.stock-workspace .inventory-table td[data-label="Unit cost"],.stock-workspace .inventory-table td[data-label="Stock value"]{display:none}.stock-workspace .inventory-table td[data-label=Edit]{position:static;grid-column:3;grid-row:1/3;align-self:center;justify-self:end}.stock-workspace .inventory-table td[data-label=Edit] button{font-size:12px;min-height:36px;padding:6px}.stock-workspace .inventory-table .product-thumb{width:30px;height:30px}.stock-workspace .recent-details{margin-top:18px}.stock-workspace .daily-actions>.subtle-action{display:none}.stock-workspace .daily-actions{margin-bottom:20px}
}
@media screen and (max-width:360px){.stock-workspace .stock-filters{grid-template-columns:minmax(0,1fr)}.stock-workspace .stock-level-switch{grid-column:1}.stock-workspace .inventory-table tr{grid-template-columns:minmax(0,1fr) 65px 34px;gap:4px}.stock-workspace .simple-summary>div{padding:12px}.stock-workspace .simple-summary strong{font-size:21px}.order-route{gap:6px}.order-workspace .use-steps span{padding:6px 7px}.order-workspace .line-entry{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) 60px 18px;gap:6px}}
@media (prefers-reduced-motion:reduce){.simple-shell button,.order-summary-panel #profit-enabled:after{transition:none!important}}
.history-amount-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex-shrink:0}.history-amount-actions .edit-order-button{font-size:12px;min-height:34px;padding:6px 10px;color:var(--accent)}.order-edit-reference{font-size:13px;color:var(--muted);margin:-8px 0 14px}
.receipt-logo-wrap{text-align:center;margin:0 0 2px}.receipt-brand-logo{display:block;width:30mm;max-width:100%;height:auto;max-height:29mm;object-fit:contain;margin:0 auto}.receipt-brand-logo[hidden],.receipt-logo-fallback[hidden]{display:none!important}
@media print{#receipt .receipt-logo-wrap{margin:0 0 1mm!important}#receipt .receipt-brand-logo{display:block;width:30mm!important;max-width:100%!important;height:auto!important;max-height:29mm!important;object-fit:contain;margin:0 auto!important}#receipt .receipt-brand-logo[hidden],#receipt .receipt-logo-fallback[hidden]{display:none!important}}
/* Keep the logo size and safe side margins; start thermal content nearer the top. */
@media print{
 @page{margin:1mm 3mm 3mm}
 #receipt>.receipt-paper,#receipt .thermal-receipt-head{padding-top:0!important;margin-top:0!important}
 #receipt .receipt-logo-wrap{padding-top:0!important;margin-top:0!important}
}
/* Receipt number and status wrap as separate blocks when their combined text is too wide. */
.receipt-head-row.receipt-reference-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1px 8px;line-height:1.55}
.receipt-reference-row>span{flex:0 1 auto;min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal!important}
.receipt-reference-row>span:last-child{margin-left:auto;text-align:right}
@media print{#receipt .receipt-reference-row{line-height:1.55!important}}

.stock-item-number{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.9em}.item-warning-settings{border-top:1px solid var(--line);padding-top:16px;margin-top:10px}.item-warning-settings small{display:block;line-height:1.5;margin-bottom:14px}#stock-item-count{display:block;font-size:12px;margin-top:3px}

.location-identity{display:flex;align-items:center;gap:10px}.location-text{min-width:0;flex:1}.location-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:10px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden}.location-avatar img{width:100%;height:100%;object-fit:contain;padding:2px}.location-initials{color:#fff;font-weight:750;font-size:16px;border:0}.location-logo-field{margin:12px 0 20px}.location-logo-field .location-avatar{margin:8px 0}.location-logo-field small{display:block;margin:8px 0;line-height:1.5}.location-logo-field input[type=file]{max-width:100%;font-size:13px}@media(max-width:700px){.location-avatar{width:38px;height:38px;flex-basis:38px}.location-identity{gap:8px}.location-text .location-address{font-size:12px}}

.product-name-cell>.stock-item-number{flex:0 0 auto;min-width:2ch;text-align:right;align-self:center;font-size:12px;line-height:1.4}

/* Item editor: remove doubled field gaps, preserve comfortable touch targets. */
#dialog-form[data-type=item] h2{margin-bottom:12px}
#dialog-form[data-type=item] .formgrid{gap:14px 16px}
#dialog-form[data-type=item] .field{margin-bottom:0;min-width:0}
#dialog-form[data-type=item] label{margin-bottom:5px;font-size:13px}
#dialog-form[data-type=item] input:not([type=checkbox]),#dialog-form[data-type=item] select{min-height:44px;padding:10px 12px}
#dialog-form[data-type=item] .edit-item-photo{margin:0 0 16px}
#dialog-form[data-type=item] .product-photo-field{margin:0}
#dialog-form[data-type=item] .product-photo-editor{padding:10px;gap:12px}
#dialog-form[data-type=item] .product-photo-preview,#dialog-form[data-type=item] .photo-placeholder{width:64px;height:64px;object-fit:contain}
#dialog-form[data-type=item] .product-photo-editor small{font-size:12px;line-height:1.4}
#dialog-form[data-type=item] .product-photo-editor button{min-height:44px;padding:8px 12px}
#dialog-form[data-type=item] .item-warning-settings{padding-top:14px;margin-top:16px}
#dialog-form[data-type=item] .item-warning-settings h3,#dialog-form[data-type=item] .stock-correction h3{font-size:15px;margin-bottom:8px}
#dialog-form[data-type=item] .item-warning-settings small{font-size:12px;margin:7px 0 0;line-height:1.45}
#dialog-form[data-type=item] .optional-details{padding:12px 0;margin:12px 0}
#dialog-form[data-type=item] .optional-details[open] summary{margin-bottom:12px}
#dialog-form[data-type=item] .stock-correction p{font-size:12px;line-height:1.5;margin:8px 0 14px}
#dialog-form[data-type=item]>.actions{margin-top:14px}
@media(max-width:700px){#dialog-form[data-type=item] input:not([type=checkbox]),#dialog-form[data-type=item] select{font-size:16px}#dialog-form[data-type=item] .product-photo-preview,#dialog-form[data-type=item] .photo-placeholder{width:60px;height:60px}}

.delivery-replacement-row{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.delivery-replacement-row .field{margin-bottom:12px}.delivery-replacement-row p{font-size:13px;margin:6px 0 12px}.delivery-replacement-row small{display:block;line-height:1.5}
/* Workflow upgrades: larger mobile controls, visible save/review and concise history. */
.stock-extra-tools,.history-quick-filters,.history-pagination,.bot-task-shortcuts{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.stock-extra-tools label{display:flex;align-items:center;gap:8px;margin:0}.stock-extra-tools select{width:auto;max-width:210px}
.history-pagination{justify-content:space-between}.history-pagination span{font-size:12px}.history-date-heading{grid-column:1/-1;font-size:16px;margin:8px 0 0}
.archive-row,.payment-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.archive-row small,.payment-row small{display:block;font-size:12px}
.payment-totals,.statement-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.statement-summary{margin:18px 0}.statement-summary>div{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px}.statement-summary strong{display:block;font-size:23px;overflow-wrap:anywhere}.payment-totals span{font-size:13px}.payment-totals strong{display:block}
.history-payment-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:12px}.history-payment-summary small{font-size:12px}.history-payment-summary button{font-size:12px;min-height:40px}
.unit-relabel-note{padding:12px;background:var(--soft);border-radius:8px;margin:12px 0}.unit-relabel-note[hidden],.pack-contents[hidden]{display:none}.unit-relabel-note small{display:block;margin-top:8px}
#dialog-form[data-type=item]>.actions{position:sticky;bottom:-20px;z-index:4;background:var(--surface);padding:12px 0;border-top:1px solid var(--line)}
dialog:has(#receipt-preview-paper)>.actions{position:sticky;bottom:-20px;z-index:4;background:var(--surface);padding:12px 0;border-top:1px solid var(--line)}
.receipt-review-total{display:flex;justify-content:space-between;font-size:16px;margin:12px 0}.printer-help{margin:8px 0;padding:8px 0}
@media screen and (max-width:700px){.stock-workspace .inventory-table td[data-label=Edit] button{min-width:44px;min-height:44px;font-size:12px}.stock-workspace .inventory-table tr{grid-template-columns:minmax(0,1fr) 76px 44px;gap:5px 6px}.stock-workspace .inventory-table td[data-label=Status] .badge{font-size:12px}.order-review-bar{position:fixed;bottom:calc(76px + env(safe-area-inset-bottom,0px));left:12px;right:12px;padding:10px 14px;background:var(--surface);border:1px solid var(--line);border-radius:12px;z-index:25;box-shadow:0 -3px 15px #0001}.order-review-bar .total-box{margin:0 0 8px;padding:0;background:transparent}.order-review-bar button{width:100%;min-height:44px}.order-review-bar .error:empty{display:none}.order-workspace{padding-bottom:130px}.statement-summary{grid-template-columns:1fr}.statement-summary strong{font-size:22px}.payment-totals{grid-template-columns:1fr}.bot-task-shortcuts button{flex:1;min-height:44px;font-size:12px}html{scroll-padding-bottom:210px}}
@media screen and (min-width:701px){.order-summary-panel{position:sticky;top:16px;align-self:start}}
@media print{.order-review-bar{display:none!important}}
@media screen and (max-width:700px){.statement-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.statement-summary>div:last-child{grid-column:1/-1}.statement-summary>div{padding:14px}.statements-table{border:0;background:transparent}.statements-table table,.statements-table tbody{display:block}.statements-table thead{display:none}.statements-table tbody{display:grid;gap:12px}.statements-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:10px;padding:14px;gap:12px 8px;background:var(--surface)}.statements-table td{padding:0;border:0;white-space:normal;font-size:13px;min-width:0}.statements-table td[data-label=Invoice],.statements-table td[data-label=Restaurant]{grid-column:1/-1}.statements-table td.num{text-align:left}.statements-table td.num:before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.history-date-heading{display:block!important}.bot-task-shortcuts{margin-bottom:16px}}
.statement-entry{border-top:1px dashed #000;padding:5px 0;break-inside:avoid}.statement-entry>p{font-size:12px;line-height:1.4}.statement-money-grid{display:flex;flex-wrap:wrap;gap:6px 10px}.statement-money-grid>span{flex:1 0 auto;white-space:nowrap;font-size:12px}.statement-money-grid strong{display:block;white-space:nowrap;font-size:12px;font-weight:600}

/* Location and order clarity: preserve the familiar inventory workspace. */
@media screen {
.location-kind{display:block;font-size:12px;font-weight:650;color:var(--accent);line-height:1.3;margin-bottom:2px}
.simple-shell .location-control{max-width:530px}.simple-shell .location-control select{min-height:32px;font-size:17px;text-overflow:ellipsis;padding-right:24px}
.location-identity .location-avatar{width:46px;height:46px;flex-basis:46px}.location-address{display:block;line-height:1.4}
.simple-shell .location-control select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.stock-workspace .inventory-table .product-name-cell{align-items:center;gap:10px}.stock-item-number{color:var(--muted);font-variant-numeric:tabular-nums;width:3ch}
.stock-workspace .inventory-table .product-name-cell strong{word-break:normal;overflow-wrap:break-word;line-height:1.5}
.inventory-table td[data-label=Available],.history-card-total,.payment-readout strong{font-variant-numeric:tabular-nums}
.order-source{display:flex;align-items:center;gap:10px}.order-source>div{display:grid;gap:3px;min-width:0}.order-source strong{overflow-wrap:anywhere}.order-target label{font-weight:650;color:var(--ink)}
.order-route{border-left:3px solid var(--accent);padding:14px 16px;background:var(--surface)}
.order-target select{font-weight:650;min-height:46px}.order-search{position:relative}.order-search input{min-height:46px}
#order-search-results{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:300px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 20px #0001}
#order-search-results[hidden]{display:none}#order-search-results button{min-height:52px;width:100%;text-align:left;display:flex;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px}
#order-search-results small{white-space:normal;text-align:right}#order-search-results strong{overflow-wrap:anywhere}
.history-badges{align-items:center;gap:7px;flex-wrap:wrap}.status-caption{font-size:12px;color:var(--muted)}
.payment-readout{display:flex;gap:24px;flex:1}.payment-readout>span{font-size:12px;color:var(--muted);display:grid;gap:3px}.payment-readout strong{font-size:15px;color:var(--ink);overflow-wrap:anywhere}.payment-readout>span:last-child strong{color:var(--accent)}
.history-payment-summary{padding:12px 0 0;border-top:1px solid var(--line)}
.report-definition{font-size:13px;color:var(--muted);line-height:1.6;max-width:70ch;margin:16px 0}
.editing-product-name{margin:8px 0 0;font-size:15px;font-weight:700;overflow-wrap:anywhere}.editing-product-name small{display:block;font-size:12px;font-weight:400;margin-top:3px;color:var(--muted)}
#dialog-form[data-type=item] .stock-correction{padding:14px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:8px;margin:16px 0}
@media(max-width:700px){
.simple-shell .topbar{gap:12px}.simple-shell .location-control select{font-size:15px}.location-kind{font-size:12px}.location-identity .location-avatar{width:42px;height:42px;flex-basis:42px}.location-address{font-size:12px}
.stock-workspace .inventory-table tr{padding:14px 10px;grid-template-columns:minmax(0,1fr) 76px 44px;gap:6px}.stock-workspace .inventory-table .product-name-cell{gap:6px}.stock-workspace .inventory-table .product-name-cell strong{font-size:14px}.stock-workspace .inventory-table .product-thumb{flex:0 0 32px;width:32px;height:36px}.product-name-cell>.stock-item-number{font-size:12px;min-width:2ch;width:auto}
.order-route{padding:12px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:8px}.order-target{min-width:0}.order-target label{font-size:12px}.order-route>button{min-height:44px}.order-workspace .line-entry{padding:14px 0}.order-workspace .line-entry .remove{width:36px;min-height:36px;justify-self:end}.order-workspace .line-entry{grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(66px,.7fr) 36px}
.payment-readout{gap:18px}.history-payment-summary button{min-height:44px}.status-caption{font-size:12px}
}
}

@media screen{.order-source .location-initials{color:#fff}}
/* Receipt sharing never changes thermal print sizing. */
@media screen{
.history-date-search{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.history-date-search label{font-size:12px}.history-date-search input{width:100%;min-width:0;min-height:44px}.history-date-help{font-size:12px;margin:8px 0}.history-date-search>div{min-width:0}
#receipt-share-tools{margin:16px 0;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}#receipt-share-tools[hidden]{display:none}#receipt-share-tools h3{font-size:15px;margin:0 0 10px}.receipt-share-buttons{display:flex;flex-wrap:wrap;gap:8px}.receipt-share-buttons button{min-height:44px;font-size:13px}.share-help,#receipt-share-status,#receipt-share-tools details{font-size:12px;line-height:1.6}#receipt-share-tools details{margin-top:12px}#receipt-share-link-box input{width:100%;font-size:12px;margin:8px 0}#receipt-share-tools label{font-size:12px}
.receipt-export.receipt-preview{position:absolute;top:0;left:-10000px;width:640px;max-width:none;height:auto;max-height:none;overflow:visible;padding:28px;margin:0;box-shadow:none;background:#fff;color:#111}.receipt-export.receipt-preview .receipt-paper{font-size:22px!important;line-height:1.55}.receipt-export.receipt-preview table{font-size:inherit!important}.receipt-export.receipt-preview h1{font-size:30px!important}.receipt-export.receipt-preview .grand{font-size:26px!important}.receipt-export .receipt-watermark{display:none}
.shared-receipt-page{margin:0;background:#edf2ef;color:#111;min-height:100vh}.shared-receipt-page main{padding:20px 12px}.shared-receipt.receipt-preview{width:100%;max-width:640px;padding:24px;margin:0 auto;box-shadow:none}.shared-receipt.receipt-preview .receipt-paper{font-size:17px;line-height:1.6}.shared-receipt-note{max-width:640px;margin:16px auto;font-size:12px;color:#56635c;line-height:1.6}.shared-receipt .receipt-watermark{display:none}
@media(max-width:500px){.shared-receipt-page main{padding:12px 8px}.shared-receipt.receipt-preview{padding:16px 10px}.shared-receipt.receipt-preview .receipt-paper{font-size:14px}.receipt-share-buttons button{flex:1;min-width:90px;padding:10px 8px}}
}
@media screen{.shared-receipt.receipt-preview table{font-size:inherit!important}}

.stock-short-number{white-space:nowrap;font-weight:700}.short-mark-name{display:none;font-weight:700;margin-left:.15em}.stock-short-note{margin:2px 0 6px!important;font-size:.85em}
@media screen{.receipt-stock-warning{padding:12px 14px;background:#fff5df;border:1px solid #ddba6a;border-radius:8px;color:#543d10;margin:14px 0;font-size:13px;line-height:1.6}.receipt-stock-warning[hidden]{display:none}.receipt-stock-warning ul{margin:8px 0;padding-left:20px}.receipt-stock-warning small{display:block;font-size:12px}}
.receipt-preview .thermal-column-grid td.qty,#receipt .thermal-column-grid td.qty{white-space:nowrap!important}.thermal-column-grid .thermal-unit{display:inline;white-space:nowrap;font-size:.8em}.receipt-void-title{text-align:center;font-weight:800;font-size:13px;letter-spacing:.5px;border:2px solid #000;color:#000;margin:4px 0!important;padding:2px 4px!important;line-height:1.3}
.compact-history-card .history-next{width:100%;min-height:48px;margin:0 0 8px;font-size:15px}.payment-readout>span:last-child strong.due{color:#9a4f00}body.dark .payment-readout>span:last-child strong.due{color:#ffc46b}.payment-readout>span:last-child strong:not(.due){color:var(--ink)}.history-correction{display:flex;justify-content:space-between;gap:10px;margin:0 0 10px;font-size:14px}.history-correction strong{white-space:nowrap;font-variant-numeric:tabular-nums}.history-adjustment{padding:12px 16px!important}.history-adjustment h2{font-size:16px!important}.history-adjustment .history-card-reference{margin:3px 0 6px!important}.history-adjustment .history-primary-actions button{min-height:44px;font-size:12px}
.history-adjustment .history-badges{display:none}
.order-workspace:has(#order-item-search:focus) .order-review-bar,.order-workspace:has(#order-search-results:not([hidden])) .order-review-bar{display:none!important}.order-workspace .line-entry input:not([readonly]):not(:disabled){background:var(--surface)}
#order-item-search{scroll-margin-top:104px}@media(max-width:700px){.order-search #order-search-results{max-height:min(320px,calc(100dvh - 250px))}}
.simple-summary strong,.stock-workspace .simple-summary strong{white-space:nowrap;overflow-wrap:normal;font-size:clamp(17px,5.2vw,28px)}
.balance-due{color:#9a4f00!important;font-weight:700}body.dark .balance-due{color:#ffc46b!important}
@media (pointer:coarse),(max-width:700px){#app summary,#modal summary{min-height:44px;padding-top:11px;padding-bottom:11px;box-sizing:border-box}.simple-shell .location-control select{min-height:44px}#app button:not(.toggle),#modal button:not(.toggle){min-height:44px}#app button.mini,#modal button.mini{font-size:13px;padding:8px 12px}.simple-shell .nav{font-size:12px}.badge,.inventory-table .badge,.stock-workspace .inventory-table td[data-label=Status] .badge{font-size:12px!important}}
@media (pointer:coarse),(max-width:700px){#app select,#modal select{min-height:44px}}
@media(max-width:700px){.stock-workspace .stock-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#toast{max-width:calc(100vw - 32px);width:max-content}body:has(.order-workspace .order-review-bar) #toast{bottom:calc(206px + env(safe-area-inset-bottom,0px))}}
@media(max-width:700px){.stock-workspace .heading p.muted{display:none}.stock-workspace .heading h1{margin:0 0 6px}.stock-workspace .simple-summary{margin-bottom:10px}.stock-workspace .simple-summary>div{padding:8px 12px;gap:2px}.stock-workspace .daily-actions{margin-bottom:14px}.stock-workspace .stock-filters{margin:8px 0}.stock-workspace #stock-tools{margin-top:6px;margin-bottom:6px}}
@media(max-width:700px){.stock-workspace .heading{margin:-4px 0 8px!important;padding:0}.stock-workspace .heading h1{margin:0}.stock-workspace .section-title{margin-top:0}}
@media(max-width:700px){.stock-workspace .inventory-table tr{grid-template-columns:minmax(0,1fr) auto auto}}
.receipt-preview[data-paper="58"] .receipt-void-title,#receipt[data-paper="58"] .receipt-void-title{letter-spacing:0;font-size:12px}
#receipt[data-paper="58"] .thermal-column-grid .thermal-name,.receipt-preview[data-paper="58"] .thermal-column-grid .thermal-name{overflow-wrap:anywhere!important;hyphens:auto}

/* Headings focused by script after a dialog closes: no ring (keyboard focus rings are unchanged). */
[tabindex="-1"]:focus{outline:none}

/* 58mm paper is too narrow for "24 kg" beside the item name: put the unit under the quantity there. */
#receipt[data-paper="58"] .thermal-column-grid .thermal-unit,.receipt-preview[data-paper="58"] .thermal-column-grid .thermal-unit{font-size:.75em}

/* 58mm: smaller table text and tighter cells so most item names fit on one line. */
#receipt[data-paper="58"] .thermal-column-grid th,#receipt[data-paper="58"] .thermal-column-grid td,.receipt-preview[data-paper="58"] .thermal-column-grid th,.receipt-preview[data-paper="58"] .thermal-column-grid td{font-size:11px!important;padding:3px 1px!important;line-height:1.3!important}
#receipt[data-paper="58"] .receipt-paper[lang=bn] .thermal-column-grid th,#receipt[data-paper="58"] .receipt-paper[lang=bn] .thermal-column-grid td,.receipt-preview[data-paper="58"] .receipt-paper[lang=bn] .thermal-column-grid th,.receipt-preview[data-paper="58"] .receipt-paper[lang=bn] .thermal-column-grid td{font-size:12px!important;line-height:1.35!important}
/* 58mm: no serial-number column, so names get the room; the stock mark moves next to the name. */
#receipt[data-paper="58"] .thermal-column-grid .thermal-no,#receipt[data-paper="58"] .thermal-column-grid .thermal-col-no,.receipt-preview[data-paper="58"] .thermal-column-grid .thermal-no,.receipt-preview[data-paper="58"] .thermal-column-grid .thermal-col-no{display:none!important}
#receipt[data-paper="58"] .short-mark-name,.receipt-preview[data-paper="58"] .short-mark-name{display:inline}

/* Operational polish: readable compact layouts and explicit interaction states. */
.stock-filter-details{margin:10px 0 14px;border:1px solid var(--border,#d8e2de);border-radius:10px;background:var(--card,#fff);padding:10px 14px}.stock-filter-details summary{cursor:pointer;font-weight:600;min-height:24px}.stock-filter-panel{display:flex;gap:12px;flex-wrap:wrap;padding-top:12px;align-items:center}.stock-filter-panel select{width:auto;min-width:160px}.stock-filter-panel #stock-tools{margin:0}.stock-filters:has(+.stock-filter-details){display:block}.stock-filters:has(+.stock-filter-details)>input{width:100%}.stock-summary-links,.history-date-shortcuts,.report-category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.stock-summary-links button,.history-date-shortcuts button{min-height:40px;padding:8px 12px;font-size:13px}.report-category-tabs button[aria-pressed=true]{background:#e5f3ee;color:#146f60;border-color:#146f60}.draft-recovery{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px;border:1px solid #d4b66e;background:#fff8e6;color:#423515;border-radius:12px;margin-bottom:18px}.draft-recovery div{flex:1;min-width:180px}.draft-recovery small{display:block;margin-top:4px}.draft-recovery button{min-height:44px}.correction-impact{padding:10px 12px;background:#e9f4ef;color:#174c40;border-radius:8px;font-size:13px;line-height:1.6}.stock-correction{margin-top:14px}.receipt-first{margin-top:10px}.receipt-settings,.receipt-send-options{margin:14px 0;padding:12px 0}.receipt-settings summary,.receipt-send-options>summary{min-height:32px;cursor:pointer;font-weight:600}.receipt-send-options #receipt-share-tools{border:0}.receipt-send-options #receipt-share-tools[hidden]{display:none}.compact-history-card{padding:16px!important}.compact-history-card .history-card-reference{margin:6px 0 10px}.compact-history-card .history-manage .edit-order-button{margin-top:10px}.bot-inline-examples{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.bot-inline-examples span{flex-basis:100%;font-size:13px}.bot-inline-examples button{padding:8px 12px;min-height:40px;font-size:13px}.dark .draft-recovery{background:#3b321f;color:#fff1cf}.dark .correction-impact{background:#203e33;color:#ddf3e8}.dark .stock-filter-details{background:#1b302b}.dark .report-category-tabs button[aria-pressed=true]{background:#244b3f;color:#d1f4e8}
@media(max-width:700px){.order-workspace .line-entry .item-picker,.simple-movement .item-picker{min-height:44px!important}.order-workspace .line-entry .remove,.simple-movement .remove{width:44px!important;height:44px!important}.back-to-stock{min-height:44px!important}.stock-filter-panel{display:grid;grid-template-columns:1fr}.stock-filter-panel select{width:100%;min-width:0}.stock-filter-panel #stock-tools{flex-wrap:wrap}.report-category-tabs button{flex:1;font-size:13px;min-height:44px}.simple-shell .sidebar .nav span{font-size:12px}.receipt-first.receipt-preview{padding:12px 10px!important}.receipt-review-total{margin:10px 0!important}.receipt-stock-warning{padding:10px!important;font-size:12px!important}.receipt-stock-warning small{font-size:11px!important}.bot-task-shortcuts{margin-top:12px!important}.compact-history-card .history-payment-summary{gap:8px;flex-wrap:wrap}.compact-history-card .history-primary-actions button{padding:9px 10px}}

@media(max-width:700px){.report-compact .inventory-table tbody{display:grid;gap:0}.report-compact .inventory-table tr{padding:12px!important;border-radius:0!important;margin:0!important;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}.report-compact .inventory-table td:first-child{grid-column:1/-1}.report-compact .inventory-table td{padding:0!important;min-width:0!important}.report-compact .inventory-table td[data-label="Status"]{display:none}.report-compact .inventory-table td[data-label="Unit cost"]{font-size:12px}.report-compact .inventory-table td[data-label="Stock value"]{font-size:12px}.report-compact .inventory-table .product-name-cell small{display:none}}
.stock-summary-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stock-summary-links button{min-width:0;line-height:1.35;text-align:center}.receipt-send-options:has(#receipt-share-tools[hidden]){display:none}

@media(max-width:700px){.history-date-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.history-date-shortcuts button{font-size:12px;padding:8px 5px;line-height:1.3;min-width:0}.report-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.report-controls .field{min-width:0;margin:0!important}.report-controls label{font-size:12px}.report-controls input,.report-controls select{min-width:0;padding:10px;font-size:14px}.statement-summary{margin-top:14px}}
.bot-inline-examples{display:block}.bot-inline-examples>summary{min-height:36px;cursor:pointer;font-size:13px;font-weight:600}.bot-inline-examples>div{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}

/* Apple HIG pass (apple-look skill): accessibility.md 44x44 pt hit regions, typography.md 11 pt minimum
   (captions 12), "convey information with more than color alone", and readable dark placeholders. */
.stock-workspace .inventory-table td[data-label=Status] .badge{font-size:12px}
.receipt-stock-warning small{font-size:12px!important}
@media (max-width:700px),(pointer:coarse){
 #app button,#modal button,#app select,#modal select,#app summary,#modal summary,#app a.button-link,#modal a.button-link,#app a.linkbox,#modal a.linkbox{min-height:44px;min-width:44px}
 #app a.linkbox,#modal a.linkbox{display:flex;align-items:center}
 .checklist label,#modal label.checkline,#app label.checkline{min-height:44px}
}
/* Switches keep their 48x28 look but get a 44 px tall hit region. */
#app .toggle,#modal .toggle{position:relative;width:52px;height:44px!important;min-height:44px;padding:11px 5px!important;background:transparent!important}
#app .toggle::before,#modal .toggle::before{content:"";position:absolute;left:2px;right:2px;top:8px;bottom:8px;border-radius:20px;background:var(--line)}
#app .toggle.on::before,#modal .toggle.on::before{background:var(--accent)}
#app .toggle span,#modal .toggle span{position:relative}
/* Selected states use weight and a marker, not colour alone. */
.simple-shell .nav.active{font-weight:800}
@media (max-width:700px){.simple-shell .nav.active{box-shadow:inset 0 3px 0 var(--accent)!important}}
[data-stock-level][aria-pressed=true]{font-weight:800}
[data-stock-level][aria-pressed=true]::before{content:"✓ "}
/* Placeholders reach 4.5:1 in both appearances. */
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
/* The receipt preview is a picture of the paper: on screen it is shown 25% larger so its smallest text is 12 px. Printing is unchanged. */
@media screen{.receipt-preview{zoom:1.25}}
.report-category-tabs button[aria-pressed=true]{font-weight:800}.report-category-tabs button[aria-pressed=true]::before{content:"✓ "}

/* Approved conservative design polish: screen only, no receipt print changes. */
@media screen {
 :root{--polish-space-1:4px;--polish-space-2:8px;--polish-space-3:12px;--polish-space-4:16px;--polish-space-5:24px;--polish-muted:#52675e}
 body.dark{--polish-muted:#b9cbc2}
 html{scroll-padding-block:88px 104px}
 :where(button,input,select,textarea,summary){scroll-margin-block:16px 104px}
 :where(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--accent,#167565);outline-offset:3px}
 .content .muted,dialog .muted{color:var(--polish-muted)}
 .stock-filter-details>summary,.history-filter-options>summary,.history-manage>summary{min-height:44px;box-sizing:border-box;padding:10px 0;line-height:1.5}
 .stock-filter-panel{gap:var(--polish-space-3)}
 .stock-filter-panel button,.stock-filter-panel select,.history-date-shortcuts button{min-height:44px}
 .stock-summary-links button{padding:10px 12px;min-height:44px;line-height:1.45}
 .inventory-table .product-name-cell strong{line-height:1.45}
 .inventory-table .product-name-cell small{line-height:1.55;margin-top:3px}
 .inventory-table .product-thumb{object-fit:contain;border-radius:8px;flex-shrink:0}
 .inventory-table td[data-label="Available"]{font-variant-numeric:tabular-nums}
 .inventory-table .badge{font-size:12px;line-height:1.4}
 dialog{scroll-padding-block:20px 96px}
 dialog .formgrid{column-gap:var(--polish-space-4);row-gap:var(--polish-space-4)}
 dialog .field{margin-bottom:0;gap:6px}
 dialog .field>label{font-size:14px;line-height:1.45}
 dialog input:not([type=checkbox]):not([type=radio]),dialog select,dialog textarea{font-size:16px;min-height:44px;box-sizing:border-box}
 dialog .product-photo-editor{padding:10px;gap:12px;align-items:center}
 dialog #product-photo-preview,dialog .product-photo-preview,dialog .photo-placeholder{width:60px;height:60px;min-width:60px;object-fit:contain}
 dialog #product-photo-note{font-size:12px;line-height:1.5;margin-top:6px}
 dialog .editing-product-name{margin:12px 0 0;line-height:1.45}
 dialog .stock-correction{margin-top:16px;padding:14px}
 dialog .stock-correction h3{margin-top:0;margin-bottom:12px}
 dialog .stock-correction .muted{font-size:13px;line-height:1.55;margin-bottom:0}
 dialog .correction-impact{font-variant-numeric:tabular-nums;line-height:1.65;padding:10px 12px}
 dialog .actions>button{min-height:44px}
 .history-card-reference{line-height:1.5;overflow-wrap:anywhere}
 .history-payment-summary .payment-readout{gap:16px;font-variant-numeric:tabular-nums}
 .history-primary-actions button,.history-payment-summary>button{min-height:44px}
 .history-date-shortcuts{gap:8px}
 .report-controls .field{gap:6px}
 .statement-summary strong,.report-summary strong{font-variant-numeric:tabular-nums;line-height:1.35}
 @media(max-width:700px){
  .simple-summary>div{padding:14px 12px;gap:8px}
  .simple-summary strong{font-size:clamp(18px,5.1vw,22px);line-height:1.3;overflow-wrap:anywhere;letter-spacing:-.35px}
  .simple-summary small{font-size:12px;line-height:1.4}
  .stock-summary-links{gap:10px;margin:12px 0 16px}
  .stock-summary-links button{font-size:12px}
  .simple-shell .sidebar .nav{min-height:58px}
  .simple-shell .sidebar .nav span{font-size:12px;line-height:1.35}
  .inventory-table td[data-label="Edit"] button{min-width:44px;min-height:44px}
  .history-date-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}
  .history-date-shortcuts button{font-size:12px;line-height:1.4;padding:9px 5px}
  dialog{padding:20px;max-width:calc(100vw - 24px)}
  dialog .product-photo-editor .actions{gap:8px}
  dialog .product-photo-editor button{padding:8px 10px;font-size:12px}
 }
 @media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  .motion :where(button,input,select,textarea,details){transition:none!important;animation:none!important}
 }
}

/* Approved Stockroom redesign, 19 November 2026. Screen-only presentation. */
@media screen{
 body:not(.dark){--bg:#f6f8f6;--surface:#fff;--ink:#18352c;--muted:#566c60;--line:#dce5df;--soft:#eef4f0;--design-forest:#154f42;--design-selected:#e4efe7;--design-on-selected:#154f42}
 body.dark{--bg:#111d18;--surface:#192a22;--ink:#e6eee8;--muted:#b7c9be;--line:#35493e;--soft:#233b2e;--design-forest:#a0d5b7;--design-selected:#2b4938;--design-on-selected:#d8f3e1;color-scheme:dark}
 .simple-shell{grid-template-columns:206px minmax(0,1fr)}
 .simple-shell .sidebar{background:var(--surface);border-right:1px solid var(--line);padding:28px 16px}
 .simple-shell .brand{font-size:23px;letter-spacing:-.7px;gap:10px;margin:0 9px 34px}
 .simple-shell .brand .mark{width:31px;height:31px;border-radius:7px;background:var(--design-forest);color:var(--surface)}
 .simple-shell .nav{min-height:48px;padding:12px 15px;border:0;border-radius:8px;font-size:14px;color:var(--muted);gap:12px;background:transparent}
 .simple-shell .nav.active{background:var(--design-selected);color:var(--design-on-selected);box-shadow:none;font-weight:750}
 .simple-shell .nav svg{width:21px;height:21px}
 .simple-shell .topbar{padding:17px 34px;min-height:88px;background:var(--surface);border-bottom:1px solid var(--line)}
 .simple-shell .location-control{max-width:460px}
 .simple-shell .location-control select{font-size:18px;font-weight:700;padding-left:0;letter-spacing:-.2px;line-height:1.35}
 .simple-shell .location-kind{font-size:11px;color:var(--muted);margin-bottom:1px}
 .simple-shell .location-identity{gap:12px}
 .simple-shell .location-identity .location-avatar{width:48px;height:48px;flex-basis:48px;border-radius:50%;background:#fff}
 .simple-shell .location-identity .location-initials{background:var(--accent)}
 .simple-shell .location-address{font-size:12px;line-height:1.45;color:var(--muted)}
 .simple-shell .more-button{min-height:44px;border-radius:8px;background:transparent;padding:9px 13px;font-size:13px}
 .simple-shell .content{max-width:1400px;padding:28px 34px 40px}
 .simple-shell h1{font-size:28px;line-height:1.25;letter-spacing:-.7px}
 .simple-shell .heading{gap:16px;margin-bottom:22px}
 .simple-shell .heading p{font-size:14px;line-height:1.5;color:var(--muted);margin-top:6px}
 .simple-shell :is(button,input,select,textarea){border-radius:8px}
 .simple-shell :is(button,input,select){min-height:44px}
 .simple-shell button.primary{background:var(--design-forest);border-color:var(--design-forest);color:var(--surface)}
 .simple-shell :is(button,input,select,textarea):focus-visible,#modal :is(button,input,select,textarea):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
 .stock-workspace .simple-summary{border:1px solid var(--line);border-radius:10px;background:var(--surface);margin-bottom:18px;box-shadow:none}
 .stock-workspace .simple-summary>div{padding:18px 22px;gap:8px;min-width:0}
 .stock-workspace .simple-summary small{font-size:13px;color:var(--muted)}
 .stock-workspace .simple-summary strong{font-size:25px;line-height:1.3;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 .stock-workspace .daily-actions{gap:10px;margin-bottom:23px}
 .stock-workspace .daily-actions>button:not(.subtle-action){padding:10px 18px;font-size:14px}
 .stock-workspace .section-title{margin:0 0 14px}
 .stock-workspace .section-title h2{font-size:19px;line-height:1.35}
 .stock-workspace #stock-item-count{font-size:12px;line-height:1.5;color:var(--muted)}
 .stock-workspace .section-title>button{border-color:transparent;background:transparent;font-size:13px}
 .stock-workspace .stock-filters{gap:12px;margin:0 0 16px}
 .stock-workspace .stock-filters input{font-size:14px;padding:11px 14px;background:var(--surface)}
 .stock-workspace .stock-filter-details{margin:0 0 16px;padding:8px 13px;border-color:var(--line);background:var(--surface);border-radius:8px}
 .stock-workspace .stock-filter-details>summary{font-size:13px;color:var(--muted)}
 .stock-workspace .stock-level-switch{background:var(--soft);border-radius:8px;padding:3px;gap:3px;width:max-content}
 .stock-workspace .stock-level-switch button{background:transparent;border:0;min-height:38px;font-size:13px;padding:8px 13px}
 .stock-workspace .stock-level-switch button.selected{background:var(--surface);color:var(--ink)}
 .stock-workspace .inventory-wrap{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:auto}
 .stock-workspace .inventory-table{border-spacing:0}
 .stock-workspace .inventory-table thead th{background:var(--soft);color:var(--ink);font-size:12px;padding:12px 15px;text-transform:none;letter-spacing:0;font-weight:650;border-color:var(--line)}
 .stock-workspace .inventory-table td{padding:13px 15px;border-color:var(--line);font-size:14px}
 .stock-workspace .inventory-table .product-name-cell{gap:12px}
 .stock-workspace .inventory-table .stock-item-number{font-size:12px;font-weight:500;min-width:18px;color:var(--muted);align-self:center}
 .stock-workspace .inventory-table .product-thumb{width:38px;height:43px;border-radius:5px;object-fit:contain;background:var(--surface)}
 .stock-workspace .inventory-table .product-name-cell strong{font-size:15px;line-height:1.4;font-weight:700}
 .stock-workspace .inventory-table .product-name-cell small{font-size:12px;line-height:1.5;margin-top:3px;color:var(--muted)}
 .stock-workspace .inventory-table td[data-label=Available]{white-space:nowrap;font-variant-numeric:tabular-nums}
 .stock-workspace .inventory-table td[data-label=Available] strong{font-weight:700}
 .stock-workspace .inventory-table .badge{border-radius:5px;font-size:12px;line-height:1.45;padding:4px 7px;background:var(--soft);color:var(--ink)}
 .stock-workspace .inventory-table .badge.low{background:#fff3db;color:#7a4f13}
 .stock-workspace .inventory-table .badge.out{background:#edf0ee;color:#465c50}
 .stock-workspace .inventory-table [data-edit-item]{font-size:12px;min-height:44px;padding:8px 11px}
 .order-workspace .order-route{border-color:var(--line);background:var(--surface);border-radius:10px}
 .order-workspace .order-items-panel,.order-workspace .order-summary-panel{border-color:var(--line);background:var(--surface);border-radius:10px}
 .order-workspace .line-entry{border-color:var(--line)}
 .order-workspace .line-entry input{min-height:44px;border-color:var(--line)}
 .order-workspace .item-picker{font-size:14px;font-weight:650;line-height:1.45}
 .order-workspace .line-total{font-variant-numeric:tabular-nums}
 .order-workspace .total-box{border-color:var(--line);background:var(--soft);padding:14px;border-radius:8px;margin-top:16px}
 .order-workspace .total-box strong{font-size:25px;letter-spacing:-.5px}
 .compact-history-card{border-radius:10px!important;border-color:var(--line)}
 .compact-history-card h2{font-size:18px}
 .history-filter-panel{border-radius:10px;border-color:var(--line)}
 .history-filter-panel input,.history-filter-panel select,.report-controls input,.report-controls select{background:var(--surface);border-color:var(--line)}
 body.dark .inventory-table .badge.low{background:#493818;color:#ffda90}
 body.dark .inventory-table .badge.out{background:#304039;color:#d0ded5}
 body.dark :is(.draft-recovery,.receipt-stock-warning){background:#44371f!important;color:#ffdf9c!important;border-color:#816a3d!important}
 body.dark .correction-impact{background:var(--soft);color:var(--ink)}
 #modal .theme-choices{border:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
 #modal .theme-choices .checkline{min-height:54px;margin:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);cursor:pointer;gap:9px}
 #modal .theme-choices .checkline:has(input:checked){border-color:var(--accent);background:var(--soft);font-weight:700}
 #modal .theme-choices input{accent-color:var(--accent);width:18px;min-height:18px}
 #modal:has(form[data-type=item]){border-radius:14px}
 #modal form[data-type=item] .formgrid{gap:16px}
 #modal form[data-type=item] .field>label{font-size:13px;line-height:1.5}
 #modal form[data-type=item] input,#modal form[data-type=item] select{font-size:16px;min-height:44px;border-color:var(--line)}
 #modal form[data-type=item] .edit-item-photo{background:var(--soft);padding:12px;border-radius:9px;margin-bottom:18px}
 #modal form[data-type=item] .editing-product-name{font-size:15px;line-height:1.45}
 #modal form[data-type=item] .stock-correction{border-top:1px solid var(--line);padding:16px 0 0;margin-top:19px}
 @media(max-width:1150px) and (min-width:901px){
  .simple-shell{grid-template-columns:180px minmax(0,1fr)}
  .simple-shell .sidebar{padding:26px 11px}
  .simple-shell .brand{font-size:21px}
  .simple-shell .content{padding:26px 24px}
 }
 @media(max-width:900px){
  .simple-shell{display:block}
  .simple-shell .sidebar{border-right:0;padding:0}
  .simple-shell .sidebar nav{padding:7px;gap:0;background:var(--surface)}
  .simple-shell .sidebar .nav{border-radius:8px;min-height:56px;gap:4px;padding:6px 3px}
  .simple-shell .sidebar .nav.active{box-shadow:inset 0 3px 0 var(--design-forest)!important}
  .simple-shell .sidebar .nav span{font-size:12px;line-height:1.4}
  .simple-shell .content{padding:22px 20px calc(110px + env(safe-area-inset-bottom,0px))}
 }
 @media(max-width:700px){
  .simple-shell .topbar{padding:14px 18px;min-height:84px;background:#154f42;color:#fff;border:0}
  body.dark .simple-shell .topbar{background:#133f31}
  .simple-shell .location-control select{color:#fff;font-size:16px;background:transparent;min-height:36px;padding-top:0;padding-bottom:0}
  .simple-shell .location-control select option{background:var(--surface);color:var(--ink)}
  .simple-shell .location-kind,.simple-shell .location-address{color:#d7e8de;font-size:11px}
  .simple-shell .location-kind{margin-bottom:1px;line-height:1.25}
  .simple-shell .location-identity{gap:10px}
  .simple-shell .location-identity .location-avatar{width:43px;height:43px;flex-basis:43px}
  .simple-shell .more-button{border-color:#ffffff45;color:#fff;font-size:12px;padding:8px 10px;background:transparent}
  .simple-shell .content{padding:18px 16px calc(110px + env(safe-area-inset-bottom,0px))}
  .simple-shell .content:has(>.stock-workspace){padding-top:0}
  .stock-workspace>.heading{background:#154f42;margin:0 -16px 0!important;padding:3px 19px 32px!important}
  body.dark .stock-workspace>.heading{background:#133f31}
  .stock-workspace>.heading h1{color:#fff;font-size:26px;margin:0}
  .stock-workspace .heading p.muted{display:block!important;color:#d7e8de!important;font-size:12px;line-height:1.5;margin-top:5px}
  .stock-workspace .simple-summary{position:relative;margin:-16px 0 15px;border-radius:10px}
  .stock-workspace .simple-summary>div{padding:14px 15px;gap:6px}
  .stock-workspace .simple-summary small{font-size:12px}
  .stock-workspace .simple-summary strong{font-size:clamp(18px,4.8vw,22px);line-height:1.25;letter-spacing:-.4px}
  .stock-workspace .daily-actions{gap:10px;margin-bottom:22px}
  .stock-workspace .daily-actions>button:not(.subtle-action){min-height:46px;font-size:13px;padding:10px 8px}
  .stock-workspace .section-title{margin-bottom:12px}
  .stock-workspace .section-title h2{font-size:18px}
  .stock-workspace .stock-filters{margin:0 0 13px;gap:10px}
  .stock-workspace .stock-filters input{font-size:16px;padding:11px 12px}
  .stock-workspace .inventory-wrap{border:0;border-radius:0;background:transparent;overflow:visible}
  .stock-workspace .inventory-table tbody{display:grid;gap:0}
  .stock-workspace .inventory-table tr{grid-template-columns:minmax(0,1fr) auto 44px;grid-template-rows:auto auto;gap:5px 8px;padding:14px 0!important;background:transparent;border-bottom:1px solid var(--line)!important}
  .stock-workspace .inventory-table td[data-label=Item]{grid-column:1;grid-row:1/3}
  .stock-workspace .inventory-table td[data-label=Available]{grid-column:2;grid-row:1;align-self:end;font-size:13px}
  .stock-workspace .inventory-table td[data-label=Status]{grid-column:2;grid-row:2;align-self:start}
  .stock-workspace .inventory-table td[data-label=Edit]{grid-column:3;grid-row:1/3}
  .stock-workspace .inventory-table .product-name-cell{gap:8px}
  .stock-workspace .inventory-table .stock-item-number{min-width:15px;font-size:11px;align-self:start;padding-top:5px}
  .stock-workspace .inventory-table .product-thumb{width:30px;height:42px;flex-shrink:0}
  .stock-workspace .inventory-table .product-name-cell strong{font-size:13px;line-height:1.45}
  .stock-workspace .inventory-table .product-name-cell .mobile-item-detail{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
  .stock-workspace .inventory-table td[data-label=Status] .badge{font-size:12px!important;padding:3px 5px}
  .stock-workspace .inventory-table td[data-label=Edit] button{font-size:12px;min-height:44px;min-width:44px;padding:6px}
  .order-workspace .order-route,.order-workspace .order-items-panel,.order-workspace .order-summary-panel{border-radius:9px}
  .order-workspace .order-summary-panel{padding:14px}
  .order-workspace .line-entry{padding:13px 4px;background:var(--surface);border-radius:0}
  .order-workspace .total-box{padding:13px}
  .order-workspace .total-box strong{font-size:23px}
  .order-workspace .order-summary-panel .order-save-help{font-size:12px}
  #modal .theme-choices{grid-template-columns:1fr}
 }
}

/* More menu icons: decorative, consistent, theme-aware. */
@media screen{
 #modal .more-menu button:has(.more-menu-icon){justify-content:flex-start;gap:12px}
 #modal .more-menu button .more-menu-icon{width:21px;height:21px;min-width:21px;flex:0 0 21px;color:var(--accent);pointer-events:none}
 body.dark #modal .more-menu button .more-menu-icon{color:var(--accent-dark,var(--ink))}
 #modal .more-menu button .more-menu-label{flex:1;min-width:0;font:inherit;color:inherit;line-height:1.5;overflow-wrap:anywhere}
 #modal .more-menu button>span[aria-hidden=true]{margin-left:auto;flex:0 0 auto}
}
