/* Вкладка «Очереди» и страница очереди. */

.headline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.headline h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.headline h2 { margin: 0; font-size: 15px; font-weight: 600; }
.headline p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.headline.section { margin-top: 26px; }
.back { margin: 0 0 10px; font-size: 13px; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }

.causes { margin-bottom: 14px; }
.cause-list { display: grid; gap: 2px; padding: 8px 14px 12px; }
.cause { display: grid; grid-template-columns: minmax(200px, 1.2fr) 70px minmax(80px, 1fr) minmax(160px, 1.6fr); gap: 12px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.cause .mono { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cause .num { text-align: right; }
.cause-bar { height: 4px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.cause-bar i { display: block; height: 100%; width: 0; background: var(--warn); opacity: .75; }
.cause .faint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

.q-list { overflow: hidden; }
.q-cols { display: grid; grid-template-columns: 14px minmax(220px, 1.4fr) 120px 120px minmax(200px, 1.8fr); gap: 16px; align-items: center; }
.cols-head { padding: 10px 14px 6px; font-size: 11.5px; color: var(--faint); }
.cols-head > span:nth-child(3), .cols-head > span:nth-child(4) { text-align: right; }
.q-row { border-top: 1px solid var(--line-soft); }
.q-row > summary { list-style: none; cursor: pointer; padding: 10px 14px; transition: background .15s; }
.q-row > summary::-webkit-details-marker { display: none; }
.q-row > summary:hover, .q-row[open] > summary { background: var(--panel-2); }
.q-row[open] > summary .chev { transform: rotate(90deg); }
.q-row.v-down { box-shadow: inset 3px 0 0 var(--down); }
.q-row.v-warn { box-shadow: inset 3px 0 0 var(--warn); }
.q-row.is-slim > summary { padding-block: 7px; }
.q-row.is-slim .q-title { font-weight: 400; color: var(--ink-2); }
.q-title { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 500; }
.q-title > span:not(.dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-num { text-align: right; font: 13px var(--mono); font-variant-numeric: tabular-nums; }
.q-num small { display: block; font: 11px var(--sans); color: var(--faint); }
.q-num small .dl { font-size: 11px; }
.q-graph .chart { display: block; min-height: 30px; }
.q-graph .timeline { height: 12px; }

.q-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; padding: 8px 14px 16px 44px; background: var(--panel-2); animation: unfold .22s ease-out; }
@keyframes unfold { from { opacity: 0; transform: translateY(-4px); } }
.q-detail h3 { margin: 12px 0 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.q-detail p { margin: 0 0 8px; max-width: 70ch; color: var(--ink-2); font-size: 13px; }
.q-detail .why { color: var(--warn-ink); }
.q-depth { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 10px; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.chip.c-warn { background: var(--warn-soft); border-color: transparent; }
.chip.c-down { background: var(--down-soft); border-color: transparent; }
.lines { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; margin: 4px 0 0; font-size: 12.5px; }
.lines dt { color: var(--muted); white-space: nowrap; }
.lines dd { margin: 0; color: var(--ink-2); }
.problems { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 3px; }
.more > summary { list-style: none; cursor: pointer; margin-top: 6px; font-size: 12.5px; color: var(--accent); }
.more > summary::-webkit-details-marker { display: none; }
.tl-axis { display: flex; justify-content: space-between; margin-top: 4px; font: 10px var(--mono); color: var(--faint); }

@media (max-width: 1100px) {
  .q-cols { grid-template-columns: 14px minmax(0, 1fr) 90px; }
  .q-cols > :nth-child(4), .q-cols > :nth-child(5) { display: none; }
  .q-detail { grid-template-columns: minmax(0, 1fr); padding-left: 14px; }
  .cause { grid-template-columns: minmax(0, 1fr) 60px; }
  .cause > :nth-child(3), .cause > :nth-child(4) { display: none; }
}
