:root{--navy:#183a5a;--ink:#172331;--muted:#687386;--line:#dce3ea;--paper:#fff;--white:#fff;--gold:#d8a63a;--green:#1f7a54;--red:#b63f3f;--shadow:0 18px 44px #1723311a}*{box-sizing:border-box}body{background:var(--paper);color:var(--ink);letter-spacing:0;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.center-screen,.login-screen{place-items:center;min-height:100vh;padding:24px;display:grid}.login-screen{background:linear-gradient(135deg,#16314e 0%,#244e75 100%)}.login-card{background:var(--white);width:min(100%,420px);box-shadow:var(--shadow);border-radius:8px;gap:18px;padding:30px;display:grid}.login-card h1,.topbar h1,.work-panel h2{margin:0}.login-card h1{font-size:2rem}.eyebrow{color:var(--gold);text-transform:uppercase;margin:0 0 6px;font-size:.74rem;font-weight:800}label{color:var(--muted);gap:7px;font-size:.82rem;font-weight:700;display:grid}input,select,textarea{border:1px solid var(--line);background:var(--white);width:100%;min-height:40px;color:var(--ink);border-radius:6px;padding:9px 10px}input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:var(--navy);padding:0}textarea{resize:vertical;min-height:84px}.primary,.danger,.ghost,.row-actions button{border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-weight:800;display:inline-flex}.primary{background:var(--navy);color:var(--white)}.danger{background:var(--red);color:var(--white)}.danger:disabled{cursor:not-allowed;opacity:.45}.ghost-danger{color:var(--red);background:#fff8f8;border-color:#f0c8c8}.ghost{background:var(--white);border-color:var(--line);color:var(--ink)}.icon-button{width:40px;padding:0}.error{color:var(--red);margin:0;font-weight:700}.success{color:var(--green);margin:0;font-weight:800}.erp-shell{min-height:100vh;display:block}.brand-block{background:var(--navy);min-height:40px;color:var(--white);cursor:pointer;border:0;border-radius:6px;align-items:baseline;gap:8px;padding:0 12px;display:flex}.brand-block:hover{filter:brightness(1.06)}.brand-block span{font-size:1.35rem;font-weight:900}.brand-block strong{color:var(--gold)}.nav-menu{position:relative}.nav-menu summary{border:1px solid var(--line);background:var(--white);cursor:pointer;border-radius:6px;align-items:center;gap:8px;min-height:40px;padding:0 12px;font-weight:800;list-style:none;display:inline-flex}.nav-menu summary::-webkit-details-marker{display:none}.nav-menu-panel{z-index:20;border:1px solid var(--line);background:var(--white);width:270px;max-height:min(72vh,620px);box-shadow:var(--shadow);border-radius:8px;padding:8px;display:none;position:absolute;top:calc(100% + 8px);left:0;overflow:auto}.nav-menu[open] .nav-menu-panel,.nav-menu:hover .nav-menu-panel{gap:4px;display:grid}.nav-menu-panel button{width:100%;min-height:40px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:10px;padding:0 10px;display:flex}.nav-menu-panel button.active,.nav-menu-panel button:hover{color:var(--navy);background:#eef3f7}.workspace{min-width:0;padding:22px}.topbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.topbar-main{align-items:center;gap:10px;display:flex}.topbar-title-row{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.topbar-title{flex:1;min-width:0}.previous-page-button{border:1px solid var(--line);background:var(--white);min-height:40px;color:var(--navy);white-space:nowrap;border-radius:999px;align-items:center;gap:7px;padding:8px 13px;font-weight:700;display:inline-flex;box-shadow:0 3px 10px #142d440f}.previous-page-button:hover{border-color:var(--navy);background:#eef3f7}.topbar h1{font-size:1.8rem}.panel-stack{gap:18px;display:grid}.dashboard-switcher{border:1px solid var(--line);background:var(--white);box-shadow:var(--shadow);border-radius:8px;justify-content:space-between;align-items:center;gap:16px;padding:14px;display:flex}.dashboard-switcher h2{margin:0 0 4px;font-size:1rem}.recent-sales-comparison{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;display:grid}.recent-sales-comparison.loading{border:1px solid var(--line);background:var(--white);border-radius:8px;grid-template-columns:1fr;padding:16px 18px}.recent-sales-card{border:1px solid var(--line);border-top:4px solid var(--primary);background:var(--white);min-width:0;color:var(--ink);text-align:left;box-shadow:var(--shadow);border-radius:8px;gap:7px;padding:16px 18px;display:grid}.recent-sales-card:hover,.recent-sales-card:focus-visible{border-color:var(--primary);outline:none;transform:translateY(-1px)}.recent-sales-card>span{color:var(--muted);text-transform:uppercase;font-size:.78rem;font-weight:900}.recent-sales-card>strong{color:var(--navy);overflow-wrap:anywhere;font-size:clamp(1.25rem,2vw,1.8rem)}.recent-sales-prior{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:baseline;gap:10px;margin-top:3px;padding-top:9px;font-size:.76rem;display:flex}.recent-sales-prior strong{color:var(--muted);font-size:.88rem}.segmented-control{border:1px solid var(--line);background:#f8fafb;border-radius:8px;align-items:center;gap:4px;padding:4px;display:inline-flex}.segmented-control button{min-height:34px;color:var(--muted);background:0 0;border:0;border-radius:6px;padding:0 12px;font-weight:800}.segmented-control button.active{background:var(--navy);color:var(--white)}.metric-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.metric,.work-panel{background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px}.metric{min-height:112px;padding:18px}.metric span,.muted{color:var(--muted)}.metric strong{margin-top:10px;font-size:1.8rem;display:block}.dashboard-metric-grid{flex-wrap:wrap;gap:10px;display:flex}.dashboard-metric{width:auto;min-height:0;box-shadow:none;white-space:nowrap;border-radius:999px;align-items:center;gap:8px;padding:9px 14px;display:inline-flex}.dashboard-metric strong{margin-top:0;font-size:1rem;display:inline}.dashboard-action-grid{flex-wrap:wrap;gap:10px;display:flex}.dashboard-action-bubble{border:1px solid var(--line);background:var(--white);min-height:40px;color:var(--navy);box-shadow:none;white-space:nowrap;border-radius:999px;align-items:center;gap:8px;padding:9px 12px;font-weight:800;display:inline-flex}.dashboard-action-bubble strong{background:var(--navy);min-width:23px;height:23px;color:var(--white);border-radius:999px;place-items:center;padding:0 6px;font-size:.78rem;display:inline-grid}.dashboard-action-bubble.needs-action{background:#fffaf0;border-color:#d6aa55}.dashboard-action-bubble.needs-action strong{background:#b06f00}.dashboard-action-bubble.all-clear{color:var(--muted)}.dashboard-action-bubble.all-clear strong{background:var(--green)}.dashboard-action-bubble:hover,.dashboard-action-bubble:focus-visible{border-color:var(--navy);background:#f4f7f9;outline:none}#dashboard-damage-actions,#dashboard-reorder-actions{scroll-margin-top:18px}.payment-validation-page{scroll-margin-top:88px}.section-heading-with-actions{align-items:flex-start;margin-bottom:16px}.section-heading-with-actions>div:first-child{gap:7px;display:grid}.section-heading-actions{align-items:center;gap:10px;display:flex}.status-pill{white-space:nowrap;border-radius:999px;align-items:center;min-height:30px;padding:0 10px;font-size:.78rem;font-weight:800;display:inline-flex}.status-pill.warning{color:#815b00;background:#fff3d4}.status-pill.success{color:var(--green);background:#e4f4eb}.table-link,.text-button{color:var(--navy);text-align:left;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:800;display:inline-flex}.table-link:hover,.text-button:hover{text-decoration:underline}.compact-button{white-space:nowrap;min-height:34px;padding:0 10px}.empty-table-cell{color:var(--muted);text-align:center;padding:22px!important}.form-message{color:var(--navy);margin:0 0 12px;font-weight:700}.metric-button{border:1px solid var(--line);width:100%;color:var(--ink);text-align:left}.metric-button:hover{border-color:var(--navy)}.quality-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.quality-table-wrap{overflow-x:hidden}.product-quality-table{table-layout:fixed;white-space:normal;width:100%;min-width:0}.product-quality-table th,.product-quality-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere;word-break:break-word;padding:8px 7px;font-size:.78rem;line-height:1.22}.product-quality-table th:first-child,.product-quality-table td:first-child{width:11%}.product-quality-table th:nth-child(2),.product-quality-table td:nth-child(2){width:7%}.product-quality-table th:nth-child(3),.product-quality-table td:nth-child(3),.product-quality-table th:nth-child(4),.product-quality-table td:nth-child(4){width:9%}.product-quality-table th:nth-child(5),.product-quality-table td:nth-child(5){width:14%}.product-quality-table th:nth-child(6),.product-quality-table td:nth-child(6){width:8%}.product-quality-table th:nth-child(7),.product-quality-table td:nth-child(7){width:12%}.product-quality-table th:nth-child(8),.product-quality-table td:nth-child(8),.product-quality-table th:nth-child(9),.product-quality-table td:nth-child(9){width:8%}.product-quality-table th:nth-child(10),.product-quality-table td:nth-child(10){width:9%}.product-quality-table th:nth-child(11),.product-quality-table td:nth-child(11){width:5%}.product-quality-table td:nth-child(11) .ghost{min-height:30px;padding:4px 7px}.severity{text-transform:uppercase;border-radius:999px;align-items:center;min-height:24px;padding:0 8px;font-size:.74rem;font-weight:900;display:inline-flex}.severity-high{color:var(--red);background:#fbe7e7}.severity-medium{color:#8a5c00;background:#fff3d2}.severity-low{color:var(--navy);background:#eaf2fb}.split-panels{grid-template-columns:1fr 1fr;gap:18px;display:grid}.dashboard-finance-grid{grid-template-columns:minmax(0,2.25fr) minmax(250px,.75fr);align-items:stretch;gap:18px;display:grid}.cash-collected-panel{align-content:start;gap:18px;display:grid}.cash-collected-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.cash-collected-metric{border:1px solid var(--line);background:#f6faf7;border-radius:8px;align-content:start;gap:7px;min-width:0;padding:14px;display:grid}.cash-collected-metric span{color:var(--muted);text-transform:uppercase;font-size:.74rem;font-weight:900}.cash-collected-metric strong{color:var(--green);overflow-wrap:anywhere;font-size:clamp(1rem,1.5vw,1.35rem)}.cash-collected-metric small{color:var(--muted);font-size:.72rem}.dashboard-receivables-card{overflow:hidden}.receivables-dashboard-heading{align-items:flex-start;margin-bottom:16px}.receivables-dashboard-heading h2{color:var(--navy);letter-spacing:-.04em;margin:3px 0 2px;font-size:clamp(1.65rem,3vw,2.35rem)}.receivables-dashboard-heading small{color:var(--muted)}.receivable-leaderboards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.receivable-leaderboard{border:1px solid var(--line);background:linear-gradient(#f8fafc 0%,#fff 100%);border-radius:12px;min-width:0;padding:13px}.receivable-leaderboard-heading{justify-content:space-between;align-items:flex-start;gap:10px;min-height:41px;margin-bottom:5px;display:flex}.receivable-leaderboard-heading>div{gap:2px;display:grid}.receivable-leaderboard-heading>div>span{color:var(--navy);font-weight:900}.receivable-leaderboard-heading small{color:var(--muted);font-size:.7rem}.live-indicator{color:var(--green);letter-spacing:.05em;text-transform:uppercase;align-items:center;gap:5px;font-size:.66rem;font-weight:900;display:inline-flex}.live-indicator i{background:var(--green);border-radius:999px;width:7px;height:7px;animation:1.8s ease-in-out infinite receivable-live-pulse;box-shadow:0 0 0 4px #2180531f}.receivable-rank-window{height:183px;overflow:hidden;-webkit-mask-image:linear-gradient(#0000 0,#000 7% 93%,#0000 100%);mask-image:linear-gradient(#0000 0,#000 7% 93%,#0000 100%)}.receivable-rank-track{display:grid}.receivable-rank-track.is-scrolling{will-change:transform;animation:42s linear infinite receivable-scroll-up}.receivable-leaderboards:hover .receivable-rank-track.is-scrolling{animation-play-state:paused}.receivable-rank-row{border-top:1px solid var(--line);width:100%;height:61px;color:inherit;text-align:left;background:0 0;border-bottom:0;border-left:0;border-right:0;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;padding:0;display:grid}.receivable-rank-row:hover,.receivable-rank-row:focus-visible{background:#183a5a0e}.receivable-rank-row:focus-visible{outline-offset:-2px;outline:2px solid #183a5a59}.receivable-rank-row:disabled{cursor:default;opacity:1}.receivable-rank-number{background:var(--navy);width:26px;height:26px;color:var(--white);border-radius:50%;place-items:center;font-size:.76rem;display:grid}.receivable-rank-client,.receivable-rank-value{gap:2px;min-width:0;display:grid}.receivable-rank-client strong{text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;overflow:hidden}.receivable-rank-client small,.receivable-rank-value time{color:var(--muted);font-size:.68rem}.receivable-rank-value{text-align:right;justify-items:end}.receivable-rank-value strong{color:var(--navy);white-space:nowrap;font-size:.78rem}@keyframes receivable-scroll-up{0%{transform:translateY(0)}to{transform:translateY(-50%)}}@keyframes receivable-live-pulse{0%,to{opacity:.55;transform:scale(.88)}50%{opacity:1;transform:scale(1)}}.work-panel{min-width:0;padding:18px}.compact-list,.activity-list{gap:10px;margin-top:14px;display:grid}.recent-activity-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.recent-activity-heading h2{margin:0}.live-status{color:#18794e;letter-spacing:.06em;text-transform:uppercase;align-items:center;gap:6px;font-size:.75rem;font-weight:800;display:inline-flex}.live-status i{background:#20a464;border-radius:999px;width:8px;height:8px;box-shadow:0 0 0 4px #20a46424}.compact-list div,.activity-list div{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:10px 0;display:flex}.dashboard-detail-card{cursor:pointer;transition:border-color .16s,transform .16s,box-shadow .16s}.dashboard-detail-card:hover,.dashboard-detail-card:focus-visible{border-color:var(--navy);outline:none;transform:translateY(-2px);box-shadow:0 20px 48px #17233129}.dashboard-detail-link{color:var(--navy);align-items:center;gap:4px;font-size:.82rem;font-weight:900;display:inline-flex}.activity-list p{flex:1;margin:0}.activity-time{color:var(--muted);white-space:nowrap;font-size:.82rem}.activity-user{min-width:120px;color:var(--navy);white-space:nowrap;align-items:center;gap:7px;font-size:.84rem;font-weight:800;display:inline-flex}.activity-user b{color:#2563a9;background:#2b6fd61f;border-radius:50%;place-items:center;width:28px;height:28px;font-size:.78rem;display:inline-grid}.resource-grid{grid-template-columns:minmax(0,1fr) 360px;align-items:start;gap:18px;display:grid}.resource-grid-wide{grid-template-columns:minmax(0,1fr)}.panel-toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;display:flex}.search{border:1px solid var(--line);background:var(--white);border-radius:6px;flex:1;align-items:center;gap:8px;padding:0 10px;display:flex}.search input{border:0;padding-left:0}.table-wrap{overflow:auto}.table-wrap table{max-width:none}.toolbar-import{align-items:center;gap:8px;margin-left:auto;display:flex}.toolbar-import input[type=file]{width:210px;min-height:34px;padding:6px}.payment-summary{grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px;margin-bottom:14px;display:grid}.monthly-sales-grid{grid-template-columns:repeat(4,minmax(180px,1fr));gap:10px;display:grid}.monthly-sales-card{border:1px solid var(--line);background:#f8fafb;border-radius:8px;gap:6px;padding:12px;display:grid}.monthly-sales-card span,.monthly-sales-card small{color:var(--muted)}.monthly-sales-totals{gap:2px;display:grid}.monthly-sales-totals strong{color:var(--green)}.monthly-sales-legend{color:var(--muted);align-items:center;gap:16px;font-size:.8rem;font-weight:800;display:flex}.monthly-sales-legend span{align-items:center;gap:6px;display:inline-flex}.monthly-sales-legend i{border-radius:2px;width:10px;height:10px}.monthly-sales-legend .amount,.monthly-sales-bars .amount{background:var(--navy)}.monthly-sales-legend .collected,.monthly-sales-bars .collected,.sales-chart-bars .collected{background:var(--green)}.monthly-sales-legend .quantity,.monthly-sales-bars .quantity{background:var(--gold)}.monthly-sales-chart{grid-template-columns:repeat(12,minmax(96px,1fr));gap:8px;margin-top:18px;padding:4px 2px 8px;display:grid;overflow-x:auto}.monthly-sales-column{min-width:96px;color:var(--ink);text-align:center;background:0 0;border:1px solid #0000;border-radius:8px;grid-template-rows:58px 190px auto auto auto;gap:7px;padding:10px 8px;display:grid}.monthly-sales-column:hover,.monthly-sales-column:focus-visible{border-color:var(--line);background:#f4f7f9;outline:none}.monthly-sales-values{align-content:end;gap:3px;display:grid}.monthly-sales-values strong,.sales-chart-values strong{color:var(--navy)}.monthly-sales-values span,.sales-chart-values span{color:var(--green)}.monthly-sales-values strong{font-size:.72rem;line-height:1.2}.monthly-sales-column>small{color:var(--muted);font-size:.7rem}.monthly-sales-values span{font-size:.7rem}.monthly-sales-column>.monthly-sales-left{color:var(--green);font-weight:900}.monthly-sales-bars{border-bottom:1px solid var(--line);justify-content:center;align-items:end;gap:5px;height:190px;padding:0 8px;display:flex}.monthly-sales-bars i{border-radius:4px 4px 0 0;width:min(26px,42%);transition:height .18s;display:block}.monthly-sales-column>span{font-size:.8rem;font-weight:900}.receivables-screen{gap:18px}.receivables-hero{background:linear-gradient(135deg,#fff 0%,#f1f6fa 100%);gap:18px;display:grid}.back-link{color:var(--navy);background:0 0;border:0;align-items:center;gap:6px;margin:0 0 12px;padding:0;font-weight:900;display:inline-flex}.receivables-search{width:min(100%,360px)}.receivables-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.receivables-metrics .metric{min-height:104px;box-shadow:none}.receivables-metrics .metric strong{font-size:1.35rem}.receivables-metrics .metric small{color:var(--muted);margin-top:5px;display:block}.metric-overdue strong,.overdue-text{color:var(--red)}.receivables-month-grid{grid-template-columns:repeat(4,minmax(190px,1fr));gap:10px;margin-top:14px;display:grid}.receivables-month-card,.receivables-client-card{border:1px solid var(--line);color:var(--ink);text-align:left;background:#f8fafb;border-radius:8px;gap:6px;padding:14px;display:grid;position:relative}.receivables-month-card:hover,.receivables-month-card.active,.receivables-client-card:hover{border-color:var(--navy);background:#eef4f8}.receivables-month-card.active{box-shadow:inset 0 0 0 1px var(--navy)}.receivables-month-card span,.receivables-client-card span{color:var(--muted);font-size:.82rem;font-weight:800}.receivables-month-card strong,.receivables-client-card strong{font-size:1.08rem}.receivables-month-card small,.receivables-client-card small{color:var(--muted)}.receivables-client-grid{grid-template-columns:repeat(3,minmax(220px,1fr));gap:10px;margin-top:14px;display:grid}.receivables-client-card{padding-right:42px}.receivables-client-card svg{position:absolute;top:50%;right:14px;transform:translateY(-50%)}.receivables-table{min-width:1120px;margin-top:14px}.receivables-table-wrap{border:1px solid var(--line);border-radius:8px;max-height:min(70vh,720px)}.receivables-table thead th{z-index:3;background:var(--white);box-shadow:0 1px 0 var(--line);position:sticky;top:0}.receivables-table .sort-header{white-space:nowrap;justify-content:space-between;width:100%}.receivables-table .sort-header:hover,.receivables-table .sort-header:focus-visible{color:var(--navy);outline:none}.receivables-table td{vertical-align:top}.receivables-table td small{text-transform:uppercase;margin-top:3px;font-size:.7rem;font-weight:900;display:block}.sales-data-filters{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.sales-data-filters label{min-width:150px}.sales-data-search{min-width:min(100%,360px)}.sales-chart{grid-template-columns:repeat(12,minmax(96px,1fr));align-items:end;gap:10px;min-height:286px;padding:4px 2px 8px;display:grid;overflow-x:auto}.sales-chart-single{grid-template-columns:minmax(180px,320px);min-height:150px}.sales-chart>div{align-items:end;min-height:270px;display:flex}.sales-chart-single>div{min-height:140px}.sales-chart button{border:1px solid var(--line);width:100%;min-height:270px;color:var(--ink);text-align:center;background:#f8fafb;border-radius:8px;grid-template-rows:52px 160px auto auto;gap:7px;padding:10px;display:grid}.sales-chart-single button{min-height:250px}.sales-chart-values{align-content:end;gap:3px;display:grid}.sales-chart-values span{font-size:.7rem}.sales-chart-bars{border-bottom:1px solid var(--line);justify-content:center;align-items:end;gap:6px;height:160px;padding:0 8px;display:flex}.sales-chart-bars i{border-radius:4px 4px 0 0;width:min(28px,42%);transition:height .18s;display:block}.sales-chart-bars .amount{background:var(--navy)}.sales-chart button strong{white-space:normal;font-size:.72rem}.sales-chart-month{font-size:.8rem;font-weight:900}.sales-chart button>small{color:var(--green);font-size:.7rem;font-weight:900}.sales-chart .active button{border-color:var(--green);background:#eef8f2}.inline-record-panel,.inline-panel,.payment-summary button,.payment-balance{border:1px solid var(--line);background:#f8fafb;border-radius:8px}.inline-record-panel,.inline-panel{gap:14px;margin-bottom:14px;padding:14px;display:grid}.inline-record-panel h2,.inline-panel h2{margin:0}.lot-edit-panel{background:var(--white);margin-bottom:0}.compact-action-button{white-space:nowrap;min-width:68px;min-height:34px;padding:0 10px}.section-toggle{width:100%;min-height:40px;color:var(--ink);text-align:left;background:0 0;border:0;align-items:center;gap:8px;padding:0;display:flex}.section-toggle span{font-weight:900}.section-toggle strong{color:var(--muted);margin-left:auto}.product-groups-panel{background:var(--white)}.product-family-table{table-layout:fixed;white-space:normal;width:100%;min-width:1040px}.product-family-table th,.product-family-table td{overflow-wrap:anywhere;white-space:normal;vertical-align:top;line-height:1.25}.product-family-table th{overflow-wrap:break-word;line-height:1.05}.product-family-table th:first-child,.product-family-table td:first-child{width:120px}.product-family-table th:nth-child(2),.product-family-table td:nth-child(2){width:200px}.product-family-table th:nth-child(3),.product-family-table td:nth-child(3){width:120px}.product-family-table th:nth-child(4),.product-family-table td:nth-child(4){width:100px}.product-family-table th:nth-child(5),.product-family-table td:nth-child(5){width:170px}.product-family-table th:nth-child(6),.product-family-table td:nth-child(6),.product-family-table th:nth-child(7),.product-family-table td:nth-child(7){width:90px}.product-family-table th:nth-child(8),.product-family-table td:nth-child(8){width:96px}.product-family-table th:nth-child(9),.product-family-table td:nth-child(9){width:104px}.product-family-table th:nth-child(10),.product-family-table td:nth-child(10){width:100px}.product-family-table .sort-header{white-space:normal;text-align:left;max-width:100%}.product-family-table th[data-column=earliest_expiry_date],.product-family-table td.product-expiry-date{white-space:nowrap;overflow-wrap:normal;word-break:normal;width:140px;min-width:140px}.product-family-table th[data-column=earliest_expiry_date] .sort-header{white-space:nowrap}.product-family-table th[data-column=stock_received_date],.product-family-table td.product-stock-received-date{white-space:nowrap;overflow-wrap:normal;word-break:normal;width:220px;min-width:220px}.product-family-table th[data-column=stock_received_date] .sort-header{white-space:nowrap}.inline-record-form{grid-template-columns:repeat(4,minmax(160px,1fr))}.inline-record-form .party-picker,.inline-record-form .success,.inline-record-form button{grid-column:1/-1}.inline-record-form label:has(textarea){grid-column:1/-1}.table-caption{color:var(--muted);flex-wrap:wrap;justify-content:flex-start;align-items:baseline;gap:12px;margin-bottom:8px;display:flex}.table-caption strong{color:var(--ink)}.table-message{margin:0 0 12px}.payment-summary button{color:inherit;text-align:left;gap:6px;padding:12px;display:grid}.payment-summary button:hover,.payment-summary button.active{border-color:var(--green);background:#eef8f2}.payment-summary span,.payment-summary small,.payment-balance span{color:var(--muted)}.payment-summary strong,.payment-balance strong{color:var(--green)}.payment-balance{justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding:12px;display:flex}.invoice-payment-history{gap:10px;display:grid}.invoice-payment-history h3{margin:0;font-size:1rem}.fulfillment-actions{gap:12px;display:grid}.toggle-label{min-width:max-content;color:var(--muted);align-items:center;gap:8px;display:inline-flex}.split-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.cell-help{color:var(--muted);margin-top:4px;display:block}.amount-stack{gap:2px;line-height:1.15;display:grid}.amount-stack strong{font-weight:900}.amount-stack small{color:var(--muted);font-size:.78rem}.amount-action-cell{align-items:start;gap:6px;display:grid}.inline-text-button{color:var(--primary);cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;padding:0;font-size:.8rem;font-weight:800}.inline-text-button:hover{text-decoration:underline}.inline-link-button{appearance:none;color:inherit;cursor:pointer;text-align:left;max-width:100%;font:inherit;background:0 0;border:0;align-items:center;padding:0;display:inline-flex}.inline-link-button:hover{color:var(--primary);text-decoration:underline}.invoice-editor{gap:18px;display:grid}.editor-heading,.section-heading,.invoice-total-bar{justify-content:space-between;align-items:center;gap:16px;display:flex}.editor-heading{border-bottom:1px solid var(--line);min-height:86px;padding-bottom:16px}.editor-heading h2,.invoice-section h3{margin:0}.invoice-editor-form{gap:18px;display:grid}.invoice-section{border:1px solid var(--line);background:#f8fafb;border-radius:8px;gap:14px;padding:14px;display:grid}.invoice-status-strip{border:1px solid var(--line);background:var(--white);border-radius:6px;flex-wrap:wrap;align-items:center;gap:10px;padding:10px;display:flex}.invoice-status-strip span,.invoice-status-strip small,.warning-text{color:var(--muted)}.invoice-status-strip strong{color:var(--navy)}.cancellation-section{background:#fff8f8;border-color:#f0c8c8}.cancellation-section p{margin:6px 0 0}.cancellation-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.invoice-editor-action-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.shipping-action-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.cancellation-dialog label{color:var(--muted);gap:8px;font-weight:800;display:grid}.cancellation-dialog textarea{width:100%}.invoice-fields{grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;display:grid}.wide-field{grid-column:1/-1}.product-search{border:1px solid var(--line);background:var(--white);border-radius:6px;grid-template-columns:auto minmax(220px,1fr) auto;align-items:center;gap:8px;padding:8px 10px;display:grid}.product-search input{border:0;padding-left:0}.product-results{grid-template-columns:repeat(4,minmax(180px,1fr));gap:8px;display:grid}.product-results button{border:1px solid var(--line);background:var(--white);min-height:92px;color:var(--ink);text-align:left;border-radius:6px;gap:4px;padding:10px;display:grid}.product-results button:hover{border-color:var(--green);background:#eef8f2}.product-results span,.product-results small,.invoice-total-bar span{color:var(--muted)}.product-results strong{white-space:normal}.invoice-lines-table{max-height:460px}.invoice-lines-table input{min-width:86px}.foc-quantity-cell{grid-template-columns:minmax(72px,1fr) auto;align-items:center;gap:6px;display:grid}.foc-quantity-cell input{min-width:72px}.foc-quantity-cell .compact-action-button{min-height:30px;padding:4px 8px}.line-actions{align-items:center;gap:8px;min-width:190px;display:flex}.line-actions .ghost{min-height:34px;padding:0 10px}.rental-link-panel{background:var(--white);margin:0}.invoice-lines-table td:first-child input,.invoice-lines-table td:nth-child(2) input,.invoice-lines-table td:nth-child(4) input{min-width:150px}.strong-cell{font-weight:900}.invoice-total-bar{border:1px solid var(--line);background:var(--white);border-radius:8px;padding:12px 14px;position:sticky;bottom:0;box-shadow:0 -10px 30px #17233114}.invoice-total-bar div{gap:4px;display:grid}.invoice-total-bar strong{color:var(--green);font-size:1.35rem}.history-summary{grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;display:grid}.customer-financial-summary{grid-template-columns:repeat(2,minmax(150px,1fr))}.customer-detail-page{background:var(--white);gap:16px;min-width:0;display:grid}.customer-detail-page>*,.customer-detail-page .customer-history-section,.customer-detail-page .collapsible-panel{min-width:0}.customer-detail-page .table-wrap,.customer-detail-page .collapsible-panel>summary,.customer-detail-page .profile-details>div{background:var(--white)}.back-button{width:fit-content}.customer-detail-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:end;gap:16px;padding-bottom:14px;display:flex}.customer-detail-heading h2{margin:0;font-size:1.7rem}.product-heading-actions{justify-items:stretch;gap:8px;min-width:190px;display:grid}.product-heading-actions button{justify-content:center;width:100%}.stock-movement-entry-panel{gap:14px;max-width:980px;display:grid}.stock-movement-entry-panel>.muted{margin:0}.product-compact-summary{flex-wrap:wrap;gap:4px 14px;margin-bottom:0;display:flex}.product-compact-summary span:not(:last-child):after{content:" ·"}.product-profile-dropdown .profile-details{padding:12px}.product-profile-dropdown .product-details-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.product-profile-dropdown .product-details-grid>div{min-height:64px}.customer-history-section{gap:10px;display:grid}.customer-history-section h3{margin:0}.collapsible-panel{gap:12px;display:grid}.collapsible-panel>summary{border:1px solid var(--line);color:var(--navy);cursor:pointer;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;font-weight:900;list-style:none;display:flex}.collapsible-panel>summary::-webkit-details-marker{display:none}.collapsible-panel>summary:before{content:"▶"}.collapsible-panel[open]>summary:before{content:"▼"}.collapsible-panel>summary .muted{font-weight:700}.product-usage-panel{border-top:1px solid var(--line);gap:10px;padding-top:14px;display:grid}.product-usage-panel h3{margin:0}.product-usage-results{gap:12px;display:grid}.usage-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.usage-summary-grid div{border:1px solid var(--line);background:var(--soft);border-radius:8px;padding:12px 14px}.usage-summary-grid span{color:var(--muted);text-transform:uppercase;font-size:.82rem;font-weight:800;display:block}.usage-summary-grid strong{margin-top:4px;font-size:1.2rem;display:block}.product-usage-table th,.product-usage-table td{white-space:normal}.product-usage-table tfoot td{border-top:2px solid var(--ink);background:var(--soft);font-weight:900}.product-usage-table .invoice-number{white-space:nowrap}.profile-details{grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px;display:grid}.profile-details div{border:1px solid var(--line);background:#f8fafb;border-radius:6px;gap:5px;padding:10px;display:grid}.profile-details span{color:var(--muted);text-transform:uppercase;font-size:.72rem;font-weight:800}.profile-details strong{overflow-wrap:anywhere}.profile-details input{width:100%;min-height:34px;color:var(--ink);font:inherit;background:0 0;border:0;padding:0;font-weight:800}.profile-details input:focus{outline-offset:4px;outline:2px solid #1e40af47}.detail-dropdown{border:1px solid var(--line);background:var(--white);border-radius:6px}.detail-dropdown summary{cursor:pointer;color:var(--navy);padding:12px 14px;font-weight:800}.detail-dropdown summary::-webkit-details-marker{color:var(--gold)}.detail-dropdown[open] summary{border-bottom:1px solid var(--line)}.detail-dropdown-body{gap:12px;padding:12px;display:grid}.compact-profile-details,.compact-summary-details{padding:12px}.invoice-detail-number{line-height:1}.invoice-detail-number .invoice-number{min-height:38px;padding:0 16px;font-size:1.35rem}.history-summary div{border:1px solid var(--line);background:var(--white);border-radius:6px;gap:5px;padding:10px;display:grid}.history-summary span{color:var(--muted);text-transform:uppercase;font-size:.74rem;font-weight:800}.history-summary strong{font-size:1rem}.compact-history-table{max-height:430px}.history-table-toolbar{align-items:center;gap:12px;display:flex}.history-table-toolbar .search{min-width:240px}.history-table-toolbar>.muted{white-space:nowrap}.consignment-return-form{border:1px solid var(--line);background:#f8fafc;border-radius:6px;margin:0 0 14px;padding:14px}.customer-history-table thead th{background:var(--white);box-shadow:0 1px 0 var(--line);z-index:2;position:sticky;top:0}@media (max-width:720px){.history-table-toolbar{flex-direction:column;align-items:stretch}.history-table-toolbar>.muted{white-space:normal}}.product-sales-ranking-table{table-layout:fixed;white-space:normal;width:100%}.product-sales-ranking-table th,.product-sales-ranking-table td{vertical-align:top}.product-sales-ranking-table th:first-child,.product-sales-ranking-table td:first-child{overflow-wrap:anywhere;width:48%}.product-sales-ranking-table th:nth-child(2),.product-sales-ranking-table td:nth-child(2){width:16%}.product-sales-ranking-table th:nth-child(3),.product-sales-ranking-table td:nth-child(3){width:26%}.product-sales-ranking-table th:nth-child(4),.product-sales-ranking-table td:nth-child(4){width:10%}.snapshot-heading{align-items:end}.snapshot-disclosure{overflow:hidden}.snapshot-rollup{cursor:pointer;justify-content:space-between;align-items:center;gap:24px;list-style:none;display:flex}.snapshot-rollup::-webkit-details-marker{display:none}.snapshot-rollup-copy{gap:3px;display:grid}.snapshot-rollup-copy h2{margin:0}.snapshot-rollup-action{color:var(--navy);white-space:nowrap;align-items:center;gap:8px;font-size:.84rem;font-weight:900;display:inline-flex}.snapshot-rollup-action svg{transition:transform .18s}.snapshot-disclosure[open] .snapshot-rollup-action svg{transform:rotate(180deg)}.snapshot-expanded-content{gap:18px;margin-top:22px;animation:.18s ease-out snapshot-roll-down;display:grid}.snapshot-date-row{justify-content:flex-end;display:flex}@keyframes snapshot-roll-down{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.snapshot-date-control{min-width:210px;color:var(--muted);text-transform:uppercase;gap:6px;font-size:.76rem;font-weight:800;display:grid}.history-summary.snapshot-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}.snapshot-search{max-width:440px;margin:0}.snapshot-stock-table{table-layout:fixed;white-space:normal;width:100%}.snapshot-stock-table th,.snapshot-stock-table td{vertical-align:top;overflow-wrap:anywhere}.snapshot-stock-table th{white-space:normal;line-height:1.15}.snapshot-stock-table thead th{z-index:2;background:var(--white);box-shadow:0 1px 0 var(--line);position:sticky;top:0}.snapshot-stock-table th:first-child,.snapshot-stock-table td:first-child{width:13%}.snapshot-stock-table th:nth-child(2),.snapshot-stock-table td:nth-child(2){width:18%}.snapshot-stock-table th:nth-child(3),.snapshot-stock-table td:nth-child(3){width:13%}.snapshot-stock-table th:nth-child(4),.snapshot-stock-table td:nth-child(4){text-align:right;width:10%}.snapshot-stock-table th:nth-child(4){color:var(--navy);background:#e7edf2;font-weight:900}.snapshot-stock-table td:nth-child(4){color:var(--navy);white-space:nowrap;background:#f1f5f8;font-weight:900}.snapshot-stock-table th:nth-child(5),.snapshot-stock-table td:nth-child(5){width:15%}.snapshot-stock-table th:nth-child(6),.snapshot-stock-table td:nth-child(6){width:23%}.snapshot-stock-table th:nth-child(7),.snapshot-stock-table td:nth-child(7){width:8%}.negative-stock-row td{color:#991b1b;background:#fff1f2;font-weight:800}.reorder-alert-row td{background:#fff7ed}.reorder-alert-row td:first-child{border-left:4px solid #f59e0b}.payment-confirmation-row td{background:#fffbea}.payment-confirmation-row td:first-child{border-left:4px solid var(--gold)}table{border-collapse:collapse;white-space:nowrap;width:max-content;min-width:100%}.product-list-table{table-layout:fixed;white-space:normal;width:100%}.product-list-table th,.product-list-table td{vertical-align:top;overflow-wrap:anywhere}.product-list-table th:first-child,.product-list-table td:first-child{width:9%}.product-list-table th:nth-child(2),.product-list-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere;word-break:break-word;width:19%}.product-list-table th:nth-child(3),.product-list-table td:nth-child(3){width:10%}.product-list-table th:nth-child(4),.product-list-table td:nth-child(4){width:11%}.product-list-table th:nth-child(5),.product-list-table td:nth-child(5){width:16%}.product-list-table th:nth-child(6),.product-list-table td:nth-child(6),.product-list-table th:nth-child(7),.product-list-table td:nth-child(7),.product-list-table th:nth-child(8),.product-list-table td:nth-child(8),.product-list-table th:nth-child(9),.product-list-table td:nth-child(9){white-space:nowrap;width:7%}.product-list-table th,.product-list-table td{padding:7px 8px;font-size:.82rem;line-height:1.25}.product-list-table .sort-header{min-height:22px}.grouping-review-table{table-layout:fixed;width:880px;min-width:880px}.grouping-review-table th,.grouping-review-table td{white-space:normal;overflow-wrap:anywhere;word-break:normal}.grouping-review-table th{white-space:normal;overflow-wrap:break-word;line-height:1.05}.grouping-review-table th,.grouping-review-table td{padding:7px 6px}.grouping-review-table th:first-child,.grouping-review-table td:first-child{width:118px}.grouping-review-table th:nth-child(2),.grouping-review-table td:nth-child(2){width:58px}.grouping-review-table th:nth-child(3),.grouping-review-table td:nth-child(3){width:150px}.grouping-review-table th:nth-child(4),.grouping-review-table td:nth-child(4){width:96px}.grouping-review-table th:nth-child(5),.grouping-review-table td:nth-child(5){width:84px}.grouping-review-table th:nth-child(6),.grouping-review-table td:nth-child(6){width:176px}.grouping-review-table th:nth-child(7),.grouping-review-table td:nth-child(7){text-align:right;width:58px}.grouping-review-table th:nth-child(8),.grouping-review-table td:nth-child(8){white-space:nowrap;width:82px}.grouping-review-table th:nth-child(9),.grouping-review-table td:nth-child(9){white-space:nowrap;width:74px}.grouping-review-table th:nth-child(10),.grouping-review-table td:nth-child(10){text-align:right;width:72px}.compact-resource-table{table-layout:fixed}th,td{border-bottom:1px solid var(--line);text-align:left;padding:11px 10px;font-size:.88rem}.compact-resource-table th,.compact-resource-table td{text-overflow:ellipsis;overflow:hidden}.compact-resource-table .sort-header{max-width:100%;overflow:hidden}.product-grouping-rules-table{table-layout:fixed;white-space:normal;width:860px;min-width:860px}.product-grouping-rules-table th,.product-grouping-rules-table td{white-space:normal;vertical-align:top;padding:7px 6px;line-height:1.15}.product-grouping-rules-table td{overflow-wrap:anywhere}.product-grouping-rules-table th{overflow-wrap:normal;word-break:normal}.product-grouping-rules-table .sort-header{white-space:normal;align-items:flex-start;gap:4px;max-width:100%;min-height:0;line-height:1.05}.product-grouping-rules-table th:first-child,.product-grouping-rules-table td:first-child,.product-grouping-rules-table th:nth-child(2),.product-grouping-rules-table td:nth-child(2){width:108px}.product-grouping-rules-table th:nth-child(3),.product-grouping-rules-table td:nth-child(3),.product-grouping-rules-table th:nth-child(4),.product-grouping-rules-table td:nth-child(4),.product-grouping-rules-table th:nth-child(5),.product-grouping-rules-table td:nth-child(5){text-align:right;width:72px}.product-grouping-rules-table th:nth-child(6),.product-grouping-rules-table td:nth-child(6){width:250px}.product-grouping-rules-table th:nth-child(7),.product-grouping-rules-table td:nth-child(7){width:80px}.product-grouping-rules-table th:nth-child(8),.product-grouping-rules-table td:nth-child(8){width:110px}.product-grouping-rules-table th:nth-child(9),.product-grouping-rules-table td:nth-child(9){text-align:right;width:68px}th{color:var(--muted);text-transform:uppercase;font-size:.74rem;position:relative}.sort-header{min-height:28px;color:inherit;font-size:inherit;text-transform:inherit;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:900;display:inline-flex}.sort-header span{color:var(--gold);font-size:.82rem}.month-row td,.draft-row td{background:#eef3f7;padding:0}.draft-row td{background:#f4f6f8}.month-row button,.draft-row button{width:100%;min-height:42px;color:var(--ink);text-align:left;background:0 0;border:0;align-items:center;gap:9px;padding:0 10px;font-weight:900;display:flex}.month-row strong,.draft-row strong{color:var(--muted);margin-left:auto;font-size:.78rem}.invoice-gap-row td{color:#9f1d1d;text-align:center;background:#fff1f1;border-top:3px solid #cf2e2e;border-bottom:3px solid #cf2e2e;padding:9px 12px;font-weight:900}.row-actions{align-items:center;gap:5px;display:flex}.expanded-row-actions{flex-direction:column;align-items:stretch}.expanded-row-actions button{white-space:nowrap;justify-content:flex-start}.clickable-row{cursor:pointer}.clickable-row:hover td{background:#f8fafb}.row-actions button{border-color:var(--line);background:var(--white);min-height:30px;padding:0 9px}.row-actions .row-icon-button{justify-content:center;align-items:center;width:30px;min-width:30px;min-height:30px;padding:0;display:inline-flex}.empty{color:var(--muted);text-align:center}.invoice-number{border-radius:999px;align-items:center;min-height:26px;padding:0 9px;font-weight:900;display:inline-flex}.invoice-number-paid{color:#17613f;background:#e4f5ec}.invoice-number-partial{color:#9a5a00;background:#fff0d5}.invoice-number-unpaid{color:#a72f2f;background:#fde7e7}.invoice-number-cancelled{color:#126484;background:#e2f4ff}.invoice-number-foc{color:#6a32b8;background:#f0e6ff}.invoice-number-draft{color:#51606f;background:#eef2f6}.invoice-number-consignment{color:#4f2d9f;border:2px solid #8b5cf6;box-shadow:inset 0 -2px #8b5cf647}.confirm-overlay{z-index:20;background:#0f172a47;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.confirm-dialog{border:1px solid var(--line);background:var(--white);border-radius:8px;gap:14px;width:min(100%,520px);padding:18px;display:grid;box-shadow:0 20px 48px #0f172a2e}.confirm-dialog h3,.confirm-dialog p{margin:0}.confirm-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.side-stack{gap:18px;display:grid}.form-title{justify-content:space-between;gap:10px;display:flex}.record-form,.import-form{gap:12px;margin-top:14px;display:grid}.bottom-import{border-top:1px solid var(--line);justify-content:space-between;align-items:end;gap:18px;margin-top:18px;padding-top:18px;display:flex}.bottom-import h2{margin:0 0 4px;font-size:1rem}.bottom-import p{margin:0}.import-form-inline{grid-template-columns:minmax(180px,1fr) auto;align-items:center;width:min(100%,460px);margin-top:0}.party-picker{gap:12px;display:grid;position:relative}.party-options{border:1px solid var(--line);background:var(--white);border-radius:6px;gap:4px;max-height:190px;padding:6px;display:grid;overflow:auto}.party-options button{min-height:34px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:4px}.party-options button:hover{background:var(--paper)}.customer-name-picker{position:relative}.customer-name-picker .customer-options{z-index:30;position:absolute;top:calc(100% + 4px);left:0;right:0;box-shadow:0 12px 28px #0f172a24}.customer-name-picker .customer-options button{gap:2px;display:grid}.invoice-fields>.inline-add-customer,.invoice-fields>.new-customer-inline{grid-column:1/-1}.customer-lookup-field{align-content:start;gap:6px;display:grid;position:relative}.inline-add-customer{justify-content:center;align-items:center;gap:7px;width:fit-content;display:inline-flex}.new-customer-inline{border:1px solid var(--green);background:#eef8f2;border-radius:7px;gap:12px;padding:12px;display:grid}.new-customer-inline .section-heading strong,.new-customer-inline .section-heading small{display:block}.new-customer-fields{grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;display:grid}.inline-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.new-customer-inline-compact{min-width:520px}.new-customer-inline-compact .new-customer-fields{grid-template-columns:repeat(2,minmax(150px,1fr))}.customer-name-picker .customer-options small{color:var(--muted)}.product-quality-form{grid-template-columns:repeat(4,minmax(0,1fr))}.product-quality-form button,.product-quality-form .success{grid-column:1/-1}.product-quality-form label:has(textarea){grid-column:1/-1}@media (max-width:1100px){.metric-grid,.resource-grid,.split-panels,.dashboard-finance-grid,.payment-summary,.receivables-metrics,.receivables-month-grid,.receivables-client-grid,.history-summary,.profile-details,.invoice-fields,.new-customer-fields,.product-results{grid-template-columns:1fr}.new-customer-inline-compact{min-width:min(100%,320px)}.history-summary.snapshot-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.new-customer-inline-compact .new-customer-fields{grid-template-columns:1fr}.editor-heading,.section-heading,.invoice-total-bar,.dashboard-switcher{flex-direction:column;align-items:stretch}.section-heading.snapshot-heading{flex-direction:row;align-items:end}.segmented-control{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.product-search{grid-template-columns:auto minmax(0,1fr)}.product-search button{grid-column:1/-1}.bottom-import{flex-direction:column;align-items:stretch}.import-form-inline{grid-template-columns:1fr;width:100%}.sales-data-filters{flex-direction:column;align-items:stretch}}@media (max-width:640px){.workspace{padding:14px}.snapshot-rollup{align-items:flex-start;gap:14px}.snapshot-rollup-action{font-size:0}.snapshot-rollup-action svg{width:22px;height:22px}.snapshot-date-row{justify-content:stretch}.snapshot-date-control{width:100%}.history-summary.snapshot-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.recent-sales-comparison{grid-template-columns:1fr}.topbar,.topbar-main{flex-direction:column;align-items:stretch}.topbar-title-row{align-items:flex-start}.previous-page-button{min-width:42px;padding-inline:11px}.receivable-leaderboards{grid-template-columns:1fr}.receivables-dashboard-heading{gap:8px}.nav-menu-panel{width:100%;max-height:none;margin-top:8px;position:static}.customer-detail-heading{flex-direction:column;align-items:stretch}.product-heading-actions{width:100%;min-width:0}.product-sales-ranking-table,.product-sales-ranking-table thead,.product-sales-ranking-table tbody,.product-sales-ranking-table tr,.product-sales-ranking-table th,.product-sales-ranking-table td{width:100%;display:block}.product-sales-ranking-table{min-width:0}.product-sales-ranking-table th:first-child,.product-sales-ranking-table td:first-child,.product-sales-ranking-table th:nth-child(2),.product-sales-ranking-table td:nth-child(2),.product-sales-ranking-table th:nth-child(3),.product-sales-ranking-table td:nth-child(3),.product-sales-ranking-table th:nth-child(4),.product-sales-ranking-table td:nth-child(4){width:100%}.product-sales-ranking-table thead{display:none}.product-sales-ranking-table tr{border-bottom:1px solid var(--line);padding:10px 0}.product-sales-ranking-table td{white-space:normal;overflow-wrap:anywhere;border-bottom:0;grid-template-columns:96px minmax(0,1fr);gap:10px;padding:4px 0;display:grid}.product-sales-ranking-table td:before{content:attr(data-label);color:var(--muted);text-transform:uppercase;font-size:.72rem;font-weight:800}}@media (prefers-reduced-motion:reduce){.receivable-rank-track.is-scrolling,.live-indicator i{animation:none}}.sales-heading,.sales-section-heading,.sales-plan-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.sales-heading h2{margin:4px 0 12px;font-size:30px}.sales-actions{flex-wrap:wrap;gap:8px;display:flex}.sales-actions button{padding:8px 12px;font-size:12px}.sales-priority{border-top:4px solid #247e82}.sales-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.sales-metrics article{background:#f1f7f7;border-radius:12px;gap:10px;padding:20px;display:grid}.sales-metrics strong{font-size:25px}.sales-metrics progress{accent-color:#247e82;width:100%}.sales-table{overflow-x:auto}.sales-table table{width:100%;min-width:720px}.sales-table td{vertical-align:top;padding:16px 12px}.sales-client{color:#247e82;text-align:left;background:0 0;border:0;padding:0;font-weight:600}.sales-overdue{color:#b64430;font-weight:600}.sales-hospital{border:1px solid #dce5e8;border-radius:12px;margin:16px 0;padding:18px}.sales-plan-row{border-bottom:1px solid #e5ebed;padding:12px 0}.sales-error{color:#a43226;background:#fff0ec;border-radius:8px;padding:12px}.sales-dialog-backdrop{z-index:200;background:#142b3e80;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.sales-dialog{gap:16px;width:min(560px,100%);max-height:90vh;display:grid;overflow-y:auto}.sales-dialog label{gap:7px;display:grid}.sales-dialog input,.sales-dialog select,.sales-dialog textarea{border:1px solid #ccd8de;border-radius:6px;width:100%;padding:10px}.sales-dialog input[type=checkbox]{width:auto}.sales-dialog textarea{min-height:100px}@media (max-width:650px){.sales-metrics{grid-template-columns:1fr}}.sales-dashboard button{color:#213b56;cursor:pointer;background:#fff;border:1px solid #ccd8de;border-radius:8px;padding:9px 12px}.sales-dashboard button:hover{background:#eaf3f3}.sales-dashboard .segmented-control button.active{color:#fff;background:#213b56}.sales-dashboard .sales-client{color:#247e82;background:0 0;border:0;padding:0}.sales-dashboard h3{margin:0 0 12px}.sales-dashboard .sales-dialog{background:#fff;padding:24px}.sales-dashboard .sales-dialog button[type=submit]{color:#fff;background:#247e82}.sales-dashboard button:disabled{opacity:.55;cursor:wait}.accounting-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-dashboard .metric strong{margin:8px 0;font-size:22px;display:block}.accounting-dashboard .metric small{color:var(--muted,#64748b);font-size:12px;display:block}.accounting-actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.accounting-record{border-top:1px solid #e2e8f0;margin-top:16px;padding-top:16px}.accounting-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.accounting-form label{gap:6px;display:grid}.accounting-form input,.accounting-form select{border:1px solid #cbd5e1;border-radius:8px;padding:10px}.accounting-error{color:#b91c1c}@media (max-width:800px){.accounting-metrics,.accounting-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:480px){.accounting-metrics,.accounting-form{grid-template-columns:1fr}}.customer-detail-page,.customer-detail-page .customer-history-section,.customer-detail-page .collapsible-panel{grid-template-columns:minmax(0,1fr);width:100%;max-width:100%}.customer-detail-page .collapsible-panel{overflow:hidden}.customer-detail-page .table-wrap{background:#fff;width:100%;min-width:0;max-width:100%;overflow:auto}.customer-detail-page .history-table-toolbar,.customer-detail-page .collapsible-panel>summary{flex-wrap:wrap}.customer-detail-page .history-table-toolbar .search{min-width:min(240px,100%);max-width:100%}.customer-detail-page .history-table-toolbar .search input{min-width:0}.purchase-line{white-space:normal;align-items:center;max-width:380px;min-height:28px;display:flex}.customer-history-table td{vertical-align:top}.history-table-toolbar .movement-filter{align-items:center;gap:8px;min-width:190px;display:flex}.history-table-toolbar .movement-filter>span{color:var(--muted);text-transform:uppercase;font-size:.78rem;font-weight:800}.history-table-toolbar .movement-filter select{width:auto;min-width:105px}.customer-history-table .consignment-movement-table{table-layout:fixed;min-width:1750px}.customer-history-table .consignment-movement-table th,.customer-history-table .consignment-movement-table td{overflow-wrap:anywhere;width:auto}.customer-history-table .consignment-movement-table th:first-child,.customer-history-table .consignment-movement-table th:nth-child(2){width:115px}.customer-history-table .consignment-movement-table th:nth-child(3){width:95px}.customer-history-table .consignment-movement-table th:nth-child(4){width:135px}.customer-history-table .consignment-movement-table th:nth-child(5){width:130px}.customer-history-table .consignment-movement-table th:nth-child(6){width:210px}.customer-history-table .consignment-movement-table th:nth-child(7){width:90px}.customer-history-table .consignment-movement-table th:nth-child(8){width:190px}.customer-history-table .consignment-movement-table th:nth-child(9){width:105px}.customer-history-table .consignment-movement-table th:nth-child(n+10):nth-child(-n+13){width:90px}.customer-history-table .consignment-movement-table th:nth-child(14){width:135px}.consignment-movement-table .sort-header{text-align:left;white-space:normal;align-items:flex-start}.source-invoice-link{color:var(--muted);margin-top:4px;font-size:.78rem;display:block}.customer-history-table .purchase-invoice-link,.customer-history-table .purchase-product-link{appearance:none;box-shadow:none;color:inherit;font:inherit;line-height:inherit;text-align:inherit;cursor:pointer;background:0 0;border:0;border-radius:0;margin:0;padding:0;display:inline}.customer-history-table .purchase-invoice-link:hover,.customer-history-table .purchase-product-link:hover{color:inherit;background:0 0}.customer-history-table .purchase-invoice-link:focus-visible,.customer-history-table .purchase-product-link:focus-visible{outline:2px solid var(--navy);outline-offset:3px}.customer-history-table table{table-layout:fixed;width:100%;min-width:850px}.customer-history-table th,.customer-history-table td{text-align:left;vertical-align:top;padding:12px 10px;line-height:1.45}.customer-history-table th:first-child{width:110px}.customer-history-table th:nth-child(2){width:95px}.customer-history-table th:nth-child(3){width:240px}.customer-history-table th:nth-child(4){width:55px}.customer-history-table th:nth-child(n+5){width:150px}.customer-history-table .purchase-product-link{white-space:normal;overflow-wrap:anywhere;text-align:left;max-width:100%}.customer-history-table td[rowspan]{white-space:nowrap}.customer-history-table .purchase-item-row td:not([rowspan]){border-bottom:0}.customer-history-table .purchase-invoice-link{color:var(--purchase-invoice-color,inherit)}.customer-history-table .purchase-invoice-link.invoice-number-paid{--purchase-invoice-color:#17613f}.customer-history-table .purchase-invoice-link.invoice-number-partial{--purchase-invoice-color:#9a5a00}.customer-history-table .purchase-invoice-link.invoice-number-unpaid{--purchase-invoice-color:#a72f2f}.customer-history-table .purchase-invoice-link.invoice-number-cancelled{--purchase-invoice-color:#126484}.customer-history-table .purchase-invoice-link.invoice-number-foc{--purchase-invoice-color:#6a32b8}.customer-history-table .purchase-invoice-link.invoice-number-draft{--purchase-invoice-color:#51606f}.customer-history-table .purchase-invoice-link.invoice-number-consignment{--purchase-invoice-color:#4f2d9f}.purchase-invoice-summary td{white-space:nowrap;vertical-align:middle}.purchase-expand{color:var(--navy);cursor:pointer;background:0 0;border:0;padding:4px;font-size:16px;line-height:1}.purchase-expand:disabled{opacity:1;cursor:default}.purchase-expanded-row>td{background:#fff;padding:8px 24px 16px}.purchase-products{width:100%;min-width:100%}.purchase-products td{padding:8px 12px}.customer-history-table .purchase-summary-table{table-layout:fixed;width:100%;min-width:1000px}.customer-history-table .purchase-summary-table>thead>tr>th:first-child{width:32px}.customer-history-table .purchase-summary-table>thead>tr>th:nth-child(2){width:105px}.customer-history-table .purchase-summary-table>thead>tr>th:nth-child(3){width:95px}.customer-history-table .purchase-summary-table>thead>tr>th:nth-child(4){width:115px}.customer-history-table .purchase-summary-table>thead>tr>th:nth-child(5){width:65px}.customer-history-table .purchase-summary-table>thead>tr>th:nth-child(n+6){width:190px}.customer-history-table .purchase-summary-table>thead>tr>th,.customer-history-table .purchase-summary-table>tbody>.purchase-invoice-summary>td{text-overflow:ellipsis;padding:12px 10px;overflow:hidden}.customer-history-table .purchase-products{table-layout:fixed;white-space:normal;width:100%;min-width:0}.customer-history-table .purchase-products>thead>tr>th:first-child{width:170px}.customer-history-table .purchase-products>thead>tr>th:nth-child(2){width:auto}.customer-history-table .purchase-products>thead>tr>th:nth-child(3){width:70px}.customer-history-table .purchase-products td{overflow-wrap:anywhere}.customer-history-table .purchase-summary-table>tbody>.purchase-invoice-summary>td:first-child{text-overflow:clip;padding:12px 4px}.filtered-totals{border-top:2px solid var(--line);color:var(--ink);white-space:normal;background:#f7f9fb;gap:8px;margin-top:14px;padding:14px 16px;display:grid}.filtered-totals dl{flex-wrap:wrap;gap:16px 28px;margin:0;display:flex}.filtered-totals dt{color:var(--muted);font-size:.8rem}.filtered-totals dd{overflow-wrap:anywhere;margin:3px 0 0;font-weight:800}.filtered-totals p{margin:0}.product-summary-sections{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px;margin-top:14px;display:grid}.product-summary-sections .filtered-totals{border:1px solid var(--line);border-top-width:4px;border-radius:8px;margin-top:0}.filtered-totals-inventory{background:#f3f7fb;border-top-color:var(--navy)!important}.filtered-totals-financial{background:#f2faf5;border-top-color:var(--green)!important}.filtered-totals-inventory>strong{color:var(--navy)}.filtered-totals-financial>strong{color:var(--green)}.product-results{max-height:360px;overflow:auto}.invoice-register-table{table-layout:fixed;white-space:normal;width:100%;min-width:0}.invoice-register-table th,.invoice-register-table td{vertical-align:top;white-space:normal;text-overflow:clip;padding:9px 5px;font-size:.81rem;line-height:1.4;overflow:visible}.invoice-register-table .sort-header{white-space:normal;text-align:left;align-items:flex-start;gap:3px;min-width:0;max-width:100%;display:flex}.invoice-register-table .sort-header span{flex-shrink:0}.invoice-register-table [data-column=number]{width:10%}.invoice-register-table [data-column=customer_name]{overflow-wrap:anywhere;width:17%}.invoice-register-table [data-column=invoice_date],.invoice-register-table [data-column=due_date]{width:7%}.invoice-register-table [data-column=total],.invoice-register-table [data-column=paid_amount]{width:11%}.invoice-register-table [data-column=payment_confirmation]{overflow-wrap:anywhere;width:9%}.invoice-register-table [data-column=fulfillment_status]{overflow-wrap:anywhere;width:7%}.invoice-register-table [data-column=business_type]{overflow-wrap:anywhere;width:8%}.invoice-register-table [data-column=status]{overflow-wrap:anywhere;width:7%}.invoice-register-table [data-column=__actions]{width:6%}.invoice-register-table .invoice-number{white-space:normal;overflow-wrap:anywhere;max-width:100%;padding:2px 4px;display:inline-block}.invoice-register-table .invoice-amount-number{white-space:nowrap}.invoice-register-table .row-actions{flex-wrap:wrap;gap:3px}.invoice-register-table .inline-text-button{white-space:normal}@media (max-width:1000px){.invoice-register-table{min-width:860px}}.purchase-totals dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px;display:grid}.purchase-totals dd{gap:3px;display:grid}.purchase-totals>.muted{font-size:.78rem}@media (max-width:600px){.purchase-totals dl{grid-template-columns:1fr}}.consignment-balances{min-width:0}.sales-invoice-table{isolation:isolate;max-height:65vh;overflow:auto}.sales-invoice-table thead th{z-index:2;box-shadow:0 1px 0 var(--line);background:#fff;position:sticky;top:0}.sales-invoice-table .sort-header{white-space:normal;text-align:left}.sales-summary-dropdown>.work-panel{margin-top:12px}.sales-matching-totals{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px;margin-top:14px;display:grid}.sales-matching-totals .filtered-totals{border:1px solid var(--line);background:#f8fafc;border-radius:10px;margin:0;padding:14px}.sales-matching-totals .filtered-totals dl{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:0;display:grid}.sales-matching-totals .filtered-totals dl>div{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:0;padding:10px 12px}.sales-matching-totals .filtered-totals dd{font-size:1rem}@media (max-width:1050px){.sales-matching-totals{grid-template-columns:1fr}}.consignment-balances .history-table-toolbar{flex-wrap:wrap}.consignment-balances .history-table-toolbar>label{align-items:center;gap:8px;display:flex}.consignment-balances>.table-wrap>table{min-width:1050px}.consignment-balances .consignment-product-history{background:#f8fafc;padding:12px}.consignment-product-history table{width:100%}.consignment-product-history td:last-child{white-space:normal;max-width:520px}
