:root{--bg:#f7f8fa;--surface:#fff;--ink:#20262d;--muted:#5f6670;--line:#e9ebef;--red:#ce3038;--red-soft:#fff0f0;--yellow:#edbe3e;--green:#2a8467;--sidebar:246px;--radius:12px;font-family:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e6b530;outline-offset:3px}h1,h2,h3,h4,p{margin:0}h1{font-size:29px;font-weight:660;letter-spacing:-1px;line-height:1.25}h2{font-size:16px;font-weight:650;letter-spacing:-.3px}h3{font-size:19px;line-height:1.4}h4{font-size:13px}small{font-size:13px}.icon{flex-shrink:0;vertical-align:middle}.muted{color:var(--muted);line-height:1.6}.strong{font-weight:600}.red-text{color:var(--red)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;left:16px;top:-100px;z-index:50;background:#fff;padding:12px}.skip-link:focus{top:10px}
.sidebar{width:var(--sidebar);position:fixed;left:0;top:0;bottom:0;background:#fff;border-right:1px solid var(--line);padding:31px 18px 18px;z-index:25;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px}.brand img{height:43px;width:43px;object-fit:contain;border-radius:9px;border:1px solid var(--line)}.brand>span{font-size:13px;font-weight:800;letter-spacing:.4px;line-height:1.45}.brand small{display:block;font-size:13px;letter-spacing:2.7px;font-weight:550;color:var(--muted)}.sidebar .brand{padding:0 6px}.workspace-label{margin:30px 7px 25px;padding:11px 10px;border:1px solid var(--line);border-radius:7px;font-size:13px;color:#676c74;display:flex;align-items:center;gap:8px;background:#fbfcfd}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#4e9c76;flex-shrink:0}.nav-label{font-size:12px;color:var(--muted);font-weight:700;letter-spacing:1.8px;padding:0 16px;margin-bottom:11px}.nav-space{margin-top:31px}.nav-item{display:flex;align-items:center;gap:12px;color:var(--muted);padding:12px 14px;margin:3px 0;border-radius:7px;font-size:14px;font-weight:550;min-height:42px}.nav-item .icon{width:18px;height:18px}.nav-item:hover{background:#f7f8fa;color:var(--ink)}.nav-item.active{color:var(--red);background:#fff0f0;font-weight:650;position:relative}.nav-item.active:before{position:absolute;content:'';width:3px;height:18px;background:var(--red);left:0;border-radius:2px}.sidebar-bottom{margin-top:auto;padding:25px 8px 0}.brand-note{background:#faf9f6;padding:17px 15px;border-radius:9px;margin-bottom:20px}.brand-rule{height:3px;display:block;background:linear-gradient(90deg,var(--red) 50%,var(--yellow) 50%);width:28px;margin-bottom:13px;border-radius:2px}.brand-note strong{font-size:13px}.brand-note p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:6px}.local-tag{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:7px}.app-shell{margin-left:var(--sidebar)}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{color:var(--muted);font-size:13px;white-space:nowrap}.breadcrumb span{margin:0 13px;color:var(--muted)}.breadcrumb strong{font-weight:500;color:#4a525d}.top-actions{display:flex;align-items:center;gap:20px}.global-search{display:flex;align-items:center;gap:8px;color:var(--muted)}.global-search .icon{width:16px}.global-search input{border:0;background:transparent;outline:none;font-size:13px;width:165px;color:#4b525a}.branch-select{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;padding:9px 10px;gap:6px}.branch-select select{border:0;background:transparent;max-width:144px;font-size:13px;font-weight:550;color:#545b65;outline:none}.avatar{width:34px;height:34px;display:grid;place-items:center;background:#f3e6dd;color:#6f4f3a;border:3px solid #fff;outline:1px solid var(--line);border-radius:50%;font-size:13px;font-weight:700}.icon-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;background:transparent;color:var(--muted);border-radius:6px}.icon-button:hover{background:var(--bg)}.mobile-menu{display:none}main#main{max-width:1600px;margin:auto;padding:34px 34px 0}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{font-size:12px;color:var(--muted);letter-spacing:1.6px;font-weight:650;margin-bottom:10px}.eyebrow span{margin:0 6px}.page-subtitle{margin-top:10px;color:var(--muted);font-size:14px;line-height:1.6}.head-actions{display:flex;gap:9px;align-items:center;flex-shrink:0}.btn{min-height:38px;padding:10px 14px;border:1px solid #dfe2e7;border-radius:7px;background:#fff;color:#525a65;font-size:13px;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:8px;white-space:nowrap;transition:background .15s,border-color .15s}.btn .icon{width:15px;height:15px}.btn:hover{background:#f5f6f8;border-color:#bac0c8}.btn.primary{background:var(--red);color:#fff;border-color:var(--red);box-shadow:0 2px 3px #a6283210}.btn.primary:hover{background:#b92832;border-color:#b92832}.btn.small{padding:7px 11px;font-size:13px;min-height:30px}.text-link{color:#686e76;display:inline-flex;gap:7px;align-items:center;font-size:13px;font-weight:550;white-space:nowrap}.text-link:hover{color:var(--red)}.text-link .icon{height:14px;width:14px}.icon-link{display:flex;justify-content:center;color:var(--muted)}.icon-link:hover{color:var(--red)}.record-link{color:#3b4654;font-weight:650;white-space:nowrap}.record-link:hover{color:var(--red)}.section-filter{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.segment{display:flex;gap:3px;padding:4px;border:1px solid var(--line);border-radius:7px;background:#f0f2f5}.segment a{padding:7px 12px;font-size:13px;color:var(--muted);border-radius:5px;font-weight:550}.segment .selected{background:#fff;color:#414951;box-shadow:0 1px 4px #14213a0d}.date-caption{font-size:13px;color:var(--muted);display:flex;gap:7px;align-items:center}.date-caption .icon{width:14px;height:14px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:21px}.metric{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:20px 20px 17px;min-width:0;position:relative}.metric-label{font-size:13px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:7px}.metric-icon{height:29px;width:29px;border-radius:7px;display:grid;place-items:center}.metric-icon .icon{height:15px;width:15px}.amber{background:#fff7df;color:#a98218}.green{background:#eaf7f0;color:#3b8a65}.blue{background:#edf3fa;color:#6988b0}.red{background:#fff0f1;color:#c76d72}.metric-value{font-size:28px;letter-spacing:-1px;line-height:1.3;font-weight:650;margin:12px 0 14px;white-space:nowrap}.metric-value small{font-size:13px;letter-spacing:0;margin-left:6px;color:var(--muted);font-weight:400}.metric-value sup{font-size:13px;letter-spacing:0;font-weight:500;color:var(--muted);margin-right:6px;vertical-align:middle}.metric-foot{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:5px;line-height:1.5}.mini-dot{display:inline-block;width:5px;height:5px;border-radius:50%;flex-shrink:0}.mini-dot.green{background:#6caa8d}.mini-dot.amber{background:#e4bf59}.mini-dot.red{background:#d8747a}.accent-metric{border-top:2px solid #e8b5b8;padding-top:19px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:21px;min-width:0}.panel-head{padding:22px 23px 19px;display:flex;justify-content:space-between;align-items:center;gap:16px}.panel-head h2{font-size:14px}.panel-head p{color:var(--muted);font-size:13px;margin-top:7px;line-height:1.6}.subtle-badge{display:inline-block;background:#f8f9fb;border:1px solid #e9ecf0;border-radius:5px;color:var(--muted);font-size:12px;padding:6px 9px;white-space:nowrap}.dashboard-middle{display:grid;grid-template-columns:1.66fr 1fr;gap:21px}.chart-panel{padding-bottom:19px}.chart-summary{display:flex;align-items:baseline;gap:7px;margin:0 23px}.chart-summary strong{font-size:23px;letter-spacing:-.6px}.chart-summary>span{font-size:13px;color:var(--muted)}.chart-legend{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.chart-legend i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#efc653}.bar-chart{position:relative;height:173px;margin:17px 25px 0;display:flex;gap:16px;align-items:flex-end}.chart-grid{position:absolute;top:14px;right:0;bottom:26px;left:0;background:repeating-linear-gradient(to top,#edf0f3 0px,#edf0f3 1px,transparent 1px,transparent 35px)}.bar-column{flex:1;display:flex;flex-direction:column;align-items:center;position:relative;min-width:0;height:100%;z-index:1}.bar-column>span{font-size:12px;color:var(--muted);margin-top:9px}.bar-value{font-size:12px;color:var(--muted);height:20px;margin-top:2px}.bar-track{height:130px;display:flex;align-items:flex-end;width:100%;justify-content:center}.bar{width:65%;min-width:10px;max-width:42px;background:#f0ca5b;border-radius:4px 4px 0 0;transition:height .4s}.bar.today{background:var(--red)}.stock-total{font-size:23px;font-weight:650;padding:0 23px 11px;letter-spacing:-.6px}.stock-total span{font-size:13px;color:var(--muted);font-weight:400;letter-spacing:0}.stock-row{display:flex;align-items:center;margin:0 23px;padding:11px 0;border-bottom:1px solid #f2f3f5;gap:11px}.stock-row:last-of-type{border-bottom:0}.stock-row strong{font-size:13px;font-weight:550}.stock-row small{font-size:12px;display:block;color:var(--muted);margin-top:4px}.stock-row b{margin-left:auto;font-size:14px;font-weight:600}.block-tile{height:29px;width:36px;display:flex;gap:4px;align-items:center;justify-content:center;background:#eadfcc;border-radius:3px;border-right:5px solid #c8bda9;border-bottom:4px solid #d3c6af;transform:skewY(-5deg);flex-shrink:0}.block-tile.hollow i{width:8px;height:12px;background:#a69a85;box-shadow:inset 2px 2px 0 #8d816d;border-radius:1px}.block-tile.large{height:47px;width:58px;border-right-width:8px;border-bottom-width:6px}.block-tile.large.hollow i{width:12px;height:22px}.panel-bottom-link{font-size:13px;padding:13px 23px;background:#fcfcfd;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:var(--muted)}.panel-bottom-link .icon{width:14px;height:14px}.dashboard-lower{display:grid;grid-template-columns:1.66fr 1fr;gap:21px}.table-wrap{overflow-x:auto;position:relative}table{width:100%;border-collapse:collapse;text-align:left}th{background:#fafbfc;color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.6px;padding:12px 20px;white-space:nowrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:16px 20px;font-size:13px;border-bottom:1px solid #f0f2f5;color:#606975;line-height:1.5}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fdfdfe}.num{text-align:right;font-variant-numeric:tabular-nums}td small{font-size:12px;color:var(--muted);font-weight:400}.cell-sub{display:block;margin-top:4px}.branch-cell{display:flex;gap:10px;align-items:center}.branch-cell strong{font-size:13px;font-weight:600;white-space:nowrap;color:#555e69}.branch-cell small{display:block;margin-top:3px;font-size:12px;color:var(--muted)}.branch-icon{background:#f5f6f8;color:var(--muted);border:1px solid #ebeef1;height:32px;width:32px;border-radius:7px;display:grid;place-items:center;flex-shrink:0}.branch-icon .icon{height:15px;width:15px}.badge{display:inline-flex;align-items:center;border-radius:5px;padding:5px 8px;font-size:12px;font-weight:550;white-space:nowrap;line-height:1.4}.count-badge{border:1px solid #efdba5;color:#735612;background:#fffaeb;border-radius:6px;font-size:12px;padding:4px 7px}.attention-item{display:flex;align-items:center;gap:10px;padding:16px 20px;border-top:1px solid #f1f2f5}.attention-item:first-of-type{border-top:0}.attention-item strong{font-size:13px;font-weight:600;color:#5e6570}.attention-item p{font-size:12px;color:var(--muted);line-height:1.6;margin-top:5px}.attention-item>.icon{height:13px;width:13px;color:var(--muted);margin-left:auto;flex-shrink:0}.attention-mark{height:25px;width:25px;flex-shrink:0;display:grid;place-items:center;border-radius:6px;font-size:14px;font-weight:600}.all-clear{padding:35px 20px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:10px}.all-clear>span{background:#ecf6ef;color:var(--green);padding:10px;border-radius:50%}.all-clear strong{font-size:14px}.all-clear p{font-size:13px;color:var(--muted)}.site-footer{margin-top:auto;padding-top:28px;color:var(--muted);font-size:12.5px;line-height:1.6}.site-footer-inner{padding:16px 0 22px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px}.site-footer p{margin:0}.site-footer-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px}.site-footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.site-footer a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;border-radius:3px}.site-footer a:hover{text-decoration-color:currentColor}.site-footer a:focus-visible{outline:3px solid #e6b530;outline-offset:2px}.app-shell{display:flex;flex-direction:column;min-height:100vh}.app-shell>main{flex:1 0 auto;width:100%;margin:0 auto}.app-shell>.site-footer{width:100%;max-width:1600px;margin:0 auto;padding-left:34px;padding-right:34px}.shared-page{min-height:100vh;display:flex;flex-direction:column}.shared-page>main{flex:1 0 auto;width:100%}.shared-page>.site-footer{width:100%;max-width:900px;margin:0 auto;padding-left:16px;padding-right:16px}.legal-brand{margin:8px 0 18px}.legal-missing{margin-bottom:16px}.legal-text{line-height:1.75;padding:28px 32px}@media(max-width:760px){.legal-text{padding:20px 18px}}.legal-text h1{margin-bottom:8px}.legal-text h2{font-size:16px;margin:24px 0 6px}.legal-text p,.legal-text li{color:var(--ink);font-size:14.5px}.legal-text ul{padding-left:20px;margin:8px 0}.legal-text li{margin:5px 0}.legal-text a{text-decoration:underline;text-underline-offset:3px}.login-form-side>.site-footer{width:100%;max-width:350px;padding-top:32px}.dot-separator{margin:0 9px;color:var(--muted)}.empty{padding:32px 22px;color:var(--muted);text-align:center;font-size:14px;line-height:1.8}.empty a{color:var(--red);text-decoration:underline}.summary-strip{display:flex;align-items:center;gap:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:23px;padding:23px 0}.summary-strip>div{padding:0 25px;flex:1;border-right:1px solid var(--line)}.summary-strip>div:last-child{border:0}.summary-strip span{font-size:13px;color:var(--muted)}.summary-strip strong{display:block;margin-top:10px;font-size:24px;letter-spacing:-.6px;font-weight:650}.summary-strip strong small{font-size:14px;color:var(--muted);font-weight:400;letter-spacing:0}.summary-note{font-size:13px;color:var(--muted);line-height:1.8;flex:1.7!important}.inline-search{display:flex;align-items:center;gap:7px}.inline-search .icon{color:var(--muted);width:16px}.inline-search input{background:transparent;border:none;outline:none;font-size:13px;width:168px;color:#656d77}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:21px}.three-col{display:grid;grid-template-columns:1fr 1fr 1fr;gap:21px}.key-values{padding:0 23px 20px}.key-values>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #f1f3f5;padding:13px 0;font-size:14px}.key-values span{color:var(--muted)}.key-values strong{font-size:14px;font-weight:550;text-align:right}.key-values .total{border-top:1px solid #e5e8eb;border-bottom:1px solid #e5e8eb;font-weight:600}.key-values p{font-size:13px;margin-top:14px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px;margin-bottom:23px}.product-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:23px}.product-top{display:flex;justify-content:space-between;align-items:flex-start;height:66px}.product-card h2{margin-top:9px;font-size:14px}.product-count{font-size:27px;font-weight:650;letter-spacing:-.8px;margin:15px 0 18px}.product-count small{font-size:13px;color:var(--muted);letter-spacing:0;font-weight:400}.product-meta{display:flex;flex-direction:column;gap:9px;border-top:1px solid var(--line);padding-top:15px;font-size:13px;color:var(--muted)}.product-meta span{display:flex;justify-content:space-between}.product-meta b{color:#666f7a;font-weight:550}.customer-cell{display:flex;align-items:center;gap:10px}.customer-avatar{width:31px;height:31px;background:#f6eee3;color:#6f5539;border-radius:8px;font-size:12px;display:grid;place-items:center}.customer-cell strong{font-size:13px;font-weight:600}.footnote{font-size:13px;color:var(--muted);line-height:1.8;margin:15px 0 25px}.flash{display:flex;align-items:center;gap:10px;border:1px solid #cbe8d6;background:#effaf2;padding:14px 18px;border-radius:8px;color:#2c6849;font-size:14px;margin-bottom:20px}.flash.error{border-color:#efc6c8;background:#fff0f1;color:#b84750}.form-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(210px,1fr);gap:28px;align-items:start}.form-panel .panel-head{border-bottom:1px solid var(--line)}.form-panel form{padding:24px}.form-fields{display:grid;grid-template-columns:1fr 1fr;gap:22px 20px}.field{min-width:0}.field.wide{grid-column:1/-1}.field label{font-size:13px;font-weight:600;color:#68717c;display:block;margin-bottom:8px}.field label .required{color:var(--red);margin-left:4px}.field label small{color:var(--muted);font-weight:400;margin-left:7px}.field input:not([type=checkbox]),.field select,.field textarea{border:1px solid #dfe4e9;width:100%;padding:11px 12px;border-radius:7px;background:#fff;color:#454e5a;min-height:42px;font-size:14px;transition:border .15s}.field input:focus,.field select:focus,.field textarea:focus{border-color:#dba1a5;outline:3px solid #ce30380a}.field textarea{resize:vertical}.field ul{list-style:none;padding:0}.help{font-size:13px;color:var(--muted);line-height:1.7;margin-top:6px}.form-error{padding:13px 16px;background:#fff0f1;border:1px solid #f0c8cb;border-radius:7px;color:#b7404a;margin-bottom:22px;font-size:14px;line-height:1.7}.form-error ul{margin:0;padding-left:16px}.has-error input,.has-error select{border-color:#d26169!important}.field-error{color:#c13d47;font-size:13px;margin-top:7px}.form-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:27px;border-top:1px solid var(--line);padding-top:22px}.form-aside{padding:29px 15px}.aside-symbol{background:#fff0f0;color:var(--red);display:grid;place-items:center;width:42px;height:42px;border-radius:10px;margin-bottom:20px}.form-aside h3{font-size:17px}.form-aside p{color:var(--muted);font-size:14px;line-height:1.9;margin-top:12px}.aside-line{height:1px;background:var(--line);margin:24px 0}.form-aside h4{color:var(--muted);font-size:14px}.form-aside ul{padding-left:17px;margin:12px 0;color:var(--muted);font-size:13px;line-height:2.2}.form-aside .aside-small{font-size:13px}.compact-form{padding:22px}.compact-form h2{font-size:14px;margin-bottom:10px}.compact-form p.muted{font-size:13px;margin-bottom:18px}.compact-form .form-fields{grid-template-columns:1fr;gap:16px}.compact-form button{margin-top:20px}.report-filters{display:flex;align-items:end;gap:15px;margin-bottom:22px}.report-filters label{font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:7px}.report-filters input{padding:9px 12px;border-radius:7px;border:1px solid var(--line);color:#687381;font-size:14px;background:#fff}.report-filters .text-link{margin-left:auto;padding-bottom:10px}.report-links{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:22px 0}.report-links>a{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);padding:19px;border-radius:9px;font-size:13px;color:var(--muted)}.report-links>a .icon:first-child{color:var(--red);height:17px;width:17px}.report-links>a .icon:last-child{margin-left:auto;color:var(--muted);width:14px;height:14px}.activity-list{padding:0 22px 10px}.activity-item{display:flex;align-items:center;padding:13px 0;gap:11px;border-bottom:1px solid #f2f4f6}.activity-item:last-child{border-bottom:0}.activity-item strong{font-size:13px;font-weight:600}.activity-item p{font-size:13px;color:var(--muted);margin-top:5px;line-height:1.8}.activity-item small{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}.company-card{display:flex;align-items:center;background:#fff;border:1px solid var(--line);padding:25px;border-radius:var(--radius);gap:25px;margin-bottom:23px}.company-card>img{width:118px;height:118px;border-radius:9px;object-fit:contain}.company-card h2{font-size:23px;margin:9px 0}.company-card p{color:var(--muted);font-size:14px;margin-bottom:16px}.notice{padding:18px 22px;background:#fffbf0;border:1px solid #eee5c9;color:#6b5518;border-radius:9px;font-size:13px;line-height:1.8}.search-results>a{display:flex;justify-content:space-between;gap:20px;padding:18px 23px;border-bottom:1px solid var(--line);font-size:14px}.search-results>a span{color:var(--muted)}.document-sheet{max-width:850px;padding:46px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin:auto}.document-head{display:flex;justify-content:space-between;border-bottom:3px solid var(--red);padding-bottom:26px;gap:20px}.document-head>div:last-child{text-align:right}.document-head h2{font-size:20px;margin-bottom:8px}.document-head strong{font-size:14px;color:var(--muted)}.document-parties{display:flex;justify-content:space-between;padding:32px 0}.document-parties h3{font-size:16px;margin-bottom:8px}.document-parties p{font-size:14px;color:var(--muted);line-height:2}.document-total{display:flex;align-items:center;justify-content:flex-end;gap:40px;margin-top:26px}.document-total span{font-size:14px;color:var(--muted)}.document-total strong{font-size:24px}.document-thanks{margin-top:70px;padding-top:20px;border-top:1px solid var(--line);font-size:14px;text-align:center;color:#677381}.document-thanks small{display:block;font-size:13px;margin-top:7px;color:var(--muted)}
.login-layout{display:grid;grid-template-columns:1.05fr 1fr;min-height:100vh}.login-story{background:#232c35;padding:42px 50px;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-story .brand>span{color:#fff}.login-story .brand small{color:#96a0a9}.login-story .brand img{border-color:#424a51}.login-story-copy{margin:auto 0;position:relative;z-index:1}.login-story-copy .eyebrow{color:#e2bc56;letter-spacing:2px}.login-story-copy h1{font-size:44px;line-height:1.22;color:#fff;letter-spacing:-1.5px;margin-top:22px;font-weight:600}.login-story-copy>p{color:#a1acb6;font-size:14px;line-height:1.9;margin-top:23px}.login-tagline{color:#a1acb6;font-size:14px}.login-blocks{display:flex;gap:20px;margin-top:80px;transform:rotate(-8deg)}.login-blocks div{width:140px;height:80px;background:#414c58;border-right:20px solid #303a44;border-bottom:16px solid #35404b;border-radius:4px;transform:skewY(12deg)}.login-blocks div:nth-child(2){background:#c03940;border-right-color:#9e2c34;border-bottom-color:#ae3039;transform:translateY(-30px) skewY(12deg)}.login-blocks div:nth-child(3){background:#dbb447;border-right-color:#b09135;border-bottom-color:#c4a13d}.login-form-side{padding:60px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff}.login-form-inner{width:100%;max-width:350px;margin:auto}.login-form-inner h2{font-size:32px;letter-spacing:-1px;margin:15px 0 10px}.login-form-inner>.muted{font-size:13px;margin-bottom:35px}.login-form-inner .field{margin-bottom:20px}.login-form-inner .field input{padding:13px;font-size:13px}.login-submit{width:100%;margin-top:8px;justify-content:space-between;min-height:46px;font-size:14px}.login-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin-top:24px}.login-form-side>small{font-size:13px;color:var(--muted);margin-top:50px}.error-page{max-width:550px;margin:100px auto;background:#fff;padding:40px;border:1px solid var(--line);border-radius:var(--radius)}.error-page p{color:var(--muted);line-height:1.8;margin:20px 0}
@media(min-width:1500px){:root{--sidebar:260px}main#main{padding:40px 42px 0}.app-shell>.site-footer{padding-left:42px;padding-right:42px}.topbar{padding:0 42px}.metric-value{font-size:32px}.metric{padding:23px}.bar-chart{height:193px}.bar-track{height:148px}.stock-row{padding:13px 0}.dashboard-middle,.dashboard-lower{grid-template-columns:1.7fr 1fr}td{padding:18px 23px}}
@media(max-width:1250px){:root{--sidebar:220px}.sidebar{padding-left:12px;padding-right:12px}.topbar{padding:0 22px}.global-search{display:none}main#main{padding:27px 23px 0}.app-shell>.site-footer{padding-left:23px;padding-right:23px}.metric-grid{gap:12px}.metric{padding:16px}.metric-value{font-size:23px}.metric-label{font-size:13px}.head-actions .btn{font-size:13px;padding:10px}.page-head h1{font-size:26px}.dashboard-middle,.dashboard-lower{grid-template-columns:1.4fr 1fr}.panel-head{padding:20px}.dashboard-lower td,.dashboard-lower th{padding:14px 12px}.branch-icon{display:none}.metric-foot{font-size:12px}.report-links{grid-template-columns:1fr 1fr}.three-col{gap:14px}.compact-form{padding:16px}.summary-strip strong{font-size:21px}.summary-strip>div{padding:0 18px}}
@media(max-width:1000px){:root{--sidebar:220px}.sidebar .brand>span{font-size:13px}.sidebar .brand img{height:35px;width:35px}.nav-item{font-size:13px;padding-left:12px}.nav-item .icon{width:16px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value{font-size:28px}.dashboard-middle,.dashboard-lower{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-wrap:wrap}.chart-panel{min-height:295px}.stock-snapshot .stock-row{padding:12px 0}.three-col{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-layout{grid-template-columns:1fr}.form-aside{display:none}.two-col{grid-template-columns:1fr}.sidebar-bottom .brand-note{display:none}.panel-head{flex-wrap:wrap}.summary-strip{flex-wrap:wrap}.summary-strip>div{min-width:40%;margin:12px 0}.summary-strip>div:nth-child(2){border:0}.document-sheet{padding:25px}.document-head{flex-direction:column}.document-head>div:last-child{text-align:left}.login-story{padding:35px}.login-story-copy h1{font-size:35px}.login-form-side{padding:35px}.login-blocks{gap:10px}.login-blocks div{width:100px;height:65px}}
@media(max-width:760px){:root{--sidebar:235px}.sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 30px #20262d12}.nav-open .sidebar{transform:translateX(0)}.app-shell{margin-left:0}.topbar{height:66px;padding:0 18px;gap:10px}.mobile-menu{display:flex;z-index:30}.nav-open .mobile-menu{position:fixed;left:240px;background:#fff;box-shadow:0 1px 12px #0001}.breadcrumb{display:none}.top-actions{margin-left:auto;gap:12px}.branch-select{padding:8px}.branch-select select{max-width:130px}main#main{padding:25px 18px 0}.page-head{margin-bottom:22px;gap:18px}.page-head h1{font-size:26px}.page-subtitle{font-size:13px}.eyebrow{font-size:12px;line-height:1.6}.head-actions{gap:8px}.head-actions .btn{font-size:13px;padding:10px 13px}.segment a{font-size:12px;padding:7px 9px}.date-caption{font-size:12px}.metric-grid{gap:11px;margin-bottom:16px}.metric{padding:16px 13px}.metric-value{font-size:23px;margin-top:14px}.metric-icon{width:25px;height:25px}.metric-foot{font-size:12px}.metric-label{font-size:13px}.metric-value small{font-size:12px}.metric-value sup{font-size:12px;margin-right:3px}.dashboard-middle,.dashboard-lower{gap:0}.panel{margin-bottom:16px}.panel-head{padding:20px 18px}.panel-head h2{font-size:14px}.panel-head p{font-size:13px}.bar-chart{gap:10px;margin-left:20px;margin-right:20px}.bar{width:70%}.chart-summary{margin:0 18px}.stock-total{padding-left:18px}.stock-row{margin:0 18px}.chart-legend{font-size:12px}.table-wrap table{min-width:580px}.dashboard-lower .table-wrap table{min-width:480px}.summary-strip{padding:10px 0}.summary-strip strong{font-size:22px}.summary-strip span{font-size:13px}.summary-note{min-width:100%!important;padding-top:10px!important}.form-fields{grid-template-columns:1fr}.form-panel form{padding:20px 18px}.field label{font-size:14px}.field input:not([type=checkbox]),.field select,.field textarea{font-size:16px;padding:11px 10px}.site-footer-inner{flex-direction:column;align-items:flex-start;gap:6px}.site-footer-meta{flex-direction:column;align-items:flex-start;gap:4px}.app-shell>.site-footer{padding-left:18px;padding-right:18px}.product-grid{gap:12px}.product-card{padding:17px}.product-card h2{font-size:14px}.product-count{font-size:24px}.product-count small{font-size:12px}.report-filters{flex-wrap:wrap;gap:12px}.report-filters .text-link{margin-left:0;width:100%}.report-links{gap:11px}.report-links>a{padding:14px 10px;font-size:13px;gap:7px}.company-card{padding:18px;gap:16px}.company-card>img{width:75px;height:75px}.company-card h2{font-size:17px}.company-card .eyebrow{font-size:12px}.document-parties{gap:20px;flex-wrap:wrap}.document-head .brand span{font-size:14px}.document-sheet table{font-size:13px}.document-sheet th,.document-sheet td{padding:15px 10px}.document-total{gap:20px}.document-total strong{font-size:20px}.login-layout{grid-template-columns:1fr}.login-story{padding:24px 28px;min-height:185px}.login-story-copy{margin:28px 0 0}.login-story-copy .eyebrow{display:none}.login-story-copy h1{font-size:27px;margin:0}.login-story-copy p,.login-blocks,.login-tagline{display:none}.login-form-side{padding:35px 28px;min-height:60vh}.login-form-inner h2{font-size:28px}.login-form-inner>.muted{margin-bottom:25px}.login-form-side>small{margin-top:30px}.search-results>a{flex-direction:column;gap:8px}.error-page{margin:40px 20px;padding:25px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media print{.sidebar,.topbar,.head-actions,.site-footer,.report-filters,.report-links,.form-footer,.flash,.segment{display:none!important}.app-shell{margin:0}body,main#main{background:#fff;padding:0!important;max-width:100%}.page-head{margin:0 0 22px}.panel{break-inside:avoid;border:1px solid #ddd}.table-wrap{overflow:visible}.table-wrap table{min-width:0!important}th,td{font-size:13px;padding:8px}.document-sheet{max-width:100%;border:0;padding:10px}.two-col{display:block}.badge{border:1px solid #ddd}.metric-grid{grid-template-columns:repeat(4,1fr)}a{color:#20262d}.form-aside{display:none}@page{size:A4;margin:15mm}}

/* Restrained accents: brand red/yellow, green for completed work, blue for transit. */
.sidebar .nav-space{border-top:1px solid var(--line);margin:20px 8px 11px;padding:18px 8px 0}
.sidebar-bottom{border-top:1px solid var(--line);padding-top:18px}
.summary-strip .summary-label{display:flex;align-items:center;gap:8px;color:#65707d;font-size:13px;line-height:1.5}
.summary-strip .summary-symbol{width:27px;height:27px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.summary-symbol .icon{width:15px;height:15px}
.summary-strip .summary-symbol.green{color:#28724f;background:#edf7f0}
.summary-strip .summary-symbol.amber{color:#8c6917;background:#fff6dc}
.summary-strip .summary-symbol.red{color:#b53640;background:#fff0f1}
.summary-strip .summary-symbol.blue{color:#3c6594;background:#eef4fc}
.panel-head h2>.icon{width:17px;height:17px;margin-right:6px;color:#b53640;vertical-align:-3px}
.badge{gap:5px}
.badge>.icon{width:12px;height:12px}
.badge.green{color:#28724f;background:#edf7f0}
.badge.amber{color:#86621a;background:#fff5da}
.badge.blue{color:#3c6594;background:#eef4fc}
.badge.red{color:#b53640;background:#fff0f1}
.product-card .product-top .subtle-badge{background:#fff8e5;border-color:#efe3be;color:#6b5526}
.record-link{color:#a6303b}
.record-link:hover{color:#7c2430;text-decoration:underline;text-underline-offset:3px}
.segment .selected{color:#a12d36;box-shadow:0 1px 4px #14213a0d,inset 0 -2px #e6bf51}
@media(max-width:760px){.summary-strip .summary-label{font-size:13px;gap:6px}.summary-strip .summary-symbol{width:24px;height:24px}.summary-symbol .icon{width:14px;height:14px}}
@media print{.summary-strip .summary-symbol{background:transparent!important}.badge{color:#20262d!important}}

.password-control{position:relative}
.login-form-inner .password-control input{padding-right:48px}
.password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:6px;background:transparent;color:var(--muted);display:grid;place-items:center}
.password-toggle:hover{color:var(--red);background:var(--red-soft)}
.password-toggle[hidden],.password-toggle [hidden]{display:none}
.password-toggle .icon{width:19px;height:19px}

/* Navigation: scrollable sidebar, collapsible search, accessible mobile drawer. */
.sidebar{overflow-y:auto;overscroll-behavior:contain}
@media(max-height:820px){.sidebar .brand-note{display:none}
.sidebar-bottom{padding-top:14px}
}
.search-toggle{display:none}
.flash .icon{width:18px;height:18px}
.nav-backdrop{position:fixed;inset:0;background:#20262d66;z-index:20}
@media(max-width:1250px){.search-toggle{display:flex}
.topbar{position:relative}
.global-search{display:none;position:absolute;inset:0;z-index:40;background:#fff;padding:0 22px;align-items:center;gap:10px}
.search-open .global-search{display:flex}
.global-search input{flex:1;width:auto;font-size:16px;min-height:44px}
.global-search .icon{width:18px}
}
@media(max-width:760px){.search-open .global-search{padding:0 18px}
.nav-open{overflow:hidden}
.nav-open .mobile-menu{top:16px}
.section-filter{flex-wrap:wrap;gap:10px}
.segment a{white-space:nowrap;padding:8px 10px}
.top-actions{gap:8px}
.branch-select select{max-width:150px}
}
@media(min-width:761px){.nav-backdrop{display:none!important}
}

.mobile-menu .when-open,.nav-open .mobile-menu .when-closed,.search-close{display:none}
.nav-open .mobile-menu .when-open{display:contents}
.mobile-menu>span{display:contents}
@media(max-width:1250px){.search-close{display:flex;width:44px;height:44px}
}
@media(max-width:1250px) and (min-width:761px){.nav-item{font-size:13px;gap:10px;padding-left:12px;padding-right:8px}
}

/* Customer balances read as words, not signed numbers. */
.bal{white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}
.bal-word{font-size:12px;font-weight:600;letter-spacing:.2px;margin-right:2px}
.bal.owes{color:#a6303b}
.bal.credit{color:#1f6e4b}
.bal.settled{color:var(--muted);font-weight:500}
.summary-strip strong .bal{font-size:inherit}
.summary-strip strong .bal small{font-size:14px;color:var(--muted);font-weight:400}
.summary-strip strong .bal-word{font-size:14px;margin-right:6px}

/* Status filter chips above long lists. */
.filter-chips{display:flex;gap:8px;flex-wrap:wrap;padding:0 23px 16px}
.chip{border:1px solid #d9dde2;background:#fff;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:550;color:#3d4550;min-height:36px;display:inline-flex;gap:6px;align-items:center;white-space:nowrap}
.chip b{font-weight:600;color:var(--muted)}
.chip:hover{border-color:#b9c0c8}
.chip[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.chip[aria-pressed=true] b{color:#d7dbe0}
.card-table tr[hidden]{display:none!important}

/* Phones and tablets: each table row becomes a card; column names label the values. */
@media(max-width:760px){.filter-chips{flex-wrap:nowrap;overflow-x:auto;padding:0 18px 14px;scrollbar-width:none}
.chip{min-height:44px}
}
@media screen and (max-width:1000px){
.table-wrap .card-table{min-width:0!important}
.card-table,.card-table tbody{display:block}
.card-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.card-table tr{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px 16px;padding:16px 20px;border-top:1px solid var(--line)}
.card-table tbody tr:hover{background:transparent}
.card-table td{display:block;padding:0;border:0;text-align:left;font-size:14px;min-width:0;line-height:1.45}
.card-table td::before{content:attr(data-label);display:block;font-size:12px;font-weight:400;color:var(--muted);margin-bottom:3px}
.card-table td.cell-title{grid-column:1/-1;font-size:15px}
.card-table tr.has-status td.cell-title{grid-column:1/-2}
.card-table td.cell-status{grid-column:-2/-1;grid-row:1;justify-self:end;align-self:start}
.card-table td.cell-title::before,.card-table td.cell-status::before{display:none}
.card-table td.cell-action,.card-table td:empty{display:none}
.card-table td small,.card-table td .cell-sub{font-size:13px}
.card-table tr.has-link{cursor:pointer;-webkit-tap-highlight-color:#20262d0d}
.card-table tr.empty-row{display:block;padding:0}
.card-table tr.empty-row td{text-align:center}
.card-table tr.empty-row td::before{display:none}
.card-table .branch-cell{gap:12px}
}

@media(max-width:1300px) and (min-width:1001px){th{white-space:normal;line-height:1.35;vertical-align:bottom}
th,td{padding-left:10px;padding-right:10px}
td{font-size:13px}
.badge{padding:5px 7px}
.table-wrap .badge>.icon{display:none}
}

/* Wide comparison tables keep their columns: pin the name column while scrolling. */
table[data-keep-table] th:first-child,table[data-keep-table] td:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 0 var(--line)}
table[data-keep-table] th:first-child{background:#fafbfc}

/* Account menu (replaces the separate sign-out icon). */
.user-menu{position:relative}
.user-menu summary{list-style:none;cursor:pointer}
.user-menu summary::-webkit-details-marker{display:none}
.user-menu[open] summary{outline:2px solid #e6b530;outline-offset:1px}
.user-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:45;width:240px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px #20262d1f;padding:16px}
.user-name{font-size:15px;font-weight:650}
.user-role{font-size:13px;color:var(--muted);margin-top:2px}
.user-scope{font-size:13px;color:#454e5a;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.user-signout{margin-top:12px;width:100%;min-height:44px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:7px;padding:0 12px;font-size:14px;font-weight:600;color:#454e5a}
.user-signout:hover{background:var(--bg)}
.user-signout .icon{width:16px;height:16px}

/* Single-branch scope banner. */
.scope-bar{display:flex;align-items:center;gap:12px;background:#fff7df;border:1px solid #efdba5;color:#5c4710;border-radius:9px;padding:10px 16px;margin-bottom:22px;font-size:14px}
.scope-bar>.icon{width:18px;height:18px;color:#8c6917}
.scope-bar p{flex:1;line-height:1.5}
.scope-bar .text-link{color:#5c4710;font-size:13px;text-decoration:underline;text-underline-offset:3px}

/* Touch: controls at least 44px tall. */
@media(max-width:760px){.btn,.btn.small{min-height:44px}
.icon-button{width:44px;height:44px}
.avatar{width:40px;height:40px}
.segment a{min-height:40px;display:flex;align-items:center}
.text-link{min-height:44px}
.branch-select{min-height:44px}
.scope-bar{flex-wrap:wrap;gap:4px 10px;padding:10px 14px}
.scope-bar p{flex-basis:calc(100% - 30px)}
.scope-bar .text-link{margin-left:28px}
.scope-bar .text-link{min-height:32px}
.inline-search input{font-size:16px;min-height:44px}
.branch-select{padding:0 8px}
.branch-select select{min-height:42px}
.icon-link{min-width:44px;min-height:44px;align-items:center}
.report-filters input{min-height:44px}
.key-values a,.panel-head .text-link{display:inline-flex;align-items:center;min-height:44px;margin:-12px 0}
}

/* Batch lifecycle: one row of stages, then only the action that is allowed now. */
.stepper{list-style:none;margin:0;padding:4px 23px 22px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;counter-reset:none}
.step{position:relative;display:flex;flex-direction:column;gap:4px;padding-right:16px;min-width:0}
.step:not(:last-child):after{content:'';position:absolute;top:17px;left:44px;right:8px;height:2px;background:var(--line)}
.step.done:not(:last-child):after{background:#9fd0b8}
.step-mark{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:14px;border:2px solid var(--line);background:#fff;color:var(--muted);margin-bottom:6px}
.step-mark .icon{width:16px;height:16px}
.step-name{font-size:14px;font-weight:650;color:var(--ink)}
.step-detail{font-size:13px;color:var(--muted);line-height:1.45}
.step.done .step-mark{background:#edf7f0;border-color:#9fd0b8;color:#28724f}
.step.current .step-mark{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 0 0 4px #ce30381f}
.step.current .step-name{color:#a12d36}
.step.locked .step-mark{background:#fff7df;border-color:#efdba5;color:#8c6917}
.step.partial .step-mark{background:#fff;border-color:#9fd0b8;color:#28724f}
.step.waiting .step-name{color:var(--muted)}
.step-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0;border-top:1px solid var(--line)}
.step-actions:empty{display:none}
.step-action{padding:20px 23px;border-right:1px solid var(--line)}
.step-action:last-child{border-right:0}
.step-action h3{font-size:15px;font-weight:650}
.step-action .muted{font-size:13px;margin:4px 0 14px}
.step-action .compact-form{padding:0;max-width:560px}
.step-action .compact-form button{margin-top:16px}
.locked-note{display:flex;align-items:flex-start;gap:12px;background:#fffbf0;flex-wrap:wrap}
.locked-note>.icon{color:#8c6917;width:20px;height:20px;margin-top:1px}
.locked-note p{flex:1;font-size:14px;line-height:1.6;color:#5c4710;min-width:200px}
.ready-note{background:#f3faf6}
.ready-note>.icon,.ready-note p{color:#28724f}
.ready-note .text-link{color:#28724f;font-size:13px;margin-left:32px}
.labour-panel .panel-head p{font-size:13px}
.labour-form{padding:0 23px 22px;max-width:640px}
.labour-form .form-fields{grid-template-columns:1fr 1fr}
.labour-form>.muted{margin-bottom:14px;font-size:13px}
.labour-done{display:flex;align-items:center;gap:8px;padding:0 23px 22px;color:#28724f;font-size:14px;font-weight:600}
.labour-done .icon{width:18px;height:18px}
@media(max-width:1000px){.stepper{grid-template-columns:1fr;gap:18px;padding:4px 20px 20px}
.step{display:grid;grid-template-columns:34px 1fr;column-gap:12px;row-gap:2px;padding-right:0}
.step-mark{grid-row:1/3;margin-bottom:0}
.step-name{align-self:end}
.step:not(:last-child):after{top:36px;bottom:-18px;left:16px;right:auto;width:2px;height:auto}
.step-action{border-right:0;border-bottom:1px solid var(--line);padding:18px 20px}
.step-action:last-child{border-bottom:0}
.labour-form .form-fields{grid-template-columns:1fr}
}

/* Form clean-up */
.form-note{padding:18px 24px 0;font-size:13px;color:var(--muted)}
.form-note .required{color:var(--red)}
.field-section{grid-column:1/-1;font-size:13px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#454e5a;padding-top:14px;border-top:1px solid var(--line);margin-top:4px}
.form-fields>.field-section:first-child{border-top:0;padding-top:0;margin-top:0}
.field[hidden]{display:none}
.live-summary{position:sticky;top:24px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.live-summary h3{font-size:16px}
.summary-hint{font-size:13px;color:var(--muted);margin-top:4px}
.summary-list{margin:16px 0 14px}
.summary-list>div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}
.summary-list dt{color:var(--muted)}
.summary-list dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums;text-align:right}
.live-summary .aside-small{font-size:13px;line-height:1.6;color:var(--muted)}
@media(max-width:1000px){.form-aside.live-summary{display:block;position:static}
}

/* Paging and readable audit trail */
.over-limit{display:none!important}
.show-more{display:flex;margin:14px auto 18px;min-height:44px}
.panel{overflow:clip}
.activity-day{font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#454e5a;padding:16px 0 4px}
.activity-list>.activity-day:first-child{padding-top:4px}
.activity-item p .record-link{font-weight:600}
@media(min-width:1001px){.table-wrap:has(table[data-sticky-head]){overflow:visible}
table[data-sticky-head] thead th{position:sticky;top:0;z-index:2}
}
.show-more[hidden]{display:none}

/* Dashboard: open alerts sit above the numbers. */
.attention-strip{background:#fff;border:1px solid #efdba5;border-left:4px solid #e6b530;border-radius:var(--radius);margin-bottom:21px;padding:16px 18px 6px}
.attention-strip h2{font-size:15px;display:flex;align-items:center;gap:8px}
.attention-strip-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0 24px;margin-top:6px}
.attention-strip .attention-item{padding:12px 0;border-top:0;min-height:44px}
.attention-strip .attention-item:hover strong{color:var(--red)}
.dashboard-lower.single{grid-template-columns:1fr}
@media(max-width:760px){.activity-item p .record-link{display:inline-flex;align-items:center;min-height:44px;margin:-12px 0}
}

/* Empty states offer the next step. */
.empty .empty-action{margin-top:14px;color:#454e5a;text-decoration:none;font-size:13px}
.empty .empty-action .icon{width:15px;height:15px}
@media print{.empty-action{display:none!important}
}
.bar-column>.today-label{color:var(--red);font-weight:650}

/* Print: hide screen-only controls, keep stages in one row, print every row of paged lists. */
@media print{.step-actions,.labour-form,.filter-chips,.show-more,.scope-bar,.user-menu,.search-toggle,.nav-backdrop{display:none!important}
.stepper{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.step{display:flex;flex-direction:column;padding-right:16px}
.step-mark{margin-bottom:6px}
.step-name{align-self:auto}
.step:not(:last-child):after{top:17px;bottom:auto;left:44px;right:8px;width:auto;height:2px}
tr.over-limit{display:table-row!important}
.activity-item.over-limit{display:flex!important}
.activity-day.over-limit{display:block!important}
table[data-sticky-head] thead th{position:static}
}

/* Responsive sweep: every page from a 320px phone to a 1920px monitor. */
.breadcrumb{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.top-actions{flex-shrink:0}
.head-actions{flex-wrap:wrap}
.report-filters{flex-wrap:wrap}
.attention-strip-items,.step-actions{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
@media(max-width:1000px){.report-filters .text-link{margin-left:0}
}
@media(max-width:760px){.page-head .head-actions{width:100%}
}
@media(max-width:420px){.metric-grid,.product-grid,.report-links{grid-template-columns:1fr}
.summary-strip>div{min-width:100%;border-right:0}
.summary-strip strong .bal{white-space:normal}
.head-actions .btn{flex:1 1 auto}
.document-sheet{padding:18px 14px}
.document-sheet th,.document-sheet td{padding:10px 6px;white-space:normal}
.document-head .brand small{letter-spacing:1px}
}

.metric-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Stock on hand chips (purchases) */
.stock-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;padding:0 23px 20px}
.stock-chip{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:11px 13px;background:#fcfcfd}
.stock-chip span{font-size:14px;font-weight:600}
.stock-chip span small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.stock-chip strong{font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.stock-chip strong small{font-size:12px;font-weight:400;color:var(--muted)}

/* Live hints under form fields */
.live-hint{font-size:13px;line-height:1.5;margin-top:7px;color:#28724f}
.live-hint[data-kind="warn"]{color:#86621a}
.live-hint[data-kind="error"]{color:#b53640;font-weight:600}
.field select option:disabled{color:#9aa1a9}

/* Batch page: orders waiting for these blocks, labour payment history */
.waiting-orders{display:grid;gap:10px}
.ready-title{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.6;color:#28724f;margin:0}
.ready-title .icon{width:20px;height:20px;flex-shrink:0;margin-top:1px}
.waiting-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.waiting-list li{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;background:#fff;border:1px solid #d7ebdf;border-radius:8px;padding:8px 12px;font-size:14px}
.waiting-qty{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.pay-history{list-style:none;margin:0 23px 16px;padding:0;border:1px solid var(--line);border-radius:9px}
.pay-history li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line);font-size:14px}
.pay-history li:last-child{border-bottom:0}
.pay-history small{color:var(--muted);font-size:13px}
@media(max-width:600px){.waiting-list li{grid-template-columns:1fr auto}
.waiting-list li>span:first-of-type{grid-column:1/-1;order:-1}
}

/* Checkbox fields sit beside their label */
.field.check{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:10px}
.field.check label{margin:0;font-size:14px;color:var(--ink)}
.field.check input{width:20px;height:20px;accent-color:var(--red)}

/* Side panel for short forms */
.side-panel{position:fixed;inset:0;z-index:70}
.side-panel-backdrop{position:absolute;inset:0;background:#20262d59}
.side-panel-box{position:absolute;top:0;right:0;bottom:0;width:min(460px,100%);background:#fff;box-shadow:-18px 0 40px #20262d2e;overflow-y:auto;padding-top:env(safe-area-inset-top,0px)}
.panel-sheet{padding:20px 22px 26px}
.panel-sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.panel-sheet-head h2{font-size:19px}
.panel-sheet-head p{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.5}
.panel-sheet .form-fields{grid-template-columns:1fr;gap:16px}
.panel-sheet .form-footer{position:sticky;bottom:0;background:#fff;padding-bottom:6px}
.panel-loading{padding:30px 22px;color:var(--muted)}
body.panel-open{overflow:hidden}
.void-link{margin-left:12px;color:#9c2932}
.diff-short{color:#9c2932;font-weight:600}.diff-over{color:#86621a;font-weight:600}

/* Day close */
.close-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:21px;align-items:start}
.checklist{list-style:none;margin:0;padding:0 23px 18px}
.check-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}
.check-row:last-child{border-bottom:0}
.tick{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px}
.tick .icon{width:14px;height:14px}
.tick.ok{background:#edf7f0;color:#28724f}.tick.no{background:#fff0f1;color:#b53640}.tick.wait{background:#f3f4f6;color:var(--muted)}
.recon-form{padding:0 23px 22px}
.recon-table{display:grid;margin-bottom:18px}
.recon-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(70px,.7fr);gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px;font-variant-numeric:tabular-nums}
.recon-row.head{font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--muted)}
.recon-row label{font-weight:600}
.recon-row input{border:1px solid #dfe4e9;border-radius:7px;padding:9px 10px;font-size:14px;width:100%;min-height:42px}
.recon-diff[data-kind="ok"]{color:#28724f;font-weight:600}.recon-diff[data-kind="diff"]{color:#b53640;font-weight:700}
.recon-empty{padding:0 23px 18px}
.close-choose{list-style:none;margin:0;padding:0 23px 20px;display:grid;gap:10px}
.close-choose a{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;padding:14px 16px;min-height:52px}
.close-choose a:hover{border-color:#bac0c8}
.close-done{background:#edf7f0;border-color:#b9dcc8;color:#1f5f41}
.close-done>.icon{color:#28724f}
@media(max-width:1000px){.close-grid{grid-template-columns:1fr}}
@media(max-width:600px){.recon-row{grid-template-columns:1fr 1fr}.recon-row.head{display:none}.recon-row label{grid-column:1/-1}}

/* Order board */
.board{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:14px;overflow-x:auto;padding-bottom:6px;align-items:start}
.board-col{background:#eef0f3;border-radius:12px;padding:10px;min-width:0}
.board-col-head{padding:4px 4px 10px}
.board-col-head h2{font-size:14px;display:flex;align-items:center;gap:8px}
.board-col-head p{font-size:12px;color:var(--muted);margin-top:2px}
.board-count{background:#fff;border-radius:999px;padding:1px 8px;font-size:12px;color:#454e5a}
.board-cards{display:grid;gap:9px}
.order-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px 12px;display:grid;gap:5px}
.order-card.overdue{border-color:#e7b3b6;box-shadow:inset 3px 0 0 var(--red)}
.order-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}
.order-card-who{font-weight:650;font-size:14px;margin:0}
.order-card-sub{font-size:12.5px;color:var(--muted);margin:0;line-height:1.5}
.overdue-text{color:#9c2932}
.order-bar{height:5px;background:#eef0f3;border-radius:3px;overflow:hidden}
.order-bar i{display:block;height:100%;background:#3f9a6f}
.order-card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.order-card-actions:empty{display:none}
.board-empty{font-size:13px;color:var(--muted);padding:12px 6px;text-align:center;border:1px dashed #cfd5dc;border-radius:10px;margin:0}
@media(max-width:1000px){.board{grid-template-columns:repeat(5,minmax(240px,82vw));scroll-snap-type:x mandatory}.board-col{scroll-snap-align:start}}

/* Section tabs (Yard, Orders, Money) */
.section-tabs{display:flex;gap:4px;margin:-6px 0 18px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.section-tabs a{padding:10px 14px;font-size:14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;min-height:44px;display:flex;align-items:center}
.section-tabs a:hover{color:var(--ink)}
.section-tabs a.on{color:#a12d36;border-bottom-color:var(--red)}
@media print{.section-tabs{display:none}}

/* Home: task list */
.task-list{list-style:none;margin:0;padding:0 23px 16px}
.task-row{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.task-row:last-child{border-bottom:0}
.task-mark{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-weight:800;font-size:15px}
.task-mark .icon{width:17px;height:17px}
.task-mark.red{background:#fff0f1;color:#b53640}.task-mark.amber{background:#fff5da;color:#86621a}.task-mark.blue{background:#eef4fc;color:#3c6594}.task-mark.grey{background:#f0f2f5;color:#4d555e}
.task-text strong{display:block;font-size:15px}
.task-text small{display:block;font-size:13px;color:var(--muted);margin-top:2px;line-height:1.5}
@media(max-width:600px){.task-row{grid-template-columns:auto 1fr}.task-row .btn{grid-column:2;justify-self:start}}

/* Ctrl K search and actions */
.palette{position:fixed;inset:0;z-index:80}
.palette-backdrop{position:absolute;inset:0;background:#20262d59}
.palette-box{position:relative;margin:min(12vh,90px) auto 0;width:min(620px,calc(100% - 32px));background:#fff;border-radius:14px;box-shadow:0 30px 70px #20262d4d;overflow:hidden}
.palette-input{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.palette-input input{flex:1;border:0;outline:none;font-size:17px;min-height:40px;background:transparent}
.palette-input kbd{font:12px ui-monospace,monospace;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:2px 6px}
#palette-list{list-style:none;margin:0;padding:6px 0;max-height:min(420px,60vh);overflow-y:auto}
.pal-group{padding:8px 16px 4px;font-size:11.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}
.pal-item{display:flex;justify-content:space-between;gap:14px;align-items:baseline;padding:10px 16px;cursor:pointer;font-size:15px}
.pal-item small{color:var(--muted);font-size:12.5px;text-align:right}
.pal-item.on{background:#fff0f0}
.pal-item.on span{color:#a12d36;font-weight:600}
.pal-empty{padding:18px 16px;color:var(--muted);font-size:14px}
.kbd-btn{font:600 11px ui-monospace,Menlo,monospace;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:4px 7px;background:#f7f8fa;white-space:nowrap}
@media(max-width:1250px){.kbd-btn{display:none}}
.filter-chips a.chip{text-decoration:none}
.chip[aria-current="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.chip[aria-current="true"] b{color:#d7dbe0}
.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 23px;border-top:1px solid var(--line);font-size:14px}
.pager-info{color:var(--muted)}
.pager-links{display:flex;align-items:center;gap:10px}
.pager-page{color:var(--muted)}
@media print{.pager,.filter-chips{display:none!important}}

/* Phase C ----------------------------------------------------------------- */
/* Order lines */
.order-lines{border:1px solid var(--line);border-radius:10px;padding:16px 16px 12px;margin:0}
.order-lines legend{font-size:13px;font-weight:600;color:#68717c;padding:0 6px}
.order-lines legend .required{color:var(--red);margin-left:4px}
.line-head,.line-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr) 36px;gap:10px;align-items:end}
.line-head{font-size:12px;font-weight:600;color:var(--muted);padding:0 2px 6px}
.line-row{padding:8px 0;border-top:1px solid #f1f3f5}
.line-row[hidden]{display:none}
.line-row:first-of-type{border-top:0}
.line-row select,.line-row input{border:1px solid #dfe4e9;width:100%;padding:10px;border-radius:7px;background:#fff;color:#454e5a;min-height:42px;font-size:14px}
.line-row.has-error select,.line-row.has-error input{border-color:#e3a3a8}
.line-row .field-error{grid-column:1/-1;margin-top:0}
.line-value output{display:block;font-weight:600;padding:12px 0;text-align:right;font-variant-numeric:tabular-nums}
.line-remove .icon-button{width:36px;height:42px}
.line-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
.line-foot [hidden]{display:none}
.order-total{font-size:14px;color:var(--muted)}
.order-total strong{color:var(--ink);font-size:18px;margin-left:8px;font-variant-numeric:tabular-nums}
@media (max-width:640px){
  .line-head{display:none}
  .line-row{grid-template-columns:1fr 1fr;padding:12px 0}
  .line-row .line-cell:first-child{grid-column:1/-1}
  .line-row .line-label{position:static;width:auto;height:auto;margin:0 0 6px;clip:auto;overflow:visible;white-space:normal;font-size:13px;font-weight:600;color:#68717c;display:block}
  .line-value{grid-column:1}.line-value output{text-align:left;padding:4px 0}
  .line-remove{justify-self:end;grid-column:2;grid-row:3}
}

/* Choices shown as radio buttons */
.radio-field{border:0;padding:0;margin:0}
.radio-field legend{font-size:13px;font-weight:600;color:#68717c;margin-bottom:8px;padding:0}
.radio-field legend .required{color:var(--red);margin-left:4px}
.radio-field div>div,.radio-row div>div{margin-bottom:6px}
.radio-field label,.radio-row label{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #dfe4e9;border-radius:8px;font-size:14px;font-weight:500;color:var(--ink);cursor:pointer}
.radio-field label:has(input:checked),.radio-row label:has(input:checked){border-color:var(--red);background:var(--red-soft)}
.radio-field input,.radio-row input{accent-color:var(--red);width:18px;height:18px;margin:0}

/* Stock: free, reserved and days left */
.product-split{font-size:13px;color:var(--muted);margin:-8px 0 14px;line-height:1.6}
.panel-links{display:flex;gap:16px;flex-wrap:wrap}
.stock-chip.low{border-color:#f0d58a;background:#fffaeb}
.stock-chip .chip-foot{display:block;grid-column:1/-1;color:var(--muted);font-size:12px;margin-top:4px}
.stock-chip.low .chip-foot{color:#8c6917}
.reorder-list{display:flex;flex-direction:column}
.reorder-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #f1f3f5;flex-wrap:wrap}
.reorder-row label{font-weight:600;font-size:14px}
.reorder-row label small{display:block;font-weight:400;color:var(--muted);font-size:13px;margin-top:3px}
.reorder-input{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.reorder-input input{width:120px;border:1px solid #dfe4e9;border-radius:7px;padding:10px;min-height:42px;font-size:15px;text-align:right}
.panel-sheet .reorder-list,.panel-sheet .form-note{padding:0}

/* Messages */
.message-form .message-to{font-size:14px;color:var(--muted);margin-bottom:16px}
.message-form textarea{font-size:15px;line-height:1.55}
.message-last{font-size:13px;color:var(--green);display:flex;gap:6px;align-items:center;margin-top:14px}
.message-last .icon{width:15px;height:15px}
.message-status{margin-top:14px;padding:11px 14px;border-radius:8px;font-size:14px;line-height:1.6;background:#eef4fb;color:#2c5582}
.message-status[data-kind=ok]{background:#effaf2;color:#2c6849}
.message-status[data-kind=error]{background:#fff0f1;color:#b84750}
.message-actions{flex-wrap:wrap}
.btn.whatsapp{background:#1c7c54;border-color:#1c7c54}
.btn.whatsapp:hover{background:#166645;border-color:#166645}
.message-panel{padding:24px}
.message-back{margin-top:16px}
.message-log{list-style:none;margin:0;padding:0 23px 16px}
.message-log li{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:11px 0;border-top:1px solid #f1f3f5;font-size:14px}
.message-log li small{color:var(--muted);margin-left:auto}
.flash .flash-action{margin-left:auto}

/* Delivery note signatures */
.document-signatures{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:40px}
.document-signatures span{font-size:13px;color:var(--muted);display:block}
.document-signatures strong{display:block;font-size:14px;margin:8px 0 26px;min-height:20px}
.document-signatures i{display:block;border-bottom:1px solid #9aa2ac}
@media (max-width:640px){.document-signatures{grid-template-columns:1fr}}

/* Customer's shared copy */
.shared-page{background:var(--bg)}
.shared-main{max-width:900px;margin:0 auto;padding:24px 16px 48px}
.shared-actions{display:flex;justify-content:flex-end;margin-bottom:16px}
.shared-note{text-align:center;color:var(--muted);font-size:13px;margin-top:18px;line-height:1.7}
.offline-panel{padding:28px}.offline-panel h1{font-size:24px;margin-bottom:12px}.offline-panel p{line-height:1.7;margin-bottom:16px;color:var(--muted)}
@media print{.shared-actions,.shared-note{display:none}.shared-main{padding:0}}

/* Offline bar */
.offline-bar{display:flex;flex-direction:column;gap:6px;padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:14px;line-height:1.6;background:#eef4fb;color:#2c5582;border:1px solid #d3e2f2}
.offline-bar[hidden]{display:none}
.offline-bar[data-kind=warn]{background:#fffaeb;border-color:#f0d58a;color:#7a5a12}
.offline-bar[data-kind=error]{background:#fff0f1;border-color:#efc6c8;color:#b84750}
.offline-bar a,.offline-bar .text-link{color:inherit;text-decoration:underline;font-weight:600}
.offline-failed{display:block}

/* Yard today */
.yard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:12px}
.yard-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0}
.yard-card h2{display:flex;align-items:center;gap:10px;font-size:17px}
.yard-card>p{color:var(--muted);font-size:14px;line-height:1.6}
.yard-num{min-width:34px;height:34px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:#f1f3f5;color:#4a525c;font-size:16px;font-weight:700;padding:0 8px}
.yard-num.amber{background:#fff6dc;color:#8c6917}.yard-num.blue{background:#eaf1fa;color:#2c5582}
.yard-num .icon{width:18px;height:18px}
.yard-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.yard-list a{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;min-height:52px}
.yard-list a:hover{border-color:#d9a3a7;background:#fffafa}
.yard-list a span,.yard-list.plain span{font-size:13px;color:var(--muted)}
.yard-list.plain li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #f1f3f5;font-size:14px;flex-wrap:wrap}
.yard-list.plain li strong{color:var(--ink)}
.btn.block{display:flex;width:100%}
.btn.big{min-height:52px;font-size:16px}
@media (max-width:760px){.yard-grid{grid-template-columns:1fr}}

/* Driver phone app */
.phone-app{background:var(--bg);min-height:100vh;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.phone-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;background:var(--ink);color:#fff;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top))}
.phone-top img{border-radius:7px;background:#fff}
.phone-top div{flex:1;min-width:0}
.phone-top strong{display:block;font-size:16px}
.phone-top small{display:block;color:#c5ccd4;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phone-top .icon-button{color:#fff;width:44px;height:44px}
.phone-top .icon-button:hover{background:#ffffff1a}
.phone-main{max-width:560px;margin:0 auto;padding:16px}
.phone-h1{font-size:22px;letter-spacing:-.5px;margin:4px 0 14px}
.phone-empty{color:var(--muted);font-size:15px;line-height:1.6;padding:12px 0}
.load-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:14px;display:flex;flex-direction:column;gap:8px}
.load-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:16px}
.load-top span:not(.badge){color:var(--muted);font-size:13px}
.load-what{font-size:20px;font-weight:650;letter-spacing:-.3px}
.load-where{font-size:15px;color:#454e5a;line-height:1.5}
.load-meta{font-size:13px;color:var(--muted);line-height:1.6}
.load-links{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0}
.load-links .btn{min-height:44px}
.load-card .btn.primary{min-height:52px;font-size:16px}
.load-card.compact .load-what{font-size:17px}
.phone-section{margin-top:22px}
.phone-section h2{display:flex;justify-content:space-between;align-items:baseline;font-size:16px;margin-bottom:10px}
.phone-list{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--line);border-radius:12px}
.phone-list li{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 14px;border-top:1px solid #f1f3f5;font-size:15px}
.phone-list li:first-child{border-top:0}
.phone-list small{display:block;color:var(--muted);font-size:13px;margin-top:3px;line-height:1.5}
.phone-note{font-size:13px;color:var(--muted);margin-top:8px;line-height:1.6}
.phone-back{margin-bottom:12px}
.phone-back .icon{transform:rotate(180deg)}
.phone-tabs{position:fixed;left:0;right:0;bottom:0;z-index:5;display:flex;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.phone-tabs a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 0 10px;font-size:12px;font-weight:600;color:var(--muted);min-height:56px}
.phone-tabs a[aria-current=page]{color:var(--red)}
.phone-form{display:flex;flex-direction:column;gap:18px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
.phone-form .field label,.money-field legend{font-size:15px;color:var(--ink)}
.phone-form input:not([type=checkbox]):not([type=radio]):not([type=file]){font-size:17px;min-height:50px}
.count-stepper{display:flex;align-items:stretch;gap:8px}
.count-stepper .icon-button{width:56px;height:auto;min-height:50px;border:1px solid #dfe4e9;background:#fff;font-size:24px;color:var(--ink);border-radius:9px}
.count-stepper input{text-align:center;font-size:22px!important;font-weight:650}
.photo-field input[type=file]{position:absolute;width:1px;height:1px;opacity:0}
.photo-drop{display:flex!important;align-items:center;gap:14px;padding:16px;border:2px dashed #cfd5dc;border-radius:12px;cursor:pointer;min-height:72px;margin:0!important}
.photo-field input[type=file]:focus-visible+.photo-preview,.photo-field:focus-within .photo-drop{outline:3px solid #e6b530;outline-offset:2px}
.photo-drop .icon{width:28px;height:28px;color:var(--red)}
.photo-drop strong{display:block;font-size:15px;color:var(--ink)}
.photo-drop small{display:block;font-weight:400;color:var(--muted);font-size:13px;margin-top:2px}
.photo-preview{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:10px;margin-top:10px}
.photo-preview[hidden]{display:none}
.money-field{border:1px solid var(--line);border-radius:12px;padding:14px;margin:0;display:flex;flex-direction:column;gap:12px}
.money-field legend{font-weight:650;padding:0 6px}
.radio-row>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.radio-row div>div{margin:0}
[data-momo-ref][hidden]{display:none}
.phone-app .flash{font-size:15px}
.phone-app .offline-bar{margin:0;border-radius:0;border-left:0;border-right:0}

/* Narrow phones: tabs and form buttons fit without sideways scrolling */
@media (max-width:420px){
  .section-tabs a{padding:10px 9px;font-size:13px}
  .form-footer{flex-wrap:wrap}
  .form-footer .btn{flex:1 1 auto}
}
/* Pages with several actions (an order with payment, reminder and dispatch) wrap them instead of widening the page */
.head-actions{flex-wrap:wrap;justify-content:flex-end;max-width:100%;flex-shrink:1;min-width:0}
@media (max-width:1000px){.head-actions{justify-content:flex-start}}
.field .radio-row input[type=radio],.radio-field input[type=radio]{width:18px!important;height:18px;min-height:0!important;padding:0!important;flex:none;border:0}
.line-head span:nth-child(4){text-align:right}
td .text-link+.text-link,td .btn+.text-link{margin-left:14px}

/* Production, costing and dashboard upgrade ----------------------------------- */
.glance{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin-bottom:21px}
.glance-tile{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:15px 16px;min-width:0}
.glance-tile:hover{border-color:#d9a3a7}
.glance-tile>span{font-size:13px;color:var(--muted);font-weight:550}
.glance-tile strong{font-size:23px;letter-spacing:-.5px;font-weight:650;font-variant-numeric:tabular-nums}
.glance-tile strong small{font-size:13px;color:var(--muted);font-weight:500;letter-spacing:0}
.glance-tile strong em{font-style:normal;color:var(--muted);font-weight:400}
.glance-tile>small{font-size:12.5px;color:var(--muted);line-height:1.5}
.glance-tile.warn{border-color:#f0d58a;background:#fffaeb}
.fulfil-list{list-style:none;margin:0;padding:0 23px 12px}
.fulfil-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #f1f3f5;flex-wrap:wrap}
.fulfil-mark{width:30px;height:30px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;flex:none;background:#eef4fb;color:#2c5582}
.fulfil-row.stock .fulfil-mark{background:#edf7f0;color:#28724f}
.fulfil-row.produce .fulfil-mark{background:#fff6dc;color:#8c6917}
.fulfil-mark .icon{width:16px;height:16px}
.fulfil-text{flex:1;min-width:220px}
.fulfil-text small{display:block;color:var(--muted);font-size:13px;line-height:1.6;margin-top:2px}
.inline-form{display:inline-flex;margin:0}
.input-head,.input-row{grid-template-columns:minmax(0,2.2fr) minmax(0,1.2fr) minmax(0,1fr) 36px}
.recipe-head,.recipe-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.line-hint{grid-column:1/-1;margin:0;font-size:12.5px}
.line-hint[data-kind=error]{color:#c13d47}
.line-hint:empty{display:none}
.lines-intro{margin:-4px 0 10px}
.page-segment{margin-bottom:16px;display:inline-flex}
.panel-foot{padding:0 23px 18px;margin:0}
.small-select{min-height:36px;padding:6px 8px;border:1px solid #dfe4e9;border-radius:7px;font-size:13px;background:#fff}
@media (max-width:640px){.input-row .line-value{grid-column:2;grid-row:2}.recipe-row{grid-template-columns:1fr 1fr}}
/* Tab rows with many pages wrap onto a second line on narrow screens instead of hiding tabs off-screen */
@media (max-width:820px){.section-tabs{flex-wrap:wrap;overflow:visible;row-gap:0}}
@media (max-width:640px){.panel-head .inline-search{flex-wrap:wrap;width:100%;max-width:100%}.panel-head .inline-search input{flex:1 1 140px;min-width:0}}
@media (max-width:640px){.glance{grid-template-columns:1fr 1fr;gap:10px}.glance-tile{padding:12px}.glance-tile strong{font-size:20px}}
/* Multi-branch: transfer lines, date ranges, reconciliation rows and branch lines on documents */
.transfer-lines .line-head,.transfer-lines .line-row{grid-template-columns:minmax(0,3fr) minmax(0,1fr) minmax(0,1.1fr) 36px}
.transfer-lines .line-head span:nth-child(3),.transfer-lines .line-value{text-align:right}
.date-range{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.date-range .control{min-height:36px;padding:6px 8px;border:1px solid #dfe4e9;border-radius:7px;font-size:13px;background:#fff}
tr.row-alert td{background:var(--red-soft)}
.document-branch{margin:-6px 0 14px;color:var(--muted);font-size:13px}
.document-meta{margin:10px 0;color:#454e5a;font-size:13px}
tfoot th{border-top:2px solid var(--line);text-align:left;font-weight:650}
tfoot th.num{text-align:right}
.panel .filter-chips+.filter-chips{margin-top:-8px}
@media (max-width:640px){.transfer-lines .line-row{grid-template-columns:1fr 1fr}.transfer-lines .line-value{grid-column:2}.date-range{width:100%}.date-range label{flex:1 1 120px}.date-range .control{width:100%}}
.staff-line{display:block;white-space:nowrap}.staff-line small{color:var(--muted)}
.row-links{white-space:nowrap}.row-links .text-link+.text-link{margin-left:12px}
/* Head-office dashboard: branches side by side with share bars */
.head-office{margin-bottom:21px}
.head-office .panel-head h2 .icon{vertical-align:-4px;margin-right:4px}
.share-cell{display:flex;flex-direction:column;gap:6px;min-width:140px}
.share-cell b{font-weight:650;font-variant-numeric:tabular-nums}
.share{display:block;height:6px;border-radius:3px;background:#eef0f3;overflow:hidden}
.share i{display:block;height:100%;width:0;border-radius:3px;background:var(--yellow);transition:width .4s ease}
.share.green i{background:var(--green)}
@media (prefers-reduced-motion:reduce){.share i{transition:none}}
/* Phones: the main action first and full width, the others two to a row; summary figures two by two */
@media(max-width:760px){
.page-head .head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.page-head .head-actions>*{margin:0;min-width:0}
.page-head .head-actions .btn{width:100%;justify-content:center;padding-left:8px;padding-right:8px;white-space:normal;line-height:1.25;text-align:center;min-height:42px}
.page-head .head-actions>.btn.primary,.page-head .head-actions>.inline-form:has(.primary){grid-column:1/-1;order:-1}
.page-head .head-actions>.badge{grid-column:1/-1;justify-self:start}
}
@media(max-width:420px){
.summary-strip{display:grid;grid-template-columns:1fr 1fr;padding:0;gap:0;align-items:stretch}
.summary-strip>div{min-width:0;border-right:0;padding:14px}
.summary-strip>div:nth-child(odd):not(:last-child){border-right:1px solid var(--line)}
.summary-strip>div:nth-child(n+3){border-top:1px solid var(--line)}
.summary-strip strong{font-size:20px}
}
@media(max-width:760px){.page-head .head-actions:has(>:nth-child(2):last-child)>*{grid-column:1/-1}}
/* Finance: summary cards, money in / out chart, payment methods, what is waiting, drivers and recent transactions */
.section-tabs a .icon{width:16px;height:16px;vertical-align:-3px;margin-right:3px}
.in-text{color:var(--green)}.out-text{color:var(--red)}
.fin-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-bottom:21px}
.fin-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:18px 18px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-height:122px}
.fin-card-label{font-size:13px;font-weight:600;color:#454e5a;padding-right:40px}
.fin-card-value{font-size:22px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums;line-height:1.25}
.fin-card-value small{font-size:13px;font-weight:600;opacity:.8}
.fin-card-note{font-size:12px;color:var(--muted);margin-top:auto}
.fin-card-split{display:flex;flex-direction:column;font-size:16px;gap:2px}
.fin-card-icon{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;color:#fff;background:#8a939e}
.fin-card-icon .icon{width:18px;height:18px}
.fin-card.green{background:#eef8f2;border-color:#cfe9da}.fin-card.green .fin-card-icon{background:var(--green)}.fin-card.green .fin-card-value{color:#1f6e53}
.fin-card.red{background:#fff1f1;border-color:#f3d0d2}.fin-card.red .fin-card-icon{background:var(--red)}.fin-card.red .fin-card-value{color:#b32a31}
.fin-card.blue{background:#eef3fb;border-color:#d5e0f1}.fin-card.blue .fin-card-icon{background:#3c6594}.fin-card.blue .fin-card-label{color:#3c6594}
.fin-card.amber{background:#fff7e3;border-color:#f1e0b3}.fin-card.amber .fin-card-icon{background:#c8961f}.fin-card.amber .fin-card-value{color:#8c6917}
.fin-chart-panel .panel-head h2 .icon,.fin-owed strong .icon{vertical-align:-4px}
.fin-chart{padding:4px 8px 0 0}
.fin-chart svg{display:block;width:100%;height:auto;overflow:visible}
.fin-chart-empty{padding:40px 0;text-align:center}
.fin-grid{stroke:#e9ebef;stroke-dasharray:3 4}
.fin-axis{fill:#7a838f;font-size:11px;font-family:inherit}
.fin-line{fill:none;stroke-width:2.4;stroke-linecap:round}
.fin-line.in{stroke:var(--green)}.fin-line.out{stroke:var(--red)}
.fin-area.in{fill:var(--green);opacity:.12}.fin-area.out{fill:var(--red);opacity:.1}
.fin-dot{stroke:#fff;stroke-width:2}.fin-dot.in{fill:var(--green)}.fin-dot.out{fill:var(--red)}
.fin-legend{display:flex;justify-content:center;gap:20px;padding:8px 18px 18px;font-size:13px;color:#454e5a}
.fin-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:0}
.fin-legend .in i{background:var(--green)}.fin-legend .out i{background:var(--red)}
.fin-methods{display:flex;flex-direction:column;gap:12px;padding:0 23px 21px}
.fin-method{padding:12px 14px;border-radius:10px;background:#f7f8fa}
.fin-method-head{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.fin-method-head span{font-size:12px;color:var(--muted)}
.fin-method-head b{margin-left:auto;font-variant-numeric:tabular-nums}
.fin-method small{display:block;margin-top:6px;font-size:12px;color:var(--muted)}
.fin-owed{list-style:none;margin:0;padding:0 23px 21px;display:flex;flex-direction:column;gap:10px}
.fin-owed li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;background:#f7f8fa}
.fin-owed li>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.fin-owed small{font-size:12px;color:var(--muted)}
.fin-owed b{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.fin-owed .fin-owed-link a{margin-left:auto;white-space:nowrap}
.fin-drivers{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;padding:0 23px 21px}
.fin-driver{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px}
.fin-driver>span:nth-child(2){display:flex;flex-direction:column;min-width:0}
.fin-driver small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fin-driver b{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.fin-driver.holding{border-color:#f1e0b3;background:#fffaf0}.fin-driver.holding b{color:#8c6917}
.fin-driver-icon{width:34px;height:34px;flex-shrink:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#f1f3f5;color:#5f6670}
.fin-driver-icon .icon{width:17px;height:17px}
.fin-recent{list-style:none;margin:0;padding:0 23px 12px}
.fin-recent li{border-top:1px solid #f1f3f5}.fin-recent li:first-child{border-top:0}
.fin-recent li>a,.fin-recent li>div{display:flex;align-items:center;gap:12px;padding:12px 0}
.fin-recent li>a:hover strong{color:var(--red)}
.fin-recent-icon{width:34px;height:34px;flex-shrink:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.fin-recent-icon.in{background:#edf7f0;color:var(--green)}.fin-recent-icon.out{background:#fff0f1;color:var(--red)}
.fin-recent-text{display:flex;flex-direction:column;min-width:0}
.fin-recent-text small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fin-recent b{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:640px){.fin-cards{grid-template-columns:1fr 1fr;gap:10px}.fin-card{padding:14px;min-height:0}.fin-card-value{font-size:18px}.fin-card-icon{width:28px;height:28px;top:10px;right:10px}.fin-card-note{display:none}
.fin-chart{padding:0}.fin-methods,.fin-owed,.fin-drivers,.fin-recent{padding-left:14px;padding-right:14px}.fin-owed li{flex-wrap:wrap}}
@media(max-width:640px){.fin-card-split{font-size:14px;white-space:nowrap}.fin-card:last-child:nth-child(odd){grid-column:1/-1}}
