/* queries screen — styles specific to this screen only; shared styles live in tiye.css */

/* ---- Board (design p.18) */
.q-wrap { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.q-wrap > .kanban { flex: 1; min-height: 0; }
.q-wrap .kcol { min-height: 520px; }
.kcol-head .count-dot { background: var(--ink); height: 18px; min-width: 18px; font-size: 10.5px; padding: 0 5px; }
.q-colempty { color: var(--ink3); font-size: 12.5px; padding: 6px 4px; }
.qcard { gap: 4px; padding: 10px 12px 9px; }
.qcard .top { min-height: 24px; }
.qcard .top .sla { max-width: 120px; }
.qcard .line3 { max-width: 100%; }
.qcard .foot { margin-top: 5px; }
.qcard .foot .avatar { width: 20px; height: 20px; }
.qcard .foot .dash-av { width: 20px; height: 20px; }

/* Drag & drop between columns */
.qcard[draggable="true"] { cursor: grab; }
.qcard.dragging { opacity: .4; }
.kcol { transition: background-color .12s ease, outline-color .12s ease; outline: 2px solid transparent; outline-offset: -2px; }
.kcol.drop-on { background: var(--copper-tint); outline-color: var(--copper); }
.qcard.late:hover { border-color: #D98C8F; }

.sos-banner { padding: 14px 16px; min-height: 64px; }
.sos-banner .sos-box { padding: 6px 26px; font-size: 13.5px; }
.sos-banner .d b { font-weight: 600; }
.sos-banner .clock { flex: none; }
.sos-banner .clock .l { font-size: 12px; }
.sos-banner .clock .v { line-height: 1.1; }
.sos-banner .clock.over .v { background: #fff; color: var(--red); border-radius: 5px; padding: 0 8px; display: inline-block; margin-top: 2px; }
.sos-banner .btn.on-dark { color: var(--red); font-weight: 600; flex: none; }

.q-quote { background: var(--ground); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.q-sla.over, .q-red { color: var(--red); font-weight: 500; }
.q-sla.soon { color: var(--ochre); font-weight: 500; }

/* ---- SOS incident page (design p.19) */
.sos-top { min-height: 70px; gap: 16px; padding: 10px 20px 10px 14px; }
.sos-top.closed { background: var(--night); }
.sos-top .sos-box { padding: 7px 26px; font-size: 15px; flex: none; }
.sos-top .t { font-size: 20px; }
.sos-top .d .mono { font-size: 12.5px; }
.sos-top .clk { flex: none; text-align: right; }
.sos-top .clk + .clk { border-left: 1px solid rgba(255,255,255,.3); padding-left: 18px; }
.sos-top .clk:first-of-type { padding-left: 0; }
.sos-top .clk.over .v { background: #fff; color: var(--red); border-radius: 5px; padding: 0 8px; display: inline-block; }
.sos-top .clk .v { font-size: 27px; }
.sos-top .badge.lg { background: #fff; }
.sos-back { color: #fff; opacity: .85; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 6px; flex: none; }
.sos-back:hover { background: rgba(255,255,255,.14); opacity: 1; text-decoration: none; }
.sos-back .ico { width: 18px; height: 18px; }

.sos-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
.sos-col { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sos-col .card-head .title { font-size: 15px; }
.sos-scroll { flex: 1; min-height: 0; overflow-y: auto; }

.todo { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 12px 16px; min-height: 64px; }
.todo .t { font-size: 13.5px; line-height: 1.35; }
.todo .d { margin-top: 2px; line-height: 1.4; }
.todo .n svg { width: 12px; height: 12px; }
.todo .n svg path { stroke-width: 3.4; }
.todo-r { justify-self: end; }
.todo-wide { grid-column: 2 / span 2; min-width: 0; }
.todo .emerg { margin-top: 8px; }
.todo .emerg a { padding: 9px 6px 8px; border-radius: 5px; }
.todo .emerg a b { font-size: 20px; line-height: 1.1; }
.sos-notneeded { margin-top: 8px; background: var(--surface); }
.sos-phone { height: 44px; padding: 0 18px; font-size: 15px; font-weight: 500; border-color: var(--line-strong); }
.todo.focus .btn:not(.primary) { background: var(--surface); }

.sos-mapwrap { flex: none; height: 300px; min-height: 0; border-radius: var(--r-card) var(--r-card) 0 0; }
.sos-posbox { position: absolute; left: 10px; top: 10px; right: 64px; z-index: 550; background: var(--surface); border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.14); padding: 7px 11px; font-size: 12.5px; line-height: 1.45; max-width: 330px; }
.sos-posbox .ink3 { font-size: 12px; }
.sos-pin { width: 38px; height: 50px; transform: translate(-50%, -100%); position: absolute; left: 0; top: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.sos-nogps { position: absolute; inset: 0; justify-content: center; background: var(--sunk); padding: 24px; }
.sos-facts { padding: 14px 16px; border-top: 1px solid var(--line); overflow-y: auto; flex: 1; min-height: 0; }
.sos-kv { grid-template-columns: 124px minmax(0, 1fr); gap: 9px 12px; line-height: 1.45; }
.sos-kv .btn.link { font-size: 12.5px; margin-left: 6px; }

.sos-logbody { padding: 14px 16px; }
.sos-logbody .log { gap: 12px; }
.sos-logbody .log .e { grid-template-columns: 70px minmax(0, 1fr); line-height: 1.45; }
.sos-logbody .log .e b { font-weight: 600; }
.sos-record { border-top: 1px solid var(--line); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.sos-record .textarea { min-height: 64px; }

@media (max-width: 1280px) {
  .sos-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.qcard .top .ref { white-space: nowrap; flex: none; }
.qcard .top .badge { flex: none; }
.sos-top .clk .v { white-space: nowrap; }
