* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Arial, sans-serif; background: #f6f7f9; color: #1b1f24; }
.robot-health-widget { position: fixed; z-index: 35; right: 18px; bottom: 14px; font-size: 13px; }
.robot-health-summary { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid #d8e1e8; color: #24313d; background: rgba(255,255,255,.97); box-shadow: 0 8px 28px rgba(19,35,50,.16); }
.robot-health-light,.robot-health-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #97a1aa; }
.state-online .robot-health-light,.robot-health-row.state-online .robot-health-dot { background: #2cad66; box-shadow: 0 0 0 3px rgba(44,173,102,.15); }
.state-warning .robot-health-light,.robot-health-row.state-warning .robot-health-dot { background: #e29a1b; box-shadow: 0 0 0 3px rgba(226,154,27,.15); }
.state-offline .robot-health-light,.robot-health-row.state-offline .robot-health-dot { background: #d54242; box-shadow: 0 0 0 3px rgba(213,66,66,.15); }
.robot-health-label { color: #65717d; font-weight: 500; }
.robot-health-panel { position: absolute; right: 0; bottom: 48px; width: min(430px,calc(100vw - 28px)); max-height: min(650px,calc(100vh - 90px)); overflow: auto; padding: 15px; border: 1px solid #dce3e9; border-radius: 12px; background: #fff; box-shadow: 0 22px 60px rgba(18,33,48,.24); }
.robot-health-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.robot-health-head div { display: grid; gap: 3px; }.robot-health-head small,.robot-health-row small { color: #6c7883; }
.robot-health-close { padding: 3px 9px; color: #53606b; background: #edf1f4; font-size: 18px; }
.robot-health-list { display: grid; gap: 7px; margin-bottom: 12px; }
.robot-health-row { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; padding: 9px; border-radius: 7px; background: #f7f9fb; }
.robot-health-row .robot-health-dot { margin-top: 4px; }.robot-health-row div { display: grid; gap: 3px; }.robot-health-refresh { width: 100%; }
.language-switch { position: fixed; z-index: 20; top: 10px; right: 12px; display: flex; gap: 3px; padding: 3px; border: 1px solid #dfe5ec; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 5px 18px rgba(18,31,45,.08); }
.language-switch a { padding: 5px 8px; border-radius: 999px; color: #637083; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.language-switch a.active { color: #fff; background: #e5272f; }
a { color: #075aa8; text-decoration: none; }
.topbar { height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 24px; background: #fff; border-bottom: 1px solid #e1e5ea; position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; color: #111; }
nav { display: flex; gap: 16px; flex: 1; }
.menu-toggle,.menu-backdrop,.mobile-menu-extra { display: none; }
button, .button { border: 0; border-radius: 6px; background: #0b72c9; color: #fff; padding: 9px 14px; font-weight: 600; cursor: pointer; display: inline-block; }
.secondary { background: #45515e; }
.ghost { background: #eef2f6; color: #20252b; }
.danger { background: #c83232; }
.page { padding: 24px; }
.heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 14px; }
p { margin: 0; color: #68717d; }
.actions, .inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.table-wrap, .panel, .form-card, .order-row { background: #fff; border: 1px solid #e1e5ea; border-radius: 8px; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.auto-table-wrap { margin: 0; }
.table-wrap > table { min-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #edf0f3; vertical-align: top; }
th { background: #fafbfc; color: #4d5863; font-size: 12px; text-transform: uppercase; }
input, textarea { width: 100%; border: 1px solid #cfd6dd; border-radius: 6px; padding: 9px 10px; font: inherit; }
select { border: 1px solid #cfd6dd; border-radius: 6px; padding: 9px 10px; font: inherit; background: #fff; }
.search { display: flex; gap: 10px; min-width: 360px; }
.wide-search { min-width: min(720px, 100%); }
.pagination { display: flex; gap: 16px; margin-top: 16px; align-items: center; }
.filters { display: grid; gap: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { padding: 8px 12px; border-radius: 6px; background: #eef2f6; color: #20252b; }
.tabs a.active { background: #0b72c9; color: #fff; }
.supplier-tabs { align-items: center; }
.supplier-tabs a { border: 1px solid #dfe6ee; }
.supplier-tabs a:not(.active) { background: #fff; }
.period-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.period-form label { display: grid; gap: 4px; color: #4d5863; font-size: 13px; }
.period-form .order-search { min-width: 340px; flex: 1; }
.workflow-badge { display: inline-block; padding: 9px 12px; border-radius: 6px; font-weight: 700; text-align: center; }
.workflow-badge.issued { color: #176b38; background: #dcf5e5; }
.workflow-issued { background: #198754; }
.login-panel { max-width: 380px; margin: 10vh auto; }
.login-panel h1 { text-align: center; margin-bottom: 20px; }
.login-brand { display: block; margin-bottom: 18px; color: #e5272f; text-align: center; font-size: 15px; font-weight: 900; letter-spacing: .15em; }
.form-card, .panel { padding: 18px; }
.form-card label, .stack label { display: grid; gap: 6px; margin-bottom: 12px; color: #4d5863; }
.flash-list { display: grid; gap: 8px; margin-bottom: 16px; }
.flash { padding: 10px 12px; border-radius: 6px; background: #eef4ff; border: 1px solid #c9ddff; }
.flash.error { background: #fff0f0; border-color: #ffc9c9; }
.flash.success { background: #edf9f0; border-color: #bfe8c8; }
.grid-2 { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 18px; }
.checkbox { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; }
.checkbox input { width: auto; }
.shop-list { display: grid; gap: 10px; }
.shop-row, .order-main { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.shop-row span { display: block; color: #68717d; margin-top: 4px; }
.shop-edit { display: grid; gap: 10px; padding: 12px; border: 1px solid #edf0f3; border-radius: 6px; background: #fafbfc; }
.shop-edit .stack label { margin-bottom: 8px; }
.orders-list { display: grid; gap: 12px; }
.order-chat-link { color: #075aa8; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.order-chat-link:hover { color: #e5272f; }
.order-vin-list { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.order-vin-list[hidden] { display: none; }
.order-vin-badge { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid #9bd4ae; border-radius: 999px; color: #125c31; background: #e3f6e9; box-shadow: 0 1px 2px rgba(18,92,49,.08); font-size: 12px; font-weight: 800; letter-spacing: .25px; }
.order-chat-dialog { width: min(780px, calc(100vw - 24px)); height: min(860px, calc(100vh - 24px)); padding: 0; overflow: hidden; border-radius: 18px; background: #f2f5f8; }
.order-chat-dialog[open] { display: flex; flex-direction: column; }
.order-chat-dialog .modal-head { margin: 0; padding: 16px 20px; border-bottom: 1px solid #dce2e8; background: #fff; box-shadow: 0 1px 5px rgba(23,35,48,.06); z-index: 1; }
.order-chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding: 12px 16px; border-top: 1px solid #dce2e8; background: #fff; }
.order-chat-composer textarea { min-height: 44px; max-height: 130px; resize: vertical; }
.order-chat-dialog .modal-head small { color: #68717d; }.order-chat-dialog .modal-head h2 { margin-top: 3px; }
.order-chat-status { padding: 8px 20px; color: #64707c; background: #f8fafc; border-bottom: 1px solid #e1e5ea; font-size: 12px; }
.order-chat-status.error { color: #a72d2d; background: #fff0f0; }
.order-chat-vins { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; color: #176b38; background: #e8f6ed; border-bottom: 1px solid #bfe4cd; }
.order-chat-vins code, .chat-vin { padding: 4px 8px; border-radius: 999px; color: #10592e; background: #d0efd9; font-weight: 800; }
.order-chat-messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 22px; background: linear-gradient(145deg, #edf2f6, #f7f9fb); scrollbar-color: #aeb9c4 transparent; scrollbar-width: thin; }
.chat-message { position: relative; width: fit-content; max-width: min(78%, 590px); min-width: 155px; padding: 10px 13px 8px; border: 1px solid #e2e7ec; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 2px 7px rgba(24,34,45,.07); }
.chat-message.outgoing { align-self: flex-end; border-color: #c5ddf3; border-radius: 16px 16px 5px 16px; background: #dceeff; }
.chat-message.incoming { align-self: flex-start; }
.chat-message-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 5px; color: #263746; font-size: 12px; }
.chat-message-head strong { color: #075aa8; font-size: 13px; }
.chat-message.outgoing .chat-message-head strong { color: #17633b; }
.chat-message-head time { flex: none; color: #7a8793; font-size: 11px; font-weight: 500; }
.chat-message-text { margin: 0; color: #26313b; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.48; }
.chat-message-state { display: block; margin-top: 5px; color: #77838e; text-align: right; font-size: 10px; }
.chat-attachment { margin-top: 7px; padding: 8px; border-radius: 7px; color: #42566c; background: rgba(255,255,255,.62); }
.chat-vin { display: inline-block; margin-top: 8px; }.chat-deleted,.chat-empty { color: #77818b; font-style: italic; }.chat-empty { margin: auto; }
.order-row { padding: 14px; }
.summary-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.summary-grid div { display: grid; gap: 4px; padding: 10px; border: 1px solid #edf0f3; border-radius: 6px; background: #fafbfc; }
.summary-grid strong { font-size: 18px; }
.summary-grid span { color: #68717d; font-size: 12px; }
.items { margin-top: 10px; display: grid; gap: 6px; color: #4d5863; font-size: 14px; }
.item-line { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) 150px 100px auto; gap: 8px; align-items: center; }
.upload-row { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 120px auto; gap: 10px; align-items: center; }
.compact { margin-bottom: 18px; }
.settings-extra { margin-top: 18px; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 6px; border: 1px solid #dfe5ec; border-radius: 10px; background: #fff; }
.settings-tabs button { background: transparent; color: #45515e; padding: 10px 15px; }
.settings-tabs button:hover { background: #eef4fb; color: #075aa8; }
.settings-tabs button.active { background: #0b72c9; color: #fff; box-shadow: 0 3px 9px rgba(11, 114, 201, .22); }
.settings-tab-panel > .settings-extra:first-child { margin-top: 0; }
.settings-message-panel { max-width: 980px; }
.settings-message-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.settings-message-panel textarea { min-height: 360px; line-height: 1.55; resize: vertical; }
.settings-message-actions { display: flex; align-items: center; gap: 12px; }
.card-matching-panel { border-top: 4px solid #7b3fc6; }
.automation-shop-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(390px,1fr)); gap: 16px; }
.automation-card { border-top: 4px solid #e5272f; }
.automation-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.automation-head > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.automation-head h2 { margin: 0; }.automation-head small { grid-column: 2; color: #77818b; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9ca5ad; }.status-dot.on { background: #2fb26d; box-shadow: 0 0 0 4px #e4f6ec; }.status-dot.off { background: #d55454; }
.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; margin-bottom: 12px; }
.interval-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.matching-status { display: grid; gap: 6px; margin-top: 16px; padding: 12px; border-radius: 7px; background: #f7f2fc; color: #4d5863; }
button:disabled { opacity: .55; cursor: not-allowed; }
.muted { color: #68717d; display: grid; gap: 6px; margin-bottom: 12px; }
.danger-text { color: #c83232; }
.warehouse-summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.warehouse-metrics { display: grid; gap: 14px; }
.summary-period-form { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.summary-tabs button { background: #eef2f6; color: #20252b; }
.summary-tabs button.active, .custom-period button.active { background: #0b72c9; color: #fff; }
.custom-period { display: flex; align-items: center; gap: 7px; }
.custom-period input { width: auto; }
.warehouse-summary .period-metric { background: #edf6ff; border-color: #c9dff3; }
.warehouse-summary .payment-metric { background: #f3faf5; border-color: #cce5d3; }
.warehouse-tools, .warehouse-list { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.warehouse-list form { display: inline-flex; }
.warehouse-list .danger { padding: 5px 8px; font-size: 11px; }
.warehouse-actions > .panel { min-width: 0; }
.warehouse-actions .grid-2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-form { display: grid; grid-template-columns: minmax(75px, 1fr); gap: 5px; min-width: 110px; }
.mini-form input, .mini-form button { padding: 6px 7px; font-size: 12px; }
.muted-inline { color: #68717d; font-size: 12px; }
.margin-positive { color: #237045; font-weight: 700; }
.margin-negative { color: #c83232; font-weight: 700; }
.local-stock-form { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; gap: 8px; align-items: center; padding: 8px; background: #f4f8fc; border-radius: 6px; }
.local-stock-used { padding: 8px; background: #e8f6ed; color: #237045; border-radius: 6px; font-weight: 700; }
.warehouse-history { margin-top: 18px; grid-template-columns: 1fr 1fr; }
.product-picker { position: relative; }
.product-search-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 330px; overflow-y: auto; padding: 5px; background: #fff; border: 1px solid #cfd6dd; border-radius: 7px; box-shadow: 0 10px 26px rgba(31, 42, 55, .16); }
.product-search-results button { width: 100%; display: grid; gap: 3px; text-align: left; padding: 9px 10px; color: #1b1f24; background: #fff; border-radius: 5px; }
.product-search-results button:hover, .product-search-results button:focus { background: #eef4fb; }
.product-search-results button span, .product-selected span { color: #68717d; font-size: 12px; font-weight: 400; }
.product-not-found { padding: 12px; color: #a84222; }
.product-selected { margin-top: 7px; padding: 9px 10px; display: grid; gap: 4px; border-radius: 6px; background: #e8f6ed; color: #237045; }
.bulk-toolbar { position: sticky; top: 56px; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid #e1e5ea; border-radius: 8px 8px 0 0; }
dialog { width: min(620px, calc(100vw - 28px)); max-height: 90vh; overflow: auto; border: 0; border-radius: 10px; padding: 20px; box-shadow: 0 20px 70px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(18,27,38,.55); }
.wide-modal { width: min(900px, calc(100vw - 28px)); }
.orders-modal { width: min(1180px, calc(100vw - 28px)); }
.warehouse-page-content[open] {
  position: static;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: visible;
  border: 1px solid #e1e5ea;
  box-shadow: none;
}
.warehouse-page-content > .modal-head > [data-close] { display: none; }
.orders-workspace { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 18px; min-height: 440px; }
.orders-period-form { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #e1e5ea; }
.sale-order-list { display: grid; align-content: start; gap: 8px; max-height: 70vh; overflow: auto; padding-right: 4px; }
.sale-order-card { display: grid; gap: 5px; text-align: left; background: #f4f7fa; color: #1b1f24; border: 1px solid #dfe6ee; }
.sale-order-card:hover { background: #e8f1fa; border-color: #9ec3e6; }
.sale-order-card.returned { background: #f3f4f5; color: #68717d; }
.sale-order-card span { color: #68717d; font-size: 12px; }
.sale-order-editor { min-width: 0; }
.order-empty-state { display: grid; place-items: center; min-height: 360px; color: #68717d; border: 1px dashed #cfd6dd; border-radius: 8px; }
.sale-edit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sale-edit-head h2 { margin-top: 12px; }
.sale-edit-head > strong { font-size: 22px; }
.return-order { margin-top: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h2 { margin: 0; }.modal-head [data-close] { background: #eef2f6; color: #20252b; font-size: 20px; padding: 5px 11px; }
.sale-line { display: grid; grid-template-columns: minmax(280px,1fr) 100px 140px auto; gap: 8px; align-items: start; padding: 10px; border: 1px solid #e1e5ea; border-radius: 7px; margin-bottom: 8px; }
.receipt-edit-line { grid-template-columns: minmax(240px,1fr) 90px 120px 120px auto; }
.receipt-line { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)); gap: 8px; align-items: start; padding: 12px; border: 1px solid #e1e5ea; border-radius: 7px; margin-bottom: 10px; }
.receipt-line .inventory-picker { grid-column: 1 / -1; }
.sale-total-box { padding: 14px 16px; border-radius: 8px; background: #edf6ff; font-size: 18px; text-align: right; }
.sale-total-box strong { font-size: 24px; margin-left: 8px; }
.inventory-picker { position: relative; }.picker-results { position: absolute; z-index: 30; top: calc(100% + 3px); left: 0; right: 0; max-height: 260px; overflow: auto; background: #fff; border: 1px solid #cfd6dd; box-shadow: 0 10px 25px rgba(0,0,0,.15); padding: 5px; border-radius: 6px; }
.picker-selected-product { display: grid; gap: 2px; margin-top: 7px; padding: 8px 10px; border: 1px solid #b9d8f2; border-radius: 6px; background: #f1f8fe; }
.picker-selected-product[hidden] { display: none; }
.picker-selected-name { color: #172b3d; }
.picker-selected-meta, .picker-selected-stock { color: #5c6874; font-size: 12px; }
.picker-results button { width: 100%; display: grid; text-align: left; background: #fff; color: #1b1f24; }.picker-results button:hover { background: #eef4fb; }.picker-results span { color: #68717d; font-size: 12px; }
.local-match-options { display: grid; gap: 5px; }.local-match { display: flex; gap: 7px; align-items: center; padding: 7px; background: #fff; border: 1px solid #dfe6ee; border-radius: 6px; }.local-match input { width: auto; }
.original-article-cell { min-width: 190px; font-size: 15px; color: #17365d; }
.kaspi-cell { min-width: 360px; }
.kaspi-cards { display: grid; gap: 8px; }
.kaspi-card { display: grid; gap: 6px; padding: 9px; border: 1px solid #dfe6ee; border-radius: 6px; background: #fbfcfd; min-width: 320px; max-width: 520px; }
.kaspi-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kaspi-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.kaspi-sku { font-weight: 700; color: #075aa8; }
.kaspi-open { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 6px; background: #0b72c9; color: #fff; font-size: 12px; font-weight: 700; }
.kaspi-title { color: #1b1f24; line-height: 1.3; }
.kaspi-meta, .kaspi-numbers { display: flex; flex-wrap: wrap; gap: 6px; color: #68717d; font-size: 12px; }
.kaspi-meta span, .kaspi-numbers span, .badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 999px; background: #eef2f6; color: #4d5863; white-space: nowrap; }
.badge.ok { background: #e8f6ed; color: #237045; }
.badge.shate-error { background: #fdeaea; color: #a72b2b; }
.shate-refresh-status { margin-top: 18px; padding: 14px; border: 1px solid #dce3ea; border-radius: 8px; background: #f8fafc; }
.shate-status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.shate-progress { height: 8px; margin: 12px 0; overflow: hidden; border-radius: 999px; background: #dfe7ef; }
.shate-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #087ac1; transition: width .3s ease; }
.shate-status-grid { display: grid; grid-template-columns: max-content 1fr; gap: 5px 12px; margin: 0; font-size: 13px; }
.shate-status-grid dt { color: #65717d; }
.shate-status-grid dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kaspi-warning { color: #a84222; font-size: 12px; line-height: 1.3; }
.binding-delete { justify-self: start; padding: 5px 9px; font-size: 12px; }
.kaspi-merchant-links { display: grid; grid-template-columns: auto auto; gap: 5px 8px; align-items: center; }
.kaspi-merchant-links button { padding: 5px 8px; font-size: 11px; }
.warehouse-kaspi-open { display: inline; padding: 0; color: #075aa8; background: transparent; font-size: inherit; font-weight: 800; text-align: left; text-decoration-line: underline; text-decoration-style: dotted; text-underline-offset: 4px; cursor: pointer; }
.warehouse-kaspi-open:hover { color: #e5272f; background: transparent; }
.warehouse-kaspi-modal { width: min(1280px, calc(100vw - 28px)); }
.product-search-kaspi-open { width: 100%; margin-bottom: 8px; white-space: nowrap; }
.warehouse-kaspi-layout { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.5fr); gap: 20px; }
.warehouse-kaspi-search-pane { min-width: 0; }
.warehouse-kaspi-results { display: grid; gap: 10px; max-height: 62vh; overflow-y: auto; margin-top: 12px; padding-right: 5px; }
.warehouse-kaspi-card { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 14px; padding: 12px; border: 1px solid #dfe6ee; border-radius: 9px; background: #fbfcfd; }
.warehouse-kaspi-card.is-bound { border-color: #9bd4ae; background: #f2fbf5; }
.warehouse-kaspi-card img,.warehouse-kaspi-no-image { width: 150px; height: 125px; object-fit: contain; border-radius: 7px; background: #fff; }
.warehouse-kaspi-no-image { display: grid; place-items: center; color: #8a949e; }
.warehouse-kaspi-card h3 { margin: 0 0 7px; font-size: 15px; }
.warehouse-kaspi-card-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.warehouse-kaspi-card p { margin: 0 0 8px; color: #68717d; }
.warehouse-kaspi-card-actions { display: flex; gap: 7px; margin-top: 10px; }
.warehouse-kaspi-product { align-self: start; position: sticky; top: 0; padding: 18px; border: 1px solid #dfe6ee; border-radius: 10px; background: #f7f9fb; }
.warehouse-kaspi-product h3 { margin: 12px 0; line-height: 1.4; }
.warehouse-product-code { margin-top: 16px; color: #075aa8; font-size: 22px; font-weight: 900; }
.warehouse-kaspi-product dl { display: grid; grid-template-columns: 110px 1fr; gap: 7px; }
.warehouse-kaspi-product dt { color: #68717d; }.warehouse-kaspi-product dd { margin: 0; font-weight: 700; }
.warehouse-kaspi-bound { display: grid; gap: 7px; }.warehouse-kaspi-bound article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; align-items: stretch; }.warehouse-kaspi-bound a { display: grid; gap: 3px; padding: 9px; border: 1px solid #dfe6ee; border-radius: 7px; background: #fff; }.warehouse-kaspi-bound a span { color: #4d5863; font-size: 12px; }.warehouse-kaspi-bound button { padding: 7px 9px; font-size: 11px; }.warehouse-kaspi-empty { padding: 12px; color: #68717d; border: 1px dashed #cfd6dd; border-radius: 7px; text-align: center; }
.candidate-review-list { display: grid; gap: 16px; }.candidate-product { display: grid; gap: 18px; }.candidate-product-head { display: flex; justify-content: space-between; gap: 20px; }.candidate-product-head span { color: #e5272f; font-size: 12px; font-weight: 800; }.candidate-product-head h2 { margin: 6px 0; }.candidate-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 10px; }.candidate-card { position: relative; display: block !important; margin: 0 !important; padding: 16px; border: 1px solid #dfe5ec; border-radius: 12px; background: #fbfcfd; cursor: pointer; }.candidate-card:has(input:checked) { border-color: #e5272f; box-shadow: 0 0 0 2px rgba(229,39,47,.12); background: #fff8f8; }.candidate-card > input { position: absolute; top: 15px; right: 15px; width: 18px; }.candidate-card h3 { margin: 22px 30px 10px 0; font-size: 15px; line-height: 1.4; }.candidate-card p { margin-bottom: 12px; }.candidate-score { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #237045; background: #e8f6ed; font-size: 12px; font-weight: 800; }.primary-candidate { display: block; margin-top: 12px; color: #e5272f; font-size: 11px; font-weight: 800; }.candidate-actions { display: flex; flex-wrap: wrap; gap: 8px; }.empty-candidates { text-align: center; padding: 70px 20px; }

/* Public landing */
.landing-body { background: #f4f1eb; color: #172018; }
.landing-body .page { max-width: 1440px; margin: 0 auto; padding: 0 54px 64px; }
.hero { min-height: 720px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; padding: 92px 0 70px; }
.hero-copy h1 { max-width: 720px; margin: 18px 0 24px; font-size: clamp(48px, 5.8vw, 86px); line-height: .96; letter-spacing: -.055em; }
.hero-copy > p { max-width: 650px; color: #57615a; font-size: 19px; line-height: 1.65; }
.eyebrow, .section-kicker { color: #e5272f; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 32px; }
.button.large { padding: 15px 22px; border-radius: 999px; }
.button.primary { background: #e5272f; }
.button.light { border: 1px solid #d4d6d0; background: #fff; color: #172018; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; }
.trust-row span { padding: 7px 11px; border: 1px solid #d7d8d2; border-radius: 999px; color: #6a736c; background: rgba(255,255,255,.48); font-size: 12px; font-weight: 700; }
.hero-product { position: relative; }
.hero-product::before { content: ""; position: absolute; inset: -9% -5% -15% 10%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(229,39,47,.2), rgba(229,39,47,0) 67%); }
.mock-window { position: relative; z-index: 1; padding: 19px; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; background: #111a14; color: #eef6ef; box-shadow: 0 38px 80px rgba(19,31,22,.24); transform: rotate(1.2deg); }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 2px 2px 18px; color: #9cab9e; font-size: 12px; }
.mock-top i { width: 8px; height: 8px; border-radius: 50%; background: #556159; }.mock-top b { margin-left: 9px; }
.mock-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.metric, .mock-chart, .mock-events { padding: 17px; border: 1px solid #2f3d33; border-radius: 16px; background: #19241c; }
.metric { display: grid; gap: 7px; }.metric span,.chart-copy span { color: #8fa095; font-size: 11px; }.metric strong { font-size: 25px; }.metric small { color: #7ba687; }.metric.accent { background: #e5272f; border-color: #f04a51; }.metric.accent span,.metric.accent small { color: #ffd9da; }
.mock-chart { display: grid; grid-template-columns: 140px 1fr; align-items: end; min-height: 210px; margin-top: 10px; }.chart-copy { display: grid; gap: 8px; }.chart-copy strong { font-size: 30px; }.bars { height: 145px; display: flex; gap: 8px; align-items: end; }.bars i { flex: 1; min-height: 18%; border-radius: 7px 7px 2px 2px; background: linear-gradient(#f14a51,#a3171d); }.bars i:nth-child(2){height:44%}.bars i:nth-child(3){height:72%}.bars i:nth-child(4){height:52%}.bars i:nth-child(5){height:88%}.bars i:nth-child(6){height:65%}.bars i:nth-child(7){height:100%}
.mock-events { display: grid; gap: 11px; margin-top: 10px; color: #c1ccc4; font-size: 12px; }.mock-events span { display: flex; align-items: center; gap: 8px; }.dot { width: 7px; height: 7px; border-radius: 50%; }.dot.green{background:#51cb79}.dot.blue{background:#579cff}.dot.orange{background:#ffac4d}
.price-preview { margin-top:16px; overflow:auto; }.price-preview table { min-width:640px; font-size:.9rem; }
.product-search-warehouse { margin-bottom: 18px; }
.product-search-supplier-title { margin-top: 22px; }
.landing-section { padding: 92px 0; border-top: 1px solid #d4d5cf; }.landing-section h2,.multi-store-callout h2 { max-width: 780px; margin: 12px 0 40px; font-size: clamp(34px,4vw,58px); line-height: 1.05; letter-spacing: -.04em; }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }.feature-grid article { min-height: 270px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 7px 24px rgba(25,37,27,.05); }.feature-number { color: #e5272f; font-weight: 900; }.feature-grid h3 { margin: 70px 0 12px; font-size: 21px; }.feature-grid p { line-height: 1.6; }
.flow-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }.flow-list { list-style: none; margin: 0; padding: 0; }.flow-list li { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-bottom: 1px solid #d4d5cf; font-size: 22px; font-weight: 750; }.flow-list b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #172018; font-size: 13px; }
.multi-store-callout { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-top: 18px; padding: 65px; border-radius: 28px; color: #f6faf6; background: #172018; }.multi-store-callout h2 { margin-bottom: 20px; }.multi-store-callout p { max-width: 720px; color: #aebbb0; font-size: 17px; line-height: 1.65; }
@media (max-width: 800px) {
  .topbar { z-index: 50; height: 58px; gap: 12px; padding: 0 14px; }
  .topbar .brand { flex: 1; }
  .topbar > form { margin-right: 76px; }
  .menu-toggle { display: grid; width: 40px; height: 40px; place-content: center; gap: 4px; padding: 0; color: #1b1f24; background: #eef2f6; }
  .menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
  .topbar nav { position: fixed; z-index: 60; inset: 0 auto 0 0; display: flex; flex-direction: column; gap: 4px; width: min(82vw,320px); padding: 78px 18px 24px; background: #fff; box-shadow: 18px 0 50px rgba(17,28,40,.2); transform: translateX(-105%); transition: transform .22s ease; pointer-events: auto; }
  .topbar nav a { position: relative; z-index: 1; display: block; padding: 13px 14px; border-radius: 9px; color: #1b1f24; font-weight: 700; pointer-events: auto; }
  .topbar nav a:hover { color: #075aa8; background: #eef5fb; }
  .mobile-menu-extra { display: grid; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #e1e5ea; }
  .mobile-menu-extra > div { display: flex; gap: 8px; }
  .mobile-menu-extra > div a { flex: 1; text-align: center; background: #eef2f6; }
  .mobile-menu-extra form button { width: 100%; }
  .topbar > .language-switch,.topbar > form { display: none; }
  .menu-backdrop { position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; padding: 0; border-radius: 0; background: rgba(11,22,34,.42); }
  body.menu-open { overflow: hidden; }
  body.menu-open .topbar nav { transform: translateX(0); }
  body.menu-open .topbar { z-index: 70; }
  body.menu-open .menu-backdrop { display: block; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .heading-row, .grid-2, .shop-row, .order-main, .item-line, .upload-row, .local-stock-form, .warehouse-history { display: grid; grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  .page { padding: 14px; }
  .table-wrap { margin-left: 0; margin-right: 0; border-radius: 8px; touch-action: pan-x pan-y; }
  .table-wrap > table { width: max-content; min-width: 100%; }
  .kaspi-cell, .kaspi-card { min-width: 280px; }
  .sale-line { grid-template-columns: 1fr; }
  .receipt-edit-line { grid-template-columns: 1fr; }
  .receipt-line { grid-template-columns: 1fr; }
  .receipt-line .inventory-picker { grid-column: auto; }
  .warehouse-kaspi-layout,.warehouse-kaspi-card { grid-template-columns: 1fr; }
  .warehouse-kaspi-card img,.warehouse-kaspi-no-image { width: 100%; }
  .summary-period-form, .custom-period { align-items: stretch; }
  .custom-period { flex-wrap: wrap; }
  .orders-workspace { grid-template-columns: 1fr; }
  .orders-modal.editing .sale-order-list { display: none; }
  .chat-message { width: 92%; }
  .landing-body .page { padding: 0 18px 36px; }.hero { min-height: auto; grid-template-columns: 1fr; gap: 45px; padding-top: 100px; }.hero-copy h1 { font-size: 48px; }.mock-grid,.feature-grid { grid-template-columns: 1fr; }.mock-chart { grid-template-columns: 1fr; }.flow-section { grid-template-columns: 1fr; gap: 15px; }.multi-store-callout { align-items: start; flex-direction: column; padding: 34px 24px; }
}

/* QAZVEN application shell */
:root {
  --qz-ink: #17211c;
  --qz-muted: #68746d;
  --qz-line: #e2e8e4;
  --qz-surface: #ffffff;
  --qz-bg: #f3f6f4;
  --qz-brand: #e73b36;
  --qz-brand-dark: #b82424;
  --qz-green: #193d2a;
}
body:not(.landing-body) { background: var(--qz-bg); color: var(--qz-ink); }
.topbar {
  height: 72px;
  gap: 22px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(215,224,218,.9);
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 26px rgba(26,50,36,.055);
  backdrop-filter: blur(14px);
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 156px; color: var(--qz-ink); }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg,var(--qz-brand),var(--qz-brand-dark)); box-shadow: 0 7px 18px rgba(209,43,40,.24); font-size: 19px; font-weight: 900; }
.brand-copy { display: grid; gap: 1px; line-height: 1; }
.brand-copy strong { font-size: 15px; letter-spacing: .075em; }
.brand-copy small { color: #879089; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.topbar nav { flex: 0 1 auto; gap: 4px; }
.topbar nav > a { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 9px; color: #536159; font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .16s ease,background .16s ease; }
.topbar nav > a:hover { color: var(--qz-green); background: #eef4f0; }
.topbar nav > a.active { color: var(--qz-brand-dark); background: #fff0ef; }
.nav-icon { color: #849087; font-size: 15px; line-height: 1; }
.topbar nav > a.active .nav-icon { color: var(--qz-brand); }
.global-search { position: relative; display: flex; flex: 1 1 360px; max-width: 520px; min-width: 220px; margin-left: auto; }
.global-search input { height: 42px; padding: 9px 72px 9px 38px; border-color: #dbe3de; border-radius: 12px; background: #f7f9f8; transition: background .16s,border-color .16s,box-shadow .16s; }
.global-search input:focus { outline: 0; border-color: #9fb9a8; background: #fff; box-shadow: 0 0 0 4px rgba(48,104,70,.09); }
.global-search-icon { position: absolute; z-index: 1; left: 13px; top: 9px; color: #738078; font-size: 22px; line-height: 1; pointer-events: none; }
.global-search button { position: absolute; right: 5px; top: 5px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--qz-green); font-size: 12px; }
.topbar-tools { display: flex; align-items: center; gap: 7px; }
.topbar .language-switch { position: static; box-shadow: none; background: #f5f7f6; }
.logout-button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border-radius: 9px; font-size: 16px; }
.page { width: 100%; max-width: 1680px; margin: 0 auto; padding: 28px 30px 54px; }
.heading-row { padding: 4px 0; }
h1 { color: var(--qz-ink); letter-spacing: -.025em; }
.panel,.form-card,.table-wrap,.order-row { border-color: var(--qz-line); border-radius: 13px; box-shadow: 0 5px 20px rgba(27,51,36,.035); }
button,.button { border-radius: 9px; background: var(--qz-green); }
.secondary { background: #526158; }
.tabs a { border-radius: 9px; }
.tabs a.active { background: var(--qz-green); }
.product-search-warehouse { margin-top: 6px; }

@media (max-width: 1250px) {
  .topbar { gap: 12px; padding: 0 16px; }
  .brand { min-width: auto; }
  .brand-copy small { display: none; }
  .topbar nav > a { padding: 9px 8px; }
  .nav-icon { display: none; }
  .global-search { flex-basis: 260px; }
  .global-search input { padding-right: 38px; }
  .global-search button { width: 32px; padding: 0; color: transparent; }
  .global-search button::after { content: '→'; color: #fff; position: absolute; inset: 0; display: grid; place-items: center; }
}

@media (max-width: 800px) {
  .topbar { height: 64px; padding: 0 12px; }
  .topbar .brand { flex: 0 0 auto; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy { display: none; }
  .topbar > .global-search { display: flex; order: 3; flex: 1 1 auto; min-width: 0; margin: 0; }
  .global-search input { height: 40px; padding-left: 34px; font-size: 13px; }
  .global-search-icon { left: 11px; top: 8px; }
  .topbar-tools { display: none; }
  .topbar nav { padding-top: 78px; }
  .topbar nav > a { padding: 13px 14px; font-size: 14px; }
  .nav-icon { display: inline; }
  .page { padding: 18px 14px 48px; }
}

@media (max-width: 480px) {
  .brand { display: none; }
  .topbar { gap: 8px; }
  .global-search input { padding-right: 36px; }
}

/* Desktop sidebar navigation */
@media (min-width: 801px) {
  .topbar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 22px 16px 16px;
    border-right: 1px solid var(--qz-line);
    border-bottom: 0;
    box-shadow: 8px 0 30px rgba(26,50,36,.045);
  }
  .topbar .brand { order: 1; min-height: 42px; padding: 0 7px; }
  .topbar .global-search { order: 2; flex: 0 0 auto; width: 100%; min-width: 0; max-width: none; margin: 0; }
  .topbar nav { order: 3; display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
  .topbar nav > a { width: 100%; padding: 11px 12px; font-size: 14px; }
  .topbar-tools { order: 4; justify-content: space-between; padding: 12px 4px 0; border-top: 1px solid var(--qz-line); }
  body.has-app-shell .page { max-width: none; margin-left: 272px; width: calc(100% - 272px); padding: 32px 34px 58px; }
  .nav-section { display: grid; gap: 3px; margin: 8px 0; padding: 10px 7px; border: 1px solid #e5ebe7; border-radius: 13px; background: #f8faf9; }
  .nav-section-title { display: flex; align-items: center; gap: 8px; padding: 3px 7px 8px; color: #758078; font-size: 11px; letter-spacing: .075em; text-transform: uppercase; }
  .nav-section-title span { color: var(--qz-brand); font-size: 15px; }
  .nav-section > a { padding: 9px 10px; border-radius: 8px; color: #536159; font-size: 13px; font-weight: 700; }
  .nav-section > a:hover { color: var(--qz-green); background: #eef4f0; }
  .nav-section > a.active { color: var(--qz-brand-dark); background: #fff0ef; box-shadow: inset 3px 0 0 var(--qz-brand); }
  .warehouse-quick-actions { display: grid; gap: 3px; margin-top: 7px; padding-top: 8px; border-top: 1px solid #e2e8e4; }
  .warehouse-quick-actions a { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 7px; color: #66736b; font-size: 12px; font-weight: 700; }
  .warehouse-quick-actions a:hover { color: var(--qz-green); background: #edf3ef; }
  .warehouse-quick-actions span { width: 16px; color: var(--qz-brand); text-align: center; font-size: 14px; }
}

@media (max-width: 800px) {
  .nav-section { display: grid; gap: 3px; margin: 5px 0; padding: 8px; border: 1px solid #e3e8e5; border-radius: 11px; background: #f7f9f8; }
  .nav-section-title { display: flex; align-items: center; gap: 8px; padding: 7px; color: #748078; font-size: 11px; text-transform: uppercase; }
  .topbar nav .nav-section > a { padding: 10px 12px; font-size: 13px; }
  .topbar nav .nav-section > a.active { color: var(--qz-brand-dark); background: #fff0ef; }
  .warehouse-quick-actions { display: grid; gap: 3px; margin-top: 5px; padding-top: 7px; border-top: 1px solid #e2e8e4; }
  .topbar nav .warehouse-quick-actions a { padding: 8px 12px; color: #66736b; font-size: 12px; }
}

/* Mobile application shell */
@media (max-width: 800px) {
  .topbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    grid-template-rows: 42px 44px;
    gap: 8px 10px;
    width: 100%;
    height: 108px;
    padding: 8px 12px 10px;
    border-bottom: 1px solid #dce5df;
    background: rgba(255,255,255,.97);
    box-shadow: 0 8px 24px rgba(23,47,32,.08);
  }
  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid #dfe7e2;
    border-radius: 11px;
    color: var(--qz-green);
    background: #f3f7f4;
  }
  .menu-toggle span { width: 21px; height: 2px; background: currentColor; transition: transform .18s ease,opacity .18s ease; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar .brand {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    min-width: 0;
    padding: 0;
  }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-copy { display: grid; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { display: block; font-size: 8px; }
  .topbar > .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: 100%;
    height: 44px;
  }
  .global-search input {
    height: 44px;
    padding: 9px 48px 9px 39px;
    border-radius: 12px;
    background: #f4f7f5;
    font-size: 16px;
  }
  .global-search-icon { left: 13px; top: 10px; }
  .global-search button { top: 5px; right: 5px; width: 34px; height: 34px; }
  .topbar nav {
    position: fixed;
    z-index: 60;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: min(88vw,350px);
    height: 100dvh;
    padding: 20px 14px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid #dce5df;
    background: #fff;
    box-shadow: 22px 0 60px rgba(14,31,20,.23);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .topbar nav::before {
    content: 'TamSun · CARZONE KZ';
    display: block;
    padding: 7px 10px 15px;
    color: var(--qz-ink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .075em;
  }
  body.menu-open .topbar nav { transform: translateX(0); }
  .topbar nav > a,
  .topbar nav .nav-section > a,
  .topbar nav .warehouse-quick-actions a {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.25;
  }
  .topbar nav > a.active,
  .topbar nav .nav-section > a.active { color: var(--qz-brand-dark); background: #fff0ef; box-shadow: inset 3px 0 0 var(--qz-brand); }
  .nav-section { gap: 2px; margin: 7px 0; padding: 8px; border-radius: 13px; }
  .nav-section-title { min-height: 38px; padding: 7px 9px; }
  .warehouse-quick-actions { gap: 2px; margin-top: 7px; padding-top: 8px; }
  .topbar nav .warehouse-quick-actions a { min-height: 42px; color: #536159; font-size: 13px; }
  .mobile-menu-extra { margin-top: 6px; }
  .menu-backdrop { z-index: 55; backdrop-filter: blur(2px); }
  .page { width: 100%; max-width: 100%; margin: 0; padding: 18px 12px 54px; overflow-x: hidden; }
  .heading-row { gap: 12px; margin-bottom: 14px; }
  .heading-row h1 { font-size: 23px; }
  .heading-row .actions { width: 100%; }
  .heading-row .actions > * { flex: 1 1 auto; text-align: center; }
  .panel,.form-card,.order-row { padding: 14px; border-radius: 12px; }
  .table-wrap { max-width: 100%; overflow-x: auto; border-radius: 11px; }
  .table-wrap > table { min-width: 720px; }
  button,.button { min-height: 42px; touch-action: manipulation; }
  input,select,textarea { min-height: 42px; font-size: 16px; }
  .robot-health-widget { right: 10px; bottom: 10px; max-width: calc(100vw - 20px); }
  .robot-health-summary { min-height: 42px; border-radius: 11px; }
}

@media (max-width: 420px) {
  .topbar { padding-inline: 9px; }
  .brand-copy small { display: none; }
  .global-search input { font-size: 15px; }
  .page { padding-inline: 9px; }
  .summary-grid { grid-template-columns: 1fr; }
}

/* TamSun dashboard */
.dashboard-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; padding: 6px 2px; }
.dashboard-hero h1 { margin: 6px 0 7px; font-size: clamp(28px,3vw,42px); }
.dashboard-kicker { color: var(--qz-brand-dark); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.dashboard-filters { display: flex; align-items: center; gap: 9px; }
.dashboard-filters select { min-width: 190px; }
.dashboard-date-range { display: flex; align-items: center; gap: 7px; }
.dashboard-date-range label { display: grid; gap: 3px; color: #748078; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.dashboard-date-range input { min-width: 145px; min-height: 40px; }
.dashboard-date-separator { color: #89938c; }
.dashboard-apply { min-height: 40px; padding-inline: 16px; background: var(--qz-green); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.dashboard-metric { display: grid; gap: 7px; min-height: 142px; padding: 20px; border: 1px solid var(--qz-line); border-radius: 15px; background: #fff; box-shadow: 0 7px 24px rgba(27,51,36,.04); }
.dashboard-metric span { color: #748078; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.dashboard-metric strong { align-self: end; font-size: clamp(24px,2.1vw,34px); letter-spacing: -.035em; }
.dashboard-metric small { color: #859087; }
.dashboard-metric.featured { color: #fff; border-color: #203e2c; background: linear-gradient(145deg,#183725,#254d35); }
.dashboard-metric.featured span,.dashboard-metric.featured small { color: #b8cabe; }
.dashboard-metric.profit { border-color: #f0d0cd; background: linear-gradient(145deg,#fff8f7,#fff); }
.dashboard-metric.profit strong { color: var(--qz-brand-dark); }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-bottom: 14px; }
.dashboard-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 19px; }
.dashboard-card-head h2 { margin: 4px 0 0; font-size: 20px; }
.dashboard-card-head > a { color: #647269; font-size: 12px; font-weight: 800; }
.top-products-sort { display: flex; align-items: center; gap: 7px; }
.top-products-sort label { color: #748078; font-size: 11px; font-weight: 800; white-space: nowrap; }
.top-products-sort select { min-width: 146px; min-height: 34px; padding: 6px 28px 6px 9px; font-size: 12px; }
.counterparties-layout { grid-template-columns: .9fr 1.1fr; }
.counterparty-ledger-form + .counterparty-ledger-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--qz-line); }
.order-state-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 18px; }
.order-state-grid div { display: grid; gap: 3px; padding: 13px; border-radius: 10px; background: #f4f7f5; }
.order-state-grid strong { font-size: 23px; }.order-state-grid span { color: #748078; font-size: 11px; }
.dashboard-finance-lines { display: grid; gap: 1px; }
.dashboard-finance-lines > span { display: flex; justify-content: space-between; gap: 12px; padding: 10px 3px; border-bottom: 1px solid #edf1ee; color: #6b776f; font-size: 13px; }
.dashboard-finance-lines > span:last-child { border-bottom: 0; }.dashboard-finance-lines strong { color: var(--qz-ink); }
.stock-highlight { display: grid; gap: 3px; margin: 8px 0 20px; padding: 20px; border-radius: 13px; color: #fff; background: #1d422d; }
.stock-highlight strong { font-size: 38px; letter-spacing: -.04em; }.stock-highlight span { color: #bed0c3; }
.top-products-grid { grid-template-columns: 1fr 1fr; }
.top-product-list { display: grid; gap: 5px; }
.top-product-list > a { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; color: var(--qz-ink); }
.top-product-list > a:hover { background: #f3f7f4; }
.top-product-list b { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; color: var(--qz-brand-dark); background: #fff0ef; font-size: 11px; }
.top-product-list span { display: grid; gap: 3px; min-width: 0; }.top-product-list span strong,.top-product-list span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-product-list span strong { font-size: 13px; }.top-product-list span small { color: #7b867f; font-size: 11px; }
.top-product-list em { color: #435249; font-size: 12px; font-style: normal; font-weight: 900; }
.settings-section-intro { margin: -18px -18px 18px; padding: 20px; border-radius: 13px 13px 0 0; background: #f7f3ed; }
.settings-section-intro > span { color: var(--qz-brand-dark); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.settings-section-intro h2 { margin: 5px 0 7px; }.settings-section-intro p { max-width: 850px; line-height: 1.5; }
.tenant-supplier-list { display: grid; gap: 10px; margin: 16px 0; }
.tenant-supplier-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.65fr); gap: 16px; align-items: start; padding: 15px; border: 1px solid var(--qz-line); border-radius: 12px; background: #f8faf8; }
.tenant-supplier-card > div { display: grid; gap: 4px; }.tenant-supplier-card small { color: #6e7a72; }
.price-onboarding-form { display: grid; gap: 8px; }.price-onboarding-form button { width: 100%; }
.supplier-onboarding { margin: 18px 0; padding: 18px; border: 1px solid #cddbd1; border-radius: 13px; background: #f4f8f5; }
.supplier-onboarding h3 { margin: 0; }.supplier-onboarding > p { margin: 0; color: #627067; }
.price-onboarding-preview { display: grid; gap: 10px; max-width: 100%; overflow: hidden; }
.price-column-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.price-column-grid label { display: grid; gap: 4px; font-size: 11px; }.price-column-grid select { min-width: 0; width: 100%; }
.price-onboarding-preview .table-wrap table { min-width: 620px; font-size: 11px; }
.procurement-reservation { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 7px 0; padding: 9px 11px; border-radius: 9px; background: #eef5f0; color: #526158; font-size: 12px; }
.procurement-reservation strong { color: #234330; }.procurement-reservation.warning { background: #fff3e3; color: #765121; }

@media (max-width: 1000px) {
  .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid,.top-products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .dashboard-hero { display: grid; align-items: stretch; }
  .dashboard-filters { display: grid; }
  .dashboard-filters select { width: 100%; }
  .dashboard-date-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
  .dashboard-date-range input { width: 100%; min-width: 0; }
  .dashboard-apply { width: 100%; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .dashboard-metric { min-height: 126px; padding: 15px; }
  .top-products-sort { align-items: flex-end; flex-direction: column; }
  .order-state-grid { grid-template-columns: 1fr 1fr; }
  .tenant-supplier-card { grid-template-columns: 1fr; }
  .price-column-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .dashboard-date-range { grid-template-columns: 1fr; }
  .dashboard-date-separator { display: none; }
  .dashboard-metrics { grid-template-columns: 1fr; }
  .dashboard-metric { min-height: 112px; }
  .dashboard-card-head:has(.top-products-sort) { align-items: flex-start; }
  .top-products-sort { width: 100%; }
  .top-products-sort select { width: 100%; }
  .price-column-grid { grid-template-columns: 1fr; }
}

/* Public TamSun landing */
.tamsun-landing { background: #f7f8f4; color: var(--qz-ink); }
.tamsun-landing .page { max-width: none; padding: 0; }
.landing-nav { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 74px; padding: 0 max(24px,calc((100vw - 1180px)/2)); border-bottom: 1px solid rgba(31,50,40,.09); background: rgba(247,248,244,.92); backdrop-filter: blur(16px); }
.landing-logo { display: flex; align-items: center; gap: 10px; color: #17271e; font-size: 20px; }
.landing-logo span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--qz-brand); color: #fff; font-weight: 900; }
.landing-nav nav { display: flex; gap: 30px; }
.landing-nav nav a { color: #536057; font-size: 13px; font-weight: 800; }
.landing-nav .landing-login { justify-self: end; }
.landing-nav-actions { display: flex; align-items: center; justify-self: end; gap: 17px; }.landing-nav-actions > a[href="#application"] { color: #526158; font-size: 12px; font-weight: 800; }
.landing-language-switch,.login-language-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid #d8dfd9; border-radius: 999px; background: #fff; }
.landing-language-switch a,.login-language-switch a { padding: 6px 9px; border-radius: 999px; color: #68736b; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.landing-language-switch a.active,.login-language-switch a.active { color: #fff; background: var(--qz-brand); }
.login-language-switch { width: max-content; margin: 0 0 18px auto; }
.landing-login,.landing-primary { background: var(--qz-brand); color: #fff !important; }
.tamsun-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; max-width: 1180px; min-height: 650px; margin: auto; padding: 80px 24px 70px; }
.landing-eyebrow { display: inline-block; color: var(--qz-brand-dark); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.tamsun-hero h1 { margin: 16px 0 20px; color: #16251d; font-size: clamp(48px,6vw,78px); line-height: .98; letter-spacing: -.065em; }
.tamsun-hero h1 em { color: var(--qz-brand); font-style: normal; }
.tamsun-hero-copy > p { max-width: 650px; color: #647068; font-size: 18px; line-height: 1.65; }
.landing-hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.landing-hero-actions .button { padding: 13px 19px; }
.landing-outline { border: 1px solid #cad2cc; background: transparent; color: #283a30; }
.landing-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 27px; color: #6d776f; font-size: 12px; font-weight: 700; }
.landing-trust span::before { content: '✓'; margin-right: 6px; color: var(--qz-brand); font-weight: 900; }
.landing-dashboard-preview { overflow: hidden; border: 1px solid #dce3dd; border-radius: 24px; background: #fff; box-shadow: 0 30px 70px rgba(31,50,40,.15); transform: rotate(1deg); }
.preview-top { display: flex; align-items: center; gap: 6px; padding: 15px 18px; border-bottom: 1px solid #edf0ed; color: #718078; font-size: 11px; font-weight: 800; }
.preview-top i { width: 7px; height: 7px; border-radius: 50%; background: #d8ddd9; }
.preview-top i:first-child { background: #ee4545; }.preview-top i:nth-child(2) { background: #efbd48; }.preview-top i:nth-child(3) { background: #56b977; }
.preview-top strong { margin-left: auto; color: #25372d; }
.preview-metrics { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; padding: 22px 22px 10px; }
.preview-metrics article { min-width: 0; padding: 15px; border-radius: 13px; background: #f2f6f3; }
.preview-metrics .preview-main { background: #203b2c; color: #fff; }
.preview-metrics span,.preview-metrics small { display: block; color: #839087; font-size: 9px; }
.preview-metrics .preview-main span,.preview-metrics .preview-main small { color: #bbccc0; }
.preview-metrics strong { display: block; margin: 7px 0 5px; font-size: 17px; white-space: nowrap; }
.preview-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; padding: 0 22px 22px; }
.preview-bottom > div,.preview-bottom ul { margin: 0; padding: 15px; border: 1px solid #edf0ed; border-radius: 13px; }
.preview-bottom > div > span { color: #4f5e55; font-size: 10px; font-weight: 800; }
.preview-chart { display: flex; align-items: end; gap: 6px; height: 116px; margin-top: 10px; }
.preview-chart i { flex: 1; border-radius: 5px 5px 1px 1px; background: #acd3b8; }.preview-chart i:nth-child(1) { height: 28%; }.preview-chart i:nth-child(2) { height: 47%; }.preview-chart i:nth-child(3) { height: 39%; }.preview-chart i:nth-child(4) { height: 72%; background: #329d58; }.preview-chart i:nth-child(5) { height: 58%; }.preview-chart i:nth-child(6) { height: 88%; background: #329d58; }.preview-chart i:nth-child(7) { height: 75%; }
.preview-bottom ul { display: grid; align-content: center; gap: 5px; list-style: none; }
.preview-bottom li { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 7px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf0ed; }
.preview-bottom li:last-child { border-bottom: 0; }.preview-bottom li b { color: var(--qz-brand); font-size: 10px; }.preview-bottom li span { overflow: hidden; color: #435248; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.preview-bottom li em { color: #7c8980; font-size: 9px; font-style: normal; }
.landing-preview-top { display: flex; align-items: center; gap: 6px; padding: 15px 18px; border-bottom: 1px solid #edf0ed; color: #718078; font-size: 11px; font-weight: 800; }
.landing-preview-top i { width: 7px; height: 7px; border-radius: 50%; background: #d8ddd9; }.landing-preview-top b { margin-left: auto; color: #25372d; }
.landing-preview-body { padding: 24px; }
.landing-preview-title { margin-bottom: 18px; }.landing-preview-title span { color: #869087; font-size: 10px; font-weight: 800; text-transform: uppercase; }.landing-preview-title h3 { margin: 4px 0; font-size: 23px; }
.landing-preview-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }.landing-preview-metrics div { padding: 13px; border-radius: 12px; background: #f3f6f3; }.landing-preview-metrics small { display: block; margin-bottom: 5px; color: #89928b; font-size: 9px; }.landing-preview-metrics strong { font-size: 16px; }
.landing-preview-chart { display: flex; align-items: end; gap: 7px; height: 145px; margin: 22px 0 14px; padding: 15px 15px 0; border-radius: 13px; background: linear-gradient(#fbfcfb,#f3f7f4); }.landing-preview-chart i { flex: 1; min-height: 14%; border-radius: 5px 5px 0 0; background: #9bc8aa; }.landing-preview-chart i:nth-child(2n) { background: var(--qz-brand); }
.landing-preview-bottom { display: flex; gap: 9px; }.landing-preview-bottom span { flex: 1; height: 33px; border-radius: 9px; background: #f0f3f1; }.landing-preview-bottom span:first-child { flex: 1.7; }
.landing-stat-strip { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1180px; margin: 0 auto 35px; padding: 0 24px; }.landing-stat-strip div { padding: 25px; border-top: 1px solid #d9dfda; border-bottom: 1px solid #d9dfda; }.landing-stat-strip strong { display: block; color: #203228; font-size: 16px; }.landing-stat-strip span { color: #758078; font-size: 12px; }
.tamsun-section { max-width: 1180px; margin: auto; padding: 95px 24px; }.landing-section-head { max-width: 720px; margin-bottom: 42px; }.landing-section-head h2,.landing-final-cta h2 { margin: 10px 0 12px; font-size: clamp(34px,4vw,52px); line-height: 1.05; letter-spacing: -.045em; }.landing-section-head p { color: #6d776f; font-size: 16px; line-height: 1.6; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }.landing-feature-grid article { min-height: 190px; padding: 23px; border: 1px solid #e0e5e0; border-radius: 17px; background: #fff; }.landing-feature-grid b { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #edf7f0; color: var(--qz-brand-dark); }.landing-feature-grid h3 { margin: 24px 0 8px; font-size: 16px; }.landing-feature-grid p,.landing-advantages p { color: #737d76; font-size: 13px; line-height: 1.55; }
.landing-dark-section { max-width: 1180px; margin: 35px auto; padding: 70px; border-radius: 28px; background: #1c3025; color: #fff; }.landing-dark-section .landing-section-head p { color: #b7c4bc; }.landing-dark-section .landing-eyebrow { color: #79d399; }
.landing-workflow { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 0; list-style: none; }.landing-workflow li { border-top: 1px solid #466052; padding-top: 22px; }.landing-workflow b { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #2f9e58; }.landing-workflow h3 { margin: 18px 0 8px; }.landing-workflow p { color: #b7c4bc; font-size: 13px; line-height: 1.55; }
.landing-advantages { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.landing-advantages article { padding: 22px; border-left: 3px solid #59b978; background: #fff; }.landing-advantages strong { font-size: 15px; }
.landing-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; max-width: 1132px; margin: 20px auto 80px; padding: 55px; border-radius: 25px; background: #e6f4e9; }.landing-final-cta p { color: #5c6961; }.landing-final-cta .button { flex: none; padding: 14px 22px; }
.landing-application { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }.landing-application-copy h2 { margin: 10px 0 15px; font-size: clamp(38px,4vw,54px); letter-spacing: -.05em; }.landing-application-copy > p { color: #68736c; font-size: 16px; line-height: 1.65; }.landing-application-copy ul { display: grid; gap: 11px; margin: 27px 0 0; padding: 0; list-style: none; }.landing-application-copy li::before { content: '✓'; display: inline-grid; width: 22px; height: 22px; margin-right: 9px; place-items: center; border-radius: 50%; background: #e5f4e9; color: #258348; font-weight: 900; }.landing-application-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 30px; border: 1px solid #dce3dd; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(31,50,40,.08); }.landing-application-form label { display: grid; gap: 7px; color: #3f4d44; font-size: 12px; font-weight: 800; }.landing-application-form label:nth-of-type(5),.landing-application-form button,.landing-application-form > small,.application-success,.application-error { grid-column: 1/-1; }.landing-application-form input,.landing-application-form select,.landing-application-form textarea { width: 100%; border-color: #d7dfd9; border-radius: 10px; background: #fafcfa; }.landing-application-form textarea { resize: vertical; }.landing-application-form button { min-height: 48px; border-radius: 10px; }.landing-application-form > small { color: #879089; font-weight: 400; }.landing-honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }.application-success,.application-error { display: grid; gap: 3px; padding: 14px; border-radius: 10px; }.application-success { background: #e6f6eb; color: #1e7040; }.application-error { background: #fff0ef; color: #a92e2e; }
.landing-footer { display: flex; justify-content: space-between; padding: 30px max(24px,calc((100vw - 1180px)/2)); border-top: 1px solid #dde2dd; color: #758078; font-size: 12px; }.landing-footer strong { color: #22342a; }
@media (max-width: 1000px) { .tamsun-hero { grid-template-columns: 1fr; }.landing-dashboard-preview { width: 100%; max-width: 660px; transform: none; }.landing-feature-grid { grid-template-columns: repeat(2,1fr); }.landing-dark-section { margin: 24px; }.landing-workflow { grid-template-columns: repeat(2,1fr); }.landing-application { grid-template-columns: 1fr; gap: 35px; } }
@media (max-width: 700px) { .landing-nav { grid-template-columns: 1fr auto; min-height: 64px; padding: 0 16px; }.landing-nav nav { display: none; }.landing-login { padding: 9px 12px; }.tamsun-hero { min-height: auto; gap: 42px; padding: 60px 16px 45px; }.tamsun-hero h1 { font-size: 49px; }.tamsun-hero-copy > p { font-size: 15px; }.landing-hero-actions { display: grid; }.landing-hero-actions .button { text-align: center; }.landing-stat-strip { grid-template-columns: 1fr 1fr; padding: 0 16px; }.landing-stat-strip div { padding: 17px 8px; }.tamsun-section { padding: 68px 16px; }.landing-feature-grid,.landing-advantages,.landing-workflow { grid-template-columns: 1fr; }.landing-dark-section { margin: 15px; padding: 45px 22px; }.landing-final-cta { display: grid; margin: 15px 15px 55px; padding: 35px 23px; }.landing-final-cta .button { text-align: center; }.preview-metrics { grid-template-columns: 1fr; }.preview-bottom { grid-template-columns: 1fr; }.preview-chart { height: 105px; }.landing-footer { padding: 25px 16px; } }
@media (max-width: 700px) { .landing-nav-actions > a[href="#application"] { display: none; }.landing-nav-actions { gap: 8px; }.landing-language-switch a { padding: 5px 7px; }.landing-application-form { grid-template-columns: 1fr; padding: 22px; }.landing-application-form label { grid-column: 1/-1; } }
.tenant-onboarding{margin-bottom:18px}.tenant-onboarding-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.tenant-onboarding-head h2{margin:4px 0 0}.tenant-onboarding-head>strong{font-size:1.5rem;color:var(--brand,#174c34)}.tenant-progress{height:8px;background:#e5e9e7;border-radius:999px;overflow:hidden;margin:18px 0}.tenant-progress span{display:block;height:100%;background:#ef3e36;border-radius:inherit;transition:width .25s ease}.tenant-checklist{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.tenant-checklist>div{display:flex;align-items:center;gap:9px;color:#6b7470}.tenant-checklist span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#edf0ef;font-weight:800}.tenant-checklist .is-done{color:#174c34}.tenant-checklist .is-done span{background:#dcefe5}.tenant-settings-grid{align-items:start}.tenant-settings-grid>.card{min-width:0}.setup-disclosure{border-top:1px solid #e3e8e5;margin-top:14px;padding-top:12px}.setup-disclosure summary{cursor:pointer;font-weight:800;color:#174c34;list-style-position:inside}.setup-form{margin-top:14px}.tenant-entity-list{margin-top:16px}.tenant-entity{display:block}.tenant-entity>div{display:flex;flex-direction:column;gap:4px}.automation-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.inline-create-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.inline-create-form label{margin:0}.tenant-managed-block .notification{margin-top:16px}
@media(max-width:760px){.tenant-checklist{grid-template-columns:repeat(2,minmax(0,1fr))}.automation-switches{grid-template-columns:1fr}.inline-create-form{grid-template-columns:1fr}.tenant-onboarding-head{align-items:center}}
.platform-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.platform-summary .card{display:flex;flex-direction:column;gap:6px}.platform-summary small{color:#68736d;font-weight:700}.platform-summary strong{font-size:1.8rem}.platform-client-layout{align-items:start}.supplier-picker{border:1px solid #dce3df;border-radius:12px;padding:14px}.supplier-picker legend{font-weight:800;padding:0 6px}.supplier-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;max-height:240px;overflow:auto}.platform-leads{max-height:660px;overflow:auto}.platform-leads .result{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.platform-leads p{margin:7px 0 0}.status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef1ef;color:#5b6560;font-size:.78rem;font-weight:800}.status-pill.success{background:#dcefe5;color:#185e3e}.platform-companies{margin-top:18px}.platform-company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.platform-company{display:flex;flex-direction:column;gap:14px}.platform-company-head{display:flex;justify-content:space-between;gap:12px}.platform-company-head>div{display:flex;flex-direction:column;gap:4px}.platform-company-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;color:#68736d}.platform-company-metrics span{padding:9px;background:#f5f7f6;border-radius:8px}.platform-company-metrics strong{color:#17231d}.tenant-readiness{border:1px solid #dce3df;border-radius:10px;padding:10px;background:#fafcfb}.tenant-readiness>div{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.tenant-readiness span{font-size:.76rem;font-weight:750;border-radius:999px;padding:4px 7px;background:#f5e9e8;color:#a1322d}.tenant-readiness span.ok{background:#dcefe5;color:#185e3e}.tenant-readiness small{color:#68736d}
@media(max-width:760px){.platform-summary{grid-template-columns:1fr}.platform-company-grid{grid-template-columns:1fr}.supplier-picker>div{grid-template-columns:1fr}.platform-company-metrics{grid-template-columns:1fr 1fr}}
.product-actions-cell{width:52px;text-align:right;overflow:visible}.product-actions{position:relative;display:inline-block}.product-actions>summary{list-style:none;cursor:pointer;font-size:25px;line-height:1;border:0;border-radius:8px;padding:6px 10px;background:transparent}.product-actions>summary::-webkit-details-marker{display:none}.product-actions[open]>summary{background:#eef2f0}.product-actions>div{position:absolute;right:0;top:100%;z-index:30;min-width:230px;padding:8px;background:#fff;border:1px solid #d8e0dc;border-radius:10px;box-shadow:0 14px 34px rgba(17,42,31,.18);display:grid;gap:3px;text-align:left}.product-actions a,.product-actions button,.product-actions .disabled-action{display:block;width:100%;padding:9px 11px;border:0;border-radius:7px;background:transparent;color:#16271f;text-align:left;text-decoration:none;font:inherit}.product-actions a:hover,.product-actions button:hover{background:#eef6f2}.product-actions form{margin:0}.product-actions button.danger{color:#b42318}.product-actions .disabled-action{color:#87948e;font-size:12px}.debt-due{display:block;margin-top:4px;color:#66736d}.debt-urgent{background:#fff0ef!important;color:#b42318;font-weight:700}.debt-urgent .debt-due{color:#b42318}.detail-list{display:grid;gap:10px;margin:0}.detail-list div{display:grid;grid-template-columns:120px 1fr;gap:12px;border-bottom:1px solid #edf0ee;padding-bottom:8px}.detail-list dt{color:#6f7c76}.detail-list dd{margin:0;font-weight:700}.product-detail-grid{grid-template-columns:minmax(260px,.7fr) minmax(500px,1.3fr)}.supplier-return-panel{margin-top:14px;border-color:#efc5c1}.supplier-return-panel label{display:grid;grid-template-columns:minmax(260px,1fr) 130px;align-items:center;gap:12px}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media(max-width:800px){.product-actions>div{position:fixed;left:16px;right:16px;top:auto;bottom:18px;min-width:0}.product-detail-grid{grid-template-columns:1fr}.grid-4{grid-template-columns:1fr 1fr}.supplier-return-panel label{grid-template-columns:1fr}}
