:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  --ink: #17212b;
  --muted: #687382;
  --line: #d9e0e7;
  --panel: #ffffff;
  --back: #f4f7f8;
  --accent: #106b55;
  --accent-2: #0f766e;
  --red: #c73535;
  --amber: #b7791f;
  --green: #14844d;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--back); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  min-height: 42px;
  padding: 0 16px;
}
button:hover { background: var(--accent-2); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 92px; margin: 14px 0; }
h1, h2, h3 { margin-top: 0; }
.hidden { display: none !important; }
.muted, .eyebrow, .hint { color: var(--muted); font-size: 14px; }
.hint { margin-top: 8px; line-height: 1.35; }
.form-field {
  display: grid;
  gap: 8px;
}
.form-field > span {
  color: var(--ink);
}
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.checkbox-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.checkbox-line input {
  width: auto;
}
.new-client-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  background: #f6fbf8;
}
.new-client-panel.hidden {
  display: none;
}
.new-client-rules {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  color: #315064;
  background: white;
  border: 1px solid #d8e7df;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.25;
}
.new-client-card {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  padding: 10px 12px;
  color: #24384a;
  background: #f6fbf8;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.28;
}
.new-client-warning {
  color: var(--amber);
  font-weight: 700;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eef6f2 0%, #f7f5ee 48%, #e9f0f4 100%);
}
.login-panel {
  width: min(460px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(23, 33, 43, 0.12);
}
.brand { font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.login-panel p { color: var(--muted); line-height: 1.45; }
.login-form { display: grid; gap: 14px; margin-top: 24px; }
label { display: grid; gap: 7px; color: #354252; font-size: 14px; }
.error { color: var(--red); min-height: 20px; }
.success { color: var(--green); min-height: 22px; margin-top: 12px; }

.app {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 40px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 12px 0 18px;
}
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.ops-switcher {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #eef7f3;
  border: 1px solid #c9e5da;
  border-radius: 8px;
}
.ops-switcher span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.ops-switcher strong {
  display: block;
  margin-top: 2px;
}
.ops-switcher-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.ops-switcher-buttons button {
  padding: 10px 13px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ops-switcher-buttons button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.summary-grid article, .work-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.summary-grid span { display: block; color: var(--muted); font-size: 13px; }
.summary-grid strong { display: block; font-size: 22px; margin-top: 8px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { background: transparent; color: var(--muted); border-radius: 8px 8px 0 0; }
.tab.active { color: white; background: var(--accent); }
.request-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: -4px 0 16px;
  padding: 12px 14px;
  border: 1px solid #f2b8b5;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: #fff2f0;
  color: #82211f;
}
.request-alert b,
.request-alert span {
  display: block;
}
.request-alert span {
  margin-top: 3px;
  font-size: 14px;
  color: #6f3d3a;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 250px 220px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.toolbar input,
.toolbar select {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}
.toolbar.single { grid-template-columns: minmax(260px, 520px); }
.toolbar.invoice-toolbar { grid-template-columns: minmax(260px, 520px) 240px; }
.catalog, .cards-list { display: grid; gap: 5px; }
.segment-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.segment-tab {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.segment-tab:hover {
  background: #eef6f2;
  color: var(--ink);
}
.segment-tab.active {
  background: var(--accent);
  color: #ffffff;
}
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.leadership-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.leadership-grid span,
.leadership-grid em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.leadership-grid strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 22px;
}
.sku-status-breakdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  margin-top: 8px;
}
.sku-status-breakdown div {
  display: contents;
}
.sku-status-breakdown span {
  font-size: 11px;
}
.sku-status-breakdown b {
  font-size: 12px;
  text-align: right;
}
.leadership-section {
  margin-bottom: 14px;
}
.leadership-subtabs {
  display: flex;
  gap: 6px;
  margin: 2px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.leadership-subtabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.leadership-subtabs button:hover {
  background: #eef6f2;
  color: var(--ink);
}
.leadership-subtabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.risk-row td {
  background: #fff1f1;
}
.order-row td {
  background: #f0fbf5;
}
.forecast-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
.status-order {
  color: #0f6b3d;
  background: #dff5e8;
}
.status-risk {
  color: var(--red);
  background: #ffe0e0;
}
.status-ok {
  color: #315064;
  background: #eef2f4;
}
.leadership-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.leadership-mini-wrap {
  overflow-x: auto;
}
.leadership-mini-table {
  min-width: 860px;
}
.leadership-mini-table th {
  white-space: nowrap;
  line-height: 1.25;
}
.leadership-mini-table th:first-child,
.leadership-mini-table td:first-child {
  min-width: 280px;
}
.leadership-mini-table th:not(:first-child),
.leadership-mini-table td:not(:first-child) {
  min-width: 92px;
}
.leadership-stock-life-list {
  display: grid;
  gap: 5px;
}
.stock-zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.leadership-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.leadership-filter {
  min-width: 140px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}
.zone-green { color: #0f6b3d; background: #d8f2e4; border-color: #9fd8b7; }
.zone-yellow { color: #946000; background: #fff0bf; border-color: #e6c86f; }
.zone-red { color: #b12424; background: #ffdada; border-color: #ec9d9d; }
.zone-burgundy { color: #7a1030; background: #f5bfd2; border-color: #da86a3; }
.zone-neutral { color: #335064; background: #e8eff4; border-color: #c9d5de; }
.leadership-stock-life-item {
  grid-template-columns: minmax(280px, 1.45fr) minmax(82px, .35fr) repeat(2, minmax(250px, 1fr));
}
.leadership-stock-life-item .status-pill {
  min-height: 16px;
  padding: 0 6px;
  font-size: 9px;
}
.leadership-stock-life-item .metric span {
  font-size: 9px;
}
.leadership-stock-life-item .metric strong {
  font-size: 12px;
}
.stock-forecast {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 6px;
  padding: 5px 7px;
}
.stock-forecast-head {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.stock-forecast-head b {
  font-size: 11px;
}
.stock-forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.stock-forecast-grid div {
  min-width: 0;
}
.stock-forecast-grid span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.05;
}
.stock-forecast-grid strong {
  display: block;
  font-size: 11px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.forecast-zone-green {
  background: #e7f8ef;
  border-color: #86cfaa;
  border-left-color: #17884f;
}
.forecast-zone-yellow {
  background: #fff4cf;
  border-color: #e5c265;
  border-left-color: #d18a00;
}
.forecast-zone-red {
  background: #ffe3e3;
  border-color: #e99b9b;
  border-left-color: #d92d2d;
}
.forecast-zone-burgundy {
  background: #fae0e9;
  border-color: #d987a2;
  border-left-color: #8d1538;
}
.forecast-zone-neutral {
  background: #f1f5f7;
  border-color: #cbd8e0;
  border-left-color: #7d8d99;
}
.transfer-kpi-grid {
  margin: 8px 0 10px;
}
.transfer-source {
  margin-bottom: 8px;
  font-size: 12px;
}
.transfer-forecast-list {
  display: grid;
  gap: 5px;
}
.transfer-warehouse-head {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-top: 6px;
  padding: 5px 8px;
  border: 1px solid #cbd8e0;
  border-radius: 6px;
  background: #eef4f7;
  color: #243b4a;
  font-size: 12px;
  font-weight: 800;
}
.transfer-forecast-row {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) repeat(6, minmax(86px, .38fr));
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 6px;
  background: #fff;
}
.transfer-forecast-row .name {
  font-size: 12px;
  line-height: 1.15;
}
.transfer-forecast-row .status-pill {
  min-height: 16px;
  padding: 0 6px;
  font-size: 9px;
}
.transfer-forecast-row .metric span {
  font-size: 9px;
}
.transfer-forecast-row .metric strong {
  font-size: 12px;
}
.transfer-zone-green {
  background: #f2fbf6;
  border-left-color: #17884f;
}
.transfer-zone-yellow {
  background: #fff9e5;
  border-left-color: #d18a00;
}
.transfer-zone-red {
  background: #fff0f0;
  border-left-color: #d92d2d;
}
.transfer-zone-burgundy {
  background: #fae7ee;
  border-left-color: #8d1538;
}
.transfer-zone-neutral {
  background: #f6f8fa;
  border-left-color: #7d8d99;
}

.product {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) repeat(6, minmax(64px, .34fr)) 112px minmax(132px, 150px) 90px;
  gap: 6px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}
.product.leadership-stock-life-item {
  grid-template-columns: minmax(310px, 1.2fr) minmax(90px, .35fr) repeat(2, minmax(330px, 1fr));
  align-items: stretch;
}
.product.selected { border-color: #8fc8b5; background: #f4fbf8; }
.article {
  display: inline-flex;
  width: fit-content;
  color: #315064;
  background: #eef2f4;
  border: 1px solid #d9e0e7;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
}
.name {
  margin-top: 2px;
  font-weight: 700;
  line-height: 1.05;
  font-size: 11px;
}
.product-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  line-height: 1;
}
.segment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef2f4;
  color: #435363;
  font-size: 9px;
  font-weight: 700;
}
.segment-b2b {
  background: #e9f2ff;
  color: #1e5aa8;
}
.segment-b2c {
  background: #e8f5ed;
  color: var(--green);
}
.segment-antifreeze {
  background: #e7f7fb;
  color: #0f6680;
}
.segment-unknown {
  background: #f1edf7;
  color: #62516e;
}
.local-deficit {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 16px;
  margin-top: 0;
  padding: 0 6px;
  background: #fff3db;
  color: var(--amber);
  border: 1px solid #efd09b;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}
.local-deficit:hover {
  background: #ffe8bb;
  color: var(--amber);
}
.incoming-external {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  color: #315064;
  background: #edf8ff;
  border: 1px solid #b9dff2;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.15;
}
.incoming-external span {
  display: block;
}
.equivalent-hint {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  color: #315064;
  background: #eef8ff;
  border: 1px solid #b9dff2;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.15;
}
.equivalent-hint span {
  display: block;
}
.incoming-title {
  font-weight: 700;
}
.metric span { display: block; color: var(--muted); font-size: 9px; line-height: 1.05; }
.metric strong { font-size: 12px; line-height: 1.05; }
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f4;
  font-weight: 700;
  font-size: 10px;
}
.status-good { color: var(--green); background: #e4f5ed; }
.status-warn { color: var(--amber); background: #fff3db; }
.status-bad { color: var(--red); background: #ffe8e8; }
.status-burgundy { color: #7a1030; background: #f8d8e2; }
.status-neutral { color: #335064; background: #e8eff4; }
.select-button { min-width: 94px; min-height: 32px; font-size: 12px; }
.product-actions {
  display: grid;
  gap: 6px;
}
.stock-toggle {
  min-height: 32px;
  padding: 0 8px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 11px;
}
.stock-toggle:hover {
  background: #eef6f2;
  color: var(--ink);
}
.stock-breakdown {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 2px;
}
.stock-incoming-cell {
  display: grid;
  gap: 2px;
  color: #315064;
  min-width: 240px;
  background: #f4fbff;
  border: 1px solid #d5ebf6;
  border-radius: 6px;
  padding: 6px 8px;
}
.stock-incoming-cell b {
  color: #0f6680;
}
.stock-incoming-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.deficit-breakdown {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
}
.deficit-breakdown h4 {
  margin: 12px 0 8px;
}
.breakdown-actions {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 8px;
  z-index: 5;
  padding: 4px 0;
  background: linear-gradient(180deg, white 0%, rgba(255, 255, 255, 0.92) 70%, rgba(255, 255, 255, 0) 100%);
  margin-bottom: 10px;
}
.breakdown-actions.bottom {
  position: static;
  margin: 12px 0 0;
}
.orders-toggle-row {
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}
.deficit-note {
  display: grid;
  gap: 4px;
  color: var(--muted);
  background: #fffaf0;
  border: 1px solid #efd09b;
  border-radius: 8px;
  padding: 10px 12px;
}
.deficit-note b {
  color: var(--ink);
}
.stock-table th,
.stock-table td {
  padding: 7px 8px;
  font-size: 13px;
}
.product-orders {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.product-orders h4 {
  margin: 0 0 8px;
}
.product-orders-content {
  margin-top: 10px;
}
.product-orders table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.orders-close-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.deficit-text {
  color: var(--red);
  font-weight: 700;
}
.mini-warehouses {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.mini-warehouses span {
  color: #435363;
  background: #eef2f4;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
}
.quick-add {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 5px;
  align-items: center;
}
.quick-add input {
  min-height: 32px;
  padding: 6px;
  font-size: 12px;
}
.quick-add button {
  min-height: 32px;
  padding: 0 8px;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}
.request-main, .request-side {
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}
.service-save-message {
  grid-column: 1 / -1;
  margin: 0;
  overflow-wrap: anywhere;
}
.service-save-message:empty { display: none; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.section-head h2, .request-side h3 {
  margin-bottom: 6px;
}
.request-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.small-button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}
.side-form {
  display: grid;
  gap: 12px;
}
.side-form textarea {
  margin: 0;
}
.file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.file-upload input {
  display: none;
}
.file-upload:hover {
  background: #eef6f2;
}
.request-import-upload {
  min-height: 36px;
  padding: 0 12px;
}
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 18px;
  font-size: 11px;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f4;
  color: #315064;
}
.file-remove {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #7b3941;
  font-size: 12px;
  line-height: 1;
}
.file-remove:hover {
  background: #ffe8e8;
  color: #9f2f3a;
}
.attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
  font-size: 12px;
}
.attachments-list a {
  color: #0f6680;
  background: #edf8ff;
  border: 1px solid #c9e6f5;
  border-radius: 999px;
  padding: 3px 8px;
  text-decoration: none;
}
.attachments-list a:hover {
  text-decoration: underline;
}
.reapply-files {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 150px;
}
.reapply-files a {
  color: #0f6680;
  background: #edf8ff;
  border: 1px solid #c9e6f5;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.reapply-files a:hover {
  text-decoration: underline;
}
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.suggestions {
  display: grid;
  gap: 4px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.12);
}
.suggestion {
  display: grid;
  gap: 3px;
  min-height: 0;
  padding: 9px 10px;
  background: white;
  color: var(--ink);
  border-radius: 6px;
  text-align: left;
}
.suggestion:hover { background: #eef6f2; color: var(--ink); }
.suggestion span { color: var(--muted); font-size: 12px; }
.selected-client-info {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}
.selected-client-info span {
  color: var(--muted);
  font-size: 12px;
}
.suggestion-hint {
  position: sticky;
  bottom: 0;
  padding: 8px 10px;
  background: #f8faf9;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 20, 28, 0.32);
}
.modal-panel {
  width: min(860px, 96vw);
  max-height: min(760px, 92vh);
  display: grid;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(25, 40, 55, 0.22);
  padding: 16px;
  overflow: hidden;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.modal-head h3 {
  margin: 0 0 4px;
}
.selected-product {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  background: #fbfdfc;
}
.request-items {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 430px;
  overflow: auto;
  background: white;
}
.request-import-result {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfc;
  font-size: 12px;
}
.request-import-result.hidden {
  display: none;
}
.request-import-summary {
  display: grid;
  gap: 2px;
}
.request-import-summary span,
.request-import-problems span,
.request-import-skipped span,
.request-import-ok {
  color: var(--muted);
}
.request-import-problems,
.request-import-skipped {
  display: grid;
  gap: 3px;
}
.request-import-problems b,
.request-import-skipped b {
  color: var(--ink);
}
.request-import-ok {
  color: var(--green);
  font-weight: 700;
}
.request-item {
  display: grid;
  grid-template-columns: 44px 150px minmax(280px, 1fr) 58px minmax(210px, 250px) 86px 82px 70px;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-width: 980px;
  padding: 0;
  background: white;
}
.request-items .request-item > * {
  min-height: 44px;
  border-right: 1px solid var(--line);
}
.request-items .request-item > div {
  padding: 8px 10px;
  display: flex;
  align-items: center;
}
.request-items .request-item > *:last-child {
  border-right: 0;
}
.request-item-head {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f4f7f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}
.request-item-head:hover {
  background: #f4f7f6;
}
.request-item:last-child {
  border-bottom: 0;
}
.request-item:hover {
  background: #fbfdfc;
}
.request-item-warning {
  background: #fffaf0;
}
.request-item-warning:hover {
  background: #fff7e6;
}
.request-row-index,
.request-unit,
.request-sum {
  justify-content: center;
}
.request-article {
  color: #315064;
  font-size: 12px;
  font-weight: 700;
}
.request-name {
  font-weight: 700;
  line-height: 1.25;
  font-size: 13px;
}
.request-import-warning {
  display: block;
  margin-top: 4px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.request-import-warning small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.request-item-stock span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.request-item-stock b {
  font-size: 14px;
}
.request-item-qty {
  min-height: 30px;
  height: 30px;
  margin: 0 8px;
  padding: 4px 8px;
  text-align: right;
  align-self: center;
}
.request-item-warehouse {
  min-height: 30px;
  height: 30px;
  margin: 0 8px;
  padding: 3px 26px 3px 8px;
  font-size: 12px !important;
  line-height: 1.15;
  align-self: center;
}
.request-item-warehouse option {
  font-size: 12px;
}
.remove-item {
  width: auto;
  height: 28px;
  min-height: 28px;
  margin: 0 auto;
  padding: 0 8px;
  justify-self: center;
  border-radius: 6px;
  background: #f3f5f6;
  color: #7b3941;
  border: 1px solid #e2c8cc;
  font-size: 12px;
  font-weight: 700;
}
.remove-item:hover {
  background: #ffe8e8;
  color: #9f2f3a;
}
.empty-request {
  display: grid;
  gap: 6px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #fbfdfc;
}
.empty-request b {
  color: var(--ink);
}
.primary { min-width: 220px; }

.request-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.request-card-problem {
  border-color: #efb2ae;
  background: #fffafa;
  box-shadow: inset 4px 0 0 var(--red);
}
.request-card-done {
  border-color: #c6e7d8;
  background: #fbfffd;
}
.invoice-outputs-list .request-card {
  padding: 10px 12px;
  font-size: 12px;
}
.invoice-outputs-list .request-head {
  margin-bottom: 6px;
}
.invoice-outputs-list .request-head h3 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.15;
}
.invoice-outputs-list .muted,
.invoice-outputs-list p,
.invoice-outputs-list .request-grid,
.invoice-outputs-list .request-meta-strip,
.invoice-outputs-list .service-result,
.invoice-outputs-list .attachments-list {
  font-size: 12px;
}
.invoice-outputs-list .status-pill {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.invoice-outputs-list .request-grid {
  grid-template-columns: 1.2fr 90px 110px 170px;
  gap: 7px;
}
.invoice-outputs-list .request-meta-strip {
  margin-top: 7px;
  padding: 7px 9px;
  gap: 6px 12px;
}
.invoice-outputs-list .request-lines {
  gap: 4px;
  margin-top: 8px;
  padding: 7px 8px;
}
.invoice-outputs-list .request-lines .request-card-line {
  grid-template-columns: 145px minmax(0, 1fr) 190px;
  gap: 8px;
  font-size: 12px;
}
.invoice-outputs-list .request-lines .request-card-line b,
.invoice-outputs-list .request-card-line-name,
.invoice-outputs-list .request-card-line-meta {
  font-size: 12px;
}
.invoice-outputs-list .service-result {
  padding: 7px 9px;
  gap: 3px;
}
.invoice-outputs-list .attachments-list {
  margin: 6px 0;
}
.service-result {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d5e5df;
  border-radius: 8px;
  background: #f4fbf7;
  color: #315064;
  font-size: 14px;
}
.service-result b {
  color: var(--accent);
}
.service-result-problem {
  border-color: #f2b8b5;
  background: #fff2f0;
  color: #7b3941;
}
.service-result-problem b {
  color: var(--red);
}
.marketing-task {
  border-color: #f2c66d;
  background: #fff8e8;
  color: #6b4a15;
}
.marketing-task b {
  color: #a76400;
}
.marketing-panel {
  display: grid;
  gap: 8px;
}
.inline-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.small-upload {
  min-height: 40px;
  padding: 8px 10px;
  white-space: nowrap;
}
.marketing-catalog-list,
.marketing-selected-list {
  display: grid;
  gap: 6px;
}
.marketing-catalog-list {
  max-height: 310px;
  overflow-y: auto;
  padding-right: 3px;
}
.marketing-catalog-row,
.marketing-selected-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 40px;
  gap: 6px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  font-size: 12px;
}
.marketing-selected-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}
.marketing-catalog-row b,
.marketing-selected-row b {
  display: block;
  color: #315064;
}
.marketing-catalog-row span,
.marketing-selected-row span,
.marketing-catalog-row small,
.marketing-selected-row small {
  display: block;
}
.marketing-catalog-row > div,
.marketing-selected-info {
  min-width: 0;
}
.marketing-catalog-row span,
.marketing-selected-info span {
  overflow-wrap: anywhere;
  line-height: 1.12;
}
.marketing-selected-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 38px;
  gap: 6px;
  align-items: center;
}
.marketing-selected-controls select,
.marketing-selected-controls input {
  min-width: 0;
  height: 38px;
  padding: 7px 8px;
  font-size: 12px;
}
.marketing-selected-controls .remove-marketing {
  min-width: 0;
  height: 38px;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 700;
}
.marketing-selected-head,
.compact-note {
  color: #5a6c7c;
  font-size: 12px;
}
.marketing-lines {
  margin-top: 8px;
}
.invoice-summary { padding: 3px 2px; font-size: 12px; }
.invoice-manager-group {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}
.invoice-manager-group > .request-head {
  margin-bottom: 0;
}
.invoice-manager-group h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.1;
}
.invoice-client-card {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
}
.invoice-client-head {
  margin-bottom: 0;
}
.invoice-client-head h4 {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.1;
}
.invoice-list { display: grid; gap: 5px; }
.invoice-row {
  border: 1px solid #e3e9ee;
  border-radius: 6px;
  padding: 7px 8px;
  background: #fbfdfc;
}
.invoice-row h4 {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.1;
}
.invoice-metrics {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin-bottom: 5px;
  gap: 6px;
}
.invoice-metrics div {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.invoice-metrics span {
  color: var(--muted);
  font-size: 10px;
}
.invoice-metrics b {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.invoice-row .request-head {
  margin-bottom: 5px;
}
.invoice-row .request-lines {
  gap: 3px;
  margin-top: 5px;
  padding: 6px 8px;
  border-radius: 6px;
}
.invoice-row .request-card-line {
  grid-template-columns: 140px minmax(0, 1fr) 180px !important;
  gap: 8px;
  font-size: 11px;
}
.invoice-row .request-line-article,
.invoice-row .request-line-name,
.invoice-row .request-line-qty {
  font-size: 11px;
  line-height: 1.12;
}
.invoice-row .request-actions {
  margin-top: 6px;
}
.invoice-output-comment {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  padding: 7px 9px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.25;
}
.invoice-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.invoice-row .invoice-output-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.load-more-row {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}
.request-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.request-grid {
  display: grid;
  grid-template-columns: 130px 1fr 110px 180px;
  gap: 10px;
  align-items: center;
}
.request-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #d5e5df;
  border-radius: 8px;
  background: #f4fbf7;
  color: #315064;
  font-size: 14px;
}
.request-meta-strip b {
  color: var(--accent);
}
.service-controls {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 10px;
  margin-top: 12px;
}
.service-controls-compact {
  grid-template-columns: 130px 190px minmax(220px, 1fr) 100px auto;
  align-items: center;
}
.service-file-upload {
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 12px;
}
.service-file-list {
  grid-column: 4 / -1;
  min-height: 0;
  margin-top: -4px;
}
.manager-archive-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.manager-archive-button {
  min-height: 30px;
  color: #315064;
}
.primary-inline {
  min-width: 130px;
  background: var(--accent);
  color: white;
}
.logistics-card {
  display: grid;
  gap: 10px;
}
.logistics-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 1fr) 140px 90px 150px;
}
.logistics-controls {
  grid-template-columns: 150px 210px minmax(220px, 1fr) auto;
  align-items: center;
}
.readonly-status {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.chz-tool-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d6e6ef;
  border-radius: 8px;
  background: #f7fbfd;
}
.chz-tool-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.chz-codes-input {
  min-height: 72px;
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  resize: vertical;
}
.chz-tool-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.chz-check-history {
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.chz-history-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.chz-check-history a {
  color: #0f6680;
  font-weight: 700;
}
.chz-owner-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: 12px;
  align-items: start;
}
.chz-tool-panel-main {
  margin-top: 0;
}
.chz-codes-input-large {
  min-height: 220px;
}
.chz-owner-file-upload {
  width: fit-content;
  min-height: 38px;
  margin-top: -2px;
}
.chz-history-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.chz-history-panel h3 {
  margin-bottom: 10px;
}
.chz-check-history-large {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
.chz-check-history-large .chz-history-item {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.chz-check-history-large .chz-history-item:last-child {
  border-bottom: 0;
}
.chz-inline-report {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.chz-inline-report .stock-table {
  font-size: 11px;
}
.chz-inline-report .stock-table th,
.chz-inline-report .stock-table td {
  padding: 6px 8px;
}
.chz-codes-table td:last-child {
  max-width: 520px;
  color: var(--muted);
}
.chz-error-note {
  color: var(--muted);
}
.chz-check-message {
  width: 100%;
  margin: 8px 0 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  white-space: pre-wrap;
  font-size: 12px;
  color: var(--muted);
}
.reapply-result {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.reapply-input-panel {
  display: grid;
  gap: 8px;
}
.reapply-input-wrap {
  border-radius: 8px;
}
.reapply-input-table th,
.reapply-input-table td {
  padding: 7px 8px;
  font-size: 12px;
}
.reapply-input-table th:nth-child(1) {
  min-width: 220px;
}
.reapply-input-table th:nth-child(2) {
  width: 96px;
}
.reapply-input-table th:nth-child(3) {
  width: 118px;
}
.reapply-input-table th:nth-child(4) {
  width: 148px;
}
.reapply-input-table td:nth-child(3) input {
  min-width: 86px;
}
.reapply-input-table input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}
.reapply-input-table .icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}
.reapply-product-cell {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 86px;
  gap: 6px;
  align-items: center;
}
.reapply-product-cell .reapply-name {
  cursor: default;
  background: white;
}
.reapply-picker-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}
.reapply-picker-search {
  min-height: 42px;
  font-size: 16px;
}
.reapply-picker-list {
  display: grid;
  gap: 6px;
  overflow: auto;
  padding-right: 4px;
}
.reapply-picker-item {
  min-height: 0;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  justify-content: start;
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
}
.reapply-picker-item:hover {
  background: #eef6f2;
  border-color: #b7d9ca;
}
.reapply-picker-item b {
  font-size: 13px;
  line-height: 1.2;
}
.reapply-picker-item small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}
.reapply-table th,
.reapply-table td {
  font-size: 12px;
  padding: 8px 10px;
}
.reapply-table td:nth-child(1),
.reapply-table td:nth-child(2) {
  min-width: 220px;
}
.ved-shipment {
  display: grid;
  gap: 14px;
}
.ved-kpi-grid {
  margin-bottom: 0;
}
.ved-stage-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.ved-transport {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #b9ddf2;
  border-radius: 8px;
  background: #f1f9fe;
}
.ved-transport h3 {
  margin: 0 0 8px;
}
.ved-transport-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.ved-transport-grid div,
.ved-container-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ved-transport-grid span,
.ved-container-list span {
  color: var(--muted);
  font-size: 12px;
}
.ved-transport-grid b,
.ved-container-list b {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.ved-eta-note {
  margin: 8px 0 0;
  font-size: 12px;
}
.ved-container-list {
  display: grid;
  gap: 8px;
}
.ved-declaration {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}
.ved-declaration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
}
.ved-declaration-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ved-declaration-grid span {
  color: var(--muted);
  font-size: 12px;
}
.ved-declaration-grid b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.ved-tnved-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ved-tnved-list span {
  padding: 4px 8px;
  border: 1px solid #cfe2ee;
  border-radius: 999px;
  background: #eef7fb;
  color: #17445a;
  font-size: 12px;
  font-weight: 700;
}
.ved-ds-checks {
  margin-top: 2px;
}
.ved-ds-checks h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.ved-ds-checks table {
  min-width: 980px;
}
.ved-ds-checks th,
.ved-ds-checks td {
  font-size: 12px;
  padding: 8px 10px;
}
.ved-ds-checks td:nth-child(2) {
  min-width: 260px;
}
.ved-customs-calc {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #cfe2ee;
  border-radius: 8px;
  background: #f7fbfd;
}
.ved-customs-calc h4 {
  margin: 0;
  font-size: 15px;
}
.ved-customs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px 12px;
}
.ved-customs-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ved-customs-grid span {
  color: var(--muted);
  font-size: 11px;
}
.ved-customs-grid b {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ved-customs-grid small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.ved-calc-note {
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff7e4;
  color: #825500;
  font-size: 12px;
}
.ved-stage,
.ved-check {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.ved-stage span,
.ved-check span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.ved-ok {
  border-color: #bfe7cf;
  background: #f2fbf6;
}
.ved-warn {
  border-color: #f0cd8a;
  background: #fff8e9;
}
.ved-bad {
  border-color: #f0b4b4;
  background: #fff1f1;
}
.ved-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.ved-files span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfc;
}
.ved-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ved-check-list {
  display: grid;
  gap: 8px;
}
.stock-good-text {
  color: var(--green);
  font-weight: 700;
}
.deficit-soft-text {
  color: #b66a00;
  font-weight: 700;
}
.segmented {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.active-filter {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.service-steps {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}
.service-steps summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}
.service-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}
.service-step-list label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
}
.request-lines {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f8faf9;
}
.request-lines .request-card-line {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
  font-size: 14px;
}
.request-lines .request-card-line b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #315064;
  font-size: 14px;
  font-weight: 600;
}
.compact-lines {
  gap: 4px;
  padding: 8px 10px;
}
.compact-line {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: start;
  font-size: 13px;
}
.compact-line b {
  color: #315064;
  font-size: 13px;
}
.compact-line span:last-child {
  color: #4f6375;
  text-align: right;
}
.request-card-line-name {
  color: var(--ink);
  min-width: 0;
  font-size: 14px;
}
.request-card-line-meta {
  color: var(--muted);
  text-align: right;
  min-width: 0;
  font-size: 14px;
}
.service-desk {
  display: grid;
  gap: 16px;
}
.service-kpi-grid {
  margin-bottom: 0;
}
.service-queue {
  display: grid;
  gap: 8px;
}
.service-queue-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1.3fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}
.service-queue-row b,
.service-queue-row span {
  overflow-wrap: anywhere;
}
.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; }
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th { color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .topbar, .toolbar, .summary-grid, .ops-switcher, .product, .form-grid, .request-grid, .service-controls, .request-layout, .chz-owner-layout, .ved-stage-row, .ved-two-column, .ved-transport, .ved-transport-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .ops-switcher { align-items: stretch; }
  .ops-switcher-buttons { justify-content: flex-start; }
  .request-alert {
    align-items: stretch;
    flex-direction: column;
  }
  .request-item, .request-card-line { grid-template-columns: 1fr; }
  .request-item-head { display: none; }
  .request-items .request-item:not(.request-item-head) {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .request-items .request-item > * {
    min-width: 0;
    max-width: 100%;
    border-right: 0;
  }
  .request-items .request-item > .request-row-index,
  .request-items .request-item > .request-unit { display: none; }
  .request-items .request-item > .request-article,
  .request-items .request-item > .request-name,
  .request-item-warehouse,
  .request-items .request-item > .request-item-stock { grid-column: 1 / -1; }
  .request-items .request-item > .request-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    overflow-wrap: anywhere;
  }
  .request-items .request-item > div { padding: 0; min-height: 0; }
  .request-item-stock::before { content: "Доступно: "; margin-right: 5px; }
  .request-item-qty, .request-item-warehouse { width: 100%; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .summary-grid { grid-template-columns: 1fr; }
}
