/* HQ Platform – department dashboard on the company HQ sites (hq-v2-dash-co-web, Lea). Same look as the
   Command Centre's department dashboard (cc.css "department dashboard"); only the shared variables from style.css. Phone first. */
.dept-page { display: grid; gap: 14px; }
.dept-page > * { min-width: 0; margin-bottom: 0; }
.dept-link-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.dept-link-card p { margin: 0; overflow-wrap: anywhere; }
.dept-link-card .btn { flex: none; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.dash-head > div { min-width: 0; }
.dash-co { margin: 0; }
.dash-head p { margin: 2px 0 0; overflow-wrap: anywhere; }
.dash-head .seg { margin-bottom: 0; }
.dash-card { display: grid; gap: 4px; align-content: start; margin: 0; min-width: 0; }
.dash-label { margin: 0; font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dash-money { font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.dash-val { margin: 0; font-family: var(--f-head); font-size: 1.8rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.dash-when { margin: 0 0 4px; }
.dash-plot { position: relative; touch-action: pan-y; }
.dash-chart { display: block; width: 100%; height: auto; overflow: visible; }
.dash-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dash-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.dash-ring { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.dash-base { stroke: var(--line); stroke-width: 1; }
.dash-gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.dash-hair { stroke: var(--muted); stroke-width: 1; }
.dash-axis { fill: var(--muted); font-size: 10px; font-family: var(--f-body, inherit); }
.dash-tip { position: absolute; top: -6px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; padding: 3px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.dash-table summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--brand); }
.dash-table .table { width: 100%; font-size: .86rem; }
.dept { padding: 0; margin-bottom: 0; }
.dept > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.dept > summary::-webkit-details-marker { display: none; }
.dept > summary > div { min-width: 0; }
.dept-title { margin: 0; font-size: 1.15rem; }
.dept-sum p { margin: 2px 0 0; }
.dept-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dept-body { padding: 0 16px 16px; display: grid; gap: 14px; min-width: 0; }
.dept-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) { .dept-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .dept-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dept-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.dept-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .dept-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dept-col { min-width: 0; }
.dept-col h4 { margin: 0 0 6px; }
.dept-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.dept-list li { overflow-wrap: anywhere; }
.dept-urgent { border-color: var(--red); margin-bottom: 0; }
.dept-urgent h3 { margin: 0 0 8px; }
.dept-files, .dept-readonly { margin: 0; overflow-wrap: anywhere; }
.dept-bars { display: grid; gap: 3px; margin-top: 6px; }
.dept-bars p { margin: 0; }
.dept-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; font-size: .8rem; }
.dept-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dept-bar-track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.dept-bar-fill { display: block; height: 100%; background: var(--brand); }
.dept-bar-val { font-variant-numeric: tabular-nums; }
