@font-face {
  font-family: "AppleHome Sans";
  src: url("/assets/fonts/NotoSansSC-VF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.timeline-document{width:100%;padding:12px 14px;text-align:left;background:#f7fbf9;border:1px solid #deebe5;border-radius:13px;cursor:pointer;transition:border-color .15s ease,transform .15s ease,background .15s ease}.timeline-document:hover{transform:translateY(-1px);background:#eef8f3;border-color:#72ae93}.timeline-document em{margin-top:8px;display:block;color:#137a56;font-size:10px;font-style:normal;font-weight:700}.timeline-document:disabled{opacity:.62;cursor:wait}

:root {
  --ink: #1d1d1f;
  --ink-2: #333336;
  --quote-accent: #0066cc;
  --quote-soft: #eaf4ff;
  --return-accent: #b76000;
  --return-label: #8a4b08;
  --return-soft: #fff3d6;
  --stock-accent: #137a56;
  --stock-soft: #e4f6ed;
  --stock-outbound-accent: #006b76;
  --stock-outbound-soft: #e2f3f4;
  --stock-return-accent: #176b32;
  --stock-return-soft: #a1efd4;
  --sales-outbound-accent: #3b729f;
  --sales-outbound-soft: #eef8ff;
  --aftersales-accent: #79521f;
  --aftersales-soft: #fff9ee;
  --opening-accent: #4b5159;
  --opening-soft: #f1f2f3;
  --blue: var(--quote-accent);
  --blue-focus: #0071e3;
  --blue-dark: #2997ff;
  --paper: #f5f5f7;
  --white: #ffffff;
  --pearl: #fafafc;
  --tile-dark: #272729;
  --tile-dark-2: #2a2a2c;
  --chip: #d2d2d7;
  --line: #e0e0e0;
  --line-soft: #f0f0f0;
  --muted: #7a7a7a;
  --danger: #d70015;
  --success: #248a3d;
  --warning: #b25000;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "AppleHome Sans", sans-serif;
  --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "AppleHome Sans", sans-serif;
  --font-data: "SF Pro Display", -apple-system, BlinkMacSystemFont, "AppleHome Sans", sans-serif;
}

body[data-module="inventory"]{--blue:var(--stock-accent);--blue-focus:#0f8f61;--blue-dark:#42d39a;--paper:#eef5f1;--pearl:#f5faf7;--line:#d4e4dc;--line-soft:#e5f0ea}
body[data-module="returns"]{--blue:var(--return-accent);--blue-focus:#d06b00;--blue-dark:#ffad45;--paper:#faf3ea;--pearl:#fffaf4}
body[data-module="analytics"]{--blue:#6f4bb8;--blue-focus:#7f57cf;--blue-dark:#b69cff;--paper:#f4f1f9;--pearl:#faf8fd}
body[data-module="admin"]{--blue:#4b5159;--blue-focus:#30363d;--blue-dark:#aeb7c2;--paper:#f1f2f3;--pearl:#f8f8f9}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 14px; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* Login: product tile + quiet form */
.login-stage { min-height: 100vh; padding: 24px; display: grid; grid-template-columns: minmax(520px,1.08fr) minmax(410px,.92fr); gap: 24px; background: var(--paper); }
.login-mark { min-height: calc(100vh - 48px); padding: clamp(54px,7vw,108px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; color: #fff; background: var(--tile-dark); border-radius: 26px; }
.login-mark::after { content: ""; position: absolute; width: 380px; height: 380px; right: -190px; bottom: -190px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 72px rgba(255,255,255,.025), 0 0 0 144px rgba(255,255,255,.018); }
.login-mark > p { margin: 24px 0 0; color: #c7c7cc; font-size: 12px; letter-spacing: .12em; font-weight: 600; }
.login-mark h1 { position: relative; z-index: 1; max-width: 760px; margin: 26px 0 52px; font-family: var(--font-display); font-size: clamp(46px,5.3vw,76px); font-weight: 600; line-height: 1.07; letter-spacing: -.04em; }
.signal-orbit { width: 62px; height: 62px; display: grid; place-items: center; position: relative; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.signal-orbit span,.brand-glyph span { display: block; position: absolute; border-radius: 50%; background: currentColor; }
.signal-orbit span:nth-child(1){width:12px;height:12px;background:var(--blue-dark)}.signal-orbit span:nth-child(2){width:5px;height:5px;transform:translate(20px,-18px)}.signal-orbit span:nth-child(3){width:5px;height:5px;transform:translate(-20px,18px)}
.signal-legend { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px; color: #d2d2d7; font-size: 12px; }.signal-legend span{display:flex;align-items:center;gap:8px}.dot{width:7px;height:7px;display:inline-block;border-radius:50%}.dot.exact{background:#30d158}.dot.review{background:#ff9f0a}.dot.missing{background:#ff453a}
.login-card { align-self: center; width: min(440px,calc(100% - 48px)); margin: auto; padding: clamp(34px,5vw,54px); background: transparent; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.login-card h2 { margin: 14px 0 10px; font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -.035em; }.login-card>p{margin:0 0 30px;color:var(--muted);font-size:15px;line-height:1.55}.login-card label+label{margin-top:18px}

/* Controls */
label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
input,textarea,select { width:100%; min-height:46px; padding:11px 14px; color:var(--ink); background:var(--white); border:1px solid rgba(0,0,0,.12); border-radius:var(--radius-md); outline:none; transition:border-color .18s,box-shadow .18s,background .18s; }
input:hover,textarea:hover,select:hover{border-color:rgba(0,0,0,.28)}
input:focus,textarea:focus,select:focus{border-color:var(--blue-focus);box-shadow:0 0 0 3px rgba(0,113,227,.18)}
.button { min-height:42px; padding:10px 18px; color:var(--blue); background:var(--pearl); border:1px solid rgba(0,0,0,.06); border-radius:999px; font-size:14px; font-weight:400; transition:transform .15s,background .15s,color .15s; }.button:hover{background:#f0f0f2}.button:active{transform:scale(.96)}
.button.primary { color:#fff; background:var(--blue); border-color:var(--blue); }.button.primary:hover{background:var(--blue-focus)}
.button.signal { color:#fff; background:var(--blue); border-color:var(--blue); }.button.signal:hover{background:var(--blue-focus)}
.button.wide{width:100%;margin-top:24px}.button.small{min-height:34px;padding:7px 13px;font-size:12px}.button:disabled{opacity:.46;cursor:not-allowed;transform:none}.form-error{min-height:20px;margin-top:12px;color:var(--danger);font-size:13px}

/* Apple two-row navigation */
.app-shell { min-height:100vh; padding-top:44px; }
.sidebar { position:fixed; inset:0 0 auto 0; z-index:20; width:100%; height:44px; padding:0 clamp(20px,4vw,56px); display:flex; align-items:center; color:#fff; background:rgba(0,0,0,.94); backdrop-filter:saturate(180%) blur(20px); }
.brand { height:44px; min-width:190px; display:flex; align-items:center; gap:9px; }.brand strong,.brand small{display:inline}.brand strong{font-size:14px;font-weight:600;letter-spacing:-.02em}.brand small{margin-left:6px;color:#a1a1a6;font-size:10px}
.brand-glyph { position:relative; width:24px; height:24px; display:grid; place-items:center; color:#fff; border:1px solid #636366; border-radius:50%; }.brand-glyph span:nth-child(1){width:6px;height:6px;background:var(--blue-dark)}.brand-glyph span:nth-child(2){width:3px;height:3px;transform:translate(7px,-6px)}.brand-glyph span:nth-child(3){width:3px;height:3px;transform:translate(-7px,6px)}
nav { height:44px; margin:0 auto; display:flex; align-items:center; gap:4px; }nav button{height:44px;padding:0 16px;color:#d2d2d7;background:transparent;border:0;font-size:12px;font-weight:400;white-space:nowrap;transition:color .15s}nav button span{display:none}nav button:hover,nav button.active{color:#fff;background:transparent}nav button.active{font-weight:600}
.sidebar-foot{min-width:230px;margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:18px}.ai-status{display:flex;gap:10px;color:#a1a1a6;font-size:9px}.ai-status span{display:flex;align-items:center;gap:5px}.ghost-button{padding:5px 0;color:#d2d2d7;background:none;border:0;font-size:11px}
.workspace{min-width:0}.topbar{position:sticky;top:44px;z-index:12;height:64px;padding:0 clamp(24px,4vw,58px);display:flex;align-items:center;justify-content:space-between;color:var(--ink);background:rgba(245,245,247,.82);border-bottom:1px solid rgba(0,0,0,.08);backdrop-filter:saturate(180%) blur(20px)}.topbar .eyebrow{display:none}.topbar h2{margin:0;font-family:var(--font-display);font-size:21px;font-weight:600;letter-spacing:-.025em}
.user-chip{display:flex;align-items:center;gap:9px}.user-chip>span{width:34px;height:34px;display:grid;place-items:center;color:#fff;background:var(--ink);border-radius:50%;font-size:12px;font-weight:600}.user-chip strong,.user-chip small{display:block}.user-chip strong{font-size:12px}.user-chip small{margin-top:1px;color:var(--muted);font-size:10px}
.view-root{max-width:1480px;margin:0 auto;padding:clamp(28px,4vw,52px)}

/* Main workspace */
.page-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,360px);gap:24px;align-items:start}.panel{background:var(--white);border:1px solid rgba(0,0,0,.08);border-radius:var(--radius-lg);box-shadow:none;overflow:hidden}
.panel-head{padding:22px 24px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:var(--white);border-bottom:1px solid var(--line-soft)}.panel-head h3,.section-title{margin:0;font-family:var(--font-display);font-size:20px;font-weight:600;letter-spacing:-.025em}.panel-head p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.panel-body{padding:24px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid .span-2{grid-column:1/-1}.field-hint{color:var(--muted);font-size:11px;font-weight:400}.fixed-price-notice{min-height:78px;padding:15px 17px;display:grid;align-content:center;gap:5px;background:var(--paper);border-radius:var(--radius-md)}.fixed-price-notice strong{font-size:13px}.fixed-price-notice span{color:var(--muted);font-size:11px;line-height:1.5}
.step-label{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:14px;font-weight:600}.step-label span{width:25px;height:25px;display:grid;place-items:center;color:var(--blue);background:#eef7ff;border-radius:50%;font-size:11px;font-weight:600}.divider{height:1px;margin:28px 0;background:var(--line-soft)}.muted{color:var(--muted)}.small-text{font-size:12px}.action-row{margin-top:16px;display:flex;flex-wrap:wrap;gap:9px;align-items:center}.action-row.compact{margin-top:0;flex-wrap:nowrap}

/* Configurator-style price sources */
.source-switcher{padding:20px 24px 24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:var(--paper)}
.source-button{min-height:116px;padding:14px 15px;display:grid;align-content:space-between;gap:9px;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);text-align:left;transition:border-color .15s,box-shadow .15s,transform .15s}.source-button:hover:not(:disabled){border-color:#a1a1a6;transform:translateY(-1px)}.source-button:active:not(:disabled){transform:scale(.98)}
.source-button-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.source-index{color:#a1a1a6;font-size:12px}.source-state{color:var(--muted);font-size:9px;font-weight:600}.source-button strong{font-size:13px;line-height:1.35}.source-button small{color:var(--muted);font-size:9.5px;line-height:1.4}
.source-button.active{border:2px solid var(--blue-focus);box-shadow:0 0 0 3px rgba(0,113,227,.1)}.source-button.active .source-index,.source-button.active .source-state{color:var(--blue)}.source-button:disabled{color:#a1a1a6;background:#fafafa;opacity:.68;cursor:not-allowed}

/* Customer intake */
.intake-heading{margin-bottom:14px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.intake-heading p{margin:6px 0 0 35px}.paste-shortcut{display:flex;align-items:center;gap:5px;color:var(--blue);font-size:11px;font-weight:600;white-space:nowrap}.paste-shortcut kbd{min-width:27px;height:27px;display:grid;place-items:center;color:var(--ink);background:rgba(210,210,215,.58);border:0;border-radius:7px;font-family:var(--font-body)}.paste-shortcut span{margin-left:4px}
.raw-input{min-height:192px;padding:18px;resize:vertical;line-height:1.55}.paste-target{background:var(--pearl);border:1px dashed #9cc9f5;border-radius:var(--radius-lg)}.paste-target:hover{background:#f7fbff}.paste-target:focus{background:#fff;border-style:solid}.paste-target::placeholder{color:#8e8e93}

/* Match rows */
.match-list{margin-top:20px;display:grid;gap:10px}.match-card{padding:12px;display:grid;grid-template-columns:34px 76px minmax(120px,.72fr) minmax(200px,1.2fr) 150px 104px 36px;gap:11px;align-items:center;background:var(--pearl);border:1px solid var(--line-soft);border-radius:var(--radius-md)}.match-card:hover{background:#f7fbff}
.line-no{width:28px;height:28px;display:grid;place-items:center;color:var(--blue);background:#eaf4ff;border-radius:50%;font-size:11px;font-weight:600}.product-thumb,.table-product-image{width:54px;height:54px;display:grid;place-items:center;overflow:hidden;background:#fff;border:1px solid var(--line-soft);border-radius:var(--radius-sm);box-shadow:rgba(0,0,0,.13) 2px 3px 14px}.product-thumb img,.table-product-image img{width:100%;height:100%;object-fit:contain}.product-thumb span,.table-product-image span{color:var(--muted);font-size:9px}.table-product-image{width:46px;height:46px}
.input-name strong{display:block;font-size:13px}.input-name small{margin-top:6px;display:flex;gap:5px;align-items:center;color:var(--muted)}.input-name .qty-input{width:70px;padding:7px 8px}.input-name .unit-input{width:54px;padding:7px 8px}.match-card select{padding:9px 10px;font-size:12px}.product-thumb-wrap{display:grid;gap:4px;justify-items:center}.image-actions{display:flex;gap:4px}.image-actions button{padding:0;color:var(--blue);background:none;border:0;font-size:9px}
.confidence{padding:6px 9px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:10px;font-weight:600}.confidence.good{color:#176b32;background:#e6f6e9}.confidence.review{color:#8a4b08;background:#fff1dc}.confidence.missing{color:#b4232b;background:#ffebec}.match-status{display:grid;gap:5px;justify-items:center}.confirm-match,.temporary-toggle,.match-instead{padding:2px 5px;color:var(--blue);background:transparent;border:0;font-size:10px;font-weight:600}.temporary-fields{display:grid;grid-template-columns:minmax(140px,1fr) 145px;gap:8px}.temporary-fields input{padding:9px 10px;font-size:12px}.manual-price{padding-left:9px;display:flex;align-items:center;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:var(--radius-md)}.manual-price span{color:var(--muted);font-size:10px;white-space:nowrap}.manual-price input{border:0;box-shadow:none;padding-left:5px}.icon-button{width:34px;height:34px;color:#8e8e93;background:rgba(210,210,215,.5);border:0;border-radius:50%;font-size:17px}.icon-button:hover{color:#fff;background:var(--danger)}
.line-price-override,.line-price-locked{display:grid;gap:4px}.line-price-override span,.line-price-locked span{color:var(--muted);font-size:9px}.line-price-override input{width:100%;padding:9px 10px;font-size:12px;font-variant-numeric:tabular-nums}.line-price-override small{color:var(--blue);font-size:8px}.line-price-locked{padding:9px 10px;background:#f0f7f3;border:1px solid #d7e9df;border-radius:10px}.line-price-locked strong{color:#126b4c;font-size:14px}.line-price-locked small{color:#4c6e5e;font-size:8px}

/* Dark product tile: live quote */
.quote-preview{position:sticky;top:132px;color:#fff;background:var(--tile-dark);border:0;border-radius:var(--radius-lg);box-shadow:none}.preview-band{display:none}.preview-content{padding:28px 26px}.preview-kicker{color:#a1a1a6;font-size:10px;font-weight:600;letter-spacing:.11em}.preview-total{margin:12px 0 24px;color:#fff;font-family:var(--font-data);font-size:clamp(43px,4vw,56px);font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.045em}.preview-total::after{content:" LIVE";color:var(--blue-dark);font-size:9px;font-weight:600;letter-spacing:.1em;vertical-align:top}
.preview-breakdown{margin:0;display:grid;gap:0}.preview-breakdown div{padding:12px 0;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #424245;font-size:12px}.preview-breakdown dt{color:#a1a1a6}.preview-breakdown dd{margin:0;color:#fff;font-weight:600;text-align:right}.preview-note{margin:20px 0;padding:14px;color:#d2d2d7;background:var(--tile-dark-2);border-radius:var(--radius-md);font-size:11px;line-height:1.6}.quote-preview .button.primary{color:#fff;background:var(--blue-focus);border-color:var(--blue-focus)}.quote-preview .button.primary:hover{background:#147ce5}.quote-preview .preview-button{color:#fff;background:#2c2c2e;border-color:#48484a}.quote-preview .button.wide+.button.wide{margin-top:10px}.export-actions{margin-top:10px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.export-actions a,.export-actions button{text-align:center;text-decoration:none}

/* History, catalog, analytics */
.toolbar{margin-bottom:18px;display:flex;gap:10px;justify-content:space-between;align-items:center}.toolbar .search{max-width:420px;border-radius:999px;padding-left:18px}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{padding:12px 14px;color:var(--muted);background:var(--paper);border-bottom:1px solid var(--line);text-align:left;font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}.data-table td{padding:14px;border-bottom:1px solid var(--line-soft);vertical-align:middle}.data-table tbody tr:hover{background:#f7fbff}.money{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.pill{padding:5px 9px;display:inline-flex;color:var(--blue);background:#eaf4ff;border-radius:999px;font-size:10px;font-weight:600}.pill.won{color:#176b32;background:#e6f6e9}.pill.lost,.pill.void{color:#b4232b;background:#ffebec}.pill.pending{color:#8a4b08;background:#fff1dc}.empty{padding:52px 24px;color:var(--muted);text-align:center}.empty strong{display:block;margin-bottom:7px;color:var(--ink)}
.metric-grid{margin-bottom:24px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.metric{padding:24px;position:relative;overflow:hidden}.metric::before{display:none}.metric small{color:var(--muted)}.metric strong{display:block;margin-top:9px;font-family:var(--font-data);font-size:36px;font-weight:600;letter-spacing:-.04em}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:22px}.bar-list{display:grid;gap:15px}.bar-row{display:grid;grid-template-columns:minmax(120px,1fr) 2fr 60px;align-items:center;gap:10px;font-size:12px}.bar-track{height:7px;overflow:hidden;background:var(--paper);border-radius:999px}.bar-fill{height:100%;background:var(--blue);border-radius:inherit}
.upload-zone{padding:22px;display:grid;gap:14px;background:var(--paper);border:0;border-radius:var(--radius-lg)}.catalog-summary{display:flex;flex-wrap:wrap;gap:9px}.catalog-chip{padding:8px 12px;color:var(--ink);background:var(--paper);border-radius:999px;font-size:11px}.catalog-chip b{color:var(--blue)}.catalog-result-label{margin-bottom:10px;padding:11px 14px;color:var(--muted);background:var(--paper);border-radius:var(--radius-md);font-size:12px}.catalog-result-label strong{color:var(--blue)}
.editing-banner{margin-bottom:18px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff4e5;border-radius:var(--radius-lg)}.editing-banner strong,.editing-banner span{display:block}.editing-banner span{margin-top:4px;color:#8a4b08;font-size:11px}.settings-section{margin-top:22px}.inline-form{display:grid;grid-template-columns:1fr 1fr 180px auto;gap:12px;align-items:end}.inline-form .button{min-height:44px}.user-table{margin-top:22px}
.history-filters{display:flex;gap:12px;align-items:end;background:var(--paper);border-bottom:1px solid var(--line-soft)}.history-filters label{min-width:180px}.history-filters select{min-height:40px}.proof-link{margin-top:5px;display:block;color:#176b32;font-size:10px;text-decoration:none}

/* Refactoring UI §2.1/§3.2/§5.6/§5.7: type is a compact, readable secondary
   signal. All badges share one size, use module color tokens, and retain text.
   Badge names are independent of the warehouse intake card's class names. */
.document-type{width:80px;height:24px;margin:0 8px 4px 0;padding:0 8px;display:inline-flex;flex:0 0 80px;align-items:center;justify-content:center;justify-self:start;align-self:start;vertical-align:middle;border:0;border-radius:999px;font-size:10px;line-height:1.2;font-weight:600;letter-spacing:0;white-space:nowrap;box-shadow:none;color:var(--opening-accent);background:var(--opening-soft)}
.document-type--quote{color:var(--quote-accent);background:var(--quote-soft)}
.document-type--return{color:var(--return-label);background:var(--return-soft)}
.document-type--supplier-inbound{color:var(--stock-accent);background:var(--stock-soft)}
.document-type--warehouse-outbound{color:var(--stock-outbound-accent);background:var(--stock-outbound-soft)}
.document-type--sales-outbound{color:var(--sales-outbound-accent);background:var(--sales-outbound-soft)}
.document-type--return-in{color:var(--stock-return-accent);background:var(--stock-return-soft)}
.document-type--aftersales-in{color:var(--aftersales-accent);background:var(--aftersales-soft)}
.document-type--opening{color:var(--opening-accent);background:var(--opening-soft)}
.record-history-table .pill{height:24px;min-width:80px;width:max-content;padding:0 8px;align-items:center;justify-content:center;justify-self:start;align-self:start;font-size:10px;line-height:1.2}
.modal-open{overflow:hidden}.document-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px}.document-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(12px)}.document-modal-shell{position:relative;width:min(1020px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#e9e9ed;border-radius:22px;box-shadow:0 30px 100px rgba(0,0,0,.4)}.document-modal-tools{position:sticky;top:0;z-index:2;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;color:#fff;background:rgba(29,29,31,.94);backdrop-filter:blur(18px)}.document-modal-tools strong,.document-modal-tools span{display:block}.document-modal-tools span{margin-top:2px;color:#a1a1a6;font-size:10px}.document-preview-stage{padding:28px}.customer-document{width:min(820px,100%);min-height:1080px;margin:auto;padding:58px 60px 38px;color:#1d1d1f;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.16);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Noto Sans SC",Arial,sans-serif}.customer-document-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-start}.document-brand{display:flex;align-items:center;gap:8px;color:#1d1d1f;font-size:13px}.document-brand-mark{width:25px;height:25px;display:grid;place-items:center;color:#fff;background:#0071e3;border-radius:50%}.customer-document h1{margin:28px 0 8px;font-size:29px;line-height:1.15;letter-spacing:-.035em}.customer-document-head p{margin:0;color:#86868b;font-size:11px;letter-spacing:.08em}.document-number{text-align:right}.document-number span,.document-number strong{display:block}.document-number span{color:#86868b;font-size:9px;letter-spacing:.12em}.document-number strong{margin-top:6px;font-size:13px}.document-meta{margin:34px 0 26px;padding:17px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:14px;border-top:1px solid #d2d2d7;border-bottom:1px solid #d2d2d7}.document-meta span,.document-meta strong{display:block}.document-meta span{color:#86868b;font-size:9px}.document-meta strong{margin-top:6px;font-size:11px}.document-items{width:100%;border-collapse:collapse}.document-items th{padding:10px 8px;color:#86868b;border-bottom:1px solid #1d1d1f;text-align:right;font-size:9px;font-weight:600;letter-spacing:.05em}.document-items th:first-child,.document-items th:nth-child(2){text-align:left}.document-items td{padding:12px 8px;border-bottom:1px solid #e5e5e7;text-align:right;font-size:11px;vertical-align:middle}.document-items td:first-child,.document-items td:nth-child(2){text-align:left}.document-items td:nth-child(2) strong,.document-items td:nth-child(2) small{display:block}.document-items td:nth-child(2) small{margin-top:4px;color:#86868b;font-size:8px}.document-product-image{width:54px;height:54px;display:grid;place-items:center;overflow:hidden;background:#f5f5f7;border-radius:10px}.document-product-image img{width:100%;height:100%;object-fit:contain}.document-product-image span{color:#a1a1a6;font-size:7px}.document-empty{padding:42px!important;color:#86868b;text-align:center!important}.document-total{margin:25px 0 28px;display:flex;justify-content:flex-end}.document-total>div{min-width:260px;padding:18px 20px;display:flex;align-items:end;justify-content:space-between;color:#fff;background:#1d1d1f;border-radius:15px}.document-total span{color:#a1a1a6;font-size:10px}.document-total strong{font-size:23px;letter-spacing:-.03em}.document-footer{margin-top:auto;padding-top:24px;display:grid;grid-template-columns:1fr 210px;gap:20px;align-items:end;border-top:1px solid #e5e5e7}.protocol-logos{display:flex;gap:10px;align-items:center}.protocol-logos img{height:30px;width:auto;object-fit:contain;background:#000;border-radius:7px}.protocol-logos img:nth-child(2){height:31px;max-width:150px}.matter-strip{width:210px;height:72px;object-fit:cover;border-radius:12px}.document-note{margin:16px 0 0;color:#86868b;font-size:9px;line-height:1.55}
.source-switcher{grid-template-columns:repeat(3,minmax(0,1fr))}
.customer-field{position:relative}.customer-address-label textarea{min-height:84px;resize:vertical;line-height:1.5}.customer-suggestions{position:absolute;z-index:30;top:calc(100% + 7px);right:0;left:0;max-height:310px;padding:6px;overflow:auto;background:rgba(255,255,255,.98);border:1px solid rgba(0,0,0,.1);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.16);backdrop-filter:blur(18px)}.customer-suggestions button{width:100%;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink);background:transparent;border:0;border-radius:10px;text-align:left}.customer-suggestions button:hover{background:#f0f7ff}.customer-suggestions button span:first-child strong,.customer-suggestions button span:first-child small{display:block}.customer-suggestions button span:first-child small{margin-top:3px;color:var(--muted);font-size:9px}.customer-activity{color:var(--muted);font-size:10px;white-space:nowrap}.customer-activity b{color:var(--blue)}.customer-new{padding:13px}.customer-new strong,.customer-new span{display:block}.customer-new span{margin-top:4px;color:var(--muted);font-size:10px;font-weight:400}.history-customer-search{min-width:300px!important}.history-customer-search>div{display:flex;gap:5px}.history-customer-search input{min-width:160px;min-height:40px}.history-customer-search button{padding:0 12px;color:#fff;background:#1d1d1f;border:0;border-radius:10px;font-size:11px}.history-customer-search button:last-child{color:#424245;background:#e5e5e7}
.delivery-rail{margin-top:12px;padding:5px;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;background:#2c2c2e;border:1px solid #48484a;border-radius:15px}.delivery-action{min-width:0;padding:9px 7px;display:flex;align-items:center;justify-content:center;gap:7px;color:#f5f5f7;background:transparent;border:0;border-radius:11px;text-decoration:none;text-align:left;transition:background .16s,transform .16s}.delivery-action:hover{color:#fff;background:#48484a}.delivery-action:active{transform:scale(.97)}.delivery-action:disabled{opacity:.45}.delivery-icon{width:24px;height:24px;display:grid!important;place-items:center;color:#fff!important;background:#0071e3;border-radius:7px;font-size:11px!important;font-weight:700}.delivery-action b,.delivery-action small{display:block}.delivery-action b{font-size:10px;font-weight:600}.delivery-action small{margin-top:1px;color:#a1a1a6;font-size:8px;white-space:nowrap}.saved-document-id{margin:8px 3px 0}.record-actions{padding:4px;display:inline-flex;gap:2px;background:#f0f0f2;border-radius:10px}.record-actions button,.record-actions a{padding:6px 8px;color:#424245;background:transparent;border:0;border-radius:7px;font-size:10px;text-decoration:none;white-space:nowrap}.record-actions button:hover,.record-actions a:hover{color:#fff;background:#1d1d1f}
.document-modal-shell{width:min(1180px,calc(100% - 24px));height:calc(100vh - 28px);max-height:none;display:grid;grid-template-rows:auto 1fr;overflow:hidden}.document-modal-tools{min-height:58px;gap:14px}.preview-tool-title{flex:0 0 auto}.preview-zoom{display:flex;align-items:center;gap:6px}.preview-zoom button,.preview-close,.preview-language-actions a{height:30px;padding:0 10px;color:#f5f5f7;background:#3a3a3c;border:1px solid #545458;border-radius:8px;font-size:10px;text-decoration:none}.preview-zoom button:first-child,.preview-zoom button:nth-child(3){width:30px;padding:0;font-size:16px}.preview-zoom input{width:110px;min-height:0;padding:0;background:transparent;border:0;box-shadow:none}.preview-zoom span{min-width:34px;margin:0!important;color:#d2d2d7!important;text-align:right}.preview-language-actions{margin-left:auto;display:flex;gap:6px}.preview-language-actions a{display:flex;align-items:center}.preview-close{flex:0 0 auto;color:#1d1d1f;background:#f5f5f7;border-color:#f5f5f7}.document-preview-stage{overflow:auto;display:block;background:#d8d8dc}.document-preview-canvas{position:relative;margin:24px auto;transition:width .18s,height .18s}.customer-document{width:820px;min-width:820px;transform-origin:top left;transition:transform .18s}.document-footer{grid-template-columns:1fr auto;align-items:center}.compatibility-label span,.compatibility-label strong{display:block}.compatibility-label span{color:#86868b;font-size:7px;letter-spacing:.12em}.compatibility-label strong{margin-top:5px;font-size:10px}.protocol-logos{justify-content:flex-end}.protocol-logos img{height:28px;max-width:138px;background:transparent;border-radius:5px}.protocol-logos img:nth-child(2){height:28px;max-width:138px}
.retail-price-breakdown th,.retail-price-breakdown td{padding-right:5px;padding-left:5px;font-size:9.5px}.retail-price-breakdown th{font-size:8px}.retail-price-breakdown td:nth-child(2){max-width:215px}.retail-price-breakdown td:nth-child(n+3){white-space:nowrap}

/* Inventory: a visibly separate emerald module */
.inventory-hero{margin-bottom:20px;padding:30px 32px;display:flex;align-items:flex-end;justify-content:space-between;gap:30px;color:#fff;background:linear-gradient(135deg,#0b3b2d 0%,#126b4c 56%,#189b68 100%);border-radius:24px;box-shadow:0 18px 45px rgba(12,91,63,.18)}.inventory-hero>div>span{color:#8fe1bd;font-size:10px;font-weight:700;letter-spacing:.14em}.inventory-hero h3{margin:10px 0 8px;font-size:30px;letter-spacing:-.035em}.inventory-hero p{max-width:680px;margin:0;color:#d9f4e7;line-height:1.6}.inventory-balance{min-width:190px;padding-left:26px;border-left:1px solid rgba(255,255,255,.22)}.inventory-balance small,.inventory-balance strong,.inventory-balance span{display:block}.inventory-balance small{color:#bcebd5}.inventory-balance strong{margin:5px 0;font-size:46px;line-height:1}.inventory-balance span{color:#d9f4e7;font-size:11px}.inventory-metrics .metric{border-color:#d5e8de}.inventory-metrics .metric strong{color:#126b4c}.inventory-metrics .metric strong.danger-text{color:var(--danger)}.inventory-primary{color:#fff!important;background:#137a56!important;border-color:#137a56!important}.inventory-primary:hover{background:#0f8f61!important}.inventory-actions{align-items:start}.inventory-actions>.panel{height:100%}.migration-files{display:grid;gap:13px}.migration-files label{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4faf7;border-radius:11px}.migration-files input{width:auto;max-width:230px;min-height:34px;padding:4px;background:transparent;border:0}.inventory-section{margin-top:22px}.inventory-search{display:flex;gap:8px}.inventory-search input{min-width:300px}.inventory-quantity{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}.inventory-quantity small{color:var(--muted);font-size:10px}.inventory-quantity.negative{color:var(--danger)}.inventory-quantity.zero{color:var(--muted)}.inventory-quantity.positive{color:#137a56}.inventory-link{padding:0;color:#126b4c;background:none;border:0}.inventory-link:hover{text-decoration:underline}.inventory-review{margin-left:6px;padding:3px 6px;color:#a14200;background:#fff0df;border-radius:999px;font-size:9px}.lifecycle{padding:4px 8px;display:inline-flex;border-radius:999px;font-size:10px}.lifecycle.active{color:#126b4c;background:#e1f3e9}.lifecycle.new{color:#0066cc;background:#eaf4ff}.lifecycle.phasing_out{color:#8a4b08;background:#fff1dc}.lifecycle.discontinued,.lifecycle.suspended{color:#b4232b;background:#ffebec}.pill.posted{color:#126b4c;background:#e1f3e9}.pill.cancelled{color:#b4232b;background:#ffebec}.pill.draft{color:#8a4b08;background:#fff1dc}
.inventory-modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:24px}.inventory-modal-backdrop{position:absolute;inset:0;background:rgba(5,22,16,.66);backdrop-filter:blur(10px)}.inventory-modal-card{position:relative;width:min(820px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.28)}.inventory-modal-card>header{position:sticky;top:0;z-index:2;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(255,255,255,.94);border-bottom:1px solid #dce8e2;backdrop-filter:blur(15px)}.inventory-modal-card header span{color:#137a56;font-size:10px;font-weight:700;letter-spacing:.1em}.inventory-modal-card header h3{margin:5px 0 0;font-size:21px}.inventory-modal-card header p{margin:4px 0 0;color:var(--muted);font-size:11px}.inventory-modal-card header button{margin-left:6px;padding:8px 13px;color:#fff;background:#163e30;border:0;border-radius:999px}.timeline-summary{padding:28px 28px 18px}.timeline-summary strong,.timeline-summary span{display:block}.timeline-summary strong{color:#126b4c;font-size:48px;letter-spacing:-.04em}.timeline-summary span{color:var(--muted)}.inventory-timeline{margin:0;padding:5px 30px 34px;list-style:none}.inventory-timeline li{position:relative;padding:0 0 26px 30px;border-left:1px solid #cfe2d8}.inventory-timeline li:last-child{padding-bottom:0}.timeline-dot{position:absolute;left:-7px;top:3px;width:13px;height:13px;background:#137a56;border:3px solid #e5f5ed;border-radius:50%}.timeline-dot.out{background:#d25d4a;border-color:#fdebe8}.inventory-timeline strong,.inventory-timeline small{display:block}.inventory-timeline small{margin-top:4px;color:var(--muted)}.inventory-timeline p{margin:7px 0 0;color:#425249;font-size:12px}.document-card{width:min(940px,100%)}.inventory-print-sheet{padding:32px}.inventory-print-sheet h1{color:#137a56;font-size:13px}.inventory-print-sheet h2{font-size:30px}.inventory-print-meta{margin:20px 0;padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:9px;background:#f0f8f4;border-radius:12px}.inventory-print-sheet table{width:100%;border-collapse:collapse}.inventory-print-sheet th,.inventory-print-sheet td{padding:12px;border-bottom:1px solid #dce8e2;text-align:left}
.migration-complete .panel-body{min-height:260px;display:grid;place-content:center;text-align:center}.migration-complete .panel-body strong{color:#137a56;font-size:58px;line-height:1}.migration-complete .panel-body span{margin-top:8px;font-weight:700}.migration-complete .panel-body p{max-width:360px;color:var(--muted);line-height:1.6}
.inventory-balance{font:inherit;text-align:left;color:inherit;background:transparent;border:0;cursor:pointer}.inventory-filter-card{appearance:none;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.inventory-filter-card:hover{transform:translateY(-2px);border-color:#75b89c;box-shadow:0 12px 26px rgba(13,94,64,.12)}.inventory-filter-card.selected{border-color:#137a56;box-shadow:inset 0 0 0 1px #137a56,0 12px 26px rgba(13,94,64,.12)}.inventory-inbound-workbench{margin:22px 0;border:1px solid #cde5d9;overflow:hidden}.inventory-kicker{display:block;margin-bottom:7px;color:#137a56;font-size:10px;font-weight:800;letter-spacing:.16em}.inbound-upload{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.inbound-dropzone{margin:0 22px 20px;padding:28px;display:grid;place-items:center;gap:7px;color:#365b4a;background:repeating-linear-gradient(135deg,#f3faf6,#f3faf6 12px,#eef7f2 12px,#eef7f2 24px);border:1px dashed #80b69e;border-radius:16px;outline:0}.inbound-dropzone:focus{border-color:#087a52;box-shadow:0 0 0 4px rgba(19,122,86,.12)}.inbound-dropzone span{color:var(--muted);font-size:11px}.inbound-empty{padding:0 26px 28px;display:flex;align-items:center;justify-content:center;gap:11px;color:#416153}.inbound-empty span{width:28px;height:28px;display:grid;place-items:center;color:#fff;background:#137a56;border-radius:50%;font-size:10px;font-weight:800}.inbound-empty strong{font-size:12px}.inbound-empty i{width:44px;height:1px;background:#bcd9cc}.inbound-review-table input{min-width:90px;max-width:160px}.inbound-confirm{padding:20px 24px;display:flex;align-items:end;justify-content:flex-end;gap:14px;background:#f5faf7;border-top:1px solid #dceae3}.inbound-confirm label{min-width:280px}.inventory-review-card{width:min(680px,100%)}
.inventory-ai-query{margin:-4px 0 20px;padding:22px 24px;display:grid;grid-template-columns:minmax(220px,.72fr) minmax(420px,1.4fr);gap:28px;align-items:center;border-color:#cce4d8;background:linear-gradient(120deg,#f8fcfa 0%,#fff 72%)}.inventory-ai-copy>span{color:#137a56;font-size:9px;font-weight:800;letter-spacing:.16em}.inventory-ai-copy h3{margin:6px 0 5px;font-size:20px}.inventory-ai-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}.inventory-ai-box{min-width:0}.inventory-ai-input{display:grid;grid-template-columns:1fr auto;gap:8px}.inventory-ai-input input{min-width:0;height:44px;background:#fff}.inventory-ai-answer{margin-top:10px;min-height:44px;color:#53655c;font-size:11px}.inventory-ai-answer>span{display:flex;align-items:center;gap:8px}.inventory-ai-found{padding:13px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;background:#eef8f3;border:1px solid #cfe6da;border-radius:13px}.inventory-ai-found>div:first-child span,.inventory-ai-found>div:first-child strong,.inventory-ai-found>div:first-child small{display:block}.inventory-ai-found>div:first-child span{color:#137a56;font-size:9px;font-weight:800}.inventory-ai-found>div:first-child strong{margin:3px 0;font-size:14px}.inventory-ai-found>div:first-child small{color:var(--muted)}.inventory-ai-quantity{display:flex;align-items:baseline;gap:4px;color:#0f6d4d;white-space:nowrap}.inventory-ai-quantity strong{font-size:26px}.inventory-ai-quantity span{font-size:11px}.inventory-ai-review>strong{display:block;margin-bottom:8px}.inventory-ai-review>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.inventory-ai-candidate{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#fff;border:1px solid #dce8e2;border-radius:10px;cursor:pointer}.inventory-ai-candidate:hover{border-color:#4b9b79;background:#f1f9f5}.inventory-ai-candidate span b,.inventory-ai-candidate span small{display:block}.inventory-ai-candidate span small{margin-top:3px;color:var(--muted)}.inventory-ai-candidate>strong{color:#137a56;white-space:nowrap}.inventory-ai-empty{padding:11px 13px;background:#fff8f0;border:1px solid #f0d7bf;border-radius:11px}.inventory-ai-empty strong,.inventory-ai-empty span{display:block}.inventory-ai-empty span{margin-top:3px;color:#7f6751}
.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.permission-grid label{padding:13px 15px;display:flex;align-items:center;gap:10px;background:#f5f7f6;border:1px solid #e4e9e6;border-radius:12px}.permission-grid input{width:18px;height:18px;min-height:0}.permission-grid button{grid-column:1/-1;margin-top:8px}
#inventory-products-section>.table-wrap{max-height:680px;overflow:auto}#inventory-products-section thead{position:sticky;top:0;z-index:2;background:#f8fbf9}#inventory-products-section tbody tr:hover{background:#f4faf7}
.attention-card{appearance:none;text-align:left}.attention-card.has-work{border-color:#ef9b57;background:#fff8f0;cursor:pointer}.attention-card.has-work strong{color:#b34b12!important}.inventory-outbound-workbench{margin:22px 0;border:1px solid #baded0;overflow:hidden}.outbound-count{min-width:92px;text-align:center}.outbound-count strong,.outbound-count span{display:block}.outbound-count strong{color:#137a56;font-size:32px}.outbound-count span{color:var(--muted);font-size:10px}.outbound-layout{padding:0 22px 22px;display:grid;grid-template-columns:1.15fr .85fr;gap:18px}.outbound-layout h4{margin:0 0 12px}.outbound-queue,.direct-outbound{padding:18px;background:#f6faf8;border:1px solid #deebe5;border-radius:16px}.outbound-order-card{margin-bottom:9px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #dce8e2;border-radius:12px}.outbound-order-card span,.outbound-order-card strong,.outbound-order-card small{display:block}.outbound-order-card span{color:#137a56;font-size:9px;font-weight:800}.outbound-order-card strong{margin:3px 0}.outbound-order-card small{color:var(--muted)}.outbound-order-card>div:last-child{display:flex;gap:7px}.direct-outbound p{margin:0 0 10px;color:var(--muted);font-size:11px}.direct-outbound textarea,.inbound-text-entry textarea{width:100%;min-height:105px;margin-bottom:9px;resize:vertical}.inbound-input-grid{padding:0 22px 20px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.inbound-input-grid .inbound-dropzone{height:100%;min-height:145px;margin:0}.inbound-text-entry{padding:14px;background:#f6faf8;border:1px solid #deebe5;border-radius:16px}.inventory-match-layer{z-index:95}.match-result-list{margin-top:12px;display:grid;gap:8px}.match-result-option{padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;background:#f7faf8;border:1px solid #dfe9e4;border-radius:11px;cursor:pointer}.match-result-option:hover{border-color:#4b9b79;background:#eef8f3}.match-result-option span strong,.match-result-option span small{display:block}.match-result-option span small{margin-top:3px;color:var(--muted)}.match-result-option>b{color:#137a56;white-space:nowrap}
.outbound-candidate,.inbound-candidate{width:100%;min-width:300px;height:42px;margin-top:6px;padding:8px 34px 8px 10px;font-size:12px}.outbound-quantity,.inbound-quantity{width:100%;min-width:130px;height:42px;margin-top:6px}.inventory-outbound-workbench tbody td,.inventory-inbound-workbench tbody td{vertical-align:middle}.inventory-outbound-workbench tbody td:nth-child(2),.inventory-inbound-workbench tbody td:nth-child(2){min-width:390px}.draft-toolbar{padding:12px 22px;display:flex;align-items:center;justify-content:space-between;background:#f5faf7;border-top:1px solid #dceae3}.danger-button,.delete-quote-order{color:#b4232b!important;background:#fff1f2!important;border-color:#f0c9cc!important}.cancel-review-card{align-items:flex-start;background:#fff8f0;border-color:#efb17d}.cancel-review-card p{max-width:600px;margin:8px 0 0;color:#80502e;font-size:11px;line-height:1.5}.cancel-review-card>div:last-child{max-width:330px;flex-wrap:wrap;justify-content:flex-end}.stock-correction{padding:15px;display:grid!important;grid-template-columns:1fr 1fr;gap:12px;background:#f1f8f5;border:1px solid #cde5d9;border-radius:14px}.stock-correction>div{grid-column:1/-1}.stock-correction strong,.stock-correction span{display:block}.stock-correction span{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5}
.document-total span{color:#d2d2d7;font-size:14px;font-weight:650;letter-spacing:.02em}.document-total strong{font-size:24px}.delete-order-card{width:min(560px,100%)}.delete-order-card form{display:grid;gap:16px}.delete-order-card textarea{min-height:110px;resize:vertical}.delete-order-warning{padding:15px 16px;color:#7a1d24;background:#fff3f3;border:1px solid #f1ced1;border-radius:13px}.delete-order-warning strong,.delete-order-warning p{display:block}.delete-order-warning p{margin:5px 0 0;color:#765256;font-size:11px;line-height:1.55}.delete-order-actions{display:flex;justify-content:flex-end;gap:9px}.danger-confirm{color:#fff!important;background:#b4232b!important;border-color:#b4232b!important}.danger-confirm:hover{background:#941b22!important}
.toast{position:fixed;right:24px;bottom:24px;z-index:99;max-width:380px;padding:14px 18px;color:#fff;background:rgba(29,29,31,.94);border-radius:var(--radius-md);box-shadow:0 10px 30px rgba(0,0,0,.18);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s;font-size:13px;backdrop-filter:blur(12px)}.toast.show{opacity:1;transform:translateY(0)}.toast.error{background:rgba(215,0,21,.94)}.loading{width:13px;height:13px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .65s linear infinite;vertical-align:-2px}@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01s!important;transition-duration:.01s!important}}
@media(max-width:1080px){.outbound-layout,.inbound-input-grid,.inventory-ai-query{grid-template-columns:1fr}.inventory-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.inbound-confirm{align-items:stretch;flex-direction:column}.inbound-confirm label{min-width:0;width:100%}}

@media(max-width:1080px){.page-grid,.two-column{grid-template-columns:1fr}.quote-preview{position:static}.inline-form{grid-template-columns:1fr 1fr}.match-card{grid-template-columns:30px 76px 1fr 36px}.match-card .product-select,.match-card .temporary-fields,.match-card .line-price-override,.match-card .line-price-locked{grid-column:2/-1}.match-card .match-status{grid-column:2/-1;justify-self:start;justify-items:start}.sidebar-foot{min-width:auto}.ai-status{display:none}}

@media(max-width:720px){
  .login-stage{padding:14px;display:grid;grid-template-columns:1fr}.login-mark{display:none}.login-card{width:min(440px,calc(100% - 12px));padding:36px 20px}
  .app-shell{padding-top:0;padding-bottom:74px}.sidebar{inset:auto 0 0 0;height:70px;padding:6px 8px max(6px,env(safe-area-inset-bottom));background:rgba(0,0,0,.9);border-top:1px solid rgba(255,255,255,.12)}.brand,.sidebar-foot{display:none}nav{width:100%;height:58px;margin:0;display:flex;gap:2px}nav button{flex:1 1 0;min-width:0;height:56px;padding:5px 2px;display:grid;place-items:center;align-content:center;gap:3px;color:#a1a1a6;border-radius:var(--radius-sm);font-size:9px;line-height:1.1;text-align:center}nav button span{display:block;width:auto;color:#a1a1a6;font-size:17px;line-height:1}nav button:hover,nav button.active{color:#fff;background:#2c2c2e}nav button.active span{color:var(--blue-dark)}
  .topbar{top:0;height:58px;padding:0 16px}.topbar h2{font-size:19px}.user-chip div{display:none}.view-root{padding:14px 10px 22px}
  .source-switcher{padding:16px;grid-template-columns:1fr 1fr;gap:10px}.source-button{min-height:108px;padding:13px}.form-grid,.metric-grid,.inline-form{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.panel-head{padding:18px}.panel-body{padding:18px}.intake-heading{display:block}.intake-heading p{margin-left:35px}.paste-shortcut{margin:12px 0 0 35px}.raw-input{min-height:194px}
  #recognize-button{flex:1 0 100%}#ocr-button,#add-line-button{flex:1 1 calc(50% - 5px)}#recognize-note{flex-basis:100%;line-height:1.55}.toolbar{align-items:stretch;flex-direction:column}.toolbar .search{max-width:none}.editing-banner{align-items:flex-start}.editing-banner .button{flex:0 0 auto}.toast{right:12px;bottom:82px;left:12px;max-width:none}.quote-preview{border-radius:var(--radius-lg)}
  .history-filters{align-items:stretch;flex-direction:column}.history-filters label{min-width:0}.document-modal{padding:0}.document-modal-shell{max-height:100vh;border-radius:0}.document-preview-stage{padding:10px;overflow:auto}.customer-document{min-width:760px}.document-modal-tools{padding:10px 12px}
  .source-switcher{grid-template-columns:1fr}.delivery-rail{grid-template-columns:1fr 1fr}.document-modal-shell{width:100%;height:100vh}.document-modal-tools{flex-wrap:wrap;align-content:center}.preview-tool-title{width:calc(100% - 54px)}.preview-zoom{order:3;width:100%;justify-content:center}.preview-zoom input{width:90px}.preview-language-actions{margin-left:0}.document-preview-canvas{margin:12px auto}.customer-document{min-width:820px}
  .inventory-hero{padding:24px;display:block}.inventory-balance{margin-top:22px;padding:18px 0 0;border-top:1px solid rgba(255,255,255,.22);border-left:0}.inventory-search{width:100%;display:grid;grid-template-columns:1fr auto}.inventory-search input{min-width:0}.desktop-write{display:none}.inventory-modal{padding:0}.inventory-modal-card{width:100%;height:100vh;max-height:none;border-radius:0}.inventory-print-meta{grid-template-columns:1fr}
  .inventory-metrics{grid-template-columns:1fr 1fr}.outbound-history-card{grid-column:1/-1}.outbound-history-section .panel-head{display:grid}.outbound-history-section .inventory-search{margin-top:12px}
  .inventory-ai-query{padding:18px;gap:16px}.inventory-ai-input{grid-template-columns:1fr}.inventory-ai-found{grid-template-columns:1fr auto}.inventory-ai-timeline{grid-column:1/-1}.inventory-ai-review>div{grid-template-columns:1fr}
}

.inventory-ai-summary{padding:16px 18px;background:#0d5f45;border-radius:14px;color:#fff}.inventory-ai-summary span,.inventory-ai-summary strong{display:block}.inventory-ai-summary span{color:#9fe2c3;font-size:9px;font-weight:800;letter-spacing:.12em}.inventory-ai-summary strong{margin-top:5px;font-size:20px}.inventory-ai-insight>div>span{color:#137a56;font-size:9px;font-weight:800;letter-spacing:.12em}.inventory-ai-insight>div>strong{margin:4px 0 10px;display:block}.inventory-ai-insight ol{max-height:310px;margin:0;padding:0;display:grid;gap:6px;overflow:auto;list-style:none}.inventory-ai-result{width:100%;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;background:#fff;border:1px solid #dce8e2;border-radius:11px;cursor:pointer}.inventory-ai-result:hover{background:#eef8f3;border-color:#68a98b}.inventory-ai-result>span{display:grid;grid-template-columns:30px 1fr;column-gap:9px}.inventory-ai-result i{grid-row:1/3;color:#8aa99a;font-size:10px;font-style:normal}.inventory-ai-result b{font-size:11px}.inventory-ai-result small{margin-top:2px;color:var(--muted)}.inventory-ai-result>strong{color:#0f6d4d;white-space:nowrap}
.inventory-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.outbound-history-card{appearance:none;text-align:left;border-color:#9dceb9;background:linear-gradient(145deg,#f5fcf8,#e9f7f0)}.outbound-history-card strong{color:#0c6d4b!important}.outbound-history-card span{display:block;margin-top:4px;color:#5d7469;font-size:10px}.outbound-history-card:hover{border-color:#137a56;box-shadow:0 12px 26px rgba(13,94,64,.12)}.outbound-history-section{scroll-margin-top:126px;border-color:#c8e1d5}.outbound-history-section .table-wrap{max-height:520px;overflow:auto}.outbound-history-section thead{position:sticky;top:0;z-index:2;background:#f7fbf9}.customer-address-cell{max-width:340px;line-height:1.55}.inventory-pdf-download{display:inline-flex;align-items:center;text-decoration:none;color:#163e30!important;background:#edf6f1!important}.document-card>header>div:last-child{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.document-customer-address{line-height:1.4}.inventory-print-meta span{line-height:1.5}

/* Inventory metric fit and native browser printing. */
.legacy-sync-panel{border-color:#c7ddd3;background:linear-gradient(135deg,#fff,#f7fbf9)}
.legacy-sync-form{display:grid;grid-template-columns:minmax(320px,1fr) minmax(360px,1.2fr) auto;align-items:end;gap:15px}
.legacy-sync-form input{padding:8px;background:#fff}.legacy-sync-warning{padding:12px 14px;color:#694b20;background:#fff8e9;border:1px solid #edd8ab;border-radius:12px}
.legacy-sync-warning strong,.legacy-sync-warning span,.legacy-sync-report strong,.legacy-sync-report span,.legacy-sync-report small{display:block}.legacy-sync-warning span{margin-top:4px;font-size:10px;line-height:1.5}
.legacy-sync-report{grid-column:1/-1;color:#3c594c}.legacy-sync-report span,.legacy-sync-report small{margin-top:4px;color:#64786e;font-size:10px;line-height:1.5}
.inventory-metrics .metric{min-width:0;padding:22px clamp(16px,1.7vw,24px)}
.inventory-metrics .metric strong{max-width:100%;font-size:clamp(27px,2.45vw,36px);white-space:nowrap}
.inventory-metrics .inventory-money-metric strong{font-size:clamp(22px,2.05vw,31px);letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.print-helper{flex:1 0 100%;margin-top:2px;color:#6c7d74;font-size:9px;line-height:1.4;text-align:right}
#inventory-print-root{display:none}
@media print{
  @page{size:A4 portrait;margin:14mm}
  body.inventory-printing{width:auto;margin:0;background:#fff;color:#16211d;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC",Arial;font-size:10pt}
  body.inventory-printing>*:not(#inventory-print-root){display:none!important}
  body.inventory-printing #inventory-print-root{width:182mm;margin:0;display:block!important}
  body.inventory-printing #inventory-print-root .inventory-print-sheet{padding:0}
  body.inventory-printing #inventory-print-root h1{font-size:10pt;color:#17845b}
  body.inventory-printing #inventory-print-root h2{margin:6mm 0;font-size:22pt}
  body.inventory-printing #inventory-print-root .inventory-print-meta{margin:6mm 0;padding:4mm;display:grid;grid-template-columns:1fr 1fr;gap:3mm;background:#f1f8f5;border-radius:0}
  body.inventory-printing #inventory-print-root table{width:100%;border-collapse:collapse;page-break-inside:auto}
  body.inventory-printing #inventory-print-root tr{page-break-inside:avoid}
  body.inventory-printing #inventory-print-root th,body.inventory-printing #inventory-print-root td{padding:3mm;border-bottom:.3mm solid #dce8e2;text-align:left}
  body.inventory-printing #inventory-print-root th{color:#fff;background:#163e30}
  body.inventory-printing #inventory-print-root .no-print{display:none!important}
}
@media(max-width:1080px){.inventory-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.legacy-sync-form{grid-template-columns:1fr}}
@media(max-width:720px){.inventory-metrics{grid-template-columns:1fr 1fr}.inventory-money-metric,.outbound-history-card{grid-column:1/-1}}

.internal-product-flag{display:inline-flex;margin-left:6px;padding:3px 7px;color:#8a3b00;background:#fff0d6;border:1px solid #f3c77e;border-radius:999px;font-size:9px;font-weight:700;vertical-align:middle}.inventory-operations{overflow:hidden}.inventory-operation-grid{padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;background:#f5faf7}.inventory-operation-card{padding:22px;background:#fff;border:1px solid #d5e8de;border-radius:18px}.inventory-operation-card h3{margin:6px 0;font-size:20px}.inventory-operation-card>p{margin:0 0 16px;color:#62736b;line-height:1.55}.operation-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.product-master-form{margin-top:14px;padding-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;border-top:1px solid #e0ebe5}.product-master-form label{min-width:0}.check-field{min-height:44px;padding:10px 12px;display:flex!important;align-items:center;gap:8px;background:#f5faf7;border-radius:10px}.check-field input{width:18px;min-height:18px;margin:0}.import-preview-report{margin-top:10px;display:grid;gap:4px;color:#52675d;font-size:11px}.import-preview-report strong{color:#126b4c}.import-preview-report span{line-height:1.5}.preparation-order-mark{color:#137a56;font-size:10px;font-weight:800;letter-spacing:.15em}.preparation-order-warning{margin:4mm 0;padding:3mm;color:#754f00;background:#fff4cc;border:.3mm solid #e9c96b;border-radius:2mm;font-weight:700}.preparation-signatures{margin-top:18mm;display:flex;justify-content:space-between;gap:8mm}@media(max-width:900px){.inventory-operation-grid{grid-template-columns:1fr}.product-master-form{grid-template-columns:1fr}.product-master-form .span-2{grid-column:auto}}

.last-sale-hint{margin-top:7px;padding:7px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#176244;background:#edf8f3;border-radius:8px;font-size:9px}.last-sale-hint button{padding:3px 7px;color:#fff;background:#137a56;border:0;border-radius:6px;font-size:9px;white-space:nowrap}

/* Phase 3 · lifecycle, aging signals and historical inventory visualization. */
.timeline-chart-section,.lifecycle-history{padding:20px 24px;border-bottom:1px solid #dce8e2}.timeline-chart-section>div:first-child span,.lifecycle-history>div:first-child span{color:#17845b;font-size:9px;font-weight:800;letter-spacing:.13em}.timeline-chart-section h4,.lifecycle-history h4{margin:3px 0 14px;font-size:16px}.product-history-chart{padding:12px 14px;background:#f4faf7;border:1px solid #d8e9e1;border-radius:14px;overflow:hidden}.product-history-chart svg{width:100%;height:auto;display:block}.product-history-chart path{fill:none;stroke:#0a8259;stroke-width:3;stroke-linejoin:round}.product-history-chart circle{fill:#fff;stroke:#0a8259;stroke-width:3}.product-history-chart text{fill:#6a8075;font-size:10px}.product-history-chart .chart-zero{stroke:#c3d6cc;stroke-width:1;stroke-dasharray:4 4}.product-history-chart>div{display:flex;justify-content:space-between;color:#60776c;font-size:10px}.inventory-chart-empty{padding:30px;color:#6b7d74;background:#f4faf7;border-radius:14px;text-align:center}.lifecycle-history ol{margin:0;padding:0;display:grid;gap:8px;list-style:none}.lifecycle-history li{padding:10px 12px;display:flex;justify-content:space-between;gap:16px;background:#f7faf8;border-radius:10px}.lifecycle-history li strong{font-size:11px}.lifecycle-history li span{color:#63766d;font-size:10px;text-align:right}
.analytics-inventory-section{margin-top:28px;padding:30px;background:#f6f3fb;border:1px solid #ded5eb;border-radius:22px}.analytics-section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.analytics-section-head span{color:#6b3aa5;font-size:10px;font-weight:800;letter-spacing:.15em}.analytics-section-head h2{margin:5px 0 6px;font-size:27px;letter-spacing:-.04em}.analytics-section-head p,.analytics-section-head>small{color:#756d7d;font-size:11px}.analytics-signal-grid{margin:22px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.analytics-signal{min-width:0;padding:18px;display:grid;gap:4px;text-align:left;background:#fff;border:1px solid #dfd7e8;border-radius:16px;cursor:pointer}.analytics-signal:hover{border-color:#8a63b3;transform:translateY(-1px)}.analytics-signal small{color:#766e7d;font-size:10px}.analytics-signal strong{font-size:23px;letter-spacing:-.04em}.analytics-signal span{color:#695777;font-size:11px}.analytics-signal.stale{border-top:4px solid #8b5fb5}.analytics-signal.tail{border-top:4px solid #c48d2e}.analytics-signal.discontinued{border-top:4px solid #bd5f68}.analytics-signal.total{border-top:4px solid #3b729f;cursor:default}.analytics-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:16px}.analytics-grid>.panel{margin:0;border-color:#ded7e7}.analytics-history-chart svg{width:100%;height:auto;display:block}.analytics-history-chart .chart-area{fill:rgba(112,69,151,.12)}.analytics-history-chart .chart-line{fill:none;stroke:#71479a;stroke-width:3}.analytics-history-chart circle{fill:#fff;stroke:#71479a;stroke-width:3}.analytics-history-chart text{fill:#7b7283;font-size:9px}.analytics-product-list{padding-top:10px;display:grid;gap:6px}.analytics-product{width:100%;padding:9px 10px;display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:9px;text-align:left;background:#fbfafd;border:1px solid transparent;border-radius:10px;cursor:pointer}.analytics-product:hover{background:#f2edf8;border-color:#d8c9e6}.analytics-product i{color:#9a89a8;font-size:9px;font-style:normal}.analytics-product span{min-width:0}.analytics-product b,.analytics-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.analytics-product b{font-size:10px}.analytics-product small{margin-top:2px;color:#817789;font-size:9px}.analytics-product>strong{font-size:10px;white-space:nowrap}.lifecycle-bars{display:grid;gap:8px}.lifecycle-bars>div{padding:11px 12px;display:grid;grid-template-columns:1fr auto auto;gap:14px;background:#faf8fc;border-radius:10px}.lifecycle-bars span{font-size:10px}.lifecycle-bars b,.lifecycle-bars strong{font-size:10px}.lifecycle-bars strong{min-width:90px;text-align:right}
@media(max-width:1080px){.analytics-signal-grid{grid-template-columns:1fr 1fr}.analytics-grid{grid-template-columns:1fr}}
@media(max-width:720px){.analytics-inventory-section{padding:16px;border-radius:16px}.analytics-section-head{display:block}.analytics-section-head>small{display:block;margin-top:8px}.analytics-signal-grid{grid-template-columns:1fr 1fr}.analytics-signal{padding:14px}.analytics-signal strong{font-size:19px}.timeline-chart-section,.lifecycle-history{padding:16px}.lifecycle-history li{display:grid}.lifecycle-history li span{text-align:left}}
.trend-chart{position:relative}
.trend-chart .chart-hit{fill:transparent;stroke:none;pointer-events:all}
.chart-point{cursor:pointer}
.chart-point:focus .chart-dot,.chart-point:hover .chart-dot{stroke-width:5}
.trend-chart .trend-tooltip{position:absolute;z-index:5;max-width:min(320px,100%);padding:12px 15px;background:#30223f;color:#fff;border-radius:12px;box-shadow:0 6px 20px #30223f30;white-space:pre-line;font-size:12px;line-height:1.7;pointer-events:none}
.trend-tooltip[hidden]{display:none}
.analytics-product b,.analytics-product .analytics-product-spec{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5}
.analytics-product .analytics-product-spec{color:#65536f;font-size:11px;margin-top:4px}

/* Five customer-facing quote personalities. Only appearance changes; commercial data never does. */
.beautify-button{margin-bottom:8px;color:#fff!important;background:linear-gradient(110deg,#3b1d8f,#7357df 55%,#1477d4)!important;border:0!important;box-shadow:0 10px 25px rgba(76,54,164,.22)}.beautify-button span{margin-right:6px}.preview-beautify{height:38px;padding:0 13px;display:flex;align-items:center;gap:9px;color:#fff;background:linear-gradient(120deg,#5637bd,#197bd1);border:1px solid rgba(255,255,255,.24);border-radius:10px;cursor:pointer}.preview-beautify>i{font-size:16px;font-style:normal}.preview-beautify span,.preview-beautify b,.preview-beautify small{display:block;margin:0!important}.preview-beautify b{font-size:10px}.preview-beautify small{color:#dad2ff!important;font-size:8px!important;font-weight:500}
.document-theme-graphite{padding:48px 46px 34px;color:#161617;background:#f0f0ee;font-family:"Arial Narrow","PingFang SC",sans-serif}.document-theme-graphite .customer-document-head{display:grid;grid-template-columns:1fr 190px;padding-bottom:18px;border-bottom:7px solid #161617}.document-theme-graphite .document-brand-mark{background:#161617;border-radius:2px}.document-theme-graphite h1{max-width:510px;margin-top:18px;font-family:Georgia,"Songti SC",serif;font-size:37px;font-weight:500;line-height:1.04}.document-theme-graphite .document-number{padding:14px;color:#fff;background:#303033;text-align:left}.document-theme-graphite .document-number span{color:#bababb}.document-theme-graphite .document-number strong{margin-top:30px;font-size:15px}.document-theme-graphite .document-meta{margin:18px 0 20px;padding:0;grid-template-columns:2fr 1fr;border:0}.document-theme-graphite .document-meta>div{padding:10px 12px;border-left:3px solid #303033}.document-theme-graphite .document-items{font-family:"Arial Narrow","PingFang SC",sans-serif}.document-theme-graphite .document-items th{padding:8px;color:#f5f5f2;background:#303033;border:0;text-transform:uppercase}.document-theme-graphite .document-items td{padding:8px;border-color:#c8c8c4}.document-theme-graphite .document-product-image{width:45px;height:45px;background:#fff;border-radius:0}.document-theme-graphite .document-total{justify-content:stretch}.document-theme-graphite .document-total>div{width:100%;border-radius:0;background:#303033}.document-theme-graphite .document-footer{border-color:#b9b9b5}
.document-theme-ocean{padding:48px 46px 34px;color:#092b35;background:#f2fafb;font-family:"Avenir Next","PingFang SC",sans-serif}.document-theme-ocean .customer-document-head{margin:-20px -18px 0;padding:30px 28px 32px;align-items:end;color:#fff;background:linear-gradient(128deg,#062e3b,#007d8a);border-radius:3px 24px 3px 24px}.document-theme-ocean .customer-document-head .document-brand,.document-theme-ocean .customer-document-head h1,.document-theme-ocean .document-number strong{color:#fff}.document-theme-ocean .customer-document-head p,.document-theme-ocean .document-number span{color:#a7e1e4}.document-theme-ocean .document-brand-mark{color:#06404a;background:#b9f3ef}.document-theme-ocean h1{max-width:520px;margin:22px 0 6px;color:#fff;font-size:34px;font-weight:550;letter-spacing:-.045em}.document-theme-ocean .document-meta{margin:18px 0 24px;padding:0;grid-template-columns:repeat(2,1fr);gap:8px;border:0}.document-theme-ocean .document-meta>div{padding:12px 14px;background:#e2f3f4;border-radius:12px}.document-theme-ocean .document-items{border-spacing:0 5px;border-collapse:separate}.document-theme-ocean .document-items th{padding:9px;color:#075b65;border:0}.document-theme-ocean .document-items td{padding:9px 8px;background:#fff;border:0}.document-theme-ocean .document-items tr td:first-child{border-radius:12px 0 0 12px}.document-theme-ocean .document-items tr td:last-child{border-radius:0 12px 12px 0}.document-theme-ocean .document-product-image{width:46px;height:46px;background:#e2f3f4}.document-theme-ocean .document-total>div{background:#006b76;border-radius:4px 18px 4px 18px}.document-theme-ocean .document-footer{border-color:#b7dcdd}
.document-theme-copper{padding:54px 54px 36px;color:#3f281c;background:#fffaf2;font-family:Georgia,"Songti SC",serif}.document-theme-copper .customer-document-head{position:relative;display:grid;grid-template-columns:1fr;justify-items:center;text-align:center}.document-theme-copper .customer-document-head:after{content:"";width:76px;height:2px;margin-top:18px;background:#b86b3f}.document-theme-copper .document-brand{color:#924f2d}.document-theme-copper .document-brand-mark{background:#b86b3f;border-radius:50% 50% 50% 8px}.document-theme-copper h1{margin:20px 0 8px;color:#4a2a19;font-family:Georgia,"Songti SC",serif;font-size:31px;font-weight:500;letter-spacing:.03em}.document-theme-copper .document-number{position:absolute;right:0;top:0;text-align:right}.document-theme-copper .document-meta{padding:18px 22px;grid-template-columns:2fr 1fr 1fr 1fr;background:#f7ead9;border:0;border-radius:0}.document-theme-copper .document-items th{padding-top:15px;color:#945638;border-color:#b86b3f;font-family:-apple-system,"PingFang SC",sans-serif}.document-theme-copper .document-items td{padding:14px 8px}.document-theme-copper .document-product-image{background:#f7ead9;border-radius:50%;box-shadow:inset 0 0 0 1px #ead3bd}.document-theme-copper .document-total>div{min-width:310px;padding:22px 24px;background:#5a3522;border-radius:0}.document-theme-copper .document-footer{border-color:#dbc2aa}
.document-theme-aurora{position:relative;padding:52px 50px 34px;color:#17152f;background:linear-gradient(180deg,#f8f7ff 0,#fff 28%,#fafcff 100%);overflow:hidden;font-family:"Avenir Next","PingFang SC",sans-serif}.document-theme-aurora:before{content:"";position:absolute;inset:0 0 auto;height:14px;background:linear-gradient(90deg,#4531c4,#ca48bf,#148ed1)}.document-theme-aurora .customer-document-head{display:grid;grid-template-columns:1fr auto;align-items:center}.document-theme-aurora .document-brand{color:#5637bd}.document-theme-aurora .document-brand-mark{background:linear-gradient(135deg,#5637bd,#d04fb4)}.document-theme-aurora h1{max-width:520px;margin:34px 0 8px;background:linear-gradient(90deg,#211567,#9e2d95);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:39px;line-height:1.02}.document-theme-aurora .document-number{padding:14px 16px;background:#f0edff;border:1px solid #d9d2f4;border-radius:16px}.document-theme-aurora .document-meta{padding:12px;grid-template-columns:repeat(4,1fr);gap:7px;background:linear-gradient(100deg,#f0edff,#eef8ff);border:0;border-radius:18px}.document-theme-aurora .document-meta>div{padding:8px 10px;background:rgba(255,255,255,.72);border-radius:11px}.document-theme-aurora .document-items{border-collapse:separate;border-spacing:0 7px}.document-theme-aurora .document-items th{color:#5637bd;border-color:#7357df}.document-theme-aurora .document-items td{background:#fff;border:0;box-shadow:0 4px 15px rgba(78,55,150,.05)}.document-theme-aurora .document-product-image{width:46px;height:46px;background:#f0edff}.document-theme-aurora .document-total>div{min-width:330px;padding:21px 24px;background:linear-gradient(110deg,#211567,#8b338f);border-radius:18px;box-shadow:0 12px 30px rgba(75,45,150,.2)}.document-theme-aurora .document-footer{border-color:#d9d2f4}
.analytics-ranking .analytics-product-list,.outbound-ranking-results{max-height:560px;overflow-y:auto;align-content:start}
.outbound-ranking-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:16px 20px 0}
.outbound-ranking-filters label{font-size:11px;display:grid;gap:5px;min-width:130px}
.outbound-ranking-filters label[hidden]{display:none}
.outbound-ranking-summary{padding:0 20px;color:#756d7d;font-size:11px}
.outbound-ranking-panel .analytics-product-spec,.analytics-ranking .analytics-product-spec{white-space:normal;overflow:visible;line-height:1.5}
.outbound-revenue-panel{margin:18px 0}
.outbound-revenue-panel .outbound-ranking-summary{padding-bottom:16px;line-height:1.7}
.revenue-incomplete{border-color:#c48d2e}
.outbound-revenue-metric strong{max-width:100%;font-size:clamp(22px,2.3vw,30px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

/* Unified document records and confirmed product-combination search */
.document-type.inbound{color:#0a6243;background:#e4f6ed}.record-product-search{margin:0 24px 22px;padding:20px;background:linear-gradient(135deg,#f5fbf8,#f2f7ff);border:1px solid #d7e8e0;border-radius:18px}.record-search-intro{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.record-search-intro span{color:#0c7a55;font-size:10px;font-weight:700;letter-spacing:.14em}.record-search-intro h4{margin:5px 0 4px;font-size:18px}.record-search-intro p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.record-search-active{padding:7px 11px;color:#0a6243;background:#dff3e9;border-radius:999px;font-size:11px;white-space:nowrap}.record-search-input{margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}.record-search-input textarea{min-height:76px;resize:vertical}.record-product-criteria{margin-top:14px;display:grid;gap:10px}.record-product-criterion{padding:13px;display:grid;grid-template-columns:minmax(180px,.75fr) minmax(240px,1.35fr) minmax(250px,auto) auto;gap:12px;align-items:center;background:#fff;border:1px solid #dce9e3;border-radius:14px}.record-criterion-main{display:flex;align-items:center;gap:10px;min-width:0}.record-criterion-number{width:27px;height:27px;display:grid;place-items:center;flex:0 0 auto;color:#0c7a55;background:#e8f7f0;border-radius:50%;font-size:11px;font-weight:700}.record-criterion-main strong,.record-criterion-main small{display:block}.record-criterion-main strong{font-size:13px;overflow-wrap:anywhere}.record-criterion-main small{margin-top:4px;color:var(--muted);font-size:10px}.record-product-criterion label{font-size:10px}.record-product-criterion select,.record-product-criterion input{min-height:40px;padding:8px 10px;font-size:12px}.record-criterion-actions{display:flex;flex-wrap:wrap;gap:5px}.record-criterion-actions button{padding:6px 9px;color:#0b684a;background:#f0f8f4;border:1px solid #d8e9e0;border-radius:999px;font-size:10px}.record-criterion-actions .remove-record-product{color:#b4232b;background:#fff5f5;border-color:#f2d6d8}.record-criterion-state{padding:6px 9px;border-radius:999px;font-size:10px;white-space:nowrap}.record-criterion-state.confirmed{color:#176b32;background:#e6f6e9}.record-criterion-state.review{color:#8a4b08;background:#fff1dc}.record-search-actions{margin-top:14px;display:flex;gap:8px}.record-match-hint{margin-top:7px;padding:7px 9px;color:#426253;background:#eff8f3;border-radius:8px;font-size:10px;line-height:1.5}.record-match-hint b{display:block;color:#0b684a}.record-pagination{padding:15px 22px;display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid var(--line-soft);font-size:11px;color:var(--muted)}.record-pagination button{padding:7px 11px;color:var(--blue);background:#f5f5f7;border:0;border-radius:999px}.record-pagination button:disabled{opacity:.4}.record-pagination label{display:flex;grid-auto-flow:column;align-items:center;gap:5px;font-size:11px}.record-pagination select{width:72px;min-height:34px;padding:5px 8px}.record-manual-results{margin-top:12px;max-height:430px;overflow-y:auto}
@media(max-width:1050px){.record-product-criterion{grid-template-columns:1fr 1fr}.record-criterion-state{justify-self:start}}@media(max-width:720px){.record-product-search{margin:0 12px 16px;padding:15px}.record-search-input,.record-product-criterion{grid-template-columns:1fr}.record-search-intro{display:block}.record-search-active{display:inline-block;margin-top:8px}.record-pagination{justify-content:center;flex-wrap:wrap}.record-history-table thead{display:none}.record-history-table,.record-history-table tbody{display:block}.record-history-table tbody{padding:10px}.record-history-table tr{display:grid;margin-bottom:12px;padding:12px;background:#fff;border:1px solid var(--line-soft);border-radius:14px}.record-history-table td{display:grid!important;grid-template-columns:82px minmax(0,1fr);gap:10px;align-items:start;padding:8px!important;border:0!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}.record-history-table td:before{content:attr(data-label);color:var(--muted);font-size:10px;font-weight:600}.record-history-table .record-actions{justify-content:flex-start}.record-history-table .money{font-size:13px}}
.record-search-active.dirty{color:#8a4b08;background:#fff1dc}
@media(max-width:720px){.document-records-panel>.panel-head{display:grid}.document-records-panel>.panel-head .action-row.compact{width:100%;display:flex;flex-wrap:wrap}.document-records-panel>.panel-head .button{width:auto;white-space:nowrap}.record-history-table .record-actions{justify-content:flex-start;flex-wrap:wrap;max-width:100%}.record-history-table .record-actions a,.record-history-table .record-actions button{white-space:nowrap}}
/* Optional quote fee keeps the product rule visible and the final total dominant. */
.quote-service-fee{padding:16px 20px;border:1px solid var(--line,#dce8e2);border-radius:14px;background:#f5f9f7;display:grid;gap:16px}
.quote-service-fee .service-fee-toggle{display:flex;flex-direction:row;align-items:center;gap:12px;cursor:pointer}
.quote-service-fee .service-fee-toggle input{width:20px;height:20px;margin:0;accent-color:#127a57;flex-shrink:0}
.service-fee-toggle span{display:grid;gap:4px}.service-fee-toggle small{font-size:12px;font-weight:400;color:#63776d}
.quote-service-fee>label:not(.service-fee-toggle){max-width:400px}.document-total{gap:8px;flex-direction:column;align-items:flex-end}
.document-total>.service-fee-summary{font-size:13px;min-width:280px;justify-content:space-between;background:transparent;color:inherit;padding:4px 0;gap:24px}
.service-fee-summary b{font-size:15px;font-variant-numeric:tabular-nums}
.customer-document .service-fee-summary span{color:#606570;font-size:13px}
.negative-stock-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;margin:0 0 24px}.negative-stock-summary h3{margin:4px 0;font-size:19px}.negative-stock-summary p{font-size:12px;color:#62766d;margin:0}.shortfall-total{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}.shortfall-total strong{font-size:32px;color:#b54d3e;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.shortfall-total span{color:#62766d;font-size:13px}
@media(max-width:700px){.negative-stock-summary{align-items:flex-start;flex-direction:column}.quote-service-fee{padding:14px}.document-total>.service-fee-summary{min-width:240px}}
