:root{font-family:Arial,Helvetica,sans-serif;color:#202937;background:#f5f6f8;font-size:16px;line-height:1.6}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}.shell{max-width:1320px;margin:auto;padding:0 32px 36px}header{display:flex;align-items:center;gap:14px;min-height:100px;border-bottom:1px solid #dfe3e8}header strong{font-size:22px}small{display:block;font-size:13px;color:#596675}.brand{display:grid;place-items:center;background:#087ea8;width:50px;height:50px;border-radius:15px;color:#fff;font-size:27px;font-weight:700;position:relative}.brand span{position:absolute;bottom:2px;right:6px;font-size:14px}#identity{margin-left:auto;font-size:14px;text-align:right}.login-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:90px;align-items:center;max-width:1060px;margin:65px auto}.eyebrow{color:#075b7b;font-size:14px;font-weight:700}h1{font-size:clamp(30px,4vw,48px);line-height:1.16;letter-spacing:-.04em;margin:15px 0 24px}h2{font-size:23px;line-height:1.3;margin:0 0 15px}.intro p{max-width:380px}.secondary{color:#5c6877;font-size:14px}.panel{padding:32px;background:#fff;border:1px solid #dfe3e8;border-radius:20px;box-shadow:0 12px 35px #20293708}.panel p{margin:12px 0 22px}form{display:grid;gap:19px}label{display:grid;gap:7px;font-size:14px;font-weight:600}input,select{width:100%;border:1px solid #cbd1d9;border-radius:10px;padding:12px;font:inherit;font-size:16px;min-width:0;background:#fff;color:#202937}input:focus,select:focus,button:focus-visible{outline:3px solid #229dca66;outline-offset:2px;border-color:#087ea8}button{cursor:pointer;min-height:44px;padding:11px 20px;border:1px solid #dfe3e8;background:#fff;border-radius:11px;color:#202937;font-size:15px;font-weight:600}button.primary,button.selected{background:#087ea8;color:#fff;border-color:#087ea8}button:hover{filter:brightness(.96)}button:disabled{opacity:.6;cursor:wait}.message{font-size:14px;color:#a52b23;overflow-wrap:anywhere}.heading{display:flex;justify-content:space-between;align-items:center;margin:38px 0 20px;gap:20px}.heading h1{font-size:34px;margin:8px 0}.notice{padding:16px 20px;background:#fff3d9;color:#755014;border:1px solid #ebd09b;border-radius:14px}nav{display:flex;gap:10px;flex-wrap:wrap;margin:25px 0}.empty{padding:60px 20px;text-align:center;color:#5c6877;font-size:15px}#staffForm{max-width:460px;margin-top:24px}.staff-row{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #eee;padding:12px 0;font-size:14px}footer{margin-top:28px}@media(max-width:800px){.login-grid{grid-template-columns:1fr;gap:24px;margin:30px auto;max-width:520px}.intro h1{font-size:34px}.intro h1 br{display:none}.intro h1 br:after{content:' '}.intro p{max-width:none}.shell{padding:0 18px 30px}.panel{padding:24px}.heading h1{font-size:27px}#identity{max-width:50%}}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:20px 0}.toolbar h2{margin:0}.toolbar label{min-width:240px}.order-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}.order-card{padding:24px;min-width:0}.order-card p{margin:10px 0}.card-top{display:flex;align-items:start;justify-content:space-between;gap:12px}.card-top h3{font-size:18px;line-height:1.4;margin:0 0 20px}.badge{font-size:12px;padding:5px 9px;border-radius:7px;background:#fff0db;color:#795215;line-height:1.5}.badge.paid{background:#e0f4eb;color:#1a684b}.order-amount{display:block;font-size:23px}.reference{font-size:12px;overflow-wrap:anywhere;color:#596675}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.actions button{flex:1}.notice.connected{background:#e9f6ef;border-color:#a9d4be;color:#1a684b}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;border-bottom:1px solid #e2e6eb;padding:14px 12px;white-space:nowrap}th{font-size:12px;color:#5c6877;background:#f7f8fa}#connectionForm{max-width:540px}.trace-events{padding-left:22px}.trace-events li{padding:10px 0}.trace-events+table td{white-space:normal}dialog{width:min(600px,calc(100% - 32px));max-height:90vh;overflow:auto;border:1px solid #dfe3e8;border-radius:20px;padding:30px;color:#202937}dialog::backdrop{background:#17273888}dialog p{overflow-wrap:anywhere}footer{display:flex;align-items:center;gap:20px}button:disabled{cursor:not-allowed}@media(max-width:600px){.toolbar{align-items:stretch;flex-direction:column}.order-grid{grid-template-columns:1fr}.toolbar label{min-width:0}dialog{padding:22px}.card-top{flex-wrap:wrap}}

.entry-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,1fr);gap:26px;align-items:start}.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px}.menu-card{display:flex;flex-direction:column;padding:20px;border:1px solid #dfe3e8;border-radius:14px;background:#fff;gap:10px}.menu-card h3{font-size:17px;line-height:1.4;margin:0}.menu-card button{margin-top:auto}.cart-panel{position:sticky;top:16px;padding:24px}.cart-row{border-bottom:1px solid #e2e6eb;padding:12px 0}.cart-row>strong{display:block}.cart-controls{display:flex;align-items:center;gap:8px;margin-top:8px}.cart-controls input{width:80px}.cart-controls button{padding:8px 12px}.cart-controls span{margin-left:auto;font-size:14px}.cart-total{display:flex;justify-content:space-between;gap:10px;font-size:20px}.entry-grid input,.entry-grid select{min-height:46px}#creationRecovery{margin-top:24px}.pending-row{border-top:1px solid #e2e6eb;padding:12px 0}.ticket-lines td{white-space:normal}.ticket-lines td:first-child{width:64px;font-weight:bold}.ticket-reference{font-family:monospace;font-size:13px;overflow-wrap:anywhere}#parkOrder{margin-top:16px}#newOrderMessage{min-height:22px}.menu-grid:empty{min-height:80px}@media(max-width:900px){.entry-grid{grid-template-columns:1fr}.cart-panel{position:static}.menu-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}@media print{body{background:#fff;color:#000}body>main,body>dialog{display:none!important}#printTicket{display:block!important;margin:0;padding:12mm;width:100%;font-size:14pt}#printTicket h2{font-size:20pt}#printTicket table{font-size:16pt}#printTicket td{padding:12px 6px}#printTicket .ticket-reference{font-size:10pt}}
.settings-panel{margin-top:24px}.settings-form{max-width:600px;margin-top:28px}.settings-form h3{font-size:18px;margin:12px 0 0}.staff-row{align-items:center}.staff-row>div{min-width:0}.staff-row strong,.staff-row small{overflow-wrap:anywhere}.staff-row button{flex-shrink:0}.panel .staff-detail{margin:3px 0 4px}.check-label{display:flex;align-items:flex-start;gap:12px;font-weight:400}.check-label input{width:20px;height:20px;flex:0 0 20px;margin:3px 0;accent-color:#087ea8}.company-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin:24px 0}.company-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;border:1px solid #dfe3e8;border-radius:16px;padding:24px;min-width:0}.company-card h3,.company-card p{margin:0;overflow-wrap:anywhere}.company-card label{width:100%;font-size:12px}.company-card input{font-size:12px;font-weight:400}.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #cbd1d9;border-radius:10px;text-decoration:none;color:#202937;font-size:14px;font-weight:600}.button-link:hover{background:#f5f6f8}.button-link:focus-visible{outline:3px solid #229dca66;outline-offset:2px}#createdCompany{border:1px solid #a9d4be;border-radius:14px;background:#e9f6ef;padding:20px;margin-top:24px}#backupPanel{margin-top:24px}input[readonly]{background:#f5f6f8}#companyNameForm p,#companyCreateForm p,#companyRenameForm p{margin:0}#companyLabel{overflow-wrap:anywhere}@media(max-width:600px){.staff-row{align-items:flex-start;flex-wrap:wrap}.staff-row>div{width:100%}.company-grid{grid-template-columns:1fr}.company-card{padding:20px}.company-card input{font-size:16px}.settings-form{max-width:none}}
.menu-card .stock-detail{font-size:12px;line-height:1.5;color:#596675;margin:0}.stock-available{font-size:14px;color:#1a684b}.menu-card .stock-empty,.stock-warning{color:#a52b23}.cart-row .stock-warning{font-size:13px;line-height:1.5;margin:8px 0 0}.invoice-detail{font-size:13px;overflow-wrap:anywhere;border-left:3px solid #dfe3e8;padding-left:12px;margin:12px 0}.order-card .invoice-detail p{margin:3px 0}#stockRefreshedAt{font-size:13px}#cartStockMessage:empty{display:none}

/* The restaurant workspace: clear navigation, photo menu and a persistent order. */
:root{--accent:#087ea8;--accent-dark:#075b7b;--ink:#202835;--muted:#71808e;--line:#e8eaf0;--surface:#fff;--canvas:#f7f8fa;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--canvas);line-height:1.5}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
button,input,select{font-family:inherit}button{font-size:13px;min-height:40px;border-color:var(--line);border-radius:9px;padding:9px 15px;transition:background-color .15s,color .15s,box-shadow .15s}button:hover{filter:none;background:#f8f9fb}button.primary,button.selected{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover,button.selected:hover{background:var(--accent-dark);border-color:var(--accent-dark)}input,select{font-size:14px;border-color:#dfe3eb;border-radius:8px;padding:11px 12px}input:focus,select:focus,button:focus-visible{outline-color:#229dca55;border-color:var(--accent)}button:disabled{opacity:.46}.check-label input{accent-color:var(--accent)}.panel{border-color:var(--line);border-radius:13px;box-shadow:0 4px 20px #20314703;padding:26px}h2{font-size:20px}h3{font-size:16px}.secondary{font-size:13px;color:#6e7b8d}.eyebrow{font-size:11px;letter-spacing:.08em;color:var(--accent);font-weight:700}.brand{width:42px;height:42px;border-radius:12px;background:var(--accent);font-size:25px}.brand span{font-size:12px}.app-header strong{font-size:20px;letter-spacing:-.03em}.app-header small{font-size:11px}.app-header{min-height:86px}.shell{max-width:1440px}.login-grid{margin-top:64px}.intro h1{letter-spacing:-.045em}.intro p{line-height:1.8}.login-grid>.panel{padding:36px}
.signed-in .shell{max-width:none;padding:0 30px 28px 246px}.signed-in .app-header{position:relative;height:80px;min-height:80px;border-bottom:1px solid var(--line);gap:11px}.signed-in .app-header>.brand,.signed-in .app-header>.brand+div{display:none}.header-tools{display:flex;align-items:center;gap:22px;width:100%;min-width:0}.header-search{max-width:380px;width:100%;position:relative}.header-search input{background:#fff;padding-left:37px;border-color:var(--line);min-height:38px;font-size:12px}.header-search:before{content:'⌕';position:absolute;left:13px;top:7px;color:#95a0b0;font-size:22px;line-height:1}.workspace-chip{font-size:11px;white-space:nowrap;color:#71808e;border:1px solid var(--line);border-radius:6px;padding:5px 9px}#identity{font-size:12px;white-space:nowrap;font-weight:600;color:#445064;flex-shrink:0}#identity:before{content:'';display:inline-block;vertical-align:middle;margin-right:9px;width:8px;height:8px;background:#24996c;border-radius:50%;box-shadow:0 0 0 4px #e8f6ef}.signed-in .sidebar{position:fixed;left:0;top:0;bottom:0;width:218px;margin:0;padding:112px 13px 70px;display:flex;flex-direction:column;flex-wrap:nowrap;gap:6px;border-right:1px solid var(--line);background:#fff;z-index:20;overflow:auto}.sidebar:before{content:'E₈  EightSkys';position:absolute;top:25px;left:23px;font-size:21px;line-height:32px;letter-spacing:-.04em;font-weight:800;color:var(--accent)}.sidebar:after{content:'BUSINESS WORKSPACE';position:absolute;top:59px;left:24px;color:#9aa4b1;letter-spacing:.1em;font-size:9px;font-weight:600}.sidebar-label{font-size:9px;letter-spacing:.1em;color:#9aa3af;font-weight:700;padding:0 13px 8px}.sidebar-management{margin-top:21px}.sidebar>button{display:flex;align-items:center;text-align:left;border:0;white-space:nowrap;padding:10px 11px;gap:11px;font-size:12px;font-weight:500;color:#657080;background:transparent;min-height:42px;flex-shrink:0}.sidebar>button:before{content:attr(data-glyph);font-family:"Segoe UI Symbol",Arial,sans-serif;width:20px;text-align:center;line-height:1;font-size:20px;color:#9099a6}.sidebar>button:hover{background:#f5f6f8}.sidebar>button.selected{background:#eaf7fc;color:var(--accent-dark);font-weight:650}.sidebar>button.selected:before{color:var(--accent)}.sidebar-foot{font-size:10px;color:#98a2ae;border-top:1px solid var(--line);padding:22px 11px 0;margin-top:auto;display:flex;align-items:center;gap:7px}.sidebar-dot{height:6px;width:6px;background:#45b487;border-radius:100%}.heading{margin:24px 0 18px;gap:18px}.heading h1{font-size:27px;letter-spacing:-.035em;line-height:1.2;margin:6px 0 6px}.heading p{margin:0}.refresh-button{display:flex;gap:7px;align-items:center;background:#fff;font-weight:500}.notice{font-size:12px;padding:11px 14px;border-radius:9px;border-color:#f2dcad;margin-bottom:22px}.notice.connected{background:#edf8f1;border-color:#d1ebde;color:#27704f}.notice.connected:before{content:'●';margin-right:9px;color:#36a576}.view{animation:workspace-appear .18s ease-out}.toolbar{margin:14px 0 21px;gap:20px}.toolbar h2{font-size:18px}.toolbar label{min-width:210px}.toolbar p{margin:5px 0 0}.pos-toolbar{margin:0 0 5px}.pos-toolbar h2{font-size:16px}.pos-toolbar .secondary{font-size:12px}#newOrderOwner{margin:0 0 4px;font-size:11px}#newOrderMessage{min-height:0;margin:7px 0 14px}#newOrderMessage:empty{display:none}
.entry-grid{grid-template-columns:minmax(0,1fr) 338px;gap:20px;align-items:start}.menu-workspace{min-width:0;background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px}.menu-filters{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:11px}.menu-filters input,.menu-filters select{min-height:40px;font-size:12px}.menu-search{position:relative}.menu-search:before{content:'⌕';position:absolute;left:12px;top:5px;color:#94a0ae;font-size:24px}.menu-search input{padding-left:35px}.category-chips{display:flex;gap:7px;overflow-x:auto;padding:17px 0 5px;scrollbar-width:thin}.category-chip{white-space:nowrap;min-height:29px;border-radius:6px;border-color:#edf0f4;background:#f7f8fa;padding:4px 10px;font-size:11px;font-weight:500}.category-chip.selected{background:var(--accent);color:#fff;border-color:var(--accent)}.menu-meta{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;padding:6px 0 13px}.menu-meta p{font-size:10px;line-height:1.5;margin:0}#stockRefreshedAt{font-size:10px;text-align:right;max-width:55%}.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px}.menu-card{position:relative;padding:10px;border:1px solid #e8ebef;border-radius:10px;gap:8px;min-width:0;background:#fff;box-shadow:0 2px 4px #20314702;transition:transform .16s,border-color .2s,box-shadow .2s}.menu-card:hover{border-color:#9cd2e7;box-shadow:0 7px 17px #27374809;transform:translateY(-2px)}.menu-photo{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;min-height:116px;aspect-ratio:1.3/1;background:linear-gradient(145deg,#f9f7f2,#f3f4f1);border-radius:7px;color:#beb9ac}.menu-photo.has-photo{background:#fff}.menu-photo img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.placeholder-plate{position:relative;display:grid;place-items:center;width:55px;height:55px;background:#fffdf8;border:1px solid #e7e2d9;border-radius:50%;box-shadow:0 5px 9px #ada38b15;color:#eee9df;font-size:31px;line-height:1}.placeholder-plate:before,.placeholder-plate:after{content:'';position:absolute;top:17px;width:3px;height:28px;border-radius:2px;background:#c3bcaa}.placeholder-plate:before{left:-11px}.placeholder-plate:after{right:-11px}.menu-photo>small{font-size:9px;color:#9c988e;margin-top:7px}.quick-photo{position:absolute;bottom:6px;left:8px;right:8px;border:0;background:#fffef3e8;color:#8f745b;padding:4px 6px;min-height:25px;font-size:10px}.quick-photo:hover{background:#fff}.menu-photo:has(.quick-photo)>small{visibility:hidden}.menu-card-info{display:flex;flex-direction:column;gap:3px;min-height:69px}.menu-card h3{font-size:12px;font-weight:650;line-height:1.4;letter-spacing:-.01em;margin:0;overflow-wrap:anywhere}.menu-unit{font-size:10px;color:#97a0ac;min-height:15px}.menu-price{color:var(--accent);font-size:13px;font-weight:700;margin-top:1px}.menu-balance{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:auto;min-height:25px}.stock-available{display:inline-block;color:#2c855e;font-size:10px;font-weight:650;padding:3px 6px;border-radius:4px;background:#edf7f1}.stock-available.stock-empty{background:#f9f0ee;color:#b36f58}.menu-card .stock-detail{font-size:9px;line-height:1.4}.low-stock-badge{font-size:9px;color:#b17922;line-height:1.5;font-weight:600}.menu-card.low-stock{border-color:#efbd68;animation:stock-glow 3.8s ease-in-out infinite}.low-stock .stock-available{background:#fff4da;color:#996110}.menu-card .add-menu-item{margin:1px 0 0;padding:6px 7px;min-height:30px;font-size:10px;font-weight:650;border-radius:6px;border-color:#c8e7f3;background:#f0f9fd;color:var(--accent-dark)}.menu-card .add-menu-item:hover{background:var(--accent);color:white;border-color:var(--accent)}.menu-card .add-menu-item:disabled{background:#f5f5f6;border-color:#ededee;color:#9097a0;opacity:.75}.menu-empty{grid-column:1/-1;padding:50px 22px;line-height:1.7;font-size:13px}
.cart-panel{position:sticky;top:18px;padding:21px 18px;border-radius:13px;box-shadow:0 4px 18px #22293b03}.cart-heading{border-bottom:1px dashed #e2e6eb;padding-bottom:15px;margin-bottom:17px}.cart-heading .eyebrow{font-size:9px;color:#94a0ae;letter-spacing:.1em}.cart-heading h2{font-size:19px;display:flex;justify-content:space-between;align-items:center;margin:4px 0 0}.item-count{display:grid;place-items:center;background:#eaf7fc;color:var(--accent);border-radius:7px;min-width:28px;height:26px;padding:0 5px;font-size:12px}.cart-panel form{gap:13px}.cart-panel label{font-size:11px;font-weight:500;gap:5px}.cart-panel input,.cart-panel select{font-size:12px;min-height:38px;padding:9px 10px;background:#fafbfc;border-color:#e6e9ee}.cart-panel #orderNote{background:#fff}.cart-panel form>.secondary{margin:0;font-size:10px;text-align:center;line-height:1.6}.cart-row{padding:12px 11px;margin:9px 0;border:1px solid #eef0f3;border-radius:9px;background:#fbfcfd}.cart-row>strong{font-size:12px;font-weight:600}.cart-controls{gap:4px;margin-top:7px}.cart-controls input{width:43px;min-height:27px;height:27px;padding:2px 3px;font-size:12px;text-align:center;border:0;background:#fff;appearance:textfield;-moz-appearance:textfield}.cart-controls input::-webkit-inner-spin-button{appearance:none}.cart-controls button{padding:0;width:26px;min-width:26px;min-height:26px;height:26px;border-radius:50%;border:0;background:#eef1f5;color:#788698;font-size:14px}.cart-controls button:nth-of-type(2){background:#eaf7fc;color:var(--accent)}.cart-controls .remove-cart{margin-left:6px;width:23px;min-width:23px;height:23px;min-height:23px;background:#fff0ee;color:#cc6956}.cart-controls span{font-size:10px;white-space:nowrap;font-weight:600;color:#667687}.cart-row .stock-warning{font-size:10px;line-height:1.6;margin:8px 0 0}.cart-empty{display:flex;align-items:center;flex-direction:column;padding:21px 10px 24px;text-align:center}.cart-empty-icon{font-size:36px;color:#d0d7df;line-height:1.4}.cart-empty strong{font-size:12px;color:#85909e}.cart-empty .secondary{font-size:11px;max-width:210px;margin:5px 0 0}.cart-total{border-top:1px dashed #dde2e8;padding-top:15px;margin-top:3px;font-size:15px}.cart-total strong{font-size:19px;letter-spacing:-.02em}.cart-panel #saveOrder{font-size:11px;min-height:44px;border-radius:8px;padding:9px 7px}.cart-panel #cartStockMessage{font-size:10px;margin:0;line-height:1.6;color:#84919e}.signed-in footer{padding-top:20px;border-top:1px solid var(--line);margin-top:34px;justify-content:space-between}.signed-in footer small{font-size:10px}.signed-in footer button{font-size:11px;background:transparent;color:#7f8a98;min-height:30px;border-color:#e6e9ef;padding:6px 13px}
.dashboard-intro{display:flex;align-items:center;justify-content:space-between;margin:8px 0 22px;gap:20px}.dashboard-intro h2{margin:0;font-size:20px}.dashboard-intro p{margin:6px 0 0}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.metric-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:20px;position:relative;overflow:hidden}.metric-card:before{content:'';width:5px;position:absolute;left:0;top:22px;height:26px;border-radius:0 4px 4px 0;background:var(--accent)}.metric-card.green:before{background:#40a987}.metric-card.amber:before{background:#e3b34c}.metric-card.blue:before{background:#73a6d1}.metric-card small{font-size:11px}.metric-card strong{display:block;font-size:24px;font-weight:650;letter-spacing:-.04em;line-height:1.3;margin-top:10px}.metric-card .secondary{font-size:10px;line-height:1.5;margin:10px 0 0}.dashboard-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.dashboard-columns .toolbar{margin-top:0}.dashboard-stage{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;margin:8px 0;padding:14px 13px;font-weight:400}.dashboard-stage strong{padding:3px 9px;background:#f5f6f8;border-radius:6px;font-size:12px}.workflow-steps{list-style:none;counter-reset:workflow;padding:0;margin:21px 0}.workflow-steps li{position:relative;padding:0 0 22px 37px;counter-increment:workflow}.workflow-steps li:before{content:counter(workflow);position:absolute;left:0;top:0;border:1px solid #c8e7f3;background:#f0f9fd;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;color:var(--accent);font-size:11px;font-weight:bold}.workflow-steps strong{font-size:12px}.workflow-steps span{display:block;font-size:11px;color:#7d8997;margin-top:4px}.workflow-steps li:last-child{padding-bottom:0}.order-grid{gap:16px}.order-card{padding:22px}.order-card .card-top h3{font-size:16px}.order-card .order-amount{font-size:24px}.order-card p{font-size:13px}.order-card small{font-size:11px}.order-card .reference{font-size:10px}.order-card .actions{gap:7px}.order-card .actions button{font-size:11px}.badge{font-size:10px}.order-card .invoice-detail p{font-size:11px}
.stock-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:900px;margin-top:26px}.stock-settings-grid>label{font-size:12px}.stock-settings-grid small{font-size:11px;font-weight:400;color:#8995a3}.stock-settings-grid .check-label{align-items:center}.stock-settings-grid .check-label input{margin:0}.menu-management-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:13px}.managed-item{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;padding:12px;gap:14px;min-width:0}.managed-item>.menu-photo{width:84px;height:89px;min-height:0;flex-shrink:0;aspect-ratio:1}.managed-item .placeholder-plate{width:40px;height:40px;font-size:21px}.managed-item .placeholder-plate:before,.managed-item .placeholder-plate:after{height:22px;top:10px}.managed-item .menu-photo>small{font-size:7px}.managed-item-details{display:flex;flex-direction:column;min-width:0;gap:4px;align-items:flex-start}.managed-item strong{font-size:12px;overflow-wrap:anywhere}.managed-item small{font-size:10px}.managed-item button{font-size:10px;padding:6px 9px;min-height:30px;margin-top:5px}.photo-preview{margin:18px auto 12px;width:180px;height:160px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden}.photo-preview>.menu-photo{width:100%;height:100%;min-height:0;aspect-ratio:auto}.photo-preview>img{width:100%;height:100%;object-fit:contain}.photo-actions{justify-content:center;margin-top:12px}.photo-actions button{flex:0 1 auto}.permissions-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:15px 0 20px}.permissions-grid .check-label{font-size:12px;gap:9px}.permissions-grid small{font-size:10px;font-weight:400;color:#8b97a5;line-height:1.6;margin-top:3px}#staffPermissionsPanel{border:1px solid var(--line);border-radius:10px;padding:15px}#staffPermissionsPanel h3{font-size:14px;margin:0}#staffPermissionsPanel>.secondary{font-size:11px;margin:7px 0}.permission-note{color:var(--accent);margin-top:4px}#stockWarningList{background:#fff8eb;border:1px solid #ecd8ad;border-radius:9px;padding:12px 16px}#stockWarningList p{font-size:13px;margin:9px 0}.settings-form{max-width:620px}.panel.settings-panel{margin-top:20px}.signed-in #backupPanel{max-width:none}
@keyframes stock-glow{0%,100%{box-shadow:0 0 0 0 #efbb6630}50%{box-shadow:0 0 0 3px #efbb6638,0 4px 13px #efbb6620}}@keyframes workspace-appear{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(min-width:1600px){.signed-in .shell{padding-left:265px;padding-right:38px}.signed-in .sidebar{width:230px}.entry-grid{grid-template-columns:minmax(0,1fr) 375px;gap:24px}.menu-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:15px}.menu-photo{min-height:135px}.menu-card{padding:13px}.menu-card h3{font-size:14px}.menu-price{font-size:15px}.menu-unit{font-size:11px}.stock-available{font-size:11px}.menu-card .add-menu-item{min-height:34px;font-size:12px}.menu-card-info{min-height:77px}.cart-panel label{font-size:12px}.cart-panel input,.cart-panel select{font-size:13px}.cart-panel #saveOrder{font-size:12px}}
@media(max-width:1180px) and (min-width:901px){.signed-in .shell{padding-left:213px;padding-right:20px}.signed-in .sidebar{width:192px;padding-left:8px;padding-right:8px}.sidebar>button{font-size:11px;gap:7px}.entry-grid{grid-template-columns:minmax(0,1fr) 294px;gap:14px}.menu-workspace{padding:13px}.menu-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:9px}.menu-photo{min-height:105px}.cart-panel{padding:18px 13px}.menu-filters{grid-template-columns:1fr}.menu-filters>label:nth-child(2){display:none}.metrics-grid{gap:10px}.metric-card{padding:16px}.metric-card strong{font-size:20px}.workspace-chip{display:none}.header-search{max-width:320px}}
@media(max-width:900px){.signed-in .shell{padding:0 18px 28px}.signed-in .app-header{height:73px;min-height:73px}.signed-in .app-header>.brand,.signed-in .app-header>.brand+div{display:block}.signed-in .app-header>.brand{display:grid;flex-shrink:0;width:35px;height:35px;font-size:21px}.signed-in .app-header>.brand+div strong{font-size:17px}.signed-in .app-header>.brand+div small{font-size:9px;max-width:190px}.header-tools{display:none!important}#identity{font-size:10px;white-space:normal;max-width:37%}#identity:before{width:6px;height:6px;box-shadow:0 0 0 3px #e8f6ef;margin-right:7px}.signed-in .sidebar{position:static;width:auto;display:flex;flex-direction:row;overflow-x:auto;flex-wrap:nowrap;padding:5px 0 13px;margin:15px 0 14px;gap:7px;border:0;background:transparent;scrollbar-width:thin}.sidebar:before,.sidebar:after,.sidebar-label,.sidebar-foot{display:none}.sidebar>button{white-space:nowrap;font-size:11px;padding:8px 12px;background:#fff;min-height:35px;border:1px solid var(--line);border-radius:7px}.sidebar>button:before{font-size:16px;width:14px}.heading{margin:21px 0 16px}.heading h1{font-size:24px}.heading p{font-size:11px}.notice{font-size:11px;margin:13px 0}.entry-grid{grid-template-columns:minmax(0,1fr) 310px;gap:15px}.cart-panel{top:14px;padding:18px 14px}.menu-filters{grid-template-columns:1fr}.menu-filters>label:nth-child(2){display:none}.menu-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}.menu-workspace{padding:13px}.menu-card h3{font-size:12px}.menu-photo{min-height:100px}.menu-meta{display:block}.menu-meta p{margin-top:3px}#stockRefreshedAt{text-align:left;max-width:100%}.metrics-grid{grid-template-columns:1fr 1fr}.dashboard-columns{grid-template-columns:1fr 1fr}.dashboard-intro h2{font-size:17px}.metric-card strong{font-size:23px}.stock-settings-grid{gap:18px}.signed-in .panel{padding:22px}.signed-in .cart-panel{padding:18px 14px}.signed-in .order-card{padding:20px}.dashboard-columns .toolbar{flex-wrap:wrap;gap:10px}.toolbar{flex-direction:row;align-items:center}.toolbar label{min-width:190px}}
@media(max-width:680px){.signed-in .shell{padding:0 13px 24px}.signed-in .app-header{gap:8px}.heading .eyebrow{font-size:9px}.heading h1{font-size:24px}.heading p{font-size:11px;max-width:245px}.refresh-button{font-size:11px;padding:7px 10px;min-height:35px}.notice{line-height:1.6;padding:10px 11px}.sidebar>button{font-size:11px}.entry-grid{grid-template-columns:1fr}.cart-panel{position:static;margin-top:4px}.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.menu-workspace{padding:13px}.menu-photo{min-height:128px}.menu-card{padding:11px;gap:8px}.menu-card h3{font-size:13px}.menu-price{font-size:14px}.menu-card-info{min-height:73px}.menu-unit{font-size:10px}.stock-available{font-size:11px}.menu-card .add-menu-item{font-size:11px;min-height:35px}.low-stock-badge{font-size:10px}.menu-meta{display:flex;font-size:10px;gap:12px}.menu-meta #stockRefreshedAt{max-width:55%;text-align:right}.menu-filters{grid-template-columns:1fr}.pos-toolbar h2{font-size:15px}.pos-toolbar .secondary{max-width:225px;line-height:1.6;font-size:11px}.pos-toolbar button{font-size:10px;padding:8px 11px;white-space:nowrap}.cart-panel #saveOrder{font-size:13px;min-height:46px}.cart-panel input,.cart-panel select{min-height:42px;font-size:14px}.cart-panel label{font-size:12px}.cart-row>strong{font-size:13px}.cart-controls span{font-size:12px}.cart-controls input{height:30px;min-height:30px;font-size:13px}.cart-controls button{width:29px;height:29px;min-height:29px}.cart-panel #cartStockMessage,.cart-panel form>.secondary{font-size:11px}.dashboard-columns{grid-template-columns:1fr}.dashboard-intro{gap:12px}.dashboard-intro p{font-size:11px}.dashboard-intro button{font-size:11px;white-space:nowrap}.metrics-grid{gap:10px}.metric-card{padding:17px}.metric-card strong{font-size:21px}.metric-card p{font-size:9px}.stock-settings-grid{grid-template-columns:1fr;gap:20px}.menu-management-grid{grid-template-columns:1fr}.managed-item>.menu-photo{width:83px}.managed-item strong{font-size:13px}.managed-item small{font-size:11px}.managed-item button{font-size:11px}.toolbar{flex-wrap:wrap;gap:13px;align-items:flex-start}.toolbar label{width:100%;min-width:0}.toolbar.pos-toolbar{flex-wrap:nowrap;align-items:center}.signed-in .panel{padding:19px}.signed-in .cart-panel{padding:20px}.permissions-grid{grid-template-columns:1fr}.heading h1{line-height:1.3}.signed-in #refreshedAt{text-align:right;max-width:60%}.photo-preview{width:160px;height:145px}.signed-in .order-card .actions{flex-wrap:wrap}.order-card .actions button{font-size:11px}.login-grid>.panel{padding:25px}.signed-in .app-header>.brand+div small{max-width:160px}.signed-in .app-header>.brand+div strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.view,.menu-card.low-stock{animation:none}.menu-card.low-stock{box-shadow:0 0 0 2px #efbb6638}button,.menu-card{transition:none}.menu-card:hover{transform:none}}
@media print{.signed-in .shell,.signed-in .sidebar{display:none!important}}

/* Keep the photo menu and its stock controls in view on laptop screens. */
.pos-page .app-header{height:62px;min-height:62px}.pos-page .heading{margin:15px 0 11px;min-height:35px}.pos-page .heading h1{font-size:24px;margin:0}.pos-page .heading .eyebrow,.pos-page .heading #viewSubtitle{display:none}.pos-page #connectionNotice{padding:8px 12px;font-size:11px;line-height:1.5;margin:8px 0 13px}.pos-page .pos-toolbar{justify-content:flex-end;position:relative;margin:0 0 8px;min-height:28px}.pos-page .pos-toolbar>div{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pos-page #refreshMenu{min-height:28px;padding:4px 10px;font-size:10px}.pos-page #newOrderOwner{margin:-30px 130px 13px 0;position:relative;pointer-events:none;font-size:10px;min-height:17px}.pos-page .menu-workspace{padding:13px}.pos-page .menu-filters input,.pos-page .menu-filters select{min-height:35px;padding-top:8px;padding-bottom:8px}.pos-page .category-chips{padding-top:10px;padding-bottom:3px}.pos-page .category-chip{min-height:26px;padding:3px 9px}.pos-page .menu-meta{padding:5px 0 10px}.pos-page .menu-photo{min-height:110px;max-height:123px}.pos-page .menu-card{gap:6px}.pos-page .menu-card-info{min-height:65px}.pos-page .cart-panel{top:13px}.pos-page .cart-heading{padding-bottom:12px;margin-bottom:14px}.pos-page .cart-panel form{gap:10px}
@media(max-width:900px){.pos-page .sidebar{margin:8px 0 10px;padding-bottom:8px}.pos-page .heading{margin:13px 0 9px}.pos-page #connectionNotice{font-size:10px}.pos-page .menu-photo{max-height:none}.pos-page .menu-meta{display:flex}.pos-page .menu-meta #stockRefreshedAt{max-width:57%;text-align:right}}
@media(max-width:680px){.pos-page .heading h1{font-size:23px}.pos-page .menu-photo{min-height:125px}.pos-page #newOrderOwner{font-size:10px}.pos-page .menu-card-info{min-height:72px}.pos-page .cart-panel form{gap:13px}.pos-page .menu-meta{gap:10px}.pos-page .menu-meta p{font-size:9px}.pos-page .menu-meta #stockRefreshedAt{font-size:9px}}
.mobile-order-bar,.mobile-back-menu{display:none}#orderCart,#menuArea{scroll-margin-top:15px}#orderCart:focus-visible,#menuArea:focus-visible{outline:3px solid #229dca55;outline-offset:3px}
@media(max-width:680px){.pos-page .shell{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}.pos-page .mobile-order-bar{display:flex;position:fixed;z-index:35;left:13px;right:13px;bottom:calc(12px + env(safe-area-inset-bottom,0px));min-height:50px;justify-content:space-between;align-items:center;gap:15px;padding:12px 17px;background:var(--accent);border-color:var(--accent);border-radius:11px;color:#fff;box-shadow:0 5px 22px #075b7b33;font-size:12px}.pos-page .mobile-order-bar:hover{background:var(--accent-dark)}.mobile-order-bar strong{font-size:13px;white-space:nowrap}.pos-page .mobile-back-menu{display:inline-flex;align-items:center;padding:6px 10px;margin-top:12px;min-height:34px;font-size:11px;border-color:#e5e8ee;color:#657080}.pos-page .cart-panel{scroll-margin-bottom:90px}.pos-page .entry-grid input,.pos-page .entry-grid select{font-size:16px}.pos-page .cart-controls input{font-size:16px}}

.accounting-sync{border-top:1px solid #e3e8ed;padding-top:10px;margin-top:10px}.sync-badge{display:inline-block;font-size:12px;font-weight:700;color:#856000;background:#fff4d8;padding:5px 9px;border-radius:6px}.accounting-sync.posted .sync-badge{color:#146343;background:#e1f5eb}.accounting-sync.attention .sync-badge{color:#a02020;background:#ffeded}

/* EightSkys identity and menu controls. Warning and error colours retain their meaning. */
.brand-lockup{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;max-width:240px}.brand-lockup img{display:block;width:230px;height:65px;object-fit:cover;object-position:center}.brand-lockup #companyLabel{font-size:11px;line-height:1.3;padding-left:20px;max-width:230px;color:#5c6877}.signed-in .brand-lockup{display:none}.sidebar:before{display:none}.sidebar:after{top:78px;left:24px}.sidebar-brand{position:absolute;top:14px;left:8px;right:8px;display:flex;justify-content:center;height:62px;overflow:hidden}.sidebar-brand img{width:202px;height:62px;object-fit:cover;object-position:center}.menu-filters{grid-template-columns:minmax(180px,1.25fr) minmax(120px,.8fr) minmax(155px,1fr);align-items:end}.menu-filters label{font-size:10px;gap:5px;color:#657080;min-width:0}.menu-filters input,.menu-filters select{font-size:12px}.menu-sort-help{font-size:11px;line-height:1.45;margin:7px 0 1px;color:#6e7b8d}.menu-management-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.menu-management-filters label{min-width:150px}.menu-visibility-badge{display:inline-block;padding:2px 7px;border-radius:5px;font-size:10px;background:#eaf7fc;color:#075b7b;width:fit-content}.menu-visibility-badge.hidden-item{background:#eef1f5;color:#5c6877}.managed-item.is-hidden{background:#f7f8fa}.menu-item-visibility{padding:12px;border:1px solid #c8e7f3;background:#f0f9fd;border-radius:8px}.category-chips{flex-wrap:wrap;max-height:none}.menu-management-filters input,.menu-management-filters select{min-width:0}#menuCategoryDefaultHelp{margin-top:0;line-height:1.5}#menuItemShowOnPos{accent-color:var(--accent)}
.pos-visibility-badge{display:inline-block;padding:2px 7px;border-radius:5px;font-size:10px;background:#eaf7fc;color:#075b7b;width:fit-content}.pos-visibility-badge.hidden-from-pos{background:#eef1f5;color:#5c6877}.managed-item.pos-hidden{background:#f7f8fa}.managed-item.not-sale-ready{align-items:flex-start}.pos-visibility-badge.not-ready{background:#fff4d9;color:#765008}.sale-block-reason{color:#765008;line-height:1.45;overflow-wrap:anywhere}.managed-item-price{font-weight:600;color:#334155}.menu-item-eligibility{padding:13px 15px;border:1px solid #c8e7f3;background:#f0f9fd;border-radius:8px;margin:12px 0}.menu-item-eligibility.not-sale-ready{border-color:#ecd8ad;background:#fff9ec}.menu-item-eligibility strong{font-size:13px}.menu-item-eligibility p{margin:7px 0;font-size:12px;line-height:1.5}.menu-item-eligibility p:last-child{margin-bottom:0}#menu .settings-panel .toolbar{flex-wrap:wrap}#menu .settings-panel .toolbar>div{flex:1 1 100%}#menu .settings-panel .toolbar>label{flex:1 1 200px;min-width:0}#menuItemForm>.check-label{padding:12px;border:1px solid #c8e7f3;background:#f0f9fd;border-radius:8px}
@media(max-width:1150px){.menu-filters{grid-template-columns:1fr 1fr}.menu-filters .menu-search{grid-column:1/-1}.menu-filters>label:nth-child(2){display:grid}}
@media(max-width:900px){.sidebar-brand,.sidebar:after{display:none}.signed-in .brand-lockup{display:flex;max-width:190px}.brand-lockup img,.signed-in .brand-lockup img{width:185px;height:49px}.brand-lockup #companyLabel,.signed-in .brand-lockup #companyLabel{font-size:9px;max-width:185px;padding-left:16px}.menu-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.menu-filters>label:nth-child(2){display:grid}.menu-filters .menu-search{grid-column:1/-1}.menu-filters select{font-size:12px}.menu-management-filters{width:100%}.menu-management-filters label{flex:1;min-width:135px}}
@media(max-width:680px){.brand-lockup img,.signed-in .brand-lockup img{width:172px;height:46px}.brand-lockup #companyLabel,.signed-in .brand-lockup #companyLabel{max-width:165px;padding-left:14px}.menu-sort-help{font-size:10px}.menu-filters select{font-size:16px}.menu-filters .menu-search{grid-column:1/-1}.menu-filters>label:nth-child(2){display:grid}.menu-management-filters{display:grid;grid-template-columns:1fr}.menu-management-filters label{min-width:0}.menu-management-filters input,.menu-management-filters select{font-size:16px}}
/* Flexible sales: keep the existing POS and present account balances separately. */
/* Restaurant returns, delivery documents and stock use. */
#restaurantops>div,#restaurantSettingsHost{margin-bottom:20px;}#restaurantSettingsHost .settings-panel{margin-top:0;}#restaurant-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}#restaurant-settings-form>p,#restaurant-save-settings{grid-column:1/-1;}#restaurant-settings-form>label{min-width:0;}#restaurant-settings-form input[type=checkbox]{width:auto;min-height:0;margin-right:9px;accent-color:var(--accent);}#restaurant-return-dialog,#restaurant-writeoff-dialog{width:min(760px,calc(100% - 30px));}#restaurant-return-form,#restaurant-writeoff-form{display:grid;gap:16px;}#restaurant-return-form .actions,#restaurant-writeoff-form .actions{display:flex;gap:10px;flex-wrap:wrap;}#restaurant-return-form .sales-allocation-row{display:grid;grid-template-columns:minmax(130px,1fr) 110px 85px minmax(160px,1fr);gap:10px;align-items:center;border-bottom:1px solid #dce5eb;padding:12px 0;}#restaurant-writeoff-form .sales-allocation-row{display:grid;grid-template-columns:minmax(130px,1fr) 100px auto;gap:12px;align-items:center;border-bottom:1px solid #dce5eb;padding:12px 0;}#restaurant-return-form .sales-allocation-row small{font-size:11px;}#restaurant-return-form .sales-allocation-row select{font-size:12px;}#restaurant-return-confirm,#restaurant-writeoff-confirm{width:auto;min-height:0;accent-color:var(--accent);margin:0 10px 0 0;}#restaurant-return-confirmation-field,#restaurant-writeoff-confirmation-field{padding:14px;border:1px solid #b9dce9;border-radius:9px;background:#f0f9fc;}#restaurant-return-confirmation-field label,#restaurant-writeoff-confirmation-field label{display:flex;align-items:center;gap:9px;font-weight:600;line-height:1.5;}#restaurant-return-preview:not(:empty),#restaurant-writeoff-preview:not(:empty){padding:18px;border:1px solid #cadde5;background:#f6fafc;border-radius:10px;}.restaurant-history-card{padding:16px 0;border-bottom:1px solid #dce5eb;}.restaurant-history-card h3{margin:0 0 8px;}.restaurant-history-card small{display:block;margin:4px 0;color:#5b6876;}.restaurant-history-card button{margin-top:10px;}#restaurant-settings-message:empty,#restaurant-returns-message:empty,#restaurant-return-message:empty,#restaurant-writeoff-message:empty{display:none;}
@media(max-width:650px){#restaurant-settings-form{grid-template-columns:1fr;}#restaurant-return-form .sales-allocation-row{grid-template-columns:minmax(0,1fr) 90px;}#restaurant-return-form .sales-allocation-row>strong{grid-column:1/-1;}#restaurant-return-form .sales-allocation-row>select{grid-column:1/-1;}#restaurant-return-form .sales-allocation-row select,#restaurant-writeoff-form input,#restaurant-writeoff-form select{font-size:16px;}#restaurant-writeoff-form .sales-allocation-row{grid-template-columns:minmax(0,1fr) 90px;}#restaurant-writeoff-form .sales-allocation-row>button{grid-column:1/-1;}#restaurant-return-form .actions>button,#restaurant-writeoff-form .actions>button{flex:1;}}
.customer-register{margin-top:18px;border:1px solid #dce5eb;border-radius:12px;overflow:hidden;background:#fff}.customer-register-labels,.customer-register-row{display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(130px,1fr) minmax(120px,1fr) minmax(130px,1fr) auto;gap:14px;align-items:center;padding:12px 14px}.customer-register-labels{font-size:12px;letter-spacing:.03em;text-transform:uppercase;color:#596978;background:#f6fafc}.customer-register-row{border-top:1px solid #e8edf1}.customer-register-row strong{overflow-wrap:anywhere}.customer-register-row span:nth-child(3),.customer-register-row span:nth-child(4){font-variant-numeric:tabular-nums;white-space:nowrap}.customer-register-row button{white-space:nowrap}.customer-register .empty{padding:18px;margin:0;color:#64717e}
@media(max-width:600px){.sales-form-grid,.sales-balance-grid{grid-template-columns:1fr}.sales-quote-line{grid-template-columns:1fr 80px}.sales-quote-line>strong{grid-column:1/-1}.sales-allocation{grid-template-columns:1fr}.sales-inline-form>button{width:100%}.sales-item-picker{flex-wrap:wrap}.sales-item-picker select{min-width:100%}.customer-row>button{width:100%}.sales-balance-tile strong{font-size:17px}.customer-register-labels{display:none}.customer-register-row{grid-template-columns:1fr 1fr;gap:8px 12px}.customer-register-row strong{grid-column:1/-1}.customer-register-row button{justify-self:end}}
#quoteItemControls{display:grid;gap:14px}.sales-quote-labels{display:grid;grid-template-columns:minmax(140px,1fr) 80px 110px auto;gap:10px;font-size:11px;color:#64717e}.sales-quote-labels span:last-child{width:79px}#orderCreditPanel{border:1px solid #c8e7f3;background:#edf7fb;border-radius:8px;padding:12px}#orderCreditPanel .secondary{margin-bottom:0}#salesCollectionMessage:empty,#quoteMessage:empty,#salesReadinessMessage:empty{display:none}#salesCollectionForm>.actions{position:sticky;bottom:-30px;z-index:2;background:#fff;padding:12px 0 0;margin:0}#quoteMessage.secondary{color:#5c6877}
@media(max-width:600px){#salesCollectionDialog .sales-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#salesCollectionDialog .sales-balance-tile{padding:10px}#salesCollectionDialog .sales-balance-tile strong{font-size:15px}#salesCollectionForm>.actions{bottom:-22px;padding:12px 0 6px}#salesCollectionDialog form{gap:14px}.sales-quote-labels{display:none}}
/* Price inputs stay next to the line they change; final totals come from the server review. */
/* A wide table scrolls inside its own box on a phone instead of widening the page. */
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.inventory-cost-table-wrap{max-width:100%;overflow:auto;margin:18px 0}.inventory-cost-table{width:100%;border-collapse:collapse;font-size:.92rem}.inventory-cost-table th,.inventory-cost-table td{padding:12px;text-align:left;border-bottom:1px solid #dce7ed;vertical-align:top}.inventory-cost-table th{background:#eef8fc;color:#23465a;white-space:nowrap}.inventory-cost-table td:nth-child(3),.inventory-cost-table td:nth-child(4){font-variant-numeric:tabular-nums}.inventory-cost-history-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid #dce7ed}.inventory-cost-history-row p{margin:4px 0}#inventory-costs-confirmation{margin:18px 0;align-items:flex-start}#inventory-costs-apply,#inventory-costs-check{margin:4px 8px 12px 0}@media(max-width:600px){.inventory-cost-table th,.inventory-cost-table td{padding:9px}.inventory-cost-history-row{align-items:stretch;flex-direction:column}}
.pricing-panel{margin:16px 0;padding:14px;border:1px solid #c9e3ed;border-radius:12px;background:#f4fafc}.pricing-panel[hidden]{display:none}.pricing-discount-control{display:flex;gap:8px;align-items:center;margin:8px 0}.pricing-discount-control select{flex:1;min-width:0}.pricing-discount-control input{width:110px;min-width:0}.sales-quote-line>.pricing-discount-control{grid-column:1/-1}.pricing-totals{margin:12px 0 0}.pricing-totals>div{display:flex;gap:12px;justify-content:space-between;padding:4px 0}.pricing-totals dt,.pricing-totals dd{margin:0}.pricing-totals>div:last-child{border-top:1px solid #c9e3ed;padding-top:8px;font-weight:700}.pricing-message{font-size:.9rem;margin-bottom:0}.pricing-panel>button{width:100%;margin-top:8px}.settings-panel h3{margin-top:24px}.settings-panel>button{margin:0 0 16px}

/* Workspace readiness keeps setup evidence in one administrator-facing place. */
.workspace-readiness-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.workspace-readiness-card{padding:14px;border:1px solid #dce5eb;border-radius:10px;background:#f8fafc;min-width:0}.workspace-readiness-card.ready{border-color:#bde2cd;background:#f2fbf5}.workspace-readiness-card.action-required,.workspace-readiness-card.unavailable{border-color:#efc9c9;background:#fff7f7}.workspace-readiness-card.needs-review{border-color:#ecd7a8;background:#fffaf0}.workspace-readiness-card.not-applicable{background:#fafbfc;color:#687384}.workspace-readiness-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.workspace-readiness-heading strong{font-size:14px}.workspace-readiness-state{flex:0 0 auto;padding:3px 7px;border-radius:999px;background:#e8eef2;color:#405367;font-size:10px;font-weight:700}.workspace-readiness-card.ready .workspace-readiness-state{background:#dff4e7;color:#146343}.workspace-readiness-card.action-required .workspace-readiness-state,.workspace-readiness-card.unavailable .workspace-readiness-state{background:#fde5e5;color:#9b2929}.workspace-readiness-card.needs-review .workspace-readiness-state{background:#fff0ca;color:#795900}.workspace-readiness-card p{margin:8px 0 0;line-height:1.45}.workspace-readiness-resolve{margin-top:12px;font-size:12px;padding:7px 10px}.notice.workspace-readiness-needs-review{border-color:#ecd7a8;background:#fffaf0;color:#765008}@media(max-width:680px){.workspace-readiness-grid{grid-template-columns:1fr}.workspace-readiness-resolve{width:100%}}
.stock-reservation-review{margin-top:14px}.stock-reservation-review-card{padding:14px;border:1px solid #dce5eb;border-radius:10px;background:#f8fafc;min-width:0}.stock-reservation-review-card.needs-review{border-color:#ecd7a8;background:#fffaf0}.stock-reservation-review-card p{margin:8px 0 0;line-height:1.45}.stock-reservation-review-detail{font-size:12px;color:#5b6876;overflow-wrap:anywhere}#stockReservationReviewMessage:empty{display:none}
/* Commercial-pilot checks distinguish live workspace evidence from manager-run drills. */
.commercial-pilot-section h3{margin:24px 0 5px;font-size:15px}.commercial-pilot-section h3:first-of-type{margin-top:20px}.commercial-pilot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.commercial-pilot-card{padding:14px;border:1px solid #dce5eb;border-radius:10px;background:#f8fafc;min-width:0}.commercial-pilot-card.ready,.commercial-pilot-card.recorded{border-color:#bde2cd;background:#f2fbf5}.commercial-pilot-card.action-required,.commercial-pilot-card.unavailable{border-color:#efc9c9;background:#fff7f7}.commercial-pilot-card.needs-review,.commercial-pilot-card.manual-confirmation-required{border-color:#ecd7a8;background:#fffaf0}.commercial-pilot-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.commercial-pilot-heading strong{font-size:14px}.commercial-pilot-state{flex:0 0 auto;padding:3px 7px;border-radius:999px;background:#e8eef2;color:#405367;font-size:10px;font-weight:700}.commercial-pilot-card.ready .commercial-pilot-state,.commercial-pilot-card.recorded .commercial-pilot-state{background:#dff4e7;color:#146343}.commercial-pilot-card.action-required .commercial-pilot-state,.commercial-pilot-card.unavailable .commercial-pilot-state{background:#fde5e5;color:#9b2929}.commercial-pilot-card.needs-review .commercial-pilot-state,.commercial-pilot-card.manual-confirmation-required .commercial-pilot-state{background:#fff0ca;color:#795900}.commercial-pilot-card p{margin:8px 0 0;line-height:1.45}.commercial-pilot-detail{font-size:12px;color:#5b6876}.commercial-pilot-recorded{font-size:12px;font-weight:600;color:#146343}.pilot-confirmation{display:flex;align-items:flex-start;gap:9px;margin-top:13px;font-size:12px;font-weight:600;line-height:1.45}.pilot-confirmation input{width:auto;min-height:0;margin:2px 0 0;accent-color:var(--accent)}.pilot-record-check{margin-top:11px;font-size:12px;padding:7px 10px}#commercialPilotMessage:empty{display:none}@media(max-width:680px){.commercial-pilot-grid{grid-template-columns:1fr}.pilot-record-check{width:100%}}

/* Manager notes remain factual, bounded evidence alongside an explicit pilot confirmation. */
.pilot-record-controls{display:grid;gap:10px;margin-top:13px}.pilot-note-label{display:grid;gap:5px;font-size:12px;font-weight:600}.pilot-note-label input{width:100%;min-width:0;font:inherit;padding:8px 10px;border:1px solid #cbd7df;border-radius:7px;background:#fff}.pilot-note-help{margin:0!important;font-size:11px;color:#64717e}.pilot-record-controls .pilot-confirmation{margin-top:0}.pilot-retest-toggle{margin-top:12px;font-size:12px;padding:7px 10px}.pilot-retest-controls{margin-top:12px;padding-top:12px;border-top:1px solid #dce5eb}.pilot-retest-controls[hidden]{display:none}@media(max-width:680px){.pilot-retest-toggle{width:100%}.pilot-note-label input{font-size:16px}}
/* Scanner and PLU entry stays separate from fuzzy menu search. */
.scan-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:0 0 8px;padding:0 0 12px;border-bottom:1px solid var(--line)}.scan-entry label{display:grid;gap:5px;min-width:0;font-size:12px;font-weight:700}.scan-entry input,.scan-entry button{min-height:42px}.scan-entry button{white-space:nowrap}.scan-message{min-height:0;margin:0 0 10px;font-size:12px}.scan-message:empty{display:none}.scan-message.scan-success{color:#146343}@media(max-width:460px){.scan-entry{grid-template-columns:1fr}.scan-entry button{width:100%}}
.money-report-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;align-items:end;margin:0 0 18px;padding:14px;border:1px solid #dfe6eb;border-radius:10px;background:#f8fbfc}.money-report-filters label{margin:0}.money-report-filters button{min-height:42px}.money-report-filters select,.money-report-filters input{width:100%}.money-report-filters+.panel{margin-top:0}.sales-balance-tile small{display:block;margin-top:6px}.money-report-filters~.panel table{min-width:760px}
.purchasing-register-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.purchasing-register-card{border:1px solid #dce5eb;border-radius:10px;background:#fff;padding:14px;min-width:0}.purchasing-register-card h3{margin:0 0 10px;font-size:14px}.purchasing-register-records{display:grid;gap:8px}.purchasing-register-record{display:grid;gap:4px;padding:9px 10px;border-radius:8px;background:#f8fafc}.purchasing-register-record strong{font-size:12px;overflow-wrap:anywhere}.purchasing-register-record span{font-size:10px;line-height:1.4;overflow-wrap:anywhere}@media(max-width:680px){.purchasing-register-grid{grid-template-columns:1fr}}
.purchasing-draft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.purchasing-draft-card{border:1px solid #dce5eb;border-radius:10px;background:#fff;padding:14px;min-width:0}.purchasing-draft-card p{margin:8px 0;line-height:1.45}.purchasing-register-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.purchasing-register-heading strong{font-size:14px;overflow-wrap:anywhere}.secondary-button{padding:7px 10px;font-size:12px}@media(max-width:680px){.purchasing-draft-grid{grid-template-columns:1fr}}
.purchasing-draft-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.75rem}.purchasing-preflight{margin-top:.85rem;padding:.8rem;border:1px solid var(--line,#d9e1ea);border-radius:.6rem;background:#f8fafc}.purchasing-preflight.verified{border-color:#79b99a;background:#f1fbf5}.purchasing-preflight.needs-review{border-color:#e4bf72;background:#fffaf0}.purchasing-preflight strong{display:block;margin-bottom:.25rem}.purchasing-preflight p{margin:.25rem 0}.purchasing-preflight-issues{margin:.45rem 0 0 1.2rem;padding:0}.purchasing-preflight-issues li{margin:.25rem 0}
.purchase-document-form{max-width:100%;}.purchase-document-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.purchase-lines-wrap{overflow:auto;border:1px solid var(--line,#dce5eb);border-radius:10px}.purchase-lines{min-width:900px}.purchase-lines th,.purchase-lines td{padding:10px 8px;vertical-align:top}.purchase-lines input,.purchase-lines select,.purchase-lines textarea{width:100%;min-width:0;box-sizing:border-box;font-size:13px}.purchase-lines textarea{min-height:42px;resize:vertical}.purchase-lines .purchase-line-item{min-width:190px}.purchase-lines .purchase-line-description{min-width:180px}.purchase-lines .purchase-line-qty{width:84px}.purchase-lines .purchase-line-price{width:120px}.purchase-lines .purchase-line-total{font-variant-numeric:tabular-nums;white-space:nowrap}.purchase-line-remove{padding:7px 10px}.purchase-document-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--line,#dce5eb);border-radius:10px;background:#f8fafc}.purchase-document-options>strong{grid-column:1/-1}.purchase-document-options label{margin:0}.purchase-document-options input:not([type=checkbox]),.purchase-document-options textarea{width:100%;box-sizing:border-box}.purchase-document-options .check-label{align-items:center}.purchase-catalog-option-native{font-weight:600}@media(max-width:700px){.purchase-document-meta,.purchase-document-options{grid-template-columns:1fr}.purchase-document-options>strong{grid-column:auto}}

/* Controlled purchase-fixture evidence is compact, readable and manager-facing. */
.purchase-fixture-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin:14px 0}.purchase-fixture-controls label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:600}.purchase-fixture-controls input{width:100%;min-width:0;box-sizing:border-box}.purchase-fixture-controls button{min-height:42px;white-space:nowrap}.purchasing-fixture-result{display:grid;gap:12px;margin-top:12px}.purchasing-fixture-card{padding:14px;border:1px solid #bde2cd;border-radius:10px;background:#f2fbf5;min-width:0}.purchasing-fixture-card p{margin:7px 0;line-height:1.45;overflow-wrap:anywhere}.purchasing-fixture-card .workspace-readiness-state{background:#dff4e7;color:#146343}@media(max-width:680px){.purchase-fixture-controls{grid-template-columns:1fr}.purchase-fixture-controls button{width:100%}}

/* A confirmed purchase invoice remains traceable here until accounting readback settles it. */
.purchase-invoice-action{margin-top:.85rem;padding:.85rem;border:1px solid #dce5eb;border-radius:.65rem;background:#f8fafc}.purchase-invoice-action.prepared{border-color:#79b99a;background:#f1fbf5}.purchase-invoice-action.submitting,.purchase-invoice-action.uncertain{border-color:#e4bf72;background:#fffaf0}.purchase-invoice-action.conflict{border-color:#e5aaaa;background:#fff7f7}.purchase-invoice-action.verified{border-color:#79b99a;background:#f1fbf5}.purchase-invoice-action p{margin:.35rem 0;overflow-wrap:anywhere}.purchase-invoice-action-lines{margin:.6rem 0 0 1.1rem;padding:0}.purchase-invoice-action-lines li{margin:.3rem 0;overflow-wrap:anywhere}.purchase-invoice-action .workspace-readiness-state{white-space:nowrap}

/* Supplier-return quantities keep their original invoice prices visible. */
#supplier-return-form{max-width:100%;min-width:0}#supplier-return-lines{overflow:auto;border:1px solid var(--line,#dce5eb);border-radius:10px}#supplier-return-lines>p{padding:0 16px}#supplier-return-lines table{min-width:660px}#supplier-return-lines td:first-child{white-space:normal;min-width:190px}#supplier-return-lines input{min-width:100px;width:120px}#supplier-return-panel>button{margin:8px 8px 8px 0}#supplier-return-review p,#supplier-return-review li{overflow-wrap:anywhere}#supplier-return-reason{min-height:90px;width:100%;resize:vertical}#supplier-return-confirmation{margin:20px 0}#supplier-return-history{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
#direct-purchase-refund-form{max-width:100%;min-width:0}#direct-purchase-refund-lines{overflow:auto;border:1px solid var(--line,#dce5eb);border-radius:10px}#direct-purchase-refund-lines>p{padding:0 16px}#direct-purchase-refund-lines table{min-width:660px}#direct-purchase-refund-lines td:first-child{white-space:normal;min-width:190px}#direct-purchase-refund-lines input{min-width:100px;width:120px}#direct-purchase-refund-panel>button{margin:8px 8px 8px 0}#direct-purchase-refund-review p,#direct-purchase-refund-review li{overflow-wrap:anywhere}#direct-purchase-refund-reason{min-height:90px;width:100%;resize:vertical}#direct-purchase-refund-confirmation{margin:20px 0}#direct-purchase-refund-history{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}

/* Management register foundation: shared visual language for paged lists and drill-downs. */
.management-workspace{display:grid;gap:18px;min-width:0}
.management-header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;min-width:0}
.management-header-copy{min-width:0}
.management-header-copy h1,.management-header-copy h2{margin:0 0 5px;line-height:1.25}
.management-header-copy p{margin:0;max-width:72ch}
.management-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;flex:0 0 auto}
.management-tabs{display:flex;align-items:center;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line,#e8eaf0);padding:0 2px;scrollbar-width:thin}
.management-tabs>button{position:relative;border:0;border-radius:7px 7px 0 0;background:transparent;color:#657080;min-height:42px;padding:9px 13px;font-size:12px;font-weight:600;white-space:nowrap}
.management-tabs>button:hover{background:#f5f8fa;color:var(--accent-dark,#075b7b)}
.management-tabs>button[aria-current="page"],.management-tabs>button[aria-selected="true"]{background:#eef8fc;color:var(--accent-dark,#075b7b)}
.management-tabs>button[aria-current="page"]::after,.management-tabs>button[aria-selected="true"]::after{content:"";position:absolute;left:11px;right:11px;bottom:-1px;height:2px;border-radius:2px;background:var(--accent,#087ea8)}
.management-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;min-width:0}
.management-summary-card{display:flex;flex-direction:column;justify-content:space-between;gap:7px;min-height:98px;padding:15px 16px;border:1px solid #dce5eb;border-radius:11px;background:var(--surface,#fff);min-width:0}
.management-summary-card.is-warning{border-color:#ecd7a8;background:#fffaf0}.management-summary-card.is-success{border-color:#bde2cd;background:#f2fbf5}.management-summary-card.is-danger{border-color:#efc9c9;background:#fff7f7}
.management-summary-label{font-size:11px;color:#687686;line-height:1.35}.management-summary-value{font-size:22px;line-height:1.1;font-weight:750;letter-spacing:-.02em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.management-summary-meta{font-size:11px;color:#8a96a2;line-height:1.35;overflow-wrap:anywhere}
.management-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:13px;flex-wrap:wrap;margin:0;min-width:0}
/* Report sort and hide (report-arrange.js): the sort list and the hide boxes side by side, each box beside its words. */
.report-arrange{justify-content:flex-start;align-items:flex-start;margin:12px 0 4px}.report-arrange>label{display:grid;gap:5px;min-width:200px;margin:0;font-size:11px;color:#5f6d7b}.report-arrange-hide{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:0;padding:0;border:0;min-width:0}.report-arrange-hide legend{float:left;width:100%;padding:0;margin:0 0 5px;font-size:11px;color:#5f6d7b}.report-arrange-hide label{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:13px;color:inherit;white-space:nowrap}.report-arrange-hide input{margin:0;width:auto}
.management-toolbar-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;min-width:0;flex:1 1 auto}.management-toolbar-filters label{display:grid;gap:5px;min-width:145px;margin:0;font-size:11px;color:#5f6d7b}.management-toolbar-filters label.is-search{min-width:220px;flex:1 1 260px}.management-toolbar-filters input,.management-toolbar-filters select{min-height:40px;font-size:13px}.management-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:0 0 auto}.management-toolbar-actions button{min-height:40px;font-size:12px}
.management-table-wrap{overflow:auto;border:1px solid #dce5eb;border-radius:11px;background:var(--surface,#fff);min-width:0;-webkit-overflow-scrolling:touch}.management-table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0;font-size:12px}.management-table th,.management-table td{padding:12px 13px;border-bottom:1px solid #edf0f3;text-align:left;vertical-align:middle;white-space:nowrap}.management-table th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#627181;font-size:10px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.management-table tbody tr:last-child td{border-bottom:0}.management-table tbody tr:hover td{background:#fbfdfe}.management-table td.numeric,.management-table th.numeric{text-align:right;font-variant-numeric:tabular-nums}.management-table td.cell-primary{font-weight:650;color:#263442}.management-table td.cell-secondary{color:#6b7886;font-size:11px;white-space:normal;min-width:130px;max-width:260px}.management-table .management-row-action{color:var(--accent-dark,#075b7b);font-weight:650;text-decoration:none}.management-table .management-row-action:hover{text-decoration:underline}.management-table .management-row-action:focus-visible{outline:3px solid #229dca55;outline-offset:3px;border-radius:3px}
/* Flexible report tables (report-arrange.js toolkit): sticky header row, first column and totals row; sortable headers; column chooser. */.report-flex-wrap{max-height:72vh}.report-flex-table thead th{position:sticky;top:0;z-index:2;background:var(--surface,#fff)}.report-flex-table .report-flex-first{position:sticky;left:0;z-index:1;background:var(--surface,#fff)}.report-flex-table thead th.report-flex-first{z-index:3}.report-flex-table tfoot td{position:sticky;bottom:0;z-index:1;background:var(--surface,#fff);font-weight:700;border-top:2px solid #b8c6d0}.report-flex-table tfoot td.report-flex-first{z-index:2}.report-flex-sort{background:none;border:0;padding:0;margin:0;font:inherit;font-weight:inherit;color:inherit;cursor:pointer;text-align:inherit;min-height:0}.report-flex-sort:focus-visible{outline:2px solid currentColor;outline-offset:2px}.report-view-toolbar{flex-wrap:wrap;gap:10px 16px;align-items:flex-end}.report-columns{position:relative}.report-columns summary{cursor:pointer;font-weight:600;padding:8px 0}.report-columns-panel{position:absolute;z-index:6;top:100%;left:0;background:var(--surface,#fff);border:1px solid #dce5eb;border-radius:10px;box-shadow:0 10px 28px rgba(15,30,45,.14);padding:10px 12px;min-width:320px;max-height:60vh;overflow:auto}.report-columns ol{margin:0 0 8px;padding-left:22px}.report-columns li{display:flex;align-items:center;gap:6px;margin:2px 0}.report-columns li label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;flex:1;font-weight:500}.report-columns li input[type=checkbox]{width:auto;min-height:0;margin:0}.report-columns li button{padding:2px 8px;min-height:0;font-size:12px}.report-period{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end}
.management-status{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:4px 8px;border-radius:999px;background:#eef1f4;color:#4b5c6d;font-size:10px;font-weight:700;line-height:1.2;white-space:nowrap}.management-status::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.75}.management-status.is-success{background:#dff4e7;color:#146343}.management-status.is-warning{background:#fff0ca;color:#795900}.management-status.is-danger{background:#fde5e5;color:#9b2929}.management-status.is-info{background:#eaf7fc;color:#075b7b}.management-status.is-muted{background:#eef1f5;color:#657080}
.management-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding-top:2px;color:#6b7886;font-size:11px}.management-pagination-summary{overflow-wrap:anywhere}.management-pagination-actions{display:flex;align-items:center;gap:6px}.management-pagination button{min-height:34px;padding:6px 10px;font-size:11px}.management-pagination button[aria-current="page"]{background:#eaf7fc;color:var(--accent-dark,#075b7b);border-color:#b9deed}.management-pagination button:disabled{opacity:.42}
.management-empty{display:grid;justify-items:center;gap:7px;padding:42px 18px;text-align:center;border:1px dashed #cbd7df;border-radius:11px;background:#fbfcfd;color:#657080}.management-empty strong{font-size:14px;color:#344555}.management-empty p{max-width:50ch;margin:0;font-size:12px;line-height:1.5}
.management-column-picker{position:relative}.management-column-picker>summary{display:inline-flex;align-items:center;gap:6px;list-style:none;cursor:pointer;min-height:40px;padding:9px 12px;border:1px solid var(--line,#e8eaf0);border-radius:8px;background:#fff;color:#455668;font-size:12px;font-weight:600}.management-column-picker>summary::-webkit-details-marker{display:none}.management-column-picker[open]>summary{border-color:#b9deed;background:#eef8fc;color:var(--accent-dark,#075b7b)}.management-column-picker-panel{position:absolute;right:0;z-index:4;display:grid;gap:7px;width:min(270px,calc(100vw - 36px));margin-top:6px;padding:12px;border:1px solid #dce5eb;border-radius:10px;background:#fff;box-shadow:0 13px 30px #20314722}.management-column-picker-panel label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500}.management-column-picker-panel input{width:16px;height:16px;margin:0;accent-color:var(--accent,#087ea8)}
.management-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.management-detail-card{min-width:0;padding:15px;border:1px solid #dce5eb;border-radius:11px;background:#fff}.management-detail-card h3,.item-profit-totals>h2{margin:0 0 10px;font-size:13px}.management-detail-card dl{display:grid;grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr);gap:7px 13px;margin:0;font-size:12px}.management-detail-card dt{color:#73808d}.management-detail-card dd{margin:0;font-weight:600;overflow-wrap:anywhere}.management-detail-card.full-width{grid-column:1/-1}
@media(max-width:980px){.management-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.management-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.management-header{display:grid;gap:13px}.management-header-actions{justify-content:flex-start}.management-summary-grid{grid-template-columns:1fr 1fr;gap:8px}.management-summary-card{min-height:88px;padding:12px}.management-summary-value{font-size:19px}.management-toolbar{align-items:stretch}.management-toolbar-filters{display:grid;grid-template-columns:1fr 1fr;width:100%}.management-toolbar-filters label,.management-toolbar-filters label.is-search{min-width:0}.management-toolbar-filters label.is-search{grid-column:1/-1}.management-toolbar-actions{width:100%}.management-toolbar-actions button,.management-column-picker{flex:1}.management-column-picker>summary{justify-content:center;width:100%}.management-table{min-width:680px}.management-table th,.management-table td{padding:10px}.management-pagination{align-items:stretch;flex-direction:column}.management-pagination-actions{justify-content:flex-end}.management-detail-grid{grid-template-columns:1fr}.management-detail-card.full-width{grid-column:auto}}
@media(max-width:390px){.management-summary-grid{grid-template-columns:1fr}.management-toolbar-filters{grid-template-columns:1fr}.management-toolbar-filters label.is-search{grid-column:auto}}

/* Location setup editor */
.location-editor-list,.location-assignment-list{display:grid;gap:.65rem;margin:.75rem 0 1.25rem}
.location-editor-row,.location-assignment-row{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;padding:.65rem;border:1px solid var(--border,#d9e1ea);border-radius:.55rem;background:var(--surface,#fff)}
.location-editor-row input:not([type=checkbox]),.location-editor-row select{min-width:10rem;flex:1}
.location-editor-row input[type=checkbox]{width:auto;flex:0 0 auto}
.location-check{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:0 .5rem;margin:0;cursor:pointer}.location-check input[type=checkbox]{width:20px;height:20px}
.location-add-row{display:flex;align-items:end;gap:.65rem;flex-wrap:wrap;margin:.75rem 0 1.25rem}
.location-add-row label{flex:1;min-width:12rem}
.location-assignment-row strong{min-width:13rem}
.location-assignment-row label{display:inline-flex;align-items:center;gap:.3rem}

/* Branch and counter reporting */
.location-report-workspace{display:grid;gap:1.25rem;min-width:0}
.location-report-workspace .management-toolbar-filters{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr))}
.location-report-workspace .management-tabs>button[aria-pressed="true"]{background:#e8f7fc;border-color:#8dd4e9;color:#006684;font-weight:700}
.location-report-quick-ranges,.location-report-statuses{display:flex;gap:.55rem;flex-wrap:wrap}
.location-report-scope{padding:.9rem 1.1rem;background:#edf7fb;border:1px solid #cde8f2;border-radius:12px;color:#16556f}
.location-report-overview{display:grid;gap:.8rem}
.location-report-breakdown,.location-report-documents,.location-report-detail{background:#fff;border:1px solid var(--border,#d9e1ea);border-radius:16px;padding:1.25rem;min-width:0}
.location-report-breakdown .management-toolbar,.location-report-documents .management-toolbar{padding:0 0 1rem;border:0;box-shadow:none}
.location-report-subline{display:block;color:#64748b;font-size:.82rem;margin-top:.3rem}
.location-report-total{font-weight:700;background:#f3f7fb}
.location-report-empty{text-align:center;padding:2rem!important;color:#64748b}
.location-report-detail dl{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:.7rem 1.5rem}
.location-report-detail dt{font-weight:600;color:#64748b}.location-report-detail dd{margin:0;overflow-wrap:anywhere}
#dashboardLocationReportsHost:not([hidden]){margin-bottom:1.5rem}
@media(max-width:900px){.location-report-workspace .management-toolbar-filters{grid-template-columns:repeat(2,minmax(130px,1fr))}}
@media(max-width:540px){.location-report-workspace .management-toolbar-filters{grid-template-columns:1fr}.location-report-breakdown,.location-report-documents,.location-report-detail{padding:.85rem}.location-report-detail dl{grid-template-columns:1fr;gap:.25rem}.location-report-detail dd{margin-bottom:.6rem}}

/* Scoped customer and supplier invoice balances */
.counterparty-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));align-items:end;padding:16px;background:#fff;border:1px solid #dce5eb;border-radius:11px}
.counterparty-filters label{display:grid;gap:6px;margin:0;font-size:12px;color:#5f6d7b;min-width:0}.counterparty-filters input,.counterparty-filters select{min-width:0;min-height:40px;font-size:13px}.counterparty-filters button{justify-self:start;min-width:130px}
.counterparty-reports .management-tabs>button[aria-pressed="true"],#locationreports>.management-tabs>button[aria-pressed="true"]{background:#eef8fc;color:#075b7b;border-bottom:2px solid #087ea8}
.counterparty-reports .management-detail-card{display:grid;gap:14px}.counterparty-reports .management-detail-card>h3{margin:0}.counterparty-reports .management-row-action{border:0;background:transparent;padding:0;min-height:28px;text-align:left;font-size:inherit;width:auto}.counterparty-reports .management-pagination select{width:auto;min-width:100px}
.counterparty-columns{font-size:12px;padding:10px 12px;border:1px solid #dce5eb;border-radius:8px}.counterparty-columns summary{cursor:pointer;font-weight:600}.counterparty-columns label{display:inline-flex;gap:7px;align-items:center;margin:10px 18px 2px 0;font-size:12px}.counterparty-columns input{width:16px;height:16px;margin:0}
.counterparty-reports .notice{font-size:12px;line-height:1.6;margin:0}.counterparty-reports .message:empty{display:none}
@media(max-width:720px){.counterparty-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.counterparty-reports .management-pagination{flex-wrap:wrap}}
@media(max-width:440px){.counterparty-filters{grid-template-columns:1fr}.counterparty-reports .management-detail-card{padding:10px}}

/* A compact document register and editor for management sales. */
.sales-workspace{display:grid;gap:1rem;min-width:0}
.sales-local-notice{border-left:4px solid var(--accent,#087fa3);padding:1rem;background:#eff8fc}
.sales-register-controls{display:grid;grid-template-columns:minmax(12rem,2fr) repeat(2,minmax(9rem,1fr)) auto auto;gap:.75rem;align-items:end}
.sales-register-controls label,.sales-draft-fields label{display:grid;gap:.4rem}
.sales-draft-register{overflow:auto;border:1px solid #e0e6ee;border-radius:12px;background:white}
.sales-draft-register table{width:100%;border-collapse:collapse;min-width:750px;text-align:left}
.sales-draft-register th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:#65778d;background:#f7f9fc}
.sales-draft-register td,.sales-draft-register th{padding:.85rem 1rem;border-bottom:1px solid #edf0f5;vertical-align:middle}
.sales-draft-register tr:last-child td{border-bottom:0}
.sales-register-paging{display:flex;gap:1rem;justify-content:flex-end;align-items:center}
.sales-draft-editor{display:grid;gap:1rem}
.sales-draft-editor[hidden]{display:none}
.sales-draft-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.sales-draft-editor>label{display:grid;gap:.4rem}
.sales-draft-line{display:grid;grid-template-columns:minmax(10rem,2fr) minmax(10rem,2fr) minmax(4rem,.7fr) minmax(6rem,1fr) auto auto;gap:.6rem;align-items:center;padding:.75rem 0;border-bottom:1px solid #e7edf3}
.sales-draft-line input,.sales-draft-line select{min-width:0}
.sales-draft-history{border-top:1px solid #e7edf3;padding-top:.7rem;color:#617187}
.sales-deleted-inspection .toolbar{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.sales-deleted-inspection .toolbar h2{flex:1 1 20rem;margin:0}.sales-deleted-inspection>label{display:grid;gap:.4rem;max-width:25rem}.sales-deleted-inspection dl{display:grid;grid-template-columns:minmax(8rem,10rem) minmax(0,1fr);gap:.3rem 1rem}.sales-deleted-inspection dt{color:var(--muted)}.sales-deleted-inspection dd{margin:0;overflow-wrap:anywhere}.sales-deleted-inspection table{width:100%;margin:1rem 0}.sales-deleted-inspection td:nth-child(n+2){font-variant-numeric:tabular-nums}.sales-deleted-inspection td:first-child{min-width:10rem}.sales-deleted-inspection #sales-workspace-inspectionDetails{overflow-x:auto}.sales-deleted-inspection #sales-workspace-inspectionHistory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;border-top:1px solid var(--line);padding-top:1rem}.sales-deleted-inspection #sales-workspace-inspectionHistory h3{grid-column:1/-1;margin:0}.sales-deleted-inspection article{border:1px solid var(--line);border-radius:.5rem;padding:.75rem}.sales-deleted-inspection article p{margin:.3rem 0;overflow-wrap:anywhere}.sales-deleted-inspection [hidden]{display:none!important}
@media(max-width:650px){.sales-deleted-inspection #sales-workspace-inspectionHistory{grid-template-columns:1fr}.sales-deleted-inspection dl{grid-template-columns:minmax(6rem,8rem) minmax(0,1fr)}}
@media(max-width:1100px){.sales-register-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-draft-line{grid-template-columns:2fr 2fr 1fr 1fr}.sales-draft-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.sales-register-controls,.sales-draft-fields{grid-template-columns:1fr}.sales-draft-line{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-register-paging{justify-content:space-between}}
.sales-workspace[hidden]{display:none}.sales-workspace .notice:empty{display:none}
/* Retained edit comparisons must not widen the workspace around their saved line tables. */
.sales-draft-history-tools,.sales-history-review-detail,.sales-draft-edit-changes,#sales-workspace-draftHistoryPreview{min-width:0;max-width:100%}
.sales-draft-edit-changes>h3,.sales-draft-edit-changes>p{overflow-wrap:anywhere}
.sales-edit-comparison{width:100%;table-layout:fixed}
.sales-edit-comparison>thead>tr>th:first-child,.sales-edit-comparison>tbody>tr>th{width:20%}
.sales-edit-comparison>thead>tr>th,.sales-edit-comparison>tbody>tr>th,.sales-edit-comparison>tbody>tr>td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.sales-edit-side-label{display:none}
.sales-edit-lines-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line,#e2e6eb);border-radius:6px}
.sales-edit-lines-scroll:focus-visible{outline:2px solid var(--accent,#087fa3);outline-offset:3px}
.sales-edit-lines{min-width:680px;margin:0}
.sales-edit-lines th,.sales-edit-lines td{white-space:nowrap;font-variant-numeric:tabular-nums}
.sales-edit-lines th:first-child,.sales-edit-lines td:first-child{min-width:160px;max-width:260px;white-space:normal;overflow-wrap:anywhere}
.sales-edit-comparison .sales-edit-scroll-hint{font-size:12px;margin:0 0 8px}
.sales-edit-totals{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .75rem;margin:.8rem 0 0}
.sales-edit-totals dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:650px){.sales-edit-comparison,.sales-edit-comparison>tbody,.sales-edit-comparison>tbody>tr,.sales-edit-comparison>tbody>tr>th,.sales-edit-comparison>tbody>tr>td{display:block;width:100%;min-width:0}.sales-edit-comparison>thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.sales-edit-comparison>tbody>tr{margin-bottom:1rem;border:1px solid var(--line,#e2e6eb);border-radius:6px;overflow:hidden}.sales-edit-comparison>tbody>tr>th,.sales-edit-comparison>tbody>tr>td{padding:12px;border-bottom:0}.sales-edit-comparison>tbody>tr>td+td{border-top:1px solid var(--line,#e2e6eb)}.sales-edit-side-label{display:block;font-size:12px;font-weight:700;margin-bottom:10px}.sales-edit-totals{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.sales-draft-editor textarea{width:100%;min-height:90px;padding:.75rem;font:inherit;color:inherit;background:#fff;border:1px solid #dce5eb;border-radius:9px;resize:vertical}
.sales-vat-controls{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;background:#f3f8fb;border:1px solid #dce8ef;border-radius:10px}.sales-vat-controls label{display:flex;align-items:center;gap:.65rem;white-space:nowrap;font-weight:600}.sales-vat-controls input[type=checkbox]{min-height:0;width:auto;margin:0;accent-color:var(--accent,#087fa3)}.sales-vat-controls p{margin:0;font-size:.85rem}.sales-vat-totals{justify-self:end;min-width:min(100%,330px);margin:0;padding:1rem 1.2rem;border:1px solid #dce8ef;border-radius:12px;background:#f8fbfd}.sales-vat-totals>div{display:flex;justify-content:space-between;gap:2rem;padding:.4rem 0}.sales-vat-totals dt,.sales-vat-totals dd{margin:0}.sales-vat-totals dd{font-variant-numeric:tabular-nums;font-weight:600}.sales-vat-totals .sales-vat-grand{border-top:1px solid #cfdee8;margin-top:.5rem;padding-top:.9rem;font-size:1.1rem;font-weight:700}.sales-draft-line{grid-template-columns:minmax(10rem,1.5fr) minmax(9rem,1.5fr) minmax(4rem,.65fr) minmax(6rem,.85fr) minmax(10rem,1.2fr) minmax(7rem,auto) auto auto}
.sales-line-total{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600;text-align:right}
@media(max-width:1200px){.sales-draft-line{grid-template-columns:minmax(9rem,1.5fr) minmax(9rem,1.5fr) minmax(4rem,.7fr) minmax(6rem,1fr)}.sales-vat-controls{align-items:flex-start;flex-direction:column}.sales-draft-line>select{grid-column:1/3}}@media(max-width:650px){.sales-draft-line{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-vat-totals{width:100%;min-width:0;box-sizing:border-box}.sales-vat-controls label{white-space:normal}}
.sales-invoice-posting{border-top:1px solid #dce8ef;margin-top:.5rem;padding-top:1rem}.sales-invoice-posting[hidden]{display:none}.sales-delivery-choice{display:flex;align-items:center;gap:.65rem;font-weight:600}.sales-delivery-choice input[type=checkbox]{width:auto;min-height:0;margin:0;accent-color:var(--accent,#087fa3)}
.sales-stock-tools{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1rem;background:#f5f9fc;border:1px solid #dce8ef;border-radius:10px}.sales-stock-tools p{margin:0;font-size:.85rem}.sales-stock-tools button{white-space:nowrap}.sales-line-stock{grid-column:1/-1;margin:0;font-size:.8rem;line-height:1.5}.sales-line-stock.stock-available{color:#176846}.sales-line-stock.stock-needs-attention{color:#825407}.sales-stock-warning{margin-top:1rem}.sales-stock-warning[hidden]{display:none}.sales-stock-warning ul{padding-left:1.3rem;margin:.65rem 0}.sales-stock-warning li{padding:.25rem 0;overflow-wrap:anywhere}.sales-stock-warning .actions{margin-top:.75rem}@media(max-width:650px){.sales-stock-tools{align-items:stretch;flex-direction:column}}
.sales-invoice-payments{border-top:1px solid #dce8ef;margin-top:1.25rem;padding-top:1rem;min-width:0}.sales-invoice-payments[hidden],.sales-payment-form[hidden]{display:none}.sales-payment-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.sales-payment-heading h3{margin:0}.sales-payment-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0}.sales-payment-balances>div{display:grid;gap:.4rem;border:1px solid #dce8ef;border-radius:10px;padding:.9rem;background:#f8fbfd}.sales-payment-balances span{font-size:.8rem;color:#617187}.sales-payment-balances strong{font-size:1.1rem;font-variant-numeric:tabular-nums}.sales-payment-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:1rem;margin-top:1rem;border:1px solid #dce8ef;border-radius:12px;background:#f8fbfd}.sales-payment-form>p,.sales-payment-form>label:has(textarea),.sales-payment-form>.actions{grid-column:1/-1}.sales-payment-form label{display:grid;gap:.4rem}.sales-payment-form textarea{min-height:65px}.sales-payment-history{overflow:auto;margin-top:1rem}.sales-payment-history table{min-width:720px}.sales-payment-history td{vertical-align:middle}.sales-payment-history h4{font-size:.95rem;margin:.75rem 0}.sales-payment-recovery:empty{display:none}.sales-payment-recovery{margin-top:1rem;padding:1rem;background:#fff9ef;border:1px solid #ecd49f;border-radius:10px;overflow-wrap:anywhere}.sales-draft-register td:last-child{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}@media(max-width:650px){.sales-payment-balances,.sales-payment-form{grid-template-columns:1fr}.sales-payment-heading{align-items:stretch;flex-direction:column}}

/* Current native batch values are separate from the locally registered quantity. */
.batch-valuation-table th,.batch-valuation-table td:first-child,.batch-valuation-table td:last-child{white-space:normal;overflow-wrap:anywhere}.batch-valuation-report .empty{padding:24px 16px}.inventory-use-detail{scroll-margin-top:20px}
.batch-valuation-report{border-top:3px solid var(--accent,#087fa3);min-width:0}.batch-valuation-report[hidden]{display:none}.batch-valuation-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.batch-valuation-heading h3{margin:.25rem 0}.batch-valuation-heading button{white-space:nowrap}.batch-valuation-status{font-size:.8rem;color:#526b7e;margin:.9rem 0}.batch-valuation-table-wrap{overflow:auto;border:1px solid #dce7ee;border-radius:12px}.batch-valuation-table{width:100%;min-width:850px;border-collapse:collapse;text-align:left;background:#fff}.batch-valuation-table caption{text-align:left;padding:.8rem 1rem;font-weight:600;background:#f8fbfd}.batch-valuation-table th{font-size:.76rem;letter-spacing:.02em;color:#536b7e;background:#f2f7fa}.batch-valuation-table th,.batch-valuation-table td{padding:.95rem 1rem;border-bottom:1px solid #e6edf2;vertical-align:top}.batch-valuation-table tbody tr:last-child td{border-bottom:0}.batch-valuation-table td:first-child{min-width:190px}.batch-valuation-table td:first-child>*{display:block}.batch-valuation-table .secondary{font-size:.8rem;line-height:1.5;margin:.35rem 0 0}.batch-valuation-number{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.batch-valuation-verified,.batch-valuation-unavailable{display:inline-block;padding:.28rem .55rem;border-radius:30px;font-size:.75rem;font-weight:600;white-space:nowrap}.batch-valuation-verified{color:#14634a;background:#e8f5ef}.batch-valuation-unavailable{color:#865b14;background:#fff5df}.batch-valuation-table td:last-child button{display:block;margin-top:.7rem;padding:.4rem .7rem;min-height:34px}.batch-valuation-detail,.batch-cost-history{border-top:1px solid #dce7ee;margin-top:1.1rem;padding-top:1rem}.batch-valuation-detail h4,.batch-cost-history h4{margin:0 0 .5rem;font-size:1rem}.batch-valuation-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1rem 0}.batch-valuation-metrics>div{padding:1rem;background:#f3f9fc;border:1px solid #dce7ee;border-radius:12px}.batch-valuation-metrics dt{font-size:.8rem;color:#536b7e;margin-bottom:.6rem}.batch-valuation-metrics dd{margin:0;font-size:1.15rem;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.batch-cost-history-entry{padding:.9rem 0;border-bottom:1px solid #e6edf2}.batch-cost-history-entry:last-child{border-bottom:0}.batch-cost-history-entry p{margin:.4rem 0}.batch-cost-history-entry button{margin-top:.45rem}@media(max-width:720px){.batch-valuation-heading{align-items:flex-start;flex-direction:column}.batch-valuation-heading button{align-self:stretch}.batch-valuation-metrics{grid-template-columns:1fr}}
.expense-form{max-width:1080px}.expense-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.expense-form-grid label small{font-weight:400;color:#607184;line-height:1.35}.expense-draft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.expense-draft-card{padding:16px;min-width:0}.expense-draft-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.expense-draft-heading strong{overflow-wrap:anywhere}.expense-draft-total{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0}.expense-draft-total strong{font-size:1.15rem}.expense-draft-total span{font-size:.8rem;color:#5c6877}.expense-draft-card .notice{font-size:.8rem;margin:12px 0}.expense-draft-card .actions{display:flex;gap:8px;flex-wrap:wrap}.expense-draft-card .actions button{min-height:36px;padding:7px 12px;font-size:12px}@media(max-width:680px){.expense-form-grid,.expense-draft-grid{grid-template-columns:1fr}}


.expense-line{min-width:0;border:1px solid var(--line,#dce7ee);border-radius:12px;padding:16px;margin:16px 0}.expense-line legend{padding:0 8px;font-weight:650}.expense-line .expense-form-grid>*{min-width:0}.expense-line input,.expense-line select{max-width:100%;width:100%;box-sizing:border-box}.expense-line-total,.expense-document-totals{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.6}.expense-document-totals{padding:12px 16px;border:1px solid var(--line,#dce7ee);border-radius:10px;font-weight:650}.expense-draft-card p{overflow-wrap:anywhere}@media(max-width:680px){.expense-line{padding:12px}.expense-line>button,#addExpenseLine{width:100%}}

/* History action approvals are distinct from document-content approval. */
.sales-history-reviews[hidden]{display:none}.sales-history-reviews{min-width:0;scroll-margin-top:20px}.sales-history-reviews .actions{display:flex;flex-wrap:wrap;gap:.65rem;margin:.8rem 0}.sales-history-reviews>label,.sales-history-review-detail>label{display:grid;gap:.45rem;margin:1rem 0}.sales-history-reviews select{max-width:28rem;width:100%;color:inherit;background:var(--surface,#fff)}.sales-history-reviews textarea{box-sizing:border-box;min-height:95px;width:100%;padding:.75rem;font:inherit;color:inherit;background:var(--surface,#fff);border:1px solid var(--line,#e8eaf0);border-radius:9px;resize:vertical}.sales-history-review-row{padding:1rem 0;border-bottom:1px solid var(--line,#e8eaf0)}.sales-history-review-row:last-child{border-bottom:0}.sales-history-review-row p{margin:.45rem 0}.sales-history-review-detail{border-top:1px solid var(--line,#e8eaf0);padding-top:1rem;margin-top:1rem}.sales-history-review-detail li,.sales-history-review-detail p,.sales-history-review-row p{overflow-wrap:anywhere}.sales-history-review-detail li{padding:.25rem 0}.sales-history-review-detail .check-label{display:flex;align-items:flex-start;gap:.65rem}.sales-history-review-detail .check-label input{width:auto;min-height:0;margin:.3rem 0 0;accent-color:var(--accent,#087fa3)}@media(max-width:650px){.sales-history-reviews .actions{align-items:stretch;flex-direction:column}.sales-history-reviews .actions button{width:100%}}

/* Multi-item stock requests keep item, quantity, location and account together. */
.inventory-use-requests .settings-form{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.inventory-use-requests .settings-form>h3,.inventory-use-requests .settings-form>p,.inventory-use-requests .settings-form>div,.inventory-use-requests .settings-form>button{grid-column:1/-1}.stock-use-request-row{display:grid;grid-template-columns:minmax(160px,1.5fr) minmax(85px,.65fr) minmax(150px,1fr) minmax(180px,1.5fr);gap:14px;margin:0 0 18px;border:1px solid var(--line,#cbd1d9);border-radius:12px;padding:16px;min-width:0}.stock-use-request-row legend{padding:0 8px;font-weight:600}.stock-use-request-row .stock-use-reason{grid-column:1/4}.stock-use-request-row>span{align-self:end;font-size:13px}.stock-use-request-row>button{grid-column:4;justify-self:end}.inventory-use-requests .stock-use-table{overflow-x:auto;margin:18px 0}.inventory-use-requests table{width:100%;min-width:750px;border-collapse:collapse;font-size:14px}.inventory-use-requests th,.inventory-use-requests td{text-align:left;padding:12px;border-bottom:1px solid var(--line,#dfe3e8);vertical-align:top}.inventory-use-requests section.panel{margin:16px 0}.inventory-use-requests section.panel>button{margin:5px 8px 5px 0}.inventory-use-requests input[type=checkbox]{width:22px;height:22px;min-height:0;justify-self:start}.inventory-use-requests [role=status]:empty{display:none}@media(max-width:900px){.stock-use-request-row{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-use-request-row .stock-use-reason{grid-column:1/-1}.stock-use-request-row>button{grid-column:2}}@media(max-width:540px){.inventory-use-requests .settings-form,.stock-use-request-row{grid-template-columns:minmax(0,1fr)}.stock-use-request-row>button{grid-column:1}.inventory-use-requests .settings-form{padding:16px}.stock-use-request-row{padding:12px}}

.inventory-use-target-locations{grid-column:1/-1;min-width:0;padding:16px;border:1px solid var(--line,#cbd1d9);border-radius:10px}
.inventory-use-target-locations legend{padding:0 6px;font-weight:600}
.inventory-use-target-locations .check-label{margin:10px 0;overflow-wrap:anywhere}

/* Business-owned container movement controls and configuration share the workspace theme. */
.master-item-not-sold{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px}.master-item-not-sold small{grid-column:1/-1}.returnables-setting-container input[readonly]{border-style:dashed;color:var(--muted);cursor:not-allowed}.returnables-settings{margin-top:20px}.returnables-settings summary{cursor:pointer;font-weight:600}.returnables-settings .settings-form{max-width:900px;display:grid;gap:18px}.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row{min-width:0;border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 16px;display:grid;gap:14px}.returnables-setting-container legend,.returnables-setting-pack legend,.returnables-setting-pool legend,.returnables-container-row legend{padding:0 6px;font-weight:600}.returnables-setting-component{display:grid;grid-template-columns:minmax(0,1fr) 150px auto;gap:12px;align-items:end;margin:0 0 14px}.returnables-setting-component label{min-width:0}.returnables-settings .check-label{justify-content:space-between;align-items:center}.returnables-form{display:grid;gap:16px;margin-top:24px;max-width:900px}.returnables-form label{min-width:0}.returnables-drafts{display:grid;gap:16px}.returnables-statement{overflow-x:auto;margin-top:16px}.returnables-settings button{justify-self:start}.returnables-settings .message:empty{display:none}
@media(max-width:650px){.returnables-setting-component{grid-template-columns:minmax(0,1fr) 100px}.returnables-setting-component button{grid-column:1/-1}.returnables-settings input,.returnables-settings select,.returnables-form input,.returnables-form select{font-size:16px}}
.returnables-correction-form{display:grid;gap:16px;margin-top:24px;max-width:900px}.returnables-correction-form label,.returnables-correction-form>div{min-width:0}.returnables-correction-row{min-width:0;border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 16px;display:grid;gap:12px}.returnables-correction-row legend{padding:0 6px;font-weight:600}.returnables-correction-row p{margin:0;overflow-wrap:anywhere}.returnables-correction-row input[type=checkbox]{width:auto;justify-self:start}.returnables-correction-form textarea{min-height:80px;resize:vertical}@media(max-width:650px){.returnables-correction-form input,.returnables-correction-form textarea{font-size:16px}}
/* Keep wide credit lines inside their card so the saved actions stay reachable. */
.returnables-draft{min-width:0;overflow-wrap:anywhere}.returnables-draft>table{display:block;max-width:100%;overflow-x:auto}.returnables-draft>.actions{min-width:0;align-items:flex-start}.returnables-draft>.actions>label{flex:1 1 100%;min-width:0}.returnables-draft>.actions textarea{width:100%;min-width:0;max-width:100%}@media(max-width:650px){.returnables-draft>.actions>button{flex:1 1 100%;white-space:normal}}
/* Missing/damaged container rows and their saved results share these product styles. */
.returnables-losses,.returnables-loss-panel,.returnables-loss-form,.returnables-loss-batch{min-width:0;max-width:100%}
.returnables-print-preview{margin-top:24px;min-width:0;max-width:100%}.returnables-print-preview .actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.returnables-print-preview iframe{display:block;width:100%;height:70vh;min-height:360px;border:1px solid #cbd7df;border-radius:8px;background:#fff}.returnables-print-preview:focus{outline:3px solid #229dca66;outline-offset:3px}@media(max-width:650px){.returnables-print-preview{padding:16px}.returnables-print-preview iframe{height:65vh;min-height:300px}}
.returnables-loss-panel{margin-top:16px}.returnables-loss-panel button{margin:4px 8px 4px 0}
.returnables-loss-form{display:grid;gap:16px;max-width:900px;margin-top:20px}
.returnables-loss-form label{display:flex;flex-direction:column;gap:6px;min-width:0}
.returnables-loss-row{min-width:0;border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 16px;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,2fr);gap:12px}
.returnables-loss-row legend{padding:0 6px;font-weight:600}.returnables-loss-row p,.returnables-loss-row button{grid-column:1/-1}
.returnables-loss-batch{margin-top:18px;overflow-wrap:anywhere}.returnables-loss-table{max-width:100%;overflow-x:auto;margin:16px 0}.returnables-loss-table table{min-width:820px;width:100%}
@media(max-width:700px){.returnables-loss-row{grid-template-columns:minmax(0,1fr)}.returnables-loss-panel,.returnables-loss-batch{padding:16px}.returnables-loss-form input,.returnables-loss-form select,.returnables-loss-form textarea{font-size:16px}}
/* Workspace UX rules formerly injected by app.js as an inline <style>, which the Content Security Policy blocks. */
.print-custom-size{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px;padding:10px 12px;border:1px solid #dfe5ea;border-radius:9px;background:#f7fbfd}.print-custom-size>p{grid-column:1/-1;margin:0}.cart-panel #saveOrder{position:sticky;bottom:12px;z-index:3;box-shadow:0 3px 10px #11263a1a}.company-setup-checklist{margin:12px 0 0;padding:10px 12px;border-left:3px solid #1385a8;background:#f2f9fc;line-height:1.6}@media(max-width:600px){.print-custom-size{grid-template-columns:1fr}.pos-page .cart-panel #saveOrder{bottom:72px}}
/* The current sale shows everything at once, like common restaurant tills (owner, 25 Oct 2026: "just to save the order
   I must scroll very far down"; 26 Oct: "no scrolling, you can remove unnecessary texts, all fields should be seen at
   once"): a one-line heading, customer and order type side by side with the note under them, one line per item (name,
   − qty +, amount, remove), and the total with the create button at the bottom. On wider screens the panel ends at the
   bottom of the window (app.js keeps --cart-top up to date) and only the item lines scroll, when there are many. Phones
   keep one column, the order bar and the floating button (the two wrappers add no box there). */
.cart-body,.cart-footer{display:contents}.cart-footer>.secondary{margin:0;font-size:10px;text-align:center;line-height:1.6}
body.pos-page .cart-panel{padding:14px}body.pos-page .cart-heading{display:flex;align-items:center;gap:8px;padding:0 0 10px;margin:0 0 10px}body.pos-page .cart-heading h2{flex:1;margin:0;font-size:16px;gap:8px}body.pos-page .cart-heading .item-count{height:22px;min-width:24px;font-size:11px}body.pos-page .cart-heading .mobile-back-menu{margin:0}
.cart-fields{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:6px}.cart-fields>label{display:block;margin:0}.cart-fields>label[hidden]{display:none}.cart-fields>#posOrderNoteLabel{grid-column:1/-1}.cart-fields:has(>#posOrderTypeLabel[hidden])>.cart-customer{grid-column:1/-1}body.pos-page .cart-fields :is(select,input){width:100%;min-height:34px;padding:6px 9px}
#orderCustomerHelp:empty,#orderCreditHelp:empty,#posCheckoutHelp:empty,#salesDirectMessage:empty{display:none}body.pos-page #orderCustomerHelp{display:block;margin:0;font-size:11px;line-height:1.4}
body.pos-page #orderCreditPanel:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;margin:0;padding:6px 9px;border-radius:8px}body.pos-page #orderCreditPanel .check-label{flex:none;width:auto;align-items:center;gap:8px;font-size:12px}body.pos-page #orderCreditPanel .check-label input{width:16px;height:16px;min-height:0;flex-basis:16px;margin:0;padding:0}body.pos-page #orderCreditPanel .secondary{margin:0;font-size:11px}
body.pos-page .cart-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(5,auto);align-items:center;gap:1px 3px;margin:0;padding:6px 2px;border:0;border-bottom:1px solid var(--line,#eef0f3);border-radius:0;background:none}body.pos-page .cart-row>strong{grid-area:1/1;margin-right:5px;font-size:12px;line-height:1.3;overflow-wrap:anywhere}body.pos-page .cart-row>.cart-controls{display:contents}body.pos-page .cart-controls>span{grid-area:2/1;margin:0;font-size:11px;font-weight:500}body.pos-page .cart-controls>:not(span){grid-row:1/3}body.pos-page .cart-row>:not(strong,.cart-controls){grid-column:1/-1;margin-top:4px}body.pos-page .cart-controls button{width:26px;min-width:26px;height:26px;min-height:26px}body.pos-page .cart-controls input{width:36px;height:26px;min-height:26px;padding:0 2px}body.pos-page .cart-controls .remove-cart{width:24px;min-width:24px;height:24px;min-height:24px;margin-left:3px}body.pos-page .cart-controls .cart-discount-toggle{margin-left:3px;font-size:11px;font-weight:700}body.pos-page .cart-controls .cart-discount-toggle[aria-expanded=true]{background:var(--accent,#087ea8);color:#fff}body.pos-page .cart-row .stock-warning{margin:0;font-size:10px;line-height:1.4}body.pos-page .cart-row .pricing-discount-control{margin:0}
body.pos-page .cart-panel .pricing-discount-control :is(select,input){min-height:28px;padding:3px 8px}body.pos-page .cart-empty{display:block;margin:0;padding:10px;border:1px dashed var(--line,#e2e6eb);border-radius:8px;text-align:center;font-size:12px;color:var(--control-muted,#85909e)}
body.pos-page .cart-panel .pricing-panel:not([hidden]){display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px 8px;margin:0;padding:8px 10px;border-radius:8px}body.pos-page .pricing-panel>strong{font-size:11px}body.pos-page .pricing-panel>:not(strong,.pricing-discount-control,.secondary,button){grid-column:1/-1;margin:0}body.pos-page .pricing-panel>.secondary{margin:0}body.pos-page .pricing-panel>button{grid-column:2;min-height:32px;margin:0;width:auto;justify-self:end;padding:4px 12px}body.pos-page .pricing-panel>strong+.pricing-discount-control+button,body.pos-page .pricing-panel>button:first-child{grid-column:1/-1;justify-self:stretch}body.pos-page .pricing-panel>button+.secondary{display:none}body.pos-page .pricing-panel .secondary{font-size:10px}body.pos-page .pricing-panel .pricing-totals>div{padding:2px 0}
body.pos-page .cart-total{margin:0;padding-top:8px;font-size:14px;align-items:baseline}body.pos-page .cart-total strong{font-size:18px}body.pos-page #posCheckoutHelp{margin:0;font-size:10px}body.pos-page :is(#salesDirectEntry,#parkOrder){width:100%;min-height:32px;margin-top:6px;padding:4px 8px;font-size:11px}body.pos-page #salesDirectMessage{margin:4px 0 0;font-size:11px}
@media(min-width:681px){.pos-page .cart-panel{display:flex;flex-direction:column;max-height:max(360px,calc(100vh - var(--cart-top,18px) - 18px));max-height:max(360px,calc(100dvh - var(--cart-top,18px) - 18px))}.pos-page .cart-panel>:not(#newOrderForm),.pos-page .cart-panel>#newOrderForm>:not(.cart-body),.pos-page .cart-panel .cart-body>:not(#cartLines){flex:none}.pos-page .cart-panel>#newOrderForm{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:0}.pos-page .cart-panel .cart-body{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:thin}.pos-page .cart-panel .cart-body>#cartLines{flex:none}.pos-page .cart-panel .cart-body>#cartLines:has(>.cart-row:nth-child(4)){flex:0 1 auto;min-height:140px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.pos-page .cart-panel .cart-footer{display:grid;gap:8px}.pos-page .cart-panel .cart-footer #saveOrder{position:static;box-shadow:none}body.pos-page .cart-panel :is(select,input){font-size:13px}}
@media(min-width:681px) and (max-width:900px){.control-shell.pos-page .cart-panel{top:80px}}
/* Staff permissions grouped by area (owner, 30 Oct 2026). */
#staffPermissionsList.permissions-grid{grid-template-columns:1fr}.permission-group{display:grid;grid-template-columns:1fr 1fr;gap:12px 15px;border:1px solid var(--line);border-radius:8px;padding:10px 12px 12px;margin:0;min-width:0}.permission-group legend{font-size:12px;font-weight:600;padding:0 4px}
@media(max-width:680px){.permission-group{grid-template-columns:1fr}}
/* Stock balances (public/stock-balances.js): Quantity and Value (cost) blocks, emphasised totals, a sticky header and a
   bold grand-total row. Display only. */
.stock-balances-wrap{max-height:72vh}.stock-balances-table thead{position:sticky;top:0;z-index:2}.stock-balances-table thead th{background:var(--surface,#fff)}.stock-balances-toggle{display:flex;align-items:center;gap:8px;margin:6px 0;font-weight:600}.stock-balances-toggle input{margin:0}.stock-balances-table .sb-bands th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#53606b;border-bottom:1px solid #dce5eb}.stock-balances-table td.sb-value{background-color:rgba(176,196,214,.10)}.stock-balances-table .sb-group-start{border-left:2px solid #cfdae2}.stock-balances-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.stock-balances-table .sb-total{font-weight:700}.stock-balances-table td.sb-total{background-color:rgba(120,150,175,.12)}.stock-balances-table thead th.sb-value{background:#f3f7fa}.stock-balances-table thead th.sb-total{background:#e9f0f5}.stock-balances-table tfoot .sb-grand th,.stock-balances-table tfoot .sb-grand td{font-weight:700;border-top:2px solid #b8c6d0;background:var(--surface,#fff)}.stock-balances-table tfoot .sb-grand th{text-align:right}.stock-balances-table tbody th{position:static;background:inherit;color:inherit;font-size:inherit;font-weight:600;letter-spacing:normal;text-transform:none}.stock-balances-wrap:focus-visible{outline:3px solid #229dca55;outline-offset:2px}.je-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:6px 0 10px}.je-filters label{display:grid;gap:4px;font-size:12px;color:#5c6877}.stock-balances-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:8px 0}.stock-balances-filters label{display:grid;gap:4px;font-size:12px;color:#5c6877;min-width:200px}.stock-balances-filters input,.stock-balances-filters select{font-size:13px}@media(max-width:680px){.stock-balances-filters{display:grid;grid-template-columns:1fr}.stock-balances-filters label{min-width:0}.stock-balances-filters input,.stock-balances-filters select{font-size:16px}}

/* Account statement (Money → account statement, W2 K): summary strip, view options, ledger table. In and out carry a
   sign or their own column as well as a colour; the opening and closing rows are bold and shaded. */
.money-statement{--ms-in:#1f6b4a;--ms-out:#a2412f;--ms-band:#eef1ef;--ms-rule:var(--control-line,#dfe3e0);--ms-muted:var(--control-muted,#5f6b66);--ms-ink:var(--control-ink,#1d2321);--ms-paper:var(--control-paper,#fff);--ms-accent:var(--control-accent,#2c5d73);display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
html[data-appearance="dark"] .money-statement{--ms-in:#5fbf8f;--ms-out:#e48a74;--ms-band:#222a27}
.money-statement .money-statement-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--ms-rule);border:1px solid var(--ms-rule);border-radius:8px;overflow:hidden}
.money-statement .money-statement-tile{background:var(--ms-paper);padding:12px 14px;display:grid;gap:3px;min-width:0}
.money-statement .money-statement-tile-label{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--ms-muted)}
.money-statement .money-statement-tile-value{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:500;font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.money-statement .money-statement-tile-note{font-size:12px;color:var(--ms-muted)}
.money-statement .money-statement-tile.is-in .money-statement-tile-value{color:var(--ms-in)}.money-statement .money-statement-tile.is-out .money-statement-tile-value{color:var(--ms-out)}
.money-statement .money-statement-tile.is-ok .money-statement-tile-note{color:var(--ms-in)}.money-statement .money-statement-tile.is-warning .money-statement-tile-note{color:var(--ms-out);font-weight:600}
@media(max-width:700px){.money-statement .money-statement-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
.money-statement .money-statement-controls{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}
.money-statement .money-statement-segment{display:inline-flex}.money-statement .money-statement-segment button,.money-statement .money-statement-chips button{font:inherit;font-size:13px;border:1px solid var(--ms-rule);background:var(--ms-paper);color:var(--ms-ink);padding:5px 10px;cursor:pointer;flex:none}
.money-statement .money-statement-segment button:first-child{border-radius:6px 0 0 6px}.money-statement .money-statement-segment button:last-child{border-radius:0 6px 6px 0;border-left:0}
.money-statement .money-statement-segment button[aria-pressed="true"]{background:var(--ms-accent);border-color:var(--ms-accent);color:var(--control-accent-ink,#fff)}
.money-statement .money-statement-chips{display:flex;flex-wrap:wrap;gap:6px}.money-statement .money-statement-chips button{border-radius:999px}
.money-statement .money-statement-chips button[aria-pressed="false"]{color:var(--ms-muted);text-decoration:line-through;background:transparent}
.money-statement .money-statement-segment button:focus-visible,.money-statement .money-statement-chips button:focus-visible,.money-statement .money-statement-columns summary:focus-visible{outline:2px solid var(--ms-accent);outline-offset:2px}
.money-statement .money-statement-columns{position:relative}.money-statement .money-statement-columns summary{cursor:pointer;font-size:13px;border:1px solid var(--ms-rule);border-radius:6px;padding:5px 10px;list-style:none}
.money-statement .money-statement-columns>div{position:absolute;z-index:3;margin-top:6px;background:var(--ms-paper);border:1px solid var(--ms-rule);border-radius:8px;padding:10px 12px;display:grid;gap:6px;min-width:180px;box-shadow:var(--control-shadow,0 6px 18px #0000001f)}
.money-statement .money-statement-columns label{display:flex;gap:8px;align-items:center;font-size:13px;min-width:0}
.money-statement .money-statement-note{font-size:13px;color:var(--ms-muted);margin:0}.money-statement .money-statement-note.is-warning,.money-statement .money-statement-unproven{color:var(--ms-out);font-weight:600}
.money-statement .money-statement-scroll{max-height:70vh;border:1px solid var(--ms-rule);border-radius:8px}
.money-statement .money-statement-table{min-width:720px}
.money-statement .money-statement-table thead th{position:sticky;top:0;z-index:1;background:var(--ms-paper);font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--ms-muted);border-bottom:2px solid var(--ms-ink);padding:9px 12px}
.money-statement .money-statement-table td{padding:8px 12px;vertical-align:top}
.money-statement .money-statement-table .numeric{text-align:right;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums;white-space:nowrap}
.money-statement .money-statement-table .money-in{color:var(--ms-in)}.money-statement .money-statement-table .money-out,.money-statement .money-statement-table .money-negative{color:var(--ms-out)}
.money-statement .money-statement-when{font-variant-numeric:tabular-nums}
.money-statement .money-statement-reference{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:var(--ms-muted);max-width:220px;overflow:hidden;text-overflow:ellipsis}
.money-statement .money-statement-description{white-space:normal;min-width:180px}.money-statement .money-statement-detail{display:block;font-size:12px;color:var(--ms-muted)}
.money-statement .money-statement-pill{font-size:11px;border:1px solid var(--ms-rule);border-radius:999px;padding:1px 7px;white-space:nowrap}
.money-statement .money-statement-row.is-opening td,.money-statement .money-statement-row.is-closing td,.money-statement .money-statement-row.is-totals td,.money-statement .money-statement-row.is-forward td{background:var(--ms-band);font-weight:700}
.money-statement .money-statement-row.is-closing td{border-top:2px solid var(--ms-ink);border-bottom:0}
.money-statement .money-statement-row.is-pending td{color:var(--ms-muted)}.money-statement .money-statement-row.is-pending .money-in,.money-statement .money-statement-row.is-pending .money-out{color:var(--ms-muted)}
.money-statement .money-statement-pending h4{margin:6px 0 4px}
.money-statement .money-statement-strip.is-branch-view{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Guided production entry: every cue pairs colour with words so it reads without colour. */
.guide-next{outline:3px solid var(--accent,#255c40);outline-offset:3px;border-radius:6px}
.guide-invalid{outline:2px solid var(--control-danger,#984b42);outline-offset:3px;border-radius:6px}
.guide-tag{display:inline-block;margin-top:4px;font-size:.8rem;font-weight:700}
.guide-error{margin:4px 0 0;font-size:.88rem;font-weight:700;color:var(--control-danger,#984b42);display:block}
.guide-errors[hidden]{display:none}
.sales-line-field{display:contents}.sales-line-field.guide-next,.sales-line-field.guide-invalid{display:block;min-width:0}
.guide-errors{display:grid;gap:4px;border:2px solid var(--control-danger,#984b42);border-radius:8px;padding:10px 12px;margin:8px 0}
.guide-link{background:none;border:0;padding:4px 0;text-align:left;color:inherit;text-decoration:underline;font:inherit;cursor:pointer}
.guide-save{font-size:.9rem}
.guide-card{display:grid;gap:4px;border:2px solid currentColor;border-radius:8px;padding:10px 12px;margin:8px 0}
.guide-card h4,.guide-card p{margin:0}
.guide-wait{border-style:dashed}.guide-bad{border-color:var(--control-danger,#984b42)}
button.guide-primary{font-weight:700;outline:2px solid currentColor;outline-offset:1px}
button.guide-primary:not(.guide-not-ready){outline:3px solid var(--accent,#255c40);outline-offset:2px}
button.guide-not-ready{opacity:.6;cursor:not-allowed}
.guide-button-cue{display:block;flex-basis:100%;margin-top:4px;font-size:.85rem;font-weight:700}
.harm-pair{display:inline-flex;flex-direction:column;align-items:flex-start;max-width:100%}.guide-harm-note{display:block;margin-top:2px;font-size:.8rem;color:var(--control-danger,#984b42)}
.guide-linked-work{font-weight:600}
.guide-disabled-note{display:block;flex-basis:100%;margin-top:2px;font-size:.8rem;color:var(--control-muted,#6b6b6b)}
button[data-harm-action]:not(:disabled),.control-shell button[data-harm-action]:not(:disabled){background:transparent;color:var(--control-danger,#984b42);border-color:var(--control-danger,#984b42);font-weight:400}
button:not([data-harm-action])+button[data-harm-action],button[data-harm-action]+button:not([data-harm-action]){margin-inline-start:1.5rem}
.guide-setting{margin-top:10px;display:grid;gap:4px}
.guide-next-step{margin:8px 0 10px}
/* Step-by-step forms: only this layer adds walkthrough-hidden, and the last step shows everything again. */
.walkthrough-hidden{display:none!important}
.guide-walk{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:8px 0;padding:8px 12px;border:1px solid currentColor;border-left-width:5px;border-radius:8px}
.guide-walk-status{margin:0;flex:1 1 240px;font-weight:700}
.guide-walk-buttons{display:flex;flex-wrap:wrap;gap:8px}
.guide-walk-buttons button[hidden]{display:none}
.guide-walk-next{font-weight:700}
.guide-walk-mode{background:transparent;border:0;text-decoration:underline;padding:4px 0;font:inherit;color:inherit;cursor:pointer}
.stock-transfer-refusal,.production-execution-hold{flex-basis:100%;margin:6px 0 0}
.stock-transfer-refusal[hidden]{display:none}
.production-post-gate{flex:1 1 100%;margin:4px 0;padding:12px 14px;border:1px solid #8a94a3;border-left-width:5px;border-radius:8px}
.production-post-gate p{margin:6px 0 10px;font-weight:600}
.production-post-gate.is-ready{border-color:#1f8a4c}
.production-post-gate.is-blocked{border-color:#c0392b}
.production-post-gate.is-checking{border-color:#b7791f}
.production-post-stages{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;list-style:none}
.production-post-gate button:disabled{opacity:.5;cursor:not-allowed}
.production-post-gate button.production-post-ready:not(:disabled){background:#1f8a4c;border-color:#1f8a4c;color:#fff;font-weight:700;opacity:1}
/* Shared form design for computers. Each field is as wide as what it holds: dates and numbers are short, names and lists grow to a limit, and notes take what is left. Only placement and looks change here, so document, Tab and screen-reader order stay the same. At 680px and below forms keep their stacked layout. */
@media(min-width:681px){
.signed-in input:is([type=date],[type=time]){max-width:10.5rem}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset){--form-field:15rem;display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px 16px;max-width:none}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset)>*{flex:1 0 100%;min-width:0}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset)>label{flex:1 1 var(--form-field);max-width:26rem;gap:4px;font-size:12px;line-height:19px}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset)>label:has(input:is([type=date],[type=time])){flex:0 0 10.5rem}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset)>label:has(input:is([type=number],[inputmode=decimal],[inputmode=numeric])){flex:0 1 10rem}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset)>label:has(textarea){flex:3 1 22rem;max-width:none}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset)>label:has(input:is([type=checkbox],[type=radio])){flex:0 1 auto;max-width:none}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset)>button{flex:0 0 auto;align-self:flex-end;white-space:nowrap}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset) :is(input:not([type=checkbox],[type=radio]),select){height:39px;width:100%;min-width:0;padding-top:6px;padding-bottom:6px}
:is(.settings-form,.production-form,.sales-inline-form,.settings-panel>form,.livestock-service-form,.livestock-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,.returnables-loss-form,.returnables-form,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form) textarea{display:block;width:100%;height:39px;min-height:39px;padding-top:8px;padding-bottom:6px}
:is(.settings-form,.production-form,.settings-panel>form,.sales-draft-editor) .actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
:is(.settings-form,.production-form,.settings-panel>form,.sales-draft-editor) .actions>button{flex:0 0 auto;width:auto}
.sales-draft-editor label:has(textarea) textarea{min-height:64px;height:64px}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset)>label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px;font-size:13px}
:is(.settings-form,.production-form,.expense-form-grid,.sales-draft-fields,.purchase-document-meta,.sales-inline-form,.livestock-service-form,.livestock-loss-form,.settings-panel>form,[id=staffForm],[id=connectionForm],[id=history-settings-form],[id=branch-accounts-form],.returnables-form,.returnables-pack,.returnables-charge-form,.returnables-correction-form,.returnables-charged-return-form,.returnables-loss-form,.sales-payment-form,.credit-exception-decision,.sales-credit-exception-form,[id=expenseRefundsHost] form,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset)>label:has(input[type=checkbox]) input{flex:none;width:auto}
:is(.settings-form,.production-form)>h3{margin:10px 0 -6px;font-size:14px}
:is(.settings-form,.production-form)>h3+p{margin:0;font-size:13px;line-height:1.5;color:var(--control-muted,#59685e)}
:is(.settings-form,.production-form)>p{margin:0}
/* Repeating lines sit in one tidy card style. */
:is(.production-output-row,.production-input-row,.production-charge-row,.returnables-pack,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,.returnables-loss-row,.livestock-service-row,.stock-transfer-draft-line,[id=bank-reconciliation-editor] fieldset){min-width:0;margin:0 0 10px;padding:10px 14px 14px;border:1px solid var(--line,#dfe3e8);border-radius:10px;background:var(--control-raised,#f9faf7)}
:is(.production-output-row,.production-input-row,.production-charge-row,.returnables-pack,.returnables-setting-container,.returnables-setting-pack,.returnables-setting-pool,.returnables-container-row,.returnables-charge-row,.returnables-charged-return-row,.returnables-correction-row,[id=bank-reconciliation-editor] fieldset) legend{padding:0 6px;font-size:12px;font-weight:700}
:is(.production-output-row,.production-input-row,.production-charge-row) :is(input,select){background:var(--surface,#fff)}
/* Screens with their own needs. */
.signed-in .returnables-settings .settings-form,.returnables-form,.returnables-correction-form{max-width:none}
:is(.returnables-container-row,.returnables-charge-row,.returnables-setting-container)>p{flex:1 1 20rem;align-self:center;margin:0;font-size:12px}
:is(.returnables-charged-return-row,.returnables-correction-row)>p{margin:0}
.returnables-setting-component{grid-template-columns:minmax(0,26rem) 10rem auto}
.returnables-setting-component label{font-size:12px}
.signed-in .returnables-settings .settings-form>label:has(input[type=number]){flex:1 1 26rem;max-width:40rem}
.signed-in .returnables-settings .settings-form>label:has(input[type=checkbox]){flex:0 1 auto;justify-content:flex-start;max-width:none}
.signed-in .stock-transfer-draft-line{flex-wrap:nowrap;align-items:center;padding:8px 14px}
.signed-in .stock-transfer-draft-line>label:has(input[type=number]){display:grid;grid-template-columns:minmax(0,1fr) 10rem 4rem;gap:12px;align-items:center;flex:1 1 auto;max-width:none}
.signed-in .stock-transfer-draft-line>button{align-self:center}
.signed-in [id=bank-reconciliation-editor]{--form-field:11rem}
[id=bank-reconciliation-editor] label:has([id=bank-reconciliation-opening],[id=bank-reconciliation-closing],[id$="-amount"]){flex:0 1 10rem}
.inventory-use-target-locations:empty{display:none}
.signed-in label:has([id=supplier-payment-amount],[id=cash-shifts-count],[id=service-invoice-payment-amount]){flex:0 1 13rem}
.signed-in .expense-line .expense-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.signed-in .expense-line .expense-form-grid>label{max-width:none}
.signed-in .expense-line .expense-form-grid>:not(label){grid-column:1/-1}
.view>label,.panel>label{max-width:26rem}
[id=cashShiftsHost] .sales-balance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:10px}
.signed-in :is(.livestock-collection-form,.livestock-hatch-form,.livestock-birth-form){display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
.signed-in :is(.livestock-collection-form,.livestock-hatch-form,.livestock-birth-form)>h4{flex:0 0 100%;margin:0}
.signed-in :is(.livestock-collection-form,.livestock-hatch-form,.livestock-birth-form) :is(input,select){flex:0 1 12rem;width:auto;min-width:0;height:39px}
.signed-in .livestock-collection-house{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;flex:0 0 100%}
.signed-in :is(.livestock-collection-form,.livestock-hatch-form,.livestock-birth-form)>:is(p,div:not(.livestock-collection-house)){flex:0 0 100%;margin:0}
.signed-in .livestock-collection-form>span{flex:0 1 auto;max-width:11rem}
.signed-in .livestock-collection-form input[type=date],.signed-in :is(.livestock-hatch-form,.livestock-birth-form) input[type=date]{flex:0 0 10.5rem}
.signed-in .livestock-collection-house input,.signed-in :is(.livestock-hatch-form,.livestock-birth-form) input[type=number]{flex:0 1 7rem}
.signed-in .livestock-workspace>.panel:empty{display:none}
.signed-in :is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts):not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
.signed-in :is(:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts),:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts)>[data-guide-scope]:not([class]))>*{flex:0 0 100%;min-width:0;margin-top:0;margin-bottom:0}
.signed-in :is(:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts),:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts)>[data-guide-scope]:not([class]))>:is(input:not([type=checkbox]),textarea){flex:0 1 18rem;width:auto;max-width:26rem;height:39px}
.signed-in :is(:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts),:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts)>[data-guide-scope]:not([class]))>select{flex:0 1 auto;width:auto;max-width:30rem;height:39px}
.signed-in :is(:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts),:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts)>[data-guide-scope]:not([class]))>textarea{height:auto}
.signed-in :is(:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts),:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts)>[data-guide-scope]:not([class]))>input[type=date]{flex:0 0 10.5rem}
.signed-in :is(:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts),:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts)>[data-guide-scope]:not([class]))>input[type=number]{flex:0 1 8rem}
.signed-in :is(:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts),:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts)>[data-guide-scope]:not([class]))>button{flex:0 0 auto;width:auto;margin:0}
.signed-in :is(:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts),:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts)>[data-guide-scope]:not([class]))>p:has(+:is(select,input,textarea)){flex:0 1 auto;max-width:20rem}
.signed-in :is(:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts),:is(.livestock-depreciation,.livestock-amortisation,.livestock-produce,.livestock-collections,.livestock-hatches,.livestock-births,.livestock-closure,.livestock-move,.livestock-loss-accounts)>[data-guide-scope]:not([class]))>[data-guide-scope]:not([class]){flex:none}
.signed-in .livestock-depreciation-method{flex:0 1 auto}
.signed-in #bankReconciliationsHost form:not([id]){display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:16px 0 10px}
.signed-in #bankReconciliationsHost form:not([id])>label:has(input[type=checkbox]){display:inline-flex;flex-direction:row-reverse;align-items:center;gap:8px;flex:0 1 auto;width:auto}
.signed-in #bankReconciliationsHost form:not([id])>label input[type=checkbox]{flex:none;width:auto;margin:0}
.signed-in #bankReconciliationsHost form:not([id])>button{flex:0 0 auto;width:auto}
.signed-in #posCorrectionsHost form,.signed-in #payment-correction-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 16px}
.signed-in #posCorrectionsHost form>label,.signed-in #payment-correction-form>label{flex:1 1 15rem;max-width:26rem;min-width:0}
.signed-in #posCorrectionsHost form>label:has(textarea),.signed-in #payment-correction-form>label:has(textarea){flex:3 1 22rem;max-width:none}
.signed-in #posCorrectionsHost form>:is(section,p),.signed-in #payment-correction-form>p{flex:0 0 100%;margin:0}
.signed-in #posCorrectionsHost form>section:empty{display:none}
.signed-in #posCorrectionsHost form>button,.signed-in #payment-correction-form>button{flex:0 0 auto;width:auto}
.signed-in .location-editor-row :is(input:not([type=checkbox]),select){max-width:26rem}
.signed-in #posSettingsForm select{max-width:26rem}
.signed-in .returnables-settings .settings-form>label:has(input[type=number]) input{max-width:10rem}
.signed-in .location-editor-row :is(input:not([type=checkbox]),select){flex:1 1 10rem;width:auto;min-width:10rem}
.signed-in .location-assignment-row label{flex:0 1 auto}
.signed-in .location-assignment-row label input[type=checkbox]{flex:none;width:auto}
.signed-in .returnables-loss-row>button{justify-self:start;width:auto}
.signed-in .returnables-loss-row label{font-size:12px}
.signed-in .settings-panel>.actions>button{flex:0 0 auto;width:auto}
.signed-in .returnables-loss-row>p:empty{display:none}
.signed-in #restaurant-settings-form{display:flex}
.signed-in .sales-payment-form>label:has(input[inputmode=decimal]){flex:0 1 13rem}
.sales-payment-form td:has(.guide-tag){white-space:normal;min-width:11rem}
[id=history-settings-form]>.history-settings-field{flex:1 1 15rem;max-width:26rem}
.signed-in [id=history-settings-form]>label:has([id=history-settings-date]){flex:0 0 14rem}
.location-editor-row fieldset{border:1px solid var(--line,#dfe3e8);border-radius:10px}
.stock-count-detail input{min-width:7rem}
/* Production rows keep every column lined up from row to row. */
.production-outputs,.production-inputs,.production-charges{display:grid;gap:0;min-width:0}
.production-output-row,.production-input-row,.production-charge-row{--production-row-label:23px;display:grid;gap:8px 12px;align-items:start}
:is(.production-output-row,.production-input-row,.production-charge-row)>label{min-width:0;gap:4px;font-size:12px;line-height:19px}
:is(.production-output-row,.production-input-row,.production-charge-row) :is(input,select){width:100%;min-width:0;height:39px;padding-top:6px;padding-bottom:6px}
:is(.production-output-row,.production-input-row,.production-charge-row)>button{margin-top:var(--production-row-label);white-space:nowrap}
:is(.production-output-row,.production-input-row,.production-charge-row)>p{min-width:0;margin:0;font-size:12px;line-height:1.4}
.production-input-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 10rem auto}
.production-input-row>p{grid-row:2;grid-column:3/-1}
.production-charge-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 10rem auto}
.production-charge-row:has(>label[hidden]){grid-template-columns:minmax(0,1fr) 10rem auto}
.production-charge-row>p{grid-row:2;grid-column:1/-1}
/* Smaller computers and tablets: item and location on the first line, the numbers on the second. */
.production-output-row{grid-template-columns:repeat(12,minmax(0,1fr))}
.production-output-row>label{grid-column:span 3}
.production-output-row>label:nth-of-type(-n+2){grid-column:span 6}
.production-output-row>p{grid-row:3;grid-column:1/7}
.production-output-row>label:nth-of-type(6){grid-row:3;grid-column:7/-1}
.production-output-row>button{grid-column:span 3}
.production-output-row:has(>label:nth-of-type(6):not([hidden]))>button{grid-row:4;grid-column:10/-1}
}
@media(min-width:1200px){
.production-output-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 9.5rem 9.5rem 9.5rem auto}
.production-output-row>label,.production-output-row>label:nth-of-type(-n+2),.production-output-row>button{grid-column:auto}
.production-output-row>p{grid-row:2;grid-column:3/5}
.production-output-row>label:nth-of-type(6){grid-row:2;grid-column:1/3}
/* Remove output stays last when the zero-share reason shows, so the eye follows the Tab order. */
.production-output-row:has(>label:nth-of-type(6):not([hidden]))>button{grid-row:2;grid-column:6}
}
/* In these two narrow ranges the number labels wrap, so all three get two lines and their boxes stay level. */
@media(min-width:681px) and (max-width:760px),(min-width:901px) and (max-width:980px){
.production-output-row{--production-row-label:42px}
.production-output-row>label:nth-of-type(n+3):nth-of-type(-n+5)>span:first-child{display:flex;align-items:flex-end;min-height:38px}
.production-output-row:has(>label:nth-of-type(6):not([hidden]))>button{margin-top:0}
}

.payroll-file{margin:16px 0;padding:12px;border:1px solid var(--line,#d8d8d8);border-radius:8px}.payroll-file img{display:block;max-width:160px;max-height:200px;border-radius:6px;object-fit:cover}
.payroll-tabs{display:flex;gap:8px;margin:12px 0}.payroll-tabs button[aria-pressed="true"]{font-weight:700}
@media print{body.payroll-print-all *{visibility:hidden}body.payroll-print-all .payslip-batch,body.payroll-print-all .payslip-batch *{visibility:visible}body.payroll-print-all .payslip-batch{position:absolute;top:0;left:0;width:100%}body.payroll-print-all .payslip-batch .payslip{break-after:page;page-break-after:always}}
.payslip-batch{display:none}@media print{body.payroll-print-all .payslip-batch{display:block}}
@media print{body.payroll-print *{visibility:hidden}body.payroll-print .payslip,body.payroll-print .payslip *{visibility:visible}body.payroll-print .payslip{position:absolute;inset:0}}
/* Sign out stays beside the signed-in name, because staff change accounts often. */
.app-header .header-signout{flex-shrink:0;margin-left:12px;min-height:34px;padding:0 12px;white-space:nowrap}
/* Branch access panel: a tick box sits right beside its own branch name, not stretched across the row. */#branchAccessPanel label:has(>input[type=checkbox]){display:flex;align-items:center;gap:8px;width:fit-content}#branchAccessPanel label>input[type=checkbox]{width:auto;flex:0 0 auto;order:-1;margin:0}
/* Shared click response: the press shows at once, the running button says so, and the result stays beside it. */
button.click-pressed{filter:brightness(.9);transform:translateY(1px)}
button[data-click-busy]{cursor:progress;opacity:.75}
button[data-click-busy]::after{content:" · Working…"}
.click-result{display:inline-block;margin:4px 8px;font-size:.88rem;font-weight:700;color:var(--accent-dark,#2f5d50);overflow-wrap:anywhere}
.click-result.click-failed,.click-status.click-failed{color:var(--control-danger,#984b42)}
.click-status{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:1000;max-width:min(560px,calc(100vw - 32px));padding:10px 14px;border:1px solid var(--line,#ccc);border-radius:6px;background:var(--surface,#fff);font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.click-status[hidden]{display:none}
/* Default form layout for computers. Every form inside the workspace gets this without being named, including sections that appear only after a record is chosen and forms added later. Only the till (New order), Items and stock, and print settings stay outside it, because they have their own layouts. Add a screen to this list only with a reason. Placement only, so document, Tab and screen-reader order stay the same. */
@media(min-width:681px){
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(input:not([type=checkbox],[type=radio],[type=file],[type=color],[type=hidden]),select){max-width:30rem}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(input[type=number]){max-width:12rem}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(input[type=color]){max-width:6rem}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(textarea){max-width:60rem}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *){display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;max-width:none}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(details):has(>label,>select,>input:not([type=hidden]),>textarea):not([open]){display:block}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *)>*{flex:0 0 100%;min-width:0}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *)>label{flex:1 1 15rem;max-width:26rem}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *)>label:has(input[type=date]){flex:0 0 10.5rem}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *)>label:has(input[type=number]){flex:0 1 10rem}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *)>label:has(textarea){flex:3 1 22rem;max-width:60rem}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *)>label:has(input[type=checkbox]){flex:0 1 auto;max-width:none}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *)>:is(select,input:not([type=checkbox]),textarea){flex:0 1 18rem;width:auto}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *)>:is(button,a.button){flex:0 0 auto;width:auto}
.signed-in :where(#workspace>:not(#neworder,#menu)) :where(form,.panel,fieldset,details):has(>label,>select,>input:not([type=hidden]),>textarea):not(#printSettingsPanel,#printSettingsPanel *)>p:has(+:is(select,input,textarea)){flex:0 1 auto;max-width:20rem;margin:0}
.signed-in :where(#workspace>:not(#neworder,#menu)) .panel:empty{display:none}
}

/* Branch result: the line names stay in view while the branches scroll sideways on a phone. */
.branch-result-table table th[scope=row]{position:sticky;left:0;background:#fff;text-align:left;font-weight:500;white-space:normal;min-width:9.5rem}
.branch-result-strong th[scope=row],.branch-result-strong td{font-weight:700}
@media print{.branch-result-table table th[scope=row]{position:static}}
.supplier-statement-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:10px 0}.supplier-statement-filters label{display:grid;gap:4px;min-width:0}.supplier-statement-filters input{min-width:0;max-width:100%}.supplier-statement .management-summary-grid{margin:10px 0}
@media(max-width:680px){#purchasingModern,#purchasingModern>*,#purchasingModern>div>*{min-width:0;max-width:100%;box-sizing:border-box}.supplier-statement-filters>*{flex:1 1 40%}.supplier-statement-table thead{display:none}.management-table.supplier-statement-table,.supplier-statement-table tbody,.supplier-statement-table tr,.supplier-statement-table td{display:block;width:100%;min-width:0;box-sizing:border-box}.supplier-statement-table tr{padding:8px 10px;border-bottom:1px solid #dce5eb}.supplier-statement-table td{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border:0;text-align:right;overflow-wrap:anywhere}.supplier-statement-table td::before{content:attr(data-label);flex:none;color:var(--muted,#60707c);text-align:left}.supplier-statement-table td.management-empty{display:block;text-align:left}.supplier-statement-table td.management-empty::before{content:none}}

/* Redesign stage 1 (owner, 4 Nov 2026): a status line with nothing to say takes no space, and the shared i help control. */
.notice:empty{display:none}
button.info-note-button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;min-width:24px;min-height:24px;margin:0 0 0 2px;padding:0;border:1px solid var(--line,#dce5eb);border-radius:50%;background:transparent;color:inherit;font:italic 700 13px/1 Georgia,'Times New Roman',serif;vertical-align:middle;cursor:pointer}
button.info-note-button::after{content:'';position:absolute;inset:-10px}
button.info-note-button[aria-expanded="true"]{background:var(--line,#dce5eb)}
button.info-note-button[hidden]{display:none}
:is(h1,h2,h3,h4):has(+ button.info-note-button){display:inline-block;margin-right:6px}
.heading .eyebrow{display:block}
button.info-note-button,.control-shell button.info-note-button{border-radius:50%;min-height:24px;padding:0}
.info-note-closed{display:none!important}
.info-note:not(.info-note-closed){margin-top:8px}
.info-notes-on .page-info{display:none}
.info-notes-on.page-info-open .view:not([hidden]) .page-info{display:block}
.info-notes-on:not(.page-info-open):not(.page-info-till) #viewSubtitle{display:none}
.pos-page .page-info-button{display:none}
@media print{button.info-note-button{display:none}}

/* A wholesale company has no till, so the dashboard shows no button to it. The dashboard code itself is unchanged. */
body.wholesale-company #dashboardNewOrder{display:none}
.customer-branch-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.customer-branch-table{max-width:100%;overflow-x:auto}.customer-register-branches .customer-register-labels,.customer-register-branches .customer-register-row{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,2fr) minmax(0,.8fr) auto}.customer-register-branches .customer-register-row>*{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.customer-branch-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-register-branches .customer-register-labels{display:none}.customer-register-branches .customer-register-row{grid-template-columns:minmax(0,1fr) auto}.customer-register-branches .customer-register-row>strong,.customer-register-branches .customer-register-row>span:nth-of-type(2){grid-column:1/-1}}

.customer-advance-offset{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));margin:8px 0}.customer-advance-offset ul,.customer-advance-offset p{grid-column:1/-1;margin:0;overflow-wrap:anywhere}.customer-advance-apply .actions{flex-wrap:wrap}.customer-advance-apply input,.customer-advance-apply select{min-width:0;max-width:100%}
/* Owner Snapshot home screen (public/owner-snapshot.js). It answers to its own width, so it also fits beside the sidebar. */
#ownerSnapshotHost:not([hidden]){margin-bottom:1.5rem;container-type:inline-size;container-name:snapshot}
.os-root{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}.os-filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end;border:1px solid var(--line);background:var(--surface);padding:10px}.os-filters label{display:grid;gap:2px;font-size:12px;color:var(--muted)}.os-filters .report-period{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end}
.os-panel{border:1px solid var(--line);background:var(--surface);padding:14px;display:grid;gap:10px;min-width:0;align-content:start}.os-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:baseline}.os-head h3{margin:0;font-size:15px}.os-tag{font-size:11px;font-weight:700;color:var(--muted);background:var(--canvas);padding:1px 6px;text-transform:uppercase}.os-note{margin:0;font-size:12px;color:var(--muted)}
.os-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:12px}.os-heroes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.os-tile{display:grid;gap:3px;min-width:0}.os-label{font-size:12.5px;font-weight:600;color:var(--muted)}.os-rows{display:grid}.os-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid var(--line);align-items:baseline}.os-branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.os-branch{display:grid;gap:2px;border-top:3px solid var(--line);padding-top:6px;min-width:0}.os-flags{display:flex;flex-wrap:wrap;gap:6px}
.os-todo{list-style:decimal;margin:0;padding-left:20px;display:grid;gap:8px}.os-todo li>div{display:inline-block;max-width:calc(100% - 80px);vertical-align:top}.os-todo button{float:right}.os-who{display:block;font-size:12px;color:var(--muted)}
.os-amt{background:none;border:0;border-bottom:1px dashed var(--muted);padding:0;color:var(--ink);font-weight:700;font-family:inherit;text-align:left;cursor:pointer;min-height:24px;line-height:1.2;min-width:0;justify-self:start}.os-amt:hover,.os-amt[aria-expanded="true"]{border-bottom-style:solid;border-bottom-color:var(--ink)}.os-cur{font-size:.62em;font-weight:600;color:var(--muted);margin-right:3px}.os-hero{font-size:30px}.os-md{font-size:17px}.os-sm{font-size:14px}
.os-pop{position:absolute;z-index:40;width:380px;max-width:calc(100vw - 32px);background:var(--surface);color:var(--ink);border:1px solid var(--muted);box-shadow:0 12px 34px #0003;padding:12px;display:grid;gap:8px;font-size:13px;font-weight:400;text-align:left}.os-pop-head{display:flex;justify-content:space-between;gap:8px;align-items:start}.os-x{background:none;border:1px solid var(--line);color:var(--ink);min-width:32px;min-height:32px;padding:0}.os-pop table{width:100%;border-collapse:collapse}.os-pop td,:where(.os-pop tbody) th{padding:3px 0;border-top:1px solid var(--line);vertical-align:top;font-weight:400}.os-pop tbody th{text-align:left;font-size:inherit;color:inherit;background:none}.os-pop td:last-child{text-align:right;white-space:nowrap;padding-left:10px}.os-why{display:block;font-size:11.5px;color:var(--muted);white-space:normal}.os-hit td,.os-tot td,.os-hit th,.os-tot th{font-weight:700}.os-sub td,.os-sub th{font-weight:600;border-top-color:var(--muted)}.os-tot td,.os-tot th{border-top:2px solid var(--ink)}
@container snapshot (max-width:760px){.os-grid{grid-template-columns:minmax(0,1fr)}.os-amt{min-height:36px}.os-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.os-filters .report-period{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.os-filters select,.os-filters input{width:100%}}
@container snapshot (max-width:440px){.os-hero{font-size:24px}.os-heroes{grid-template-columns:minmax(0,1fr)}.os-filters{grid-template-columns:minmax(0,1fr)}}
/* KD-24: a balance tile's Incomplete note is a sentence, not a status word: it wraps inside the tile instead of pushing the page sideways. */
.os-tile .management-status{white-space:normal;align-items:flex-start;border-radius:8px;overflow-wrap:anywhere}
#ownerSnapshotSettingHost:not([hidden]){margin:1rem 0}.os-setting{display:grid;gap:8px;justify-items:start}.os-setting h3,.os-setting p{margin:0}
.os-lg{font-size:22px}
.returnables-setup-steps{margin:0;padding:0;list-style:none;display:grid;gap:10px;counter-reset:setup}.returnables-setup-step{counter-increment:setup;border:1px solid var(--line);border-radius:10px;padding:10px 12px 10px 44px;position:relative;min-width:0;overflow-wrap:anywhere}.returnables-setup-step::before{content:counter(setup);position:absolute;left:12px;top:10px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:600;border:1px solid currentColor}.returnables-setup-step p{margin:4px 0 0}.returnables-setup-step.is-next{border:2px solid var(--accent,#255c40)}.returnables-setup-step.is-next::before{background:var(--accent,#255c40);border-color:var(--accent,#255c40);color:#fff}.returnables-setup-step.is-later{opacity:.75}.returnables-pack-summary:empty{display:none}.returnables-setup-unusable p{margin:2px 0}.returnables-setup-unusable:empty{display:none}
#company .settings-menu-item{border:0;background:none;box-shadow:none}
#company .settings-menu-item:hover,#company .settings-menu-item[aria-current="page"]{background:var(--control-soft,#e8eefc)}
#company.settings-shell{position:relative;padding-left:244px;padding-bottom:72px;min-height:520px}
.settings-menu{position:absolute;top:-22px;left:0;width:220px;display:flex;flex-direction:column;gap:2px}
.settings-menu-item{display:block;width:100%;min-height:44px;padding:9px 12px;border:0;border-radius:8px;background:none;color:var(--control-muted,#566173);font-weight:500;text-align:left;cursor:pointer}
.settings-menu-item:hover{background:var(--control-soft,#eef0f4);color:var(--control-ink,#16202e)}
.settings-menu-item[aria-current="page"]{background:var(--control-soft,#e8eefc);color:var(--control-ink,#16202e);font-weight:700}
.settings-menu-list{display:contents}
.settings-search{width:100%;height:40px;margin-bottom:8px;padding:0 10px;border:1px solid var(--control-line,#dde1e7);border-radius:8px;background:var(--control-paper,#fff);color:var(--control-ink,#16202e)}
#company.settings-searching>*:not(.settings-shell-part){display:none!important}
.settings-results h2{margin:0 0 12px}
.settings-result-list{border:1px solid var(--control-line,#dde1e7);border-radius:10px;overflow:hidden;background:var(--control-paper,#fff)}
#company .settings-result{display:block;width:100%;min-height:52px;padding:10px 16px;border:0;border-bottom:1px solid var(--control-line,#dde1e7);border-radius:0;background:none;box-shadow:none;color:var(--control-ink,#16202e);text-align:left;cursor:pointer}
#company .settings-result:last-child{border-bottom:0}
#company .settings-result:hover{background:var(--control-soft,#edf1ec)}
.settings-result strong{display:block}
.settings-result span{display:block;font-size:12px;color:var(--control-muted,#59685e)}
.settings-savebar{position:fixed;z-index:20;right:0;bottom:0;left:210px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 24px;background:var(--control-paper,#fff);border-top:1px solid var(--control-line,#dde1e7);box-shadow:var(--control-shadow,none)}
.settings-savebar strong{flex:1 1 220px;color:var(--control-ink,#16202e)}
.settings-savebar-note{flex:1 1 220px;color:var(--control-muted,#59685e);font-size:13px}
.settings-savebar-note:empty{display:none}
.settings-savebar-alert{border-top:2px solid var(--control-warning,#854d0e)}
.settings-menu-head{padding:14px 12px 4px;font-size:12px;font-weight:600;color:var(--control-muted,#566173)}
.settings-page-off{display:none!important}
.settings-page-first{margin-top:0}
.settings-overview h2{margin:0 0 2px}
.settings-overview>.secondary{margin:0 0 16px}
.settings-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.settings-tile{display:block;width:100%;min-height:120px;padding:16px;border:1px solid var(--control-line,#dde1e7);border-radius:10px;background:var(--control-paper,#fff);color:var(--control-ink,#16202e);text-align:left;cursor:pointer}
.settings-tile strong{display:block;font-size:15px;margin-bottom:4px}
.settings-tile-desc{display:block;color:var(--control-muted,#566173);font-size:13px}
.settings-tile-list{display:block;margin-top:8px;color:var(--control-muted,#566173);font-size:12px}
@media(max-width:1000px){.settings-savebar{left:0}}
@media(max-width:760px){#company.settings-shell{padding-left:0;min-height:0}.settings-menu{position:static;top:auto;width:auto;flex-direction:row;flex-wrap:wrap;gap:6px;margin-bottom:16px}#company .settings-menu-item{width:auto;border:1px solid var(--control-line,#dde1e7)}.settings-menu-head{display:none}}

/* Empties for this delivery: a five-column table inside the form must scroll on its own on a phone. */
.returnables-sale-count{max-width:100%;overflow-x:auto}
.returnables-sale-count input{width:5rem;min-width:0}

/* A newer version has been released while this page was open. */
.new-version-notice{position:fixed;left:16px;right:16px;bottom:16px;z-index:50;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid var(--warning,#b7791f);border-radius:12px;background:var(--panel,#1c2826);color:inherit}
.management-table-wrap[role=region]:focus-visible{outline:3px solid #229dca55;outline-offset:2px}
/* A form's parts may shrink to the screen: a wide table inside a form scrolls in its own box instead of pushing the page sideways at phone width. */
.sales-inline-form>*{min-width:0}
/* Cash shifts: disclosure rows ("Configure a cash drawer", retained details) are full tap targets at phone width. */
[id=cashShiftsHost] summary{display:list-item;min-height:44px;padding:10px 0;line-height:24px;cursor:pointer;font-weight:600}

/* Livestock tables scroll inside their box on a phone, never the whole page (Production lane, 7 Nov 2026). */
.livestock-table{max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
/* On a phone a form is a one-column grid; its parts may shrink, so a wide table inside one scrolls in its box (PL-39). */
.livestock-workspace form>*{min-width:0}
/* PL-86: the death undo card opens from its summary line; on a phone that line is a full-size tap target, as the cash shifts summary. */
.livestock-death-undo>summary{display:list-item;min-height:44px;padding:10px 0;line-height:24px;cursor:pointer}

/* Orders & payments cards (Restaurant UX lane): equal-height cards, item lines, status dots, payment tags, icon buttons, filters. */
.order-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.order-filters label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:600;color:var(--muted);min-width:0}
.order-filters select,.order-filters input{min-height:36px;font-size:13px}
.order-filters .order-filter-amount input{width:96px}
.order-filters .order-filter-search{flex:1 1 220px}
.order-filters .order-filter-search input{width:100%;box-sizing:border-box}
.order-filters .order-filter-range input{width:140px}
.order-filters .order-filter-actions{display:flex;gap:8px;align-items:center;margin-left:auto}
.order-filters button[aria-pressed="true"]{background:#7a2a1e;border-color:#7a2a1e;color:#fff}
.order-summary{margin:0 0 12px;font-size:13px;font-weight:600}
#orderList.order-grid{grid-auto-rows:1fr;align-items:stretch}
#orderList .order-card{display:flex;flex-direction:column;box-sizing:border-box}
#orderList .order-card p{margin:4px 0}
#orderList .order-card .card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#orderList .order-card .card-top h3{margin:0}
#orderList .order-card .card-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
#orderList .order-card .reference{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;cursor:copy;overflow-wrap:normal}
#orderList .order-card .order-staff{font-weight:600}
#orderList .order-card .sales-order-balance .badge{display:none}
#orderList .order-card .actions{margin-top:auto;padding-top:10px}
.pay-tag{display:inline-block;font-size:12px;font-weight:700;border-radius:6px;padding:3px 9px;white-space:nowrap}
.pay-paid{background:#dff4e8;color:#14603d}
.pay-partly{background:#e1ecfb;color:#1f4f8c}
.pay-unpaid{background:#fde9d6;color:#8a4310}
.pay-notinv{background:#eceeec;color:#4f5a53}
html[data-appearance="dark"] .pay-paid{background:#1f4a33;color:#9ff0c3}
html[data-appearance="dark"] .pay-partly{background:#1d3550;color:#a9d0ff}
html[data-appearance="dark"] .pay-unpaid{background:#4d2e14;color:#ffc48f}
html[data-appearance="dark"] .pay-notinv{background:#2a332f;color:#b8c6bf}
.order-items{display:flex;flex-direction:column;gap:3px;min-height:104px;margin:8px 0 4px;padding:8px 10px;border-radius:9px;background:rgba(127,140,133,.10)}
.order-item{display:flex;justify-content:space-between;gap:8px;font-size:13px;line-height:20px}
.order-item-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-item-name b{color:var(--accent)}
.order-item-name small{color:var(--muted);font-size:12px}
.order-item-total{white-space:nowrap}
.order-items .order-item-extra{display:none}
.order-items.open .order-item-extra{display:flex}
.order-items-more{align-self:flex-start;margin-top:auto;padding:0;min-height:0;border:0;background:none;color:var(--accent);font-size:12px;font-weight:700;cursor:pointer;text-decoration:underline}
#orderList .accounting-sync{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;border-top:0;margin-top:6px;padding-top:0}
#orderList .accounting-sync .sync-badge{display:inline-flex;align-items:center;gap:7px;padding:0;background:none;color:inherit;font-size:13px;font-weight:600}
#orderList .accounting-sync .sync-badge::before{content:"";width:10px;height:10px;border-radius:50%;background:#e0a52f;flex:0 0 auto}
#orderList .accounting-sync.posted .sync-badge::before{background:#2fb36b}
#orderList .accounting-sync.attention .sync-badge::before{background:#e5533d;animation:order-dot-pulse 1.6s infinite}
#orderList .accounting-sync.posted .sync-badge,#orderList .accounting-sync.attention .sync-badge{background:none;color:inherit}
#orderList .accounting-sync p{flex-basis:100%;margin:0;font-size:12px}
#orderList .accounting-sync.attention p{color:#c0392b}
html[data-appearance="dark"] #orderList .accounting-sync.attention p{color:#ffb3a6}
@keyframes order-dot-pulse{0%{box-shadow:0 0 0 0 rgba(229,83,61,.55)}70%{box-shadow:0 0 0 7px rgba(229,83,61,0)}100%{box-shadow:0 0 0 0 rgba(229,83,61,0)}}
@media (prefers-reduced-motion:reduce){#orderList .accounting-sync.attention .sync-badge::before{animation:none}}
#orderList button[data-icon]::before{content:"";display:inline-block;width:18px;height:18px;flex:0 0 auto;background:currentColor;-webkit-mask:var(--order-icon) center/contain no-repeat;mask:var(--order-icon) center/contain no-repeat}
#orderList .actions button[data-icon]{display:inline-flex;align-items:center;justify-content:center;gap:6px}
#orderList.buttons-words button[data-icon]::before{display:none}
#orderList.buttons-icons .actions button[data-icon]:not(.primary){font-size:0;min-width:44px;min-height:40px;padding:8px}
#orderList.buttons-icons .actions button[data-icon]:not(.primary)::before{width:20px;height:20px}
#orderList button[data-icon="trace"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
#orderList button[data-icon="print"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Crect x='3' y='9' width='18' height='8' rx='2'/%3E%3Cpath d='M7 14h10v7H7z'/%3E%3C/svg%3E")}
#orderList button[data-icon="invoice"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l4 4v16H6z'/%3E%3Cpath d='M9 11h7M9 15h7M9 7h3'/%3E%3C/svg%3E")}
#orderList button[data-icon="receipt"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 7h6M9 11h6'/%3E%3C/svg%3E")}
#orderList button[data-icon="kitchen"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11h16v4a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z'/%3E%3Cpath d='M2 11h20'/%3E%3Cpath d='M9 7c0-1.2 1.2-1.2 1.2-2.6M14 7c0-1.2 1.2-1.2 1.2-2.6'/%3E%3C/svg%3E")}
#orderList button[data-icon="cancel"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7'/%3E%3C/svg%3E")}
#orderList button[data-icon="return"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h11a5 5 0 0 1 0 10h-3'/%3E%3C/svg%3E")}
#orderList button[data-icon="check"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E")}
#orderList button[data-icon="serve"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")}
#orderList button[data-icon="pay"]{--order-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E")}
#orderList .order-items .order-item-name small,#orderList .order-items .order-item-name span,#orderList .order-items .order-item-name b{display:inline}
#orderList .order-items .order-items-more{min-height:0;padding:0;border:0;background:none;box-shadow:none;color:var(--accent);font-size:12px;font-weight:700;text-decoration:underline}
html[data-appearance="dark"] #orderList .order-items .order-items-more,html[data-appearance="dark"] #orderList .order-item-name b{color:#9fe0bb}

/* Shared till (RUX-03): name picker, PIN pad and the "Taking orders as" bar. */
.shared-till-bar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;padding:8px 16px;background:#16241d;color:#e6eee9;border-bottom:1px solid #2c4436;font-size:14px}
.shared-till-bar b{font-weight:700}
.shared-till-lock{margin-left:auto;min-height:44px;border-radius:999px;padding:8px 20px;font-weight:800;font-size:1rem;background:#f2b33d;color:#1d1405;border:2px solid #f2b33d;box-shadow:0 0 0 3px rgba(242,179,61,.25)}
.shared-till-lock:hover,.shared-till-lock:focus-visible{background:#ffc95c;border-color:#ffc95c}
.shared-till-avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#9fd7b5;color:#0f2219;font-weight:800;font-size:13px;flex:0 0 auto}
.shared-till-avatar.big{width:64px;height:64px;font-size:22px}
.shared-till-picker{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(8,14,11,.82)}
.shared-till-picker[hidden]{display:none}
.shared-till-card{width:min(560px,100%);max-height:100%;overflow:auto;box-sizing:border-box;padding:24px;border-radius:16px;background:var(--surface,#fff);color:inherit;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.shared-till-card h2{margin:0;font-size:24px}
.shared-till-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;width:100%}
.shared-till-person{display:flex;align-items:center;gap:12px;min-height:72px;padding:10px 14px;border-radius:12px;text-align:left;font-size:16px}
.shared-till-person span{display:flex;flex-direction:column}
.shared-till-person small{color:var(--muted);font-size:12px}
.shared-till-person.locked{opacity:.55}
.shared-till-dots{display:flex;gap:14px;margin:4px 0}
.shared-till-dots span{width:16px;height:16px;border-radius:50%;border:2px solid #2fb36b;box-sizing:border-box}
.shared-till-dots span.filled{background:#2fb36b}
.shared-till-keys{display:grid;grid-template-columns:repeat(3,84px);gap:10px}
.shared-till-key{min-height:60px;font-size:22px;font-weight:700;border-radius:12px}
.shared-till-key[aria-label^="Choose"],.shared-till-key[aria-label^="Clear"]{font-size:14px}
.shared-till-message{margin:0;color:#c0392b;font-weight:600}
html[data-appearance="dark"] .shared-till-message{color:#ffb3a6}
.shared-till-settings table{width:100%;border-collapse:collapse;margin:8px 0}
.shared-till-settings td,.shared-till-settings th{padding:6px 8px;text-align:left;border-bottom:1px solid var(--line)}
.shared-till-settings input[type=password]{width:90px;margin-right:6px}
.shared-till-picker .shared-till-keys .shared-till-key{font-size:24px;min-height:60px}
.shared-till-picker .shared-till-keys .shared-till-key[aria-label^="Choose"],.shared-till-picker .shared-till-keys .shared-till-key[aria-label^="Clear"]{font-size:14px}
.shared-till-picker .shared-till-person{font-size:16px}
.shared-till-move-dialog{border:0;border-radius:16px;padding:0;background:transparent}
.shared-till-move-dialog::backdrop{background:rgba(8,14,11,.7)}
.shared-till-move-dialog label{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;font-weight:600}

/* Staff pay (RUX-08) */
.staff-commission{margin-top:1.5rem}
.staff-commission .toolbar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}
.staff-commission-table td.num,.staff-commission-detail td.num{text-align:right;white-space:nowrap}
.staff-commission-detail{margin:.5rem 0}
.staff-pay-inputs{display:flex;flex-wrap:wrap;gap:1rem;margin:.5rem 0}
@media print{body.printing-commission > *:not(main),body.printing-commission main > *:not(#workspace),body.printing-commission #workspace > *:not(#activity),body.printing-commission #activity > *:not(#staffCommissionReport),body.printing-commission #staffCommissionReport .actions,body.printing-commission #staffCommissionReport .toolbar button{display:none!important}body.printing-commission #activity{display:block!important}}

/* Fix a mistake panel (FM-13, 12 Nov 2026) */
.sales-fix-panel{border:1px solid #dce8ef;border-radius:12px;padding:1rem;margin-top:1rem;background:#f8fbfd}.sales-fix-panel[hidden]{display:none}.sales-fix-panel h3{margin:0 0 .25rem}.sales-fix-options{display:grid;gap:.6rem;margin-top:.5rem}.sales-fix-option{display:grid;grid-template-columns:minmax(12rem,auto) 1fr;gap:.75rem;align-items:center}.sales-fix-option p{margin:0}@media(max-width:650px){.sales-fix-option{grid-template-columns:1fr}}

/* FM-11: Amend dates and wording, inside the Fix a mistake panel. */
.sales-fix-amend{display:grid;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border,#d8dce3)}
.sales-fix-amend label{display:grid;gap:4px}
.sales-fix-amend textarea{min-height:64px}

/* Bank Loans screen (BL-14b) */
.loans-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.loans-tabs{display:flex;gap:8px;margin:8px 0}
.loans-tabs [aria-selected="true"]{font-weight:600;border-bottom:2px solid currentColor}
.loans-table-wrap{overflow-x:auto;max-width:100%}
.loans-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.loans-table th,.loans-table td{padding:6px 8px;border-bottom:1px solid rgba(127,127,127,.25);text-align:left;white-space:nowrap}
.loans-table td:nth-child(n+4){text-align:right}
/* The loans list: only Amount is a number; Maturity, Status and Next sit under their left-aligned headings. */
.loans-list th:nth-child(4){text-align:right}.loans-list td:nth-child(n+5),.loans-list th:nth-child(n+5){text-align:left}
.loans-form fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:0 0 16px;padding:12px;border:1px solid rgba(127,127,127,.3);border-radius:6px}
.loans-field{display:grid;gap:4px}.loans-field-error input,.loans-field-error select{outline:2px solid #c0392b}
.loans-error{color:inherit;font-weight:600;border-left:3px solid #c0392b;padding-left:8px}.loans-message{color:#1e8449}
.loans-next{padding:10px 12px;border-left:4px solid #2e86c1;background:rgba(46,134,193,.08);margin:8px 0}
.loans-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.loans-facts{display:grid;grid-template-columns:max-content 1fr;gap:4px 16px}.loans-facts dt{font-weight:600}
.loans-check{display:flex;gap:8px;align-items:flex-start;margin:6px 0}.loans-levels{border:0;padding:0;margin:12px 0}
@media (max-width:600px){.loans-facts{grid-template-columns:1fr}.loans-facts dd{margin:0 0 8px}}
.loans-account,.loans-compare{display:grid;gap:8px;margin:12px 0;max-width:640px}.loans-compare ul{margin:0;padding-left:20px}
.loans-summary{border:1px solid #dfe3e8;border-radius:12px;padding:16px;margin:0 0 18px}.loans-summary-card{margin:12px 0}.loans-summary-card h4{margin:0 0 6px}.loans-asof{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:8px 0}.loans-asof .loans-field{margin:0}.loans-position{margin:16px 0}.loans-print-only{display:none}
@media print{body.loans-printing>main{display:block!important}body.loans-printing *{visibility:hidden}body.loans-printing .loans-detail,body.loans-printing .loans-detail *{visibility:visible}body.loans-printing .loans-detail{position:absolute;inset:0 auto auto 0;width:100%}body.loans-printing .loans-detail button,body.loans-printing .loans-detail input,body.loans-printing .loans-asof,body.loans-printing .loans-actions,body.loans-printing .loans-account,body.loans-printing .loans-compare{display:none!important}body.loans-printing .loans-print-only{display:block}}
/* FA-30: fixed asset tag labels (screen preview and print). */
.fa-labels{display:grid;grid-template-columns:repeat(auto-fill,minmax(62mm,1fr));gap:4mm;margin:12px 0}.fa-label{border:1px dashed #9aa3ad;border-radius:6px;padding:3mm;text-align:center;break-inside:avoid;background:#fff;color:#000;font-size:9pt;line-height:1.3}.fa-label img{display:block;margin:0 auto 1mm;max-width:100%;height:14mm}.fa-label strong{display:block;font-size:11pt;letter-spacing:.04em}.fa-label span{display:block}
@media print{body.fa-labels-print *{visibility:hidden}body.fa-labels-print .fa-labels,body.fa-labels-print .fa-labels *{visibility:visible}body.fa-labels-print .fa-labels{position:absolute;inset:0;grid-template-columns:repeat(3,1fr)}}
.coa-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.coa-meta{margin:4px 0 12px}.coa-note{border-left:3px solid #c9a227;padding:6px 10px;margin:10px 0}.coa-gap{border:1px solid #e3b4b4;border-radius:10px;padding:10px 12px;margin:10px 0}.coa-error{color:inherit;font-weight:600;border-left:3px solid #b42318;padding-left:8px}
#coa-search{width:100%;max-width:420px;margin:8px 0 14px}.coa-section{margin:0 0 20px}.coa-table-wrap{overflow-x:auto}.coa-table{width:100%;border-collapse:collapse}.coa-table th,.coa-table td{text-align:left;padding:6px 8px;border-bottom:1px solid rgba(127,127,127,.2);vertical-align:top}.coa-group{font-weight:600}.coa-create{margin:24px 0 12px;max-width:560px}.coa-field{display:grid;gap:4px;margin:0 0 10px}.coa-field input,.coa-field select{width:100%;max-width:100%;box-sizing:border-box}.coa-field-error input,.coa-field-error select{outline:2px solid #b42318}.coa-field-message{color:#b42318}.coa-create-actions{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.coa-new td{background:rgba(201,162,39,.18);font-weight:600}.coa-built-in td:nth-child(2){font-style:italic}.coa-total td,.coa-heading td{font-weight:600}
.coa-code{margin-left:6px;padding:1px 6px;border:1px solid rgba(127,127,127,.45);border-radius:8px;font-size:.85em;white-space:nowrap}
/* FA-33: the fixed asset audit pack (screen preview and print). */
.fa-audit-pack{background:#fff;color:#000;padding:16px;border:1px solid #dfe3e8;border-radius:10px}.fa-audit-pack h2{page-break-before:always;break-before:page}.fa-audit-pack h2:first-of-type{page-break-before:auto;break-before:auto}.fa-audit-pack table{font-size:9pt}
@media print{body.fa-audit-print *{visibility:hidden}body.fa-audit-print .fa-audit-pack,body.fa-audit-print .fa-audit-pack *{visibility:visible}body.fa-audit-print .fa-audit-pack{position:absolute;inset:0;border:0;padding:0}}
/* Fixed assets: keep every screen inside the page width; wide tables scroll inside their own box with the first column
   held in place; the result line of each check reads apart from its explanation; on phones the tabs scroll in one row
   and buttons are large enough to tap. */
.fixed-assets-root{min-width:0;max-width:100%}.fixed-assets-root section,.fixed-assets-root form{min-width:0;max-width:100%}
.fixed-assets-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border:1px solid #dfe3e8;border-radius:10px;margin:8px 0 14px;background:#fff}
.fixed-assets-table table{border-collapse:separate;border-spacing:0;min-width:100%;margin:0}.fixed-assets-table th,.fixed-assets-table td{padding:7px 10px;border-bottom:1px solid #eef1f4;vertical-align:top}
.fixed-assets-table td{white-space:nowrap}.fixed-assets-table th:first-child,.fixed-assets-table td:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 0 #eef1f4}
.fixed-assets-table tr.fixed-assets-total>*,.fixed-assets-table tr.fixed-assets-group>*{background:#f7f9fb;font-weight:600}
.fixed-assets-check{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:2px 0}.fixed-assets-check>strong{flex:0 1 auto}.fixed-assets-check>.secondary{flex:1 1 12em}
.fixed-assets-root button.link{min-height:0;border:0;background:none;box-shadow:none;padding:2px 0;color:#0b6b8f;text-align:left;text-decoration:underline;text-underline-offset:2px;white-space:normal;font-size:inherit;cursor:pointer}
.fixed-assets-table caption{caption-side:top;position:sticky;left:0;text-align:left;padding:8px 10px;max-width:calc(100vw - 40px);white-space:normal;color:#5b6573;font-size:13px}
.fixed-assets-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 14px}.fixed-assets-tabs button{flex:0 0 auto}
.fixed-assets-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end}
.fixed-assets-root dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;margin:8px 0}.fixed-assets-root dt{margin:0}.fixed-assets-root dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:680px){
 .fixed-assets-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding-bottom:6px}
 .fixed-assets-tabs button{scroll-snap-align:start;white-space:nowrap}
 .fixed-assets-root button:not(.link),.fixed-assets-root select,.fixed-assets-root input{min-height:44px}
 .fixed-assets-filters{grid-template-columns:1fr 1fr}.fixed-assets-filters button{grid-column:1/-1}
 .fixed-assets-table th,.fixed-assets-table td{padding:6px 8px;font-size:14px}
}

/* Payroll tables on a narrow screen: each row becomes a card, one labelled line per cell, so row buttons stay in view. */
@media (max-width:760px){.payroll-table,.payroll-table tbody,.payroll-table tr,.payroll-table td{display:block;width:100%}.payroll-table thead{display:none}.payroll-table tr{border-bottom:1px solid var(--line,#d6d6d6);padding:8px 0}.payroll-table td{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:3px 0;border:0}.payroll-table td[data-label]::before{content:attr(data-label);font-weight:600;min-width:8.5rem}.payroll-table td input,.payroll-table td select{max-width:100%}}
/* FA-40: a fieldset is at least as wide as its contents by default; let its tables scroll inside it on a phone. */
.fixed-assets-root fieldset{min-width:0;max-width:100%}
.coa-switch{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;border:1px solid rgba(127,127,127,.3);border-radius:10px}.coa-switch p{flex-basis:100%;margin:0}.coa-switch input{flex:1 1 220px;min-width:0}
/* Farm overview on the Livestock & flocks screen: the four totals sit side by side and wrap on a phone. */
.livestock-farm-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0}
.livestock-farm-totals dt{font-size:.85em;opacity:.8}
.livestock-farm-totals dd{margin:2px 0 0;font-size:1.3em;font-weight:600}
/* Livestock report filters: one row that wraps on a phone. */
.livestock-report-filters{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;margin:10px 0}
.livestock-report-filters>label{display:flex;flex-direction:column;gap:4px;flex:1 1 12rem;max-width:18rem;font-size:12px}
/* JE-01 Journal entries */
.je-head{display:flex;justify-content:flex-end;margin-bottom:8px}.je-form{border:1px solid rgba(127,127,127,.3);border-radius:10px;padding:12px 14px;margin:0 0 18px}
.je-top{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:10px}.je-top label{display:flex;flex-direction:column;gap:4px}.je-narration{flex:1 1 320px}.je-narration input{width:100%}
.je-table-wrap{overflow-x:auto}.je-lines{width:100%;border-collapse:collapse}.je-lines th,.je-lines td{padding:4px 6px;text-align:left;vertical-align:top;border-bottom:1px solid rgba(127,127,127,.2)}
.je-account{min-width:280px;width:100%}.je-amount{text-align:right;font-variant-numeric:tabular-nums}input.je-amount{width:9em}.je-total-label{font-weight:600}
.je-balanced{color:#2e7d32;font-weight:600}.je-error{color:#b3261e}.je-warn{color:#8a6100;font-size:.9em}.je-note{border-left:3px solid #c9a227;padding:6px 10px}.je-say{font-weight:600}
.je-journal{border:1px solid rgba(127,127,127,.25);border-radius:8px;padding:8px 10px;margin:0 0 8px}.je-journal-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.je-journal-head .link{flex:1 1 auto;text-align:left}
.je-state{font-size:.85em;padding:1px 8px;border-radius:8px;border:1px solid rgba(127,127,127,.45)}.je-state-verified{border-color:#2e7d32}.je-state-uncertain,.je-state-rejected{border-color:#b3261e}.je-view{margin-top:6px}

/* WL-04/WL-05: opening count and move between customers stack on a phone (390 px). */
.returnables-custody-change .returnables-custody-form{display:grid;gap:.5rem;margin-block:.75rem}
@media (max-width:480px){.returnables-custody-change .returnables-custody-form label,.returnables-custody-change .returnables-custody-form select,.returnables-custody-change .returnables-custody-form input,.returnables-custody-change .returnables-custody-form textarea,.returnables-custody-change .returnables-custody-form button{display:block;width:100%;box-sizing:border-box}}

.tb-num{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}.tb-unusual td{font-weight:600}.tb-zero{display:flex;align-items:center;gap:6px}.tb-warnings ul{margin:6px 0 0;padding-left:20px}
/* Sign-in time (owner, 18 Nov 2026): the "Other" amount and unit sit side by side; extra-time buttons wrap on phones. */
.sign-in-other{display:flex;gap:12px;flex-wrap:wrap}.sign-in-other label{flex:1 1 140px}
.sign-in-extra{flex-wrap:wrap;justify-content:flex-start}
/* On phones the header is full, so Sign-in time shows as a clock only (its name stays for screen readers and on hover). */
.sign-in-time-button .sign-in-time-icon{display:none}
@media (max-width:680px){.sign-in-time-button .sign-in-time-text{display:none}.sign-in-time-button .sign-in-time-icon{display:inline}.sign-in-time-button{padding:0 10px!important}}

/* Financial statements FS-8: an account name that opens its General Ledger; FS-9 period choices. */
.link-button{background:none;border:0;padding:0;color:inherit;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer;font:inherit;text-align:left}
.link-button:hover,.link-button:focus-visible{text-decoration-style:solid}
.fs-period{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end;margin:8px 0}
.fs-period label{display:flex;flex-direction:column;gap:2px;font-size:.9em}
.gl-table td:first-child{white-space:nowrap}
/* WFM-05 Waiting for me: top-bar button and its list. */
.app-header .header-work{flex-shrink:0;min-height:34px;padding:0 12px;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.header-work-count{display:inline-block;min-width:22px;padding:1px 7px;border-radius:11px;background:var(--canvas,#eef1f5);color:var(--ink,#344054);border:1px solid var(--line,#e8eaf0);font-weight:600;text-align:center}
.header-work.has-work .header-work-count{background:var(--accent);color:#fff}
.header-work.has-late .header-work-count{background:#c0392b;color:#fff}
.work-inbox-panel{position:fixed;top:84px;right:16px;z-index:60;width:min(440px,calc(100vw - 32px));max-height:calc(100vh - 110px);overflow:auto;background:var(--surface,#fff);color:var(--ink,#202835);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(16,24,40,.16);padding:14px 16px}
.work-inbox-head{display:flex;align-items:center;gap:8px}.work-inbox-head h2{flex:1;margin:0;font-size:16px;color:var(--ink,#202835)}
.work-list{list-style:none;margin:8px 0;padding:0;display:grid;gap:8px}
.work-item-open{width:100%;text-align:left;display:grid;gap:3px;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:9px;background:var(--surface,#fff);color:var(--ink,#202835)}
.work-item.today .work-item-open{border-left-color:#b7791f}.work-item.late .work-item-open{border-left-color:#c0392b}
/* WFM-20/21: category cards and step groups inside Waiting for me */
.work-categories{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:8px 0}
.work-category{display:grid;gap:2px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:9px;background:var(--surface,#fff);color:var(--ink,#202835);cursor:pointer}
.work-category.late{border-left-color:#c0392b}
.work-category-count{font-size:1.4em;font-weight:700}
.work-category-detail{font-size:.85em;color:var(--muted,#5b6472)}
.work-category-title{margin:8px 0 0}
.work-step-title{margin:10px 0 0;font-size:.95em}
/* WFM-24: choose several to approve */
.work-item.pickable{display:flex;gap:8px;align-items:flex-start}.work-item.pickable .work-item-open{flex:1}.work-pick{margin-top:12px}.work-approve-many{margin:6px 0}.work-approve-one{align-self:center;white-space:nowrap}
/* WFM-22: filters and search */
.work-filters{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0}
.work-filters input[type=search]{flex:1 1 180px;min-width:0}
.work-filters select{max-width:180px}
.work-filter-late{display:flex;align-items:center;gap:4px;font-size:.9em}
.work-item-top{display:flex;justify-content:space-between;gap:10px}.work-item-age{color:var(--muted,#667085);white-space:nowrap}.work-item.late .work-item-age{color:#c0392b;font-weight:600}
.work-item-detail,.work-item-who{color:var(--muted,#475467);font-size:12px}
@media (max-width:700px){.work-inbox-panel{top:64px;right:8px;left:8px;width:auto}}
.work-inbox-tabs{display:flex;gap:6px;margin:10px 0 4px}.work-inbox-tabs button{min-height:32px;padding:4px 12px}
.work-inbox-panel p.muted{color:var(--muted,#71808e)}
.work-item-note{color:#b42318;font-size:12px}
.work-inbox-panel label{display:block;margin:8px 0 4px;font-size:12px;color:var(--muted,#71808e)}.work-inbox-panel input,.work-inbox-panel select{width:100%;box-sizing:border-box}.work-inbox-panel #workInboxBody>button{margin-top:10px}
/* BV-39 stock guidance on stock-use rows */
.stock-use-guidance{grid-column:1/-1;font-size:.9em;margin:4px 0 0}.stock-use-guidance p{margin:2px 0}.stock-use-guidance button{margin:4px 8px 0 0}
.stock-use-guidance-short{border-left:3px solid var(--warning);padding-left:8px}
.stock-use-guidance-check{border-left:3px solid var(--warning);padding-left:8px}

/* SU-07 (24 Nov 2026): sign-up and password reset messages that are not errors are not red. */
#signupMessage[data-tone="info"],#resetMessage[data-tone="info"]{color:#36506a}#signupMessage[data-tone="success"],#resetMessage[data-tone="success"]{color:#12704a}
html[data-appearance="dark"] #signupMessage[data-tone="info"],html[data-appearance="dark"] #resetMessage[data-tone="info"]{color:#a9c4dd}html[data-appearance="dark"] #signupMessage[data-tone="success"],html[data-appearance="dark"] #resetMessage[data-tone="success"]{color:#6fd3a1}

/* MU-5 (Jef 28 Nov 2026): till expiry warning, coloured by urgency. Expired and a week or less red, a month or less amber, later yellow. */
.batch-expiry-badge{display:inline-flex;align-items:center;gap:4px;margin-top:3px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:700;line-height:1.5;border:1px solid transparent;width:fit-content;max-width:100%}
.batch-expiry-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.batch-expiry-badge.batch-expired{background:#b42318;color:#fff;border-color:#912018}
.batch-expiry-badge.batch-critical{background:#fde8e7;color:#b42318;border-color:#f5b5b0}
.batch-expiry-badge.batch-warning{background:#fff1dc;color:#9a5b00;border-color:#f3c98a}
.batch-expiry-badge.batch-notice{background:#fefbe8;color:#7a6200;border-color:#efe08a}
html[data-appearance="dark"] .batch-expiry-badge.batch-expired{background:#d92d20;color:#fff;border-color:#f97066}
html[data-appearance="dark"] .batch-expiry-badge.batch-critical{background:rgba(240,68,56,.18);color:#fda29b;border-color:rgba(240,68,56,.45)}
html[data-appearance="dark"] .batch-expiry-badge.batch-warning{background:rgba(247,144,9,.16);color:#fec84b;border-color:rgba(247,144,9,.4)}
html[data-appearance="dark"] .batch-expiry-badge.batch-notice{background:rgba(234,214,64,.12);color:#eee08a;border-color:rgba(234,214,64,.35)}
/* MU-6: expired batch refused at the till, and the one-step move to the quarantine store. */
.batch-expired-note{display:block;color:#b42318;font-weight:600;margin-top:4px}
.menu-card .quarantine-move{display:block;margin-top:6px;padding:4px 10px;font-size:.85em;border:1px solid #b42318;background:#fff;color:#b42318;border-radius:6px;cursor:pointer}
.menu-card .quarantine-move:disabled{opacity:.6;cursor:default}
html[data-appearance="dark"] .batch-expired-note{color:#ff8a80}
html[data-appearance="dark"] .menu-card .quarantine-move{background:transparent;color:#ff8a80;border-color:#ff8a80}
/* KS-083: a held customer advance stands out on the customer list; messages of the Apply held advance box show inside it. */
.customer-register .held-advance-tag{display:inline-block;margin:4px 0 0 8px;padding:2px 10px;border-radius:999px;background:#fff3d9;color:#7a4b00;border:1px solid #e5b85c;font-size:12px;font-weight:700;line-height:1.5}
.held-advance-summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px}
.held-advance-summary button{min-height:36px;padding:6px 14px;font-size:13px}
.held-advance-message{margin:8px 0;font-weight:600}.held-advance-message:empty{display:none}
/* MU-7: batch number and expiry under a purchase line's description. */
.purchase-line-batch{display:flex;gap:6px;margin-top:4px;flex-wrap:wrap}
.purchase-line-batch input{flex:1 1 8em;min-width:7em;font-size:.9em}
.purchase-line-batch-expired{flex-basis:100%;color:#b42318;font-size:.85em;font-weight:600}
/* MU-8: the quarantine confirm survives a menu redraw; the result stays on the card. */
.menu-card .quarantine-move.quarantine-armed{background:#b42318;color:#fff}
.menu-card .quarantine-done{display:block;margin-top:6px;color:#067647;font-weight:600}
.menu-card .quarantine-done.quarantine-failed{color:#b42318}
html[data-appearance="dark"] .menu-card .quarantine-move.quarantine-armed{background:#ff8a80;color:#1b1b1b}
html[data-appearance="dark"] .menu-card .quarantine-done{color:#6ce9a6}
html[data-appearance="dark"] .menu-card .quarantine-done.quarantine-failed{color:#ff8a80}
/* KS-084: Apply held advance box lands below the top bar, not under it; on a phone each customer statement line reads as a card. KS-085: the card drops the 680px .management-table minimum, which pushed every figure off screen. */
.customer-held-advance{scroll-margin-top:96px}
@media(max-width:700px){#statementLines .report-flex-wrap{max-height:none;border:0}#statementLines .report-flex-table,#statementLines .report-flex-table tbody,#statementLines .report-flex-table tfoot,#statementLines .report-flex-table tr,#statementLines .report-flex-table td{display:block;width:auto}#statementLines .report-flex-table{min-width:0}#statementLines .report-flex-table thead{display:none}#statementLines .report-flex-table tr{border:1px solid #dce5eb;border-radius:10px;margin:0 0 10px;padding:6px 10px;background:var(--surface,#fff)}#statementLines .report-flex-table td{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border:0;text-align:right;white-space:normal;position:static}#statementLines .report-flex-table td[data-label]::before{content:attr(data-label);font-weight:600;color:#5f6b66;text-align:left}#statementLines .report-flex-table td.report-flex-first{font-weight:600}}
