:root{--ink:#20362e;--muted:#718078;--green:#184e3d;--light:#e9f1e9;--paper:#f5f6f1;--line:#dfe5dc;--amber:#f3bd66;--red:#a64334;--white:#fff;--shadow:0 8px 30px #1633250b;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:10px;padding:12px 17px;font-weight:600;min-height:44px}button:hover{background:#eef3ed;border-color:#b5c4b6}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus,select:focus,textarea:focus{outline:3px solid #e5af54;outline-offset:2px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#25644f;color:white}.danger{color:var(--red);background:#fff6f2}.quiet{background:transparent;border-color:transparent}.small{font-size:12px;padding:7px 10px;min-height:34px}.full{width:100%}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:650;letter-spacing:-1px;line-height:1.2}h2{font-size:19px;font-weight:650;letter-spacing:-.3px}h3{font-size:15px;font-weight:650}p{line-height:1.6}.muted{color:var(--muted)}.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.9px;text-transform:uppercase;color:var(--muted)}.logo{display:flex;align-items:center;gap:11px;line-height:1.1}.logo img{width:39px;height:39px}.logo b{font-size:19px;letter-spacing:-.5px}.logo small{display:block;margin-top:5px;font-size:9px;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.sidebar{width:232px;background:#fff;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:30px 18px;z-index:10}.sidebar .logo{padding:0 10px 32px}.nav-group{margin:14px 13px 10px}.nav{display:grid;gap:5px}.nav button{display:flex;align-items:center;gap:12px;border:0;background:transparent;text-align:left;font-size:13px;padding:13px 14px;font-weight:500}.nav button.active{background:var(--light);color:var(--green);font-weight:700}.nav button:hover{background:#f1f5ee}.nav .count{margin-left:auto}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:20px 10px 0}.avatar{background:#e6ecdf;color:var(--green);border-radius:50%;width:36px;height:36px;display:inline-grid;place-items:center;font-size:12px;font-weight:750;flex-shrink:0}.userrow{display:flex;align-items:center;gap:10px}.userrow b{font-size:13px}.userrow small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.workspace{margin-left:232px}.topbar{height:75px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 35px;background:#fff}.topbar .breadcrumb{font-size:13px;color:var(--muted)}.topbar .breadcrumb b{color:var(--ink);font-weight:600}.top-actions{display:flex;align-items:center;gap:12px}.pill{font-size:11px;padding:6px 9px;border-radius:6px;background:var(--light);color:var(--green);display:inline-flex;align-items:center;gap:6px;font-weight:650;white-space:nowrap}.pill.amber{background:#fff0d6;color:#8b601a}.pill.red{background:#fae9e4;color:var(--red)}.pill.grey{background:#edf0ec;color:#647066}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}.demo-banner{background:#fff3df;padding:8px 35px;font-size:11px;color:#87612d;display:flex;align-items:center;justify-content:space-between;gap:10px}.demo-banner b{font-weight:700}.demo-banner button{font-size:11px;padding:0;min-height:20px;border:0;background:none;color:#77571d;text-decoration:underline}.content{max-width:1500px;padding:32px 35px 50px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.page-heading p{color:var(--muted);font-size:13px;margin-top:9px}.heading-actions{display:flex;align-items:center;gap:10px}.date{font-size:12px;color:var(--muted);text-align:right}.shift-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;padding:15px 20px;border:1px solid #d6e1d2;border-radius:12px;background:#eef3e9}.shift-strip p{font-size:12px;color:#68806b;margin-top:4px}.row{display:flex;align-items:center;gap:12px}.spread{justify-content:space-between}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 26px}.stat{padding:20px 22px;border:1px solid var(--line);background:white;border-radius:13px;box-shadow:var(--shadow)}.stat label{display:block;font-size:12px;color:var(--muted);margin-bottom:13px}.stat strong{font-size:25px;font-weight:650;letter-spacing:-.8px}.stat small{display:block;font-size:11px;color:var(--muted);margin-top:10px}.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 295px;gap:25px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-title span{font-size:12px;color:var(--muted)}.tasks{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.task{min-height:160px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:23px 21px;border-radius:14px;position:relative;box-shadow:var(--shadow)}.task .icon-box{padding:10px;background:#f1f4ee;border-radius:10px;margin-bottom:19px;display:grid;place-items:center}.task b{font-size:15px;font-weight:650}.task small{font-size:11px;font-weight:400;color:var(--muted);margin-top:6px}.task .arrow{position:absolute;right:18px;top:21px;font-size:17px;color:#8e9a91}.task.hero{background:var(--green);border-color:var(--green);color:white}.task.hero small{color:#bed2c3}.task.hero .icon-box{background:#ffffff20;color:#f1cf8f}.task.hero .arrow{color:#bfd2c5}.task.close .icon-box{background:#fbefdb;color:#ad7428}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:var(--shadow)}.panel+.panel{margin-top:18px}.stack{display:grid;gap:18px}.callout{border-radius:11px;padding:15px 17px;background:#f8f2e6;color:#7a5b2c;font-size:12px;line-height:1.6;border:1px solid #eee2cd}.callout.green{background:#edf4ed;color:#42654b;border-color:#dce7d9}.callout.red{background:#fff0ea;color:#943c2e;border-color:#f0d3c8}.low-row{display:flex;gap:11px;align-items:center;border-bottom:1px solid #edf0e9;padding:16px 0}.low-row:last-child{border:0;padding-bottom:2px}.low-row b{font-size:12px}.low-row small{font-size:11px;display:block;color:var(--muted);margin-top:5px}.low-row .stock-num{margin-left:auto;color:#a96e2b;font-size:13px;font-weight:650;white-space:nowrap}.product-art{width:43px;height:43px;border-radius:10px;display:grid;place-items:center;background:#f2ede2;color:#8b7551;flex-shrink:0}.product-art.rod{background:#edf0ed;color:#637c70}.product-art.roof{background:#e9eff0;color:#69828b}.product-art.nails{background:#f3ede8;color:#89705c}.recent{margin-top:28px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{color:var(--muted);font-size:10px;font-weight:650;letter-spacing:.4px;text-transform:uppercase;background:#f8faf5;white-space:nowrap}th,td{padding:14px 13px;border-bottom:1px solid #e9ede5}td{vertical-align:middle}td b{font-size:12px}td small{display:block;font-size:10px;color:var(--muted);margin-top:5px}tr:last-child td{border-bottom:0}.table-card{padding:0;overflow:hidden}.table-card>.section-title{padding:20px 22px 0}.empty{padding:35px 20px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}.empty .bigicon{font-size:26px;margin-bottom:10px}.activity{border-left:1px solid #dfe6da;margin:17px 0 0 7px;padding:0 0 0 17px}.activity p{position:relative;font-size:12px;margin-bottom:18px}.activity p:before{position:absolute;content:'';width:7px;height:7px;background:#84a083;border-radius:50%;left:-21px;top:6px;box-shadow:0 0 0 4px white}.activity small{display:block;font-size:10px;color:var(--muted);margin-top:5px}label{font-size:12px;font-weight:550;display:block;margin-bottom:7px}input,select,textarea{display:block;width:100%;background:white;color:var(--ink);border:1px solid #d6ded3;border-radius:9px;padding:11px 12px;min-height:45px;font-size:13px}input[type=checkbox]{display:inline-block;width:18px;min-height:18px;height:18px;vertical-align:middle;margin:0 8px 0 0;accent-color:var(--green)}input[type=file]{font-size:12px}textarea{resize:vertical;min-height:80px}.field{margin-bottom:16px}.field small{display:block;margin-top:6px;color:var(--muted);font-size:11px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.check{font-size:12px;line-height:1.5;display:flex;align-items:flex-start;gap:6px;margin:12px 0}.form-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid var(--line);margin-top:20px}.error{color:var(--red);font-size:13px;line-height:1.5;margin-top:10px}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:22px;flex-wrap:wrap}.toolbar .search{flex:1;min-width:200px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.chips button{border-radius:8px;padding:8px 13px;font-size:12px;min-height:36px}.chips button.active{background:var(--green);color:white;border-color:var(--green)}.sale-layout{display:grid;grid-template-columns:1fr 355px;gap:23px;align-items:start}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.product-card{text-align:left;padding:18px;min-height:175px;display:flex;align-items:flex-start;flex-direction:column}.product-card .product-art{width:50px;height:50px;margin-bottom:15px}.product-card b{font-size:13px}.product-card small{font-size:11px;color:var(--muted);margin:5px 0 12px;font-weight:400}.product-card .price-line{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:auto;font-size:14px}.product-card .price-line span{font-size:10px;font-weight:400;color:var(--muted)}.cart{position:sticky;top:20px}.cart-line{display:grid;grid-template-columns:1fr 68px 23px;gap:9px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.cart-line b{font-size:12px}.cart-line small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.cart-line input{padding:7px;min-height:36px}.cart-line button{padding:0;min-height:30px;border:0}.cart-total{display:flex;justify-content:space-between;align-items:center;padding:18px 0;font-size:18px;font-weight:650}.order-card{padding:21px;border:1px solid var(--line);background:white;border-radius:13px;margin-bottom:16px}.order-card .order-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:15px}.order-card p{font-size:12px;color:var(--muted)}.order-card .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}.order-card .summary{display:flex;flex-wrap:wrap;gap:22px;border-top:1px solid var(--line);padding-top:15px;margin-top:15px}.order-card .summary label{font-size:10px;color:var(--muted);margin-bottom:6px}.order-card .summary strong{font-size:15px}.tabs{display:flex;gap:8px;margin-bottom:22px;border-bottom:1px solid var(--line);padding-bottom:13px;flex-wrap:wrap}.tabs button{border:0;background:transparent;font-size:12px}.tabs button.active{background:var(--light);color:var(--green)}.message-list{display:grid;gap:18px}.message{max-width:720px;background:#edf6ec;border:1px solid #d8e5d3;border-radius:0 14px 14px;padding:19px}.message.owner{background:#f9f0df;border-color:#e9dcc2}.message .meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:12px;gap:12px}.message .body{white-space:pre-wrap;font-size:13px;line-height:1.7}.message .actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}.message img,.evidence{max-width:100%;width:280px;height:auto;border-radius:10px;margin:12px 0}.inbox{border-left:3px solid #d7ab58;padding:12px 15px;margin:15px 0;background:#fffbf3}.inbox p{font-size:13px;margin:7px 0}.inbox small{font-size:11px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:17px;padding:0;max-width:580px;width:calc(100% - 28px);max-height:90vh;box-shadow:0 25px 100px #0c281e40;color:var(--ink)}dialog::backdrop{background:#152c225e;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:22px 25px;border-bottom:1px solid var(--line)}.dialog-body{padding:22px 25px}.dialog-body>p{font-size:13px;color:var(--muted);margin-bottom:20px}.dialog-body table{margin-bottom:15px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 22px;border-radius:10px;background:#203b2d;color:white;font-size:13px;z-index:100;box-shadow:0 8px 30px #0003;display:none;max-width:90vw}#toast.show{display:block}.login-screen{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-story{background:var(--green);color:white;padding:58px 11%;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story .logo small{color:#c1d0be}.login-story h1{font-size:49px;line-height:1.14;letter-spacing:-2px;margin:45px 0 20px;max-width:430px}.login-story p{color:#c5d5c5;max-width:370px;font-size:14px}.login-story .eyebrow{color:#e8be78;margin-top:70px}.shop-illustration{margin:32px 0;max-width:380px;width:100%;color:#dcba7f}.login-side{display:grid;place-items:center;padding:40px}.login-form{width:100%;max-width:370px}.login-form h2{font-size:29px;letter-spacing:-1px}.login-form>p{color:var(--muted);font-size:13px;margin:12px 0 30px}.login-form .primary{margin-top:10px}.demo-access{margin-top:30px;padding:17px;background:#eeeee5;border-radius:11px;font-size:11px;color:#647262;line-height:1.8}.demo-access button{padding:5px 7px;min-height:30px;font-size:11px;background:transparent;border:0;color:var(--green)}.loading{padding:100px;text-align:center;color:var(--green)}.metric-bars{display:grid;gap:17px;padding-top:20px}.metric-bar .row{font-size:12px;margin-bottom:8px}.bar-track{height:9px;background:#edf1e9;border-radius:5px;overflow:hidden}.bar-fill{height:9px;background:#487a58;border-radius:5px;width:var(--bar,50%)}.bar-fill.gold{background:#ddb676}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.guide p,.guide li{font-size:13px;line-height:1.8;margin:12px 0}.guide h3{margin:25px 0 10px}.mobile-brand{display:none}.timeline-step{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:15px;align-items:flex-start}.step-number{background:var(--light);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:12px;font-weight:bold}.timeline-step p{font-size:12px;color:var(--muted);margin-top:5px}.nowrap{white-space:nowrap}.trace{font-family:Consolas,monospace;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.mobile-only{display:none}.pending-note{background:#fff1d6;color:#80591c;padding:12px;font-size:12px;border-radius:9px;margin-bottom:18px}.photo-preview{max-height:180px;max-width:100%;border-radius:8px}.check input{flex-shrink:0}.subtle-rule{border:0;border-top:1px solid var(--line);margin:20px 0}.badge-number{background:#e8eadf;border-radius:4px;padding:2px 5px;font-size:10px}.record-grid{display:grid;gap:15px}.order-link{border:0;padding:0;min-height:24px;background:none;text-decoration:underline;font-size:12px}.print-only{display:none}@media(min-width:1450px){.tasks .task{min-height:180px}.home-layout{grid-template-columns:minmax(0,1fr) 320px}}@media(max-width:1150px){.sidebar{width:205px;padding-left:12px;padding-right:12px}.workspace{margin-left:205px}.content{padding:28px 24px}.topbar{padding:0 24px}.home-layout{grid-template-columns:1fr}.home-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.home-aside .panel+.panel{margin:0}.sale-layout{grid-template-columns:1fr 320px}.product-grid{grid-template-columns:repeat(2,1fr)}.stats{gap:10px}.stat{padding:17px}.stat strong{font-size:22px}}@media(max-width:780px){.sidebar{width:74px;padding:22px 8px}.sidebar .logo{padding:0 10px 20px}.sidebar .logo div,.nav-group,.nav .nav-label,.nav .count,.sidebar-bottom{display:none}.nav button{justify-content:center;padding:13px}.workspace{margin-left:74px}.topbar{height:64px;padding:0 20px}.content{padding:25px 20px}.demo-banner{padding:9px 20px}.page-heading{align-items:flex-start}.page-heading h1{font-size:26px}.stats{grid-template-columns:repeat(2,1fr)}.tasks{grid-template-columns:repeat(2,1fr)}.sale-layout{grid-template-columns:1fr}.cart{position:static}.two-col{grid-template-columns:1fr}.login-story{padding:40px}.login-story h1{font-size:37px}.login-side{padding:30px}.date{display:none}}@media(max-width:520px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:65px;flex-direction:row;padding:4px 5px;border-top:1px solid var(--line);border-right:0;overflow-x:auto}.sidebar .logo,.sidebar .nav-group{display:none}.sidebar .nav{display:flex;gap:2px}.nav button{min-width:56px;flex-direction:column;gap:4px;padding:7px 9px}.nav .nav-label{display:block;font-size:8px;max-width:65px;white-space:nowrap}.nav .count{display:none}.workspace{margin:0;padding-bottom:70px}.topbar{padding:0 17px;height:61px}.topbar .breadcrumb{display:none}.mobile-brand{display:flex;font-size:15px;font-weight:700;align-items:center;gap:8px}.mobile-brand img{width:28px}.top-actions{gap:4px}.top-actions>.pill{font-size:9px}.top-actions>.small{font-size:10px;padding:7px}.content{padding:22px 16px 32px}.demo-banner{padding:8px 16px;font-size:10px;line-height:1.5}.demo-banner span{max-width:230px}.page-heading{margin-bottom:21px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px}.heading-actions{flex-direction:column;align-items:flex-end;gap:6px}.heading-actions button{font-size:11px;padding:9px}.shift-strip{padding:13px;gap:10px;align-items:flex-start}.shift-strip .row{gap:8px}.shift-strip b{font-size:12px}.shift-strip p{font-size:10px}.shift-strip button{font-size:10px;padding:8px;min-height:36px}.stat{padding:17px 15px}.stat strong{font-size:23px}.stat label{font-size:11px}.stats{margin-bottom:23px}.task{min-height:149px;padding:19px 17px}.task b{font-size:14px}.task small{font-size:10px}.task .icon-box{margin-bottom:15px}.home-aside{grid-template-columns:1fr}.panel{padding:18px}.table-card{padding:0}.table-wrap{border-radius:12px}.table-wrap td,.table-wrap th{padding:13px 10px}.fields{grid-template-columns:1fr}.dialog-head{padding:18px}.dialog-body{padding:18px}.login-screen{grid-template-columns:1fr}.login-story{padding:30px;min-height:auto}.login-story .eyebrow,.login-story .shop-illustration,.login-story>small{display:none}.login-story h1{font-size:29px;margin:25px 0 12px;max-width:none}.login-story p{font-size:12px}.login-side{padding:30px 25px}.login-form h2{font-size:25px}.order-card .order-top{flex-wrap:wrap}.order-card .summary{gap:18px}.product-grid{gap:10px}.product-card{padding:15px}.product-card .price-line{font-size:13px}.product-card .price-line span{font-size:9px}.toolbar{gap:8px}.message{padding:16px}.mobile-only{display:block}}@media print{.sidebar,.topbar,.demo-banner,.actions,button,dialog{display:none!important}.workspace{margin:0}.content{padding:0}.panel{box-shadow:none}.print-only{display:block}}

progress{height:9px;border:0;border-radius:5px;overflow:hidden;accent-color:#487a58}progress::-webkit-progress-bar{background:#edf1e9}progress::-webkit-progress-value{background:#487a58;border-radius:5px}.delivery-item{padding:18px 0;border-bottom:1px solid var(--line)}.delivery-item b{font-size:13px}.delivery-item small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.delivery-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:17px}.delivery-counts label{font-size:11px;color:var(--muted)}.delivery-counts strong{font-size:18px}@media(max-width:520px){.delivery-counts{grid-template-columns:repeat(2,1fr)}}

/* Matching local product photographs, also cached for offline counters. */
.product-art.product-photo{width:62px;height:62px;overflow:hidden;border-radius:10px;background:#f3f1e9;flex-shrink:0;position:relative}
.product-photo>svg{display:none}
.product-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.product-photo img[hidden]{display:none}
.product-photo.image-unavailable>svg{display:block}
.product-card{padding:0;overflow:hidden;min-width:0;border-radius:13px;gap:0;transition:border-color .15s,box-shadow .15s}
.product-card:hover{border-color:#7c9b83;box-shadow:0 5px 18px #184e3d12}
.product-card:focus-visible{outline:3px solid #a4782f;outline-offset:3px}
.product-card .product-art{width:100%;height:172px;flex-shrink:0;margin:0;border-radius:0;background:#f3f1e9}
.product-card .product-art>svg{width:52px;height:52px}
.product-copy{display:flex;flex-direction:column;align-items:flex-start;padding:15px;width:100%;flex:1}
.product-copy>b{font-size:14px;line-height:1.4;min-height:20px}
.product-size{font-size:12px;font-weight:650;color:#365845;background:#edf2e8;border-radius:5px;padding:5px 8px;margin:8px 0 15px;line-height:1.4;text-align:left}
.product-card .price-line{font-size:16px;gap:5px}
.product-card .price-line span{font-size:11px}
.product-availability{font-size:11px;font-weight:400;color:var(--muted);margin-top:10px;line-height:1.5}
.product-availability.low{color:#865910}
.product-demo-price{font-size:10px;font-weight:500;color:#865910;margin-top:7px;line-height:1.4}
.material-preview{display:flex;align-items:center;gap:17px;margin:0 0 18px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafbf7}
.material-preview .product-art{width:96px;height:96px}
.material-preview b{font-size:14px;line-height:1.4}
.material-preview small{display:block;font-size:12px;color:var(--muted);margin-top:7px}
.picture-help{font-size:11px!important;line-height:1.6;margin-top:-5px;margin-bottom:20px;color:var(--muted)}
.catalogue-filters{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.catalogue-filters label{font-size:12px;font-weight:650;color:#365845;white-space:nowrap}
.catalogue-filters select{min-height:44px;min-width:180px;max-width:100%;padding:9px 32px 9px 12px;border:1px solid var(--line);border-radius:9px;background:white;font:inherit;font-size:13px}
.catalogue-count{font-size:12px;color:var(--muted);margin:0 0 14px}
#catalogue-more{margin:18px 0 24px}
/* A small, focused workspace for the shared counter. */
.counter-workspace{margin:0;padding:0;min-height:100dvh}
.counter-topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 32px;background:white;border-bottom:1px solid var(--line)}
.counter-brand{display:flex;align-items:center;gap:10px}
.counter-brand img{width:38px;height:38px}
.counter-brand b{font-size:18px}
.counter-brand small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.counter-top-actions{display:flex;align-items:center;gap:12px}
.counter-home-link{border-color:#b4c6b6;font-size:15px}
.counter-content{max-width:1390px;margin:0 auto;padding:32px}
.counter-home{max-width:1100px;margin:auto}
.counter-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px}
.counter-welcome p{margin-top:8px;color:var(--muted);font-size:14px}
.counter-shift-note{font-size:12px;color:var(--muted);margin:12px 0 25px}
.counter-tasks{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-bottom:32px}
.counter-tasks .task{min-height:170px;padding:24px 20px;box-shadow:none}
.counter-tasks .task b{font-size:21px;letter-spacing:-.4px}
.counter-tasks .task small{font-size:12px;line-height:1.5}
.counter-history-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:18px;gap:16px}
.counter-history-heading h2{font-size:22px}
.counter-history-heading p,.counter-history-heading small{font-size:12px;color:var(--muted)}
.counter-history-heading>div:last-child{text-align:right}
.counter-history-heading strong{display:block;font-size:24px;margin-top:5px}
.counter-sales-list{display:grid;gap:14px}
.counter-sale{background:white;border:1px solid var(--line);border-radius:13px;padding:20px}
.counter-sale-heading{display:flex;justify-content:space-between;gap:15px}
.counter-sale-heading b{font-size:16px}
.counter-sale-heading small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.counter-sale-heading>strong{font-size:19px;white-space:nowrap}
.counter-sale-materials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.counter-sale-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:12px}
.counter-sale-footer>span{font-size:12px;color:var(--muted)}
.counter-no-sales{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:40px 22px;color:var(--muted)}
.counter-no-sales b{color:var(--ink)}
.counter-no-sales p{font-size:13px}
.counter-close{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--line);margin-top:32px;padding:24px 0 8px}
.counter-close>div{display:flex;align-items:center;gap:13px}
.counter-close b{font-size:15px}
.counter-close p{font-size:12px;color:var(--muted);margin-top:4px}
.counter-close>button{font-size:17px;min-height:54px;min-width:150px}
.counter-close>button:disabled{cursor:default}
.counter-sale-links{display:flex;gap:10px;flex-wrap:wrap;margin:-8px 0 22px}
.counter-workspace .order-bar{left:20px;right:20px;bottom:16px}
.payment-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0 22px}
.payment-choices button{min-height:96px;padding:15px 8px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;font-size:17px}
.payment-choices button small{font-size:12px;font-weight:400}
.payment-choices button[aria-pressed="true"],.payment-channels button[aria-pressed="true"]{background:var(--green);color:white;border-color:var(--green)}
.payment-channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 20px}
.payment-channels button{min-height:52px;font-size:16px}
.payment-channels button{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 10px;min-height:112px}
.payment-method-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:14px;background:#e5f1e6;color:#184e3d}
.payment-method-icon.momo{background:white;width:100%;max-width:112px;border-radius:8px;padding:3px}
.payment-method-icon.momo img{display:block;width:100%;height:100%;object-fit:contain}
.payment-method-icon.bank{background:#e1ecfa;color:#245184}
.payment-channels button[aria-pressed="true"] .payment-method-icon{box-shadow:0 0 0 2px #ffffff55}
.delivery-reminders{padding:20px;border:1px solid #e2bf7c;border-radius:13px;background:#fff5df;margin:0 0 28px}
.delivery-reminders h2{font-size:19px}
.delivery-reminders p,.due-delivery p{font-size:12px;color:#78613d;margin-top:5px}
.due-delivery{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-top:1px solid #e6dac2;margin-top:16px}
.due-delivery b{font-size:14px}
.due-delivery>div{min-width:0;overflow-wrap:anywhere}
.due-delivery>button{flex-shrink:0}
.scheduled-orders{margin:0 0 28px}
.scheduled-orders .panel{padding:18px}
.counter-checkout-dialog h3{font-size:18px}
.counter-checkout-dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 24px)}
.counter-checkout-dialog .dialog-head{flex-shrink:0}
.counter-checkout-dialog .dialog-body{min-height:0;overflow:auto}
.counter-checkout-dialog .form-footer{position:sticky;bottom:-22px;background:white;padding:14px 0 4px;z-index:2;display:grid;grid-template-columns:1fr 2fr}
.counter-checkout-dialog .form-footer button{min-height:52px}
@media(max-width:520px){.counter-checkout-dialog .form-footer{bottom:-18px}.counter-checkout-dialog .dialog-head{padding:12px 18px}}
.counter-pay-total{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 20px;padding:18px;background:var(--light);border-radius:10px}
.counter-pay-total strong{font-size:27px}
.payment-remaining{padding:15px;border-radius:10px;background:#fff5e3;margin:18px 0}
.payment-remaining strong{font-size:22px;display:block;margin-top:5px}
.payment-remaining span{font-size:13px}
.counter-checkout-section{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
.counter-checkout-section h3{font-size:18px;margin-bottom:14px}
.counter-checkout-help{font-size:12px;color:var(--muted);margin:8px 0 16px;line-height:1.6}
@media(max-width:780px){
 .counter-topbar{padding:14px 20px;flex-wrap:wrap;gap:12px}
 .counter-top-actions{gap:8px}
 .counter-content{padding:25px 20px}
 .counter-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}
 .counter-workspace:has(.order-bar) #toast{bottom:100px}
}
@media(max-width:520px){
 .counter-topbar{padding:12px 16px}
 .counter-brand img{width:32px;height:32px}
 .counter-brand b{font-size:16px}
 .counter-top-actions{flex-wrap:wrap;width:100%;justify-content:space-between}
 .counter-content{padding:24px 16px}
 .counter-welcome{align-items:flex-start;flex-direction:column;gap:12px}
 .counter-welcome h1{font-size:26px}
 .counter-tasks{gap:12px}
 .counter-tasks .task{min-height:152px;padding:20px 16px}
 .counter-tasks .task b{font-size:20px}
 .counter-tasks .task small{font-size:11px}
 .counter-history-heading strong{font-size:21px}
 .counter-history-heading h2{font-size:20px}
 .counter-sale{padding:17px}
 .counter-sale-materials{grid-template-columns:1fr}
 .counter-close{align-items:stretch;flex-direction:column}
 .counter-close>button{width:100%}
 .counter-workspace .order-bar{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}
 .payment-choices{gap:7px}
 .payment-choices button{font-size:15px;min-height:92px}
 .payment-channels button{padding:12px 8px}
}
/* Picture-first counter: quantities are entered in a focused dialog. */
.sale-catalogue{min-width:0}
.cart{display:flex;flex-direction:column;max-height:calc(100dvh - 260px)}
.cart .section-title,.order-panel-footer{flex-shrink:0}
.picture-order-lines{overflow:auto;min-height:0;overscroll-behavior:contain}
.picture-order-line{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:3px;align-items:center;border-bottom:1px solid var(--line);padding:9px 0}
.order-item-edit{display:grid;grid-template-columns:62px minmax(0,1fr);gap:5px 11px;width:100%;text-align:left;align-items:center;border:0;background:transparent;padding:6px;border-radius:9px;min-width:0}
.order-item-edit:hover{background:#edf2e8}
.order-item-edit .product-art{grid-row:1 / 3;width:62px;height:62px}
.order-item-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.order-item-copy b{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.order-item-copy small{font-size:10px;color:var(--muted);line-height:1.4}
.order-item-copy strong{font-size:17px;color:var(--green)}
.order-change{font-size:11px;text-decoration:underline;color:var(--green)}
.order-line-total{grid-column:2;font-size:13px;font-weight:650;white-space:nowrap}
.order-item-remove{padding:0;width:36px;min-height:44px;border:0;background:transparent;font-size:25px;color:#7b4939}
.order-empty{display:flex;flex-direction:column;align-items:center;gap:13px;padding:38px 8px}
.order-empty span{font-size:12px}
.order-panel-footer .cart-total{font-size:17px}
.order-panel-footer>.quiet{margin-top:7px;font-size:12px}
.order-bar{display:none}
.quantity-dialog[open],.order-dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 24px)}
.quantity-dialog .dialog-head,.order-dialog .dialog-head{flex-shrink:0}
.quantity-dialog .dialog-head button,.order-dialog .dialog-head button{min-width:44px;min-height:44px;font-size:24px}
.quantity-dialog .dialog-body{overflow:auto;min-height:0}
.quantity-product{display:grid;grid-template-columns:176px minmax(0,1fr);align-items:center;gap:20px;margin-bottom:20px}
.quantity-product .product-art,.quantity-product .product-art.product-photo{width:176px;height:176px;border-radius:12px}
.quantity-product h3{font-size:18px;line-height:1.35;margin:0}
.quantity-product .product-size{display:inline-block;margin:9px 0}
.quantity-product p{margin:0 0 8px;font-size:15px;font-weight:650}
.quantity-product small{font-size:12px;color:var(--muted)}
.quantity-label{display:block;font-size:18px;font-weight:700;margin:0 0 10px}
.rod-unit-options{border:0;padding:0;margin:0 0 12px;min-width:0}
.rod-unit-options legend{font-size:15px;font-weight:700;padding:0;margin-bottom:9px}
.rod-unit-options>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rod-unit-options button{font-size:18px;min-height:52px}
.rod-unit-options button[aria-pressed="true"]{background:var(--green);color:white;border-color:var(--green)}
.rod-conversion-info{font-size:12px;color:var(--muted);line-height:1.5;margin:0 0 16px}
.quantity-conversion{font-size:14px;font-weight:650;color:var(--green);margin-top:12px;line-height:1.5}
.quantity-entry{display:grid;grid-template-columns:60px minmax(0,1fr) 60px;gap:10px}
.quantity-entry button{font-size:28px;font-weight:700;min-height:62px;padding:0;background:#edf2e8;border-color:#bdcdbb;color:var(--green)}
.quantity-entry input{font-size:32px;font-weight:750;text-align:center;min-width:0;height:62px;padding:6px;border:2px solid #9bb39d}
.quantity-entry input::-webkit-inner-spin-button{appearance:none;margin:0}
.quantity-subtotal{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 0;font-size:14px}
.quantity-subtotal strong{font-size:23px;white-space:nowrap}
.quantity-existing{font-size:12px;color:var(--muted);margin:0 0 8px}
.quantity-dialog .form-footer{position:sticky;bottom:-22px;background:white;display:grid;grid-template-columns:1fr 2fr;z-index:1;padding:14px 0 5px;margin-top:0}
.quantity-dialog .form-footer button{font-size:16px;min-height:52px}
.order-dialog{max-width:620px}
.order-dialog .dialog-body{display:flex;flex-direction:column;overflow:hidden;min-height:0}
.order-review-help{flex-shrink:0}
.order-dialog .order-item-edit{grid-template-columns:76px minmax(0,1fr)}
.order-dialog .order-item-edit .product-art{width:76px;height:76px}
.order-dialog .order-item-copy b{font-size:15px}
.order-dialog .order-item-copy small{font-size:12px}
.order-dialog .order-item-copy strong{font-size:20px}
.order-review-footer{flex-shrink:0;display:grid;gap:10px;background:white}
.order-review-footer .cart-total{padding-bottom:7px}
.order-review-footer button{min-height:48px}
.saved-order-materials{display:grid;gap:10px;margin:18px 0}
.saved-order-material{display:flex;gap:12px;align-items:center;min-width:0}
.saved-order-material b{font-size:13px;line-height:1.4}
.saved-order-material small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.saved-order-material .product-art{width:52px;height:52px}
@media(max-width:780px){
  #order-panel{display:none}
  .sale-layout{padding-bottom:100px}
  .order-bar{display:block;position:fixed;left:94px;right:20px;bottom:16px;z-index:25}
  .order-bar>button{display:flex;gap:12px;align-items:center;width:100%;padding:13px 16px;min-height:68px;box-shadow:0 5px 24px #163f3433;border-radius:13px}
  .order-bar>button>span{display:flex;flex-direction:column;text-align:left;gap:4px}
  .order-bar b{font-size:16px}
  .order-bar small{font-size:12px;font-weight:400}
  .order-bar strong{margin-left:auto;white-space:nowrap;font-size:17px}
  .order-bar button:disabled{opacity:1;background:#e8eee4;border-color:#d1ddcc;color:#50634e;box-shadow:none}
  body:has(.order-bar) #toast{bottom:100px}
}
@media(max-width:520px){
  .order-bar{left:12px;right:12px;bottom:calc(75px + env(safe-area-inset-bottom))}
  .order-bar>button{padding:12px;gap:9px}
  .order-bar>button>svg:last-child{display:none}
  .quantity-product{grid-template-columns:126px minmax(0,1fr);gap:12px;margin-bottom:16px}
  .quantity-product .product-art,.quantity-product .product-art.product-photo{width:126px;height:126px}
  .quantity-product h3{font-size:16px}
  .quantity-product p{font-size:14px}
  .quantity-product .product-size{font-size:12px}
  .quantity-entry{grid-template-columns:54px minmax(0,1fr) 54px;gap:8px}
  .quantity-dialog .dialog-head,.order-dialog .dialog-head{padding:10px 18px}
  .quantity-dialog .form-footer{bottom:-18px}
  .quantity-subtotal strong{font-size:20px}
  .order-dialog .order-item-edit{grid-template-columns:64px minmax(0,1fr)}
  .order-dialog .order-item-edit .product-art{width:64px;height:64px}
  .order-dialog .order-item-copy b{font-size:13px}
  .order-dialog .order-item-copy small{font-size:11px}
  body:has(.order-bar) #toast{bottom:155px}
}
.counter-archive-link{margin:0 0 18px;display:flex;justify-content:flex-end}
.customer-day-group{background:#f4f8f5;border:1px solid #d6e3da;border-radius:16px;padding:16px;margin-bottom:18px;min-width:0}
.customer-day-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:12px}
.customer-day-heading h3{font-size:22px;overflow-wrap:anywhere;color:#184e3d}
.customer-day-group .counter-sale{margin-bottom:10px;background:white}
.customer-day-group .counter-sale:last-child{margin-bottom:0}
.customer-matches{display:grid;gap:8px;margin:8px 0}
.customer-matches button{text-align:left;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:14px;background:#eef6f0;border:2px solid #bdd6c4}
.customer-matches button small{grid-column:1;color:#536158;font-size:13px}
.customer-matches button span{grid-column:2;grid-row:1/3;align-self:center;font-size:13px}
.customer-matches p{font-size:13px;color:#496052}
.archive-search-label{display:block;font-weight:600;margin-bottom:10px}
#customer-search{max-width:560px;width:100%;margin-bottom:12px}
.customer-archive-list{display:grid;gap:14px;margin:24px 0}
.customer-archive-card{display:flex;gap:24px;align-items:center;padding:24px;border:1px solid #d8e2da;background:white;border-radius:14px}
.customer-archive-card>div:first-child{flex:1;min-width:0}
.customer-archive-card h2{font-size:21px;overflow-wrap:anywhere}
.customer-archive-card p{margin:6px 0}
.customer-archive-card small{color:#657269}
.customer-archive-total{display:grid;gap:6px}
.pending-material{padding:16px 0;border-bottom:1px solid #e4e9e5}
.pending-material .summary{margin:12px 0 0;background:#faf3e5}
.pending-material .summary label{color:#614b2e}
.load-count-item{padding:14px;background:#f5f8f5;border:1px solid #d8e2da;border-radius:12px;margin:12px 0}
.load-approval{padding:12px;border-left:4px solid #28845d;background:#eef7f0;font-size:14px}
.archive-card-actions{display:grid;gap:8px}
.owner-stores{margin-bottom:30px}.owner-stores .section-title p{margin-top:6px}.store-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px;margin:18px 0}
.store-card{background:white;border:2px solid #d8e2da;padding:22px;border-radius:15px}.store-card.selected{border-color:#24714e;background:#f1f7ef}.store-card h3{font-size:24px}.store-staff{display:grid;gap:5px;margin:12px 0}.store-card p,.store-card small{font-size:12px;color:#647168}.store-figures{display:flex;gap:18px;margin:15px 0}.store-figures span{display:grid;gap:5px;font-size:12px}.store-figures b{font-size:17px}.store-settings{margin-bottom:22px}.store-settings .fields{margin-top:18px}
.pin-setup{max-width:460px;margin:5vh auto;padding:28px;background:white;border:1px solid #d8e2da;border-radius:16px}.pin-setup h1{font-size:26px;margin:18px 0}.pin-setup p{margin:12px 0}.pin-setup form{margin-top:24px}
.management-content{max-width:1200px;margin:auto;width:100%}.management-tasks{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:24px}.management-tasks .task{min-height:150px;padding:22px}.management-tasks .task b{font-size:21px}.management-attention{margin-top:22px}.management-shortcuts{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.management-products,.employee-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.management-search{margin-bottom:22px}.management-search label{display:block;font-weight:700;margin-bottom:8px}.management-search input{width:100%;font-size:17px;padding:15px;border:1px solid #ccd8ce;border-radius:10px}.management-product h2{font-size:18px}.management-product p{font-size:13px}.management-product .product-art{flex-shrink:0}.management-prices{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.management-prices div{display:grid;gap:5px}.management-prices span{font-size:13px;color:#506457}.management-prices b{font-size:23px}.management-product .actions{margin-top:18px;flex-wrap:wrap}.employee-card{align-items:flex-start;flex-wrap:wrap;padding:22px}.employee-card h2{font-size:21px}.employee-card p{margin:7px 0}.employee-card .actions{flex-basis:100%;flex-wrap:wrap;margin-top:10px}.management-workspace .owner-stores{margin-bottom:24px}
.payment-confirmation-panel{padding:20px;border:2px solid #278259;background:#eaf8ee;border-radius:14px;margin-bottom:24px}.payment-confirmation-panel h2{font-size:23px;margin-bottom:10px}.confirmed-payment{padding:14px 0;border-top:1px solid #bfdcc8;display:flex;align-items:center;justify-content:space-between;gap:16px}.confirmed-payment b{font-size:19px}.confirmed-payment p{margin:6px 0}.confirmed-payment .actions{flex-shrink:0;flex-wrap:wrap}@media(max-width:600px){.confirmed-payment{display:block}.confirmed-payment .actions{margin-top:12px}}
@media(max-width:700px){.management-tasks{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.management-tasks .task{padding:16px;min-height:145px}.management-tasks .task b{font-size:18px}.management-products,.employee-cards{grid-template-columns:1fr}.management-content{padding:18px}.management-product .actions button{min-height:44px}.management-workspace .page-heading{gap:15px;flex-wrap:wrap}}
@media(min-width:521px){.sidebar .nav{min-height:0;overflow-y:auto;flex-shrink:1}.sidebar .sidebar-bottom{flex-shrink:0}.sidebar .logo,.sidebar .nav-group{flex-shrink:0}}
.saved-address{padding:18px;margin:16px 0;background:#eef6f0;border:2px solid #bdd6c4;border-radius:12px}
.saved-address>b{font-size:18px}.saved-address p{margin:8px 0;font-size:16px}.saved-address small{display:block;margin:10px 0;color:#4d6253}.saved-address .field{margin:0;flex:1;min-width:150px}
@media(max-width:600px){.customer-day-group{padding:12px}.customer-day-heading{align-items:flex-start}.customer-day-heading h3{font-size:20px}.customer-archive-card{flex-wrap:wrap;gap:16px;padding:18px}.customer-archive-card>div:first-child{flex-basis:100%}.customer-archive-card>button{margin-left:auto}.customer-matches button{grid-template-columns:1fr}.customer-matches button span{grid-column:1;grid-row:auto}.pending-material .summary label{font-size:12px}.pending-material .summary strong{font-size:21px}}
@media(max-width:1150px) and (min-width:781px){.product-card .product-art{height:155px}.product-copy{padding:12px}}
@media(max-width:520px){.product-card .product-art{height:148px}.product-copy{padding:12px}.product-copy>b{font-size:13px}.product-size{font-size:11px;padding:5px 6px}.product-card .price-line{font-size:14px}.product-card .price-line span{font-size:10px}.product-art.product-photo{width:55px;height:55px}.material-preview .product-art{width:82px;height:82px}.product-card .product-art{width:100%;height:148px}}
.payment-request-panel{background:#fff7e5;border:2px solid #ddac42;border-radius:16px;padding:20px;margin-bottom:24px}
.payment-request-panel h2{font-size:21px;margin-bottom:8px}
.payment-request-panel .confirmed-payment{border-top:1px solid #e9d6aa;padding:16px 0}
.payment-request-panel .confirmed-payment p strong{font-size:22px}
.credit-total strong{display:block;font-size:30px;margin-top:8px;color:var(--green)}
.credit-customers{display:grid;gap:16px;margin-top:20px}
.credit-purchase{display:flex;justify-content:space-between;gap:16px;align-items:center;border-top:1px solid #e4e8e5;padding-top:16px;margin-top:16px}
.credit-customer .section-title{flex-wrap:wrap}
@media(max-width:600px){.credit-purchase{flex-direction:column;align-items:stretch}.payment-request-panel{padding:16px}.payment-request-panel .confirmed-payment{align-items:stretch}}

.payment-reference-card{background:#fff5c5;border:2px solid #e9bd2b;border-radius:12px;padding:18px;margin-bottom:18px}.payment-reference-card>span{display:block;font-weight:700}.payment-reference-card>strong{display:block;font-size:36px;letter-spacing:2px;line-height:1.4;margin:6px 0;user-select:all}.payment-reference-card p{margin:6px 0}.payment-reference-card small{display:block;font-size:13px;line-height:1.5}

.receipt-access{margin:20px 0;border-left:5px solid var(--green)}.receipt-access>b{font-size:22px}.receipt-workspace{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.4fr);gap:24px;align-items:start}.receipt-workspace .field{display:block;margin:18px 0}.receipt-workspace input{display:block;width:100%;margin-top:7px}.receipt-workspace form>small{display:block;margin-top:14px}.receipt-release{margin-top:24px}.receipt-release button{margin-top:14px}.receipt-example{min-width:0;margin-bottom:24px}.receipt-paper{background:white;color:#14291e;border:1px solid #d9e2db;padding:30px;max-width:680px;margin:auto;font:14px/1.5 Arial,sans-serif;overflow-wrap:anywhere;box-shadow:0 8px 30px #173b2110}.receipt-stamp{padding:9px;text-align:center;color:#725b22;background:#fff5d7;font-size:11px;font-weight:700;letter-spacing:1px;margin:-10px -10px 20px}.receipt-brand{display:flex;gap:14px;align-items:center;border-bottom:3px solid #184e3d;padding-bottom:20px}.receipt-brand img{flex-shrink:0}.receipt-brand h2{font-size:25px;line-height:1.2;margin:0 0 5px}.receipt-brand p{margin:3px 0;font-size:12px;color:#53655b;white-space:pre-line}.receipt-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:22px 0}.receipt-title h3{font-size:18px;letter-spacing:1px;margin:0}.receipt-title span{font-size:12px}.receipt-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px}.receipt-meta>div{display:grid;align-content:start;gap:3px}.receipt-meta small{color:#637568;font-size:11px;text-transform:uppercase;letter-spacing:.8px}.receipt-meta strong{font-size:14px}.receipt-meta span{font-size:12px}.receipt-order{font-size:12px;color:#52695a;margin:16px 0}.receipt-items{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;min-width:0}.receipt-items th{background:#eef3ef;color:#254834;text-transform:none;font-size:10px;padding:9px 6px;letter-spacing:0}.receipt-items th:first-child{width:36%}.receipt-items th:nth-child(2){width:19%}.receipt-items td{padding:12px 6px;border-bottom:1px solid #dde6df;white-space:normal;font-size:11px;vertical-align:top}.receipt-items td:last-child,.receipt-items th:last-child{text-align:right}.receipt-items td small{display:block;font-size:10px;color:#66766a}.receipt-totals{margin:18px 0 20px auto;max-width:370px}.receipt-figure{display:flex;justify-content:space-between;gap:15px;padding:6px 0;font-size:12px}.receipt-payment{background:#184e3d;color:white;padding:12px;margin:9px -10px;font-size:16px}.receipt-balance{border-top:1px solid #b6c9bc;padding-top:12px;margin-top:6px;font-size:14px}.receipt-payment-details{border-top:1px solid #dce4df;padding-top:14px}.receipt-payment-details p{margin:4px 0;font-size:12px}.receipt-payment-details small{font-size:10px;color:#607565}.receipt-paper footer{margin-top:24px;padding-top:15px;border-top:2px solid #184e3d;text-align:center}.receipt-paper footer p{font-size:13px;margin:0 0 6px;white-space:pre-line}.receipt-paper footer small{font-size:10px;color:#62766a}.company-receipt-dialog{max-width:760px;width:calc(100% - 24px)}.receipt-toolbar{margin-top:20px;justify-content:center}.company-receipt-list>div{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #dce5de;padding:18px 0}.company-receipt-list span{display:grid;gap:5px}.company-receipt-list small{color:#56695e}.company-receipt-list strong{font-size:20px}.receipt-workspace .actions{flex-wrap:wrap}#receipt-print-root{display:none}
@media(max-width:900px){.receipt-workspace{grid-template-columns:1fr}.receipt-example{max-width:680px;width:100%}}
@media(max-width:520px){.receipt-paper{padding:16px;font-size:12px}.receipt-brand{gap:10px}.receipt-brand h2{font-size:21px}.receipt-brand img{width:38px;height:38px}.receipt-title h3{font-size:15px}.receipt-meta strong{font-size:12px}.receipt-items th,.receipt-items td{padding:8px 3px;font-size:10px}.receipt-items td small{font-size:9px}.company-receipt-dialog .dialog-body{padding:12px}.receipt-stamp{font-size:9px}.company-receipt-list>div{align-items:flex-start;flex-wrap:wrap}}
@media print{
 @page company-receipt{size:A5 portrait;margin:10mm}
 body.receipt-printing{background:white!important;margin:0!important;padding:0!important}
 body.receipt-printing>*{display:none!important}body.receipt-printing>#receipt-print-root{display:block!important;page:company-receipt}
 #receipt-print-root .receipt-paper{max-width:none;border:0;box-shadow:none;padding:0;font-size:11px;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #receipt-print-root .receipt-brand{padding-bottom:10px}
 #receipt-print-root .receipt-brand h2{font-size:20px}
 #receipt-print-root .receipt-brand img{width:40px;height:40px}
 #receipt-print-root .receipt-stamp{margin:0 0 10px;padding:5px;font-size:8px}
 #receipt-print-root .receipt-title{margin:12px 0}
 #receipt-print-root .receipt-title h3{font-size:16px}
 #receipt-print-root .receipt-order{margin:10px 0}
 #receipt-print-root .receipt-items td{padding:8px 5px}
 #receipt-print-root .receipt-totals{margin:12px 0 12px auto}
 #receipt-print-root .receipt-figure{padding:3px 0;font-size:11px}
 #receipt-print-root .receipt-payment{padding:8px;margin:6px -8px;font-size:14px}
 #receipt-print-root .receipt-payment-details{padding-top:8px}
 #receipt-print-root .receipt-payment-details p{font-size:11px;margin:2px 0}
 #receipt-print-root footer{margin-top:12px;padding-top:10px}
 #receipt-print-root tr,#receipt-print-root .receipt-totals,#receipt-print-root footer{break-inside:avoid}
 #receipt-print-root thead{display:table-header-group}
}

/* Fractional trade sizes retain their own labels when no photo is assigned. */
.product-art.rod:not(.product-photo){position:relative;flex-direction:column;gap:6px}.rod-size-icon{font-size:clamp(12px,2.2vw,24px);font-weight:900;line-height:1.15;text-align:center;color:#172e37}.quantity-product .rod-size-icon{font-size:30px}.order-item .rod-size-icon{font-size:11px}

.store-update-notices{margin-bottom:20px}.shop-update-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e1e8e3}.shop-update-card:last-child{border:0}.shop-update-card p{margin:5px 0}.shop-update-card small{color:#65736b}.shop-update-dialog{max-width:740px}.shop-update-dialog h3{margin:22px 0 12px}.shop-update-dialog p{line-height:1.65;margin:12px 0}.closing-figures{display:grid;grid-template-columns:1fr 1fr;gap:10px}.closing-figures>div,.closing-stock-item{padding:12px;background:#f3f6f2;border-radius:10px}.closing-figures dt,.closing-stock-item dt{font-size:12px;color:#52675b}.closing-figures dd,.closing-stock-item dd{margin:4px 0 0;font-weight:700}.closing-stock-list{margin:15px 0;display:grid;gap:10px}.closing-stock-item>small{display:block;margin-top:5px}.closing-stock-item dl{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.closing-stock-item[hidden]{display:none}.closing-entry-list{overflow-wrap:anywhere;margin-top:20px}.closing-entry-list summary{cursor:pointer;padding:12px 0;font-weight:700}@media(max-width:520px){.shop-update-card{align-items:flex-start;flex-direction:column}.shop-update-card button{width:100%}.closing-figures{grid-template-columns:1fr 1fr}.closing-stock-item dl{grid-template-columns:1fr 1fr}}
.app-install-bar,.login-install{display:flex;align-items:center;gap:14px;background:#edf4ef;padding:10px 32px;border-bottom:1px solid var(--line)}
.app-install-bar small,.login-install small{color:var(--green);font-size:12px;line-height:1.5}
.app-download{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;background:var(--green);border-color:var(--green);color:white;font-weight:700;white-space:nowrap}
.app-download:hover{background:#123d30;color:white}
.login-install{padding:16px;margin-bottom:26px;border:1px solid #cbded2;border-radius:12px;flex-direction:column;gap:8px;text-align:center}
.login-install .app-download{width:100%;font-size:16px;min-height:48px}
.install-app-name{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.install-app-name img{border-radius:10px;flex-shrink:0}
.install-app-name small{display:block;color:var(--muted);margin-top:3px}
.install-help p{font-size:14px;line-height:1.6;margin:14px 0}
.install-devices{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.install-devices button{min-height:44px}
.install-help ol{padding-left:25px;margin:16px 0}
.install-help li{padding-left:5px;margin-bottom:16px;font-size:15px;line-height:1.65}
.install-note{background:var(--light);padding:12px;border-radius:10px;color:var(--muted)}
.app-install-bar[hidden],.login-install[hidden]{display:none}
.app-install-bar{flex-wrap:wrap}
.app-install-offer{display:flex;align-items:center;gap:14px;flex:1}
.app-install-offer[hidden]{display:none}
.app-update{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;color:var(--green);border-color:#a8c4b4;white-space:nowrap}
.login-install .app-install-offer{flex-direction:column;width:100%;gap:8px}
.login-install .app-update{width:100%}
#app-update-status{font-size:16px;line-height:1.6;color:var(--green);font-weight:650}
@media(max-width:520px){.app-install-bar{padding:10px 16px;gap:10px}.app-install-bar small{font-size:11px}.app-install-bar .app-download{padding:10px 12px}.install-devices button{flex:1;font-size:12px}.install-help li{font-size:14px}}
@media print{.app-install-bar,.login-install{display:none!important}}

.product-store-choices{border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:0 0 20px;min-width:0}.product-store-choices legend{font-size:14px;font-weight:700;padding:0 6px}.product-store-choices .check{padding:9px;margin:3px 0;background:var(--paper);border-radius:8px;align-items:center;font-size:14px}.product-store-choices .picture-help{margin-top:10px}

.counter-expenses{margin:20px 0 26px}.counter-expense-button{display:flex;align-items:center;gap:16px;width:100%;padding:20px;text-align:left;min-height:90px}.counter-expense-button span:nth-child(2){flex:1}.counter-expense-button b{display:block;font-size:18px}.counter-expense-button small{display:block;margin-top:5px;color:var(--muted)}.counter-expenses h2{margin:20px 0 10px}.counter-expense-row{display:flex;justify-content:space-between;align-items:start;gap:15px;padding:15px;background:#fff;border-bottom:1px solid var(--line)}.counter-expense-row>div{min-width:0;overflow-wrap:anywhere}.counter-expense-row small{display:block;margin:5px 0;color:var(--muted)}.counter-expense-row strong{white-space:nowrap}.expense-channels{margin:14px 0}
dialog.demo-reset-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.demo-reset-dialog .dialog-head{flex-shrink:0}.demo-reset-dialog .dialog-body{overflow-y:auto}.demo-reset-dialog #action-form>p{margin:14px 0}

.shop-date-entry{display:flex;gap:8px;align-items:stretch;min-width:0}.shop-date-entry>input{flex:1;width:0;min-width:0}.date-calendar-control{order:-1;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;min-height:46px;min-width:108px;border:1px solid #bed0c3;border-radius:10px;background:#e9f1e9;color:#184e3d}.date-calendar-control>span{display:flex;align-items:center;gap:7px;font-weight:700;font-size:13px;pointer-events:none}.date-calendar-control input[type=date]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.date-calendar-control input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}.date-calendar-control:focus-within{outline:3px solid #e5af54;outline-offset:2px}.date-calendar-control:hover{background:#dceadd}
.delivery-camera{border:1px solid var(--line,#d9e1d8);background:#f6f8f4;border-radius:16px;padding:16px;margin:20px 0}
.delivery-camera h3{margin:0 0 8px}
.delivery-camera p{margin:8px 0 12px}
.delivery-camera-video,.delivery-camera-preview{display:block;width:100%;max-height:42dvh;min-height:140px;object-fit:contain;background:#18251c;border-radius:12px}
.delivery-camera [hidden]{display:none!important}
.delivery-camera-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.delivery-camera-buttons button{min-height:56px;flex:1 1 180px;justify-content:center;font-size:18px;font-weight:700}
.delivery-camera-buttons svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;margin-right:8px;vertical-align:middle}
.delivery-camera-status{font-weight:600}
.delivery-camera small{display:block;line-height:1.5}
.delivery-update-panel h2{margin-bottom:14px}
.delivery-update-card{padding:16px 0;border-top:1px solid #dde4dc;display:flex;align-items:center;justify-content:space-between;gap:16px}
.delivery-update-card p{margin:8px 0}
.delivery-update-card strong{color:#17523d}
.delivery-update-card .actions{flex-wrap:wrap}
.delivery-proof{display:block;max-width:100%;width:100%;max-height:50dvh;object-fit:contain;background:#eef2ed;border-radius:12px;margin:16px 0}
.delivery-proof[hidden]{display:none}
.delivery-proof-item{border:1px solid #dce4da;border-radius:12px;padding:14px;margin:12px 0}
.delivery-proof-item dl{margin:10px 0 0}
.delivery-proof-item dl div{display:flex;justify-content:space-between;gap:12px;padding:5px 0}
.delivery-proof-item dd{margin:0;text-align:right;font-weight:700}
@media(max-width:600px){.delivery-update-card{align-items:stretch;flex-direction:column}.delivery-update-card .actions button{flex:1;min-height:48px}}

.phone-notifications{margin-bottom:18px}.phone-notifications h2{font-size:20px}.phone-notifications p{margin:8px 0}.phone-notifications .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.phone-notifications button{min-height:48px}

/* Read-only sale opened from a phone notification, independent of selected store. */
.sale-notification-dialog{width:min(640px,calc(100vw - 24px))}
.sale-notification-store{font-weight:650;color:var(--muted)}
.sale-notification-customer{font-size:26px;margin:10px 0;overflow-wrap:anywhere}
.sale-notification-products{display:grid;gap:12px;margin:14px 0 22px}
.sale-notification-product{display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;padding:14px 0;border-bottom:1px solid #e5e9e7}
.sale-notification-product .product-art{width:82px;height:82px;border-radius:12px;flex-shrink:0}
.sale-notification-product b,.sale-notification-product strong,.sale-notification-product small{display:block;overflow-wrap:anywhere}
.sale-notification-product strong{margin:7px 0}
.sale-notification-totals{padding:16px;background:#f3f7f4;border-radius:12px;margin:16px 0}
.sale-notification-totals>div{display:flex;justify-content:space-between;gap:12px;margin:8px 0}
.sale-notification-totals dd{margin:0;font-weight:750;text-align:right}
.sale-notification-balance{padding-top:12px;border-top:1px solid #d5dfd8;font-size:18px}

.load-count-item .field input{font-size:24px;font-weight:700;min-height:56px;width:100%;background:#fff;border:2px solid #638777}
.load-count-item .field label{font-size:16px;font-weight:700}
.load-count-due{margin:12px 0;color:#385649}

.notification-settings summary{font-size:18px;font-weight:700;cursor:pointer;padding:12px 0}.notification-settings{margin-bottom:24px}.delivery-period-form{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.delivery-period-form .field{flex:1 1 260px;min-width:min(100%,260px)}.delivery-money-row{margin:18px 0}.delivery-money-trips{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px}.driver-earnings-summary{margin-bottom:22px}.delivery-money-row dd{white-space:nowrap}.delivery-period-form .error{width:100%}

.salary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:18px}.salary-cards .panel{min-width:0;margin:10px 0 20px}.salary-tabs{margin-bottom:18px}.salary-cards h2{overflow-wrap:anywhere}.salary-cards .section-title{flex-wrap:wrap}.salary-cards .actions{flex-wrap:wrap}

.management-store-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px clamp(18px,4vw,48px);border-bottom:1px solid #dce4da;background:#fff}.management-store-picker label{font-weight:700}.management-store-picker select{flex:1;min-width:180px;max-width:360px}.management-store-picker small{color:#52665c}.selected-store-day{margin:24px 0;scroll-margin-top:20px}.selected-store-day .stats{margin:20px 0}.selected-store-day .section-title{flex-wrap:wrap;gap:12px}

.store-day-sale{margin-top:20px}.store-day-sale h4{margin:0 0 8px;font-size:18px}

/* A store day book uses simple cards on phones and a readable timeline on laptops. */
.record-date-actions{margin-bottom:20px}.record-day-heading h2{font-size:24px;line-height:1.3}.record-day-heading p{margin-top:10px}
.record-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:16px 0}.record-days button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px}
.record-days button[aria-pressed=true],.record-filters button[aria-pressed=true]{background:var(--green,#184e3d);color:white}.record-filters{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.record-filters button{font-size:13px;padding:10px 14px}.record-count{margin:16px 0}
.daily-record{margin-bottom:16px}.daily-record-heading{display:flex;justify-content:space-between;align-items:start;gap:14px}.daily-record-heading h3{margin:5px 0 10px;font-size:20px}.daily-record-heading time{font-size:13px;white-space:nowrap}.record-customer{font-size:20px;font-weight:700;margin:6px 0 16px}.record-amount{display:flex;gap:16px;justify-content:space-between;max-width:520px;margin:14px 0}.record-amount strong{font-size:20px}
.record-items{list-style:none;padding:0;margin:14px 0}.record-items li{display:flex;align-items:center;gap:12px;padding:10px 0}.record-items li>div{display:flex;flex-direction:column;gap:4px}.record-items .product-art{width:60px;height:60px;flex-shrink:0}.record-notes{padding-left:20px;margin:12px 0}.record-notes li{white-space:pre-wrap;overflow-wrap:anywhere}.record-meta{color:var(--muted,#53665e);font-size:13px;overflow-wrap:anywhere;margin:14px 0}.record-meta p{margin:5px 0}.daily-record details{margin:14px 0}.daily-audit{margin-top:24px}.daily-audit .trace{max-height:420px;overflow:auto}.daily-record .actions:empty{display:none}
@media(max-width:650px){.daily-record-heading{flex-direction:column;gap:0}.daily-record-heading time{white-space:normal}.record-days{grid-template-columns:1fr}.record-amount{flex-direction:column;gap:4px}.record-filters button{flex-grow:1}.record-date-actions button{flex:1 1 40%}.record-day-heading h2{font-size:22px}}
.business-login-links,.business-links{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;margin:18px 0}.business-add-link{font-weight:700}.business-welcome{margin-bottom:20px}.business-welcome a{overflow-wrap:anywhere}.business-welcome h2{margin-bottom:10px}.business-welcome p{line-height:1.6}.counter-brand{min-width:0}.counter-brand b{overflow-wrap:anywhere}

.practice-banner{padding:18px 24px;background:#fff1cd;color:#714b00;font-size:15px;border-block:2px solid #e7bf60;line-height:1.5}.practice-exit{font-weight:700;text-decoration:underline}.business-welcome{margin-bottom:20px}
