:root {
  --bg: #f5f7fb; --card: #fff; --text: #1d2433; --muted: #6b7489; --line: #e3e7ef;
  /* Brand colours taken from the Helply logo */
  --brand-orange: #f5a623; --brand-navy: #0b1b2b;
  --primary: #1f5fd1; --primary-ink: #fff;
  --ok: #1f9d55; --warn: #d98a00; --danger: #d64545; --info: #5b6bd6;
  /* Surfaces and tints. Every colour below is redefined in the dark theme (theme.css), so
     components never hard-code a colour. */
  --hover: #f1f4f9; --hover-2: #f5f7fb; --soft: #eef1f6; --sunken: #fafbfd; --warm-bg: #fff4e0; --navy-hover: #16304a;
  --blue-bg: #e5edfd; --blue-ink: #2447a8; --green-bg: #dcf3e5; --red-bg: #fde2e2; --red-ink: #a61b1b;
  --amber-bg: #fff1d6; --amber-ink: #9a6300; --orange-bg: #fdebd3; --orange-ink: #99560a; --violet-bg: #ebe8fb;
  --note-bg: #fffaf0; --callout-bg: #fff8eb; --track: #d5dbe6; --stage-idle: #8a94a8; --ring: #d6e2fb;
  --flash-from: #fff1c2; --flash-bg: #fff8e1;
  --on-navy: #fff; /* text on a --brand-navy button */
  color-scheme: light;
}* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: .4rem 0 1rem; }
h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.pre { white-space: pre-wrap; }

/* App shell: sidebar on the left, content on the right */
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.2rem;
           padding: 1rem .75rem; background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .55rem; padding: .25rem .6rem .9rem; border-bottom: 3px solid var(--brand-orange);
         font-weight: 800; font-size: 1.25rem; color: var(--brand-navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.side-nav { display: flex; flex-direction: column; gap: .2rem; }
.side-nav a { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: 8px;
              border-left: 3px solid transparent; color: var(--text); font-weight: 500; }
.side-nav a:hover { background: var(--hover); text-decoration: none; }
.side-nav a.active { background: var(--warm-bg); border-left-color: var(--brand-orange); color: var(--brand-navy); font-weight: 700; }
.side-nav svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8;
                stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.side-nav a:hover svg, .side-nav a.active svg { color: var(--brand-navy); }
.side-nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.app-main { min-width: 0; }  /* plain block: the content then always takes the column width */
.topbar { display: flex; justify-content: flex-end; align-items: center; padding: .55rem 1.5rem; background: var(--card);
          border-bottom: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
/* Narrow screens: the sidebar becomes a row of icons along the top */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: .5rem; padding: .5rem .75rem;
             border-right: 0; border-bottom: 3px solid var(--brand-orange); overflow-x: auto; }
  .brand { border-bottom: 0; padding: 0 .4rem 0 0; }
  .side-nav { flex-direction: row; }
  .side-nav a { border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; padding: .5rem .6rem; }
  .side-nav a.active { border-bottom-color: var(--brand-orange); }
  .side-nav a span, .brand span { display: none; }
}
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem 16px 3rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.card.narrow { max-width: 680px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 800px) { .grid2, .grid-detail { grid-template-columns: minmax(0, 1fr); } }  /* minmax(0,..): long titles must shrink, not widen the page */
.row-between { display: flex; justify-content: space-between; align-items: center; }


table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: none; letter-spacing: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; }

.btn { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--text); cursor: pointer; font: inherit; }
.btn:hover { border-color: var(--primary); text-decoration: none; }
.btn.primary { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--primary-ink); }
.btn.primary:hover { background: var(--navy-hover); }
.btn.wide { width: 100%; }
button.link { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; padding: 0; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.actions form { display: flex; gap: .4rem; }

input, select, textarea { font: inherit; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 7px; width: 100%; max-width: 100%; background: var(--card); }
input[type=checkbox] { width: auto; }
.actions input { width: 220px; }
form p label { display: block; font-weight: 600; margin-bottom: .2rem; }
.helptext { display: block; color: var(--muted); font-size: .85rem; }
.search { display: flex; gap: .5rem; margin-bottom: 1rem; }

.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; background: var(--soft); color: var(--text); white-space: nowrap; }
.p-P1 { background: var(--red-bg); color: var(--red-ink); } .p-P2 { background: var(--orange-bg); color: var(--orange-ink); }
.p-P3 { background: var(--blue-bg); color: var(--blue-ink); } .p-P4 { background: var(--soft); color: var(--muted); }
.sla-ok, .sla-met { background: var(--green-bg); color: var(--ok); } .sla-at_risk { background: var(--amber-bg); color: var(--warn); }
.sla-breached { background: var(--red-bg); color: var(--danger); } .sla-paused { background: var(--violet-bg); color: var(--info); }
.st-resolved, .st-closed { background: var(--green-bg); color: var(--ok); } .st-cancelled { color: var(--muted); }
.st-in_progress { background: var(--blue-bg); color: var(--blue-ink); } .st-on_hold { background: var(--violet-bg); color: var(--info); }
.role { padding: .05rem .4rem; border-radius: 5px; background: var(--soft); }
.role-administrator { background: var(--orange-bg); } .role-technician { background: var(--blue-bg); }

.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; background: var(--blue-bg); }
.flash-success { background: var(--green-bg); } .flash-error { background: var(--red-bg); }
.filters a { margin-right: .7rem; } .filters a.on { font-weight: 700; text-decoration: underline; }
.comment { border-left: 3px solid var(--line); padding: .2rem .8rem; margin-bottom: .8rem; }
.comment.internal { border-color: var(--warn); background: var(--note-bg); }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: 0 0 1rem; } dt { color: var(--muted); } dd { margin: 0; }

.login { max-width: 380px; margin: 4rem auto; text-align: center; }
.login form { text-align: left; }
.login-logo { width: 88px; height: 88px; object-fit: contain; }
.login h1 { color: var(--brand-navy); margin-top: .5rem; }

/* Knowledge base */
.kb-item { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.kb-item:last-child { border-bottom: 0; }
.kb-item p { margin: .15rem 0 0; font-size: .92rem; }
.internal-badge { background: var(--amber-bg); color: var(--amber-ink); }
.kb-article { line-height: 1.65; }
.kb-article h1 { margin-bottom: .3rem; }
.kb-article h2 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
.kb-article h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.kb-article ol, .kb-article ul { padding-left: 1.4rem; }
.kb-article li { margin: .3rem 0; }
.kb-article code { background: var(--soft); border-radius: 4px; padding: .05rem .35rem; font-size: .9em; }
.kb-article hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0 1rem; }
.lead { font-size: 1.05rem; color: var(--muted); }
.callout { border-left: 4px solid var(--brand-orange); background: var(--callout-bg); padding: .6rem .9rem; border-radius: 0 8px 8px 0; margin: .8rem 0; }
.feedback { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.feedback .vote { display: inline-flex; align-items: center; gap: .35rem; font-size: 1rem; transition: background .15s, border-color .15s; }
.feedback .vote .count { min-width: 1.2em; font-weight: 600; font-variant-numeric: tabular-nums; text-align: left; }
.feedback .vote:disabled { cursor: progress; }
.feedback .vote-up.active { background: var(--green-bg); border-color: var(--ok); color: var(--ok); }
.feedback .vote-down.active { background: var(--red-bg); border-color: var(--danger); color: var(--danger); }
.suggest { margin-top: .9rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--sunken); }
.suggest label { display: block; margin-bottom: .5rem; }
.suggest textarea { resize: vertical; }
.suggest-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.suggest-actions a { margin-left: auto; }
.suggest p { margin: 0; }
[hidden] { display: none !important; }
/* Wraps instead of squeezing: when the page is zoomed the Save button drops below the select,
   and the select never shrinks below a readable width. */
dd:has(> .inline-form) { min-width: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-width: 0; }
.inline-form select { padding: .25rem .4rem; flex: 1 1 9rem; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.small-btn { padding: .25rem .6rem; font-size: .85rem; }
.stars { color: var(--brand-orange); letter-spacing: .05em; font-size: 1.05rem; }
.filter-count { display: inline-block; min-width: 1.5em; padding: 0 .4em; margin-left: .15rem; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .8em; text-align: center; font-weight: 600; }
.filters a.on .filter-count { background: var(--brand-navy); color: var(--primary-ink); }

/* Dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.dash-head h1 { margin-bottom: .1rem; }
.dash-head p { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kpis, .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; gap: .15rem; background: var(--card); border: 1px solid var(--line);
       border-left: 4px solid var(--line); border-radius: 10px; padding: .85rem 1rem; color: var(--text); }
a.kpi:hover { border-color: var(--primary); text-decoration: none; }
.kpi-label { font-size: .75rem; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 1.9rem; font-weight: 700; line-height: 1.15; }
.kpi-value small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.kpi-sub { font-size: .82rem; color: var(--muted); }
.kpi-danger { border-left-color: var(--danger); }
.kpi-danger .kpi-value { color: var(--danger); }
.kpi-warn { border-left-color: var(--warn); }
.kpi-warn .kpi-value { color: var(--warn); }
.t-danger { color: var(--danger); font-weight: 600; } .t-warn { color: var(--warn); font-weight: 600; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.dash-side { display: flex; flex-direction: column; gap: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.empty { color: var(--muted); padding: .8rem 0; margin: 0; }
.upper { text-transform: none; letter-spacing: 0; margin: 1.2rem 0 .4rem; }

.attn-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .5rem; margin: 0 -.5rem;
            border-bottom: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.attn-row:last-of-type { border-bottom: 0; }
.attn-row:hover { background: var(--hover-2); text-decoration: none; }
.attn-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.attn-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attn-meta { font-size: .82rem; color: var(--muted); }
.chip { flex-shrink: 0; font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.chip-danger { background: var(--red-bg); color: var(--danger); font-weight: 600; }
.chip-warn { background: var(--amber-bg); color: var(--amber-ink); font-weight: 600; }
.chip-paused { background: var(--violet-bg); color: var(--info); }

.bar-row { display: grid; grid-template-columns: 6.5rem 1fr 4.2rem; align-items: center; gap: .6rem; padding: .35rem 0; color: var(--text); }
a.bar-row:hover { text-decoration: none; } a.bar-row:hover .bar-label { color: var(--primary); }
.bar-label { font-size: .9rem; }
.bar { height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--brand-navy); border-radius: 999px; min-width: 2px; }
.stage-not_started { background: var(--stage-idle); } .stage-in_progress { background: var(--primary); }
.stage-on_hold { background: var(--info); } .stage-resolved { background: var(--ok); }
.bar-value { font-size: .9rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.self-help h2 { margin-bottom: .6rem; }
.self-help .search { margin-bottom: .4rem; }
.confirm-card { border-left: 4px solid var(--ok); }
.ticket-progress { display: block; padding: .75rem .5rem; margin: 0 -.5rem; border-bottom: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.ticket-progress:hover { background: var(--hover-2); text-decoration: none; }
.ticket-progress .attn-title, .ticket-progress .attn-meta { display: block; }
.stepper { display: flex; list-style: none; padding: 0; margin: .6rem 0 0; counter-reset: step; }
.stepper li { flex: 1; position: relative; font-size: .78rem; color: var(--muted); padding-top: 1.1rem; text-align: center; }
.stepper li::before { content: ""; position: absolute; top: .25rem; left: 50%; transform: translateX(-50%); width: .7rem; height: .7rem;
                      border-radius: 50%; background: var(--track); z-index: 1; }
.stepper li + li::after { content: ""; position: absolute; top: .55rem; right: 50%; width: 100%; height: 2px; background: var(--track); }
.stepper .step-done::before, .stepper .step-done::after, .stepper .step-current::after { background: var(--ok); }
.stepper .step-current::before { background: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.stepper .step-current { color: var(--text); font-weight: 600; }
.search button { white-space: nowrap; }

/* Assets */
.asset-toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.asset-toolbar input[type=search] { flex: 1; min-width: 220px; }
.asset-toolbar select { width: auto; }
.type-filters { margin: .2rem 0 .8rem; }
.asset-table td { vertical-align: middle; }
.asset-table .chip { margin-right: .25rem; }
.asset-cell { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.asset-cell:hover b { color: var(--primary); text-decoration: underline; }
.asset-cell:hover { text-decoration: none; }
.asset-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; flex-shrink: 0;
              border-radius: 8px; background: var(--soft); font-size: 1.15rem; }
.asset-icon.big { width: 3rem; height: 3rem; font-size: 1.6rem; border-radius: 10px; }
.asset-title { display: flex; gap: .9rem; align-items: center; }
.asset-title h1 { margin: 0 0 .15rem; }
.asset-title p { margin: 0; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.as-in_use { background: var(--green-bg); color: var(--ok); }
.as-in_stock { background: var(--blue-bg); color: var(--blue-ink); }
.as-in_repair { background: var(--amber-bg); color: var(--amber-ink); }
.as-retired { background: var(--soft); color: var(--muted); }
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.device-card { display: flex; flex-direction: column; margin: 0; }
.device-card dl { margin: .9rem 0; flex: 1; }
.device-top { display: flex; gap: .8rem; align-items: center; color: var(--text); }
.device-top:hover { text-decoration: none; } .device-top:hover b { color: var(--primary); }

/* Notifications */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
        border-radius: 8px; color: var(--brand-navy); }
.bell:hover { background: var(--soft); text-decoration: none; }
.bell-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
              background: var(--danger); color: var(--primary-ink); font-size: .68rem; font-weight: 700; line-height: 17px; text-align: center; }
.note-row { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .5rem; margin: 0 -.5rem; border-bottom: 1px solid var(--line);
            border-radius: 6px; color: var(--text); }
.note-row:last-of-type { border-bottom: 0; }
.note-row:hover { background: var(--hover-2); text-decoration: none; }
.note-dot { width: 8px; height: 8px; margin-top: .5rem; border-radius: 50%; flex-shrink: 0; background: transparent; }
.note-row.unread .note-dot { background: var(--primary); }
.note-row:not(.unread) .attn-title { font-weight: 500; color: var(--muted); }
.note-body { font-size: .85rem; color: var(--muted); margin-top: .15rem; white-space: pre-line; }
.chip-new { background: var(--blue-bg); color: var(--blue-ink); font-weight: 600; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .3rem; }

/* Live updates */
.live-badge { display: inline-flex; align-items: center; gap: .35rem; margin-left: .5rem; padding: .05rem .55rem; border-radius: 999px;
              background: var(--green-bg); color: var(--ok); font-size: .75rem; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-badge[data-state="fresh"] { background: var(--blue-bg); color: var(--blue-ink); }
.live-badge[data-state="warn"] { background: var(--amber-bg); color: var(--amber-ink); }
@keyframes row-flash { from { background: var(--flash-from); } to { background: transparent; } }
tr.just-updated td, .just-updated { animation: row-flash 4s ease-out; }
@media (prefers-reduced-motion: reduce) {
  tr.just-updated td, .just-updated { animation: none; background: var(--flash-bg); }
}
.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Dashboard: company overview ---------- */
.ov-title { margin: 1.6rem 0 .8rem; font-size: 1.05rem; }
.ov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.ov-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ov-grid, .ov-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.ov-card { margin-bottom: 0; }
.dot { display: inline-block; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot-healthy { background: var(--ok); } .dot-warning { background: var(--warn); } .dot-critical { background: var(--danger); }
.dot-offline { background: var(--stage-idle); } .dot-pending { background: var(--primary); }
.dot-role-administrator { background: var(--brand-orange); } .dot-role-technician { background: var(--primary); } .dot-role-employee { background: var(--ok); }
.seg-bar { display: flex; height: 10px; margin: .2rem 0 .7rem; border-radius: 999px; overflow: hidden; background: var(--soft); gap: 2px; }
.seg { display: block; min-width: 4px; height: 100%; }
.seg-healthy { background: var(--ok); } .seg-warning { background: var(--warn); } .seg-offline { background: var(--stage-idle); } .seg-pending { background: var(--primary); }
.ov-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .9rem; font-size: .84rem; color: var(--muted); }
.ov-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ov-legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.ov-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .2rem 0 .9rem; padding: .75rem 0; border-block: 1px solid var(--line); }
.ov-stats div { display: flex; flex-direction: column; min-width: 0; }
.ov-stats b { font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ov-stats span { font-size: .76rem; color: var(--muted); }
.ov-big { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.ov-big b { font-size: 2.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ov-big span { color: var(--muted); font-size: .88rem; }
.ov-flag { width: 16px; height: 12px; border-radius: 2px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.chip-ok { background: var(--green-bg); color: var(--ok); font-weight: 600; }
.bar-fill.bar-warn { background: var(--warn); }
.bar-row .bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .attn-row + .ov-stats { margin-top: .6rem; }
.ov-card .bar-row { grid-template-columns: 8.4rem minmax(0, 1fr) 2.2rem; }  /* long department names ("Customer Service") fit */

/* Assets: bulk Excel import / export */
.dash-head .head-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.bulk-import { margin-bottom: 1rem; }
.bulk-import > summary { cursor: pointer; font-weight: 500; }
.bulk-import-form { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.bulk-import-form input[type=file] { flex: 1; min-width: 220px; max-width: 100%; }
.bulk-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.bulk-actions form { margin: 0; }
.bulk-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }
.bulk-import h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.bulk-import-head { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: .75rem; }
.bulk-import-head p { margin: 0; max-width: 60ch; }
.bulk-import[hidden] { display: none; }
.bulk-import-buttons { display: flex; gap: .75rem; align-items: center; }
