/* Approved original navy + teal direction. All visual tokens live here. */
:root{--primary:#142330;--accent:#087f78;--text:#172735;--muted:#5e6c79;--bg:#f5f7fa;--surface:#fff;--border:#e0e6ec;--soft:#e5f4f0;--sidebar:#142330;--nav-active:#075f5c;--radius:11px;--sidebar-ink:#d8e3eb;--sidebar-muted:#a9bac7;--mint:#40d6b2;--shadow:0 2px 8px rgb(20 35 48 / 3%)}
body{font-size:14px;-webkit-font-smoothing:antialiased}h1{font-size:32px;font-weight:750;letter-spacing:-1.1px}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:14px}button{font-size:13px;font-weight:600;border-radius:7px;transition:background .15s,color .15s}input,select,textarea{font-size:14px;border-radius:7px}.card{border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}.primary{box-shadow:0 2px 3px rgb(8 127 120 / 12%)}.sidebar{width:240px;padding:24px 14px;background:var(--sidebar);color:var(--sidebar-ink);border-right:0}.sidebar .brand{color:var(--surface);font-size:30px;padding:0 14px;letter-spacing:-1.5px;gap:10px}.sidebar .brand small{display:none}.mark{background:var(--accent);color:var(--surface);font-size:25px;transform:skew(-8deg);border-radius:7px}.business-switch{display:flex;align-items:center;gap:10px;border:1px solid rgb(216 227 235 / 25%);padding:11px 12px;border-radius:7px;margin:28px 2px 0;font-size:12px;color:var(--surface)}.business-switch>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.business-monogram{display:grid;place-items:center;border:1px solid rgb(216 227 235 / 25%);border-radius:5px;flex:0 0 25px;height:25px}.workspace-label{color:var(--sidebar-muted);padding:24px 14px 12px;letter-spacing:1.1px}.sidebar nav{gap:3px;margin:0}.sidebar nav button{color:var(--sidebar-ink);font-size:13px;padding:10px 14px;min-height:43px;gap:14px;font-weight:450;position:relative}.sidebar nav button.active{background:var(--nav-active);color:var(--surface);font-weight:600}.sidebar nav button.active:before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:var(--mint)}.nav-symbol{display:inline-flex;width:20px}.sidebar footer{border-color:rgb(216 227 235 / 20%);font-size:12px;color:var(--sidebar-ink);padding:20px 12px 0}.sidebar footer p{color:var(--sidebar-muted);font-size:11px}.sidebar footer button{border-color:rgb(216 227 235 / 25%);color:var(--sidebar-ink)}.sidebar footer a{color:var(--mint)}.workspace{margin-left:240px;padding:0 28px 32px}.topbar{margin:0 -28px 28px;padding:18px 28px;min-height:76px;background:var(--surface);border-bottom:1px solid var(--border);gap:20px}.workspace-search{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:7px;padding:0 10px;max-width:570px;flex:1;background:var(--bg);color:var(--muted)}.workspace-search input{border:0;background:transparent;min-width:0;flex:1;padding:10px 0;outline-offset:0}.workspace-search button{border:0;background:transparent;min-height:36px;padding:7px;font-size:11px}.person{font-size:12px;gap:12px;flex-shrink:0}.avatar{background:var(--soft);color:var(--accent);border:1px solid var(--border);width:36px;height:36px}.heading{align-items:center;margin-bottom:24px;gap:14px}.heading>div:first-child{flex:1}.heading p{margin-bottom:0;font-size:14px}.page-date{font-size:10px;letter-spacing:1px;display:block;margin-bottom:9px}.heading h1{margin-bottom:8px}.dashboard-period{margin-left:auto}.dashboard-period select{background:var(--surface);min-height:42px;padding:10px 32px 10px 12px;width:150px}.banner{font-size:12px;padding:10px 14px;border-radius:7px;border:1px solid var(--border);background:var(--surface);color:var(--muted)}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric-card{padding:18px 20px;min-width:0}.metric-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.metric-head h2{font-size:13px;font-weight:550;letter-spacing:0;margin:0;color:var(--muted)}.metric-icon{display:inline-flex;color:var(--accent)}.metric-value{font-size:30px;letter-spacing:-1px;font-weight:720;font-variant-numeric:tabular-nums;line-height:1.25;display:block;overflow-wrap:anywhere}.metric-card p{font-size:11px;color:var(--muted);margin:10px 0 0}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(285px,1fr);gap:20px}.dashboard-grid>.card{min-width:0}.card-head{margin-bottom:16px;gap:12px}.card-head h2{margin:0 0 5px}.card-head p{font-size:12px;margin:0}.subtle-pill{padding:6px 14px;background:var(--soft);color:var(--accent);border:1px solid var(--border);border-radius:6px;font-size:11px}.chart-summary{display:flex;align-items:center;gap:8px;font-size:11px;margin:20px 0 8px}.chart-summary>.muted{margin-left:auto}.chart-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}.activity-chart{width:100%;height:auto;display:block}.chart-empty{font-size:11px;color:var(--muted);margin:14px 0 0}.pipeline-card>p{font-size:12px}.pipeline-row{display:grid;grid-template-columns:78px 1fr 24px;gap:12px;align-items:center;margin:24px 0;font-size:12px}.pipeline-row strong{text-align:right;font-variant-numeric:tabular-nums}.pipeline-row progress{appearance:none;border:0;border-radius:5px;width:100%;height:10px;background:var(--bg);accent-color:var(--accent)}progress::-webkit-progress-bar{background:var(--bg);border-radius:5px}progress::-webkit-progress-value{background:var(--accent);border-radius:5px}progress.pending::-webkit-progress-value{background:#f3b84b}progress.approved::-webkit-progress-value{background:#8fd5be}progress.transit::-webkit-progress-value{background:#59bdb3}.pipeline-card>small{font-size:10px}.recent-card .table-wrap{margin-top:4px}.recent-card table{font-size:12px}.recent-card td{padding:16px 9px}.recent-card th{padding:10px 9px;font-size:9px;letter-spacing:.5px}.recent-card td small{font-size:10px}.recent-card td .order-link{padding:0;min-height:36px;font-size:11px}.text-action{border:0;background:transparent;color:var(--accent);padding:6px;font-size:11px;white-space:nowrap}.badge{font-size:10px;padding:4px 8px;border-radius:5px;font-weight:550;white-space:nowrap}.badge.approved,.badge.delivered,.badge.connected,.badge.active{background:var(--soft);color:#06634f}.badge.in-transit{background:#e3f1fb;color:#1c608f}.badge.on-hold,.badge.pending{background:var(--warning-bg);color:var(--warning)}.attention-card h2{margin-bottom:18px}.attention-summary{display:flex;gap:8px;align-items:center;font-size:12px;margin-bottom:14px}.attention-dot{height:8px;width:8px;border-radius:50%;background:#e5a130}.low-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--border);font-size:11px}.low-row strong{font-weight:550}.low-row small{display:block;font-size:10px;margin-top:3px}.stock-pill{background:var(--warning-bg);color:var(--warning);padding:4px 7px;border-radius:5px;white-space:nowrap;font-size:10px}.courier-readiness{margin-top:20px}.courier-readiness h3{margin-bottom:12px}.courier-readiness>div{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:12px;gap:10px}.dashboard-footnote{margin:20px 0 0;font-size:11px;color:var(--muted)}.order-panel{border-radius:var(--radius);box-shadow:var(--shadow)}.order-tabs button{font-size:12px}.order-panel table{font-size:12px}.stats .stat{box-shadow:var(--shadow)}
@media(min-width:1600px){.workspace{padding-left:40px;padding-right:40px}.topbar{margin-left:-40px;margin-right:-40px;padding-left:40px;padding-right:40px}.metric-value{font-size:34px}}
@media(max-width:1180px){.dashboard-grid{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.person .muted{display:none}.dashboard-grid .card{padding:18px}.heading{flex-wrap:wrap}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.recent-card{grid-row:3}.heading h1{font-size:28px}}
@media(max-width:768px){.sidebar{position:static;width:100%;padding:18px 16px 10px}.sidebar .brand{padding:0;font-size:26px}.sidebar .mark{width:30px;height:30px}.business-switch{display:none}.sidebar nav{margin-top:18px;display:flex;overflow:auto;flex-direction:row;padding-bottom:6px}.sidebar nav button{flex-shrink:0;padding:10px 14px;min-height:42px}.sidebar .nav-symbol{display:none}.sidebar footer,.workspace-label{display:none}.workspace{margin:0;padding:0 18px 24px}.topbar{margin:0 -18px 24px;padding:14px 18px;min-height:66px;gap:12px}.workspace-search{max-width:none}.workspace-search input{font-size:12px}.workspace-search button{font-size:10px}.person{flex-shrink:0}.heading{align-items:center}.heading>div:first-child{flex-basis:100%}.heading>.primary{width:auto;margin:0}.dashboard-period{margin:0}.page-date{font-size:9px}.dashboard-grid{gap:16px}.dashboard-metrics{gap:12px}.metric-value{font-size:29px}.card{padding:18px}.topbar .person .muted{display:none}}
@media(max-width:640px){.heading{flex-direction:row;gap:10px}.dashboard-period{flex:1}.dashboard-period select{width:100%}.heading>.primary{flex:1;min-height:44px}.metric-card{padding:15px}.metric-value{font-size:26px}.metric-head h2{font-size:11px}.metric-icon svg{width:17px;height:17px}.metric-card p{font-size:10px;line-height:1.5;min-height:30px}.dashboard-grid .card{padding:18px}.recent-card td{padding:7px 0}.recent-card .card-head{flex-wrap:wrap}.recent-card .text-action{padding-left:0}.recent-card tr{padding:14px 0}.pipeline-row{grid-template-columns:78px minmax(0,1fr) 24px}.chart-summary{flex-wrap:wrap}.chart-summary>.muted{margin-left:0}.workspace-search svg{width:16px;flex-shrink:0}.workspace-search button{display:none}.workspace-search input{width:100%}.workspace-search{min-width:0}.avatar{width:32px;height:32px}.topbar .person{max-width:32px}.metric-value{overflow-wrap:anywhere}.dashboard-footnote{line-height:1.7}}
@media(max-width:640px){.topbar .person:not(:has(.avatar)){max-width:160px;font-size:11px}}
.report-tabs{display:flex;gap:10px;margin-bottom:22px;flex-wrap:wrap}.report-presets{display:flex;gap:8px;flex-wrap:wrap}.report-summary-strip{display:flex;flex-wrap:wrap;gap:20px;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:18px 22px;margin-bottom:20px}.report-summary-strip>div{display:flex;align-items:center;gap:8px}.report-summary-strip strong{font-size:20px;font-variant-numeric:tabular-nums}.report-summary-strip span{font-size:12px;color:var(--muted)}.decision-notes ul{margin:0;padding-left:20px;line-height:1.9;font-size:13px}.report-note{font-size:12px;line-height:1.8;color:var(--muted);margin:18px 0 0}.report-detail-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px}.report-detail-grid>.card{min-width:0}.report-detail-grid .card-head{flex-wrap:wrap}#product-report-table table{font-size:12px}#product-report-table th{font-size:10px}#product-report-table td{padding:14px 10px}.report-filters{align-items:end}.report-filters button{min-height:44px}
@media(max-width:1100px){.report-detail-grid{grid-template-columns:1fr}}
@media(max-width:640px){.report-tabs button{flex:1}.report-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.report-presets button{font-size:10px;padding:8px 4px}.report-summary-strip{gap:12px}.report-summary-strip>div{flex-basis:45%}#product-report-table td{padding:7px 0}.report-detail-grid .card-head{align-items:start}.report-detail-grid .card-head>button{width:100%}}
.action-brief{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid var(--border);background:var(--soft);border-radius:var(--radius);margin-bottom:20px}.action-brief h2{font-size:24px;margin:8px 0}.action-brief p{font-size:13px;max-width:650px;margin:0;color:var(--muted);line-height:1.8}.action-brief button{flex-shrink:0}.focus-card{border-left:4px solid var(--accent);background:var(--surface)}.focus-card h2{margin:10px 0}.focus-card p{font-size:13px;color:var(--muted);line-height:1.8;max-width:800px}.action-filters{display:flex;gap:20px;flex-wrap:wrap}.action-filters .field{flex:1;min-width:180px}.action-task{display:flex;gap:16px;padding:22px 0;border-top:1px solid var(--border);align-items:center}.action-task-content{flex:1;min-width:0}.action-task h3{font-size:14px;margin:8px 0}.action-task p{font-size:12px;line-height:1.8;color:var(--muted);margin:0;overflow-wrap:anywhere}.action-task-label{display:flex;gap:12px;align-items:center;color:var(--muted);font-size:11px}.priority-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:var(--bg);color:var(--muted);font-size:12px;font-weight:700;flex-shrink:0}.priority-high{background:var(--warning-bg);color:var(--warning)}.badge.high-priority{background:var(--warning-bg);color:var(--warning)}.action-rules summary{cursor:pointer;min-height:32px;font-weight:600}.action-rules p{color:var(--muted);line-height:1.9;font-size:12px;max-width:900px;margin-top:16px}.dashboard-action-link{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:0 0 18px;padding:12px 16px;background:var(--soft);border:1px solid var(--border);border-radius:8px;font-size:12px}.dashboard-action-link button{background:transparent;color:var(--accent);border:0;padding:6px;min-height:36px}
@media(max-width:640px){.action-brief{align-items:start;flex-direction:column;padding:20px}.action-brief h2{font-size:22px}.action-brief button{width:100%}.action-task{flex-wrap:wrap;gap:12px}.action-task-content{flex-basis:calc(100% - 55px)}.action-task>button{margin-left:50px}.action-filters .field{min-width:0;flex-basis:100%}.dashboard-action-link{align-items:start;flex-direction:column;gap:4px}.dashboard-action-link button{padding-left:0}}
/* Workspace polish: navigation hierarchy, command search and focused order review. */
.sidebar{padding:22px 12px 16px;display:flex;flex-direction:column;overflow-y:auto}.sidebar>.brand{flex-shrink:0}.business-switch{margin-top:22px;flex-shrink:0}.sidebar>.workspace-label{display:none}.sidebar nav{display:block;margin-top:18px;flex:1}.nav-section{margin-bottom:18px}.nav-section-label{display:block;color:var(--sidebar-muted);font-size:9px;text-transform:uppercase;letter-spacing:1.5px;padding:7px 16px 9px}.sidebar nav .nav-section button{display:flex;width:100%;gap:12px;min-height:39px;padding:8px 14px;font-size:12px;margin:2px 0}.nav-section button>svg{width:18px;height:18px;flex-shrink:0;opacity:.85}.nav-section button>span:not(.nav-count){flex:1;text-align:left}.nav-count{min-width:20px;padding:1px 5px;border:1px solid rgb(216 227 235 / 20%);border-radius:5px;font-size:9px;line-height:1.5;color:var(--sidebar-ink)}.sidebar footer{margin-top:0;padding-top:14px;flex-shrink:0}.sidebar footer p{display:none}.sidebar footer strong{display:block;font-size:10px;margin-bottom:9px}.sidebar footer button{min-height:32px;padding:5px 10px;font-size:10px}.topbar{min-height:72px;gap:16px}.topbar .workspace-search{background:var(--bg);border-color:transparent;transition:border-color .15s}.workspace-search:focus-within{border-color:var(--accent)}kbd{font-family:var(--font);font-size:10px;border:1px solid var(--border);background:var(--surface);border-radius:4px;padding:3px 6px;color:var(--muted)}.profile-settings{border:0;background:transparent;min-width:40px;min-height:40px;padding:8px;color:var(--muted)}.heading{margin-bottom:20px}.environment-note{display:flex;align-items:center;gap:9px;background:transparent;border:0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);border-radius:0;padding:9px 0;margin-bottom:20px;font-size:10px}.environment-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;flex-shrink:0}.environment-note>span:nth-child(2){font-weight:600;white-space:nowrap}.environment-detail{color:var(--muted);font-size:10px}.environment-note button{margin-left:auto;min-height:28px;border:0;background:transparent;color:var(--accent);font-size:10px;padding:3px 6px}.card{box-shadow:0 1px 3px rgb(20 35 48 / 2%)}.dashboard-grid>.card{padding:22px 24px}.dashboard-action-link{background:var(--surface);border-left:3px solid var(--accent);padding:8px 14px;font-size:11px}.metric-head{margin-bottom:12px}.metric-value{font-weight:750;letter-spacing:-1.1px}.refined-empty{padding:52px 24px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:12px}.refined-empty strong{font-size:18px;color:var(--text)}.refined-empty p{max-width:370px;line-height:1.8;font-size:12px;margin:0}.empty-icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid var(--border);background:var(--bg);color:var(--accent);border-radius:14px}.empty-icon svg{width:25px;height:25px}.mobile-menu-trigger,.mobile-dock{display:none}
.command-modal{width:min(660px,calc(100% - 32px));max-height:80vh;margin:12vh auto auto;padding:0;border:1px solid var(--border);border-radius:15px;box-shadow:0 28px 80px rgb(20 35 48 / 24%);overflow:auto}.command-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 22px 8px;gap:12px}.command-heading h2{font-size:16px;margin:0}.command-heading button{font-size:10px;min-height:30px;padding:4px 8px;background:var(--bg)}#command-query{display:block;width:calc(100% - 44px);margin:8px 22px;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:15px 0;font-size:16px;background:var(--surface)}#command-help{font-size:10px;color:var(--muted);padding:0 22px;line-height:1.7;margin-bottom:8px}.command-count{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin:10px 12px}#command-results{padding:4px 10px 14px;max-height:440px;overflow-y:auto}#command-results>button{display:flex;align-items:center;gap:14px;width:100%;justify-content:start;text-align:left;border:0;background:var(--surface);padding:12px;border-radius:8px;min-height:64px}#command-results>button:hover,#command-results>button:focus-visible{background:var(--soft)}.command-result-icon{height:36px;width:36px;display:grid;place-items:center;border-radius:8px;background:var(--bg);color:var(--accent);flex-shrink:0}#command-results strong{display:block;font-weight:550;font-size:13px}#command-results small{display:block;font-size:10px;margin-top:4px}.command-enter{margin-left:auto;color:var(--muted);font-size:15px}.command-modal>footer{padding:12px 22px;background:var(--bg);border-top:1px solid var(--border);font-size:10px;color:var(--muted);display:flex;justify-content:space-between}.product-quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.product-quick-stats>div{background:var(--bg);padding:14px;border-radius:8px}.product-quick-stats small,.product-quick-stats strong{display:block}.product-quick-stats strong{font-size:21px;margin-top:8px}.workspace-menu{width:min(520px,calc(100% - 24px));padding:24px;border-radius:14px;border:1px solid var(--border)}.workspace-menu header{display:flex;justify-content:space-between;gap:16px;align-items:start}.workspace-menu header h2{margin-top:6px}.workspace-menu section{margin:18px 0}.workspace-menu section h3{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.workspace-menu section>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.workspace-menu section button{justify-content:start;font-weight:450;font-size:12px;min-height:46px;background:var(--bg);border-color:transparent}.workspace-menu section button svg{width:17px;height:17px;flex-shrink:0}.workspace-menu>.muted{font-size:12px}.workspace-menu>button{width:100%}
#modal.order-drawer{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:min(780px,calc(100vw - 60px));max-width:none;border:0;border-left:1px solid var(--border);border-radius:0;padding:28px 32px;box-shadow:-20px 0 65px rgb(20 35 48 / 12%)}.order-drawer .dialog-top{position:sticky;top:-28px;z-index:2;background:var(--surface);padding:16px 0;border-bottom:1px solid var(--border);margin-bottom:22px}.order-drawer .dialog-top h2{font-size:18px}.drawer-summary{padding:18px 20px;border:1px solid var(--border);background:var(--bg);border-radius:10px;margin-bottom:20px}.drawer-summary>strong{display:block;font-size:30px;font-variant-numeric:tabular-nums;margin:8px 0;letter-spacing:-1px}.drawer-summary p{font-size:11px;color:var(--muted);margin:0}.order-drawer .detail-grid{gap:24px}.order-drawer .detail-grid>section{border:1px solid var(--border);padding:18px;border-radius:10px}.order-drawer .detail-grid p{font-size:13px;line-height:1.8}.order-drawer .detail-status{margin-bottom:20px}.order-drawer .detail-items{margin-top:24px}.order-drawer .order-totals{background:var(--bg);padding:16px 20px;border-radius:9px;margin-top:18px}.order-activity{margin-top:28px;padding-top:24px;border-top:1px solid var(--border)}.order-activity .card-head{align-items:start}.order-activity .card-head p{font-size:11px;margin-top:6px}.order-activity .card-head h3{margin:0}.order-activity .card-head button{font-size:11px}.activity-timeline{list-style:none;padding:0 0 0 22px;border-left:1px solid var(--border);margin:24px 0 12px 8px}.activity-timeline li{position:relative;padding:0 0 24px;font-size:12px}.activity-timeline li:before{content:'';position:absolute;left:-27px;top:4px;height:8px;width:8px;border:2px solid var(--surface);border-radius:50%;background:var(--accent)}.activity-timeline li p{line-height:1.8;color:var(--muted);font-size:12px;margin:7px 0}.activity-timeline li small{font-size:10px}#modal::backdrop,#command-modal::backdrop,#workspace-menu::backdrop{background:rgb(15 30 42 / 38%);backdrop-filter:blur(2px)}
@media(max-width:1180px){.sidebar{width:216px}.workspace{margin-left:216px}.sidebar .business-switch{font-size:11px}.sidebar .brand{font-size:27px}.dashboard-grid>.card{padding:20px}}
@media(max-width:768px){.sidebar{display:none}.workspace{margin-left:0;padding:0 18px 100px}.topbar{position:sticky;top:0;z-index:10;min-height:68px;margin-bottom:22px;background:rgb(255 255 255 / 96%);backdrop-filter:blur(12px);padding:12px 16px;gap:10px}.mobile-menu-trigger{display:inline-flex;min-width:40px;padding:8px;border:0;background:transparent;font-size:19px;color:var(--text)}.topbar .person .avatar,.topbar .person .muted{display:none}.topbar .person:has(.profile-settings){max-width:none;gap:0}.profile-settings{min-width:36px;min-height:40px;padding:6px}.workspace-search{min-width:0}.workspace-search input{font-size:14px}.workspace-search button{display:none}.environment-detail{display:none}.environment-note{margin-top:6px;margin-bottom:18px}.mobile-dock{position:fixed;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));bottom:0;left:0;right:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);box-shadow:0 -3px 16px rgb(20 35 48 / 4%);z-index:15}.mobile-dock button{display:flex;flex-direction:column;gap:4px;border:0;padding:5px 4px;color:var(--muted);background:transparent;min-height:48px;font-size:10px;font-weight:500}.mobile-dock button[aria-current=page]{color:var(--accent);background:var(--soft)}.mobile-dock button svg{width:20px;height:20px}.command-modal{margin-top:6vh;max-height:85dvh}.command-modal footer{gap:12px}.heading h1{font-size:28px}.workspace input:not([type=checkbox]),.workspace select,.workspace textarea,#modal input:not([type=checkbox]),#modal select,#modal textarea{font-size:16px}.workspace-search input{font-size:14px!important}.dashboard-grid>.card{padding:20px}.workspace-menu{max-height:86dvh;overflow:auto}#notice{bottom:90px}#modal.order-drawer{width:100vw;max-width:100vw;padding:20px;height:100dvh}.order-drawer .dialog-top{top:-20px}.order-drawer .detail-grid{grid-template-columns:1fr;gap:14px}.order-drawer .detail-grid>section{padding:16px}.order-drawer .order-totals{max-width:none}}
@media(max-width:420px){.workspace-menu{padding:20px}.workspace-menu section button{font-size:11px;padding:9px}.command-heading{padding:16px 16px 8px}.command-heading h2{font-size:15px}#command-query{margin-left:16px;margin-right:16px;width:calc(100% - 32px);font-size:16px}#command-help{padding:0 16px}#command-results strong{font-size:12px}.product-quick-stats{gap:8px}.product-quick-stats>div{padding:10px}.product-quick-stats strong{font-size:18px}.order-activity .card-head{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.bulk-bar:not(.has-selection)>select,.bulk-bar:not(.has-selection)>input,.bulk-bar:not(.has-selection)>#apply-bulk{display:none}.bulk-bar:not(.has-selection){min-height:48px;background:var(--surface);color:var(--muted)}.bulk-bar.has-selection{border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--soft)}#clear-selected{min-height:32px;padding:4px 8px;font-size:10px;background:transparent;border:0;color:var(--accent)}.command-heading button{min-height:40px;min-width:40px;font-size:22px;line-height:1;padding:6px;background:transparent;border:0}.workspace h1:focus{outline:none}.dashboard-action-link span{line-height:1.8}
@media(max-width:768px){.command-heading button{min-height:44px;min-width:44px}.order-panel .bulk-bar.has-selection{position:sticky;top:68px;z-index:5}.order-panel .bulk-bar.has-selection>span{font-size:12px}}
.loading-workspace{min-height:80vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px}.loading-mark{display:grid;place-items:center;width:48px;height:48px;background:var(--accent);color:var(--surface);border-radius:12px;font-size:32px;font-weight:700;margin-bottom:24px}.loading-workspace h1{font-size:25px;margin-bottom:12px}.loading-workspace p{font-size:13px;color:var(--muted)}.workspace-error{max-width:560px;margin:12vh auto;padding:32px}.workspace-error h1{font-size:28px;margin-top:16px}.workspace-error p{color:var(--muted);line-height:1.8}
@media print{.mobile-dock,.mobile-menu-trigger,.profile-settings,.environment-note,.command-modal,.workspace-menu{display:none!important}}
/* Populated dashboard: richer hierarchy with measured, real data visualizations. */
:root{--feature:#075e59;--outcome-0:#138570;--outcome-1:#4d93c6;--outcome-2:#67bba8;--outcome-3:#d7a743;--outcome-4:#9aabba;--outcome-5:#c96c78;--outcome-6:#bd9470;--outcome-7:#7f8895}.dashboard-context{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px;font-size:11px}.dashboard-context>div{display:flex;align-items:center;gap:8px}.live-indicator{width:6px;height:6px;border-radius:50%;background:var(--accent)}.dashboard-context strong{font-weight:550}.dashboard-context button{border:0;background:transparent;color:var(--accent);font-size:10px;min-height:32px;padding:3px 6px}.demo-data-pill{font-size:8px;font-weight:600;letter-spacing:.8px;padding:6px 9px;border:1px solid var(--border);color:var(--muted);background:var(--surface);border-radius:5px;white-space:nowrap}.dashboard-metrics-v2{gap:16px;margin-bottom:22px}.dashboard-metrics-v2 .metric-card{border-radius:12px;padding:20px;position:relative;overflow:hidden}.dashboard-metrics-v2 .metric-head{margin-bottom:16px}.dashboard-metrics-v2 .metric-head h2{font-size:12px;font-weight:550;color:var(--muted)}.metric-main{display:flex;justify-content:space-between;align-items:center;gap:6px}.dashboard-metrics-v2 .metric-value{font-size:32px;letter-spacing:-1.2px;line-height:1.2}.metric-spark{width:72px;max-width:32%;height:36px;color:var(--accent);flex-shrink:0;opacity:.85}.metric-comparison{display:flex;align-items:center;gap:7px;margin-top:16px;flex-wrap:wrap}.metric-delta{font-size:10px;font-weight:650;background:var(--soft);color:var(--accent);border-radius:4px;padding:3px 5px}.metric-delta.delta-down{color:var(--error);background:var(--error-bg)}.metric-baseline{font-size:9px;color:var(--muted)}.dashboard-metrics-v2 .metric-card p{font-size:9px;margin-top:9px}.dashboard-metrics-v2 .metric-featured{background:var(--feature);border-color:var(--feature);color:var(--surface);box-shadow:0 5px 15px rgb(7 94 89 / 12%)}.metric-featured .metric-head h2,.metric-featured .metric-icon,.metric-featured .metric-baseline,.dashboard-metrics-v2 .metric-featured p{color:var(--surface);opacity:.82}.metric-featured .metric-spark{color:var(--mint);opacity:1}.metric-featured .metric-delta{color:var(--surface);background:rgb(255 255 255 / 13%)}.attention-orbit{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--border);background:var(--bg);border-radius:50%;color:var(--warning)}.panel-eyebrow{font-size:8px;letter-spacing:1.6px;font-weight:600;color:var(--muted);display:block;margin-bottom:8px}.dashboard-grid-v2{gap:20px;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr)}.dashboard-grid-v2>.card{padding:22px;border-radius:12px}.dashboard-grid-v2 .card-head{margin-bottom:12px;align-items:center}.dashboard-grid-v2 .card-head h2{font-size:18px;font-weight:650;letter-spacing:-.45px;margin:0}.chart-switch{display:flex;align-items:center;border:1px solid var(--border);background:var(--bg);border-radius:7px;padding:3px;gap:2px}.chart-switch button{min-height:30px;padding:5px 10px;font-size:10px;border:0;background:transparent;color:var(--muted);border-radius:5px}.chart-switch button.active{background:var(--surface);color:var(--accent);box-shadow:0 1px 4px rgb(20 35 48 / 8%)}.dashboard-grid-v2 .chart-summary{font-size:10px;margin-top:18px}.chart-note{font-size:9px;color:var(--muted);line-height:1.7;margin:10px 0 0}.dashboard-grid-v2 .activity-chart{margin-top:14px}.outcome-ring{position:relative;width:160px;height:160px;margin:0 auto 8px}.outcome-ring svg{display:block;width:100%;height:100%}.outcome-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center}.outcome-ring strong{font-size:30px;font-weight:700;letter-spacing:-1.2px}.outcome-ring span{color:var(--muted);font-size:10px;margin-top:3px}.outcome-legend{display:grid;grid-template-columns:1fr 1fr;gap:11px 18px;margin-top:14px}.outcome-legend>div{display:flex;gap:7px;align-items:center;font-size:10px}.outcome-legend strong{margin-left:auto;font-weight:600}.outcome-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.outcome-0{stroke:var(--outcome-0)}.outcome-1{stroke:var(--outcome-1)}.outcome-2{stroke:var(--outcome-2)}.outcome-3{stroke:var(--outcome-3)}.outcome-4{stroke:var(--outcome-4)}.outcome-5{stroke:var(--outcome-5)}.outcome-6{stroke:var(--outcome-6)}.outcome-7{stroke:var(--outcome-7)}.outcome-bg-0{background:var(--outcome-0)}.outcome-bg-1{background:var(--outcome-1)}.outcome-bg-2{background:var(--outcome-2)}.outcome-bg-3{background:var(--outcome-3)}.outcome-bg-4{background:var(--outcome-4)}.outcome-bg-5{background:var(--outcome-5)}.outcome-bg-6{background:var(--outcome-6)}.outcome-bg-7{background:var(--outcome-7)}.dashboard-grid-v2 .recent-card td{padding:12px 8px;font-size:11px;vertical-align:middle}.dashboard-grid-v2 .recent-card th{font-size:8px;letter-spacing:.7px;padding:11px 8px}.recent-customer{display:block;font-size:10px;font-weight:450;margin-top:3px;color:var(--muted);max-width:170px}.recent-card .owner-chip{height:25px;width:25px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--accent);font-size:9px;font-weight:600}.recent-card .owner-chip+small{font-size:8px;white-space:nowrap}.dashboard-grid-v2 .recent-card .order-link{min-height:22px;font-size:10px}.dashboard-grid-v2 .recent-card td:first-child{min-width:128px}.dashboard-grid-v2 .recent-card td:nth-child(3){white-space:nowrap}.dashboard-grid-v2 .recent-card td small{font-size:9px}.dashboard-grid-v2 .recent-card tbody tr:hover{background:var(--bg)}.top-product{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--border)}.product-rank{font-size:10px;color:var(--muted);width:20px;font-variant-numeric:tabular-nums}.top-product>div{flex:1;min-width:0}.top-product strong{font-size:11px;font-weight:550;display:block}.top-product small{display:block;font-size:8px;margin-top:4px}.top-product>span:last-child{min-width:26px;text-align:right}.top-product>span:last-child strong{font-size:18px}.top-product progress{appearance:none;border:0;height:4px;width:100%;display:block;margin-top:10px;border-radius:4px;background:var(--bg)}.top-product progress::-webkit-progress-bar{background:var(--bg);border-radius:4px}.top-product progress::-webkit-progress-value{background:var(--accent);border-radius:4px}.product-report-link{margin-top:14px;padding-left:0;min-height:32px}.dashboard-bottom-strip{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border);background:var(--surface);border-radius:10px;margin-top:20px}.dashboard-bottom-strip>div{display:flex;gap:12px;align-items:center;padding:18px 20px;min-width:0}.dashboard-bottom-strip>div:first-child{border-right:1px solid var(--border)}.dashboard-bottom-strip>div>svg{flex-shrink:0;color:var(--accent);width:19px}.dashboard-bottom-strip strong{font-size:11px;font-weight:550;display:block}.dashboard-bottom-strip small{font-size:9px;display:block;margin-top:5px;line-height:1.6}.dashboard-bottom-strip .text-action{margin-left:auto;font-size:10px;flex-shrink:0}
@media(min-width:1500px){.dashboard-grid-v2{grid-template-columns:minmax(0,2.1fr) minmax(310px,1fr)}.dashboard-grid-v2 .recent-card td{font-size:12px}.dashboard-metrics-v2 .metric-value{font-size:36px}.metric-spark{width:90px}}
@media(max-width:1180px){.dashboard-grid-v2{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.dashboard-metrics-v2 .metric-value{font-size:30px}.dashboard-bottom-strip{grid-template-columns:1fr}.dashboard-bottom-strip>div:first-child{border-right:0;border-bottom:1px solid var(--border)}}
@media(max-width:900px){.dashboard-grid-v2{grid-template-columns:minmax(0,1fr)}.dashboard-grid-v2 .recent-card{grid-row:auto}.outcomes-card{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;align-items:center}.outcomes-card .card-head{grid-column:1/-1}.outcome-legend{margin-top:0}.dashboard-context{flex-wrap:wrap;gap:8px}.top-products-card .top-product{padding:15px 0}}
@media(max-width:640px){.dashboard-context{margin-bottom:16px}.dashboard-context>div{flex-wrap:wrap;gap:6px}.demo-data-pill{font-size:7px;letter-spacing:.6px}.dashboard-metrics-v2{gap:10px;margin-bottom:16px}.dashboard-metrics-v2 .metric-card{padding:16px 14px}.dashboard-metrics-v2 .metric-head h2{font-size:10px}.dashboard-metrics-v2 .metric-head{margin-bottom:12px}.dashboard-metrics-v2 .metric-value{font-size:26px;letter-spacing:-1px}.dashboard-metrics-v2 .metric-spark{display:none}.metric-comparison{margin-top:12px;gap:5px}.metric-baseline{font-size:8px}.metric-delta{font-size:9px}.dashboard-metrics-v2 .metric-card p{font-size:8px;min-height:24px;line-height:1.6}.attention-orbit{width:28px;height:28px}.attention-orbit svg{width:15px;height:15px}.dashboard-grid-v2>.card{padding:18px;border-radius:11px}.dashboard-grid-v2 .card-head h2{font-size:17px}.chart-switch button{font-size:9px;padding:4px 8px;min-height:32px}.panel-eyebrow{font-size:7px;letter-spacing:1.2px}.dashboard-grid-v2 .chart-card .card-head{align-items:start}.dashboard-grid-v2 .chart-card .card-head>div:first-child{max-width:58%}.outcomes-card{display:block}.outcome-ring{width:155px;height:155px}.outcome-legend{margin-top:14px;gap:13px 22px}.dashboard-grid-v2 .recent-card td{font-size:12px;padding:8px 0}.dashboard-grid-v2 .recent-card td:first-child{min-width:0}.recent-customer{font-size:12px;max-width:none}.dashboard-grid-v2 .recent-card .order-link{font-size:12px;min-height:30px}.recent-card .owner-chip{display:inline-grid;margin-right:8px}.recent-card .owner-chip+small{display:inline;font-size:10px}.dashboard-bottom-strip>div{flex-wrap:wrap;padding:16px}.dashboard-bottom-strip .text-action{margin-left:30px;min-height:32px}.top-product strong{font-size:12px}.top-product small{font-size:9px}}
.dashboard-metrics-v2 .metric-value{white-space:nowrap;overflow-wrap:normal}.metric-featured .metric-main{display:block}.metric-featured .metric-spark{display:none}.dashboard-metrics-v2 .metric-featured .metric-value{font-size:clamp(23px,2.3vw,34px)}.dashboard-metrics-v2 .metric-main{min-height:40px}
.badge.processing,.badge.ready-to-ship{background:var(--soft);color:var(--accent)}
@media(min-width:641px) and (max-width:1180px){.dashboard-metrics-v2 .metric-featured .metric-value{font-size:30px}}
@media(max-width:640px){.dashboard-grid-v2 .recent-card tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;padding:14px 0}.dashboard-grid-v2 .recent-card td{padding:0;min-width:0}.dashboard-grid-v2 .recent-card td:before{display:none}.dashboard-grid-v2 .recent-card td:first-child{grid-column:1;grid-row:1}.dashboard-grid-v2 .recent-card td:nth-child(2){grid-column:1;grid-row:2}.dashboard-grid-v2 .recent-card td:nth-child(3){grid-column:2;grid-row:1;text-align:right;align-self:center}.dashboard-grid-v2 .recent-card td:nth-child(4){grid-column:2;grid-row:2;text-align:right;align-self:start;padding-top:3px}.dashboard-grid-v2 .recent-card td:nth-child(5){display:none}.dashboard-grid-v2 .recent-card .order-link{min-height:38px}.dashboard-grid-v2 .recent-card .recent-customer{font-size:10px;margin:0 0 7px}.dashboard-grid-v2 .recent-card td:nth-child(2){font-size:11px}.dashboard-grid-v2 .recent-card td:nth-child(2) small{font-size:9px}}
@media(min-width:901px) and (max-width:1180px){.dashboard-metrics-v2{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dashboard-metrics-v2 .metric-card{padding:17px 14px}.dashboard-metrics-v2 .metric-head h2{font-size:10px}.dashboard-metrics-v2 .metric-icon svg{width:16px;height:16px}.dashboard-metrics-v2 .metric-value{font-size:28px}.dashboard-metrics-v2 .metric-featured .metric-value{font-size:24px}.dashboard-metrics-v2 .metric-baseline{font-size:8px}.dashboard-metrics-v2 .metric-delta{font-size:9px}.dashboard-metrics-v2 .metric-card p{font-size:8px}.dashboard-grid-v2 .card-head h2{font-size:17px}}
.dashboard-period{position:relative}.dashboard-date-select{display:flex;align-items:center;gap:6px}.dashboard-date-caption{display:block;text-align:right;font-size:9px;line-height:1.6;color:var(--muted);margin-top:6px}.dashboard-date-select>button{padding:8px;min-height:42px;min-width:40px;background:var(--surface);color:var(--accent)}.date-calendar{width:min(392px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--border);border-radius:18px;padding:22px;overflow:auto;box-shadow:0 22px 75px rgb(20 35 48 / 20%)}.date-calendar::backdrop{background:rgb(15 30 42 / 30%);backdrop-filter:blur(3px)}.calendar-title-row{display:flex;justify-content:space-between;gap:14px;align-items:start}.calendar-title-row h2{font-size:20px;letter-spacing:-.5px;line-height:1.3;margin:7px 0 0}.calendar-title-row .eyebrow{font-size:8px;letter-spacing:1.2px}.calendar-title-row>button{border:0;background:var(--bg);border-radius:50%;width:34px;height:34px;min-height:34px;padding:0;font-size:22px;color:var(--muted);flex-shrink:0}#calendar-instructions{font-size:11px;line-height:1.7;color:var(--muted);margin:12px 0 20px}.calendar-month-nav{display:flex;justify-content:space-between;align-items:center;padding:0 0 12px}.calendar-month-nav h3{margin:0;font-size:14px;font-weight:650}.calendar-month-nav button{min-width:36px;min-height:36px;padding:0;border:0;background:var(--bg);font-size:24px;color:var(--text)}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin-bottom:6px;text-align:center;font-size:10px;color:var(--muted)}.calendar-weekdays span{padding:7px 0}.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px 0}.calendar-days .calendar-day{font-size:12px;font-weight:450;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);position:relative}.calendar-days .calendar-day:hover:not(:disabled){background:var(--bg);border-radius:9px}.calendar-days .calendar-day[aria-current=date]{font-weight:750;text-decoration:underline;text-underline-offset:4px}.calendar-days .calendar-day.in-range{background:var(--soft);color:var(--accent)}.calendar-days .calendar-day.range-start,.calendar-days .calendar-day.range-end{background:var(--accent);color:var(--surface);font-weight:650;border-radius:9px}.calendar-days .calendar-day:disabled{opacity:.28;cursor:default}.calendar-days .calendar-day:focus-visible{outline:2px solid var(--text);outline-offset:-3px;z-index:1}.calendar-blank{min-height:44px}.calendar-date-fields{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;margin-top:18px;border-top:1px solid var(--border);padding-top:16px}.calendar-date-fields>.field{margin:0;min-width:0}.calendar-date-fields label{font-size:10px;color:var(--muted)}.calendar-date-fields input{font-size:12px;padding:9px 7px;min-width:0;width:100%;min-height:38px;border-radius:7px}.calendar-date-fields>span{font-size:14px;color:var(--muted);padding-top:16px}.calendar-selection{font-size:10px;line-height:1.7;color:var(--accent);margin:13px 0 0;min-height:17px}.date-calendar .form-message{font-size:11px;margin:7px 0;line-height:1.6}.calendar-footer{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.calendar-footer button{flex:1;min-height:42px;font-size:12px}.calendar-timezone{font-size:9px;color:var(--muted);text-align:center;margin:13px 0 0}
@media(max-width:768px){.dashboard-date-caption{text-align:left;font-size:9px}.dashboard-date-select select{flex:1;min-width:0}.dashboard-date-select>button{min-height:44px;min-width:40px}}
@media(max-width:420px){.date-calendar{padding:16px 12px;border-radius:15px}.calendar-title-row{padding:0 4px}.calendar-title-row h2{font-size:19px}.calendar-title-row>button{width:36px;height:36px;min-height:36px}#calendar-instructions{padding:0 4px;font-size:10px;margin:10px 0 16px}.calendar-weekdays,.calendar-days{gap:1px 0}.calendar-days .calendar-day{font-size:13px;min-height:44px}.calendar-date-fields{gap:5px}.calendar-date-fields input{font-size:12px}.calendar-selection{font-size:10px}.calendar-footer button{min-height:44px}}
@media print{.date-calendar{display:none!important}}

/* Compact date filter popover */
.dashboard-period{anchor-name:--dashboard-date}
.date-calendar{position:fixed;inset:auto;top:190px;right:24px;margin:0;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:14px;border-radius:12px;box-shadow:0 8px 30px rgb(20 35 48 / 16%)}
@supports(top:anchor(bottom)){.date-calendar{position-anchor:--dashboard-date;top:calc(anchor(bottom) + 8px);right:clamp(12px,anchor(right),calc(100vw - 332px));position-try-fallbacks:flip-block}}
.date-calendar::backdrop{background:transparent;backdrop-filter:none}
.calendar-title-row{align-items:center;padding:0 0 10px}.calendar-title-row h2{font-size:14px;letter-spacing:0;margin:0}.calendar-title-row>button{width:28px;height:28px;min-height:28px;font-size:20px;background:transparent}
.calendar-month-nav{padding:0 0 5px}.calendar-month-nav h3{font-size:13px}.calendar-month-nav button{min-height:30px;min-width:30px;font-size:20px}
.calendar-weekdays{margin:0}.calendar-weekdays span{padding:5px 0}.calendar-days .calendar-day,.calendar-blank{min-height:32px;font-size:12px}.calendar-days{gap:1px 0}
.calendar-date-fields{margin-top:10px;padding-top:10px;gap:6px}.calendar-date-fields label{font-size:10px}.calendar-date-fields input{min-height:32px;padding:6px;font-size:11px}.calendar-selection{margin:8px 0 0;font-size:10px;min-height:16px}.date-calendar .form-message:empty{display:none}.calendar-footer{margin-top:9px;gap:8px}.calendar-footer button{min-height:34px;font-size:12px;padding:6px 12px}
@media(max-width:640px){.date-calendar{position-anchor:auto;top:160px;right:12px;left:auto;padding:12px}.calendar-days .calendar-day,.calendar-blank{min-height:38px}.calendar-footer button{min-height:40px}}

/* Circular date selections */
.calendar-title-row{justify-content:flex-end;padding-bottom:0;height:24px}.calendar-title-row .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.calendar-days .calendar-day{width:32px;height:32px;min-height:32px;justify-self:center;border-radius:50%}.calendar-days .calendar-day.in-range,.calendar-days .calendar-day.range-start,.calendar-days .calendar-day.range-end,.calendar-days .calendar-day:hover:not(:disabled){border-radius:50%}
@media(max-width:640px){.calendar-days .calendar-day{width:38px;height:38px;min-height:38px}}
.calendar-days .calendar-day.range-start:hover:not(:disabled),.calendar-days .calendar-day.range-end:hover:not(:disabled){background:var(--accent);color:var(--surface)}

/* Date preset menu */
#dashboard-period{anchor-name:--period-button;display:flex;align-items:center;gap:9px;min-width:156px;min-height:42px;background:var(--surface);border:1px solid var(--border);border-radius:11px;padding:10px 12px;color:var(--text);font-size:12px;box-shadow:0 2px 4px rgb(20 35 48 / 3%)}#dashboard-period svg{color:var(--accent)}#dashboard-period .period-chevron{margin-left:auto;color:var(--muted);font-size:16px}.preset-menu{position:fixed;inset:auto;top:176px;right:168px;margin:0;width:190px;max-width:calc(100vw - 24px);padding:6px;border:1px solid var(--border);border-radius:13px;background:var(--surface);box-shadow:0 9px 30px rgb(20 35 48 / 13%);color:var(--text)}@supports(top:anchor(bottom)){.preset-menu{position-anchor:--period-button;top:calc(anchor(bottom) + 7px);right:clamp(12px,anchor(right),calc(100vw - 202px));position-try-fallbacks:flip-block}}.preset-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;border:0;border-radius:8px;background:transparent;padding:9px 11px;font-size:12px;text-align:left;color:var(--text);box-shadow:none}.preset-menu button:hover,.preset-menu button:focus-visible{background:var(--bg)}.preset-menu button[aria-checked=true]{background:var(--soft);color:var(--accent);font-weight:650}.preset-menu button:last-child{margin-top:4px;border-top:1px solid var(--border)}

.conversation-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px;margin:18px 0}.conversation-card .card-head{align-items:start;gap:12px}.conversation-card h3{margin:6px 0}.contact-phone{font-size:13px;color:var(--accent);font-weight:600;white-space:nowrap}.customer-outcomes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0 10px}.customer-outcomes>div{border-radius:9px;background:var(--bg);padding:10px}.customer-outcomes strong{font-size:20px;display:block}.customer-outcomes small{font-size:10px;color:var(--muted)}.conversation-card>.muted{font-size:11px;line-height:1.6}.conversation-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.conversation-actions button{min-height:44px;font-size:12px}.conversation-entry{border-top:1px solid var(--border);padding:10px 0}.conversation-entry p,.conversation-profile-note{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.conversation-entry small{font-size:10px;color:var(--muted)}.callback-hint{background:var(--soft);color:var(--accent);padding:10px;border-radius:8px;font-size:12px}.conversation-card h4{margin:14px 0 8px}#contact-note{width:100%;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;resize:vertical}@media(max-width:640px){.conversation-card{padding:12px}.conversation-card .card-head{display:block}.customer-outcomes{gap:5px}.customer-outcomes>div{padding:8px 5px}.conversation-actions button{flex:1;min-width:110px}}

/* Order desk: readable customer information and direct actions. */
.order-panel .row-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;min-width:150px}
.order-panel .row-shortcuts button,.order-panel .row-shortcuts a{font-size:12px;min-height:36px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface,#fff);color:var(--ink);text-decoration:none;display:inline-flex;align-items:center}
.order-panel .order-address,.order-panel .order-note{white-space:normal;min-width:200px;max-width:300px;font-size:13px;line-height:1.6;margin:8px 0 0;overflow-wrap:anywhere}
#duplicate-orders[aria-pressed="true"]{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.pagination>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pagination input{width:65px}.pagination label{font-size:12px}
@media(max-width:600px){.order-panel .row-shortcuts button,.order-panel .row-shortcuts a{min-height:44px}.pagination{flex-wrap:wrap;gap:12px}.order-panel .order-address,.order-panel .order-note{min-width:0}}

.source-label{display:inline-block;background:var(--soft);color:var(--accent);font-size:11px;padding:4px 7px;border-radius:5px;margin-top:6px}.invoice-sheet{background:white;color:#172b36;padding:16px}.invoice-sheet header{border-bottom:2px solid #16817a;padding-bottom:16px;overflow-wrap:anywhere}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:24px 0}.invoice-parties p{white-space:pre-wrap;overflow-wrap:anywhere}.invoice-footnote{font-size:12px;color:#53616a}
@media(max-width:600px){.invoice-parties{grid-template-columns:1fr}.invoice-sheet{padding:4px}}
@media print{
body.printing-invoice{background:white!important;overflow:visible!important}
body.printing-invoice .sidebar,body.printing-invoice .workspace,body.printing-invoice .mobile-nav,body.printing-invoice .dialog-top,body.printing-invoice #print-invoice{display:none!important}
body.printing-invoice #modal{position:static!important;display:block!important;border:0!important;box-shadow:none!important;width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important}
body.printing-invoice #modal::backdrop{display:none!important}
body.printing-invoice .invoice-sheet{padding:0!important}.printing-invoice .invoice-parties{grid-template-columns:1fr 1fr}.printing-invoice .table-wrap{overflow:visible!important}.printing-invoice table{min-width:0!important;width:100%!important}.printing-invoice tr{break-inside:avoid}.printing-invoice thead{display:table-header-group}.printing-invoice .order-totals{break-inside:avoid}
@page{size:A4;margin:15mm}
}
@media print{.printing-invoice .invoice-sheet table{display:table!important}.printing-invoice .invoice-sheet tbody{display:table-row-group!important}.printing-invoice .invoice-sheet tr{display:table-row!important}.printing-invoice .invoice-sheet td,.printing-invoice .invoice-sheet th{display:table-cell!important}.printing-invoice .invoice-sheet td::before{display:none!important}}

/* Bizport blue palette — approved colorful CRM direction. */
:root{--primary:#253444;--sidebar:#253444;--accent:#315fe4;--text:#243247;--muted:#5c6b80;--bg:#f3f6fb;--surface:#fff;--border:#e1e7f0;--soft:#edf2ff;--nav-active:#344d78;--mint:#82a9ff;--sidebar-ink:#e1e9f5;--sidebar-muted:#b1bfd1;--success:#16734c;--success-bg:#e6f7ee;--warning:#8a5700;--warning-bg:#fff3d7;--error:#b12f46;--error-bg:#ffedf0;--purple:#7044c6;--purple-bg:#f1ebff;--cyan:#126f91;--cyan-bg:#e5f5fc;--chart-green:#27b991;--chart-amber:#efaa25;--chart-red:#e35b71;--shadow:0 3px 16px rgb(31 57 99 / 4%)}
.primary{background:var(--accent);border-color:var(--accent);box-shadow:0 3px 9px rgb(49 95 228 / 16%)}
.sidebar .mark{background:var(--accent);transform:none;border:0;border-radius:10px}.sidebar nav button.active{background:var(--nav-active)}
.avatar,.member-dot{background:var(--purple-bg);color:var(--purple)}
.order-tabs button.chosen{background:var(--soft);color:var(--accent);border-bottom-color:var(--accent)}
.order-tabs button.chosen span{background:var(--accent);color:var(--surface)}
.order-panel tbody tr:hover{background:var(--soft)}
.badge.approved,.badge.confirmed,.badge.delivered,.badge.connected,.badge.active,.badge.healthy{background:var(--success-bg);color:var(--success)}
.badge.pending,.badge.new,.badge.on-hold,.badge.hold{background:var(--warning-bg);color:var(--warning)}
.badge.cancelled,.badge.returned,.badge.flagged,.badge.suspended{background:var(--error-bg);color:var(--error)}
.badge.processing,.badge.ready-to-ship{background:var(--purple-bg);color:var(--purple)}
.badge.in-transit,.badge.booked{background:var(--cyan-bg);color:var(--cyan)}
.metric-card{border-top:3px solid var(--accent)}.metric-icon{padding:8px;border-radius:10px;background:var(--soft);color:var(--accent)}
.metric-card:nth-child(2){border-top-color:var(--chart-green)}.metric-card:nth-child(2) .metric-icon{background:var(--success-bg);color:var(--success)}
.metric-card:nth-child(3){border-top-color:var(--purple)}.metric-card:nth-child(3) .metric-icon{background:var(--purple-bg);color:var(--purple)}
.metric-card:nth-child(4){border-top-color:var(--chart-amber)}.metric-card:nth-child(4) .metric-icon{background:var(--warning-bg);color:var(--warning)}
.metric-card:nth-child(2) .metric-spark{color:var(--success)}.metric-card:nth-child(3) .metric-spark{color:var(--purple)}.metric-card:nth-child(4) .metric-spark{color:var(--warning)}
.source-label{background:var(--purple-bg);color:var(--purple)}
.order-panel .row-shortcuts button{background:var(--soft);color:var(--accent);border-color:transparent}.order-panel .row-shortcuts a{background:var(--success-bg);color:var(--success);border-color:transparent}
.invoice-sheet header{border-bottom-color:var(--accent)}
:root{--outcome-0:#27b991;--outcome-1:#4581f5;--outcome-2:#79cfac;--outcome-3:#efaa25;--outcome-4:#9471dc;--outcome-5:#e35b71;--outcome-6:#d28748;--outcome-7:#63758f}
.metric-card.metric-featured{background:var(--accent);border-color:var(--accent);color:var(--surface)}.metric-featured .metric-icon{background:rgb(255 255 255 / 15%);color:var(--surface)}.metric-featured .metric-head h2,.metric-featured p{color:var(--surface)}
/* Compact operational order desk. */
.orders-workspace .heading{margin:14px 0;min-height:44px}.orders-workspace .heading h1{font-size:22px;margin:0}.orders-workspace .heading .page-date,.orders-workspace .heading p,.orders-workspace .environment-note,.orders-workspace>.banner{display:none}.orders-workspace .topbar{margin-bottom:12px;padding-top:12px;padding-bottom:12px;min-height:60px}
.orders-workspace .order-panel td{padding:12px 10px;vertical-align:middle}.orders-workspace .order-panel th{padding:11px 10px;font-size:10px;letter-spacing:.3px}.orders-workspace .order-panel table{min-width:1180px}
.invoice-shortcuts,.customer-line,.customer-phone{display:flex;align-items:center;gap:5px}.customer-line{flex-wrap:wrap}.customer-phone{margin:3px 0}.customer-phone>a:first-child{color:var(--text);font-size:12px;text-decoration:none;white-space:nowrap}
.order-panel .compact-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;padding:4px;background:transparent;border:0;color:var(--accent);border-radius:5px;text-decoration:none}.order-panel .compact-icon:hover{background:var(--soft)}.order-panel .whatsapp-shortcut{color:var(--success)}
.order-panel .order-link{min-height:24px;padding:0;text-align:left;justify-content:flex-start}.order-panel .source-label{display:table;font-size:10px;margin-top:4px;padding:2px 5px}.customer-kind{font-size:10px;padding:2px 5px;background:var(--warning-bg);color:var(--warning);border-radius:4px}
.order-panel .order-address{font-size:12px;line-height:1.45;margin:3px 0 0;min-width:200px;max-width:270px}.order-panel td[data-label="Created"]{min-width:115px}.order-panel td[data-label="Pickup warehouse"]{max-width:160px}.order-panel td[data-label="Pickup warehouse"] small{font-size:11px;line-height:1.4}.order-panel .order-tools{gap:6px}.order-panel .bulk-bar:not(.has-selection){min-height:36px;padding-top:4px;padding-bottom:4px}.orders-workspace .order-tabs button{padding:10px 12px;min-height:44px}.orders-workspace .order-toolbar,.orders-workspace .order-filters{padding:10px 12px}
@media(max-width:600px){.order-panel .compact-icon{width:44px;height:44px;min-height:44px}.orders-workspace .order-panel table{min-width:0}.orders-workspace .heading{flex-direction:row}.orders-workspace .heading>button{width:auto}.order-panel .order-address{min-width:0}.orders-workspace .order-panel td{padding:8px 12px}}
.integration-empty{padding:10px 0;font-size:13px;border-bottom:1px solid var(--border)}#integration-content .section-gap{margin-top:24px}#integration-content td{overflow-wrap:anywhere}#integration-content details p{font-size:13px;line-height:1.6}#integration-content .actions{gap:6px}
.unit-editor{grid-template-columns:minmax(140px,2fr) minmax(70px,1fr) minmax(65px,.8fr) minmax(80px,1fr) auto;gap:10px}.unit-editor .field{min-width:0}.unit-editor input,.unit-editor select{min-width:0;width:100%}@media(max-width:700px){.unit-editor{grid-template-columns:1fr 1fr}.unit-editor>.field:first-child{grid-column:1/-1}}

.pack-editor{grid-template-columns:minmax(0,2fr) minmax(80px,.6fr) minmax(130px,1fr) auto;align-items:center}.pack-editor small{display:block;color:var(--muted);margin-top:6px}.pack-editor .field{min-width:0}@media(max-width:800px){.pack-editor{grid-template-columns:1fr 1fr}.pack-editor .field:first-child{grid-column:1/-1}}

.history-change{min-width:150px;max-width:380px;overflow-wrap:anywhere;padding:8px 0}.history-change>strong{text-transform:capitalize}.history-change p{margin:5px 0;font-size:12px;white-space:pre-wrap}.history-change p strong{font-weight:600}

/* Soft full-card tints, shared by dashboard and workspace summary cards. */
:root{--card-blue:#eef4ff;--card-green:#eef8f2;--card-yellow:#fff8e8;--card-red:#fff0ef;--card-blue-line:#dce6f5;--card-green-line:#dcece2;--card-yellow-line:#eee4cb;--card-red-line:#f0dddd}
.metric-card:nth-child(4n+1){--metric-fill:var(--card-blue);--metric-line:var(--card-blue-line)}
.metric-card:nth-child(4n+2){--metric-fill:var(--card-green);--metric-line:var(--card-green-line)}
.metric-card:nth-child(4n+3){--metric-fill:var(--card-red);--metric-line:var(--card-red-line)}
.metric-card:nth-child(4n+4){--metric-fill:var(--card-yellow);--metric-line:var(--card-yellow-line)}
.metric-card,.metric-card.metric-featured,.dashboard-metrics-v2 .metric-card.metric-featured{background:var(--metric-fill,var(--card-blue));border:1px solid var(--metric-line,var(--card-blue-line));color:var(--text);box-shadow:0 2px 5px rgb(32 48 71 / 3%)}
.metric-featured .metric-head h2,.metric-featured .metric-baseline,.metric-featured p,.dashboard-metrics-v2 .metric-featured p{color:var(--muted);opacity:1}
.metric-featured .metric-icon{background:var(--card-blue-line);color:var(--accent);opacity:1}
.metric-featured .metric-delta{background:var(--card-blue-line);color:var(--accent)}
.metric-card:nth-child(4n+3) .metric-icon{background:var(--card-red-line);color:var(--error,#a94747)}
.metric-card:nth-child(4n+3) .metric-spark{color:var(--error,#a94747)}
.metric-card:nth-child(n){border-top:1px solid var(--metric-line,var(--card-blue-line))}

.distribution-member{padding:16px 0;border-bottom:1px solid var(--border)}.distribution-member h3{margin:0}.distribution-member .form-grid{gap:12px}

.distribution-toggle{display:flex;align-items:center;gap:10px;font-weight:600;color:var(--text);padding:12px 0}.distribution-toggle input{width:18px;height:18px}

/* Compact, touch-friendly SMS recipient selection. */
#sms-audience .list-row { display:flex; align-items:center; justify-content:flex-start; gap:10px; padding:10px 4px; font-size:14px; }
#sms-audience input[type=checkbox] { width:18px; height:18px; min-height:18px; flex:0 0 18px; margin:0; }
#sms-message { width:100%; box-sizing:border-box; }
/* SMS campaign workspace */
.sms-home {display:grid;gap:20px}.sms-connection {display:flex;align-items:center;gap:10px;background:#fff7e8;border:1px solid #f1dfbd;padding:13px 18px;border-radius:12px;color:#76591f;font-size:13px;flex-wrap:wrap}.sms-status-dot{width:7px;height:7px;background:#c08a20;border-radius:50%}.sms-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:#697890}.sms-campaigns .card-head{padding-bottom:20px}.sms-campaigns h2{margin:8px 0}.sms-excerpt{max-width:330px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sms-pill{display:inline-block;background:#edf2ff;color:#365ac5;padding:5px 10px;border-radius:20px;font-size:12px;font-weight:600}.sms-empty{text-align:center;padding:40px 16px;color:#68768c}.sms-empty h3{color:#243449;margin:16px 0 8px}.sms-empty-icon{display:inline-flex;padding:16px;background:#edf2ff;border-radius:16px;color:#4264d4}.sms-empty-icon svg{width:28px;height:28px}.sms-preferences summary{cursor:pointer;font-weight:600;display:flex;justify-content:space-between;gap:16px}.sms-preferences summary span{font-weight:400;color:#748197;font-size:13px}
#modal.sms-dialog{width:min(1080px,calc(100vw - 32px));max-width:1080px;padding:0;border-radius:20px}.sms-dialog .dialog-top{padding:22px 28px;border-bottom:1px solid #e6ebf2;margin:0}.sms-dialog #record-form{padding:0}.sms-composer{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.sms-compose-main{padding:24px 28px;min-width:0}.sms-compose-side{background:#f5f7fc;border-left:1px solid #e6ebf2;padding:28px;min-width:0}.sms-section+.sms-section{margin-top:24px}.sms-section h3{display:flex;align-items:center;gap:9px;font-size:15px;margin:0 0 18px}.sms-section h3>span{background:#edf1fd;color:#4664be;font-size:11px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%}.sms-section h3>small{margin-left:auto;font-weight:500;color:#4264c6;font-size:12px}.sms-field{margin-bottom:14px}.sms-field label{display:block;font-size:12px;font-weight:600;margin-bottom:7px;color:#55627a}.sms-field input,.sms-field select,.sms-field textarea{width:100%;min-width:0;font-size:14px;border-radius:9px;padding:11px 12px;box-sizing:border-box;background:#fff}.sms-field textarea{resize:vertical;min-height:112px}.sms-field small{display:block;text-align:right;color:#7a8799;font-size:11px;margin-top:6px}.sms-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sms-selection-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.sms-selection-tools button{font-size:12px;padding:7px 9px;min-height:36px}.sms-selection-tools small{font-size:11px;color:#7a8799;margin-left:auto}#sms-audience{max-height:200px;overflow:auto;border:1px solid #e5eaf2;border-radius:10px;padding:0 10px}#sms-audience .list-row{margin:0;padding:10px 3px;min-height:46px;font-size:12px;color:#718096}#sms-audience .list-row strong{display:block;font-size:13px;font-weight:500;color:#26354c}#sms-audience .list-row small{display:block;font-size:11px;font-weight:400;margin-top:3px}#sms-audience .list-row:has(input:checked){background:#f1f5ff}#sms-audience .list-row:has(input:disabled){opacity:.6}.sms-phone-preview{margin:20px 0 28px;padding:18px;background:white;border:1px solid #e0e6f0;border-radius:16px;box-shadow:0 6px 20px #25385805}.sms-preview-brand{font-size:12px;font-weight:600;color:#44536b}.sms-phone-preview p{background:#eaf0ff;padding:14px;border-radius:3px 14px 14px 14px;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;min-height:70px;color:#344767}.sms-phone-preview small{font-size:10px;color:#8290a4}.sms-setup-note{font-size:12px;line-height:1.6;color:#738096;padding-top:14px;border-top:1px solid #dfe6f0}.sms-setup-note strong{color:#576780}.sms-setup-note p{margin:6px 0}.sms-compose-footer{position:sticky;bottom:0;background:white;border-top:1px solid #e4e9f1;padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:2}.sms-compose-footer>div{display:flex;gap:10px;margin-left:auto}.sms-compose-footer p{margin:0;color:#b42332;font-size:13px}.sms-compose-footer button{min-height:44px}.sms-dialog #sms-review{font-size:12px;color:#3455a6;margin-top:14px}.sms-dialog [hidden]{display:none!important}
@media(max-width:760px){.sms-composer{grid-template-columns:1fr}.sms-compose-main,.sms-compose-side{padding:20px}.sms-compose-side{border-left:0;border-top:1px solid #e6ebf2}.sms-dialog .dialog-top{padding:16px 20px}.sms-compose-footer{padding:12px 16px;flex-wrap:wrap}.sms-compose-footer>div{width:100%;margin:0}.sms-compose-footer button{flex:1}.sms-filter-grid{grid-template-columns:1fr}.sms-campaigns .card-head{align-items:flex-start;flex-direction:column}.sms-selection-tools small{margin:4px 0}.sms-excerpt{max-width:220px}.sms-preferences summary{font-size:14px}}
.customer-phone .whatsapp-shortcut,.customer-phone .sms-shortcut{width:auto!important;min-width:38px;padding:5px 8px!important;border-radius:6px;font-size:11px;font-weight:600;line-height:1.2;min-height:30px}
.customer-phone .whatsapp-shortcut{background:#e9f7ef!important;color:#187447!important;border:1px solid #cce9d9}
.customer-phone .sms-shortcut{background:#edf2ff;color:#3659b7;border:1px solid #d7e1fb}
.customer-phone .whatsapp-shortcut:hover{background:#d7efdf!important}.customer-phone .sms-shortcut:hover{background:#dfe8ff}
.customer-phone .whatsapp-shortcut{display:inline-flex;align-items:center;justify-content:center;width:30px!important;min-width:30px;padding:5px!important}.customer-phone .whatsapp-shortcut svg{width:17px;height:17px}

.customer-phone .whatsapp-shortcut,.customer-phone .whatsapp-shortcut:hover,.customer-phone .whatsapp-shortcut:active{background:transparent!important;border:0!important;box-shadow:none!important;color:#187447!important}
.inventory-insights{display:grid;grid-template-columns:1fr 1.35fr;gap:20px;margin-bottom:22px}.inventory-insights .card{margin:0;padding:24px;min-width:0}.inventory-insights h2{font-size:19px;margin:7px 0 0}.inventory-insights .card-head{margin-bottom:22px;align-items:center}.inventory-live{font-size:11px;background:#eaf7f0;color:#278064;padding:6px 9px;border-radius:20px;white-space:nowrap}.inventory-health-body{display:flex;align-items:center;gap:28px;min-height:220px}.inventory-donut{width:164px;height:164px;border-radius:50%;padding:19px;box-sizing:border-box;flex-shrink:0}.inventory-donut>div{background:white;border-radius:50%;width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.inventory-donut strong{font-size:30px;line-height:1.2}.inventory-donut small{color:#7a8799;font-size:12px;margin-top:5px}.inventory-legend{flex:1;min-width:0}.inventory-legend>div{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #eef1f5;font-size:13px}.inventory-legend span{display:flex;gap:8px;align-items:center}.inventory-legend i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.inventory-chart-note{font-size:11px!important;color:#7b8797!important;margin:20px 0 0!important;line-height:1.5}.inventory-unit-label select{font-size:12px;padding:8px 12px;border-radius:9px;min-width:110px}.inventory-bar-row{margin-bottom:15px}.inventory-bar-row>div:first-child{display:flex;justify-content:space-between;gap:18px;font-size:12px;margin-bottom:7px}.inventory-bar-row span[title]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventory-bar-row strong{white-space:nowrap;font-weight:600;color:#52637b}.inventory-bar-track{height:7px;background:#edf1f7;border-radius:5px;overflow:hidden}.inventory-bar-track span{display:block;height:100%;border-radius:5px}.inventory-empty{padding:60px 10px;text-align:center;color:#7b8797;font-size:13px}
@media(max-width:1050px){.inventory-insights{grid-template-columns:1fr 1fr}.inventory-health-body{flex-direction:column;gap:12px}.inventory-legend{width:100%}}
@media(max-width:700px){.inventory-insights{grid-template-columns:1fr}.inventory-insights .card{padding:20px}.inventory-health-body{flex-direction:row;gap:18px;min-height:160px}.inventory-donut{width:132px;height:132px;padding:15px}.inventory-legend>div{font-size:12px}.inventory-live{display:none}}
.inventory-donut{position:relative;padding:0;background:transparent}.inventory-donut>svg{width:100%;height:100%;display:block}.inventory-donut>div{position:absolute;inset:20%;width:60%;height:60%;background:transparent}.inventory-bar-track{display:block;width:100%}
/* Shared refinement: follow-ups, profiles and reporting */
.followup-actions{min-width:240px}.followup-actions>button,.followup-actions>a{display:inline-flex;margin:3px 4px 3px 0;font-size:12px;padding:8px 10px;min-height:36px;align-items:center}.followup-call{color:#fff!important;background:#4567d8;border-radius:8px;text-decoration:none}.followup-actions [data-retention-complete]{background:#e9f6ef;color:#287353;border-color:#cde9d9}.followup-actions [data-retention-buy]{color:#3c5dab;background:#eff3ff;border-color:#dce5fc}.followup-more{display:inline-block;vertical-align:top;position:relative;margin:3px 0}.followup-more summary{cursor:pointer;list-style:none;padding:9px 12px;font-size:12px;border:1px solid #e2e7ee;border-radius:8px;color:#64748b}.followup-more[open]{background:#fff;padding-bottom:5px;border:1px solid #e3e8f1;border-radius:8px}.followup-more[open] button{display:block;width:100%;border:0;font-size:12px}.followup-help{font-size:12px;color:#718096;margin:12px 0 20px}.followup-help summary{cursor:pointer}.followup-help p{max-width:700px;line-height:1.7}.profile-overview{display:flex;gap:18px;align-items:center;padding:8px 0 22px}.profile-overview p{margin:7px 0;font-size:14px;line-height:1.6}.profile-avatar{width:60px;height:60px;flex-shrink:0;background:#edf2ff;color:#4564c2;border-radius:18px;display:grid;place-items:center;font-size:25px;font-weight:600}.profile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e4eaf2;background:#f7f9fd;border-radius:12px;overflow:hidden}.profile-metrics>div{padding:18px;border-right:1px solid #e4eaf2}.profile-metrics>div:last-child{border:0}.profile-metrics small{display:block;font-size:11px;color:#748198;margin-bottom:9px}.profile-metrics strong{font-size:19px;overflow-wrap:anywhere}.profile-tools{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.profile-tools button{font-size:12px}.profile-note{border-left:3px solid #e4b55b;padding:12px 16px;background:#fffaf0;font-size:13px;margin-bottom:22px}.profile-note p{margin:6px 0}.profile-tabs{display:flex;gap:8px;border-bottom:1px solid #e6ebf2;margin:24px 0 16px;padding-bottom:12px}.profile-tabs button{font-size:12px;border:0;background:#f3f5f9}.profile-tabs button[aria-pressed=true]{background:#eaf0ff;color:#365abb}.profile-timeline article{border-left:2px solid #e4eafa;padding:0 0 24px 20px;margin-left:6px;font-size:13px}.profile-timeline article p{margin:7px 0;color:#617089;overflow-wrap:anywhere}.profile-timeline small{font-size:11px;color:#8290a4}[data-profile-section][hidden]{display:none!important}.report-control-card{padding:20px 24px;background:white;border:1px solid #e3e8f1;border-radius:14px;margin-bottom:24px}.report-control-card .report-tabs{margin:0 0 18px;display:flex;gap:6px}.report-control-card .report-tabs button{box-shadow:none;font-size:13px;border-radius:8px}.report-control-card .report-filters{margin:0;gap:12px;align-items:end}.report-control-card .report-filters label{font-size:12px;color:#6b7890}.report-control-card .report-presets{display:flex;gap:6px;margin:0}.report-control-card .report-presets button{font-size:12px;min-height:38px;background:#f5f7fb;border:1px solid #e4e9f2;padding:8px 11px}.report-control-card input{font-size:13px;padding:10px;border-radius:8px}.report-note{font-size:11px!important;line-height:1.7;color:#7b8799!important}.report-summary-strip{border-radius:12px;overflow:hidden}.decision-notes{background:#f2f7ff!important;border-color:#dce7fa!important}.decision-notes h2{font-size:16px}.decision-notes li{font-size:13px;line-height:1.7}.report-detail-grid{gap:20px}
@media(max-width:640px){.profile-metrics{grid-template-columns:1fr}.profile-metrics>div{border-right:0;border-bottom:1px solid #e4eaf2;padding:12px 16px;display:flex;justify-content:space-between;gap:12px}.profile-metrics strong{font-size:16px}.profile-metrics small{margin:0}.profile-tabs{gap:3px}.profile-tabs button{padding:9px;font-size:11px}.profile-avatar{width:44px;height:44px;border-radius:12px}.report-control-card{padding:16px}.report-control-card .report-filters{display:grid;grid-template-columns:1fr 1fr}.report-control-card .report-presets{grid-column:1/-1;flex-wrap:wrap}.followup-actions{min-width:0}.profile-overview{align-items:flex-start}}
.report-leaders{margin:20px 0!important}.report-leaders .card-head small{font-size:11px;color:#78869b}.report-leaders h2{font-size:18px;margin:7px 0}.report-leader-row{display:flex;align-items:center;gap:16px;margin:18px 0}.report-rank{color:#9aa7bb;font-size:13px;font-weight:600}.report-leader-row>div{flex:1;min-width:0}.report-leader-label{display:flex;justify-content:space-between;gap:16px;font-size:13px;margin-bottom:8px}.report-leader-label strong{font-weight:500}.report-leader-label span{white-space:nowrap;color:#50627d}.report-leader-row svg{display:block;width:100%;height:6px}
.report-control-card .report-filters>*{min-width:0}.report-control-card .report-filters input{width:100%;min-width:0;box-sizing:border-box}.report-control-card .report-filters .field{min-width:0;width:auto}.report-control-card .report-tabs{flex-wrap:wrap}@media(max-width:640px){.report-control-card .report-filters{grid-template-columns:minmax(0,1fr)}.report-control-card .report-presets{grid-column:auto}.report-leader-label{font-size:12px}.report-leaders .card-head{flex-wrap:wrap}}

/* Team, account settings and business logs */
.workspace-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
.workspace-stat{padding:20px 24px;border:1px solid #dce7f4;border-radius:16px;background:#eef5ff;display:flex;align-items:center;justify-content:space-between;color:#46566f}
.workspace-stat:nth-child(2){background:#fff8e7;border-color:#f0e6c8}.workspace-stat:nth-child(3){background:#fff0ef;border-color:#f0dbda}.workspace-stat strong{font-size:30px;color:#25334b}
.member-identity{display:flex;align-items:center;gap:12px}.member-avatar{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:50%;background:#edf1ff;color:#4260c6;font-weight:700}.member-identity small{display:block;margin-top:5px;overflow-wrap:anywhere}.team-directory td{padding-top:20px;padding-bottom:20px}.team-directory .card-head{margin-bottom:16px}
.distribution-strip{display:flex;align-items:center;justify-content:space-between;gap:20px}.distribution-strip h2{margin:0 0 6px}.workspace-actions{display:flex;gap:10px;flex-wrap:wrap}.workspace-help{margin:18px 0;color:#61718a;font-size:13px}.workspace-help summary{cursor:pointer;padding:6px 0}.workspace-help p{max-width:700px;line-height:1.6}.workspace-help code{display:block;overflow-wrap:anywhere;padding-top:12px}
.settings-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.settings-layout>*{min-width:0}.settings-eyebrow{font-size:11px;letter-spacing:1.7px;font-weight:700;color:#73819b}.settings-layout h2{margin:14px 0}.settings-facts{margin:24px 0 0}.settings-facts>div{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #edf0f5;padding:14px 0}.settings-facts dt{color:#6a7890;font-size:13px}.settings-facts dd{margin:0;font-weight:600;font-size:13px;overflow-wrap:anywhere;text-align:right}.settings-connection{display:flex;align-items:flex-start;flex-direction:column}.settings-connection p{margin:0 0 18px}.settings-connection button{margin-top:auto}.settings-pending{font-size:12px;background:#fff6df;color:#8b651a;padding:7px 11px;border-radius:8px;margin-bottom:24px}.settings-advanced summary{cursor:pointer;font-weight:650;list-style-position:inside}.settings-advanced summary span{float:right;font-weight:400;font-size:13px;color:#728098}.settings-advanced p{font-size:13px;line-height:1.7;max-width:650px}.settings-advanced code,#key-output{overflow-wrap:anywhere}.settings-advanced small{display:block;margin:6px 0}
.workspace-log-tabs{display:flex;gap:6px;padding:5px;border:1px solid #e1e6ef;border-radius:12px;background:#edf1f7;width:fit-content;margin-bottom:20px}.workspace-log-tabs button{border:0;background:transparent;box-shadow:none;color:#66768e}.workspace-log-tabs button.active{background:white;color:#315cda;box-shadow:0 2px 6px #24334b0c}.log-change-details summary{cursor:pointer;color:#3861d0;font-weight:600;padding:8px 0}.log-change-details[open]{max-width:540px}.log-change-details .history-change{background:#f5f7fb;border-radius:8px;padding:12px;margin:10px 0;overflow-wrap:anywhere}[data-log-panel][hidden]{display:none!important}
@media(max-width:767px){.settings-layout{grid-template-columns:1fr}.distribution-strip{align-items:flex-start;flex-direction:column}.workspace-stat{padding:16px 12px;flex-direction:column;align-items:flex-start;gap:8px}.workspace-stat span{font-size:12px}.workspace-summary{gap:8px}.settings-advanced summary span{float:none;display:block;margin:8px 0 0 18px}.workspace-actions{width:100%}.workspace-actions button{flex:1}.settings-facts>div{flex-wrap:wrap}.settings-facts dd{text-align:left}.member-identity{min-width:0}}

/* Purchasing, suppliers and fulfillment share the compact workspace system. */
.ops-workspace .card-head{margin-bottom:18px}.ops-search{display:flex;align-items:center;gap:16px;margin-bottom:20px}.ops-search input{max-width:440px;min-width:0;margin:0}.ops-search span{font-size:12px;color:#6a7890;white-space:nowrap}.ops-workspace td{vertical-align:middle}.ops-quantity+ .ops-quantity{margin-top:10px}.ops-quantity small{margin-bottom:4px}.ops-couriers{margin-bottom:20px;gap:14px}.ops-couriers .card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}.ops-cod summary{cursor:pointer;font-weight:650;list-style-position:inside}.ops-cod summary span{font-size:12px;color:#73819b;font-weight:400;margin-left:12px}.ops-cod[open] summary{margin-bottom:20px}.ops-workspace [hidden]{display:none!important}.ops-workspace .actions{gap:8px;flex-wrap:wrap}.ops-workspace .actions button{font-size:12px}.ops-workspace [data-ops-empty]{text-align:center;padding:24px;color:#6a7890}
@media(max-width:640px){.ops-search{align-items:stretch;flex-direction:column;gap:8px}.ops-search input{max-width:none;width:100%}.ops-couriers{display:grid;grid-template-columns:1fr}.ops-workspace .table-wrap{overflow:visible}.ops-workspace table{min-width:0;width:100%}.ops-workspace thead{display:none}.ops-workspace tbody{display:grid;gap:14px}.ops-workspace tbody tr{display:block;border:1px solid #e1e7f0;border-radius:12px;padding:10px 12px;background:#fff}.ops-workspace tbody td{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:10px 0;min-width:0;border:0;border-bottom:1px solid #f0f2f7;overflow-wrap:anywhere;text-align:right}.ops-workspace tbody td:before{content:attr(data-label);font-size:11px;color:#7b879b;flex:0 0 76px;text-align:left}.ops-workspace tbody td:last-child{border:0}.ops-workspace tbody td .member-identity{text-align:left}.ops-workspace tbody td .actions{justify-content:flex-end}.ops-workspace tbody td small{font-size:11px}.ops-workspace .card{padding:18px}.ops-workspace .workspace-stat strong{font-size:25px}}
.ops-cell{min-width:0}.ops-cell>small{display:block}.ops-workspace .workspace-stat:nth-child(3){background:#edf8f2;border-color:#d9ebdf}.delivery-workspace .workspace-stat:nth-child(3){background:#fff0ef;border-color:#f0dbda}
@media(max-width:640px){.ops-cell{flex:1;overflow-wrap:anywhere}.ops-cell>small{margin-top:5px}.ops-cell>button{max-width:100%}.ops-workspace .member-avatar{flex-basis:32px;height:32px}.ops-workspace .actions button{min-height:40px}}
/* Follow-up primary actions and secondary dropdown. */
.followup-more[open]{border:0;padding-bottom:0;background:transparent}.followup-more-menu{margin-top:6px;padding:5px;background:#fff;border:1px solid #e2e7ee;border-radius:10px;box-shadow:0 6px 18px #24334b12;min-width:180px}.followup-more .followup-more-menu button{display:block;width:100%;margin:0;padding:10px 12px;min-height:40px;text-align:left;border:0;border-radius:6px;background:transparent;color:#34435b;box-shadow:none;font-size:12px}.followup-more .followup-more-menu button:hover{background:#f0f4fc}.followup-more summary:focus-visible{outline:2px solid #4567d8;outline-offset:2px}
.followup-more-menu[popover]{position:fixed;inset:auto;margin:0;width:220px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);overflow-y:auto;box-sizing:border-box}.followup-more-menu[popover]:not(:popover-open){display:none}.followup-more-menu[popover] button{display:block;width:100%;margin:0;padding:10px 12px;min-height:42px;text-align:left;border:0;border-radius:6px;background:transparent;color:#34435b;box-shadow:none;font-size:12px}.followup-more-menu[popover] button:hover{background:#f0f4fc}

/* Soft, distinct navigation icons on the slate sidebar. */
.sidebar .nav-section [data-ux-view]{--nav-tint:#a9c6ff;--nav-wash:#344761;border-radius:10px;transition:background .15s ease}
.sidebar .nav-section [data-ux-view="Action Center"],.sidebar .nav-section [data-ux-view="Purchase"],.sidebar .nav-section [data-ux-view="Billing"]{--nav-tint:#ffd990;--nav-wash:#4c4638}
.sidebar .nav-section [data-ux-view="Orders"],.sidebar .nav-section [data-ux-view="Deliveries"],.sidebar .nav-section [data-ux-view="Integrations"]{--nav-tint:#8de2e5;--nav-wash:#2c4952}
.sidebar .nav-section [data-ux-view="Customers"],.sidebar .nav-section [data-ux-view="Team"],.sidebar .nav-section [data-ux-view="Vendors"]{--nav-tint:#d2b5ff;--nav-wash:#423d59}
.sidebar .nav-section [data-ux-view="Follow-ups"],.sidebar .nav-section [data-ux-view="Inventory"],.sidebar .nav-section [data-ux-view="Import"]{--nav-tint:#a0e4bc;--nav-wash:#304b46}
.sidebar .nav-section [data-ux-view="SMS"],.sidebar .nav-section [data-ux-view="Reports"]{--nav-tint:#ffb8cb;--nav-wash:#503e4e}
.sidebar nav .nav-section button>svg{box-sizing:border-box;width:32px;height:32px;flex:0 0 32px;padding:7px;border-radius:10px;color:var(--nav-tint);background:var(--nav-wash);opacity:1;stroke-width:1.8;transition:background .15s ease,box-shadow .15s ease}
.sidebar nav .nav-section button{padding:6px 10px;gap:11px;min-height:44px}.sidebar nav .nav-section button:hover{background:#ffffff0d}.sidebar nav .nav-section button.active>svg{box-shadow:inset 0 0 0 1px #ffffff24;background:var(--nav-wash)}.sidebar nav .nav-section button.active{background:#405788;color:#fff}.sidebar nav .nav-section button:focus-visible{outline:2px solid #bed3ff;outline-offset:1px}
@media(prefers-reduced-motion:reduce){.sidebar .nav-section [data-ux-view],.sidebar nav .nav-section button>svg{transition:none}}

/* Color-only sidebar icons, without individual background tiles. */
.sidebar nav .nav-section button>svg,
.sidebar nav .nav-section button.active>svg{background:transparent;box-shadow:none;border-radius:0;width:22px;height:22px;flex-basis:22px;padding:1px}

/* Desktop icon rail expands over content, never shifts the workspace. */
@media(min-width:769px){
 .sidebar{position:fixed;inset:0 auto 0 0;width:76px;padding:22px 12px 16px;z-index:40;overflow-x:hidden;overflow-y:auto;transition:width .18s ease,box-shadow .18s ease}
 .workspace{margin-left:76px}
 .sidebar:hover,.sidebar:focus-within{width:240px;box-shadow:12px 0 30px #16233820}
 .sidebar>.brand{width:216px;min-height:38px;padding:0 8px;white-space:nowrap}
 .sidebar .brand .mark{flex:0 0 36px}
 .sidebar .business-switch{width:216px;margin:22px 0 0;padding:11px 8px;white-space:nowrap;border-color:transparent}
 .sidebar .business-monogram{flex-shrink:0}
 .sidebar nav{width:216px}
 .sidebar nav .nav-section button{width:216px;padding-left:15px;gap:15px;white-space:nowrap}
 .sidebar .nav-section-label{white-space:nowrap;transition:opacity .12s}
 .sidebar:not(:hover):not(:focus-within) .nav-section-label{opacity:0}
 .sidebar:not(:hover):not(:focus-within) .brand{font-size:0;gap:0}
 .sidebar:not(:hover):not(:focus-within) .business-switch>span:not(.business-monogram),
 .sidebar:not(:hover):not(:focus-within) .nav-section button>span{visibility:hidden}
 .sidebar:not(:hover):not(:focus-within) .nav-section button{width:52px}
 .sidebar footer{width:216px;min-height:64px}
 .sidebar footer strong{white-space:nowrap}
 .sidebar:not(:hover):not(:focus-within) footer strong{visibility:hidden}
 .sidebar footer #logout-side:before{content:'↪';font-size:20px;line-height:1}
 .sidebar footer #logout-side{gap:10px}
 .sidebar:not(:hover):not(:focus-within) footer #logout-side{font-size:0;width:48px;padding:6px}
}
@media(prefers-reduced-motion:reduce){.sidebar,.sidebar .nav-section-label{transition:none}}
.account-trigger{border:0;background:transparent;padding:4px;gap:7px}.account-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#eeeafa;color:#66529b;font-weight:650}.account-chevron{color:#718096}.account-popup{position:fixed;inset:70px 20px auto auto;margin:0;width:250px;max-width:calc(100vw - 24px);padding:18px;border:1px solid #dfe5ef;border-radius:14px;background:#fff;color:#263449;box-shadow:0 12px 35px #1e293b22}.account-popup strong,.account-popup small{display:block;overflow-wrap:anywhere}.account-popup small{margin:6px 0 14px}.account-popup button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px;font-size:13px}.account-popup #profile-signout{color:#b1434f;border-top:1px solid #edf0f5;border-radius:0}.configuration-options{display:grid;gap:8px}.configuration-options button{display:flex;justify-content:space-between;padding:16px;text-align:left}.sidebar footer #configuration-trigger{display:flex;gap:15px;width:216px;border:0;background:transparent;color:var(--sidebar-ink);padding:12px 15px;font-size:12px;white-space:nowrap}.sidebar footer #configuration-trigger svg{flex:0 0 22px;width:22px;height:22px;color:#9edbe2}.sidebar footer{position:sticky;bottom:-16px;background:var(--sidebar);z-index:2}
@media(min-width:769px){.sidebar:not(:hover):not(:focus-within) #configuration-trigger span{visibility:hidden}.sidebar:not(:hover):not(:focus-within) #configuration-trigger{width:52px}}
/* Configuration follows the same left alignment as navigation items. */
.sidebar footer #configuration-trigger{justify-content:flex-start;padding:12px 15px;margin:0;gap:15px;font-weight:500}.configuration-inline{padding:0 6px 8px 44px;max-height:210px;overflow-y:auto}.sidebar footer .configuration-inline button{display:block;width:100%;padding:9px 4px;min-height:36px;border:0;background:transparent;text-align:left;color:var(--sidebar-ink);font-size:11px;font-weight:400;white-space:normal}.sidebar footer .configuration-inline button:hover{color:#fff;background:#ffffff0a}.configuration-inline[hidden]{display:none!important}
@media(min-width:769px){.sidebar:not(:hover):not(:focus-within) .configuration-inline{display:none}.sidebar footer{flex-shrink:0}}
.sidebar footer{padding-left:0;padding-right:0}
.account-popup{max-height:calc(100dvh - 90px);overflow-y:auto}.account-popup button{min-height:44px}.account-trigger{min-width:44px;min-height:44px}#mobile-config-options{padding:8px 0;max-height:none}#mobile-config-options button{display:block;width:100%;min-height:44px;padding:12px 16px;text-align:left;border:0;background:#f3f6fb;color:#34435b;font-size:13px;margin:4px 0;border-radius:8px}#mobile-configuration{width:100%;justify-content:space-between}#mobile-configuration:after{content:'⌄'}#mobile-configuration[aria-expanded=true]:after{content:'⌃'}
/* Order search and filters share the title row on wide screens. */
.orders-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.orders-heading>div:first-child{flex:0 0 auto}.orders-heading h1{margin:0}.orders-heading .order-filters{flex:1;display:grid;grid-template-columns:minmax(180px,1fr) minmax(140px,170px) minmax(140px,170px) auto;gap:8px;padding:0;margin:0;border:0;background:transparent;min-width:0}.orders-heading .order-filters input,.orders-heading .order-filters select,.orders-heading .order-filters button{min-width:0;width:100%;margin:0;min-height:42px;padding:9px 10px;font-size:12px}.orders-heading #add{flex-shrink:0;min-height:42px;font-size:12px}.orders-heading .page-date{display:none}
@media(max-width:1150px){.orders-heading .order-filters{order:3;flex-basis:100%;grid-template-columns:minmax(180px,1fr) 160px 160px auto}.orders-heading #add{margin-left:auto}}
@media(max-width:640px){.orders-heading .order-filters{grid-template-columns:1fr 1fr}.orders-heading .order-filters input{grid-column:1/-1}.orders-heading .order-filters button{grid-column:1/-1}.orders-heading #add{width:auto}.orders-heading .order-filters select{font-size:13px}.orders-heading{gap:14px}}
