/* «Сроки» и «Нагрузка»: классы только этих двух экранов. Цвета и размеры — из tokens.css. */

/* ---------- нагрузка: специалисты (перенесено из макета load.html) ---------- */
.load { display: grid; grid-template-columns: 172px minmax(0, 1fr) 56px 76px 76px 92px; gap: 0 20px; align-items: center; }
.load__h { color: var(--text-3); font-size: 12.5px; padding: 0 0 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.load .r { text-align: right; font-variant-numeric: tabular-nums; }
.load .meter__track { margin-top: 0; }
.load b { font-weight: 500; }
.you { margin-left: 8px; height: 20px; padding: 0 7px; }

/* строка специалиста: столбцы те же, что у заголовка; щелчок раскрывает его обращения */
.load__row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin: 0 -20px; padding: 0 20px; cursor: pointer; }
.load__row:hover { background: var(--surface-2); }
.load__row > * { display: flex; align-items: center; min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--border); }
.load__row > .r { justify-content: flex-end; }
.load__row .meter__track { flex: 1; }
.load__name { gap: 8px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; cursor: pointer; }
.load__name .icon { color: var(--text-3); transition: transform .12s; }
.load__name[aria-expanded="true"] .icon { transform: rotate(90deg); }
.load__name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.load__name .you { margin-left: 0; }

/* раскрытая строка: первые обращения специалиста */
.load__detail { grid-column: 1 / -1; margin: 0 -20px; background: var(--bg); border-bottom: 1px solid var(--border); }
.load__detail .row { padding-left: 42px; }
.load__detail .state { padding: 20px; }
.load__more { padding: 10px 20px 12px 42px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; }

/* окно «Что кому передать»: одна таблица, группы «от кого → кому» */
.moves th:first-child, .moves td:first-child { padding-left: 0; }
.moves th:last-child, .moves td:last-child { padding-right: 0; }
.moves__group th { padding-top: 18px; color: var(--text); font-size: 13px; }
.moves__arrow { margin: 0 8px; color: var(--text-3); }
.moves__count { margin-left: 10px; color: var(--text-3); font-weight: 400; }
.moves tbody tr.moves__group:hover { background: none; }

/* ---------- сроки: календарь слева (выбор дня), фильтр по виду, справа короткий список по дням ---------- */
.day__title .dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.dl { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.dl__side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.cal { padding: 14px 14px 12px; }
.cal__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cal__head b { font-size: 13.5px; font-weight: 600; }
.cal__late { width: 100%; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; margin-bottom: 10px;
  border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12.5px; }
button.cal__late { cursor: pointer; }
.cal__late b { margin-left: auto; font-weight: 600; color: var(--text); }
.cal__late.is-hot { background: var(--critical-soft); color: var(--text); }
.cal__late[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow span { font-size: 11px; color: var(--text-3); text-align: center; padding-bottom: 2px; }
.cal__dow span:nth-child(n+6) { opacity: .6; }
.cell { position: relative; min-width: 0; overflow: hidden; height: 44px; border: 0; border-radius: 7px; padding: 4px 5px; background: var(--surface-2);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.cell__d { font-size: 10.5px; color: var(--text-3); line-height: 1; }
.cell__n { font-size: 15px; font-weight: 600; line-height: 1; align-self: flex-end; font-variant-numeric: tabular-nums; }
.cell--off { background: none; cursor: default; }
.cell--off .cell__d { opacity: .45; }
.cell--zero .cell__n { color: var(--text-3); font-weight: 400; font-size: 12px; }
.cell--we { opacity: .75; }
.cell[data-l="1"] { background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.cell[data-l="2"] { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); }
.cell[data-l="3"] { background: color-mix(in srgb, var(--accent) 34%, var(--surface-2)); }
.cell[data-l="4"] { background: color-mix(in srgb, var(--accent) 50%, var(--surface-2)); }
.cell--today { box-shadow: inset 0 0 0 1.5px var(--text-2); }
.cell--today .cell__d { color: var(--text); font-weight: 600; }
.cell[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.cell__hot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--critical); }
.cal__foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--text-3); }
.cal__foot i { width: 12px; height: 12px; border-radius: 3px; background: var(--surface-2); }
.cal__foot i:nth-of-type(2) { background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.cal__foot i:nth-of-type(3) { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); }
.cal__foot i:nth-of-type(4) { background: color-mix(in srgb, var(--accent) 34%, var(--surface-2)); }
.cal__foot i:nth-of-type(5) { background: color-mix(in srgb, var(--accent) 50%, var(--surface-2)); }
.cal__reset { margin-left: auto; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.kinds { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.kinds button { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: none;
  color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.kinds button .icon { color: var(--text-3); }
.kinds button b { margin-left: auto; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.kinds button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); font-weight: 500; }
.kinds button[aria-pressed="true"] b { color: var(--text); }
.kinds button:disabled { opacity: .45; cursor: default; }
.dl__list .day__head { position: sticky; top: 56px; z-index: 2; background: var(--bg); padding: 8px 0 6px; margin-bottom: 0; }
.dl__list .day + .day { margin-top: 12px; }
.drow { display: grid; grid-template-columns: 172px minmax(0, 1fr) auto auto 16px; gap: 14px; align-items: center; height: 42px; padding: 0 14px 0 16px;
  color: inherit; text-decoration: none; cursor: pointer; }
.drow:hover { background: var(--surface-2); }
.drow__main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.drow__main b { font-weight: 500; }
.drow__main span { color: var(--text-3); }
.drow__main .tag-demo { margin-left: 6px; vertical-align: 1px; }
.drow__who { font-size: 11.5px; color: var(--text-3); padding: 2px 7px; border-radius: 5px; background: var(--surface-2); }
.drow__chev { color: var(--text-3); }
button.drow { width: 100%; border: 0; background: none; font: inherit; text-align: left; }
.drow__who { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group > .drow { font-weight: 400; }
.group__more { color: var(--text-3); }
.group__toggle .drow__chev { transition: transform .15s; }
.group.is-open .group__toggle .drow__chev { transform: rotate(90deg); }
.group__items { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.group__items .drow { padding-left: 40px; grid-template-columns: 148px minmax(0, 1fr) auto auto 16px; }
.group__items .drow + .drow { border-top: 1px solid var(--border); }
.due-more { margin-top: 16px; color: var(--text-3); font-size: 12.5px; text-align: center; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } .dl__side { position: static; } }
