:root{--background: hsl(0 0% 100%);--surface: hsl(210 40% 98%);--foreground: hsl(222.2 84% 4.9%);--muted: hsl(215.4 16.3% 46.9%);--muted-2: hsl(215 20% 65%);--border: hsl(214.3 31.8% 91.4%);--border-soft: hsl(214 28% 94%);--primary: hsl(221.2 83.2% 53.3%);--primary-hover: hsl(221.2 83.2% 48%);--primary-foreground: hsl(0 0% 100%);--destructive: hsl(0 74% 42%);--destructive-bg: hsl(0 86% 97%);--success: hsl(160 84% 28%);--success-bg: hsl(152 81% 96%);--warning: hsl(38 92% 38%);--chip-info-bg: hsl(214 100% 97%);--chip-info-fg: hsl(221.2 83.2% 43%);--chip-info-border: hsl(214 96% 87%);--radius: .5rem;--radius-sm: .375rem;--shadow-card: 0 1px 2px 0 rgb(15 23 42 / .04), 0 1px 3px 0 rgb(15 23 42 / .06);--shadow-card-hover: 0 4px 6px -1px rgb(15 23 42 / .08), 0 2px 4px -2px rgb(15 23 42 / .06)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;color:var(--foreground);background:var(--surface)}button,input,select,textarea{font:inherit}h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.01em;color:var(--foreground)}h1{font-size:24px;line-height:1.2}h2{font-size:17px;line-height:1.3}.loading-screen,.state-screen,.login-layout{min-height:100vh;display:grid;place-items:center;padding:24px}.state-screen{gap:12px;text-align:center}.state-screen h1{font-size:20px}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-panel{width:min(400px,100%);padding:32px;border:1px solid var(--border);border-radius:var(--radius);background:var(--background);box-shadow:var(--shadow-card)}.eyebrow{margin:0 0 6px;color:var(--muted);font-size:12px;font-weight:500;letter-spacing:.02em}.login-form{display:grid;gap:16px;margin-top:24px}.login-form label,.action-confirm label,.form-grid label,.notes-field{display:grid;gap:6px;color:var(--foreground);font-size:13px;font-weight:500}.login-form input,.header-actions select,.form-grid input,.team-form input,.team-form select,.action-confirm input[type=date],.notes-field textarea,.product-row input{width:100%;min-height:38px;border:1px solid var(--border);border-radius:var(--radius-sm);padding:0 12px;background:var(--background);color:var(--foreground);transition:border-color .15s ease,box-shadow .15s ease}.login-form input:focus,.header-actions select:focus,.form-grid input:focus,.team-form input:focus,.team-form select:focus,.action-confirm input[type=date]:focus,.notes-field textarea:focus,.product-row input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.notes-field textarea{min-height:84px;padding:10px 12px;resize:vertical}.primary-button,.state-screen button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 18px;border:0;border-radius:var(--radius-sm);background:var(--primary);color:var(--primary-foreground);font-size:14px;font-weight:500;cursor:pointer;transition:background .15s ease}.primary-button:hover:not(:disabled),.state-screen button:hover{background:var(--primary-hover)}.primary-button:disabled{cursor:not-allowed;opacity:.55}.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--background);color:var(--muted);cursor:pointer;transition:background .15s ease,color .15s ease}.icon-button:hover:not(:disabled){background:var(--surface);color:var(--foreground)}.icon-button:disabled{cursor:not-allowed;opacity:.55}.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--background);color:var(--foreground);font-size:13px;font-weight:500;cursor:pointer;transition:background .15s ease,border-color .15s ease}.secondary-button:hover:not(:disabled){background:var(--surface);border-color:#bccadc}.secondary-button:disabled{cursor:not-allowed;opacity:.45}.form-error{border:1px solid hsl(0 86% 90%);border-radius:var(--radius-sm);padding:10px 12px;background:var(--destructive-bg);color:var(--destructive);font-size:13px}.form-message{border:1px solid hsl(152 60% 85%);border-radius:var(--radius-sm);padding:10px 12px;background:var(--success-bg);color:var(--success);font-size:13px}.portal-shell{min-height:100vh}.portal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px clamp(16px,4vw,32px);border-bottom:1px solid var(--border);background:var(--background)}.portal-header h1{font-size:15px;font-weight:600;line-height:1.3}.portal-header-identity{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.portal-brand{display:inline-flex;align-items:center;gap:6px;color:var(--primary);font-size:14px;font-weight:600;letter-spacing:-.005em}.portal-header-divider{width:1px;height:18px;background:var(--border)}.portal-header-divider-dot{width:auto;height:auto;background:transparent;color:var(--muted-2);font-size:14px;line-height:1}.portal-header-site-icon{color:var(--muted-2);flex-shrink:0}.portal-header-site-name{color:var(--muted);font-size:13px;font-weight:500}.role-pill{display:inline-block;padding:1px 9px;border-radius:999px;background:#e8eefd;color:var(--primary);font-size:11px;font-weight:500;letter-spacing:.02em;text-transform:capitalize}.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.header-actions select{min-width:180px;min-height:32px}.header-actions .icon-button{width:32px;height:32px}.user-menu{position:relative}.user-avatar{width:32px;height:32px;border-radius:999px;border:0;cursor:pointer;color:#fff;font-size:13px;font-weight:600;letter-spacing:.02em;display:inline-flex;align-items:center;justify-content:center;transition:transform .12s ease,box-shadow .12s ease}.user-avatar:hover{transform:scale(1.05);box-shadow:0 0 0 2px #e8eefd}.user-avatar:focus-visible{outline:none;box-shadow:0 0 0 2px var(--primary)}.user-menu-dropdown{position:absolute;top:calc(100% + 6px);right:0;z-index:50;min-width:220px;background:var(--background, #fff);border:1px solid var(--border-soft, #e5e7eb);border-radius:10px;box-shadow:0 4px 6px -1px #0f172a14,0 10px 25px -5px #0f172a1f;padding:6px;animation:portal-fade-in .12s ease-out}@keyframes portal-fade-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.user-menu-info{padding:8px 10px 6px;display:flex;flex-direction:column;gap:2px}.user-menu-info strong{font-size:13px;font-weight:600;color:var(--foreground)}.user-menu-info span{font-size:12px;color:var(--muted)}.user-menu-divider{height:1px;background:var(--border-soft, #e5e7eb);margin:4px 0}.user-menu-section-label{padding:4px 10px;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.user-menu-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border:0;background:transparent;border-radius:6px;font-size:13px;color:var(--foreground);cursor:pointer;text-align:left}.user-menu-item:hover{background:var(--surface, hsl(220 14% 96%))}.user-menu-item.is-active{color:var(--primary);font-weight:600}.user-menu-item-destructive{color:#db2424}.user-menu-item-destructive:hover{background:#fdeded}.portal-content{display:grid;gap:16px;width:min(1180px,calc(100% - 32px));margin:24px auto 40px}.portal-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--border);padding:0 2px}.portal-tab{position:relative;padding:10px 14px;border:0;background:transparent;color:var(--muted);font-size:14px;font-weight:500;cursor:pointer;transition:color .15s ease}.portal-tab:hover:not(.portal-tab-active){color:var(--foreground)}.portal-tab-active{color:var(--primary)}.portal-tab-active:after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:var(--primary);border-radius:2px}.portal-tab:focus-visible{outline:2px solid var(--primary);outline-offset:-2px;border-radius:4px}.load-more-row{display:flex;justify-content:center;padding-top:12px;margin-top:4px;border-top:1px solid var(--border-soft)}.portal-table-wrap{margin-top:4px;overflow-x:auto}.portal-table{width:100%;border-collapse:collapse;font-size:13px}.portal-table thead th{padding:8px 12px;text-align:left;font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--border);background:transparent;white-space:nowrap}.portal-table tbody td{padding:10px 12px;border-bottom:1px solid var(--border-soft);color:var(--foreground);vertical-align:middle}.portal-table tbody tr:last-child td{border-bottom:0}.portal-table tbody tr:nth-child(2n) td{background:color-mix(in srgb,var(--surface) 60%,transparent)}.portal-table tbody tr:hover td{background:var(--surface)}.portal-table-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;color:var(--muted)}.portal-table-muted{color:var(--muted);opacity:.6}.portal-table-amount{text-align:right;font-weight:500;white-space:nowrap}.portal-table-actions{display:flex;justify-content:flex-end;gap:6px;padding-right:4px!important}.portal-table-row-clickable{cursor:pointer}.portal-detail-items-table{font-size:13px}.portal-detail-items-table thead th,.portal-detail-items-table tbody td{padding:8px 10px}.portal-drawer-overlay{position:fixed;inset:0;background:#0f172a66;z-index:100;display:flex;justify-content:flex-end;animation:portal-drawer-fade .18s ease-out}@keyframes portal-drawer-fade{0%{opacity:0}}.portal-drawer{width:min(520px,100%);height:100%;background:var(--background);border-left:1px solid var(--border);box-shadow:-8px 0 24px -8px #0f172a26;display:flex;flex-direction:column;animation:portal-drawer-slide .22s cubic-bezier(.16,1,.3,1)}@keyframes portal-drawer-slide{0%{transform:translate(100%)}}.portal-drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 22px 14px;border-bottom:1px solid var(--border);flex-shrink:0}.portal-drawer-header .eyebrow{margin-bottom:4px}.portal-drawer-header h2{font-size:18px;line-height:1.25}.portal-drawer-body{flex:1;overflow-y:auto;padding:20px 22px 24px;display:grid;align-content:start;gap:18px}.portal-drawer-body .form-grid{align-items:start}.portal-drawer-body label,.drawer-field{display:grid;gap:6px;font-size:13px;font-weight:500;color:var(--foreground);align-self:start}.portal-drawer-body input[type=date],.portal-drawer-body input[type=text],.portal-drawer-body input[type=number],.portal-drawer-body input:not([type]),.portal-drawer-body textarea,.portal-drawer-body select{width:100%;min-height:36px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--background);color:var(--foreground);font-size:13px;transition:border-color .15s ease,box-shadow .15s ease}.portal-drawer-body textarea{min-height:80px;padding:10px 12px;resize:vertical}.portal-drawer-body input:focus,.portal-drawer-body textarea:focus,.portal-drawer-body select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #2563eb26}.portal-drawer-body .product-table{display:grid;gap:0;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--background);overflow:hidden}.portal-drawer-body .product-table:before{content:"Products";display:block;padding:9px 12px;font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);background:var(--surface);border-bottom:1px solid var(--border)}.portal-drawer-body .product-row{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:12px;align-items:center;padding:10px 12px;border-top:1px solid var(--border-soft)}.portal-drawer-body .product-row:first-of-type{border-top:0}.portal-drawer-body .product-row span{display:grid;gap:2px;min-width:0}.portal-drawer-body .product-row strong{font-size:13px;font-weight:500}.portal-drawer-body .product-row small{font-size:11px;color:var(--muted)}.portal-drawer-body .product-row input{width:88px;min-height:32px;padding:0 10px;text-align:right;font-variant-numeric:tabular-nums}.portal-drawer-body .urgent-fee-notice{font-size:13px;color:var(--muted-foreground, #6b7280);padding:8px 0;margin:0;line-height:1.4}.portal-drawer-body .submit-order{justify-self:stretch;width:100%;min-width:0;margin-top:4px}.portal-drawer-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:6px;margin-top:4px;border-top:1px solid var(--border-soft)}.orders-panel{min-width:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--background);padding:20px;box-shadow:var(--shadow-card)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-heading>svg{color:var(--muted-2);flex-shrink:0}.panel-heading h2{margin:0}.inline-state{display:grid;min-height:96px;place-items:center;color:var(--muted)}.muted{margin:0;color:var(--muted);font-size:13px}.order-list,.order-form,.product-table,.team-panel,.action-confirm,.notes-field{display:grid;gap:10px}.action-confirm{margin-top:14px;border-top:1px solid var(--border-soft);padding-top:14px}.action-confirm strong{font-weight:600}.team-form{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:8px}.order-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--border-soft)}.order-row:first-child{border-top:0;padding-top:4px}.order-row>div:first-child{display:grid;gap:2px;min-width:0}.order-row>div:last-child{display:flex;align-items:center;gap:14px;flex-shrink:0}.order-row strong{font-size:14px;font-weight:600;color:var(--foreground);white-space:nowrap}button.order-row{width:100%;text-align:left;background:transparent;border:0;border-top:1px solid var(--border-soft);font:inherit;color:inherit}button.order-row:first-child{border-top:0}.order-row-clickable{cursor:pointer;padding:10px 12px;border-radius:var(--radius-sm);transition:background .12s ease}.order-row-clickable:hover{background:var(--surface)}.request-items{font-size:13px;color:var(--foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.request-meta{font-size:12px;color:var(--muted-foreground, #6b7280);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reason-chip{display:inline-flex;align-items:center;padding:2px 8px;font-size:11px;font-weight:500;border-radius:9999px;background:var(--chip-info-bg);color:var(--chip-info-fg);border:1px solid var(--chip-info-border);white-space:nowrap}.pending-badge{margin-left:6px;cursor:pointer;font-family:inherit}.portal-pending-section{background:#fefce8;border:1px solid #fde68a;border-radius:6px;padding:12px}.portal-pending-section h3{margin:0 0 8px;font-size:13px;font-weight:600;color:#92400e}.portal-pending-section p{margin:4px 0;font-size:12px}.portal-pending-diff{margin-top:8px}.portal-pending-diff-new{font-weight:600;color:#92400e}.line-items-table{width:100%;border-collapse:collapse;font-size:13px}.line-items-table th,.line-items-table td{padding:6px 8px;border-bottom:1px solid var(--border-color, #e5e7eb)}.line-item-qty-input{width:80px;padding:4px 8px;font-size:13px;text-align:right}.portal-request-detail{gap:20px}.portal-detail-grid{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px 14px;margin:0;font-size:13px}.portal-detail-grid dt{color:var(--muted);font-weight:500}.portal-detail-grid dd{margin:0;color:var(--foreground)}.portal-detail-section{display:grid;gap:8px;padding-top:14px;border-top:1px solid var(--border-soft)}.portal-detail-section h3{margin:0;font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.portal-detail-items{margin:0;padding:0;list-style:none;display:grid;gap:4px;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}.portal-detail-items li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-top:1px solid var(--border-soft);font-size:13px}.portal-detail-items li:first-child{border-top:0}.portal-detail-items strong{font-weight:500;font-variant-numeric:tabular-nums}.portal-detail-text{margin:0;font-size:13px;line-height:1.5;color:var(--foreground);white-space:pre-wrap}.portal-fee-list{display:grid;grid-template-columns:1fr auto;gap:10px 24px;max-width:360px;margin:0 0 0 auto}.portal-fee-list dt{font-size:13px;color:var(--muted)}.portal-fee-list dd{margin:0;font-size:13px;text-align:right;font-variant-numeric:tabular-nums;color:var(--foreground)}.portal-fee-list .portal-fee-total-label,.portal-fee-list .portal-fee-total-value{padding-top:8px;border-top:1px solid var(--border-soft);font-size:14px}.portal-fee-list .portal-fee-total-label{font-weight:600;color:var(--foreground)}.portal-fee-list .portal-fee-total-value strong{font-weight:600}.order-row span,.history-row small,.product-row small{color:var(--muted);font-size:13px;font-weight:400}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:capitalize;line-height:1}.status-pill:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.85;flex-shrink:0}.status-pill--scheduled{background:#dbeafe;color:#1e40af;border-color:#93c5fd}.status-pill--packed{background:#e0e7ff;color:#3730a3;border-color:#a5b4fc}.status-pill--out-for-delivery,.status-pill--delivering{background:#cffafe;color:#155e75;border-color:#67e8f9}.status-pill--delivered{background:#dcfce7;color:#166534;border-color:#86efac}.status-pill--delivery-failed{background:#fee2e2;color:#991b1b;border-color:#fca5a5}.status-pill--cancelled,.status-pill--billable-cancel{background:#e2e8f0;color:#334155;border-color:#94a3b8}.status-pill--pending-edit{background:#fef3c7;color:#854d0e;border-color:#f59e0b}.status-pill--pending-cancel{background:#ffe4e6;color:#9f1239;border-color:#fb7185}.row-actions{display:flex;justify-content:flex-end;gap:6px}.history-row small{max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.notes-field small{color:var(--warning);font-weight:400}.product-row{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--border-soft)}.product-row:first-child{border-top:0}.product-row span{display:grid;gap:3px;min-width:0}.product-row strong{font-size:14px;font-weight:500}.product-row input{width:96px;min-height:34px;padding:0 10px;text-align:right}.submit-order{justify-self:end;min-width:132px;margin-top:4px}@media(max-width:640px){.portal-header{align-items:stretch;flex-direction:column}.header-actions{width:100%}.portal-content,.form-grid,.team-form{grid-template-columns:1fr}.order-row{align-items:flex-start;flex-direction:column}.order-row div:last-child{text-align:left}.row-actions{justify-content:flex-start}.history-row small{white-space:normal}}.portal-print-host{display:none}@media print{body *{visibility:hidden}.portal-print-host,.portal-print-host *{visibility:visible}.portal-print-host{display:block!important;position:absolute;left:0;top:0;width:100%}.print-view--shipping-docket{color:#000;font-family:Helvetica Neue,Arial,sans-serif}.print-page{width:100%;max-width:180mm;margin:0 auto;padding:12mm;box-sizing:border-box}.print-table{width:100%;border-collapse:collapse;font-size:10pt}.print-table th,.print-table td{border:1px solid #333;padding:6px 8px;text-align:center}.print-table thead th{background:#f3f4f6;font-weight:700}.print-table .data-row td{height:28px}@page{margin:0}}.portal-detail-items-table th.portal-table-amount,.portal-detail-items-table td.portal-table-amount{text-align:right;padding-right:12px}.portal-detail-items-table th:first-child,.portal-detail-items-table td:first-child{padding-left:4px}
