:root {
  --ink: #17211d;
  --muted: #6f7d76;
  --line: #e4e9e6;
  --paper: #ffffff;
  --canvas: #f4f6f4;
  --forest: #173f35;
  --forest-2: #245d4e;
  --mint: #dff0e9;
  --amber: #e5a239;
  --red: #c95d52;
  --shadow: 0 10px 35px rgba(25, 48, 39, .07);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--forest); }
.login-card { width: min(410px, 100%); display: grid; gap: 16px; padding: 34px; border-radius: 16px; background: var(--paper); box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.login-card .brand-mark { color: white; background: var(--forest); }
.login-card h1 { margin: 0; font: 600 28px Georgia, serif; }
.login-card label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.login-card input { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px; background: var(--forest); color: white; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 10px 28px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(255,255,255,.08); font: 700 18px Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 17px Georgia, serif; letter-spacing: .2px; }
.brand small, .sidebar-note small { color: rgba(255,255,255,.62); font-size: 11px; }
nav { display: grid; gap: 6px; }
.module-nav { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.12); }
.module-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid transparent; border-radius: 11px; color: rgba(255,255,255,.72); background: transparent; text-align: left; cursor: pointer; }
.module-item:hover, .module-item.active { color: white; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.12); }
.module-item span { width: 19px; color: #9ed2bf; text-align: center; }
.module-item strong { font-size: 13px; }
.subnav { min-height: 0; overflow: auto; }
.nav-item { width: 100%; border: 0; border-radius: 10px; padding: 11px 13px; color: rgba(255,255,255,.72); background: transparent; text-align: left; cursor: pointer; display: flex; gap: 11px; align-items: center; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-item span { opacity: .65; width: 18px; text-align: center; }
.sidebar-note { margin-top: auto; padding: 14px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; display: flex; gap: 10px; align-items: center; }
.sidebar-note strong { display: block; font-size: 12px; }
.status-dot { width: 9px; height: 9px; background: #76d5a8; border-radius: 50%; box-shadow: 0 0 0 4px rgba(118,213,168,.12); }
main { min-width: 0; padding: 0 34px 48px; }
.topbar { min-height: 116px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.topbar h1 { margin: 2px 0 0; font: 600 30px/1.1 Georgia, serif; }
.eyebrow { margin: 0; color: var(--forest-2); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.project-switcher { display: grid; gap: 3px; color: var(--muted); font-size: 10px; }
.project-switcher select { min-width: 150px; min-height: 38px; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-weight: 650; }
.muted { color: var(--muted); font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; padding: 9px 14px; text-decoration: none; font-weight: 650; cursor: pointer; }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-2); }
.button-ghost { color: var(--forest); border-color: var(--line); background: white; }
.view { display: none; }
.view.active { display: block; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 112px; padding: 19px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin-top: 8px; font: 600 29px/1 Georgia, serif; }
.metric-card small { display: block; margin-top: 10px; color: var(--muted); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.action-settings { display: flex; align-items: end; gap: 14px; padding: 16px 20px; margin-bottom: 18px; }
.action-settings > div { flex: 1; }
.action-settings strong, .action-settings small { display: block; }
.action-settings small { color: var(--muted); margin-top: 3px; }
.action-settings label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.action-settings input, .action-settings select { width: 96px; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: white; }
.task-filter-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .35fr); gap: 14px 20px; align-items: end; padding: 16px 20px; margin-bottom: 18px; }
.task-filter-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.task-filter-heading strong, .task-filter-heading small { display: block; }
.task-filter-heading small { margin-top: 3px; color: var(--muted); }
.task-type-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.task-filter-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: white; cursor: pointer; font-weight: 650; }
.task-filter-button span { min-width: 22px; padding: 2px 6px; border-radius: 999px; color: var(--muted); background: #edf1ef; font-size: 10px; text-align: center; }
.task-filter-button:hover { border-color: #9cb8ad; background: #f7faf8; }
.task-filter-button.active { color: white; border-color: var(--forest); background: var(--forest); }
.task-filter-button.active span { color: var(--forest); background: white; }
.task-warehouse-filter { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.task-warehouse-filter select { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--ink); background: white; }
.dashboard-requirements-panel { margin-bottom: 18px; }
.dashboard-requirements-panel > summary { min-height: 72px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.dashboard-requirements-panel > summary::-webkit-details-marker { display: none; }
.dashboard-requirements-panel > summary strong, .dashboard-requirements-panel > summary small { display: block; }
.dashboard-requirements-panel > summary strong { font: 600 18px Georgia, serif; }
.dashboard-requirements-panel > summary small { margin-top: 4px; color: var(--muted); }
.dashboard-requirements-panel[open] > summary { border-bottom: 1px solid var(--line); }
.action-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.action-columns.filtered { grid-template-columns: 1fr; }
.action-columns .panel + .panel { margin-top: 0; }
.action-list { display: grid; gap: 10px; padding: 14px; }
.action-card { padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--forest-2); border-radius: 11px; background: #fff; }
.action-card.priority-0 { border-left-color: var(--red); }
.action-card.priority-1 { border-left-color: var(--amber); }
.action-card-head { display: flex; justify-content: space-between; gap: 12px; }
.action-card-head strong, .action-card-head small { display: block; }
.action-card-head small, .action-card details small { color: var(--muted); }
.action-main { margin: 12px 0; font: 600 18px Georgia, serif; }
.action-facts { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 8px; }
.action-facts span { padding: 8px; border-radius: 8px; background: #f6f8f6; }
.action-facts small, .action-facts strong { display: block; }
.action-facts small { color: var(--muted); font-size: 10px; }
.action-warning { margin: 10px 0 0; color: #9d4039; font-size: 12px; font-weight: 650; }
.action-card details { margin-top: 10px; }
.action-card details summary { color: var(--forest-2); cursor: pointer; font-size: 11px; }
.action-card > .button { margin-top: 10px; }
.action-card-head > div:last-child { display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.needed-data-grid { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 7px; margin: 10px 0; }
.needed-data-grid span { padding: 8px; border-radius: 8px; background: #fffaf2; }
.needed-data-grid small, .needed-data-grid strong { display: block; }
.needed-data-grid small { color: var(--muted); font-size: 10px; }
.needed-data-grid strong { font-size: 12px; }
.context-action { display: flex; gap: 8px; margin-top: 10px; }
.context-action select { flex: 1; min-width: 0; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: white; }
.more-actions > summary { padding: 12px; color: var(--forest-2); cursor: pointer; font-weight: 700; }
.more-actions .action-card { margin-top: 10px; }
.overview-table { min-width: 1120px; }
.overview-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.product-details summary { cursor: pointer; list-style: none; }
.product-details summary strong, .product-details summary small { display: block; }
.product-details > small { display: block; margin-top: 8px; line-height: 1.7; }
.date-qty { font-size: 15px; }
.oos-note { display: block; max-width: 110px; margin-top: 3px; white-space: normal; line-height: 1.25; }
.panel-head { min-height: 78px; padding: 19px 21px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-head h2 { margin: 0; font: 600 18px Georgia, serif; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.filters { display: flex; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.filters input, .filters select, .form-panel input, .form-panel select, .form-panel textarea { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 7px 10px; outline: none; }
.filters input:focus, .filters select:focus, .form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus { border-color: #7ba493; box-shadow: 0 0 0 3px rgba(36,93,78,.08); }
.search { flex: 1; min-width: 220px; position: relative; }
.search span { position: absolute; left: 12px; top: 8px; color: var(--muted); }
.search input { width: 100%; padding-left: 34px; }
.table-wrap { position: relative; max-height: min(68vh, 760px); overflow: auto; }
.table-wrap thead { position: sticky; top: 0; z-index: 3; }
.table-wrap th { box-shadow: 0 1px 0 var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 790px; }
th { padding: 11px 16px; color: var(--muted); background: #fafbfa; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; text-align: left; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td strong { display: block; font-weight: 650; }
td small { color: var(--muted); }
.qty { font: 600 17px Georgia, serif; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; background: #edf1ef; color: #526159; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.badge.ok { color: #1e654f; background: #e1f2eb; }
.badge.warn { color: #8c611f; background: #fff1d9; }
.badge.error { color: #9d4039; background: #fae8e6; }
.empty { padding: 34px; color: var(--muted); text-align: center; }
.hidden { display: none !important; }
.split-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(440px, 1.25fr); gap: 18px; }
.split-layout .panel + .panel { margin-top: 0; }
.warehouse-list { max-height: calc(100vh - 220px); overflow: auto; }
.warehouse-item { width: 100%; padding: 15px 18px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; cursor: pointer; display: flex; justify-content: space-between; gap: 15px; }
.warehouse-item:hover, .warehouse-item.active { background: #f2f7f4; }
.warehouse-item strong, .warehouse-item small { display: block; }
.warehouse-item small { color: var(--muted); }
.detail-content { padding: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.detail-stat { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.detail-stat span { display: block; color: var(--muted); font-size: 11px; }
.detail-stat strong { display: block; margin-top: 4px; }
.transit-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; padding: 18px; overflow: auto; }
.transit-column { min-width: 220px; border-radius: 11px; padding: 12px; background: #f5f7f5; }
.supplier-transit-column { grid-column: 1 / -1; }
.transit-column h3 { margin: 0 0 10px; font-size: 12px; }
.movement-card { padding: 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.movement-card strong, .movement-card small { display: block; }
.movement-card small { color: var(--muted); }
.movement-card .button { width: 100%; margin-top: 9px; padding: 6px; font-size: 11px; }
.movement-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.form-panel { padding-bottom: 20px; }
.form-grid, .form-panel > label { margin: 18px 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid label, .form-panel > label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.form-grid label input, .form-grid label select, .form-panel > label input { width: 100%; }
.form-grid .wide { grid-column: 1 / -1; }
.movement-product-picker small, .form-grid label > small { color: var(--muted); font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 14px; padding: 20px; }
.source-card { padding: 17px; border: 1px solid var(--line); border-radius: 11px; }
.source-card-head { display: flex; justify-content: space-between; gap: 12px; }
.source-card dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 15px 0 0; font-size: 12px; }
.source-card dt { color: var(--muted); }
.source-card dd { margin: 0; text-align: right; }
.settings-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.settings-grid .panel + .panel { margin-top: 0; }
.physical-stock-panel { margin-top: 18px; }
.physical-stock-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 18px; padding: 20px; }
.compact-form { display: grid; align-content: start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfa; }
.compact-form h3, .compact-form p { margin: 0; }
.compact-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.compact-form input, .compact-form select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 7px 10px; }
.compact-form input[type="file"] { padding: 7px; }
.source-strip { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(240px, .7fr) auto; gap: 18px; align-items: end; padding: 18px 20px; margin-bottom: 18px; }
.source-strip strong, .source-strip small { display: block; }
.progress-track { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--forest-2); transition: width .2s ease; }
.source-strip small { color: var(--muted); margin-top: 4px; }
.source-strip label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.source-strip select, .inline-fields input { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 7px 10px; }
.tabs { display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow: auto; }
.tab { padding: 13px 14px 11px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); white-space: nowrap; cursor: pointer; }
.tab.active { color: var(--forest); border-bottom-color: var(--forest); font-weight: 700; }
.operations-table table { min-width: 1120px; }
.operations-table td { max-width: 310px; }
.operations-table thead { position: sticky; top: 0; z-index: 3; }
.operations-table th:first-child, .operations-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 245px; background: white; box-shadow: 1px 0 0 var(--line); }
.operations-table th:first-child { z-index: 4; background: #fafbfa; }
.inventory-panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.inventory-filters { align-items: center; }
.inventory-row-count { min-width: 110px; color: var(--muted); font-size: 12px; }
.inventory-filters select { min-width: 150px; }
.inventory-bulk-edit-panel { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(220px, .6fr) minmax(300px, 1fr) auto; gap: 14px; align-items: end; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #f7faf8; }
.inventory-bulk-edit-panel > div:first-child strong, .inventory-bulk-edit-panel > div:first-child small { display: block; }
.inventory-bulk-edit-panel > div:first-child small { margin-top: 4px; color: var(--muted); }
.inventory-bulk-edit-panel label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.inventory-bulk-edit-panel input, .inventory-bulk-edit-panel textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); resize: vertical; }
.inventory-bulk-actions { display: flex; gap: 8px; }
.customer-inventory-table { min-width: 2220px !important; }
.customer-inventory-table th { text-transform: none; letter-spacing: 0; font-weight: 750; }
.customer-inventory-table td { vertical-align: middle; white-space: nowrap; }
.customer-inventory-table th:first-child, .customer-inventory-table td:first-child { left: 0; min-width: 82px; width: 82px; max-width: 82px; text-align: center; }
.customer-inventory-table th:nth-child(2), .customer-inventory-table td:nth-child(2) { position: sticky; left: 82px; z-index: 2; min-width: 245px; max-width: 245px; background: white; box-shadow: 1px 0 0 var(--line); white-space: normal; }
.customer-inventory-table th:nth-child(2) { z-index: 4; background: #fafbfa; }
.inventory-photo-cell .product-thumb { margin: auto; }
.inventory-product-name strong { line-height: 1.35; }
.inventory-edit-cell input { width: 112px; min-height: 40px; padding: 7px 9px; border: 1px solid #cbd6d1; border-radius: 7px; background: white; text-align: right; }
.inventory-edit-cell input:focus, .inventory-fbo-cell input:focus { border-color: #7ba493; box-shadow: 0 0 0 3px rgba(36,93,78,.08); outline: none; }
.inventory-fbo-cell strong { text-align: right; }
.inventory-fbo-cell label { display: grid; gap: 3px; margin-top: 5px; color: var(--forest-2); font-size: 9px; font-weight: 700; }
.inventory-fbo-cell input { width: 112px; min-height: 36px; padding: 6px 8px; border: 1px solid #9bb7ab; border-radius: 7px; background: #f5fbf8; text-align: right; }
.inventory-verification-cell label { display: flex; gap: 6px; align-items: center; }
.inventory-verification-cell small { display: block; margin-top: 5px; }
.inventory-history-list { max-height: min(68vh, 760px); overflow: auto; padding: 0 20px; }
.inventory-history-group { padding: 18px 0; border-top: 1px solid var(--line); }
.inventory-history-group:first-child { border-top: 0; }
.inventory-history-group header strong, .inventory-history-group header small { display: block; }
.inventory-history-group header small { margin-top: 4px; color: var(--muted); }
.inventory-history-group ul { margin: 12px 0 0; padding-left: 24px; }
.inventory-history-group li { margin: 7px 0; }
.inventory-history-group li span { color: var(--muted); }
.inventory-history-group li b { margin-left: 7px; font-weight: 650; }
.product-cell { display: grid; grid-template-columns: 44px minmax(160px, 1fr); gap: 10px; align-items: center; }
.product-cell.no-image { grid-template-columns: minmax(160px, 1fr); }
.product-thumb { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; background: #f5f5f2; }
.source-lines { display: grid; gap: 3px; min-width: 190px; }
.source-lines small { display: flex; justify-content: space-between; gap: 16px; }
.source-lines b { color: var(--ink); font-weight: 650; }
.warning-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.checkbox-label { display: flex !important; grid-column: 1 / -1; flex-direction: row !important; align-items: center; }
.checkbox-label input { width: auto !important; }
.assembly-grid { display: grid; grid-template-columns: repeat(2, minmax(320px, 1fr)); gap: 14px; padding: 18px; }
.assembly-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: white; }
.assembly-card > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; background: #fafbfa; cursor: pointer; list-style: none; }
.assembly-card h3 { margin: 0; font: 600 17px Georgia, serif; }
.assembly-card summary small { color: var(--muted); display: block; margin-top: 4px; }
.assembly-summary { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.assembly-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); }
.assembly-part { display: grid; grid-template-columns: minmax(130px, 1fr) repeat(4, minmax(70px, auto)); gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); align-items: center; }
.assembly-part > span:not(:first-child) { text-align: right; }
.assembly-part small { display: block; color: var(--muted); }
.assembly-spec-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.assembly-spec-form label { min-width: 240px; flex: 1; }
.assembly-spec-form small { color: var(--muted); }
.assembly-editor-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px 6px; border-top: 1px solid var(--line); }
.assembly-editor-head small { color: var(--muted); }
.assembly-part-editor { display: grid; grid-template-columns: minmax(160px, 1.4fr) repeat(7, minmax(80px, 1fr)) auto; gap: 7px; padding: 8px 16px; border-top: 1px solid var(--line); align-items: center; }
.assembly-part-editor input { min-width: 0; width: 100%; }
.assembly-part-editor .assembly-calculation { grid-column: 1 / -1; color: var(--muted); }
.assembly-composition-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); background: #fafbfa; }
.assembly-composition-actions [data-assembly-save-state] { margin-right: auto; color: var(--muted); }
.assembly-part-new { background: #f6fbf8; }
.assembly-part-deleted { background: #fff5f3; opacity: .72; }
.assembly-part-deleted input { text-decoration: line-through; }
.supplier-details { display: grid; gap: 3px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.procurement-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.procurement-intro > div:first-child { min-width: 0; max-width: 980px; }
.procurement-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.procurement-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.procurement-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.procurement-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.procurement-metrics .metric-card strong { margin: 0 0 9px; }
.procurement-metrics .metric-card span { display: block; }
.procurement-alert { margin-bottom: 22px; padding: 17px 20px; border-left: 5px solid #9b7b4f; box-shadow: none; }
.procurement-alert strong { font-weight: 600; }
.procurement-alert ul { margin: 8px 0 0; padding-left: 20px; }
.procurement-alert li + li { margin-top: 3px; }
.calculation-note { display: grid; gap: 5px; margin-top: 0; padding: 16px 20px; border-left: 5px solid #9b7b4f; box-shadow: none; }
.calculation-note span, .calculation-note small { color: var(--muted); }
.calculation-note small { line-height: 1.5; }
.procurement-filters { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(180px, .22fr) minmax(180px, .22fr) minmax(210px, .28fr) 130px auto; gap: 10px 14px; align-items: end; margin-bottom: 16px; }
.procurement-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.procurement-filters input, .procurement-filters select { width: 100%; min-height: 42px; border: 1px solid #cad3cf; border-radius: 8px; background: white; color: var(--ink); padding: 8px 12px; outline: none; }
.procurement-filters input:focus, .procurement-filters select:focus { border-color: #7ba493; box-shadow: 0 0 0 3px rgba(36,93,78,.08); }
.procurement-filters .button { min-height: 42px; }
.procurement-plan-panel { box-shadow: none; }
.procurement-table-summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.procurement-table-wrap { max-height: min(64vh, 720px); }
.procurement-table { min-width: 2480px !important; }
.product-thumb-placeholder { display: inline-grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.procurement-table thead { position: sticky; top: 0; z-index: 4; }
.procurement-table th { height: 68px; color: #41564d; text-align: center; text-transform: none; letter-spacing: 0; line-height: 1.35; white-space: normal; }
.procurement-table th:first-child { text-align: left; }
.procurement-table th:first-child, .procurement-table td:first-child { position: sticky; left: 0; z-index: 3; width: 360px; min-width: 360px; background: white; box-shadow: 1px 0 0 var(--line); }
.procurement-table th:first-child { z-index: 6; background: #fafbfa; }
.procurement-table td { min-width: 130px; text-align: center; vertical-align: middle; }
.procurement-table td:first-child { text-align: left; }
.procurement-product { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; align-items: center; }
.procurement-product-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: #eef5f1; font: 700 16px Georgia, serif; }
.procurement-product-image { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; object-fit: cover; background: #f5f5f2; }
.procurement-product strong, .procurement-product small { display: block; }
.procurement-product small { margin-top: 2px; }
.procurement-number { font-weight: 700; font-variant-numeric: tabular-nums; }
.procurement-subline { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.procurement-transit-button { margin-top: 7px; padding: 5px 7px; font-size: 10px; }
.procurement-order-state { margin-top: 6px; }
.procurement-needs-data-panel { margin-top: 18px; }
.procurement-needs-data-panel > summary { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; cursor: pointer; list-style: none; }
.procurement-needs-data-panel > summary::-webkit-details-marker { display: none; }
.procurement-needs-data-panel > summary strong, .procurement-needs-data-panel > summary small { display: block; }
.procurement-needs-data-panel > summary small { margin-top: 3px; color: var(--muted); }
.procurement-needs-data-panel[open] > summary { border-bottom: 1px solid var(--line); }
.inline-fields { display: grid; grid-template-columns: repeat(3, minmax(75px, 1fr)); gap: 7px; min-width: 260px; }
.inline-fields label { display: grid; gap: 3px; color: var(--muted); font-size: 10px; }
.inline-fields .button { grid-column: 1 / -1; padding: 6px 10px; }
.route-fields { display: grid; gap: 6px; min-width: 125px; }
.route-fields label { display: grid; gap: 3px; color: var(--muted); font-size: 10px; }
.route-fields input { width: 100%; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
.route-fields input:focus { border-color: #7ba493; box-shadow: 0 0 0 3px rgba(36,93,78,.08); outline: none; }
.route-fields .button { padding: 6px 8px; }
.procurement-inline-fields { min-width: 145px; }
.procurement-inline-fields input { background: #fff; color: var(--ink); font-weight: 650; }
.procurement-inline-fields .button-primary { min-height: 34px; }
.inbound-line { margin: 6px 0; padding: 6px 8px; border-radius: 7px; background: #f5f7f5; }
.inbound-line small { display: block; }
.inbound-line.overdue { background: #fae8e6; color: #9d4039; }
.subtle-note { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.needs-data-list { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px; padding: 14px; }
.needs-data-list article { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fffaf2; }
.needs-data-list strong, .needs-data-list small { display: block; }
.needs-data-list small { color: var(--muted); margin-top: 4px; }
.fulfillment-table { min-width: 1280px !important; }
.fulfillment-table td small { display: block; }
.compact-disclosure { margin-top: 18px; }
.compact-disclosure > summary { padding: 16px 20px; cursor: pointer; color: var(--forest); font-weight: 700; }
.forecast-row { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(150px, .7fr) minmax(240px, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.forecast-row strong, .forecast-row small { display: block; }
.forecast-row small { color: var(--muted); }
.kanban-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 16px 20px; margin-bottom: 18px; overflow: visible; }
.kanban-toolbar > div:first-child { max-width: 560px; }
.kanban-toolbar strong, .kanban-toolbar small { display: block; }
.kanban-toolbar small { margin-top: 4px; color: var(--muted); }
.kanban-toolbar-actions { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.kanban-toolbar-actions label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.kanban-toolbar-actions select, .kanban-toolbar-actions input { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: white; }
.kanban-toolbar-actions .search { min-width: 210px; }
.kanban-board { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 12px; overflow: auto; padding-bottom: 12px; }
.kanban-column { min-height: 480px; border: 1px solid var(--line); border-radius: 13px; background: #eef2ef; transition: .15s ease; }
.kanban-column.drag-over { border-color: #4d8a74; background: #e4f0eb; box-shadow: inset 0 0 0 2px rgba(36,93,78,.12); }
.kanban-column > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid #d9e1dd; }
.kanban-column > header span { min-width: 25px; padding: 2px 7px; border-radius: 999px; background: white; color: var(--muted); text-align: center; font-size: 11px; }
.kanban-column-body { display: grid; align-content: start; gap: 10px; padding: 10px; }
.kanban-card { padding: 13px; border: 1px solid var(--line); border-left: 4px solid #98aaa2; border-radius: 10px; background: white; box-shadow: 0 5px 15px rgba(25,48,39,.05); cursor: grab; }
.kanban-card.dragging { opacity: .45; }
.kanban-card.priority-high { border-left-color: var(--amber); }
.kanban-card.priority-urgent, .kanban-card.overdue { border-left-color: var(--red); }
.kanban-card.priority-low { border-left-color: #7ba493; }
.kanban-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.kanban-card > strong { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; }
.kanban-card > p { margin: 7px 0 0; color: var(--muted); font-size: 11px; white-space: pre-wrap; }
.kanban-card-meta { display: grid; gap: 3px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.kanban-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 10px; }
.kanban-card-actions select { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 6px; font-size: 10px; }
.kanban-card-actions .button { padding: 6px 8px; font-size: 10px; }
.kanban-empty { padding: 25px 10px; color: #8b9992; text-align: center; font-size: 11px; }
.kanban-calendar { margin-bottom: 18px; overflow: hidden; }
.kanban-calendar > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.kanban-calendar > header > div:first-child strong, .kanban-calendar > header > div:first-child small { display: block; }
.kanban-calendar > header > div:first-child small { margin-top: 3px; color: var(--muted); }
.kanban-calendar-navigation { display: flex; align-items: center; gap: 7px; }
.kanban-calendar-navigation > strong { min-width: 150px; text-align: center; text-transform: capitalize; }
.kanban-calendar-weekdays, .kanban-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); min-width: 840px; }
.kanban-calendar-weekdays { color: var(--muted); background: #f7f9f8; font-size: 10px; font-weight: 700; text-align: center; }
.kanban-calendar-weekdays span { padding: 7px; border-right: 1px solid var(--line); }
.kanban-calendar-grid { border-top: 1px solid var(--line); }
.kanban-calendar { overflow-x: auto; }
.kanban-calendar-cell { min-height: 112px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.kanban-calendar-cell.outside { background: #f5f7f6; }
.kanban-calendar-cell.today { background: #eff8f3; box-shadow: inset 0 0 0 2px rgba(36,93,78,.16); }
.kanban-calendar-cell > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.kanban-calendar-cell > header button { display: grid; place-items: center; width: 23px; height: 23px; padding: 0; border: 1px solid #d2ded8; border-radius: 50%; color: var(--forest-2); background: #fff; cursor: pointer; font-weight: 800; }
.kanban-calendar-cell > div { display: grid; gap: 4px; }
.kanban-calendar-cell > div > small { color: #a2ada8; font-size: 9px; }
.kanban-calendar-task { display: grid; grid-template-columns: auto 1fr; gap: 5px; width: 100%; padding: 5px 6px; overflow: hidden; border: 0; border-left: 3px solid #98aaa2; border-radius: 5px; color: var(--ink); background: #eef2f0; text-align: left; cursor: pointer; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.kanban-calendar-task.priority-high { border-left-color: var(--amber); }
.kanban-calendar-task.priority-urgent { border-left-color: var(--red); }
.kanban-calendar-task.priority-low { border-left-color: #7ba493; }
.kanban-calendar-task span { color: var(--forest-2); font-weight: 700; }
.advertising-source { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px; margin-bottom: 12px; border-left: 5px solid var(--forest-2); }
.advertising-source strong, .advertising-source small { display: block; }
.advertising-source small { margin-top: 4px; color: var(--muted); }
.advertising-toolbar { min-height: 62px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfcff; overflow-x: auto; }
.advertising-toolbar > strong { margin-right: 6px; white-space: nowrap; }
.advertising-toolbar label { display: grid; gap: 2px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.advertising-toolbar select, .advertising-toolbar input { min-height: 34px; padding: 6px 28px 6px 9px; border: 1px solid #dfe5e9; border-radius: 8px; color: var(--ink); background: white; }
.advertising-toolbar .button { min-height: 34px; padding: 6px 11px; white-space: nowrap; }
.advertising-search { position: relative; min-width: 190px; }
.advertising-search span { position: absolute; left: 10px; bottom: 7px; color: var(--muted); }
.advertising-search input { width: 100%; padding-left: 28px; }
.advertising-zone-tabs { align-self: end; display: flex; min-height: 34px; border: 1px solid #dfe5e9; border-radius: 8px; background: #f3f5f8; overflow: hidden; }
.advertising-zone-tabs button { min-width: 90px; padding: 5px 11px; border: 0; border-right: 1px solid #dfe5e9; color: #3e4d5a; background: transparent; cursor: pointer; font-size: 11px; line-height: 1.05; }
.advertising-zone-tabs button:last-child { border-right: 0; }
.advertising-zone-tabs button.active { color: #173f35; background: white; box-shadow: 0 1px 5px rgba(30,50,70,.08); font-weight: 700; }
.advertising-table-wrap { max-height: min(62vh, 680px); }
.advertising-table { min-width: 1760px; font-size: 11px; }
.advertising-table th { height: 48px; padding: 8px 10px; color: #64717f; background: #fff; text-transform: none; letter-spacing: 0; white-space: normal; line-height: 1.15; }
.advertising-table td { height: 38px; padding: 7px 10px; border-color: #dce3e8; white-space: nowrap; vertical-align: middle; }
.advertising-table td:not(:first-child) { min-width: 95px; text-align: right; }
.advertising-table th:not(:first-child) { text-align: right; }
.advertising-table th:first-child, .advertising-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 195px; text-align: left; background: inherit; box-shadow: 1px 0 0 #dce3e8; }
.advertising-table th:first-child { z-index: 4; background: #fff; }
.advertising-table td small { display: block; margin-top: 2px; color: #687786; }
.advertising-summary-table { min-width: 1500px; }
.advertising-summary-table .advertising-total-row, .advertising-summary-table .advertising-date-row { background: #edf5fb; font-weight: 700; }
.advertising-summary-table .advertising-zone-row { color: #354657; background: #fbfcfe; }
.advertising-summary-table .advertising-zone-row td:first-child { padding-left: 22px; font-weight: 500; }
.advertising-campaigns-table { min-width: 1900px; }
.advertising-campaigns-table td:first-child, .advertising-campaigns-table th:first-child { min-width: 390px; }
.advertising-articles-table { min-width: 2080px; }
.advertising-articles-table td:first-child, .advertising-articles-table th:first-child { min-width: 360px; }
.cluster-table { min-width: 1720px; }
.cluster-table td:first-child, .cluster-table th:first-child { min-width: 235px; }
.cluster-main-row.expanded { background: #f2f7fb; }
.cluster-expand-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.cluster-expand-button > span:first-child { min-width: 0; }
.cluster-expand-button strong, .cluster-expand-button small { display: block; }
.cluster-expand-button strong { overflow: hidden; text-overflow: ellipsis; }
.cluster-chevron { flex: 0 0 22px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #cbd8df; border-radius: 50%; color: var(--forest-2); background: #fff; font-size: 15px; font-weight: 700; }
.cluster-expand-button:focus-visible { outline: 2px solid var(--forest-2); outline-offset: 4px; border-radius: 4px; }
.advertising-table .cluster-detail-row > td { position: static; min-width: 0; height: auto; padding: 0; background: #f5f8fb; box-shadow: none; white-space: normal; }
.cluster-detail { padding: 16px 18px 18px; border-top: 1px solid #cfdce5; border-bottom: 1px solid #cfdce5; }
.cluster-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.cluster-detail > header span, .cluster-detail > header strong, .cluster-detail > header small { display: block; }
.cluster-detail > header span, .cluster-detail > header small { color: var(--muted); }
.cluster-detail > header strong { margin: 3px 0; color: var(--ink); font-size: 15px; }
.cluster-detail-period { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #d7e1e7; border-radius: 8px; color: var(--ink) !important; background: #fff; font-weight: 700; }
.cluster-detail-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #d6e0e6; border-radius: 9px; background: #fff; }
.cluster-detail-table { width: 100%; min-width: 1120px; border-collapse: collapse; color: var(--ink); font-size: 11px; }
.cluster-detail-table th, .cluster-detail-table td { position: static !important; min-width: 95px !important; height: 37px; padding: 7px 10px; border: 0; border-right: 1px solid #e0e7eb; border-bottom: 1px solid #e0e7eb; background: #fff; box-shadow: none !important; text-align: right !important; white-space: nowrap !important; }
.cluster-detail-table th:first-child, .cluster-detail-table td:first-child { min-width: 130px !important; text-align: left !important; }
.cluster-detail-table th { color: #64717f; font-weight: 700; white-space: normal !important; }
.cluster-detail-table tr:last-child td { border-bottom: 0; }
.cluster-detail-table th:last-child, .cluster-detail-table td:last-child { border-right: 0; }
.cluster-detail-table .cluster-detail-total td { background: #eaf3fb; font-weight: 700; }
.cluster-detail > p { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.advertising-value { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; width: 100%; }
.advertising-trend { display: inline-grid; place-items: center; min-width: 12px; font-size: 16px; font-weight: 800; line-height: 1; }
.advertising-trend.positive { color: #16866b; }
.advertising-trend.negative { color: #ef4f52; }
.advertising-trend.neutral { color: #9ba7b0; font-size: 12px; }
.advertising-product { display: flex; align-items: center; gap: 9px; min-width: 0; }
.advertising-product img, .advertising-product-placeholder { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 6px; border: 1px solid #dfe5e9; object-fit: cover; background: #f1f4f6; }
.advertising-product-placeholder { display: grid; place-items: center; color: #70808c; font-size: 9px; font-weight: 800; }
.advertising-product > span:last-child { min-width: 0; }
.advertising-product strong { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.advertising-events-panel > summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; cursor: pointer; list-style: none; }
.advertising-events-panel > summary::-webkit-details-marker { display: none; }
.advertising-events-panel h2 { margin: 0; font: 600 18px Georgia, serif; }
.advertising-events-panel p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.advertising-events-panel > summary > span { color: var(--forest-2); font-weight: 700; font-size: 11px; }
.advertising-events-panel[open] > summary { border-bottom: 1px solid var(--line); }
.change-indicator { display: inline-flex; margin-top: 5px; padding: 2px 6px; border-radius: 999px; color: var(--muted); background: #edf1ef; font-size: 9px; font-weight: 700; white-space: nowrap; }
.change-indicator.positive { color: #1e654f; background: #e1f2eb; }
.change-indicator.negative { color: #9d4039; background: #fae8e6; }
.positive-text { color: #1e654f !important; }
.negative-text { color: #9d4039 !important; }
.advertising-events { display: grid; gap: 0; }
.advertising-event { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: start; padding: 14px 20px; border-top: 1px solid var(--line); }
.advertising-event:first-child { border-top: 0; }
.advertising-event strong, .advertising-event small { display: block; }
.advertising-event small { margin-top: 3px; color: var(--muted); }
.event-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #9aa7a1; box-shadow: 0 0 0 4px #edf1ef; }
.advertising-event.positive .event-dot { background: #3f9a72; box-shadow: 0 0 0 4px #e1f2eb; }
.advertising-event.negative .event-dot { background: var(--red); box-shadow: 0 0 0 4px #fae8e6; }
.unit-economics-source { display: grid; gap: 0; margin-bottom: 16px; overflow: hidden; border-left: 5px solid var(--forest-2); }
.unit-economics-source > header, .unit-economics-source > article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; }
.unit-economics-source > article { border-top: 1px solid var(--line); }
.unit-economics-source strong, .unit-economics-source small { display: block; }
.unit-economics-source small { margin-top: 3px; color: var(--muted); }
.unit-economics-panel { overflow: hidden; }
.unit-economics-filters { display: grid; grid-template-columns: repeat(3, minmax(150px, .24fr)) minmax(280px, 1fr); gap: 12px; padding: 0 18px 16px; }
.unit-economics-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.unit-economics-filters select, .unit-economics-filters input { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.unit-economics-table-wrap { max-height: min(65vh, 740px); }
.unit-economics-table { min-width: 3040px; font-size: 11px; }
.unit-economics-table th { height: 58px; padding: 8px 10px; text-transform: none; letter-spacing: 0; white-space: normal; line-height: 1.2; }
.unit-economics-table td { min-width: 115px; padding: 9px 10px; text-align: right; vertical-align: middle; white-space: nowrap; }
.unit-economics-table th:not(:first-child) { text-align: right; }
.unit-economics-table th:first-child, .unit-economics-table td:first-child { position: sticky; left: 0; z-index: 3; min-width: 330px; max-width: 330px; text-align: left; white-space: normal; background: #fff; box-shadow: 1px 0 0 var(--line); }
.unit-economics-table th:first-child { z-index: 6; background: #fafbfa; }
.unit-economics-table td:nth-child(2), .unit-economics-table th:nth-child(2) { min-width: 165px; text-align: left; }
.unit-economics-table td:last-child, .unit-economics-table th:last-child { min-width: 250px; text-align: left; white-space: normal; }
.unit-economics-table td small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.unit-economics-methodology { margin-top: 16px; }
.unit-economics-methodology > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; cursor: pointer; list-style: none; }
.unit-economics-methodology > summary::-webkit-details-marker { display: none; }
.unit-economics-methodology h2 { margin: 0; font: 600 18px Georgia, serif; }
.unit-economics-methodology p { margin: 4px 0 0; color: var(--muted); }
.unit-economics-methodology > summary > span { color: var(--forest-2); font-weight: 700; }
.unit-economics-method-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 12px; padding: 18px; border-top: 1px solid var(--line); }
.unit-economics-method-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfa; }
.unit-economics-method-grid p { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 360px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: white; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 1250px) { .procurement-intro { flex-direction: column; } .procurement-actions { justify-content: flex-start; } .procurement-filters { grid-template-columns: minmax(280px, 1fr) repeat(2, minmax(170px, .3fr)); } .procurement-metrics { grid-template-columns: repeat(3, 1fr); } .kanban-toolbar { align-items: stretch; flex-direction: column; } .kanban-toolbar-actions { justify-content: flex-start; } .inventory-bulk-edit-panel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1050px) { .metric-grid, .procurement-metrics { grid-template-columns: repeat(2, 1fr); } .action-columns { grid-template-columns: 1fr; } .action-facts { grid-template-columns: repeat(3, 1fr); } .transit-board { grid-template-columns: repeat(2, minmax(240px, 1fr)); } .settings-grid, .split-layout { grid-template-columns: 1fr; } .warehouse-list { max-height: 420px; } .source-strip { grid-template-columns: 1fr 1fr; } .assembly-grid { grid-template-columns: 1fr; } .needs-data-list { grid-template-columns: 1fr 1fr; } .procurement-filters, .unit-economics-filters { grid-template-columns: 1fr 1fr; } .procurement-search, .unit-economics-filters .search { grid-column: 1 / -1; } .unit-economics-method-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; padding: 14px; } .brand { padding-bottom: 12px; } nav { display: flex; overflow: auto; } .module-nav { margin-bottom: 8px; padding-bottom: 8px; } .module-item { width: auto; flex: 0 0 auto; white-space: nowrap; } .nav-item { width: auto; white-space: nowrap; } .sidebar-note { display: none; } main { padding: 0 14px 36px; } .topbar { align-items: flex-start; padding: 20px 0; min-height: 0; flex-direction: column; } .top-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; } .metric-grid, .procurement-metrics, .advertising-metrics { grid-template-columns: 1fr 1fr; } .action-settings { align-items: stretch; flex-direction: column; } .action-settings input { width: 100%; } .task-filter-panel { grid-template-columns: 1fr; align-items: stretch; } .task-filter-heading { grid-column: auto; } .task-type-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; } .task-filter-button { flex: 0 0 auto; } .dashboard-requirements-panel > summary { align-items: flex-start; } .action-facts, .needs-data-list, .assembly-summary { grid-template-columns: 1fr 1fr; } .filters { flex-direction: column; } .search { min-width: 0; } .transit-board { grid-template-columns: 1fr; } .source-grid { grid-template-columns: 1fr; } .form-grid, .forecast-row, .source-strip, .physical-stock-grid { grid-template-columns: 1fr; } .form-grid .wide { grid-column: auto; } .inventory-panel-head { align-items: flex-start; flex-direction: column; } .inventory-panel-actions { justify-content: flex-start; } .inventory-bulk-edit-panel { grid-template-columns: 1fr; } .inventory-bulk-actions { justify-content: flex-end; } .assembly-part { grid-template-columns: 1fr 1fr; } .assembly-part-editor { grid-template-columns: 1fr 1fr; } .assembly-part-editor .button, .assembly-part-editor .assembly-calculation { grid-column: 1 / -1; } .procurement-filters { grid-template-columns: 1fr; } .procurement-search { grid-column: auto; } .procurement-actions { width: 100%; } .procurement-actions .button { flex: 1; } .procurement-table-summary { align-items: flex-start; flex-direction: column; } .kanban-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; } .kanban-toolbar-actions .search, .kanban-toolbar-actions .button { grid-column: 1 / -1; } .kanban-calendar > header { align-items: flex-start; flex-direction: column; } .kanban-calendar-navigation { width: 100%; } .kanban-board { grid-template-columns: repeat(3, minmax(260px, 1fr)); } .advertising-source { align-items: flex-start; } }
