/* Кабинет менеджера: запись на прослушивание. Токены и формы — из c.css */
.adm-top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.adm-top .wrap { display: flex; align-items: center; gap: var(--s-4); height: 64px; }
.adm-role { font-weight: 600; color: var(--muted); padding-left: var(--s-4); border-left: 1px solid var(--line); }
.adm-top .btn { margin-left: auto; height: 40px; }
.adm-main { padding-block: var(--s-6) var(--s-8); }
.adm-h1 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: var(--s-3); }
.adm-tabs { margin: var(--s-2) 0 var(--s-5); }
.adm-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.adm-panel { padding-block: 0; }
.adm-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }

/* Заявки */
.adm-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.adm-filters .num { color: var(--muted); margin-left: 2px; }
.adm-filters [aria-pressed="true"] .num { color: #c8ccd1; }
.adm-group { font-size: 15px; margin: var(--s-5) 0 var(--s-2); color: var(--muted); font-weight: 600; }
.adm-group::first-letter { text-transform: uppercase; }
.adm-card { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: var(--s-2); background: var(--bg); }
.adm-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-card.is-off { background: var(--surface); }
.adm-card.is-off .adm-when b, .adm-card.is-off .adm-name b { text-decoration: line-through; color: var(--muted); }
.adm-when b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.adm-when small { color: var(--muted); }
.adm-who { display: grid; gap: 4px; min-width: 0; }
.adm-name { display: flex; flex-wrap: wrap; gap: 4px var(--s-3); align-items: baseline; }
.adm-name b { font-size: 16px; }
.adm-name a { color: var(--accent); font-variant-numeric: tabular-nums; }
.adm-name a:hover { text-decoration: underline; }
.adm-meta, .adm-note { margin: 0; color: var(--muted); font-size: 14px; }
.adm-note { color: var(--ink); }
.adm-memo { margin-top: var(--s-2); max-width: 520px; }
.adm-memo label { font-size: 12px; font-weight: 500; color: var(--muted); }
.field2.adm-memo textarea { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.adm-act { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 150px; }
.adm-act .btn { height: 36px; font-size: 14px; }
.adm-move { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; gap: var(--s-2); align-items: end; margin-top: var(--s-3); padding: var(--s-3); background: var(--surface); border-radius: var(--r-ctl); }
.adm-move .btn { height: 44px; }
.adm-empty { color: var(--muted); }
.pill { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill--new { background: var(--accent-soft); color: var(--accent-hover); }
.pill--confirmed { background: #e7f4ec; color: #1e5434; }
.pill--done { background: var(--tile); color: var(--ink); }
.pill--noshow { background: #fdecea; color: #8c1d18; }
.pill--cancelled { background: var(--tile); color: var(--muted); }

/* День */
.adm-dayhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.adm-date { height: 36px; border: 1px solid #b9bec5; border-radius: var(--r-ctl); padding: 0 10px; background: var(--bg); }
.adm-dayhead .btn { height: 36px; }
.adm-push { margin-left: auto; }
#dayNote .form-err { margin: 0 0 var(--s-3); }
.adm-gridwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.adm-grid { width: 100%; border-collapse: collapse; min-width: 330px; }
.adm-grid th, .adm-grid td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.adm-grid thead th { font-size: 13px; color: var(--muted); font-weight: 600; padding-block: 10px; }
.adm-grid tbody th { width: 72px; font-weight: 600; }
.adm-grid tr:last-child > * { border-bottom: 0; }
.adm-slot { display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 44px; padding: 4px 12px; border: 1px dashed #c9cdd3; border-radius: var(--r-ctl); color: var(--muted); font-size: 13px; text-align: left; transition: border-color .15s, background .15s; }
.adm-slot:not(.is-booked) { background: var(--bg); }
button.adm-slot:hover { border-color: var(--ink); color: var(--ink); }
.adm-slot.is-booked { border-style: solid; border-color: transparent; }
.adm-slot.is-booked b { font-size: 14px; color: var(--ink); }
.adm-slot.is-booked small { font-size: 12px; }
.adm-slot.is-blocked { border-style: solid; background: repeating-linear-gradient(-45deg, var(--surface) 0 6px, var(--tile) 6px 12px); color: var(--ink); }
.adm-slot.is-past { border-color: transparent; background: none; color: #9aa0a7; }
.adm-legend { font-size: 13px; color: var(--muted); margin: var(--s-3) 0 0; }

/* Расписание */
.adm-sched { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-5); align-items: start; }
.adm-box { border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5); display: grid; gap: var(--s-4); }
.adm-box h2 { font-size: 20px; }
.adm-box hr { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.adm-box > .btn { justify-self: start; }
.adm-box .row2 { align-items: start; }
.adm-days { border: 0; padding: 0; margin: 0; }
.adm-days .lbl2 { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
#sDays { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-wd { position: relative; }
.adm-wd input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.adm-wd span { display: grid; place-items: center; width: 48px; height: 40px; border: 1px solid #c9cdd3; border-radius: var(--r-ctl); font-weight: 600; font-size: 14px; color: var(--muted); }
.adm-wd input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.adm-wd input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.adm-addday { display: flex; gap: var(--s-2); align-items: end; }
.adm-addday .field2 { flex: 1; }
.adm-addday .btn { height: 44px; }
.adm-offs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.adm-offs li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 4px 4px 4px 12px; background: var(--surface); border-radius: var(--r-ctl); }
.adm-offs li.adm-empty { background: none; padding-left: 0; }
.adm-x { width: 36px; height: 36px; border: 0; border-radius: var(--r-ctl); background: none; display: grid; place-items: center; font-size: 16px; color: var(--muted); }
.adm-x:hover { background: var(--tile); color: var(--ink); }

@media (max-width: 900px) {
  .adm-sched { grid-template-columns: minmax(0, 1fr); }
  .adm-card { grid-template-columns: 64px minmax(0, 1fr); }
  .adm-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 0; }
  .adm-move { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .adm-move .field2:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .adm-role { display: none; }
  .adm-push { margin-left: 0; }
  .adm-grid th, .adm-grid td { padding: 3px 4px; }
  .adm-grid tbody th { width: 48px; font-size: 13px; }
  .adm-slot { padding: 4px 8px; }
}
