:root {
  color-scheme: light;
  --forest: #244b3a;
  --forest-deep: #18392d;
  --forest-soft: #e4ece5;
  --oak: #a9723e;
  --oak-soft: #f1e5d4;
  --ink: #111310;
  --muted: #343832;
  --paper: #f4f2eb;
  --surface: #fffdf8;
  --surface-alt: #f7f5ee;
  --line: #d8d8cf;
  --line-strong: #b8b9ad;
  --shadow: 0 16px 45px rgba(32, 43, 34, 0.09);
}

* { box-sizing: border-box; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(ellipse at top left, #e5ece4, transparent 48%), var(--paper); }
.login-card { width: min(100%, 430px); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.login-card h1 { margin: 8px 0; font-family: Georgia, serif; font-size: 30px; }
.login-intro { color: var(--muted); }
.login-form { display: grid; gap: 16px; margin-top: 26px; }
.login-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.login-form input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-alt); }
.login-form input:focus { border-color: var(--forest); outline: 2px solid color-mix(in srgb, var(--forest) 20%, transparent); }
.login-form .primary-button { min-height: 46px; border: 1px solid var(--forest); border-radius: 9px; background: var(--forest); color: white; font-weight: 700; cursor: pointer; }
.login-error { padding: 10px 12px; border-radius: 8px; background: #f6e4df; color: #8b352d; }
.logout-form button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
}

button, input, select { color: var(--ink); font: inherit; }
a { color: var(--ink); }

.app-shell {
  --sidebar-width: 316px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease, opacity 140ms ease;
}

.app-shell-loading { opacity: 0.58; }
.app-shell.sidebar-collapsed { --sidebar-width: 76px; }

.navigation-busy {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(244, 242, 235, 0.48);
  backdrop-filter: blur(3px);
  cursor: wait;
}
.navigation-busy[hidden] { display: none; }
.navigation-busy-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 220px;
  padding: 23px 30px;
  border: 1px solid #cbd3c9;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(32, 43, 34, 0.16);
  animation: navigation-card-in 180ms ease-out both;
}
.navigation-busy-card strong { color: var(--forest-deep); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 600; }
.navigation-busy-card > span:last-child { color: var(--muted); font-size: 12px; }
.navigation-busy-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #dce5dc;
  border-top-color: var(--forest);
  border-right-color: var(--oak);
  border-radius: 50%;
  animation: navigation-spin 850ms linear infinite;
}
@keyframes navigation-spin { to { transform: rotate(360deg); } }
@keyframes navigation-card-in { from { opacity: 0; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .navigation-busy-spinner { animation-duration: 1.8s; }
  .navigation-busy-card { animation: none; }
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 22px 14px 16px;
  overflow: hidden;
  background: #e5ebe3;
  border-right: 1px solid #cbd3c9;
  transition: padding 180ms ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 3px 7px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-symbol {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--forest);
  border-radius: 12px 12px 12px 4px;
  background: var(--forest-soft);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}

.sidebar-brand-copy { display: grid; gap: 2px; overflow: hidden; }
.sidebar-brand-copy strong { font-family: Georgia, serif; font-size: 20px; letter-spacing: -0.04em; }
.sidebar-brand-copy small { color: var(--ink); font-size: 11px; }

.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  margin: 30px 0 18px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sidebar-toggle:hover { background: var(--surface); border-color: var(--forest); }
.toggle-glyph { display: inline-block; width: 18px; color: var(--ink); font-family: Georgia, serif; font-size: 24px; line-height: 1; text-align: center; }
.sidebar-toggle-label { white-space: nowrap; font-size: 12px; font-weight: 700; }
.nav-caption { margin: 0 10px 10px; color: var(--ink); font-size: 9px; font-weight: 800; letter-spacing: 0.14em; white-space: nowrap; }
.side-nav { display: grid; min-height: 0; gap: 5px; align-content: start; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.nav-link:hover { transform: translateX(2px); border-color: #c8d2c8; background: #f7f8f3; }
.nav-link-active { border-color: #b8c9ba; background: var(--surface); box-shadow: 0 5px 15px rgba(25, 57, 44, 0.06); font-weight: 800; }
.nav-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--forest-soft); color: var(--ink); font-size: 18px; }
.nav-link-active .nav-icon { background: #d2dfd3; color: var(--ink); }
.nav-label { overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
.nav-current { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--oak); }
.nav-group { min-width: 0; }
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group-chevron { margin-left: auto; color: var(--muted); font-size: 15px; transition: transform 140ms ease; }
.nav-group[open] .nav-group-chevron { transform: rotate(180deg); }
.nav-subnav { display: grid; gap: 3px; margin: 3px 0 5px 40px; }
.nav-subnav-link { min-height: 34px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; text-decoration: none; }
.nav-subnav-link:hover, .nav-subnav-link-active { background: #f7f8f3; color: var(--forest-deep); }
.nav-subnav-link-active { box-shadow: inset 2px 0 var(--oak); font-weight: 800; }

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin-top: auto;
  padding: 0 11px;
  border-top: 1px solid #cbd3c9;
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
}

.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 3px #d1dfd2; }

.sidebar-collapsed .sidebar { padding-right: 10px; padding-left: 10px; }
.sidebar-collapsed .sidebar-brand { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-brand-copy,
.sidebar-collapsed .sidebar-toggle-label,
.sidebar-collapsed .nav-caption,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-current,
.sidebar-collapsed .sidebar-footer-label { display: none; }
.sidebar-collapsed .sidebar-toggle { justify-content: center; padding: 0; }
.sidebar-collapsed .toggle-glyph { transform: rotate(180deg); }
.sidebar-collapsed .nav-link { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-footer { justify-content: center; padding: 0; }
.sidebar-collapsed .nav-subnav { display: none; }
.sidebar-collapsed .nav-group-chevron { display: none; }

.page-shell { min-width: 0; padding: 26px clamp(16px, 2.2vw, 38px) 42px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; margin-bottom: 25px; }
.page-heading { min-width: 0; }
.eyebrow { margin: 0 0 8px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0.15em; }
.topbar h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 2.5vw, 36px); font-weight: 600; letter-spacing: -0.04em; }
.topbar-tools { display: flex; align-items: center; gap: 11px; }
.date-chip { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-alt); font-size: 13px; font-weight: 700; }
.date-mark { color: var(--ink); font-size: 18px; }

.country-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 15px; }
.country-tab { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 62px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 120ms ease, background 120ms ease, transform 120ms ease; }
.country-tab:hover { transform: translateY(-1px); border-color: #b4c4b5; background: #f9faf5; }
.country-tab-active { border-color: var(--forest); background: var(--forest-soft); box-shadow: inset 0 0 0 1px rgba(36, 75, 58, 0.12); }
.country-tab-code { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: #f0ede4; font-size: 11px; font-weight: 800; }
.country-tab-active .country-tab-code { border: 1px solid #b8c9ba; background: #d4e0d5; }
.country-tab-copy { display: grid; min-width: 0; gap: 3px; }
.country-tab-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.country-tab-copy small { color: var(--ink); font-size: 10px; white-space: nowrap; }

.table-panel,
.module-placeholder {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-panel { padding: 21px; }
.panel-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.panel-summary { flex: 0 0 auto; }
.panel-label { display: block; margin: 0 0 7px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.panel-summary h2 { margin: 0; font-size: 26px; letter-spacing: -0.04em; }
.panel-summary h2 span { color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.search-form { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }

.search-form input[type="text"],
.state-filter,
.group-filter summary {
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.search-form input[type="text"] { min-width: min(270px, 26vw); }
.search-form input::placeholder { color: var(--ink); opacity: 0.65; }
.search-form input:focus, .state-filter:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(36, 75, 58, 0.1); }
.state-filter { min-width: 190px; cursor: pointer; }
.group-filter { position: relative; min-width: 175px; }
.group-filter summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; white-space: nowrap; }
.group-filter summary::-webkit-details-marker { display: none; }
.group-filter summary::after { content: "⌄"; color: var(--ink); font-size: 17px; }
.group-filter[open] summary { border-color: var(--forest); }
.group-filter-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; width: min(360px, calc(100vw - 36px)); max-height: 310px; overflow: auto; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.type-filter .group-filter-menu { width: min(230px, calc(100vw - 36px)); }
.product-type-filter { min-width: 185px; }
.product-type-filter .group-filter-menu { width: min(230px, calc(100vw - 36px)); }
.group-filter-actions { display: flex; justify-content: flex-end; margin-bottom: 5px; }
.filter-reset-button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-alt); font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-reset-button:hover { border-color: var(--oak); background: var(--oak-soft); }
.group-options-list { display: flex; flex-direction: column; align-items: stretch; }
.group-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 2px; color: var(--ink); font-size: 13px; line-height: 1.35; white-space: nowrap; cursor: pointer; }
.group-option-check { display: inline-flex; flex: 0 0 15px; width: 15px; align-items: center; justify-content: center; }
.group-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--forest); }
.group-option-label { overflow: hidden; text-overflow: ellipsis; }
.warehouse-filter .group-option-label { white-space: normal; overflow-wrap: anywhere; }
.warehouse-filter .group-option-label small { display: block; color: var(--muted); font-size: 11px; }
.warehouse-filter-empty { margin: 8px 0; color: var(--muted); font-size: 13px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform 120ms ease, background 120ms ease, border-color 120ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--forest); background: var(--forest-soft); }
.button-primary:hover { background: #d5e2d7; }
.button-secondary { border-color: #c6b091; background: var(--oak-soft); }
.button-muted { border-color: var(--line); background: var(--surface-alt); }

.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; }
.filter-tag { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 4px 6px 4px 10px; border: 1px solid #d5c3aa; border-radius: 999px; background: #f7efe4; color: var(--ink); font-size: 12px; font-weight: 700; }
.filter-tag-remove { display: inline-flex; width: 21px; height: 21px; align-items: center; justify-content: center; border-radius: 50%; background: var(--oak-soft); font-size: 15px; line-height: 1; text-decoration: none; }
.filter-tag-remove:hover { background: #e7d1b4; }
.inventory-filter-toolbar { container: inventory-filters / inline-size; margin-bottom: 12px; }
.inventory-filter-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-bottom: 8px; }
.inventory-filter-heading .panel-summary { display: flex; align-items: baseline; gap: 8px; }
.inventory-filter-heading .panel-label { margin: 0; }
.inventory-filter-heading h2 { font-size: 20px; }
.inventory-filter-heading .forecast-period { padding: 4px 8px; font-size: 11px; }
.inventory-filter-actions { display: flex; gap: 6px; margin-left: auto; }
.inventory-filter-actions .button { min-height: 34px; padding: 0 10px; }
.inventory-filter-form { display: grid; grid-template-columns: minmax(110px, 1.45fr) minmax(135px, 1.15fr) minmax(116px, 1fr) minmax(116px, 1fr) minmax(99px, .9fr) minmax(88px, .8fr); gap: 6px; align-items: stretch; position: relative; }
.inventory-filter-form input[type="text"], .inventory-filter-form .state-filter, .inventory-filter-form .group-filter { width: 100%; min-width: 0; }
.inventory-filter-form input[type="text"], .inventory-filter-form .state-filter, .inventory-filter-form summary { min-height: 36px; padding: 5px 8px; font-size: 12px; }
.inventory-filter-form summary { gap: 4px; }
.inventory-filter-form summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.inventory-filter-form summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.inventory-filter-form .group-filter-menu { left: auto; right: 0; }
.inventory-filter-panel .active-filters { flex-wrap: nowrap; overflow-x: auto; gap: 5px; margin-bottom: 9px; }
.inventory-filter-panel .filter-tag { flex: 0 0 auto; max-width: min(320px, 100%); min-height: 25px; padding-block: 2px; font-size: 11px; }
.inventory-filter-panel .filter-tag-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-filter-panel .filter-tag-remove { flex: 0 0 18px; width: 18px; height: 18px; }
.inventory-filter-panel .planning-settings { align-items: center; gap: 7px 10px; margin: 8px 0 10px; padding: 8px 10px; }
.inventory-filter-panel .planning-settings label { display: flex; align-items: center; min-width: 0; }
.inventory-filter-panel .planning-settings input { width: 106px; min-height: 34px; padding: 5px 8px; }
.inventory-filter-panel .planning-settings .button { min-height: 34px; padding: 0 10px; }
@container inventory-filters (max-width: 695px) {
  .inventory-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inventory-filter-form .group-filter { position: static; }
  .inventory-filter-form .group-filter-menu { left: 0; right: 0; width: min(360px, 100%); }
}
@container inventory-filters (max-width: 390px) {
  .inventory-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-filter-actions { margin-left: 0; }
}
.error-banner { margin: 0 0 13px; padding: 12px 14px; border: 1px solid #d8b9a0; border-radius: 10px; background: #f8ece2; color: var(--ink); font-size: 13px; line-height: 1.45; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
table { width: 100%; min-width: 860px; border-collapse: collapse; }
thead th { position: sticky; top: 0; z-index: 1; padding: 13px 14px; border-bottom: 1px solid var(--line); background: #e8eee7; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; }
tbody td { padding: 12px 14px; border-top: 1px solid #e8e7df; color: var(--ink); font-size: 13px; }
tbody tr:nth-child(2n) td { background: #faf9f4; }
tbody tr:hover td { background: #edf2eb; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.warehouse-cell { min-width: 220px; max-width: 410px; }
.warehouse-list { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px; }
.warehouse-chip { display: inline-flex; max-width: 100%; padding: 4px 7px; overflow-wrap: anywhere; border: 1px solid #d4d8cf; border-radius: 6px; background: #f2f4ed; color: var(--ink); font-size: 11px; line-height: 1.3; }
.warehouse-overflow { position: relative; }
.warehouse-overflow summary { padding: 4px 7px; border: 1px solid #d7c4aa; border-radius: 6px; background: var(--oak-soft); cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; white-space: nowrap; }
.warehouse-overflow summary::-webkit-details-marker { display: none; }
.warehouse-overflow-list { display: flex; flex-wrap: wrap; gap: 5px; max-height: 150px; min-width: 220px; margin-top: 5px; padding: 7px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.empty-state { padding: 34px 22px; text-align: center; }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { margin: 0; color: var(--ink); }

.module-placeholder { display: grid; justify-items: start; align-content: center; min-height: 350px; padding: clamp(24px, 5vw, 58px); overflow: hidden; background: radial-gradient(circle at 90% 10%, #f2e5d3 0, transparent 28%), var(--surface); }
.placeholder-emblem { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 22px; border: 1px solid #c3d1c5; border-radius: 16px 16px 16px 5px; background: var(--forest-soft); color: var(--ink); font-family: Georgia, serif; font-size: 16px; font-weight: 700; }
.module-placeholder h2 { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3vw, 35px); font-weight: 600; }
.module-placeholder > p:not(.panel-label) { max-width: 460px; margin: 0 0 22px; color: var(--ink); font-size: 14px; line-height: 1.55; }

.cost-panel { min-height: 65vh; }
.cost-search { width: min(420px, 36vw); min-width: 280px; }
.cost-search input[type="search"] { width: 100%; min-width: 0; min-height: 42px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; box-shadow: inset 0 1px 2px rgba(32, 43, 34, 0.04); }
.cost-search input[type="search"]::placeholder { color: #696b63; opacity: 1; }
.cost-search input[type="search"]:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(36, 75, 58, 0.12); }
.cost-table-wrap { max-height: calc(100vh - 310px); }
.cost-table { min-width: 1120px; }
.cost-table thead th { text-align: center; }
.cost-table .cost-product-heading { min-width: 250px; text-align: left; }
.cost-product-cell { position: sticky; left: 0; z-index: 1; min-width: 250px; max-width: 340px; background: var(--surface) !important; }
.cost-product-cell strong, .cost-product-cell span { display: block; }
.cost-product-cell strong { font-size: 13px; }
.cost-product-cell span { margin-top: 5px; color: #56584f; font-size: 11px; line-height: 1.4; }
.cost-market-cell { min-width: 195px; padding: 7px !important; text-align: center; }
.cost-cell-button { display: flex; width: 100%; min-height: 78px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px; border: 1px solid #d5d9ce; border-radius: 9px; background: #f7f8f2; color: var(--ink); cursor: pointer; text-align: center; }
.cost-cell-button:hover { border-color: #8ba08b; background: #eef3eb; }
.cost-cell-complete { background: #edf3eb; }
.cost-total { font-size: 15px; font-variant-numeric: tabular-nums; }
.cost-breakdown { color: #55574f; font-size: 10px; line-height: 1.4; }
.cost-edit-hint { color: #65685e; font-size: 10px; }
.cost-cell-incomplete .cost-total { color: #76644c; font-size: 12px; }
.cost-market-absent { color: #74766e; font-size: 11px; }
.cost-dialog { width: min(470px, calc(100vw - 32px)); padding: 0; border: 1px solid #c8cabc; border-radius: 15px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #1a241c40; }
.cost-dialog::backdrop { background: #1c261f70; backdrop-filter: blur(2px); }
.cost-editor { display: grid; gap: 14px; padding: 23px; }
.cost-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.cost-dialog-heading h2 { margin: 5px 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 600; }
.cost-dialog-heading p:last-child { margin: 0; font-size: 13px; }
.cost-dialog-close { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-alt); color: var(--ink); font-size: 21px; cursor: pointer; }
.cost-editor label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.cost-editor input:not([type="hidden"]) { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.cost-editor input:focus { outline: 2px solid #b4c5b3; border-color: var(--forest); }
.cost-dialog-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid #c9d5c7; border-radius: 9px; background: var(--forest-soft); font-size: 12px; }
.cost-dialog-total strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.cost-form-error { min-height: 17px; margin: 0; color: #8b3127; font-size: 12px; }
.cost-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.cost-dialog-actions .button { flex: 0 0 auto; }
.cost-dialog-actions button:disabled { opacity: .6; cursor: wait; }
.report-dialog { width: min(650px, calc(100vw - 32px)); max-height: min(820px, calc(100vh - 32px)); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #1a241c40; }
.report-dialog::backdrop { background: #1c261f70; backdrop-filter: blur(2px); }
.report-dialog-content { display: grid; max-height: inherit; grid-template-rows: auto auto auto minmax(120px, 1fr) auto auto; gap: 13px; padding: 22px; }
.report-dialog [hidden] { display: none !important; }
.report-country-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px; }
.report-country-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-alt); color: var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; }
.report-country-tab span { color: var(--muted); font-size: 10px; }
.report-country-tab-active { border-color: var(--forest); background: var(--forest-soft); }
.report-select-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--forest-soft); font-size: 12px; }
.report-select-all label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; }
.report-select-all input, .report-warehouse-option input, .report-product-option > input { width: 16px; height: 16px; margin: 0; accent-color: var(--forest); }
.report-select-all span { color: var(--muted); }
.report-selection-panel[hidden] { display: none; }
.report-step-content { height: 100%; min-height: 0; }
.report-warehouse-list, .report-product-list { height: 100%; min-height: 120px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.report-warehouse-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 43px; padding: 7px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.report-warehouse-option:last-child { border-bottom: 0; }
.report-warehouse-option:hover { background: var(--surface-alt); }
.report-warehouse-option span { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.report-product-option[hidden] { display: none; }
.report-product-list { height: 100%; }
.report-product-option { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 7px 11px; border-bottom: 1px solid var(--line); cursor: pointer; }
.report-product-option:last-child { border-bottom: 0; }
.report-product-option:hover { background: var(--surface-alt); }
.report-product-option span, .report-product-option strong, .report-product-option small { display: block; min-width: 0; }
.report-product-option strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.report-product-option small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.report-product-option b { color: var(--forest-deep); font-size: 11px; white-space: nowrap; }
.report-error { min-height: 16px; margin: 0; color: #8b3127; font-size: 12px; }
.report-empty { padding: 20px; color: var(--muted); font-size: 13px; }
.report-history-dialog { width: min(900px, calc(100vw - 32px)); }
.report-history-content { grid-template-rows: auto auto minmax(120px, 1fr) auto; }
.report-history-table-wrap { min-height: 140px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.report-history-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.report-history-table th, .report-history-table td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.report-history-table th { position: sticky; top: 0; background: var(--forest-soft); font-size: 10px; text-transform: uppercase; }
.report-history-table td:last-child { min-width: 240px; overflow-wrap: anywhere; }
.report-history-table tr:last-child td { border-bottom: 0; }
.report-history-pagination { align-items: center; }
.report-history-pagination span { margin: 0 auto; color: var(--muted); font-size: 12px; }
.report-history-success { color: var(--forest); font-weight: 800; }
.report-history-failure { color: #8b3127; font-weight: 800; }

.forecast-panel { min-height: 65vh; }
.forecast-panel .panel-toolbar { align-items: center; }
.forecast-country-block { margin-top: 20px; }
.forecast-country-empty { padding: 15px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 9px 9px; color: var(--muted); font-size: 12px; }
.forecast-period { padding: 9px 12px; border: 1px solid #d5c3aa; border-radius: 9px; background: var(--oak-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.forecast-table-wrap { max-height: calc(100vh - 340px); }
.forecast-table { min-width: 760px; }
.forecast-table thead th { position: sticky; top: 0; z-index: 2; }
.forecast-product { min-width: 300px; }
.forecast-product strong, .forecast-product span { display: block; }
.forecast-product strong { font-size: 13px; }
.forecast-product span { margin-top: 4px; color: #56584f; font-size: 11px; }
.forecast-coverage { display: inline-block; min-width: 70px; padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; font-weight: 800; font-variant-numeric: tabular-nums; }
.forecast-critical { border-color: #d99584; background: #f1c5b8; color: #641d12; box-shadow: 0 0 10px rgba(183, 65, 44, 0.16); }
.forecast-warning { border-color: #ddc16b; background: #f4e29d; color: #553b00; box-shadow: 0 0 9px rgba(191, 149, 30, 0.13); }
.forecast-safe { border-color: #a9c49e; background: #c9dfbf; color: #18392d; box-shadow: 0 0 9px rgba(53, 111, 61, 0.12); }
.forecast-no-sales { color: #5b5d55; font-size: 11px; font-weight: 700; }

.orders-panel { min-height: 68vh; }
.orders-toolbar { align-items: center; }
.orders-toolbar h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 600; }
.orders-toolbar .toolbar-actions { flex-wrap: wrap; }
.order-merge-actions { display: flex; align-items: center; gap: 7px; color: var(--forest-deep); font-size: 11px; font-weight: 700; }
.order-merge-actions[hidden] { display: none; }
.order-row-actions { min-width: 42px; text-align: center; }
.order-merge-checkbox { width: 17px; height: 17px; accent-color: var(--forest); cursor: pointer; vertical-align: middle; }
.order-row-actions [hidden] { display: none !important; }
.order-merge-mode .orders-table tbody tr:has([data-order-merge-select]:checked) { background: #e9efe7; }
.orders-edit-hint { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.orders-error { max-width: 300px; color: #8b3127; font-size: 11px; }
.orders-table-wrap { max-height: calc(100vh - 280px); overflow: auto; }
.orders-table { width: max(100%, 2618px); table-layout: fixed; }
.orders-table th { position: sticky; top: 0; z-index: 2; min-width: 0; padding: 11px 8px; background: #e5ebe3; line-height: 1.3; white-space: normal; }
.orders-table th:nth-child(2) { width: 155px; }
.orders-table th:nth-child(3) { width: 170px; }
.orders-table th:nth-child(4) { width: 250px; }
.orders-table th:nth-child(5) { width: 82px; }
.orders-table th:nth-child(6), .orders-table th:nth-child(7) { width: 120px; }
.orders-table th:nth-child(8) { width: 165px; white-space: nowrap; }
.orders-table th:nth-child(9) { width: 140px; }
.orders-table th:nth-child(10) { width: 150px; }
.orders-table th:nth-child(11) { width: 180px; }
.orders-table th:nth-child(12) { width: 150px; }
.orders-table th:nth-child(13) { width: 170px; }
.orders-table th:nth-child(14), .orders-table th:nth-child(15) { width: 145px; }
.orders-table th:nth-child(16) { width: 260px; }
.orders-table th:nth-child(17) { width: 42px; }
.orders-table .order-position-cell { width: 48px; position: sticky; left: 0; z-index: 1; text-align: center; border-right: 1px solid var(--line); }
.orders-table th.order-position-cell { z-index: 3; }
.order-position-button { width: 100%; min-height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--forest-soft); color: var(--forest-deep); font: inherit; font-weight: 800; cursor: pointer; }
.order-position-button:hover { border-color: var(--forest); }
.order-documents-drawer { inset: 0 auto 0 0; width: min(410px, 100vw); height: 100dvh; max-width: 100vw; max-height: none; margin: 0; padding: 0; border: 0; border-right: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 14px 0 45px #1a241c25; }
.order-documents-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.order-documents-drawer::backdrop { background: #1c261f50; }
.order-documents-header { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 22px; border-bottom: 1px solid var(--line); }
.order-documents-header h2 { margin: 0; color: var(--forest-deep); font-size: 22px; }
.order-documents-header > .button { grid-column: 1 / -1; }
.order-documents-scroll { overflow: auto; padding: 18px 22px; }
.order-documents-scroll [role="status"]:empty { display: none; }
.order-documents-scroll [role="status"] { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.order-document-card { margin: 0 0 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-alt); overflow-wrap: anywhere; }
.order-document-meta { margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.order-document-link { display: inline-block; margin-bottom: 5px; color: var(--forest-deep); font-weight: 750; }
.order-document-description { margin: 5px 0; white-space: pre-wrap; font-size: 13px; }
.order-document-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.order-document-actions .button { min-height: 32px; padding: 0 9px; font-size: 11px; }
[data-order-document-form] textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; font: inherit; resize: vertical; }
.orders-table td { padding: 6px; vertical-align: middle; white-space: normal; overflow-wrap: anywhere; }
.orders-table tbody tr[data-group-tone="base"] td,
.orders-table tbody tr[data-group-tone="base"]:hover td { background: var(--surface); }
.orders-table tbody tr[data-group-tone="alternate"] td,
.orders-table tbody tr[data-group-tone="alternate"]:hover td { background: #faf9f4; }
.order-edit-input { width: 100%; min-width: 0; min-height: 37px; padding: 7px 8px; border: 1px solid transparent; border-radius: 7px; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.order-edit-input:hover { border-color: var(--line); background: #fffefa; }
.order-edit-input:focus { border-color: var(--forest); background: #fff; box-shadow: 0 0 0 2px #244b3a20; }
.order-protected-field[readonly] { cursor: default; }
.order-number-input { text-align: right; font-variant-numeric: tabular-nums; }
.order-balance { min-width: 145px; padding-right: 12px !important; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap !important; }
.order-combo { position: relative; min-width: 0; }
.order-combo::after { position: absolute; top: 8px; right: 8px; pointer-events: none; color: var(--forest-deep); content: "⌄"; font-size: 14px; }
.order-combo-input { display: block; min-height: 47px; padding-right: 23px; resize: none; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.4; }
.order-product-editor { display: grid; gap: 4px; min-width: 0; }
.order-product-kind { width: 100%; min-height: 27px; padding: 4px 24px 4px 7px; border: 1px solid #c8d2c8; border-radius: 6px; appearance: none; background-color: #f7f5ee; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%232b4b3b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; color: var(--forest-deep); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.order-product-kind:focus { outline: 2px solid #b4c5b3; border-color: var(--forest); }
.order-product-editor [hidden] { display: none !important; }
.order-product-input, .order-custom-product-input { min-height: 45px; }
.order-ready-combo .order-combo-input { min-height: 37px; white-space: nowrap; }
.order-status-combo .order-combo-input { min-height: 47px; font-size: 11px; font-weight: 800; }
.order-state-display { border-color: transparent; }
.order-state-unpaid { border-color: #68283b !important; background: #812f49 !important; color: #fff !important; }
.order-state-deposit_paid { border-color: #aac35c !important; background: #d8ec98 !important; color: #293713 !important; }
.order-state-awaiting_readiness { border-color: #d0ae30 !important; background: #f0d667 !important; color: #453700 !important; }
.order-state-ready { border-color: #cc6a22 !important; background: #ed9850 !important; color: #4b2608 !important; }
.order-state-in_delivery { border-color: #477fa8 !important; background: #8dc0e5 !important; color: #173954 !important; }
.order-state-customs { border-color: #79548d !important; background: #bea2d0 !important; color: #382449 !important; }
.order-state-delivered { border-color: #39764b !important; background: #78b885 !important; color: #173b20 !important; }
.order-state-choice { margin-bottom: 2px; border-left: 4px solid transparent; }
.order-state-choice.order-state-unpaid { border-left-color: #68283b; }
.order-state-choice.order-state-deposit_paid { border-left-color: #aac35c; }
.order-state-choice.order-state-awaiting_readiness { border-left-color: #d0ae30; }
.order-state-choice.order-state-ready { border-left-color: #cc6a22; }
.order-state-choice.order-state-in_delivery { border-left-color: #477fa8; }
.order-state-choice.order-state-customs { border-left-color: #79548d; }
.order-state-choice.order-state-delivered { border-left-color: #39764b; }
.order-combo-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 15; width: max(100%, 230px); max-height: 250px; padding: 5px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 32px #1d30251f; }
.order-combo-menu[hidden] { display: none; }
.order-combo-option { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 12px; line-height: 1.35; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.order-combo-option[hidden] { display: none; }
.order-combo-option:hover, .order-combo-option:focus { outline: none; background: var(--forest-soft); }
.order-combo-empty { margin: 0; padding: 8px 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.order-select-wrap { position: relative; }
.order-select-wrap > span { position: absolute; top: 8px; right: 9px; pointer-events: none; color: var(--forest-deep); font-size: 15px; }
.order-select { appearance: none; padding-right: 25px; border-color: var(--line); background: #f8f7f0; cursor: pointer; }
.order-select option { background: var(--surface); color: var(--ink); }
.order-date-control { position: relative; min-width: 0; }
.order-date-entry { display: flex; min-width: 0; align-items: center; gap: 3px; }
.order-date-input { min-width: 0; padding: 6px 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.order-calendar-toggle { flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--forest-deep); cursor: pointer; font-size: 15px; }
.order-calendar-toggle:hover, .order-calendar-toggle:focus { border-color: #bdcbbb; outline: none; background: var(--forest-soft); }
.order-calendar { position: absolute; top: calc(100% + 5px); left: 0; z-index: 20; width: 262px; padding: 11px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 38px #1d302525; }
.order-calendar[hidden] { display: none; }
.order-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--forest-deep); text-transform: capitalize; }
.order-calendar-heading button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-alt); color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; }
.order-calendar-heading button:hover { border-color: var(--oak); background: var(--oak-soft); }
.order-calendar-weekdays, .order-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.order-calendar-weekdays { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; }
.order-calendar-day, .order-calendar-blank { display: grid; min-width: 0; height: 29px; place-items: center; }
.order-calendar-day { border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 11px; }
.order-calendar-day:hover { border-color: #bdcbbb; background: var(--forest-soft); }
.order-calendar-today { border-color: #c9b28f; }
.order-calendar-selected { background: var(--forest); color: white; font-weight: 800; }
.order-calendar-footer { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); }
.order-calendar-footer button { padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; color: var(--forest-deep); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.order-calendar-footer button:hover { background: var(--oak-soft); }
.order-date-error { display: block; margin-top: 3px; color: #8b3127; font-size: 10px; line-height: 1.3; }
.order-date-error[hidden] { display: none; }
.order-comment-input { display: block; min-height: 52px; resize: none; overflow: hidden; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.invoice-cell { display: grid; gap: 5px; justify-items: stretch; }
.invoice-button, .invoice-number-link { display: block; width: 100%; min-height: 34px; padding: 7px 8px; overflow-wrap: anywhere; border: 1px solid #d5c3aa; border-radius: 7px; background: #fbf8f1; color: var(--forest-deep); font: inherit; font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; }
.invoice-button { cursor: pointer; }
.invoice-button:hover, .invoice-number-link:hover { border-color: #a9723e; background: var(--oak-soft); }
.invoice-edit-button { min-height: 26px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-alt); color: var(--ink); cursor: pointer; font: inherit; font-size: 10px; }
.invoice-edit-button:hover { border-color: #a9723e; background: var(--oak-soft); }
.invoice-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; }
.order-delete-button { width: 29px; height: 29px; border: 1px solid #ddc4bd; border-radius: 50%; background: #fff5f2; color: #8b3127; cursor: pointer; font-size: 19px; line-height: 1; }
.orders-empty { padding: 48px 20px !important; color: var(--muted); text-align: center; }
.orders-directory-note { margin: 12px 3px 0; color: var(--muted); font-size: 11px; }
.directory-tabs { display: flex; gap: 8px; margin: 0 0 15px; border-bottom: 1px solid var(--line-strong); }
.directory-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px 10px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.directory-tab span { color: var(--muted); font-size: 11px; }
.directory-tab:hover { background: var(--surface-alt); color: var(--ink); }
.directory-tab-active { border-color: var(--line); border-bottom-color: var(--surface); background: var(--surface); color: var(--forest-deep); }
.partners-panel .panel-summary p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.partners-table { min-width: 1120px; table-layout: fixed; }
.settings-company-table { min-width: 820px; table-layout: fixed; }
.settings-company-table th:nth-child(1) { width: 220px; }
.settings-company-table th:nth-child(2) { width: 350px; }
.settings-company-table th:nth-child(3) { width: 250px; }
.settings-company-table th, .settings-company-table td { white-space: pre-wrap; overflow-wrap: anywhere; }
.settings-company-table td { vertical-align: top; line-height: 1.45; }
.settings-company-table .partner-name { font-weight: 800; }
.settings-company-table .partner-row-inactive { color: var(--muted); background: #f0f1eb; }
.settings-company-table .partner-row-inactive .partner-name::after { content: "Неактивна"; display: block; width: fit-content; margin-top: 5px; padding: 2px 6px; border-radius: 99px; background: #e1e3dc; color: #62695f; font-size: 10px; font-weight: 700; }
.settings-user-table { min-width: 650px; table-layout: fixed; }
.settings-user-table th:nth-child(1) { width: 38%; }
.settings-user-table th:nth-child(2) { width: 27%; }
.settings-user-table th:nth-child(3) { width: 35%; }
.user-role-badge { display: inline-flex; padding: 4px 9px; border-radius: 99px; background: var(--forest-soft); color: var(--forest-deep); font-size: 12px; font-weight: 800; }
.user-role-owner { background: var(--oak-soft); color: #73491e; }
.company-warehouse-table { width: 100%; min-width: 980px; table-layout: fixed; }
.company-warehouse-name-col { width: 21%; }
.company-warehouse-address-col { width: 23%; }
.company-warehouse-tax-col { width: 12%; }
.company-warehouse-location-col { width: 20%; }
.company-warehouse-table td { position: relative; vertical-align: top; white-space: pre-line; overflow-wrap: anywhere; }
.company-warehouse-table thead th:nth-child(-n+4) { background: #dce8dd; }
.company-warehouse-table tbody td:nth-child(-n+4):not([colspan]) { padding-right: 43px; background: #f0f5ef; }
.company-warehouse-table tbody td.company-warehouse-name { padding-right: 77px; }
.company-warehouse-table :is(th, td):nth-child(4) { border-right: 2px solid #a3b5a5; }
.company-warehouse-icon { position: absolute; top: 6px; right: 7px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--forest-deep); cursor: pointer; }
.company-warehouse-icon svg { width: 17px; height: 17px; }
.company-warehouse-icon:not(:disabled):hover, .company-warehouse-icon:focus-visible { border-color: #b2c4b3; background: var(--surface); }
.company-warehouse-icon:disabled { opacity: .38; cursor: default; }
.company-warehouse-edit { right: 39px; }
.company-warehouse-inactive { display: block; margin-top: 4px; color: var(--muted); }
.company-warehouse-copy-status { margin: 0; color: var(--forest-deep); font-size: 12px; }
.company-warehouse-copy-status:empty { display: none; }
.company-warehouse-dialog { max-width: 600px; }
.company-warehouse-actions { flex-wrap: wrap; }
.company-warehouse-actions [data-company-warehouse-clear] { margin-right: auto; }
.suppliers-table { min-width: 2310px; }
.carriers-table { min-width: 1300px; }
.partners-table th, .partners-table td { white-space: pre-wrap; overflow-wrap: anywhere; }
.partners-table th { vertical-align: bottom; }
.partners-table td { vertical-align: top; line-height: 1.45; }
.partners-table .partner-name { font-weight: 800; }
.partners-table .partner-row-inactive { color: var(--muted); background: #f0f1eb; }
.partners-table .partner-row-inactive .partner-name::after { content: "Неактивен"; display: block; width: fit-content; margin-top: 5px; padding: 2px 6px; border-radius: 99px; background: #e1e3dc; color: #62695f; font-size: 10px; font-weight: 700; }
.suppliers-table th:nth-child(1) { width: 190px; }
.suppliers-table th:nth-child(2), .suppliers-table th:nth-child(3), .suppliers-table th:nth-child(10), .suppliers-table th:nth-child(11), .suppliers-table th:nth-child(12) { width: 210px; }
.suppliers-table th:nth-child(4) { width: 125px; }
.suppliers-table th:nth-child(5) { width: 180px; }
.suppliers-table th:nth-child(6), .suppliers-table th:nth-child(7), .suppliers-table th:nth-child(8) { width: 160px; }
.suppliers-table th:nth-child(9) { width: 190px; }
.carriers-table th:nth-child(1) { width: 210px; }
.carriers-table th:nth-child(2), .carriers-table th:nth-child(3), .carriers-table th:nth-child(4) { width: 180px; }
.carriers-table th:nth-child(5), .carriers-table th:nth-child(6) { width: 290px; }
.suppliers-table th:nth-child(13) { width: 250px; }
.suppliers-table th:nth-child(14), .carriers-table th:nth-child(7) { width: 230px; }
.partner-action-stack { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.partner-action { width: 100%; min-height: 29px; padding: 5px 8px; font-size: 10px; white-space: nowrap; }
.partner-action-delete { border: 1px solid #8c3e37; background: #8c3e37; color: #fff; }
.partner-action-delete:hover { background: #702e29; }
.partner-action-stack [data-partner-action-error] { color: #8b3127; font-size: 11px; }
.partner-website { color: var(--forest-deep); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.partner-website:hover { color: var(--oak); }
.partners-empty { padding: 38px 20px !important; color: var(--muted) !important; text-align: center; }
.partner-dialog { width: min(900px, calc(100vw - 28px)); max-height: min(92vh, 940px); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #1a241c40; }
.partner-dialog::backdrop { background: #1c261f70; backdrop-filter: blur(2px); }
.partner-form { display: grid; max-height: min(92vh, 940px); grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 15px; padding: 22px; overflow: auto; }
.partner-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 13px; }
.partner-form-grid label { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--forest-deep); font-size: 11px; font-weight: 800; }
.partner-form-grid label[hidden] { display: none; }
.partner-form-grid .partner-field-wide { grid-column: 1 / -1; }
.partner-form-grid input, .partner-form-grid textarea, .partner-form-grid select { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background-color: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; }
.partner-form-grid select { appearance: none; padding-right: 36px; border-color: #9eaf9f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%232b4b3b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.partner-form-grid textarea { min-height: 72px; resize: vertical; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.partner-form-grid input:focus, .partner-form-grid textarea:focus, .partner-form-grid select:focus { outline: 2px solid #b4c5b3; border-color: var(--forest); }
.partner-form-error { min-height: 16px; margin: 0; color: #8b3127; font-size: 12px; }
.partner-form .cost-dialog-actions button:disabled { opacity: .6; cursor: wait; }
.partner-confirm-dialog { width: min(440px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #1a241c40; }
.partner-confirm-dialog::backdrop { background: #1c261f70; backdrop-filter: blur(2px); }
.partner-confirm-content { display: grid; gap: 12px; padding: 22px; }
.partner-confirm-content h2, .partner-confirm-content p { margin: 0; }
.partner-confirm-content > p:not(.panel-label):not(.partner-form-error) { color: var(--muted); font-size: 13px; }
.partner-confirm-content .cost-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.partner-confirm-dialog button:disabled { opacity: .6; cursor: wait; }
.invoice-dialog { width: min(530px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #1a241c40; }
.invoice-dialog::backdrop { background: #1c261f70; backdrop-filter: blur(2px); }
.distribution-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.distribution-trip { min-width: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.distribution-trip-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 46px; padding: 9px 12px; border-radius: 9px; background: var(--surface-alt); color: var(--forest-deep); cursor: pointer; list-style: none; }
.distribution-trip-summary::-webkit-details-marker { display: none; }
.distribution-trip-summary::after { content: ""; width: 8px; height: 8px; margin: 0 2px 4px 4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.distribution-trip[open] > .distribution-trip-summary { border-radius: 9px 9px 0 0; border-bottom: 1px solid var(--line); }
.distribution-trip[open] > .distribution-trip-summary::after { margin-bottom: -3px; transform: rotate(225deg); }
.distribution-trip-dates { font-variant-numeric: tabular-nums; }
.distribution-trip-count { margin-left: auto; color: var(--muted); font-size: 11px; }
.distribution-trip-badge { padding: 3px 7px; border-radius: 6px; background: var(--forest-soft); font-size: 11px; }
.distribution-trip-badge.distribution-trip-archived { background: var(--oak-soft); color: var(--muted); }
.distribution-trip-body { min-width: 0; padding: 10px; }
.distribution-trip-body > .toolbar-actions, .distribution-trip-body > .distribution-note { margin: 0 0 10px; }
.distribution-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-size: 12px; }
.distribution-dialog select, .distribution-dialog textarea, .distribution-dialog input[type="search"] { min-height: 40px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.distribution-dialog :is(select, textarea, input[type="search"]) { width: 100%; }
.distribution-dialog textarea { resize: vertical; }
.distribution-table { width: 100%; min-width: 1440px; table-layout: fixed; }
.distribution-table th { position: static; white-space: normal; min-width: 0; }
.distribution-table td { vertical-align: top; overflow-wrap: anywhere; }
.distribution-table th:nth-child(1) { width: 190px; }
.distribution-table th:nth-child(2) { width: 260px; }
.distribution-table th:nth-child(3), .distribution-table th:nth-child(4) { width: 137px; }
.distribution-table th:nth-child(5) { width: 190px; }
.distribution-table th:nth-child(6) { width: 111px; }
.distribution-table th:nth-child(7), .distribution-table th:nth-child(8) { width: 94px; }
.distribution-table th:nth-child(9) { width: 118px; }
.distribution-table th:nth-child(10) { width: 144px; }
.distribution-table td:nth-child(8), .distribution-table td:nth-child(9) { text-align: center; }
.distribution-choice { display: grid; gap: 3px; width: 100%; padding: 7px 9px; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--forest-deep); cursor: pointer; font: inherit; }
.distribution-choice + .distribution-choice { margin-top: 7px; }
.distribution-choice small { color: var(--muted); }
.distribution-choice:hover { border-color: var(--forest); background: var(--forest-soft); }
.distribution-products { display: grid; gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; }
.distribution-products li { display: grid; gap: 2px; padding: 5px 7px; border-left: 2px solid #92a789; background: #edf2eb; }
.distribution-products li.distribution-short { border-color: var(--oak); background: var(--oak-soft); }
.distribution-products li span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.distribution-products li small, .distribution-muted, .distribution-note { color: var(--muted); font-size: 11px; }
.distribution-line-button { display: grid; gap: 2px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.distribution-line-button:hover strong { text-decoration: underline; }
.distribution-table [data-distribution-open="delete"] { display: block; margin: 6px auto 0; }
.distribution-danger { color: #8b412e; }
.distribution-issue-trigger { display: block; margin: 6px auto 0; }
.distribution-dialog.distribution-issue-dialog { width: min(1320px, calc(100% - 24px)); max-width: none; }
.distribution-issue-dialog [data-issue-error]:empty, .distribution-issue-dialog [data-issue-catalog-status]:empty { display: none; }
.distribution-issue-dialog [data-issue-catalog-status] { margin: 0; }
.issue-table-wrap { min-width: 0; max-height: 65vh; }
.issue-table { width: 100%; min-width: 1120px; table-layout: fixed; }
.issue-table th { position: static; min-width: 0; white-space: normal; }
.issue-table th.issue-period { text-align: center; background: var(--forest-deep); color: white; font-size: 13px; }
.issue-table td { vertical-align: top; overflow-wrap: anywhere; }
.issue-table :is(.issue-warehouse, .issue-crew) { background: var(--surface-alt); }
.issue-table .issue-purpose { background: var(--oak-soft); color: var(--forest-deep); vertical-align: top; text-align: left; }
.issue-table .issue-count { text-align: center; font-variant-numeric: tabular-nums; }
.issue-warehouse-col { width: 12%; }
.issue-crew-col { width: 18%; }
.issue-purpose-col { width: 16%; }
.issue-count-col { width: 10%; }
.issue-table td.issue-actual { background: #e2f0fa; }
.issue-table th.issue-actual { background: #bddbf2; color: #194469; }
.issue-table :is(.issue-crew, .issue-purpose, .issue-product) button { margin-top: 6px; }
.issue-table .issue-crew label + label { margin-top: 9px; }
.issue-count input { width: 100%; min-height: 40px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.issue-table .issue-group-start > :is(td, th) { border-top: 2px solid #87998e; }
.issue-table .issue-plan-enough, .issue-table .issue-plan-enough input { color: #286444; font-weight: 700; }
.issue-table .issue-plan-short, .issue-table .issue-plan-short input { color: #a12a32; font-weight: 700; }
.issue-reservation-note { margin: 0; }
.issue-row-reserve { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.issue-row-reserve.distribution-short { color: #8b412e; }
.issue-row-reserve:empty { display: none; }
.issue-saved-status { flex: 1; min-width: 120px; color: var(--muted); font-size: 12px; }
.distribution-dialog.distribution-plan-dialog { width: min(780px, calc(100% - 28px)); max-width: none; }
.distribution-editor-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.distribution-editor-heading + .distribution-note { margin: 0; }
.distribution-editor-lines { display: grid; gap: 6px; }
.distribution-arrival-editor { display: grid; gap: 8px; }
.distribution-arrival-editor > .distribution-note { margin: 0; }
.distribution-arrival-group { min-width: 0; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.distribution-arrival-group legend { padding: 0 5px; color: var(--forest-deep); font-size: 12px; font-weight: 700; }
.distribution-arrival-group > button { margin-top: 6px; }
.distribution-editor-line { display: grid; grid-template-columns: minmax(0, 1fr) 83px auto; align-items: end; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.distribution-editor-line input { width: 100%; min-height: 40px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.distribution-editor-line button { min-width: 40px; min-height: 40px; }
.distribution-add-line { display: flex; flex-wrap: wrap; gap: 8px; }
.distribution-muted, .distribution-dates small, .distribution-table td > small { display: block; margin-top: 4px; }
.distribution-short { color: #8b412e; }
.distribution-dates { font-variant-numeric: tabular-nums; }
.distribution-team-number, .distribution-ready { display: inline-grid; min-width: 28px; min-height: 28px; place-items: center; border-radius: 7px; background: var(--forest-soft); color: var(--forest-deep); font-weight: 800; }
.distribution-ready { background: #d5e7ce; font-size: 16px; }
.distribution-comment { margin: 0 0 4px; white-space: pre-wrap; }
.distribution-text-button { padding: 2px 0; border: 0; background: transparent; color: var(--forest-deep); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.distribution-note { margin: 10px 0 0; line-height: 1.45; }
.distribution-empty { padding: 28px 22px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-alt); }
.distribution-empty h3 { margin: 0 0 8px; color: var(--forest-deep); }
.distribution-empty p { margin: 0; font-size: 13px; color: var(--muted); }
.distribution-date-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-alt); text-align: left; font-size: 13px; cursor: pointer; }
.distribution-date-row[aria-expanded="true"], .distribution-date-row:hover { border-color: var(--forest); background: var(--forest-soft); }
.distribution-calendar { margin-top: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.distribution-calendar button:disabled { opacity: .4; cursor: default; }
.distribution-dialog [data-distribution-error]:empty { display: none; }
@media (max-width: 520px) { .distribution-date-row { grid-template-columns: 1fr auto; } .distribution-date-row span:last-child { display: none; } }
.invoice-editor { display: grid; gap: 14px; padding: 22px; }
.invoice-editor label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.invoice-editor input[type="text"], .invoice-editor input[type="file"] { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.invoice-current-file { padding: 9px 11px; border-radius: 7px; background: var(--forest-soft); color: var(--forest-deep); font-size: 12px; font-weight: 700; }
.invoice-error { min-height: 16px; margin: 0; color: #8b3127; font-size: 12px; }
.invoice-editor .cost-dialog-heading p:last-child { max-width: 390px; }
.order-confirm-dialog { width: min(430px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #1a241c40; }
.order-confirm-dialog::backdrop { background: #1c261f70; backdrop-filter: blur(2px); }
.order-confirm-content { display: grid; justify-items: start; gap: 10px; padding: 25px; }
.order-confirm-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d7b5a7; border-radius: 12px; background: #f5e5dc; color: #7b3828; font-family: Georgia, serif; font-size: 21px; font-weight: 700; }
.order-confirm-content .panel-label { margin: 2px 0 0; }
.order-confirm-content h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 600; }
.order-confirm-content > p:not(.panel-label) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.order-confirm-message:empty { display: none; }
.order-confirm-content .cost-dialog-actions { width: 100%; margin-top: 7px; }
.order-confirm-delete { border: 1px solid #a34a3c; background: #f1d8d0; color: #5b2017; cursor: pointer; }
.order-confirm-delete:hover { background: #e9c4b8; }
.planning-settings { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; padding: 15px; border: 1px solid #d5c3aa; border-radius: 10px; background: #fbf8f1; }
.planning-settings label { display: grid; gap: 6px; min-width: 190px; color: var(--forest-deep); font-size: 11px; font-weight: 800; }
.planning-settings input { width: 190px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.planning-save-status { flex: 1 1 240px; padding-bottom: 10px; color: var(--muted); font-size: 11px; }
.planning-table-wrap { max-height: calc(100vh - 430px); }
.planning-table { min-width: 1160px; }
.planning-table th { white-space: normal; }

.page-shell:has(.calendar-page) { display: flex; min-height: 100vh; flex-direction: column; padding-top: 13px; padding-bottom: 14px; }
.page-shell:has(.calendar-page) .topbar { flex: 0 0 auto; min-height: 56px; margin-bottom: 12px; }
.page-shell:has(.calendar-page) .page-heading .eyebrow { margin-bottom: 2px; }
.page-shell:has(.calendar-page) .page-heading h1 { font-size: 23px; }
.calendar-page { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 9px; }
.calendar-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.calendar-month-title .panel-label { margin-bottom: 2px; color: var(--oak); }
.calendar-month-title h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3vw, 35px); font-weight: 600; text-transform: capitalize; }
.calendar-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.calendar-nav-button, .calendar-today-button { display: grid; min-width: 42px; height: 42px; place-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--forest-deep); font-size: 17px; font-weight: 700; text-decoration: none; }
.calendar-today-button { min-width: 95px; font-size: 13px; }
.calendar-nav-button:hover, .calendar-today-button:hover { border-color: var(--forest); background: var(--forest-soft); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar-weekdays { flex: 0 0 20px; align-items: center; color: var(--forest-deep); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-align: center; }
.calendar-grid { min-height: 520px; flex: 1; grid-template-rows: repeat(6, minmax(0, 1fr)); }
.calendar-day { display: flex; min-width: 0; min-height: 72px; flex-direction: column; gap: 7px; padding: 9px 9px 7px; overflow: hidden; border: 1px solid #d8d9cf; border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease; }
.calendar-day:hover { border-color: #a6b7a8; background: #fbfcf8; }
.calendar-day-outside { background: #eeece5; color: #73736e; }
.calendar-day-today { border-color: var(--oak); box-shadow: inset 0 0 0 1px #bd936b; }
.calendar-day-heading { display: flex; min-height: 20px; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; }
.calendar-day-count { display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border-radius: 12px; background: #e9e9e2; color: var(--ink); font-size: 10px; }
.calendar-day-items { display: grid; align-content: start; gap: 4px; min-height: 0; overflow: auto; scrollbar-width: thin; }
.calendar-item { display: flex; min-width: 0; min-height: 23px; align-items: center; gap: 6px; padding: 3px 6px; overflow: hidden; border: 1px solid transparent; border-radius: 6px; color: var(--ink); cursor: pointer; text-align: left; font-size: 10px; font-weight: 800; line-height: 1.25; }
.calendar-item > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-item:hover { filter: saturate(1.25); border-color: currentColor; }
.calendar-item-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.calendar-country-kz { border-color: #a9cbd7; background: #d8edf4; color: #174b5d; }
.calendar-country-uz { border-color: #c8b2da; background: #eadff3; color: #55346d; }
.calendar-country-ro { border-color: #b9d2ae; background: #e1eedb; color: #35552c; }
.calendar-country-bg { border-color: #dfbd93; background: #f5e4cf; color: #71451d; }
.calendar-task-entry { display: flex; min-width: 0; align-items: center; gap: 2px; padding: 1px 3px 1px 1px; overflow: hidden; border: 1px solid; border-radius: 6px; }
.calendar-task-entry .calendar-item { flex: 1; min-width: 0; padding: 2px 4px; border: 0; background: transparent; color: inherit; }
.calendar-task-check { display: grid; flex: 0 0 15px; width: 15px; height: 17px; place-items: center; cursor: pointer; }
.calendar-task-check input { width: 13px; height: 13px; margin: 0; accent-color: var(--forest); cursor: pointer; }
.calendar-task-check input:disabled { cursor: wait; }
.calendar-task-delete { display: grid; flex: 0 0 16px; width: 16px; height: 18px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; opacity: .58; }
.calendar-task-delete:hover { background: #ffffffa0; opacity: 1; }
.calendar-task-done { filter: brightness(.9); }
.calendar-task-done .calendar-task-button > span:last-child { text-decoration-line: line-through; text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.calendar-task-entry:has(.calendar-task-delete:hover) { border-color: currentColor; }
.calendar-add-task { justify-self: start; padding: 1px 4px; border: 0; border-radius: 4px; background: transparent; color: #566457; cursor: pointer; font-size: 10px; opacity: 0; }
.calendar-day:hover .calendar-add-task, .calendar-add-task:focus-visible { opacity: 1; }
.calendar-legend { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); font-size: 10px; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend-swatch { width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 3px; }
.calendar-dialog { width: min(560px, calc(100vw - 28px)); max-height: min(86vh, 780px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #1a241c40; }
.calendar-dialog::backdrop { background: #1c261f70; backdrop-filter: blur(2px); }
.calendar-dialog-form { display: grid; gap: 14px; padding: 23px; }
.calendar-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.calendar-dialog-heading .panel-label { margin-bottom: 5px; color: var(--oak); }
.calendar-dialog-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 600; }
.calendar-dialog-form > label { display: grid; gap: 6px; color: var(--forest-deep); font-size: 11px; font-weight: 800; }
.calendar-dialog-form input, .calendar-dialog-form select, .calendar-dialog-form textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; }
.calendar-dialog-form textarea { min-height: 100px; resize: vertical; line-height: 1.45; }
.calendar-dialog-form input:focus, .calendar-dialog-form select:focus, .calendar-dialog-form textarea:focus { outline: 2px solid #b4c5b3; border-color: var(--forest); }
.calendar-dialog-form .cost-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.calendar-form-error { min-height: 16px; margin: 0; color: #8b3127; font-size: 12px; }
.calendar-form-error:empty { display: none; }
.calendar-info-date { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.calendar-info-content { display: grid; gap: 8px; }
.calendar-info-row { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #e9e8e0; font-size: 12px; line-height: 1.45; }
.calendar-info-row strong, .calendar-info-products > strong { color: var(--forest-deep); }
.calendar-info-row span { overflow-wrap: anywhere; white-space: pre-wrap; }
.calendar-info-products { padding: 8px 0 3px; font-size: 12px; }
.calendar-info-products ul { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 19px; line-height: 1.45; }
.calendar-delete-dialog { width: min(430px, calc(100vw - 28px)); }
.calendar-delete-dialog .calendar-dialog-form > p:not(.calendar-form-error) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.volume-toolbar { align-items: center; }
.volume-toolbar .button { flex: 0 0 auto; }
.volume-table-scroll { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.volume-table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.volume-table th, .volume-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.volume-table th { background: var(--forest-soft); color: var(--forest-deep); font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.volume-table .volume-select-cell { width: 38px; min-width: 38px; max-width: 38px; padding: 8px; text-align: center; }
.volume-select-cell input { width: 16px; height: 16px; margin: 0; accent-color: var(--forest); cursor: pointer; vertical-align: middle; }
.volume-select-cell input:disabled { cursor: wait; opacity: .6; }
.volume-selection-error { display: block; margin-top: 6px; color: #8b3127; font-size: 10px; }
.volume-selection-error[hidden] { display: none; }
.volume-table tbody tr:nth-child(even) { background: #f7f7f1; }
.volume-table .volume-total { background: #f4dfc5; color: #603d20; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.volume-table th.volume-total { background: #e8bd90; color: #422a16; }
.volume-table td.volume-total { border-bottom-color: #e6c9a9; }
.volume-table tfoot td { border-top: 2px solid #d5b28c; border-bottom: 0; }
.volume-table tfoot .volume-summary-label { background: #eee8dc; color: var(--forest-deep); font-weight: 800; text-transform: uppercase; }
.volume-table tfoot td.volume-total { background: #e8bd90; color: #422a16; font-size: 13px; font-weight: 850; }
.volume-quantity-input { width: min(88px, 100%); min-height: 25px; padding: 3px 5px; border: 1px solid transparent; border-radius: 5px; outline: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; }
.volume-quantity-input[readonly] { cursor: default; }
.volume-quantity-input[readonly]:hover { border-color: #d2a879; background: #fff8ef; }
.volume-quantity-input:not([readonly]) { border-color: var(--forest); background: #fff; box-shadow: 0 0 0 2px #244b3a20; }
.volume-quantity-input:disabled { opacity: .65; cursor: wait; }
.volume-edit-error { display: block; margin: 2px 3px 0; color: #8b3127; font-size: 9px; font-weight: 600; white-space: normal; }
.volume-product-cell { min-width: 180px; }
.volume-product-cell strong { font-weight: 750; }
.volume-row-delete { float: right; width: 23px; height: 23px; margin: -3px 0 -3px 8px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: #8b3127; cursor: pointer; font-size: 16px; line-height: 1; }
.volume-row-delete:hover { border-color: #a8493f; background: #f6e3df; }
.volume-empty { padding: 30px !important; color: var(--muted); text-align: center !important; }
.volume-error { padding: 10px 12px; border: 1px solid #e3c2b6; border-radius: 8px; background: #fff4ef; color: #873f32; font-size: 12px; }
.volume-dialog { width: min(590px, calc(100vw - 28px)); }
.volume-dialog .calendar-dialog-form { gap: 12px; }
.volume-field { position: relative; display: grid; gap: 6px; color: var(--forest-deep); font-size: 11px; font-weight: 800; }
.volume-dialog input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; }
.volume-dialog input:focus { outline: 2px solid #b4c5b3; border-color: var(--forest); }
.volume-product-menu { position: absolute; z-index: 2; top: calc(100% + 3px); right: 0; left: 0; max-height: 240px; overflow: auto; padding: 5px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); box-shadow: 0 12px 30px #1a241c26; }
.volume-product-choice { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; overflow-wrap: anywhere; font: inherit; font-size: 12px; cursor: pointer; }
.volume-product-choice:hover, .volume-product-choice:focus-visible { outline: 0; background: var(--forest-soft); }
.volume-product-choice[hidden] { display: none; }
.volume-product-empty { margin: 0; padding: 9px; color: var(--muted); font-size: 12px; }
.volume-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.volume-dimensions legend { padding: 0 5px; color: var(--forest-deep); font-size: 11px; font-weight: 800; }
.volume-dimensions label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.volume-dimensions input { min-width: 0; }
.volume-input-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.volume-form-error { min-height: 16px; margin: 0; color: #8b3127; font-size: 12px; }
.volume-form-error:empty { display: none; }
.volume-delete-dialog { width: min(430px, calc(100vw - 28px)); }
.volume-delete-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 1220px) {
  .panel-toolbar { flex-direction: column; }
  .toolbar-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .app-shell { --sidebar-width: 64px; }
  .sidebar { padding: 14px 8px; }
  .sidebar-brand { justify-content: center; padding: 0; }
  .sidebar-brand-copy, .sidebar-toggle-label, .nav-caption, .nav-label, .nav-current, .sidebar-footer-label { display: none; }
  .sidebar-toggle { justify-content: center; margin: 22px 0 16px; padding: 0; }
  .nav-link { justify-content: center; padding: 0; }
  .nav-subnav, .nav-group-chevron { display: none; }
  .sidebar-footer { justify-content: center; padding: 0; }
  .sidebar-toggle .toggle-glyph { transform: rotate(180deg); }
  .page-shell { padding: 18px 12px 26px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 17px; }
  .topbar-tools { width: 100%; justify-content: flex-end; }
  .country-tabs { display: flex; overflow-x: auto; padding: 1px 1px 5px; }
  .country-tab { flex: 0 0 175px; }
  .table-panel { padding: 13px; }
  .search-form { width: 100%; }
  .search-form input[type="text"], .state-filter, .group-filter { min-width: 0; width: 100%; }
  .cost-search { width: 100%; min-width: 0; }
  .cost-search input[type="search"] { width: 100%; }
  .forecast-panel .panel-toolbar { align-items: flex-start; }
  .forecast-period { white-space: normal; }
  .toolbar-actions { width: 100%; }
  .button { flex: 1; }
  .partner-form { padding: 16px; }
  .partner-form-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-form-grid .partner-field-wide { grid-column: auto; }
  .page-shell:has(.calendar-page) { min-width: 0; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-toolbar-actions { align-self: stretch; justify-content: flex-end; }
  .calendar-weekdays, .calendar-grid { min-width: 850px; }
  .calendar-page { overflow-x: auto; }
  .calendar-grid { min-height: 650px; }
  .calendar-day { border-radius: 10px; }
  .volume-dialog .calendar-dialog-form { padding: 17px; }
  .volume-table { min-width: 920px; }
}

.payment-priority-table { min-width: 1050px; }
.payment-priority-table th:first-child,
.payment-priority-table td:first-child { min-width: 135px; }
.payment-priority-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.payment-priority-table td:nth-child(1),
.payment-priority-table td:nth-child(4) { background: #f5e1ca; }

.neurot-panel { min-width: 0; }
.neurot-description { margin: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.neurot-legend { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.neurot-legend span { padding: 6px 10px; border-radius: 6px; color: #282e25; font-size: 11px; font-weight: 700; }
.neurot-table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.neurot-table { --neurot-product-width: 310px; --neurot-issue-width: 112px; width: 100%; min-width: 1882px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.neurot-table th, .neurot-table td { padding: 11px 7px; border-right: 1px solid #ffffff80; border-bottom: 1px solid var(--line); text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.neurot-table th { background: var(--forest-soft); color: var(--forest-deep); font-size: 11px; }
.neurot-table th span { display: block; margin-top: 3px; color: var(--muted); }
.neurot-table th:first-child, .neurot-table td:first-child { width: var(--neurot-product-width); position: sticky; left: 0; z-index: 1; text-align: left; overflow-wrap: anywhere; background: var(--surface); }
.neurot-table :is(th, td):nth-child(2) { width: var(--neurot-issue-width); position: sticky; left: var(--neurot-product-width); z-index: 1; }
.neurot-table :is(th, td):nth-child(3) { width: 90px; position: sticky; left: calc(var(--neurot-product-width) + var(--neurot-issue-width)); z-index: 1; background: #f2eee3; box-shadow: 3px 0 5px #25281c10; }
.neurot-table th:nth-child(-n+3) { background: var(--forest-soft); }
.neurot-eligible { display: block; width: fit-content; margin-top: 6px; padding: 3px 6px; border-radius: 4px; background: #f2e1ce; color: #704723; font-size: 10px; }
.neurot-fresh { display: block; width: fit-content; margin-top: 6px; padding: 3px 6px; border-radius: 4px; background: #dce9ef; color: #30566b; font-size: 10px; }
.neurot-delivery-info { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.logistics-panel { min-width: 0; }
.logistics-filters { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)) repeat(4, minmax(165px, 1fr)); gap: 12px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-alt); align-items: end; }
.logistics-filter-field { display: grid; gap: 7px; min-width: 0; }
.logistics-filter-field > span, .logistics-filter-range legend { color: var(--forest-deep); font-size: 11px; font-weight: 750; }
.logistics-filter-combo { position: relative; min-width: 0; }
.logistics-filter-combo summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); font-size: 12px; cursor: pointer; list-style: none; }
.logistics-filter-combo summary::-webkit-details-marker { display: none; }
.logistics-filter-combo summary span:first-child { overflow-wrap: anywhere; min-width: 0; }
.logistics-filter-options { position: absolute; z-index: 50; top: calc(100% + 5px); left: 0; width: max(100%, 250px); max-width: calc(100vw - 100px); max-height: 280px; overflow: auto; padding: 7px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.logistics-filter-options input { position: sticky; top: 0; width: 100%; min-width: 0; min-height: 34px; margin-bottom: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; }
.logistics-filter-options button { display: block; width: 100%; padding: 9px; border: 0; border-radius: 5px; background: transparent; color: var(--forest-deep); font: inherit; font-size: 12px; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.logistics-filter-options button:hover { background: var(--forest-soft); }
.logistics-filter-options [hidden] { display: none; }
.logistics-filter-options p { font-size: 12px; color: var(--muted); }
.logistics-filter-range { min-width: 0; padding: 0; margin: 0; border: 0; }
.logistics-filter-range legend { padding: 0; margin-bottom: 7px; }
.logistics-filter-range > div { display: flex; align-items: center; gap: 5px; }
.logistics-filter-range input { min-width: 0; width: 100%; min-height: 38px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); font: inherit; font-size: 12px; }
.logistics-filter-range > div > span { color: var(--muted); font-size: 11px; }
.logistics-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.logistics-filter-error { color: #963b2f; font-size: 13px; }
.logistics-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.logistics-pagination > div { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.logistics-page-number, .logistics-current-page { display: grid; min-width: 34px; height: 34px; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.logistics-current-page { background: var(--forest); color: white; border-color: var(--forest); font-weight: 750; }
.logistics-page-number:hover { background: var(--forest-soft); }
.logistics-statistics-dialog { width: min(850px, calc(100vw - 28px)); }
.logistics-statistics-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.logistics-statistics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.logistics-statistics-grid h3 { color: var(--forest-deep); margin: 0 0 12px; font-size: 16px; }
.logistics-statistics-grid ol { display: grid; gap: 9px; list-style: none; padding: 0; margin: 0; }
.logistics-statistics-grid li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--forest-soft); }
.logistics-statistics-grid li > b { display: grid; place-items: center; align-self: start; width: 25px; height: 25px; background: var(--surface); border-radius: 50%; color: var(--forest-deep); font-size: 12px; }
.logistics-statistics-grid li strong, .logistics-statistics-grid li span, .logistics-statistics-grid li small { display: block; overflow-wrap: anywhere; }
.logistics-statistics-grid li strong { font-size: 13px; }
.logistics-statistics-grid li span { margin-top: 8px; color: var(--forest-deep); font-size: 20px; font-weight: 750; }
.logistics-statistics-grid li small { margin-top: 4px; font-size: 11px; color: var(--muted); }
.logistics-statistics-grid li.logistics-statistics-empty { display: block; background: var(--surface-alt); font-size: 12px; color: var(--muted); }
@media (max-width: 1550px) { .logistics-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .logistics-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logistics-filters, .logistics-statistics-grid { grid-template-columns: minmax(0, 1fr); } .logistics-filter-actions { flex-wrap: wrap; } }
.logistics-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.logistics-table { width: 100%; min-width: 1975px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.logistics-table th, .logistics-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.logistics-table th { background: var(--forest-soft); color: var(--forest-deep); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .025em; }
.logistics-table tbody:nth-of-type(even) td { background: #f8f7f2; }
.logistics-table tbody:hover td { background: #edf2eb; }
.logistics-table th.logistics-orange { background: #e8bd90; }
.logistics-table tbody td.logistics-orange { background: #f4dfc5; }
.logistics-table th.logistics-green { background: #c8dfc4; }
.logistics-table tbody td.logistics-green { background: #e1efdd; }
.logistics-table th.logistics-blue { background: #c6dce7; }
.logistics-table tbody td.logistics-blue { background: #e3eff6; font-weight: 750; font-variant-numeric: tabular-nums; }
.logistics-table :is(.logistics-group-summary, [data-logistics-group-member]) { --logistics-group-edge: #728d7e; }
.logistics-table .logistics-group-summary td { background: var(--forest-soft); font-weight: 750; border-top: 2px solid var(--logistics-group-edge); border-bottom: 0; }
.logistics-group-summary small { display: block; margin-top: 3px; font-weight: 500; }
.logistics-group-summary .button { min-height: 26px; margin-top: 5px; font-size: 11px; }
.logistics-group-summary[data-logistics-group-stale] strong::after { content: " · обновите страницу для пересчёта"; }
.logistics-table [data-logistics-group-member] td { font-size: 11px; border-block: 0; }
.logistics-table [data-logistics-group-member] td:not(.logistics-orange, .logistics-green, .logistics-blue) { background: #eef3ed; }
.logistics-table :is(.logistics-group-summary, [data-logistics-group-member]) tr:first-child td:first-child { border-left: 2px solid var(--logistics-group-edge); }
.logistics-table :is(.logistics-group-summary, [data-logistics-group-member]) tr:first-child td:last-child { border-right: 2px solid var(--logistics-group-edge); }
.logistics-table .logistics-group-end tr:last-child td,
.logistics-table .logistics-group-end tr:first-child td[rowspan] { border-bottom: 2px solid var(--logistics-group-edge); }
.logistics-table [data-logistics-group-member] .logistics-input { min-height: 28px; padding: 4px; }
.logistics-merge-choice { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.logistics-merge-choice[hidden], .logistics-panel .button[hidden] { display: none; }
.logistics-merge-choice input { width: 15px; height: 15px; margin: 0; accent-color: var(--forest); }
.logistics-table tbody:not(.logistics-group-end) + tbody:not(.logistics-group-summary, [data-logistics-group-member]) tr:first-child td { border-top: 1px solid #cecdbf; }
.logistics-product strong { display: block; font-weight: 750; }
.logistics-product small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.logistics-company { white-space: pre-wrap; }
.logistics-input { display: block; width: 100%; min-height: 34px; padding: 6px; border: 1px solid #b7b7a9; border-radius: 6px; background: #fffdf8d9; color: inherit; font: inherit; text-align: center; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 2px #20302008; }
.logistics-input::placeholder { color: #74776d; opacity: 1; }
.logistics-input[readonly] { cursor: default; }
.logistics-input[readonly]:hover { border-color: #b3b8a7; }
.logistics-input:not([readonly]) { border-color: var(--forest); background: white; outline: none; box-shadow: 0 0 0 2px #244b3a20; }
.logistics-input:disabled { opacity: .6; }
.logistics-comment { min-height: 48px; resize: vertical; overflow: hidden; white-space: pre-wrap; }
.logistics-error { display: block; color: #963b2f; font-size: 10px; white-space: normal; }
.logistics-error:empty { display: none; }
.neurot-zero, .neurot-table td.neurot-zero { background: #efa5a0; color: #64221e; font-weight: 800; }
.neurot-low, .neurot-table td.neurot-low { background: #f9ded7; color: #753e32; font-weight: 700; }
.neurot-medium, .neurot-table td.neurot-medium { background: #f6e49f; color: #614b16; font-weight: 700; }
.neurot-high, .neurot-table td.neurot-high { background: #cee4c4; color: #25462e; font-weight: 700; }

@media (max-width: 680px) {
  .neurot-table { --neurot-product-width: 150px; }
  .neurot-table :is(th, td):nth-child(2), .neurot-table :is(th, td):nth-child(3) { position: static; }
}
