@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap";.product-search-select{position:relative;display:grid;gap:6px}.product-search-select>label{font-weight:500}.product-search-select>input{width:100%;height:48px;min-width:0;border:1px solid var(--border);border-radius:7px;padding:0 12px;background:var(--surface);color:inherit;font-size:16px}.product-search-select>input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.product-search-results{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;max-height:min(320px,45vh);overflow-y:auto;margin:0;padding:4px;list-style:none;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 6px 20px #17221f29}.product-search-result{display:grid;width:100%;min-height:56px;gap:2px;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:inherit;text-align:left;cursor:pointer}.product-search-result:hover,.product-search-result[aria-selected=true]{background:color-mix(in srgb,var(--brand) 10%,var(--surface))}.product-search-result:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.product-search-result strong{font-size:16px;font-weight:600}.product-search-result span{color:var(--muted);font-size:12px}.product-search-empty{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;margin:0;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--muted);font-size:14px;box-shadow:0 6px 20px #17221f29}.export-csv-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;white-space:nowrap}.export-csv-heading{flex-wrap:wrap;gap:12px}.order-list-actions,.account-list-actions{display:flex;align-items:center;gap:8px}@media(max-width:480px){.export-csv-button,.order-list-actions,.account-list-actions{width:100%}.account-list-actions{flex-direction:column}.account-list-actions>*{width:100%}}.price-list-help{max-width:64ch;margin:0 0 16px}.price-list-create-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.price-list-create-form input,.price-list-row input{min-width:0;font-size:16px}.price-list-create-form button{min-height:48px}.price-list-empty{margin-top:16px}.price-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:12px}.price-list-row>.status{align-self:center;white-space:nowrap}.price-list-actions{display:flex;gap:8px}.price-list-actions button{min-height:44px;padding:0 12px}.price-management-options{margin-top:32px;border-top:1px solid var(--border);padding-top:24px}@media(max-width:600px){.price-list-create-form,.price-list-row{grid-template-columns:minmax(0,1fr)}.price-list-create-form button{width:100%}.price-list-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.price-list-actions button{padding:0 8px}.price-list-row>.status{justify-self:start}}.product-catalog{display:grid;gap:12px;margin-top:32px}.product-list{display:grid;gap:12px}.product-card{display:grid;gap:16px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.product-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.product-card-heading h3{margin:4px 0 8px;font-size:18px}.product-card-heading>.secondary,.product-brand-control>.secondary,.product-presentation>.secondary{flex:0 0 auto;padding:0 12px}.product-state-inactive{border:1px solid var(--border);background:var(--surface);color:var(--muted)}.product-brand-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.product-brand-control input{min-width:0}.bulk-cost-form{display:grid;gap:12px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.bulk-cost-form h3{margin-top:4px;font-size:16px}.bulk-cost-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,180px) auto;align-items:end;gap:12px}.bulk-cost-controls input,.bulk-cost-controls select{min-width:0;font-size:16px}.bulk-cost-controls button,.bulk-cost-confirmation button{min-height:44px;padding:0 12px}.bulk-cost-confirmation{display:grid;gap:12px;padding:12px;border:1px solid var(--brand);border-radius:8px}.bulk-cost-confirmation>div{display:flex;flex-wrap:wrap;gap:8px}.product-presentations{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--border)}.product-presentations h4{font-size:14px}.product-presentation{display:grid;gap:12px;padding:8px 0}.product-presentation-main{display:flex;justify-content:space-between;align-items:center;gap:12px}.product-presentation-main>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.product-cost-history{display:grid;gap:8px;padding:8px 0;border-top:1px solid var(--border)}.product-cost-current{display:flex;justify-content:space-between;align-items:center;gap:12px}.product-cost-current span,.product-cost-history summary{font-size:13px;color:var(--muted)}.product-cost-current strong{font-variant-numeric:tabular-nums}.product-cost-history details{display:grid;gap:8px}.product-cost-history summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.product-cost-history ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}.product-cost-history li{display:grid;gap:4px;padding-top:8px;border-top:1px solid var(--border)}.product-cost-history li>div{display:flex;justify-content:space-between;gap:8px;font-variant-numeric:tabular-nums}.product-cost-history li>div span,.product-cost-history li small{font-size:12px;color:var(--muted)}.product-presentation-prices{display:grid;gap:8px;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.product-presentation-prices h5{font-size:13px;font-weight:600}.product-price-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(140px,180px) auto auto;align-items:end;gap:8px;padding:8px 0;border-top:1px solid var(--border)}.product-price-list{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px}.product-price-row label{font-size:12px}.product-price-row input{min-width:0;font-size:16px;font-variant-numeric:tabular-nums}.product-price-row button{min-height:44px;padding:0 12px}.product-price-manual{color:var(--brand);background:var(--surface)}.product-price-calculated{color:var(--muted);background:var(--surface)}.product-presentation>div>span:not(.status){font-size:13px;color:var(--muted)}.product-presentation .status{font-size:12px}.product-panel .form-grid>label{grid-template-rows:minmax(0,1fr) 48px}.product-panel .form-grid>label>span{line-height:1.35}.product-panel .form-grid input{min-width:0}.product-pack-options{display:grid;gap:12px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.product-pack-toggle{min-height:44px;display:flex;align-items:center;gap:10px}.product-pack-toggle input{width:20px;height:20px;margin:0;accent-color:var(--brand)}.product-pack-toggle span{font-size:14px}.product-pack-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.product-pack-preview{margin:0;color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums}@media(max-width:480px){.product-card-heading{flex-direction:column}.product-card-heading>.secondary,.product-brand-control>.secondary,.product-presentation>.secondary{width:100%}.product-brand-control{grid-template-columns:1fr}.bulk-cost-controls{grid-template-columns:minmax(0,1fr)}.bulk-cost-controls button,.bulk-cost-confirmation button{width:100%}.product-cost-history li>div{align-items:flex-start;flex-direction:column;gap:4px}.product-presentation-main{align-items:flex-start;flex-direction:column}.product-presentation-main>.secondary,.product-price-row button{width:100%}.product-presentation-main>div{align-items:flex-start;flex-direction:column;gap:4px}.product-price-row{grid-template-columns:minmax(0,1fr)}.product-price-list{min-height:0}}.account-list-heading{align-items:center;gap:12px}.account-toggle-accounts,.account-empty-action{min-height:44px;padding:0 12px}.account-list-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.account-list-filters label{display:grid;gap:6px;min-width:0;font-size:14px;font-weight:600}.account-list-filters select{width:100%;min-width:0;min-height:48px;border:1px solid #b9c9c1;border-radius:7px;padding:0 10px;background:#fff;color:#17221f;font-size:16px}.account-empty-action{display:block;width:fit-content;margin-top:12px;margin-right:auto;margin-left:auto}@media(max-width:480px){.account-list-heading{align-items:flex-start;flex-direction:column}.account-toggle-accounts{padding:0 10px;font-size:13px}.account-list-heading .account-list-actions,.account-list-heading .account-list-actions .export-file-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.account-list-heading .account-list-actions .export-file-actions>*,.account-list-heading .account-list-actions .account-toggle-accounts{width:100%}.account-list-filters{gap:8px}}.statistics-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.statistics-report-section{display:grid;align-content:start;gap:12px;min-width:0;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.statistics-report-section .section-heading{margin:0}.statistics-period-list{display:grid;gap:12px}.statistics-period-row{display:grid;gap:6px;padding-bottom:10px;border-bottom:1px solid var(--border)}.statistics-period-row:last-child{padding-bottom:0;border-bottom:0}.statistics-period-heading,.statistics-period-detail{display:flex;justify-content:space-between;gap:12px;font-variant-numeric:tabular-nums}.statistics-period-heading{font-size:14px}.statistics-period-detail{color:var(--muted);font-size:12px}.statistics-period-detail strong{color:var(--brand)}.statistics-period-bar{height:7px;overflow:hidden;border-radius:4px;background:var(--border)}.statistics-period-bar span{display:block;height:100%;border-radius:inherit;background:var(--brand)}.statistics-ranking-list{display:grid;gap:0;margin:0;padding:0;list-style:none}.statistics-ranking-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:10px 0;border-bottom:1px solid var(--border)}.statistics-ranking-list li:last-child{border-bottom:0}.statistics-ranking-list li>div{display:grid;gap:4px;min-width:0}.statistics-ranking-list li>div>strong{overflow-wrap:anywhere}.statistics-ranking-list small{color:var(--muted);font-size:12px;line-height:1.4}.statistics-ranking-list li>strong{flex:none;font-variant-numeric:tabular-nums;white-space:nowrap}.statistics-inventory-report{grid-column:1 / -1}.statistics-inventory-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.statistics-inventory-totals>div{display:grid;gap:4px;padding:12px;border:1px solid var(--border);border-radius:7px}.statistics-inventory-totals span{color:var(--muted);font-size:13px}.statistics-inventory-totals strong{font-size:20px;font-variant-numeric:tabular-nums}@media(max-width:600px){.statistics-report-grid{grid-template-columns:minmax(0,1fr)}.statistics-report-section{padding:12px}.statistics-inventory-report{grid-column:auto}}.statistics-panel .statistics-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.statistics-financial-note{margin:0 0 16px}.statistics-net-profit strong{color:var(--brand)}.statistics-expenses{display:grid;gap:16px;margin-bottom:20px;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.statistics-expenses .section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0}.statistics-expense-count{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}.operating-expense-form{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(140px,1fr) minmax(220px,2fr) minmax(130px,.8fr) auto;align-items:end;gap:12px}.operating-expense-form label{display:grid;gap:6px;min-width:0;color:var(--muted);font-size:13px}.operating-expense-form input,.operating-expense-form select{width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:inherit;font:inherit;font-size:16px}.operating-expense-submit{min-height:44px;white-space:nowrap}.operating-expense-status{margin:0;color:var(--brand);font-size:14px}.operating-expense-list{display:grid}.operating-expense-row{display:flex;justify-content:space-between;align-items:center;gap:16px;min-width:0;padding:12px 0;border-top:1px solid var(--border)}.operating-expense-row>div{display:grid;gap:4px;min-width:0}.operating-expense-row>div>strong{overflow-wrap:anywhere}.operating-expense-row small{color:var(--muted);font-size:12px;line-height:1.4}.operating-expense-row>strong{flex:none;font-variant-numeric:tabular-nums;white-space:nowrap}.operating-expense-empty{margin:0}@media(max-width:900px){.statistics-panel .statistics-summary,.operating-expense-form{grid-template-columns:repeat(2,minmax(0,1fr))}.operating-expense-form label:nth-child(3){grid-column:1 / -1}.operating-expense-submit{justify-self:start}}@media(max-width:600px){.statistics-expenses{padding:12px}.operating-expense-row{align-items:flex-start;gap:8px}.operating-expense-row>strong{font-size:14px}}.audit-panel{display:grid;gap:20px}.audit-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.audit-filters input{width:100%;min-width:0;height:48px;border:1px solid var(--border);border-radius:7px;padding:0 10px;background:var(--surface);color:inherit;font-size:16px}.audit-apply{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px}.audit-results{display:grid;gap:12px}.audit-results .section-heading{margin:0}.audit-count{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.audit-note{margin:0;font-size:13px}.audit-list{display:grid;margin:0;padding:0;list-style:none}.audit-event{display:grid;gap:8px;min-width:0;padding:14px 0;border-top:1px solid var(--border)}.audit-event-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.audit-event-heading>div{display:grid;gap:6px;min-width:0}.audit-event-heading strong{overflow-wrap:anywhere;font-size:15px}.audit-entity{width:fit-content;padding:3px 7px;border:1px solid var(--border);border-radius:6px;color:var(--brand);font-size:12px;font-weight:700}.audit-event time{flex:none;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.audit-actor{margin:0;color:var(--muted);font-size:13px}.audit-actor strong{color:inherit}.audit-details summary{display:inline-flex;align-items:center;min-height:44px;color:var(--brand);font-size:13px;font-weight:700;cursor:pointer}.audit-details dl{display:grid;gap:8px;margin:0;padding:12px;border-radius:7px;background:var(--surface)}.audit-details dl>div{display:grid;grid-template-columns:minmax(120px,.6fr) minmax(0,1fr);gap:12px;font-size:13px}.audit-details dt{color:var(--muted)}.audit-details dd{min-width:0;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.audit-empty{margin-top:4px}@media(max-width:600px){.audit-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.audit-apply{grid-column:1 / -1}.audit-event-heading{display:grid;gap:6px}.audit-details dl>div{grid-template-columns:minmax(95px,.7fr) minmax(0,1fr);gap:8px}}.users-panel-note{margin:-4px 0 14px;font-size:14px;line-height:1.45}.user-admin-row{align-items:flex-start}.user-admin-details{min-width:0;display:grid;gap:4px}.user-admin-details h3{margin:2px 0 0;overflow-wrap:anywhere}.user-admin-details p{overflow-wrap:anywhere}.user-admin-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none}.user-admin-actions button{min-width:96px;padding:0 12px}.user-admin-actions button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:480px){.user-admin-actions{width:100%}.user-admin-actions button{flex:1}}.admin-more-menu{max-height:calc(100vh - 100px);overflow-y:auto}.delivery-receipt{width:100%;max-width:760px}.receipt-date{margin:6px 0 16px;font-size:14px}.receipt-details,.receipt-totals{display:grid;gap:8px;margin:0}.receipt-details>div,.receipt-totals>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}.receipt-details dt,.receipt-totals dt{color:var(--muted);font-size:14px}.receipt-details dd,.receipt-totals dd{margin:0;text-align:right;font-weight:600}.receipt-items-heading{margin-top:18px;font-size:14px;font-weight:700}.receipt-items{list-style:none;padding:0;margin:8px 0 16px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.receipt-items li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;font-size:14px}.receipt-items strong,.receipt-totals dd{font-variant-numeric:tabular-nums}.receipt-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:20px}.receipt-actions .primary,.receipt-actions .secondary{min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.receipt-share-notice{font-size:14px;line-height:1.45;color:var(--muted)}@media(min-width:700px){.receipt-backdrop{align-items:center}.delivery-receipt{border-radius:8px}}.seller-session-actions{display:flex;align-items:center;gap:8px}.sync-status{display:flex;align-items:center;gap:7px;min-height:36px;padding:0 10px;border:1px solid var(--border);border-radius:7px;font-size:12px;font-weight:700;white-space:nowrap}.sync-status-dot{width:8px;height:8px;flex:none;border-radius:50%;background:var(--brand)}.sync-connected{color:var(--brand)}.sync-disconnected{border-color:#d6bd78;background:#fff8e6;color:#644b00}.sync-disconnected .sync-status-dot{background:#a87900}.sync-status .sync-status-dot{display:block}.icon-button:disabled{opacity:.55;cursor:not-allowed}.offline-sync-message{margin:0 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:7px;background:var(--surface);font-size:14px;line-height:1.45}.offline-queue{margin:0 0 20px;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.offline-queue .section-heading{margin-bottom:8px}.offline-queue>p{font-size:14px;line-height:1.45}.offline-queue ul{display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none}.offline-queue li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--border)}.offline-queue li>div:first-child{display:grid;gap:4px;min-width:0}.offline-queue li strong{font-size:14px;overflow-wrap:anywhere}.offline-operation-state{font-size:12px;color:var(--warning);font-weight:600}.offline-operation-blocked{color:#a7352d}.offline-operation-actions{display:flex;flex-wrap:wrap;gap:8px}.offline-operation-actions button{min-height:44px;padding:0 12px}.offline-sync-message.error{border-color:#d9aaa5;background:#fff5f4}@media(max-width:480px){.topbar{gap:8px;padding:16px 12px 12px}.topbar h1{font-size:20px}.seller-session-actions{gap:6px}.sync-status{max-width:170px;padding:0 8px;font-size:11px}.sync-status span:last-child{overflow:hidden;text-overflow:ellipsis}.offline-queue{padding:12px}.offline-queue li{align-items:flex-start;flex-direction:column}.offline-operation-actions{width:100%}.offline-operation-actions button{flex:1}}:root{font-family:DM Sans,sans-serif;color:#17221f;background:#f5f7f5;font-size:16px;--brand: #17624f;--border: #d9e2dd;--muted: #60706a;--surface: #fff;--warning: #785b00 }*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin:0}.muted{color:var(--muted)}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.login-panel{width:min(100%,400px);background:var(--surface);border:1px solid var(--border);padding:32px;border-radius:10px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;background:var(--brand);color:#fff;border-radius:8px;font-size:22px;font-weight:700;margin-bottom:28px}.login-panel h1{font-size:28px;line-height:1.15;margin:8px 0}.login-panel .muted{line-height:1.5;margin-bottom:28px}form{display:grid;gap:16px}label{display:grid;gap:7px;font-size:14px;font-weight:600}input{width:100%;height:48px;border:1px solid #b9c9c1;border-radius:7px;padding:0 14px;background:#fff;color:#17221f;font-size:16px}input:focus{outline:2px solid #9bc7b9;border-color:var(--brand)}.primary{height:48px;border:0;border-radius:7px;background:var(--brand);color:#fff;font-weight:700}.primary:disabled{opacity:.65}.full{width:100%}.error{color:#a7352d;font-size:14px}.session-note{margin-top:24px;color:var(--muted);font-size:12px;line-height:1.4}.app-shell{min-height:100vh;padding-bottom:76px}.topbar{max-width:760px;margin:auto;padding:24px 20px 12px;display:flex;justify-content:space-between;align-items:center}.topbar h1{font-size:28px}.icon-button{width:44px;height:44px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--brand);display:grid;place-items:center}.content{max-width:760px;margin:auto;padding:8px 20px}.date{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:20px}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:32px}.metric{background:var(--surface);border:1px solid var(--border);padding:16px;border-radius:8px;display:grid;gap:5px}.metric span,.metric small{font-size:13px;color:var(--muted)}.metric strong{font-size:24px;font-variant-numeric:tabular-nums}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-heading h2{font-size:20px;margin-top:4px}.empty-state{border:1px dashed #b9c9c1;border-radius:8px;padding:32px 20px;text-align:center;color:var(--muted)}.empty-state svg{color:var(--brand);margin-bottom:14px}.empty-state h3{color:#17221f;font-size:16px;margin-bottom:8px}.empty-state p{font-size:14px;line-height:1.5;max-width:340px;margin:auto}.visit-list{display:grid;gap:12px}.visit-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:16px}.visit-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.visit-header h3{font-size:18px;margin-bottom:5px}.visit-header p{display:flex;align-items:center;gap:5px;font-size:14px}.status{border-radius:99px;font-size:12px;font-weight:700;padding:5px 8px;white-space:nowrap}.status-pending{background:#fff3d4;color:#785b00}.status-in_delivery{background:#dceeff;color:#13527c}.status-delivered{background:#dcefe5;color:#17624f}.amount{display:block;font-size:28px;font-variant-numeric:tabular-nums;margin-top:20px}.amount-label{font-size:12px;color:var(--muted)}.items{border-top:1px solid var(--border);border-bottom:1px solid var(--border);list-style:none;padding:10px 0;margin:14px 0}.items li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px}.items li span{color:var(--muted);font-variant-numeric:tabular-nums}.visit-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.secondary,.deliver{min-height:44px;border-radius:7px;display:flex;justify-content:center;align-items:center;gap:6px;font-weight:600}.secondary{border:1px solid var(--border);background:var(--surface);color:var(--brand)}.deliver{grid-column:1 / -1}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:68px;background:#fffffff7;border-top:1px solid var(--border);display:flex;justify-content:center;gap:10px;padding:8px 12px}.bottom-nav button{flex:1;max-width:150px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;gap:2px;font-size:12px}.bottom-nav .nav-active{color:var(--brand);font-weight:700}.loading{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:10px;color:var(--muted)}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:600px){.login-panel{padding:40px}.topbar{padding-top:40px}}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#17221f61;display:flex;align-items:flex-end;z-index:10}.bottom-sheet{width:100%;max-width:760px;margin:auto;background:var(--surface);border-radius:12px 12px 0 0;padding:12px 20px 24px;box-shadow:0 -8px 30px #17221f29}.sheet-handle{width:40px;height:4px;border-radius:99px;background:#b9c9c1;margin:0 auto 20px}.bottom-sheet h2{font-size:22px;margin:6px 0}.bottom-sheet>.muted{font-size:14px;line-height:1.4}.delivery-items{list-style:none;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px 0;margin:18px 0}.delivery-items li{display:flex;justify-content:space-between;padding:7px 0;font-size:15px}.payment-actions{display:grid;gap:8px}.payment-actions button{min-height:48px}.payment-actions .secondary{width:100%}.partial-field{font-size:14px;margin-bottom:12px}.partial-field input{margin-top:7px}.inventory-tabs{display:flex;gap:8px;overflow-x:auto;border-bottom:1px solid var(--border);margin:0 0 20px;padding-bottom:8px}.inventory-tabs button{min-height:44px;padding:0 14px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--muted);font-weight:600;white-space:nowrap}.inventory-tabs button.nav-active{border-color:var(--brand);color:var(--brand);background:#eef4f0}.purchase-line{display:grid;gap:10px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.purchase-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding:12px 0;font-weight:600}.purchase-total strong,.supplier-balance strong{font-variant-numeric:tabular-nums}.check-label{display:flex;align-items:center;gap:10px;min-height:44px}.check-label input{width:20px;height:20px;margin:0;accent-color:var(--brand)}.inventory-add-line{padding:0 12px}.supplier-actions{display:flex;flex-wrap:wrap;gap:8px}.supplier-payment-form{margin:28px 0 0;padding-top:24px;border-top:1px solid var(--border)}.supplier-balance{margin-top:8px;font-size:14px}.movement-row .order-row-main{align-items:center}.movement-positive{color:var(--brand)}.movement-negative{color:#a7352d}.inventory-panel textarea{width:100%;border:1px solid #b9c9c1;border-radius:7px;padding:10px 12px;background:#fff;color:#17221f;font:inherit;font-size:16px;resize:vertical}.admin-more-menu{position:fixed;right:12px;bottom:76px;z-index:5;display:grid;gap:4px;min-width:190px;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #17221f24}.admin-more-menu button{min-height:44px;display:flex;align-items:center;gap:10px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:var(--brand);font-weight:600;text-align:left}.admin-nav button{min-width:0}.bottom-sheet{max-height:90vh;overflow-y:auto;overscroll-behavior:contain}.delivery-item-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:12px;border-bottom:1px solid var(--border);padding:12px 0!important}.delivery-item-info{display:grid;gap:4px;min-width:0}.delivery-item-info strong{font-size:15px}.delivery-item-info span,.delivery-quantity-control>span{font-size:12px;color:var(--muted)}.delivery-quantity-control{display:grid;gap:5px}.delivery-quantity-control>div{display:grid;grid-template-columns:44px 68px 44px;gap:4px}.delivery-quantity-control input{height:44px;text-align:center;padding:0 4px;font-variant-numeric:tabular-nums}.quantity-stepper{width:44px;min-height:44px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--brand);font-size:20px;font-weight:600}.quantity-stepper:disabled{opacity:.45}.delivery-total{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:14px}.delivery-total strong{font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}@media(max-width:380px){.delivery-item-row{grid-template-columns:1fr}.delivery-quantity-control{grid-template-columns:1fr auto;align-items:center}.delivery-quantity-control>span{font-size:14px}}.visit-statuses{display:grid;justify-items:end;gap:4px}.status-overdue{background:#fff3d4;color:var(--warning)}.client-balance{margin-top:8px;color:var(--warning);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.visit-actions-with-debt .deliver{grid-column:auto}.debt-action{padding:0 10px;font-size:14px}.bottom-sheet select{width:100%;height:48px;border:1px solid var(--border);border-radius:7px;padding:0 12px;background:var(--surface);color:#17221f;font-size:16px}.debt-payment-form{margin-top:16px}.stock-list{display:grid;gap:8px;padding-top:20px}.stock-row{display:flex;justify-content:space-between;gap:16px;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:14px 16px}.stock-code{font-size:12px;color:var(--brand);font-weight:700;letter-spacing:.06em}.stock-row h3{font-size:16px;margin:3px 0}.stock-row p{font-size:13px}.stock-values{text-align:right;display:grid;gap:4px}.stock-values strong{font-size:22px;font-variant-numeric:tabular-nums}.stock-values span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.stock-alert{color:#785b00!important;font-weight:700}.minimum-stock-control{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}.minimum-stock-control label{font-size:12px;text-align:left}.minimum-stock-control input{width:100px;height:44px;padding:0 8px;font-variant-numeric:tabular-nums}.minimum-stock-control button{padding:0 10px;font-size:13px}.shortage-report{display:grid;gap:24px}.shortage-purchase-button{min-height:44px;padding:0 14px}.shortage-values{display:grid;gap:4px;text-align:right}.shortage-values strong{font-size:16px}.shortage-values span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.shortage-values .stock-alert{color:#785b00}.shortage-report .admin-order-row{padding:14px}.shortage-report .order-row-main{align-items:flex-start}.shortage-report .order-row-main>strong{font-size:14px;text-align:right;white-space:nowrap}@media(max-width:480px){.stock-row{align-items:flex-start;flex-direction:column}.stock-values,.shortage-values{text-align:left}.minimum-stock-control{justify-content:flex-start;flex-wrap:wrap}.minimum-stock-control label{width:100%}.shortage-purchase-button{padding:0 10px;font-size:13px}.shortage-report .order-row-main{flex-direction:column;gap:8px}.shortage-report .order-row-main>strong{text-align:left}.stock-row .shortage-values{width:100%}}.locality-info{min-width:0}.locality-status{color:var(--muted);font-size:13px}.locality-actions{display:flex;flex-wrap:wrap;gap:8px}.locality-actions button,.locality-edit-form button{min-height:44px;padding:0 12px}.locality-edit-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:end;gap:8px;width:100%}.locality-edit-form label{display:grid;gap:6px;min-width:0;font-size:14px;font-weight:600}.locality-edit-form input{width:100%;min-height:44px;border:1px solid #b9c9c1;border-radius:7px;padding:0 12px;background:#fff;color:#17221f;font-size:16px}@media(max-width:480px){.locality-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.locality-edit-form{grid-template-columns:1fr 1fr}.locality-edit-form label{grid-column:1/-1}.locality-edit-form button{padding:0 8px;font-size:14px}}.order-section{margin-top:32px;border-top:1px solid var(--border);padding-top:24px}.order-form{display:grid;gap:12px}.order-form>label{min-width:0}.order-form select{width:100%;height:48px;border:1px solid #b9c9c1;border-radius:7px;padding:0 12px;background:#fff;color:#17221f;font-size:16px}.order-form input[type=date]{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;margin:0}.order-form input[readonly]{background:#eef4f0;color:var(--brand);font-weight:700}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.success{color:var(--brand);font-size:14px}.seller-order-suggestions{display:grid;gap:10px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--border)}.seller-order-suggestions>p{font-size:14px;line-height:1.45}.seller-order-suggestions .primary{display:flex;align-items:center;justify-content:center;gap:8px}.seller-order-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.seller-order-actions button{min-height:44px;padding:0 12px}.seller-order-actions .muted{align-self:center;font-size:13px}.admin-overview{display:grid;gap:24px}.quick-actions{display:grid;gap:10px}.quick-actions button{justify-content:flex-start;padding:0 16px}.admin-nav{gap:4px;overflow-x:auto;justify-content:flex-start}.admin-nav button{min-width:0;max-width:180px}.dashboard-heading{margin-bottom:0}.dashboard-metrics{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:0}.dashboard-metrics .metric{min-width:0;padding:14px}.dashboard-metrics .metric strong{font-size:20px;overflow-wrap:anywhere}.dashboard-metrics .metric small{line-height:1.35}.dashboard-review{display:grid;gap:12px}.dashboard-review .section-heading{margin:0}.dashboard-alert-list{display:grid;gap:8px}.dashboard-alert{width:100%;min-height:60px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:inherit;text-align:left}.dashboard-alert>span,.dashboard-alert>span>span{display:flex;align-items:center;gap:10px;min-width:0}.dashboard-alert>span>span{display:grid;gap:3px}.dashboard-alert>span>svg,.dashboard-alert>svg{flex:none;color:var(--brand)}.dashboard-alert strong{font-size:14px}.dashboard-alert small{color:var(--muted);font-size:12px;line-height:1.35}.dashboard-clear{padding:20px}.dashboard-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-retry{padding:0 16px}.dashboard-skeleton-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.dashboard-skeleton{min-height:112px;display:grid;align-content:start;gap:12px;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.dashboard-skeleton span,.dashboard-skeleton strong,.dashboard-skeleton small{display:block;border-radius:4px;background:#e8eeea}.dashboard-skeleton span{width:60%;height:12px}.dashboard-skeleton strong{width:85%;height:22px}.dashboard-skeleton small{width:72%;height:12px}@media(max-width:699px){.dashboard-metrics,.dashboard-skeleton-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-quick-actions{grid-template-columns:1fr}}.statistics-panel{display:grid;gap:24px}.statistics-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.statistics-filters label:nth-of-type(n+3),.statistics-apply{grid-column:1/-1}.statistics-filters input,.statistics-filters select{width:100%;min-width:0;height:48px;border:1px solid #b9c9c1;border-radius:7px;padding:0 10px;background:#fff;color:#17221f;font-size:16px}.statistics-apply{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px}.statistics-loading{font-size:14px}.statistics-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:0}.statistics-summary .metric{min-width:0;padding:14px}.statistics-summary .metric strong{font-size:20px;overflow-wrap:anywhere}.statistics-summary .metric small{line-height:1.35}.statistics-skeleton-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.statistics-breakdown{display:grid;gap:10px}.statistics-breakdown .section-heading{margin:0}.statistics-note{font-size:13px}.statistics-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.statistics-table{width:100%;border-collapse:collapse;font-size:14px}.statistics-table th,.statistics-table td{padding:12px;border-bottom:1px solid var(--border);text-align:left}.statistics-table th{font-size:12px;color:var(--muted);font-weight:700}.statistics-table td:not(:first-child),.statistics-table th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.statistics-table td:first-child{min-width:180px}.statistics-table td:first-child strong,.statistics-table td:first-child small,.statistics-table td:last-child strong,.statistics-table td:last-child small{display:block}.statistics-table td small{margin-top:3px;color:var(--muted);font-size:12px}.statistics-table tbody tr:last-child td{border-bottom:0}@media(min-width:700px){.statistics-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.statistics-filters label:nth-of-type(n+3){grid-column:auto}}@media(max-width:600px){.statistics-filters{padding:12px}.statistics-summary,.statistics-skeleton-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-table thead{display:none}.statistics-table,.statistics-table tbody,.statistics-table tr,.statistics-table td{display:block;width:100%}.statistics-table tbody tr{padding:4px 12px;border-bottom:1px solid var(--border)}.statistics-table tbody tr:last-child{border-bottom:0}.statistics-table td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;text-align:right!important}.statistics-table td:first-child{display:block;min-width:0;text-align:left!important}.statistics-table td:first-child:before{display:none}.statistics-table td:not(:first-child):before{content:attr(data-label);color:var(--muted);font-size:12px;text-align:left}.statistics-table td:last-child strong,.statistics-table td:last-child small{display:inline}.statistics-table td:last-child small{white-space:nowrap}}.order-list-section{margin-top:32px;border-top:1px solid var(--border);padding-top:24px}.order-filters{display:grid;gap:8px;margin-bottom:14px}.order-filters select{height:48px;border:1px solid #b9c9c1;border-radius:7px;padding:0 12px;background:#fff;color:#17221f;font-size:16px}.search-field{height:48px;display:flex;align-items:center;gap:8px;border:1px solid #b9c9c1;border-radius:7px;padding:0 12px;background:#fff;color:var(--muted)}.search-field input{height:44px;border:0;padding:0;outline:0}.admin-order-list{display:grid;gap:8px}.admin-order-row{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:14px 16px}.order-row-main{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.order-row-main h3{font-size:17px;margin:3px 0}.order-row-main p{font-size:13px}.order-row-detail{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--border);margin-top:12px;padding-top:10px;font-size:13px}.order-row-detail strong{white-space:nowrap;font-variant-numeric:tabular-nums}@media(min-width:600px){.order-filters{grid-template-columns:1fr 220px}}.status-select{min-height:36px;border:1px solid var(--border);border-radius:99px;padding:0 8px;font-size:12px;font-weight:700;color:inherit;background:var(--surface)}.order-line{border:1px solid var(--border);border-radius:8px;padding:12px;display:grid;gap:10px}.remove-line{align-self:end}.order-summary{border:1px solid var(--border);border-radius:8px;background:#eef4f0;padding:14px 16px}.order-summary h3{font-size:16px;margin-top:3px}.order-summary .section-heading{margin-bottom:8px}.order-summary ul{list-style:none;padding:0;margin:0;border-top:1px solid var(--border)}.order-summary li{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border);font-size:13px}.order-summary li:last-child{border-bottom:0}.order-summary strong{font-variant-numeric:tabular-nums;white-space:nowrap}.remove-summary-item{border:0;background:transparent;color:#a7352d;font-size:12px;padding:6px}.remove-summary-item:disabled{visibility:hidden}.success-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#17221f73;display:grid;place-items:center;padding:20px}.success-modal{width:min(100%,400px);display:grid;justify-items:center;gap:14px;text-align:center;padding:28px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 40px #17221f2e}.success-modal>svg{color:var(--brand)}.success-modal h2{font-size:20px}.success-modal p{color:var(--muted);line-height:1.45}.success-modal button{margin-top:4px}@media(max-width:600px){.success-modal-backdrop{align-items:end;padding:0}.success-modal{width:100%;border-radius:12px 12px 0 0;padding:24px 20px max(24px,env(safe-area-inset-bottom))}}.account-back{padding:0 12px;margin-bottom:16px}.account-heading h2{margin:4px 0}.account-heading .muted{font-size:14px;margin-top:6px}.account-summary{margin-top:16px}.account-summary .metric strong{font-size:22px}.account-ledger{margin-top:28px}.account-client-list{margin-top:12px}.account-client-row{width:100%;min-height:68px;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:inherit;text-align:left}.account-client-row>span:first-child{display:grid;gap:3px;min-width:0}.account-client-row strong{font-size:16px}.account-client-row small{color:var(--muted);font-size:12px}.account-client-balance{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.account-ledger-row .order-row-main{align-items:center}.account-entry-type{display:inline-block;margin-bottom:4px;padding:3px 7px;border-radius:99px;font-size:12px;font-weight:700}.account-entry-debit{background:#fff3d4;color:#785b00}.account-entry-payment{background:#dcefe5;color:#17624f}.account-entry-debit-amount{color:var(--warning)}.account-ledger-row .order-row-main h3{margin:0 0 3px}.account-ledger-row .order-row-main p{font-size:12px}.account-ledger-row .order-row-main>strong{font-variant-numeric:tabular-nums;white-space:nowrap}.account-note{margin-top:10px;color:var(--muted);font-size:13px}.account-search{margin:12px 0}.account-search input{min-width:0}@media(max-width:480px){.account-client-row{align-items:flex-start}.account-client-balance{font-size:14px}.account-summary .metric{padding:12px}.account-summary .metric strong{font-size:19px}.account-ledger-row .order-row-main{align-items:flex-start}.account-ledger-row .order-row-main>strong{font-size:14px}}.account-entry-form{display:grid;gap:12px;margin-top:20px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.account-entry-form .section-heading{margin:0 0 4px}.account-entry-form .section-heading h3{font-size:16px;margin-top:4px}.account-entry-form .section-heading .muted{font-size:13px;margin-top:6px}.account-entry-form input,.account-entry-form select{min-height:48px}.account-credit-balance{color:var(--brand)}@media(max-width:480px){.account-entry-form{padding:12px}}.account-return-trigger{margin-top:12px;padding:0 14px;gap:8px}.account-return-form{display:grid;gap:12px;margin-top:16px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.account-return-form .section-heading{margin:0 0 4px}.account-return-form .section-heading h3{font-size:16px;margin-top:4px}.account-return-form .section-heading .muted{font-size:13px;margin-top:6px}.account-return-form select,.account-return-form input{width:100%;min-height:48px;border:1px solid #b9c9c1;border-radius:7px;padding:0 12px;background:#fff;color:#17221f;font-size:16px}.account-return-item{display:grid;gap:10px;padding:12px;border:1px solid var(--border);border-radius:7px}.account-return-item>div:first-child{display:grid;gap:4px}.account-return-item small{color:var(--muted);font-size:13px}.account-return-item label{font-size:14px}.account-return-line-total{font-weight:700;color:var(--brand)!important;font-variant-numeric:tabular-nums}.account-return-total{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid var(--border);font-weight:600}.account-return-total strong{font-variant-numeric:tabular-nums}.account-return-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}.account-return-actions button{min-height:48px}@media(max-width:480px){.account-return-form{padding:12px}}.dispatch-note{font-size:13px;margin-top:6px}.dispatch-filters{display:grid;gap:12px;margin:12px 0 18px}.dispatch-filters input,.dispatch-filters select{height:48px;border:1px solid #b9c9c1;border-radius:7px;padding:0 12px;background:#fff;color:#17221f;font-size:16px}.dispatch-summary{margin:8px 0 16px}.dispatch-summary .metric strong{font-size:20px}.dispatch-order-list .admin-order-row{padding:14px}.dispatch-order-list .order-row-main{align-items:center}.dispatch-order-list .items{margin:10px 0 0}.dispatch-order-list .items li{align-items:flex-start}.dispatch-order-list .items li span:last-child{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}@media(min-width:700px){.dispatch-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:480px){.dispatch-order-list .order-row-main{align-items:flex-start;flex-direction:column}.dispatch-order-list .order-row-detail{flex-direction:column;gap:4px}.dispatch-order-list .order-row-detail strong{white-space:normal}.dispatch-order-list .items li{display:grid;grid-template-columns:1fr;gap:4px}.dispatch-order-list .items li span:last-child{text-align:left}}.dispatch-load{margin:8px 0 24px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.dispatch-load .section-heading{margin-bottom:4px}.dispatch-load h3{font-size:18px}.dispatch-load .section-heading>strong{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}.dispatch-load-list{list-style:none;padding:0;margin:12px 0 0}.dispatch-load-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--border)}.dispatch-load-list li>div{display:grid;gap:3px;min-width:0}.dispatch-load-list li>div:last-child{text-align:right}.dispatch-load-list li span,.dispatch-load-list li small{font-size:13px;color:var(--muted)}.dispatch-load-list li strong{font-variant-numeric:tabular-nums}.dispatch-load-empty{padding-top:10px;font-size:14px}.dispatch-route-note{font-size:13px;margin:12px 0}.dispatch-order-actions{display:flex;align-items:center;gap:8px}.dispatch-move-controls{display:flex;gap:4px}.dispatch-move-controls .icon-button{width:44px;height:44px}@media(max-width:480px){.dispatch-load{padding:12px}.dispatch-load .section-heading>strong{font-size:12px}.dispatch-load-list li{align-items:flex-start}.dispatch-order-actions{width:100%;justify-content:space-between}}.dispatch-print-heading{display:none}.dispatch-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.dispatch-actions .secondary{min-height:44px;padding:0 12px;gap:8px;text-decoration:none}.dispatch-total{border-color:var(--brand)}.dispatch-total strong{color:var(--brand)}.dispatch-order-balances{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0}.dispatch-order-balances>div{display:grid;gap:4px;min-width:0}.dispatch-order-balances span{font-size:12px;color:var(--muted)}.dispatch-order-balances strong{font-variant-numeric:tabular-nums}@media(max-width:480px){.dispatch-actions{display:grid;grid-template-columns:1fr}.dispatch-actions .secondary{justify-content:center}.dispatch-order-balances{grid-template-columns:1fr 1fr}.dispatch-order-balances>div:last-child{grid-column:1/-1}}@media print{@page{margin:12mm}body *{visibility:hidden!important}.dispatch-panel,.dispatch-panel *{visibility:visible!important}.dispatch-panel{position:absolute!important;inset:0 auto auto 0!important;width:100%!important;margin:0!important;padding:0!important;color:#111!important}.dispatch-print-heading{display:block;margin-bottom:16px}.dispatch-print-heading h1{font-size:20px}.dispatch-print-heading p{margin-top:4px;font-size:12px}.dispatch-panel>.section-heading,.dispatch-filters,.dispatch-actions,.dispatch-route-note,.dispatch-move-controls,.dispatch-panel>.error,.dispatch-panel>.loading{display:none!important}.dispatch-summary{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}.dispatch-summary .metric,.dispatch-load,.dispatch-order-list article{background:#fff!important;border-color:#aaa!important;break-inside:avoid}.dispatch-load{padding:10px}.dispatch-order-list{display:grid;gap:8px}.dispatch-order-balances{color:#111}.dispatch-order-balances span,.dispatch-panel .muted,.dispatch-panel .items li span{color:#333!important}.dispatch-panel .items{border-color:#aaa}.dispatch-panel .status{border:1px solid #777;background:#fff!important;color:#111!important}}.clients-panel textarea{width:100%;min-height:96px;border:1px solid #b9c9c1;border-radius:7px;padding:10px 12px;background:#fff;color:#17221f;font:inherit;font-size:16px;resize:vertical}.client-visit-days{margin:0;padding:12px;border:1px solid var(--border);border-radius:8px;min-width:0}.client-visit-days legend{padding:0 4px;font-size:14px;font-weight:600}.client-visit-day-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px}.client-visit-day-options label{min-height:44px;display:flex;align-items:center;gap:8px;padding:4px 8px;border:1px solid var(--border);border-radius:6px;background:var(--surface);font-size:14px}.client-visit-day-options input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--brand)}.client-profile-detail{margin-top:5px;font-size:13px;line-height:1.45;overflow-wrap:anywhere}@media(min-width:700px){.client-visit-day-options{grid-template-columns:repeat(4,minmax(0,1fr))}}.cash-closing-panel{display:grid;gap:12px}.cash-heading{align-items:flex-end}.cash-heading h2{margin-top:4px}.cash-date{font-size:14px;text-transform:capitalize}.cash-date-filter{min-width:170px}.cash-date-filter input{margin-top:4px}.cash-card,.cash-seller-row{display:grid;gap:14px;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.cash-status-line{display:flex;justify-content:space-between;align-items:center;gap:12px}.cash-status-line h3{margin-top:4px;font-size:18px}.cash-status-line .muted{margin-top:4px;font-size:13px}.cash-state{flex:none;padding:5px 9px;border-radius:99px;font-size:12px;font-weight:700}.cash-state-closed{background:#dcefe5;color:#17624f}.cash-state-open{background:#fff3d4;color:#785b00}.cash-closed-at{font-size:13px}.cash-reconciliation{display:grid;border-top:1px solid var(--border);font-variant-numeric:tabular-nums}.cash-reconciliation-heading,.cash-reconciliation-row{display:grid;grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(0,1fr));gap:10px;align-items:center}.cash-reconciliation-heading{padding:9px 0;color:var(--muted);font-size:12px;font-weight:700}.cash-reconciliation-row{min-height:44px;border-top:1px solid var(--border);font-size:14px}.cash-reconciliation-row>span:not(:first-child){text-align:right}.cash-reconciliation-row strong{font-size:14px}.cash-balanced,.cash-positive{color:var(--brand);font-weight:700}.cash-negative{color:#a7352d;font-weight:700}.cash-count-form{display:grid;gap:14px}.cash-count-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cash-count-fields label{min-width:0}.cash-count-fields label>span{font-size:14px}.cash-count-fields small{min-height:18px;color:var(--muted);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}.cash-count-fields input{font-variant-numeric:tabular-nums}.cash-post-closing{padding:12px;border:1px solid #d6bd78;border-radius:7px;background:#fff8e6}.cash-post-closing h3{font-size:14px}.cash-post-closing>p{margin-top:3px;font-size:13px}.cash-post-closing ul{display:grid;gap:6px;margin:10px 0 0;padding:0;list-style:none}.cash-post-closing li{display:flex;justify-content:space-between;gap:12px;font-size:14px}.cash-post-closing strong{font-variant-numeric:tabular-nums}.cash-seller-list{display:grid;gap:8px}.cash-seller-row{gap:10px}.cash-seller-row .cash-reconciliation-row{min-height:40px}.cash-not-closed{font-size:13px}.cash-success,.cash-closing-panel .error{margin:0}@media(max-width:600px){.cash-heading{align-items:flex-start;flex-direction:column}.cash-date-filter{width:100%}.cash-card,.cash-seller-row{padding:12px}.cash-count-fields{grid-template-columns:1fr}.cash-reconciliation-heading{display:none}.cash-reconciliation-row{grid-template-columns:1fr 1fr;gap:6px;padding:9px 0}.cash-reconciliation-row strong{grid-column:1/-1}.cash-reconciliation-row>span:not(:first-child){text-align:left}.cash-reconciliation-row span:before{display:block;margin-bottom:2px;content:attr(data-label);color:var(--muted);font-size:11px;font-weight:500}.cash-status-line h3{font-size:16px}.cash-seller-row .cash-reconciliation-row{min-height:0}}:root{--control-border: #77867f }input:not([type=checkbox]),select,textarea,.search-field{border-color:var(--control-border)}button{min-height:44px}:focus-visible{outline:3px solid var(--brand);outline-offset:2px}input:focus-visible{outline:3px solid var(--brand);outline-offset:2px}@media(max-width:380px){.topbar{flex-wrap:wrap}.seller-session-actions{margin-left:auto}}.admin-sidebar{display:none}.admin-more-menu{max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px);overflow-y:auto;overscroll-behavior:contain}.admin-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom));height:calc(68px + env(safe-area-inset-bottom))}@media(min-width:1024px){.admin-shell{display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-rows:auto 1fr;padding-bottom:0}.admin-shell>.topbar{grid-column:2;grid-row:1;width:100%;max-width:1440px;padding:24px 32px 12px}.admin-shell>.content{grid-column:2;grid-row:2;width:100%;max-width:1440px;padding:8px 32px 32px}.admin-shell>.admin-nav,.admin-more-menu{display:none}.admin-sidebar{position:fixed;inset:0 auto 0 0;z-index:20;width:240px;display:flex;flex-direction:column;gap:12px;padding:20px 12px;overflow-y:auto;border-right:1px solid var(--border);background:var(--surface)}.admin-sidebar-brand{display:flex;align-items:center;gap:10px;padding:0 8px 18px;border-bottom:1px solid var(--border)}.admin-sidebar-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:7px;background:var(--brand);color:#fff;font-size:18px;font-weight:700}.admin-sidebar-brand>span:last-child{display:grid;gap:2px}.admin-sidebar-brand strong{font-size:14px}.admin-sidebar-brand small{color:var(--muted);font-size:12px}.admin-sidebar-links{display:grid;align-content:start;gap:4px}.admin-sidebar-group{display:grid;gap:2px}.admin-sidebar-entry{width:100%;display:flex;align-items:center;gap:10px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:14px;font-weight:600;text-align:left}.admin-sidebar-entry>svg:first-child{flex:none}.admin-sidebar-entry>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-sidebar-entry.nav-active,.admin-sidebar-subnav button.nav-active{background:#eef4f0;color:var(--brand);font-weight:700}.admin-sidebar-chevron{flex:none;margin-left:auto;transition:transform .15s}.admin-sidebar-chevron.expanded{transform:rotate(180deg)}.admin-sidebar-subnav{display:grid;gap:2px;margin-left:12px;padding-left:22px;border-left:1px solid var(--border)}.admin-sidebar-subnav button{width:100%;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;text-align:left}}.admin-more-menu{bottom:calc(76px + env(safe-area-inset-bottom));max-height:calc(100vh - 96px - env(safe-area-inset-bottom));max-height:calc(100dvh - 96px - env(safe-area-inset-bottom))}.admin-more-menu button.nav-active{background:#eef4f0;color:var(--brand);font-weight:700}.danger-action{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #a7352d;border-radius:7px;background:#fff5f4;color:#912d27;font-weight:700}.danger-action:hover:not(:disabled){background:#fce8e6}.danger-action:disabled{opacity:.6;cursor:not-allowed}.danger-action svg{flex:none}.danger-action-solid{background:#a7352d;color:#fff}.danger-action-solid:hover:not(:disabled){background:#912d27}.seller-orders-search{margin:0 0 10px}.seller-orders-search input{width:100%;min-width:0}.seller-orders-search .clear-search{width:36px;min-height:36px;flex:none;display:grid;place-items:center;border:0;background:transparent;color:var(--muted)}.seller-orders-count{margin:8px 0 10px;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}.seller-order-actions{display:grid;gap:12px;margin-top:12px}.seller-order-main-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.seller-order-main-actions button{min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px}.seller-order-main-actions .muted{align-self:center;font-size:13px}.seller-order-actions .seller-order-cancel{width:100%;min-height:48px;padding:0 12px;border-top-width:2px}.seller-orders-more{width:100%;min-height:48px;margin-top:12px;justify-content:center}.cancel-order-backdrop{align-items:flex-end}.cancel-order-sheet{display:grid;gap:12px}.cancel-order-sheet h2{margin:0}.cancel-order-sheet>p:not(.eyebrow){font-size:15px;line-height:1.5}.cancel-order-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-top:4px}.cancel-order-actions button{min-height:48px}@media(min-width:700px){.cancel-order-backdrop{align-items:center;padding:20px}.cancel-order-sheet{max-width:480px;border-radius:8px}}@media(max-width:380px){.seller-order-main-actions button{font-size:14px;padding:8px 6px}}.status-select.status-pending{border-color:#d6bd78;background:#fff3d4;color:#785b00}.status-select.status-in_delivery{border-color:#9fc4e0;background:#dceeff;color:#13527c}.status-select.status-delivered{border-color:#a8cdbb;background:#dcefe5;color:#17624f}.status-select.status-cancelled{border-color:#e2afaa;background:#fff0ef;color:#a7352d}.export-pdf-button,.refresh-orders-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;white-space:nowrap}.admin-order-actions .export-csv-button,.admin-order-actions .export-pdf-button{min-width:0}@media(max-width:480px){.admin-order-actions{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(48px,auto));width:100%}.admin-order-actions .export-csv-button,.admin-order-actions .export-pdf-button,.admin-order-actions .refresh-orders-button{width:100%;min-height:48px;padding:6px;white-space:normal;line-height:1.2}}.export-file-actions{display:flex;align-items:center;gap:8px}.export-pdf-button{min-width:0}@media(max-width:480px){.export-file-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.export-file-actions .export-csv-button,.export-file-actions .export-pdf-button{width:100%;min-height:48px;padding:6px;white-space:normal;line-height:1.2}}
