/* InterAlex Price — оформление в стиле таблиц Cargoloop:
   белый фон, тонкая серая сетка, жирные заголовки, цветная полоса склада под заголовком колонки,
   «зебра» строк, серое выделение строки, без теней и скруглений. */
:root {
  --bg: #ffffff; --text: #1a1a1a; --muted: #6b6b6b; --line: #dcdcdc; --line-strong: #bdbdbd;
  --zebra: #f3f6f8; --select: #cfcfcf; --accent: #1a1a1a;
  --warn-bg: #fff4e5; --warn: #9a5800; --danger-bg: #fdecea; --danger: #b42318; --ok-bg: #e8f7ef; --ok: #1e7a46;
  /* цвета складов, как у Cargoloop */
  --t-SAV: #47d78d; --t-ELZ: #f9b65a; --t-NYC: #f9b65a; --t-HOU: #fb8948; --t-LAX: #5ca9fb;
  --t-IND: #5d62cf; --t-MTL: #808080; --t-CHI: #9b6bd6; --t-ORF: #2bb5b0; --t-MIA: #e26fa8;
  --t-SEA: #3f8fd2; --t-HNL: #c9a227; --t-ANC: #6b8e9e; --t-YTO: #a0a0a0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.45 Roboto, Arial, sans-serif; }
a { color: var(--text); }
a:hover { color: #000; }
h1 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
h2 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; white-space: normal !important; }
.hidden { display: none; }

/* Шапка */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { font-weight: 700; font-size: 14px; text-decoration: none; letter-spacing: .2px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--muted); padding: 2px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--text); border-bottom-color: var(--text); }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.who form { margin: 0; }
.page { max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; }
.section { margin: 24px 0 8px; font-size: 15px; }

/* Блоки */
.card { background: var(--bg); border: 1px solid var(--line); padding: 14px 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 16px; }
.login { max-width: 420px; margin: 56px auto; }
.notice { padding: 8px 12px; margin: 0 0 14px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); }
.notice-error { border-left-color: var(--danger); background: var(--danger-bg); }
.notice-success { border-left-color: var(--ok); background: var(--ok-bg); }

/* Кнопки и поля */
.btn { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  padding: 7px 14px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; border-radius: 0; }
.btn:hover { background: #000; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-outline { background: #fff; color: var(--accent); }
.btn-outline:hover { background: var(--zebra); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--text); }
input, select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-strong);
  padding: 6px 8px; border-radius: 0; }
input:focus, select:focus { outline: 2px solid #9ec5fe; outline-offset: -1px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 12px; align-items: end; margin-top: 10px; }
.form-grid label { display: flex; flex-direction: column; gap: 3px; font-weight: 700; font-size: 12px; }
.form-grid .wide { grid-column: span 2; }
.row { display: flex; gap: 8px; margin-top: 8px; }
.row input { flex: 1; }

/* Таблицы */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { font-weight: 700; text-align: center; vertical-align: bottom; padding: 8px 10px 6px;
  background: var(--bg); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.data th.left, table.data td.left { text-align: left; }
table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  vertical-align: top; white-space: nowrap; }
table.data td:last-child, table.data th:last-child { border-right: 0; }
table.data tbody tr:nth-child(even) td { background: var(--zebra); }
table.data tbody tr.best td { background: var(--select); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data td .num { text-align: center; font-variant-numeric: tabular-nums; }
table.data td.label { font-weight: 700; }
tr.muted td { color: var(--muted); }
/* Цветная полоса склада под заголовком колонки (как на прайсе Cargoloop) */
table.data th.term-head { border-bottom: 6px solid var(--c, var(--line-strong)); }
.term { display: inline-block; padding-left: 7px; border-left: 5px solid var(--c, var(--line-strong)); line-height: 1.3; }

/* Метки */
.tag { display: inline-block; font-size: 11px; padding: 0 5px; margin: 1px 0; background: #eeeeee; color: #333; border: 1px solid #e0e0e0; }
.tag-ok { background: var(--ok-bg); color: var(--ok); border-color: #c9ead7; }
.tag-warn { background: var(--warn-bg); color: var(--warn); border-color: #f5d9b0; }
.tag-danger { background: var(--danger-bg); color: var(--danger); border-color: #f5c6c0; }
.dot-manual { display: inline-block; width: 7px; height: 7px; background: var(--warn); margin-left: 4px; vertical-align: middle; }

.term-SAV { --c: var(--t-SAV); } .term-ELZ { --c: var(--t-ELZ); } .term-NYC { --c: var(--t-NYC); }
.term-HOU { --c: var(--t-HOU); } .term-LAX { --c: var(--t-LAX); } .term-IND { --c: var(--t-IND); }
.term-MTL { --c: var(--t-MTL); } .term-CHI { --c: var(--t-CHI); } .term-ORF { --c: var(--t-ORF); }
.term-MIA { --c: var(--t-MIA); } .term-SEA { --c: var(--t-SEA); } .term-HNL { --c: var(--t-HNL); }
.term-ANC { --c: var(--t-ANC); } .term-YTO { --c: var(--t-YTO); }

@media (max-width: 640px) {
  .topbar { gap: 6px 12px; }
  .nav { order: 3; width: 100%; }
  .form-grid .wide { grid-column: span 1; }
  .page { padding: 14px 12px 32px; }
}

/* Сравнение суши */
table.data td.cell-min { background: #6aa84f !important; color: #fff; font-weight: 700; }
table.data td.cell-max { background: #e06666 !important; color: #fff; font-weight: 700; }
table.data td.cell-min .muted, table.data td.cell-max .muted { color: #fff; }
table.data th.group-start, table.data td.group-start { border-left: 2px solid var(--line-strong); }
table.land td.label { position: sticky; left: 0; background: inherit; z-index: 1; }
table.land tbody tr td.label { background: var(--bg); }
table.land tbody tr:nth-child(even) td.label { background: var(--zebra); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.checks-title { font-weight: 700; font-size: 12px; width: 100%; }
.check { display: inline-flex; align-items: center; gap: 4px; font-weight: 400 !important; font-size: 13px !important; flex-direction: row !important; }
