/* ERP «Вывоз отходов» — общий стиль офиса
   Палитра: бетон, асфальт, зелёный бункер, сигнальный янтарь, кирпич, сталь */


:root {
  --asphalt: #263036;
  --asphalt-2: #34414a;
  --concrete: #e9ecea;
  --sheet: #f8f9f8;
  --white: #ffffff;
  --rule: #cdd3d0;
  --rule-soft: #dde2df;
  --ink: #263036;
  --ink-2: #56636b;
  --ink-3: #7d888e;
  --bunker: #3d6b57;
  --bunker-dark: #2f5444;
  --bunker-tint: #e1ebe5;
  --signal: #b9811f;
  --signal-tint: #f5ebd6;
  --brick: #a5473a;
  --brick-tint: #f3e1dd;
  --steel: #4b6a86;
  --steel-tint: #e0e8ef;
  --radius: 6px;
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--steel); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: start; }
.grid-2-1 > .panel + .panel { margin-top: 0; }
@media (max-width: 700px) { .grid2, .grid3, .grid-2-1 { grid-template-columns: 1fr; } }

/* --- Каркас --- */
.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.rail {
  background: var(--asphalt);
  color: #dfe5e2;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { font-weight: 700; font-size: 17px; padding: 4px 10px 2px; color: #fff; }
.brand-sub { font-size: 12px; color: #9fb0a8; padding: 0 10px 18px; }
.rail a {
  color: #dfe5e2;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rail a:hover { background: var(--asphalt-2); }
.rail a.active { background: var(--bunker); color: #fff; }
.rail .count { font-size: 12px; background: var(--signal); color: #fff; border-radius: 10px; padding: 0 7px; }
.rail .bottom { margin-top: auto; font-size: 13px; color: #9fb0a8; padding: 10px; }
.rail .bottom button { background: none; border: 0; color: #dfe5e2; padding: 0; cursor: pointer; text-decoration: underline; }
.main { min-width: 0; padding: 20px 24px 40px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .brand-sub, .rail .bottom { display: none; }
  .main { padding: 14px; }
}

/* --- Поверхности --- */
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; }
.panel + .panel { margin-top: 14px; }
.grid2 > .panel + .panel, .grid3 > .panel + .panel { margin-top: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-title h2 { margin: 0; }

/* --- Кнопки --- */
.btn {
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
}
.btn:hover { border-color: var(--ink-3); }
a.btn { text-decoration: none; display: inline-block; }
.btn.primary { background: var(--bunker); border-color: var(--bunker); color: #fff; font-weight: 500; }
.btn.primary:hover { background: var(--bunker-dark); }
.btn.danger { color: var(--brick); border-color: #d9b2ab; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--steel); padding-left: 6px; padding-right: 6px; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--white); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; cursor: pointer; border-right: 1px solid var(--rule-soft); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--asphalt); color: #fff; }

/* --- Поля --- */
.field { display: grid; gap: 4px; align-content: start; }
.field > span { font-size: 13px; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.input, select.input, textarea.input {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: var(--radius);
  padding: 7px 10px;
  min-height: 36px;
}
textarea.input { min-height: 64px; resize: vertical; }
.input:focus { outline: 2px solid var(--steel-tint); border-color: var(--steel); }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--bunker); }

/* --- Таблицы --- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-2);
  font-size: 13px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
  position: sticky;
  top: 0;
}
.table td { padding: 8px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #eef2ef; }
.table tr.dim td { color: var(--ink-3); }
.table .num { text-align: right; }

/* --- Метки состояния: цветная полоска слева + слово --- */
.st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }
.st::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--ink-3); }
.st.new::before { background: var(--ink-3); }
.st.planned::before { background: var(--steel); }
.st.in_progress::before { background: var(--signal); }
.st.done::before { background: var(--bunker); }
.st.failed::before { background: var(--brick); }
.st.cancelled { color: var(--ink-3); text-decoration: line-through; }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 4px; background: var(--steel-tint); color: var(--steel); white-space: nowrap; }
.tag.warn { background: var(--signal-tint); color: #7d5410; }
.tag.bad { background: var(--brick-tint); color: var(--brick); }
.tag.good { background: var(--bunker-tint); color: var(--bunker-dark); }

/* Номерной знак машины */
.plate {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid #1d2326;
  border-radius: 4px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.plate .p-main { padding: 4px 6px 3px; }
.plate .p-reg { border-left: 2px solid #1d2326; padding: 2px 4px; font-size: 11px; display: flex; align-items: center; }

/* Трафаретный номер контейнера */
.cno {
  display: inline-block;
  background: var(--bunker);
  color: #f3f1e4;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.cno.base { background: var(--asphalt-2); }

/* --- Выдвижная панель --- */
.drawer-back { position: fixed; inset: 0; background: rgba(38, 48, 54, 0.35); z-index: 40; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(620px, 100vw);
  background: var(--sheet);
  z-index: 41;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
}
.drawer.wide { width: min(900px, 100vw); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.drawer-head h2 { margin: 0; flex: 1; }
.drawer-body { padding: 16px 18px; overflow: auto; flex: 1; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--rule); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 4px 8px; }

/* --- Сообщения --- */
.toasts { position: fixed; bottom: 16px; left: 232px; display: grid; gap: 8px; z-index: 60; max-width: 420px; }
@media (max-width: 900px) { .toasts { left: 16px; right: 16px; } }
.toast { background: var(--asphalt); color: #fff; padding: 10px 14px; border-radius: var(--radius); font-size: 14px; }
.toast.error { background: var(--brick); }
.notice { border-left: 4px solid var(--signal); background: var(--signal-tint); padding: 10px 12px; border-radius: 0 var(--radius) var(--radius) 0; }
.notice.bad { border-color: var(--brick); background: var(--brick-tint); }
.notice.good { border-color: var(--bunker); background: var(--bunker-tint); }
.notice ul { margin: 4px 0 0; padding-left: 18px; }
.empty { padding: 28px; text-align: center; color: var(--ink-2); }

/* --- Сводка --- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; }
.kpi b { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--ink-2); }
.kpi.warn { border-left: 4px solid var(--signal); }
.kpi.bad { border-left: 4px solid var(--brick); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding-top: 6px; }
.bars div { flex: 1; background: var(--bunker); border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.bars div:hover { background: var(--bunker-dark); }

/* --- Диспетчерская --- */
.board-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 12px; align-items: start; }
.lanes { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.lane {
  flex: 0 0 272px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 150px);
}
.lane.off { opacity: 0.45; }
.lane.drop { border-color: var(--bunker); box-shadow: 0 0 0 2px var(--bunker-tint); }
.lane.nodrop { opacity: 0.35; }
.lane-head { padding: 10px; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.lane-head .name { font-weight: 600; }
.lane-body { padding: 8px; display: grid; gap: 6px; overflow-y: auto; min-height: 80px; align-content: start; }
.queue { position: sticky; top: 12px; }
.queue .lane-body { max-height: calc(100vh - 230px); }
.ticket {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink-3);
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 13px;
  cursor: grab;
  display: grid;
  gap: 2px;
}
.ticket.op-placement { border-left-color: var(--bunker); }
.ticket.op-exchange { border-left-color: var(--steel); }
.ticket.op-exchange_return { border-left-color: #6f5a8a; }
.ticket.op-load_now { border-left-color: var(--signal); }
.ticket.op-pickup { border-left-color: var(--asphalt-2); }
.ticket.done { background: #f1f5f2; }
.ticket.failed { background: var(--brick-tint); }
.ticket.dragging { opacity: 0.4; }
.ticket .t1 { display: flex; gap: 6px; align-items: baseline; }
.ticket .t1 b { font-weight: 600; }
.ticket .addr { color: var(--ink); }
.ticket .meta { color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.ticket .seqn { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.drop-marker { height: 3px; background: var(--bunker); border-radius: 2px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* --- Вкладки --- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 14px; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--bunker); font-weight: 500; }

/* --- Поиск с подсказками --- */
.suggest { position: relative; }
.suggest-list {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  max-height: 280px;
  overflow: auto;
}
.suggest-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--rule-soft); }
.suggest-list button:hover, .suggest-list button.on { background: var(--bunker-tint); }

/* --- Фото --- */
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos a { display: grid; gap: 2px; font-size: 12px; color: var(--ink-2); text-decoration: none; }
.photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rule); background: #ddd; }

/* --- Вход --- */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--asphalt); }
.login form { background: var(--sheet); padding: 28px; border-radius: var(--radius); width: min(360px, 92vw); display: grid; gap: 14px; }
.login h1 { margin: 0; font-size: 22px; }

/* --- Прайс --- */
.matrix input { width: 96px; text-align: right; padding: 5px 8px; min-height: 30px; }
.matrix td, .matrix th { padding: 4px 6px; }

dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--ink-2); }
dl.kv dd { margin: 0; }

/* --- Компания --- */
.org-logo-sm { width: 72px; height: 36px; object-fit: contain; object-position: left center; display: block; }
.org-mono {
  width: 40px; height: 32px; display: grid; place-items: center; border-radius: 4px;
  background: var(--asphalt); color: #fff; font-weight: 700; font-size: 16px;
}
.img-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.img-slot { display: grid; gap: 2px; align-content: start; }
.img-slot-pic {
  height: 104px; border: 1px dashed var(--rule); border-radius: var(--radius); display: grid; place-items: center;
  /* шахматка показывает прозрачный фон картинки */
  background: repeating-conic-gradient(#f1f3f2 0% 25%, #fff 0% 50%) 50% / 14px 14px;
  overflow: hidden; margin-bottom: 4px;
}
.img-slot-pic img { max-width: 100%; max-height: 96px; object-fit: contain; }
.sign-preview { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 14px 26px; color: #000; font-size: 12px; overflow: hidden; }
.sign-preview .signs { margin-top: 6px; }
.sign-preview .signs > div { white-space: nowrap; }
.sign-preview .signs .line { width: 96px; }
.savebar {
  position: sticky; bottom: 0; z-index: 20; margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--asphalt); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.savebar .btn:not(.primary) { background: transparent; color: #fff; border-color: #5b6a72; }

/* --- Финансы --- */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filters .input { width: auto; }
.sums { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; color: var(--ink-2); font-size: 14px; }
.sums b { color: var(--ink); font-variant-numeric: tabular-nums; }
.paybar { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--rule-soft); vertical-align: middle; overflow: hidden; margin-right: 6px; }
.paybar i { display: block; height: 100%; background: var(--bunker); }
.lines-edit td { padding: 4px 6px; vertical-align: middle; }
.lines-edit .input { min-height: 32px; padding: 5px 8px; }
.lines-edit .n { width: 92px; text-align: right; }
.dropzone {
  border: 1.5px dashed var(--rule); border-radius: var(--radius); padding: 18px; text-align: center; background: var(--white);
  cursor: pointer; color: var(--ink-2);
}
.dropzone.over { border-color: var(--bunker); background: var(--bunker-tint); }
.bank-table td { vertical-align: middle; }
.bank-table tr.skip td { color: var(--ink-3); }
.bank-table td:nth-child(3) { min-width: 300px; }
.bank-table .purpose { font-size: 12px; color: var(--ink-2); }

/* На телефоне широкие таблицы прокручиваются вбок, а не обрезаются */
@media (max-width: 900px) { .panel.flush { overflow-x: auto; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* --- Персонал --- */
.person { display: flex; gap: 10px; align-items: center; }
.avatar {
  flex: none; display: inline-grid; place-items: center; object-fit: cover;
  background: var(--steel-tint); color: var(--steel); font-weight: 600; letter-spacing: 0.02em;
}
.avatar.sm { width: 34px; height: 34px; border-radius: 50%; font-size: 13px; }
/* Фото как на документы: 3×4 */
.avatar.lg { width: 120px; height: 160px; border-radius: 4px; font-size: 36px; border: 1px solid var(--rule); }
.photo-panel { display: flex; gap: 16px; align-items: flex-start; }

/* --- Рабочее место диспетчера: три таблицы, как в 1С --- */
.ws-filter { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.ws-filter .row { gap: 6px; }
.ws-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.ws-bar .btn, .ws-foot .btn { min-height: 32px; padding: 4px 11px; }
.ws-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px; height: max(480px, calc(100vh - 318px));
}
.ws-pane { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.ws-pane.tall { grid-row: 1 / span 2; }
.ws-pane.drop { border-color: var(--bunker); box-shadow: 0 0 0 2px var(--bunker-tint); }
.ws-pane-head {
  display: flex; gap: 8px; align-items: center; padding: 6px 10px; min-height: 38px; font-weight: 600; font-size: 13px;
  background: var(--sheet); border-bottom: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0;
}
.ws-scroll { overflow: auto; flex: 1; min-height: 0; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ws-table th {
  position: sticky; top: 0; z-index: 1; background: #eef1ef; text-align: left; font-weight: 500; color: var(--ink-2);
  padding: 5px 8px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule-soft); white-space: nowrap;
}
.ws-table td { padding: 4px 8px; border-bottom: 1px solid var(--rule-soft); border-right: 1px solid var(--rule-soft); white-space: nowrap; vertical-align: top; }
.ws-table td.wrap { white-space: normal; min-width: 170px; }
.ws-table td.wrap-s { white-space: normal; min-width: 120px; }
.ws-table .n { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ws-table tbody tr { cursor: default; user-select: none; }
.ws-table tbody tr[draggable="true"] { cursor: grab; }
.ws-table tbody tr:hover td { background: #f2f5f3; }
.ws-table tr.mark td { background: #f3f7f4; }
.ws-table tr.sel td { background: var(--bunker-tint); }
.ws-table tr.dim td { color: var(--ink-3); }
.ws-table tr.drop td { background: var(--bunker-tint); box-shadow: inset 0 -2px 0 var(--bunker); }
.ws-table tr.nodrop td { opacity: 0.45; }
.ws-table tr.dragging td { opacity: 0.4; }
.ws-table .plate { transform: scale(0.85); transform-origin: left center; margin: -3px 0; }
.opdot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.ws-foot {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius);
}
.menu { position: relative; display: inline-block; }
.menu-list {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 230px; padding: 4px; display: grid;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(38, 48, 54, 0.15);
}
.ws-bar .spacer + .menu .menu-list { left: auto; right: 0; }
.menu-list button { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 4px; cursor: pointer; }
.menu-list button:hover:not(:disabled) { background: var(--bunker-tint); }
.menu-list button:disabled { color: var(--ink-3); cursor: default; }
@media (max-width: 1100px) {
  .ws-grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .ws-pane.tall { grid-row: auto; }
  .ws-scroll { max-height: 420px; }
}

/* --- 0.7: статус заявки, документы заявки, путевые листы --- */
/* Статус заявки: новая — серая, обработана — синяя, выполнена — зелёная */
.stage {
  font: inherit; font-size: 13px; line-height: 1.2; white-space: nowrap;
  border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px; background: var(--white); color: var(--ink);
}
select.stage {
  cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 24px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 9px) 55%; background-size: 4px 4px; background-repeat: no-repeat;
}
select.stage:focus-visible { outline: 2px solid var(--steel); outline-offset: 1px; }
.stage.new { border-color: var(--rule); color: var(--ink-2); }
.stage.processed { border-color: var(--steel); background-color: var(--steel-tint); color: var(--steel); }
.stage.done { border-color: var(--bunker); background-color: var(--bunker-tint); color: var(--bunker-dark); }
.stage.failed { border-color: var(--brick-tint); background-color: var(--brick-tint); color: var(--brick); }
.stage.cancelled { border-color: var(--rule-soft); background-color: var(--sheet); color: var(--ink-3); }
.stage.static { display: inline-block; }
.doc-list { margin: 0; padding-left: 18px; }
.doc-list li { margin-bottom: 3px; }
.doc-list li.dim { color: var(--ink-3); }
.trip-list { margin: 0; padding-left: 20px; }
.trip-list li { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; }
.table tfoot td { border-top: 1px solid var(--rule); border-bottom: 0; color: var(--ink-2); font-weight: 500; }
.doc-list .btn.small { margin-left: 6px; padding-top: 1px; padding-bottom: 1px; vertical-align: baseline; }
/* Четыре статуса заявки в одну строку и на телефоне */
@media (max-width: 480px) { .drawer .seg button { padding: 7px 9px; font-size: 14px; } }
