/* Сайт «Склад и поставки», спека 023. День, лента шагов, списки, настройки, журнал, шаг, окно подтверждения.
   Файлы site*.css подключаются в base.html по порядку: порядок задаёт каскад. Цвета - только в :root из site.css. */

/* ---------- Сводка кабинета ---------- */

.summary { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }

.summary .card { margin: 0; }

.figure-big { font-family: var(--mono); font-size: 46px; line-height: 1; margin-top: 10px; }

.figure-big small { font-size: 20px; color: var(--ink-faint); }

.meter { height: 6px; background: var(--surface-2); border-radius: 3px; margin-top: 14px; overflow: hidden; }

.meter i { display: block; height: 100%; background: var(--ink-dim); border-radius: 3px; }

.call {
  border: 1px solid var(--amber); background: var(--amber-soft);
  border-radius: var(--radius-card); padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

.call h2 { font-size: 22px; }

.call p { color: var(--ink-dim); margin-top: 4px; }

/* Склад ещё не начал: Марине делать нечего, поэтому без янтаря. */
.call.quiet { border-color: var(--line-strong); background: var(--surface); }

/* ---------- Лента шагов ---------- */

.steps { list-style: none; margin-top: 10px; }

.step {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 2px 14px; align-items: center;
  padding: 12px 12px 12px 0; position: relative; border-radius: var(--radius-card);
}

.step::before { content: ""; position: absolute; left: 17px; top: 0; bottom: 0; width: 2px; background: var(--line); }

.step:first-child::before { top: 50%; }

.step:last-child::before { bottom: 50%; }

.step .mark {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink-faint);
}

.step .title { font-family: var(--display); font-size: 19px; font-weight: 600; }

.step .note { grid-column: 2 / 4; font-size: 16px; color: var(--ink-dim); line-height: 1.4; }

.step .at { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); margin-left: 10px; font-weight: 400; }

.step.done .mark { border-color: var(--green-ink); color: var(--green-ink); }

.step.later .title, .step.later .note { color: var(--ink-faint); }

.step.is-current { background: var(--bg); }

.step.is-current .mark { border-color: var(--ink); color: var(--ink); }

.step.stop .mark, .step.wait_marina .mark { border-color: var(--amber-ink); color: var(--amber-ink); background: var(--amber-soft); }

.irreversible { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-left: 8px; font-weight: 400; }

/* ---------- Списки ---------- */

.rows { list-style: none; }

.rows li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}

.rows li:last-child { border-bottom: 0; }

.rows b { font-family: var(--display); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.rows .sub { grid-column: 1 / -1; font-size: 16px; color: var(--ink-dim); }

/* Справки ЧЗ: заголовок, пояснение, пункты - не одной жирной строкой. */
.rows li.info-row { display: block; }
.rows li.empty { display: block; }
.info-detail { margin-top: 6px; font-size: 17px; color: var(--ink-dim); }
.info-items { margin: 8px 0 0 20px; font-size: 17px; }
.rows .info-items li { display: list-item; padding: 2px 0; border-bottom: 0; }

.plate + .grid-2, .plate + .section { margin-top: 20px; }

.times { font-family: var(--mono); font-size: 26px; color: var(--amber-ink); line-height: 1; text-align: right; }

.times small { font-size: 13px; color: var(--ink-faint); margin-left: 4px; }

.owner { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--ink-faint); text-transform: uppercase; }

.empty { color: var(--ink-faint); padding: 14px 0; }

/* ---------- Настройки: строки «поле - значение» ---------- */

.fields { list-style: none; }

.fields li {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 6px 24px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}

.fields li:last-child { border-bottom: 0; }

.fields .name { font-family: var(--display); font-weight: 600; }

.fields .name small { display: block; font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--ink-faint); }

.fields .value { font-size: 18px; }

.fields .value.mono { font-size: 16px; }

.toggle {
  width: 56px; height: 32px; border-radius: 16px; border: 0; position: relative;
  background: var(--line-strong); transition: background .15s;
}

.toggle::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--knob-shadow); transition: left .15s;
}

.toggle[aria-checked="true"] { background: var(--amber-ink); }

.toggle[aria-checked="true"]::after { left: 28px; }

.key-state { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Таблица журнала ---------- */

.table { width: 100%; border-collapse: collapse; font-size: 17px; }

.table th {
  text-align: left; font-family: var(--mono); font-weight: 400; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
  padding: 8px 12px; border-bottom: 1px solid var(--line-strong);
}

.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

.table td.time { font-family: var(--mono); color: var(--ink-dim); width: 80px; }

.path { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.path.auto { color: var(--ink-faint); }

.path.warehouse { color: var(--ink); font-size: 13px; line-height: inherit; }   /* не крупный текст склада из .warehouse */

.path.marina { color: var(--amber-ink); font-weight: 700; }

/* ---------- Шаг ---------- */

.check { list-style: none; }

.check li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }

.check li:last-child { border-bottom: 0; }

.check .sign { font-family: var(--mono); font-size: 19px; line-height: 1.4; color: var(--green-ink); }

.check .sign.no { color: var(--amber-ink); font-weight: 700; }

.plan-figure { font-family: var(--mono); font-size: 64px; line-height: 1; }

.plan-figure small { font-size: 22px; color: var(--ink-dim); margin-left: 8px; }

.stop-box { border: 2px solid var(--amber-ink); border-radius: var(--radius-card); padding: 24px; background: var(--surface); }

.stop-box .word { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--amber-ink); letter-spacing: .06em; }

.busy-box { border: 1px dashed var(--line-strong); border-radius: var(--radius-card); padding: 24px; background: var(--surface); }

.done-box { border: 1px solid var(--green-ink); border-radius: var(--radius-card); padding: 24px; background: var(--surface); }

.details { margin-top: 16px; font-size: 16px; color: var(--ink-dim); }

.details summary { cursor: pointer; font-family: var(--display); }

.details pre {
  margin-top: 10px; padding: 14px; background: var(--surface-2); border-radius: var(--radius);
  font-family: var(--mono); font-size: 14px; white-space: pre-wrap;
}

/* ---------- Окно подтверждения ---------- */

.confirm {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: var(--gap);
  background: var(--overlay);
}

.confirm .card { max-width: 600px; width: 100%; }

.confirm input {
  width: 100%; margin-top: 10px; padding: 12px 14px;
  font-family: var(--mono); font-size: 26px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-card);
}

/* ---------- Пульт макета ---------- */

.mock-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; max-width: 340px; padding: 12px 14px;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-card);
  box-shadow: var(--shadow); font-size: 14px;
}

.mock-panel .eyebrow { font-size: 13px; }

.mock-panel .choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.mock-panel button {
  font-family: var(--mono); font-size: 13px; padding: 5px 9px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink-dim);
}

.mock-panel button[aria-pressed="true"] { border-color: var(--amber-ink); color: var(--amber-ink); }
