/* ============================================================
   ПОСТАВЩИКИ v473 (07.10.2026): прежний вид «По дням», освежённый;
   правка полей центра прямо в карточке; вкладки «Сегодня» и «Изменения».
   Заменяет suppliers-v472.css (таблица убрана). Поверх ui-v1.css (.sup-*).
   ============================================================ */

/* Вкладки — вне сворачиваемых фильтров: на телефоне они раньше прятались. */
.sup-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; border: 1px solid var(--line);
  border-radius: var(--r-card); background: var(--surface-card); overflow-x: auto; scrollbar-width: none; }
.sup-tabs::-webkit-scrollbar { display: none; }
.sup-tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px;
  border-radius: calc(var(--r-card) - 4px); font-size: 13px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.sup-tabs button:hover { background: var(--surface-hover); color: var(--text); }
.sup-tabs button.is-on { background: var(--md-soft); color: var(--md); }
.sup-tabs em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px;
  background: var(--surface-hover); color: var(--muted); }
.sup-tabs em.is-new { background: var(--brand); color: #fff; }

/* Четыре цифры сверху — тоньше, чем были */
.sup-stats { gap: 10px; margin-bottom: 14px; }
.sup-stat { padding: 11px 14px; }
.sup-stat b { font-size: 20px; }

/* --- «По дням»: строка --- */
.sup-row { transition: background .12s; }
.sup-row[style*="--center-color"] .sup-time { border-left-color: var(--center-color); }
.sup-note-chip { display: inline-block; max-width: 100%; margin-left: 7px; padding: 1px 8px; border-radius: 6px;
  font-style: normal; font-size: 10.5px; font-weight: 750; vertical-align: 1px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; background: color-mix(in srgb, #d92d20 10%, transparent); color: color-mix(in srgb, #d92d20 75%, var(--text)); }

/* --- карточка: поля, которые ведёт центр --- */
.sup-card-grid > .sup-cf, .sup-cf-wide { position: relative; }
.sup-cf-wide { border: 1px solid var(--line); border-radius: var(--r-control); padding: 10px 13px; }
.sup-cf-wide > small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px; }
.sup-cf.is-ed { cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.sup-cf.is-ed:hover, .sup-cf.is-ed:focus-visible { outline: none; border-color: color-mix(in srgb, var(--md) 45%, var(--line));
  box-shadow: 0 0 0 3px var(--md-soft); }
.sup-pen { margin-left: 6px; font-style: normal; font-size: 11px; letter-spacing: 0; color: var(--md); opacity: .35; transition: opacity .15s; }
.sup-cf.is-ed:hover .sup-pen, .sup-cf.is-ed:focus-visible .sup-pen { opacity: 1; }
.sup-cf.is-editing { border-color: var(--md); box-shadow: 0 0 0 3px var(--md-soft); }
.sup-cf.is-saved { animation: sup-saved 1.6s ease; }
@keyframes sup-saved { 0% { background: color-mix(in srgb, var(--md) 18%, transparent); } 100% { background: transparent; } }
.sup-cf-note .sup-card-note { padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 650; white-space: pre-wrap;
  background: color-mix(in srgb, #d92d20 9%, transparent); color: color-mix(in srgb, #d92d20 72%, var(--text)); }
.sup-ph { font-style: normal; font-size: 12px; color: var(--text-soft); }
.sup-chat-edit { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: var(--r-control);
  font-size: 11.5px; font-weight: 800; color: var(--md); border: 1px dashed color-mix(in srgb, var(--md) 45%, var(--line)); }
.sup-chat-edit:hover { background: var(--md-soft); }
.sup-cf-teachers .sup-tline + .sup-tline { margin-top: 6px; }

/* Редактор поля */
.sup-ed textarea, .sup-ed input, .sup-ed select { width: 100%; padding: 7px 9px; font: inherit; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-card); color: var(--text); }
.sup-ed textarea { resize: vertical; min-height: 64px; }
.sup-ed textarea:focus, .sup-ed input:focus, .sup-ed select:focus { outline: none; border-color: var(--md); box-shadow: 0 0 0 3px var(--md-soft); }
.sup-ed small { display: block; margin-top: 5px; font-size: 10.5px; line-height: 1.3; color: var(--text-soft);
  letter-spacing: 0; text-transform: none; font-weight: 500; }
.sup-ed-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sup-ed.is-saving { opacity: .55; }
.sup-ed-chat { display: grid; gap: 6px; }
.sup-ed-chat .sup-ed-act { margin-top: 2px; }
.sup-ed-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px; }
.sup-ed-inline input { width: auto; min-width: 160px; padding: 4px 7px; }

/* Общие кусочки: педагог с телефоном, мелкие кнопки, ссылки на чаты */
.sup-tline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 7px; }
.sup-tline + .sup-tline { margin-top: 5px; }
.sup-tline b { font-weight: 650; }
.sup-tline em { font-style: normal; font-size: 10.5px; color: var(--text-soft); }
.sup-tline .sup-phone { margin: 0; white-space: nowrap; }
.sup-mini { padding: 0 4px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--md); }
.sup-mini:hover { background: var(--md-soft); }
.sup-mini.is-add { color: var(--text-soft); }
.sup-chatlink { display: block; width: max-content; max-width: 100%; color: var(--md); font-weight: 650;
  text-decoration: none; overflow-wrap: anywhere; }
.sup-chatlink + .sup-chatlink { margin-top: 3px; }
.sup-chatlink:hover { text-decoration: underline; }
.sup-open { padding: 0; font: inherit; font-weight: 750; color: var(--text); text-align: left; }
.sup-open:hover { color: var(--md); text-decoration: underline; }
.sup-grid-hint { margin: 0 2px 10px; font-size: 12px; color: var(--text-soft); }

/* --- «Сегодня» --- */
.sup-today h3 span { margin-left: 8px; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: none; letter-spacing: 0; }
.sup-dcards { display: grid; gap: 8px; }
.sup-dcard { display: grid; grid-template-columns: 78px minmax(0, 1.35fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px;
  align-items: start; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-card); }
.sup-dcard.is-now { border-color: var(--md); box-shadow: 0 0 0 3px var(--md-soft); }
.sup-dcard.is-past, .sup-dcard.is-off { opacity: .58; }
.sup-dc-time b { display: block; font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sup-dc-time small { font-size: 11.5px; color: var(--muted); }
.sup-dc-time i { display: inline-block; margin-top: 5px; padding: 1px 8px; border-radius: 999px; font-style: normal;
  font-size: 10px; font-weight: 800; color: #fff; background: var(--md); }
.sup-dc-main .sup-open { font-size: 14px; }
.sup-dc-main small { display: block; margin-top: 2px; color: var(--muted); }
.sup-dc-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; color: var(--text-soft); }
.sup-dc-chats { display: grid; gap: 3px; }
.sup-dc-coord { margin-top: 3px; font-size: 11.5px; color: var(--text-soft); }

/* --- «Изменения» --- */
.sup-chg { display: grid; grid-template-columns: 46px minmax(170px, .9fr) minmax(0, 2fr); gap: 12px; width: 100%;
  padding: 11px 15px; text-align: left; color: inherit; border-bottom: 1px solid var(--line-soft); align-items: start; }
.sup-chg:last-child { border-bottom: 0; }
.sup-chg:hover { background: var(--surface-hover); }
.sup-chg .t { color: var(--text-soft); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.sup-chg .g { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.sup-chg .g b { flex-basis: 100%; font-weight: 750; }
.sup-chg .w { display: block; font-weight: 750; }
.sup-chg .d { display: block; margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.sup-chg .d s { opacity: .7; }
.sup-chg .d b { color: var(--text); font-weight: 650; }
.sup-chg.is-new .w { color: var(--md); }
.sup-chg.is-closed .w { color: var(--state-warn); }
.sup-chg.is-fresh { background: color-mix(in srgb, var(--brand) 5%, transparent); box-shadow: inset 3px 0 0 var(--brand); }
.sup-new { margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 800;
  color: #fff; background: var(--brand); vertical-align: 1px; }

@media (max-width: 760px) {
  .sup-tabs button { padding: 8px 12px; }
  .sup-note-chip { margin: 4px 0 0; display: block; width: max-content; }
  .sup-ed-row { grid-template-columns: minmax(0, 1fr); }
  .sup-dcard { grid-template-columns: 62px minmax(0, 1fr); gap: 10px 12px; }
  .sup-dc-who, .sup-dc-chats { grid-column: 2; }
  .sup-chg { grid-template-columns: 40px minmax(0, 1fr); }
  .sup-chg .x { grid-column: 2; }
}
