.crm-page { max-width:1400px; margin:0 auto; padding:22px; }
.crm-heading-compact { justify-content:flex-end; margin-bottom:10px; }
.crm-page > .card { margin-bottom:18px; }
.auth-card { max-width:460px; margin:40px auto; }
.crm-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.crm-heading-actions { display:flex; align-items:center; justify-content:flex-end; gap:14px; text-align:right; }
.crm-heading-actions p { margin:3px 0 0; }
.crm-heading h2 { margin:0 0 6px; }
.crm-period { position:sticky; z-index:12; top:72px; display:flex; flex-wrap:nowrap; align-items:center; gap:8px; margin-bottom:18px; padding:8px; border:1px solid #dbe3ef; border-radius:18px; background:#fffffff5; box-shadow:0 10px 30px #0f172a12; backdrop-filter:blur(14px); }
.crm-period-navigation { width:min(100%,590px); min-width:430px; flex:0 1 590px; display:grid; grid-template-columns:minmax(270px,1fr) auto; align-items:stretch; gap:7px; }
.crm-period-picker { min-width:0; display:grid; grid-template-columns:34px minmax(0,1fr) 18px; align-items:center; padding:6px 8px; border:1px solid #dbe3ef; border-radius:13px; background:#f8fafc; transition:border-color .18s,box-shadow .18s,background .18s; cursor:pointer; }
.crm-period-picker:focus-within { border-color:#93c5fd; background:#fff; box-shadow:0 0 0 4px #dbeafe99; }
.crm-period-picker label { min-width:0; margin:0; cursor:pointer; }
.crm-period-picker label > span { display:block; margin-bottom:2px; color:#64748b; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.crm-period-icon { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:#e8efff; color:#2563eb; }
.crm-period-icon svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.crm-range-input[type=text] { width:100%; margin:0; padding:0; border:0; border-radius:0; outline:0; background:transparent; color:#0f172a; font-size:14px; font-weight:800; cursor:pointer; box-shadow:none; }
.crm-period-chevron { color:#64748b; font-size:18px; line-height:1; text-align:center; transform:translateY(-1px); }
.crm-period-arrows { display:flex; align-items:stretch; gap:6px; }
.crm-period-arrow { width:58px; min-height:42px; display:grid; place-items:center; margin:0; padding:0; border:1px solid #dbe3ef; border-radius:12px; background:#fff; color:#334155; font-size:24px; line-height:1; box-shadow:none; }
.crm-period-arrow:hover:not(:disabled) { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; filter:none; }
.crm-period-arrow:disabled { border-color:#e2e8f0; background:#f8fafc; color:#cbd5e1; cursor:not-allowed; opacity:1; }
.crm-period-presets { min-width:0; flex:1 1 auto; display:flex; align-items:center; justify-content:stretch; gap:5px; padding:4px; border-radius:13px; background:#f1f5f9; }
.crm-period-preset { min-width:0; flex:1 1 0; margin:0; padding:9px 8px; border-radius:10px; background:transparent; color:#475569; font-size:12px; font-weight:800; white-space:nowrap; }
.crm-period-preset:hover { background:#fff; color:#1d4ed8; box-shadow:0 2px 8px #0f172a12; filter:none; }
.crm-period-preset.active { background:#fff; color:#1d4ed8; box-shadow:0 2px 10px #0f172a18, inset 0 0 0 1px #bfdbfe; }
.crm-period-submit { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:7px; margin:0; padding:9px 13px; border-radius:12px; background:#0f172a; white-space:nowrap; }
.crm-period-submit svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.flatpickr-calendar { overflow:hidden; border:1px solid #dbe3ef; border-radius:18px; background:#fff; box-shadow:0 24px 70px #0f172a2e; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.flatpickr-calendar.arrowTop::before { border-bottom-color:#dbe3ef; }
.flatpickr-calendar.arrowTop::after { border-bottom-color:#fff; }
.flatpickr-months { padding:8px 8px 2px; }
.flatpickr-months .flatpickr-month { height:42px; color:#0f172a; }
.flatpickr-current-month { padding-top:9px; font-size:15px; font-weight:800; }
.flatpickr-current-month .flatpickr-monthDropdown-months,.flatpickr-current-month input.cur-year { font-weight:800; }
.flatpickr-prev-month,.flatpickr-next-month { top:8px !important; width:38px; height:38px; display:grid; place-items:center; border-radius:11px; }
.flatpickr-prev-month:hover,.flatpickr-next-month:hover { background:#eff6ff; }
.flatpickr-prev-month:hover svg,.flatpickr-next-month:hover svg { fill:#2563eb; }
.flatpickr-weekdays { margin-top:5px; }
span.flatpickr-weekday { color:#94a3b8; font-size:11px; font-weight:800; text-transform:uppercase; }
.flatpickr-day { border-radius:10px; color:#334155; font-weight:650; }
.flatpickr-day:hover { border-color:#dbeafe; background:#eff6ff; }
.flatpickr-day.today { border-color:#93c5fd; color:#1d4ed8; }
.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover { border-color:#2563eb; background:#2563eb; color:#fff; }
.flatpickr-day.inRange { border-color:#dbeafe; background:#dbeafe; box-shadow:-5px 0 0 #dbeafe,5px 0 0 #dbeafe; color:#1e3a8a; }
.crm-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.crm-stat { position:relative; min-height:150px; display:flex; flex-direction:column; overflow:hidden; padding:18px 20px; border:1px solid var(--line); border-radius:16px; background:white; color:inherit; box-shadow:0 8px 24px #0f172a0a; transition:transform .18s,box-shadow .18s,border-color .18s; }
.crm-stat:hover { border-color:#bfdbfe; box-shadow:0 12px 30px #2563eb12; text-decoration:none; transform:translateY(-2px); }
.crm-stat span,.crm-stat strong { display:block; }
.crm-stat .crm-stat-icon { position:absolute; top:12px; right:14px; width:58px; height:58px; display:grid; place-items:center; margin:0; color:#0284c7; opacity:.12; pointer-events:none; transform:rotate(-5deg); transition:opacity .18s,transform .18s; }
.crm-stat:hover .crm-stat-icon { opacity:.2; transform:rotate(0) scale(1.04); }
.crm-stat-icon svg { width:48px; height:48px; fill:none; stroke:currentColor; stroke-width:1.45; stroke-linecap:round; stroke-linejoin:round; }
.crm-stat .crm-stat-label { position:relative; z-index:1; width:100%; color:#475569; font-size:13px; font-weight:800; }
.crm-stat strong { position:relative; z-index:1; margin-top:10px; font-size:28px; line-height:1.1; }.crm-dashboard-stats .crm-stat strong { font-size:clamp(20px,1.6vw,24px); white-space:nowrap; }
.crm-stat small { position:relative; z-index:1; display:block; margin-top:auto; padding-top:14px; color:var(--muted); line-height:1.35; }
.crm-stat .crm-stat-secondary { margin-top:7px; color:#0f766e; font-weight:850; }
.crm-delta { display:inline-block; padding:3px 7px; border-radius:999px; font-size:12px; font-weight:800; }
.crm-delta.good { color:#166534; background:#dcfce7; }
.crm-delta.bad { color:#b91c1c; background:#fee2e2; }
.crm-delta.neutral { color:#475569; background:#e2e8f0; }
.crm-analytics-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr); gap:18px; align-items:start; margin-bottom:18px; }
.crm-dashboard-trend { margin-bottom:18px; }
.crm-dashboard-trend .crm-column-chart { height:270px; }.crm-internal-transfer-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:10px;padding:11px 16px;border:1px solid #99f6e4;border-radius:14px;background:#f0fdfa}.crm-internal-transfer-summary div{display:grid;gap:2px}.crm-internal-transfer-summary strong{color:#115e59;font-size:13px}.crm-internal-transfer-summary small{color:#64748b;font-size:11px}.crm-internal-transfer-summary b{color:#0f766e;font-size:16px;white-space:nowrap}
.crm-comparison-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.crm-chart-card { min-width:0; }
.crm-metric-switch { display:inline-flex; flex:0 0 auto; gap:4px; padding:4px; border-radius:12px; background:#f1f5f9; }
.crm-metric-switch button { margin:0; padding:7px 11px; border-radius:9px; background:transparent; color:#64748b; font-size:12px; font-weight:850; box-shadow:none; }
.crm-metric-switch button:hover { background:#fff; color:#0f766e; filter:none; }
.crm-metric-switch button.active { background:#fff; color:#0f766e; box-shadow:0 2px 8px #0f172a18; }
.crm-chart-summary { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 12px; margin:-4px 0 14px; }
.crm-chart-summary strong { color:#0f172a; font-size:24px; }
.crm-chart-summary span { color:#94a3b8; font-size:12px; }
.crm-metric-panel[hidden],[data-crm-metric-total][hidden] { display:none !important; }
.crm-column-chart-scroll { overflow-x:hidden; padding:2px 0 4px; }
.crm-column-chart { width:100%; min-width:0; height:220px; display:flex; align-items:stretch; gap:clamp(1px,.25vw,4px); padding:0; }
.crm-column { min-width:0; flex:1 1 0; display:grid; grid-template-rows:18px minmax(126px,1fr) 24px; gap:4px; text-align:center; }
.crm-column > span { overflow:hidden; color:#475569; font-size:10px; font-weight:850; text-overflow:ellipsis; white-space:nowrap; }
.crm-column-track { position:relative; width:min(100%,18px); justify-self:center; display:flex; align-items:flex-end; overflow:hidden; border-radius:7px 7px 2px 2px; background:repeating-linear-gradient(to top,#f1f5f9 0,#f1f5f9 1px,transparent 1px,transparent 25%); }
.crm-column-track i { width:100%; min-height:2px; display:block; border-radius:8px 8px 2px 2px; background:linear-gradient(180deg,#2dd4bf,#0f766e); box-shadow:0 -5px 16px #14b8a638; transition:height .22s ease; }
.crm-debt-track i { background:linear-gradient(180deg,#fb7185,#be123c); box-shadow:0 -5px 16px #e11d4838; }
[data-crm-metric-panel="amount"] .crm-column-track i { background:linear-gradient(180deg,#60a5fa,#2563eb); box-shadow:0 -5px 16px #2563eb32; }
.crm-column small { align-self:start; overflow:hidden; color:#64748b; font-size:9px; font-weight:750; letter-spacing:-.02em; text-overflow:ellipsis; white-space:nowrap; }
.crm-column.future { opacity:.48; }
.crm-column.future .crm-column-track { background:#f8fafc; }
.crm-column.future .crm-column-track i { box-shadow:none; background:#cbd5e1; }
.crm-rank-row { display:block; padding:10px 0; border-bottom:1px solid #eef2f7; color:inherit; }
.crm-rank-row:hover { text-decoration:none; }
.crm-rank-row:last-child { border-bottom:0; }
.crm-rank-row > span { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:baseline; }
.crm-rank-row > span strong { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.crm-rank-row > span b { color:#0f172a; font-size:13px; }
.crm-rank-track { height:8px; overflow:hidden; margin-top:7px; border-radius:99px; background:#e2e8f0; }
.crm-rank-track i { height:100%; min-width:2px; display:block; border-radius:99px; background:linear-gradient(90deg,#2dd4bf,#0f766e); }
[data-crm-metric-panel="amount"] .crm-rank-track i { background:linear-gradient(90deg,#93c5fd,#2563eb); }
.crm-rank-row > small { display:block; margin-top:5px; color:#94a3b8; font-size:11px; }
.crm-sku-card { margin-bottom:18px; }
.crm-product-rank-switches { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.crm-sku-panel { grid-template-columns:1fr 1fr; gap:0 28px; }
.crm-sku-panel:not([hidden]) { display:grid; }
.crm-sku-row > span strong { display:flex; min-width:0; align-items:center; gap:7px; }
.crm-sku-row > span strong em { width:21px; flex:0 0 21px; color:#94a3b8; font-size:11px; font-style:normal; text-align:right; }
.crm-sku-row > span strong code { flex:0 0 auto; padding:3px 6px; border-radius:6px; background:#ecfeff; color:#0f766e; font:800 11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; }
.crm-series-row > span strong { white-space:normal; }
[data-crm-product-panel$=":amount"] .crm-rank-track i { background:linear-gradient(90deg,#93c5fd,#2563eb); }
.crm-attention-card { margin-bottom:18px; }
.crm-chart-details { margin-top:14px; border-top:1px solid var(--line); padding-top:12px; }
.crm-chart-details summary { cursor:pointer; color:#475569; font-size:13px; font-weight:800; }
.crm-chart-details[open] summary { margin-bottom:12px; }
.crm-client-history-card { margin-top:18px; overflow:visible; border-color:#dbe3ef; border-radius:20px; box-shadow:0 16px 44px #0f172a0c; }
.crm-client-history-heading { align-items:center; margin-bottom:16px; }
.crm-client-history-heading p { margin:4px 0 0; font-size:11px; }
.crm-client-history-switch { display:flex; flex:none; gap:3px; padding:3px; border-radius:11px; background:#eef3f9; }
.crm-client-history-switch button { min-height:31px; margin:0; padding:7px 12px; border-radius:8px; background:transparent; color:#64748b; box-shadow:none; font-size:11px; }
.crm-client-history-switch button:hover,.crm-client-history-switch button.active { background:#fff; color:#1d4ed8; box-shadow:0 3px 10px #0f172a12; filter:none; }
.crm-client-history-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:hidden; margin-bottom:20px; border:1px solid var(--line); border-radius:15px; background:#f8fafc; }
.crm-client-history-summary > div { min-width:0; padding:13px 15px; border-right:1px solid var(--line); }
.crm-client-history-summary > div:last-child { border-right:0; }
.crm-client-history-summary span,.crm-client-history-summary strong,.crm-client-history-summary small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.crm-client-history-summary span { color:#64748b; font-size:10px; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.crm-client-history-summary strong { margin-top:5px; color:#0f172a; font-size:19px; }
.crm-client-history-summary small { margin-top:3px; color:#94a3b8; font-size:10px; }
.crm-client-directory-summary .crm-client-history-summary { grid-template-columns:repeat(5,minmax(0,1fr)); }
.crm-client-directory-series { display:flex; align-items:center; gap:18px; }
.crm-client-directory-series h3 { margin:0; white-space:nowrap; }
.crm-client-directory-series > div { display:flex; flex-wrap:wrap; gap:7px; }
.crm-client-directory-series span { padding:6px 10px; border-radius:999px; background:#eef4ff; color:#2457c5; font-size:12px; font-weight:750; }
.crm-client-history-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr); gap:28px; align-items:stretch; }
.crm-client-history-chart,.crm-client-history-series { min-width:0; }
.crm-client-history-chart { position:relative; min-height:360px; }
.crm-client-history-chart-canvas { height:360px; min-width:0; }
.crm-client-history-chart [data-client-history-fallback][hidden] { display:none; }
.crm-client-history-chart [data-client-history-fallback] .crm-column-chart { height:300px; }
.crm-client-history-series { min-height:360px; display:flex; flex-direction:column; }
.crm-client-history-series h3 { margin:0 0 7px; font-size:16px; }
.crm-client-history-series .crm-chart-details { margin-top:auto; }
.crm-history-series-row { padding:9px 0; }
.crm-history-series-grid { display:grid; }
.crm-bars { display:grid; gap:9px; }
.crm-bar-row { display:grid; grid-template-columns:70px minmax(100px,1fr) 120px; gap:10px; align-items:center; font-size:13px; }
.crm-bar-row > div { height:12px; border-radius:999px; overflow:hidden; background:#e2e8f0; }
.crm-bar-row i { display:block; height:100%; min-width:2px; border-radius:999px; background:linear-gradient(90deg,#60a5fa,#2563eb); }
.crm-bar-row strong { text-align:right; font-size:13px; }
.crm-attention-list { display:grid; gap:9px; }
.crm-attention { display:grid; grid-template-columns:1fr auto; gap:3px 12px; padding:12px; border:1px solid #fed7aa; border-radius:12px; color:inherit; background:#fff7ed; }
.crm-attention.inactive { border-color:#fecaca; background:#fef2f2; }
.crm-attention span,.crm-attention small { color:#64748b; }
.crm-attention b { grid-column:2; grid-row:1 / span 2; align-self:center; }
.crm-attention small { grid-column:1 / -1; }
.crm-table-scroll { width:100%; overflow-x:auto; }
.inventory-page { max-width:none; } .inventory-toolbar { display:grid; grid-template-columns:auto minmax(300px,1fr) auto auto; align-items:center; gap:8px; padding:7px; border-bottom:1px solid var(--line); background:var(--card); }
.inventory-view-nav { min-width:0; }
.inventory-help-link { min-height:34px; display:flex; align-items:baseline; justify-content:center; gap:6px; padding:7px 10px; border:1px solid transparent; border-radius:9px; color:#526173; font-size:12px; font-weight:750; text-decoration:none; white-space:nowrap; } .inventory-quick-link strong { color:inherit; font-size:14px; font-variant-numeric:tabular-nums; }
.inventory-help-link:hover,.inventory-help-link:focus-visible { color:var(--blue); background:#f4f7fb; text-decoration:none; }
.inventory-sync { display:flex; align-items:center; justify-content:flex-end; gap:9px; white-space:nowrap; } .inventory-sync form { margin:0; } .inventory-sync button { min-height:34px; margin:0; padding:7px 11px; border-radius:9px; font-size:12px; }
.inventory-card { padding:0; overflow:visible; } .inventory-filters { position:relative; min-width:0; display:grid; grid-template-columns:minmax(150px,1fr) minmax(150px,1fr); gap:8px; align-items:center; } .inventory-filters select { width:100%; height:34px; margin:0; padding:5px 9px; border:1px solid var(--line); border-radius:9px; background:var(--card); font-size:12px; } .inventory-filters button { height:34px; margin:0; } .inventory-category-filter { position:relative; min-width:0; }
.inventory-category-filter summary { height:34px; display:flex; align-items:center; padding:0 10px; border:1px solid var(--line); border-radius:9px; background:var(--card); color:var(--text); cursor:pointer; font-size:12px; font-weight:700; list-style:none; }
.inventory-category-filter summary::-webkit-details-marker { display:none; } .inventory-category-filter summary::after { content:"⌄"; margin-left:auto; color:#64748b; }
.inventory-category-filter > div { position:absolute; z-index:20; top:39px; left:0; width:max(280px,100%); max-height:none; overflow:visible; padding:8px; border:1px solid var(--line); border-radius:12px; background:var(--card); box-shadow:0 14px 35px #0f172a22; }
.inventory-category-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:8px; } .inventory-category-actions button { position:static; width:100%; min-height:38px; height:38px; margin:0; padding:7px 10px; border:1px solid #1d4ed8; border-radius:9px; background:#2563eb; color:#fff; font-size:12px; font-weight:750; } .inventory-category-actions button:hover,.inventory-category-actions button:focus-visible { background:#1d4ed8; } .inventory-category-filter label { display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:9px; color:var(--text); cursor:pointer; font-size:12px; text-transform:none; letter-spacing:0; } .inventory-category-filter label:hover { background:#f4f7fb; } .inventory-category-filter input { width:16px; height:16px; flex:0 0 auto; margin:0; }
.inventory-row .inventory-sticky-name { color:var(--text); } .inventory-row.needs-order .inventory-sticky-name::before { width:7px; height:7px; display:inline-block; margin-right:7px; border-radius:999px; background:var(--yellow); content:""; vertical-align:1px; } .inventory-row.status-out_of_stock .inventory-sticky-name::before { background:var(--red); }
.inventory-legend { display:flex; flex-wrap:wrap; gap:16px; padding:9px 14px; border-bottom:1px solid var(--line); color:#64748b; font-size:11px; } .inventory-legend span { display:flex; align-items:center; gap:6px; } .inventory-legend .inventory-order-formula { white-space:nowrap; }
.inventory-legend i { width:14px; height:10px; border-radius:3px; background:#ecfdf5; }
.inventory-month-controls { display:none; align-items:center; gap:6px; margin-left:auto; }
.inventory-card.months-visible .inventory-month-controls { display:flex; }
.inventory-month-controls button { min-height:28px; padding:4px 9px; border:1px solid #cbd5e1; border-radius:8px; color:#475569; background:#fff; font-size:11px; }
.inventory-month-controls button.active { border-color:#2563eb; color:#1d4ed8; background:#eff6ff; }
.inventory-table-scroll { width:100%; overflow:visible; }
.inventory-table { width:100%; min-width:1080px; table-layout:fixed; font-size:12px; }
.inventory-table-scroll.months-visible .inventory-table { width:max-content; min-width:0; table-layout:auto; }
.inventory-table th,.inventory-table td { height:auto; padding:2px 5px; border:1px solid var(--line); vertical-align:middle; white-space:nowrap; line-height:1.12; text-align:center; }
.inventory-table thead th { position:sticky; z-index:3; top:72px; background:#f1f5f9; font-size:10px; text-transform:uppercase; letter-spacing:.025em; }
.inventory-table .inventory-sticky-sku { width:78px; min-width:78px; max-width:78px; overflow:hidden; background:var(--card); text-overflow:ellipsis; }
.inventory-table .inventory-sticky-name { width:30%; overflow:hidden; background:var(--card); text-align:left; text-overflow:ellipsis; }
.inventory-table :is(.inventory-metric,.inventory-balance,.inventory-total,.inventory-consumption,.inventory-demand,.inventory-coverage,.inventory-order) { width:88px; } .inventory-demand-head { width:176px; padding:0 !important; } .inventory-demand-head > strong { display:block; padding:3px 5px; color:var(--text); font-size:10px; line-height:1.05; letter-spacing:.04em; } .inventory-demand-head > span { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line); } .inventory-demand-head i { min-width:0; color:var(--text); font-size:9px; font-style:normal; line-height:1.05; letter-spacing:0; } .inventory-demand-head i + i { border-left:1px solid var(--line); }
.inventory-table .inventory-coverage { overflow:hidden; white-space:normal; }
.inventory-infinite { font-size:18px; line-height:1; }
.inventory-table .inventory-coverage small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.inventory-table .inventory-order { white-space:normal; }
.inventory-order-details { position:relative; display:inline-flex; justify-content:center; cursor:help; outline:none; } .inventory-order-tooltip { position:absolute; z-index:8; top:calc(100% + 6px); right:0; width:min(320px,70vw); padding:10px; border:1px solid var(--line); border-radius:12px; background:var(--card); box-shadow:0 12px 28px #0f172a1a; text-align:left; opacity:0; visibility:hidden; pointer-events:none; transform:translateY(-3px); transition:opacity .15s ease,transform .15s ease,visibility .15s; } .inventory-order-tooltip small { display:block; margin-top:5px; white-space:normal; }
.inventory-order-details:hover .inventory-order-tooltip,.inventory-order-details:focus-visible .inventory-order-tooltip { opacity:1; visibility:visible; transform:translateY(0); }
.inventory-table-scroll.months-visible .inventory-sticky-sku { position:sticky; z-index:2; left:0; }
.inventory-table-scroll.months-visible .inventory-sticky-name { position:sticky; z-index:2; left:78px; width:270px; min-width:270px; max-width:270px; }
.inventory-table thead .inventory-sticky-sku,.inventory-table thead .inventory-sticky-name { z-index:5; background:#f1f5f9; }
.inventory-month-detail { display:none; }
.inventory-month-detail.visible { display:table-cell; }
.inventory-table .inventory-month { width:34px; min-width:34px; padding-inline:2px; }
.inventory-table .inventory-month.partial { color:#92400e; background:#fffbeb; }
.inventory-table td small { display:block; margin-top:0; color:#94a3b8; font-size:9px; line-height:1.05; }
.inventory-table .inventory-consumption small { color:#526173; font-size:10px; font-weight:700; margin-top:2px; }
.inventory-incoming { color:#047857 !important; font-weight:800; }
.inventory-sort-link { min-height:28px; display:inline-flex; align-items:center; justify-content:center; gap:2px; margin:0; padding:4px 5px; border-radius:9px; color:inherit; font:inherit; font-weight:850; line-height:1.05; text-decoration:none; text-transform:uppercase; }
.inventory-sort-link svg { width:11px; height:11px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; opacity:.45; }
.inventory-sort-link:hover,.inventory-sort-link:focus-visible { color:var(--blue); background:#f4f7fb; text-decoration:none; }
.inventory-sort-link.active { color:var(--blue); background:#f4f7fb; }
.inventory-sort-link.active svg { opacity:1; }
.inventory-year-header { display:grid; grid-template-columns:minmax(0,1fr) 20px; align-items:center; gap:0; }
.inventory-year-toggle { width:20px; min-height:28px; display:grid; place-items:center; margin:0; padding:0; border:0; border-radius:9px; color:#526173; background:transparent; box-shadow:none; }
.inventory-year-toggle:hover,.inventory-year-toggle:focus-visible,.inventory-year-toggle.active { color:var(--blue); background:#f4f7fb; }
.inventory-year-toggle svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:transform .16s ease; }
.inventory-year-toggle.active svg { transform:rotate(180deg); }
.inventory-demand-head .inventory-sort-link { width:100%; min-height:24px; padding:3px 2px; border-radius:0; font-size:9px; letter-spacing:0; text-transform:none; }
.inventory-status { display:inline-flex; margin-right:4px; padding:1px 5px; border-radius:999px; color:#475569; background:#e2e8f0; font-size:9px; font-weight:850; line-height:1.15; }
.inventory-status.out_of_stock,.inventory-status.reorder { color:#b91c1c; background:#fee2e2; }
.inventory-status.incoming { color:#047857; background:#d1fae5; }
.inventory-status.soon { color:#92400e; background:#fef3c7; }
.inventory-status.healthy { color:#166534; background:#dcfce7; }
.inventory-status.excess { color:#1d4ed8; background:#dbeafe; }
.inventory-help-page { max-width:1400px; }
.inventory-help-hero { border-color:#bfdbfe; background:linear-gradient(135deg,#eff6ff,#ffffff); }
.inventory-help-hero h2 { margin:6px 0 8px; }
.inventory-help-hero p { max-width:920px; margin-bottom:0; color:#475569; line-height:1.55; }
.inventory-help-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.inventory-help-grid .card { margin:0; }
.inventory-help-grid h3 { margin-top:0; }
.inventory-help-grid p { color:#475569; line-height:1.55; }
.inventory-help-list { display:grid; gap:7px; margin:0; }
.inventory-help-list div { display:grid; grid-template-columns:70px 1fr; gap:10px; align-items:center; padding:8px 10px; border-radius:10px; background:#f8fafc; }
.inventory-help-list dt { color:#1d4ed8; font-weight:900; }
.inventory-help-list dd { margin:0; color:#475569; }
.inventory-help-statuses { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.inventory-help-statuses > div { padding:12px; border:1px solid var(--line); border-radius:12px; background:#f8fafc; }
.inventory-help-statuses p { margin:8px 0 0; color:#64748b; font-size:13px; }
.inventory-help-steps { display:grid; gap:10px; margin-bottom:0; padding-left:24px; color:#475569; line-height:1.5; }
.inventory-future-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.inventory-future-grid article { padding:14px; border:1px solid var(--line); border-radius:13px; background:#f8fafc; }
.inventory-future-grid strong { display:block; margin-bottom:6px; }
.inventory-future-grid p { margin:0; color:#64748b; font-size:13px; line-height:1.45; }
.inventory-future .manager-note { margin:16px 0 0; }
.crm-data-card { overflow:visible; padding:0; border-radius:20px; box-shadow:0 14px 42px #0f172a0d; }
.crm-section-heading { min-height:62px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:15px 16px 12px; border-bottom:1px solid var(--line); }
.crm-section-heading h2 { margin:0; font-size:18px; }
.crm-section-heading p { margin:4px 0 0; font-size:12px; line-height:1.4; }
.crm-data-toolbar { position:relative; z-index:5; }
.crm-section-heading + .crm-data-toolbar { border-radius:0; }
.crm-data-table-scroll { overflow:visible; border-radius:0 0 20px 20px; }
.crm-data-table { border-collapse:separate; border-spacing:0; }
.crm-data-table thead th { position:sticky; z-index:2; top:132px; padding:11px 12px; border-bottom:1px solid #dbe3ef; background:#f8fafc; color:#64748b; font-size:11px; font-weight:700; letter-spacing:.025em; text-transform:uppercase; white-space:nowrap; }
.crm-data-table tbody td { position:relative; padding:12px; border-bottom:1px solid #edf1f6; vertical-align:middle; transition:background-color .2s ease; }
.crm-data-table tbody tr:last-child td { border-bottom:0; }
.crm-data-row:hover td { background:#eff6ff; }
.crm-data-row td:first-child { border-left:3px solid transparent; transition:border-color .2s ease,background-color .2s ease; }
.crm-data-row:hover td:first-child { border-left-color:#2563eb; }
.crm-data-table code { padding:3px 6px; border-radius:6px; background:#f1f5f9; color:#0f766e; font:800 11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; }
.crm-debt-table { table-layout:fixed; }
.crm-debt-table th:nth-child(1) { width:38%; }
.crm-debt-table th:nth-child(2) { width:20%; }
.crm-debt-table th:nth-child(3) { width:24%; }
.crm-debt-table th:nth-child(4) { width:18%; }
.crm-shipments-table th:last-child,
.crm-products-table th:nth-child(5) { text-align:right; }
.crm-shipments-page { max-width:none; padding:14px 18px 24px; }
.crm-shipment-toolbar { display:grid; grid-template-columns:repeat(3,max-content); justify-content:start; align-items:center; gap:10px 16px; margin-bottom:12px; }
.crm-sales-tabs { width:min(100%,520px); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 12px; }
.crm-shipment-month-nav { display:grid; grid-template-columns:44px 190px 44px; align-items:center; gap:8px; margin:0; }
.crm-shipment-month-nav strong { text-align:center; font-size:20px; }
.crm-shipment-month-arrow { min-height:42px; display:grid; place-items:center; border:1px solid #dbe3ef; border-radius:12px; background:var(--card); color:var(--text); font-size:22px; text-decoration:none; }
.crm-shipment-month-arrow:hover { border-color:#93c5fd; background:#eff6ff; text-decoration:none; }
.crm-shipment-month-arrow.disabled { color:#cbd5e1; cursor:default; }
.crm-shipment-calendar { overflow:hidden; width:100%; margin-inline:auto; padding:0; border-radius:20px; }
.crm-shipment-calendar-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); }
.crm-shipment-month-calendar { width:50%; margin-inline:0 auto; }
.crm-shipment-weekdays { border-bottom:1px solid #dbe3ef; background:#f8fafc; }
.crm-shipment-weekdays span { padding:6px; color:#64748b; font-size:11px; font-weight:800; text-align:center; text-transform:uppercase; }
.crm-shipment-week { border-bottom:1px solid #dbe3ef; }
.crm-shipment-day { position:relative; min-height:76px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:3px; padding:7px 10px; border-right:1px solid #edf1f6; background:var(--card); color:var(--text); text-decoration:none; }
.crm-shipment-day.outside { color:#cbd5e1; background:#fafbfc; }
.crm-shipment-day.active { background:#eff6ff; }
.crm-shipment-day-number { font-size:16px; font-weight:750; line-height:1; }
.crm-shipment-day.active .crm-shipment-day-number { font-weight:850; }
.crm-shipment-day-rolls { color:#2563eb; font-size:16px; font-weight:850; line-height:1; } .crm-shipment-day-internal { color:#0f766e; font-size:11px; font-weight:800; line-height:1; }
.crm-shipment-day-link:hover { background:#dbeafe; box-shadow:inset 0 0 0 2px #60a5fa; text-decoration:none; }
.crm-shipment-day-link:focus-visible { position:relative; z-index:1; outline:3px solid #2563eb; outline-offset:-3px; }
.crm-shipment-month-calendar .crm-shipment-day { min-height:48px; padding:4px 8px; }
.crm-shipment-week-summary { min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:4px; border-left:1px solid #dbe3ef; background:#f8fafc; text-align:center; }
.crm-shipment-week-summary strong,.crm-shipment-week-summary span { display:block; line-height:1.05; white-space:nowrap; }
.crm-shipment-week-summary strong { color:#2563eb; font-size:16px; font-weight:850; }
.crm-shipment-week-summary span { color:#64748b; font-size:11px; font-weight:750; } .crm-shipment-summary-internal { color:#0f766e; font-size:10px; font-weight:800; line-height:1; white-space:nowrap; }
.crm-shipment-month-total { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.crm-shipment-month-total { padding:15px 16px; background:#0f172a; color:#fff; }
.crm-shipment-month-total span { font-weight:800; }
.crm-shipment-month-total strong { font-size:15px; }
.crm-shipment-year-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.crm-shipment-year-month { min-width:0; overflow:hidden; padding:0; border-radius:16px; }
.crm-shipment-year-month > header { padding:11px 12px; border-bottom:1px solid #dbe3ef; text-align:center; }
.crm-shipment-year-month > header strong { font-size:15px; }
.crm-shipment-year-month .crm-shipment-week { border-bottom:1px solid #edf1f6; }
.crm-shipment-year-month .crm-shipment-day { min-height:38px; padding:4px; font-size:10px; }
.crm-shipment-year-month .crm-shipment-day-number,.crm-shipment-year-month .crm-shipment-day-rolls { font-size:10px; }
.crm-shipment-year-month .crm-shipment-week-summary { gap:2px; padding:2px; }
.crm-shipment-year-month .crm-shipment-week-summary strong { font-size:10px; }
.crm-shipment-year-month .crm-shipment-week-summary span { font-size:8px; }
.crm-shipment-year-month > footer { padding:9px 10px; background:#f8fafc; font-size:13px; font-weight:800; text-align:center; }
.history-data-table thead th { top:72px; }
.crm-client-table { width:100%; min-width:980px; table-layout:fixed; }
.crm-client-table thead th { line-height:1.2; white-space:normal; }
.crm-client-table th,.crm-client-table td { text-align:center; } .crm-client-table .crm-client-name-cell { text-align:left; }
.crm-client-table--with-amount th:nth-child(1) { width:29%; } .crm-client-table--with-amount th:nth-child(2) { width:13%; }
.crm-client-table--with-amount th:nth-child(3) { width:8%; } .crm-client-table--with-amount th:nth-child(4) { width:14%; }
.crm-client-table--with-amount th:nth-child(5),.crm-client-table--with-amount th:nth-child(6),.crm-client-table--with-amount th:nth-child(7) { width:12%; }
.crm-client-table:not(.crm-client-table--with-amount) th:nth-child(1) { width:35%; } .crm-client-table:not(.crm-client-table--with-amount) th:nth-child(2) { width:10%; } .crm-client-table:not(.crm-client-table--with-amount) th:nth-child(3) { width:16%; }
.crm-client-table:not(.crm-client-table--with-amount) th:nth-child(4),
.crm-client-table:not(.crm-client-table--with-amount) th:nth-child(5),
.crm-client-table:not(.crm-client-table--with-amount) th:nth-child(6) { width:13%; }
.crm-client-table tbody td { height:58px; padding:8px 10px; }
.crm-client-table td small { display:block; margin-top:3px; overflow:hidden; color:var(--muted); font-size:10px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.crm-client-city { display:block; margin-top:2px; overflow:hidden; color:var(--muted); font-size:10px; line-height:1.25; text-align:left; text-overflow:ellipsis; white-space:nowrap; }
.crm-client-name-line { min-width:0; display:flex; align-items:center; justify-content:flex-start; gap:8px; }
.crm-client-name-line > a { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.crm-client-name-line > a strong { font-size:13px; line-height:1.25; }
.crm-dealer-badge { display:inline-flex; align-items:center; min-height:20px; padding:2px 8px; border:1px solid #93c5fd; border-radius:999px; color:#1d4ed8; background:#eff6ff; font-size:11px; font-weight:700; white-space:nowrap; }
.crm-client-icon-actions { display:inline-flex; flex:none; gap:4px; }
.crm-client-icon-action { width:25px; height:25px; display:grid; place-items:center; margin:0; padding:0; border:1px solid #bfdbfe; border-radius:7px; background:#eff6ff; color:#2563eb; box-shadow:none; }
.crm-client-icon-action:hover { border-color:#93c5fd; background:#dbeafe; color:#1d4ed8; text-decoration:none; }
.crm-client-icon-action:disabled { border-color:#e2e8f0; background:#f8fafc; color:#94a3b8; cursor:not-allowed; opacity:1; }
.crm-client-icon-action svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.crm-client-icon-action > span { display:none; }
.crm-client-shipment-copy-menu { position:relative; flex:none; }
.crm-client-shipment-copy-menu > summary { list-style:none; cursor:pointer; }
.crm-client-shipment-copy-menu > summary::-webkit-details-marker { display:none; }
.crm-client-shipment-copy-menu[open] > summary { border-color:#60a5fa; background:#dbeafe; color:#1d4ed8; }
.crm-client-shipment-copy-menu > div { position:absolute; z-index:20; top:31px; left:0; width:280px; padding:7px; border:1px solid #dbe3ef; border-radius:12px; background:#fff; box-shadow:0 18px 45px #0f172a24; }
.crm-client-shipment-copy-menu > div > p { margin:1px 7px 6px; color:#64748b; font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.crm-client-shipment-copy-choice { width:100%; min-height:42px; display:grid; grid-template-columns:18px minmax(0,1fr); gap:8px; align-items:center; margin:0; padding:7px 8px; border:0; border-radius:8px; background:transparent; color:#334155; box-shadow:none; text-align:left; }
.crm-client-shipment-copy-choice:hover { background:#eff6ff; color:#1d4ed8; }
.crm-client-shipment-copy-choice svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; }
.crm-client-shipment-copy-choice > span { min-width:0; display:block; }
.crm-client-shipment-copy-choice small,.crm-client-shipment-copy-name { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.crm-client-shipment-copy-choice small { margin:0 0 2px; color:#64748b; font-size:9px; font-weight:750; text-transform:uppercase; }
.crm-client-shipment-copy-name { font-size:12px; font-weight:750; line-height:1.25; }
.crm-client-shipment-copy-toast { position:fixed; z-index:1000; right:22px; bottom:22px; padding:11px 15px; border:1px solid #86efac; border-radius:12px; background:#ecfdf5; color:#166534; box-shadow:0 18px 45px #0f172a24; font-size:13px; font-weight:800; opacity:0; pointer-events:none; transform:translateY(10px); transition:opacity .18s ease,transform .18s ease; }
.crm-client-shipment-copy-toast.visible { opacity:1; transform:translateY(0); }
.crm-client-shipment-copy-toast.failed { border-color:#fecaca; background:#fef2f2; color:#b91c1c; }
.crm-client-shipment-copy-manual { position:fixed; z-index:1200; inset:0; display:grid; place-items:center; padding:20px; background:#0f172a66; }
.crm-client-shipment-copy-manual > div { width:min(620px,100%); padding:18px; border:1px solid #dbe3ef; border-radius:16px; background:#fff; box-shadow:0 24px 70px #0f172a3d; }
.crm-client-shipment-copy-manual strong { display:block; font-size:17px; }
.crm-client-shipment-copy-manual p { margin:7px 0 12px; color:#64748b; font-size:12px; }
.crm-client-shipment-copy-manual textarea { width:100%; min-height:78px; resize:none; font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; }
.crm-client-shipment-copy-manual button { min-height:34px; margin:10px 0 0; padding:7px 12px; }
.crm-client-contacts { display:grid; gap:2px; margin-top:6px; font-size:11px; line-height:1.35; }
.crm-client-contact-line { display:flex; align-items:baseline; gap:7px; min-width:0; }
.crm-client-contact-line > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.crm-client-contact-line a,.crm-client-contact-line button { flex:none; padding:0; border:0; background:none; color:#2563eb; font:inherit; font-weight:650; text-decoration:none; }
.crm-client-contact-line button:disabled { color:var(--muted); cursor:not-allowed; opacity:.75; }
.crm-client-table-row { position:relative; }
.crm-client-table-row td:first-child::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:#2563eb; opacity:0; transform:scaleY(.55); transition:opacity .2s ease,transform .2s ease; }
.crm-client-table-row:hover td { background:#eff6ff; }
.crm-client-table-row:hover td:first-child::before { opacity:1; transform:scaleY(1); }
.crm-client-name-line > a { display:inline-block; color:var(--text); transition:transform .2s ease,color .2s ease; }
.crm-client-table-row:hover .crm-client-name-line > a { color:#1d4ed8; transform:translateX(3px); }
.crm-client-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.crm-client-tag { display:inline-flex; max-width:150px; padding:2px 6px; overflow:hidden; border-radius:6px; background:#f1f5f9; color:#475569; font-size:10px; font-weight:700; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.crm-client-tag.more { color:#1d4ed8; background:#dbeafe; }
.crm-client-empty,.crm-value-empty { color:#94a3b8; font-size:11px; }
.crm-money-cell { text-align:center; white-space:nowrap; }
.crm-debt-value { color:#be123c; white-space:nowrap; }
.crm-debt-normal { color:var(--text); }
.crm-no-comparison { color:#94a3b8; cursor:help; font-weight:800; }
.crm-status.compact { display:inline-flex; align-items:center; gap:6px; padding:0; background:transparent; color:#475569; font-size:11px; font-weight:700; }
.crm-status.compact i { width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:#94a3b8; }
.crm-status.compact.growth i,.crm-status.compact.new i,.crm-status.compact.stable i { background:#22c55e; }
.crm-status.compact.decline i { background:#f59e0b; }
.crm-status.compact.inactive i { background:#ef4444; }
.crm-row-actions { width:44px; padding-inline:6px !important; text-align:right; }
.crm-actions-heading { width:44px; }
.crm-row-actions details { position:relative; }
.crm-row-actions summary { width:30px; height:30px; display:grid; place-items:center; margin-left:auto; border-radius:8px; color:#64748b; cursor:pointer; font-size:14px; font-weight:900; letter-spacing:1px; list-style:none; opacity:0; transition:opacity .2s ease,background .2s ease,color .2s ease; }
.crm-row-actions summary::-webkit-details-marker { display:none; }
.crm-client-table-row:hover .crm-row-actions summary,.crm-row-actions details[open] summary,.crm-row-actions summary:focus-visible { opacity:1; }
.crm-row-actions summary:hover,.crm-row-actions details[open] summary { background:#dbeafe; color:#1d4ed8; }
.crm-row-actions details > div { position:absolute; z-index:8; top:34px; right:0; width:190px; overflow:hidden; padding:5px; border:1px solid #dbe3ef; border-radius:12px; background:#fff; box-shadow:0 18px 45px #0f172a24; text-align:left; }
.crm-row-actions details > div a { display:block; padding:8px 10px; border-radius:8px; color:#334155; font-size:12px; font-weight:700; white-space:nowrap; }
.crm-row-actions details > div a:hover { background:#eff6ff; color:#1d4ed8; text-decoration:none; }
.crm-table-empty { padding:36px 18px !important; color:#64748b; text-align:center; }
.crm-debt-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
.crm-search { display:grid; grid-template-columns:minmax(280px,1fr) auto auto; gap:12px; align-items:center; margin:0 0 20px; padding:14px; border:1px solid var(--line); border-radius:16px; background:#f8fafc; }
.crm-data-toolbar.crm-search { grid-template-columns:minmax(320px,1fr) auto; margin:0; padding:12px 14px; border:0; border-bottom:1px solid var(--line); border-radius:20px 20px 0 0; background:#fff; }
.crm-data-toolbar.crm-client-toolbar { grid-template-columns:minmax(270px,1fr) minmax(120px,145px) minmax(130px,165px) minmax(165px,210px) auto; gap:8px; padding:9px 12px; }
.crm-search-field { min-width:0; display:block; margin:0; }
.crm-toolbar-select { min-width:0; margin:0; }
.crm-toolbar-select select { width:100%; height:42px; margin:0; padding-block:0; }
.crm-filter-control { min-width:0; display:flex; align-items:center; gap:9px; margin:0; }
.crm-filter-control > span { color:#64748b; font-size:12px; font-weight:850; white-space:nowrap; }
.crm-search-input { height:46px; display:grid; grid-template-columns:21px minmax(0,1fr); gap:9px; align-items:center; padding:0 13px; border:1px solid #cbd5e1; border-radius:12px; background:#fff; transition:border-color .18s,box-shadow .18s,background .18s; }
.crm-client-toolbar .crm-search-input { height:42px; }
.crm-client-toolbar .crm-search-input input[type=search] { height:40px; }
.crm-client-sort-link { display:inline-flex; align-items:center; gap:4px; color:inherit; text-decoration:none; transition:color .18s ease; }
.crm-client-sort-link:hover { color:#2563eb; }
.crm-client-reset { display:flex; align-items:center; justify-content:center; min-height:42px; padding:0 13px; border-color:#fecaca; background:#fff7f7; color:#b42318; font-weight:700; }
.crm-client-reset:hover { border-color:#fca5a5; background:#fff1f1; color:#991b1b; }
.crm-search-input:focus-within { border-color:#60a5fa; box-shadow:0 0 0 4px #dbeafe99; }
.crm-search-input svg { width:19px; height:19px; fill:none; stroke:#64748b; stroke-width:2; stroke-linecap:round; }
.crm-search-input input[type=search] { width:100%; min-width:0; height:42px; margin:0; padding:0; border:0; outline:0; background:transparent; color:#0f172a; font:inherit; box-shadow:none; }
.crm-search-input input[type=search]::-webkit-search-cancel-button { cursor:pointer; }
.crm-filter-control select { width:220px; height:46px; margin:0; padding:0 38px 0 12px; }
.crm-client-toolbar .crm-filter-control { gap:6px; }
.crm-client-toolbar .crm-filter-control > span { font-size:11px; }
.crm-client-toolbar .crm-filter-control select { width:180px; height:42px; }
.crm-product-filter select { width:250px; }
.crm-filter-submit { min-width:112px; height:46px; margin:0; }
.price-page { max-width:none; }
.price-heading { flex-wrap:wrap; align-items:center; justify-content:space-between; }
.price-sync-status { display:grid; gap:3px; text-align:right; }
.price-refresh-report { margin:0 0 14px; padding:0; overflow:hidden; border-color:#fde68a; background:#fffbeb; }
.price-refresh-report summary { padding:13px 16px; color:#92400e; cursor:pointer; font-size:13px; font-weight:850; }
.price-refresh-report[open] summary { border-bottom:1px solid #fde68a; }
.price-warning-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:14px; }
.price-warning-group { min-width:0; padding:12px; border:1px solid #fde68a; border-radius:12px; background:#fff; }
.price-warning-group h3 { margin:0 0 9px; color:#78350f; font-size:13px; }
.price-warning-group ol { display:grid; gap:8px; margin:0; padding-left:20px; }
.price-warning-item { padding-left:2px; color:#334155; font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
.price-warning-item small { display:block; margin-top:3px; color:#64748b; font-size:11px; }
.price-summary { grid-template-columns:repeat(2,minmax(0,260px)); }
.price-card { padding:0; overflow:visible; }
.price-filters { position:sticky; z-index:8; top:72px; display:grid; grid-template-columns:minmax(250px,1fr) repeat(3,minmax(145px,200px)) auto; gap:10px; align-items:center; padding:10px 14px; border-bottom:1px solid var(--line); background:#f8fafcf5; box-shadow:0 8px 18px #0f172a0a; backdrop-filter:blur(12px); }.order-filters-tool { grid-template-columns:minmax(260px,1fr) minmax(180px,220px) minmax(220px,300px) auto; }
.price-filters .crm-filter-control select { width:100%; }
.price-filter-reset { display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 14px; border:1px solid #fecdd3; border-radius:12px; color:#be123c; background:#fff1f2; font-size:11px; font-weight:800; line-height:1; text-decoration:none; white-space:nowrap; }
.price-filter-reset:hover { border-color:#fda4af; color:#9f1239; background:#ffe4e6; }
.order-mobile-toggle { display:none; }
.order-filter-options,.order-filter-options[hidden] { display:contents; }
.order-manager-fields[hidden] { display:grid; }
.price-table-scroll { overflow:visible; }
.price-table { width:max-content; max-width:100%; table-layout:auto; font-size:13px; }
.price-table th,.price-table td { padding:5px 6px; border:1px solid var(--line); vertical-align:top; line-height:1.15; }
.price-table thead th { position:sticky; z-index:3; top:139px; background:#f1f5f9; font-size:10px; text-transform:uppercase; letter-spacing:.025em; }
.price-table thead th,.price-table td { width:auto; }
.price-item-row td:not(:first-child) { white-space:nowrap; }
.price-table-tool { width:100%; table-layout:fixed; }.price-table-tool thead th:nth-child(2) { width:96px; }.price-table-tool thead th:nth-child(3),.price-table-tool thead th:nth-child(4) { width:108px; }.price-table-tool thead th:nth-child(5) { width:72px; }.price-table-tool td:first-child { overflow-wrap:anywhere; white-space:normal; }.price-tool-meta { display:grid; gap:3px; max-width:72ch; margin-top:6px; color:#475569; font-size:11px; line-height:1.35; }.price-tool-meta span { display:block; }.price-tool-meta p { max-width:72ch; margin:2px 0 0; overflow-wrap:anywhere; }
.price-brand-row th { padding:7px 8px 5px; color:#1d4ed8; background:#dbeafe; text-align:left; font-size:16px; font-weight:900; text-transform:none; letter-spacing:0; }
.price-section-row th { padding:4px 7px; color:#1e3a8a; background:#eff6ff; text-align:left; text-transform:none; letter-spacing:0; }
.price-section-row th { font-size:12px; font-weight:800; }
.price-description { margin:0; }
.price-description summary { color:var(--text); cursor:pointer; font-size:13px; font-weight:400; }
.price-name { color:var(--text); font-weight:400; }
.price-description p { max-width:900px; margin:5px 0 1px; color:#475569; font-size:11px; line-height:1.3; }
.price-stock { display:inline-flex; padding:3px 7px; border-radius:999px; font-size:12px; font-weight:850; }
.price-stock.available { color:#166534; background:#dcfce7; }
.price-stock.empty { color:#b91c1c; background:#fee2e2; }
.price-stock.unknown { color:#92400e; background:#fef3c7; }
.order-card { padding-bottom:0; }
.order-table { width:max-content; max-width:100%; table-layout:auto; }
.order-table thead th,.order-table td { width:auto; }
.order-table th:not(:first-child),.order-table td:not(:first-child) { text-align:center; }
.order-table .price-brand-row th,.order-table .price-section-row th { text-align:left; }
.order-table .price-brand-row th { padding:4px 7px 3px; font-size:14px; line-height:1; }
.order-table .price-section-row th { padding:2px 6px; font-size:11px; line-height:1.05; }
.order-item-row td,.product-sales-row td { padding:1px 5px; vertical-align:middle; line-height:1.05; }
.order-item-row td:first-child { min-width:0; text-align:left; }
.order-stock-cell { color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.order-item-row td:last-child { padding:1px 3px; text-align:center; }
.order-item-row :is(.price-description summary,.price-name) { font-size:12px; line-height:1.05; }
.order-name-toggle { display:block; width:100%; margin:0; padding:0; overflow:hidden; border:0; border-radius:0; color:var(--text); background:none; text-align:left; text-overflow:ellipsis; white-space:nowrap; cursor:default; }
.order-line-control { min-width:38px; display:flex; justify-content:center; }
.order-add-button { width:20px; height:20px; margin:0; padding:0; border-radius:6px; font-size:15px; line-height:1; }
.order-add-button[hidden],.order-stepper[hidden] { display:none !important; }
.order-stepper { display:grid; grid-template-columns:18px 22px 18px; align-items:center; gap:2px; }
.order-stepper button { width:18px; height:20px; margin:0; padding:0; border-radius:5px; font-size:12px; line-height:1; }
.order-stepper input { width:22px; height:20px; margin:0; padding:0 1px; text-align:center; font-size:9px; -moz-appearance:textfield; }
.order-stepper input::-webkit-inner-spin-button,.order-stepper input::-webkit-outer-spin-button { margin:0; -webkit-appearance:none; }
.order-unavailable { color:var(--muted); }
.order-description-cell { text-align:left; vertical-align:top !important; white-space:normal !important; }
.order-description { margin:0; }
.order-description summary { display:flex; align-items:center; gap:4px; max-width:100%; overflow:hidden; color:#475569; cursor:pointer; font-size:11px; font-weight:400; line-height:1.1; list-style:none; }
.order-description summary::-webkit-details-marker { display:none; }
.order-description summary::before { align-self:flex-start; flex:0 0 auto; content:"›"; font-size:14px; line-height:1; transition:transform .18s ease; }
.order-description[open] summary::before { transform:rotate(90deg); }
.order-description summary span { min-width:0; display:-webkit-box; overflow:hidden; white-space:pre-line; -webkit-box-orient:vertical; -webkit-line-clamp:var(--order-description-lines,1); }
.order-description[open] summary span { display:block; overflow:visible; -webkit-line-clamp:unset; }
.order-description.fits summary { cursor:default; }
.order-description.fits summary::before { display:none; }
.order-description summary:hover { color:#1d4ed8; }
.order-description-empty { color:var(--muted); }
.order-submit-bar { position:sticky; z-index:5; bottom:0; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 14px; border-top:1px solid var(--line); background:#ffffffed; box-shadow:0 -8px 24px #0f172a12; backdrop-filter:blur(12px); }
.order-manager-fields{display:grid;grid-template-columns:1.35fr 1.35fr 1fr 1fr;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);background:var(--surface)}
.order-manager-fields label{display:grid;gap:6px;font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.order-manager-fields [data-order-standard-prices][hidden],.order-manager-fields [data-order-atlantics-prices][hidden],.order-manager-fields [data-order-tool-prices][hidden] { display:none !important; }
.order-manager-fields select{min-width:0;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);padding:0 12px;font:inherit;text-transform:none;letter-spacing:normal}
.order-sheet-success{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;padding:14px 16px;border-color:#bbf7d0;background:#f0fdf4}
.order-sheet-success-copy{display:grid;gap:3px}.order-sheet-success-copy strong{color:#166534;font-size:16px}.order-sheet-success span{color:#475569;font-size:13px}
.order-sheet-success-actions{display:flex;align-items:center;gap:8px}.order-sheet-success-actions .button{margin:0;white-space:nowrap}
.order-submit-bar div { min-width:0; }
.order-submit-bar strong,.order-submit-bar span { display:block; }
.order-submit-bar strong { font-size:14px; }
.order-submit-bar span { margin-top:2px; color:var(--muted); font-size:11px; }
.order-submit-bar button { min-width:150px; margin:0; }
.order-confirmation { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:14px; }
.order-confirmation strong,.order-confirmation span { display:block; }
.order-confirmation span { margin-top:4px; }
.order-confirmation button { margin:0; white-space:nowrap; }
.order-customer-heading { align-items:center; justify-content:flex-start; margin-bottom:12px; }
.order-customer-heading h2 { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-workspace-nav { margin-left:auto; }
.order-workspace-link svg { width:17px; height:17px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.order-cart-badge { display:inline-flex !important; align-items:center; justify-content:center; min-width:19px; height:19px; margin-left:1px; padding:0 5px; border-radius:999px; color:#fff; background:#2563eb; font-size:9px; line-height:1; }
.order-development-note { margin-bottom:14px; padding:10px 14px; font-size:12px; }
.order-development-note strong { margin-right:4px; }
.order-submit-bar { display:flex; }
.order-checkout-field { display:grid; gap:3px; min-width:0; }
.order-checkout-field > span { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.order-checkout-field input { width:100%; height:38px; margin:0; padding:7px 10px; border-radius:10px; font-size:12px; }
.order-history-card,.order-detail { padding:0; overflow:hidden; }
.order-history-table thead th,.order-detail-table thead th { position:static; }
.order-history-table th:nth-child(7),.order-history-table td:nth-child(7) { width:90px; text-align:center; }
.order-history-customer { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-history-actions,.order-detail-actions { display:flex; flex-wrap:wrap; gap:8px; }
.button.compact { min-height:34px; padding:7px 10px; border-radius:10px; font-size:11px; }
.order-status { display:inline-flex; align-items:center; gap:6px; color:#475569; font-size:12px; font-weight:750; white-space:nowrap; }
.order-status::before { width:8px; height:8px; border-radius:999px; background:#94a3b8; content:""; }
.order-status.submitted::before { background:#2563eb; }
.order-status.accepted::before,.order-status.processing::before { background:#f59e0b; }
.order-status.shipped::before { background:#16a34a; }
.order-status.cancelled::before { background:#dc2626; }
.order-detail-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:20px; border-bottom:1px solid var(--line); }
.order-detail-header h2 { margin:3px 0; }
.order-detail-header p { margin:0; color:var(--muted); font-size:12px; }
.order-detail-meta { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:0; border-bottom:1px solid var(--line); }
.order-detail-meta > div { padding:12px 20px; border-right:1px solid var(--line); }
.order-detail-meta > div:last-child { border-right:0; }
.order-detail-meta dt { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.order-detail-meta dd { margin:4px 0 0; font-size:14px; font-weight:750; }
.order-detail-table th:nth-child(n+2),.order-detail-table td:nth-child(n+2) { text-align:right; }
.order-detail-actions { padding:14px 20px; border-top:1px solid var(--line); }
.order-detail-actions :is(a,button) { margin:0; }
.order-empty-state { padding:24px; text-align:center; }
.order-empty-state h3 { margin-top:0; }
.order-cart-backdrop { position:fixed; z-index:70; inset:0; background:#0f172a66; opacity:0; transition:opacity .2s ease; }
.order-cart-backdrop.open { opacity:1; }
.order-cart-drawer { position:fixed; z-index:71; inset:0 0 0 auto; isolation:isolate; display:grid; grid-template-rows:auto minmax(0,1fr) auto; width:min(520px,94vw); border-left:1px solid var(--line); background-color:#ffffff; box-shadow:-24px 0 64px #0f172a2e; opacity:1; transform:translateX(105%); visibility:hidden; transition:transform .22s ease,visibility 0s linear .22s; }
.order-cart-drawer.open { transform:translateX(0); visibility:visible; transition:transform .22s ease; }
.order-cart-header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 20px; border-bottom:1px solid var(--line); }
.order-cart-header h3 { margin:3px 0 0; font-size:23px; }
.order-cart-close { width:38px; height:38px; margin:0; padding:0; border:1px solid var(--line); border-radius:12px; color:var(--text); background:var(--card); font-size:25px; font-weight:400; line-height:1; }
.order-cart-items { min-height:0; padding:4px 20px; overflow-y:auto; }
.order-cart-empty { padding:40px 10px; color:var(--muted); text-align:center; }
.order-cart-columns,.order-cart-item { display:grid; grid-template-columns:minmax(100px,1fr) 86px 28px 72px 82px; align-items:center; gap:8px; }
.order-cart-columns { position:sticky; z-index:1; top:0; padding:7px 0 5px; border-bottom:1px solid var(--line); color:var(--muted); background:#fff; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.order-cart-columns span:nth-last-child(-n+2) { text-align:right; }
.order-cart-item { min-height:36px; padding:3px 0; border-bottom:1px solid var(--line); }
.order-cart-item-name { min-width:0; }
.order-cart-item-name strong { display:block; overflow:hidden; color:var(--text); font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.order-cart-item-price,.order-cart-item-amount { overflow:hidden; font-size:11px; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.order-cart-item-price { color:var(--muted); }
.order-cart-item-amount { color:var(--text); font-weight:800; }
.order-cart-item-actions { display:grid; grid-template-columns:24px 30px 24px; align-items:center; gap:4px; }
.order-cart-item-actions button { width:24px; height:26px; margin:0; padding:0; border-radius:7px; font-size:13px; line-height:1; }
.order-cart-item-actions input { width:30px; height:26px; margin:0; padding:1px; text-align:center; font-size:10px; -moz-appearance:textfield; }
.order-cart-item-actions input::-webkit-inner-spin-button,.order-cart-item-actions input::-webkit-outer-spin-button { margin:0; -webkit-appearance:none; }
.order-cart-remove { width:28px; height:28px; margin:0; padding:0; border:0; border-radius:8px; color:#b91c1c; background:#fff1f2; font-size:17px; font-weight:500; line-height:1; }
.order-cart-checkout { display:grid; gap:11px; padding:16px 20px 20px; border-top:1px solid var(--line); background-color:#ffffff; box-shadow:0 -12px 28px #0f172a0a; }
.order-cart-total { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.order-cart-total span { color:var(--muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.order-cart-total strong { color:var(--text); font-size:21px; }
.order-cart-checkout > button { width:100%; margin:0; }
.crm-status:not(.compact) { display:inline-block; white-space:nowrap; padding:5px 8px; border-radius:999px; background:#e2e8f0; color:#475569; font-size:12px; font-weight:800; }
.crm-status:not(.compact).growth,.crm-status:not(.compact).new,.crm-status:not(.compact).stable { background:#dcfce7; color:#166534; }
.crm-status:not(.compact).decline { background:#ffedd5; color:#9a3412; }
.crm-status:not(.compact).inactive { background:#fee2e2; color:#b91c1c; }
.crm-secondary summary { cursor:pointer; font-weight:800; font-size:17px; }
.crm-secondary[open] summary { margin-bottom:16px; }
.crm-mini-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.crm-client-list { display:grid; gap:10px; margin-top:14px; }
.crm-client-row { display:grid; grid-template-columns:1fr auto; gap:18px; padding:14px; border:1px solid var(--line); border-radius:14px; color:inherit; }
.crm-client-row div span,.crm-client-row div strong { display:block; }
.crm-client-row span { margin-top:5px; color:var(--muted); }
.storefront-access-page { max-width:1120px; }.storefront-access-heading { align-items:end; }.storefront-client-search { min-width:min(100%,430px); grid-template-columns:minmax(0,1fr) auto; margin:0; padding:9px; }.storefront-client-search input[type=search] { width:100%; min-height:40px; margin:5px 0 0; padding:8px 10px; border:1px solid var(--line); border-radius:10px; }
.storefront-order-queue { display:grid; gap:10px; }.storefront-order-row { padding:14px 16px; }.storefront-order-row header { display:flex; align-items:center; justify-content:space-between; gap:14px; }.storefront-order-row h2 { margin:0 0 3px; font-size:17px; }.storefront-order-row header p { margin:0; color:var(--muted); font-size:12px; }.storefront-order-meta { display:flex; align-items:center; gap:12px; white-space:nowrap; }.storefront-order-meta span { color:#b45309; font-size:11px; font-weight:850; }.storefront-order-meta strong { font-size:16px; }
.storefront-order-lines,.storefront-client-candidates { margin:10px 0; padding:0; list-style:none; }.storefront-order-lines li { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:12px; padding:5px 0; border-top:1px solid #eef2f7; font-size:12px; }.storefront-order-lines li span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.storefront-order-disclosure { margin-top:8px; border:1px solid var(--line); border-radius:11px; background:#f8fafc; }.storefront-order-disclosure > summary { padding:9px 11px; color:#1d4ed8; cursor:pointer; font-size:12px; font-weight:850; }.storefront-client-candidate { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:9px 11px; border-top:1px solid var(--line); }.storefront-client-candidate small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }.storefront-client-candidate form,.storefront-account-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px; }.storefront-confirm { display:flex; align-items:center; gap:5px; color:#475569; font-size:11px; }.storefront-confirm input { width:16px; height:16px; margin:0; }
.storefront-create-client { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 10px; padding:10px; }.storefront-create-client label { color:#64748b; font-size:10px; font-weight:800; }.storefront-create-client input:not([type=checkbox]) { width:100%; min-height:38px; margin:4px 0 0; padding:7px 9px; border:1px solid var(--line); border-radius:9px; font:inherit; }.storefront-create-confirm,.storefront-create-client button { align-self:end; }.storefront-account-actions { justify-content:flex-start; margin-top:10px; padding-top:9px; border-top:1px solid var(--line); }.storefront-access-notice { padding:10px 13px; border:1px solid #bbf7d0; border-radius:11px; color:#166534; background:#f0fdf4; }.storefront-access-notice.error { border-color:#fecaca; color:#991b1b; background:#fef2f2; }.storefront-access-empty { text-align:center; }
.crm-client-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); gap:18px; }
.crm-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:18px 0; }
.crm-team-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr); gap:18px; margin:18px 0; align-items:start; }
.crm-team-list { min-width:0; }
.crm-team-table { table-layout:fixed; min-width:620px; }
.crm-team-table .crm-team-name { width:23%; }
.crm-team-table .crm-team-email { width:34%; }
.crm-team-table .crm-team-role { width:23%; }
.crm-team-table .crm-team-status-col { width:15%; }
.crm-team-table .crm-team-action { width:16%; }
.crm-team-table th,.crm-team-table td { padding:12px 10px; overflow-wrap:anywhere; vertical-align:middle; }
.crm-user-edit-link { padding:7px 10px; min-height:0; font-size:12px; white-space:nowrap; }
.crm-user-form { align-self:start; }
.crm-user-form h2 { margin-bottom:6px; }
.crm-user-form > p { margin:0 0 14px; }
.crm-user-form label { display:block; margin-top:12px; color:#475569; font-size:13px; font-weight:800; }
.crm-user-form label input,.crm-user-form label select { margin:6px 0 0; }
.crm-user-form > button { margin:18px 0 0; }
.crm-user-form-actions { display:flex; align-items:center; gap:10px; margin-top:18px; }
.crm-user-delete-form { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.crm-client-grid .card { margin-bottom:18px; }
.crm-timeline { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.crm-timeline li { padding:12px; border:1px solid var(--line); border-radius:12px; }
.crm-timeline li strong,.crm-timeline li span { display:block; }
.crm-timeline li span { margin-top:5px; color:var(--muted); font-size:13px; }
