/* =====================================================================
   Design D · Command (after the client's reference shot, in HADS colours)
   White app frame on light grey; labelled sidebar with counts, the active item lifted as a card;
   a main panel whose top carries a light HADS-blue band behind the greeting; bordered white cards,
   large light numerals, a donut, next-step cards in a row, an action feed table. Type: Outfit.
   ===================================================================== */
body.ds-d {
  --font: 'Outfit', system-ui, sans-serif; --font-h: 'Outfit', system-ui, sans-serif;
  --bg: #E9EDF1; --surface: #FFFFFF; --surface-solid: #FFFFFF; --surface-2: #F4F7FA; --ink: #102236; --ink-2: #3A4A5C; --muted: #657385; --line: #E3E8EE; --line-2: #EEF2F6;
  --primary: #0B5384; --primary-h: #08426A; --on-primary: #fff; --link: #0B5FA0; --focus: #2E9BE0;
  --track: #E6ECF2; --ring: #0B5384; --radius: 12px; --radius-lg: 20px; --shadow: none; --shadow-lg: 0 24px 60px -20px rgba(16, 34, 54, .28);
  --brand: #0B5384; --brand-d: #0A3A60; --sky: #2E9BE0;
  --k-case: #0B5384; --k-comp: #1E9A57; --k-doc: #E39A1B; --k-ret: #2E9BE0;
  --c-progress: #0B5FA0; --p-progress: #E5F0FA; --c-done: #1E8A4F; --p-done: #E3F5EA; --c-awaiting: #B6551B; --p-awaiting: #FDEEDF; --c-danger: #C93A2E; --p-danger: #FDE7E4; --c-pending: #8C6400; --p-pending: #FCF2D8;
  background: #E9EDF1;
}

/* ---------- Shared pieces ---------- */
.dc { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.dc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.dc-h h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.dc-h.wrap { flex-wrap: wrap; }
.dc-i { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: var(--kc, var(--brand)); background: color-mix(in srgb, var(--kc, var(--brand)) 12%, #fff); }
.k-sign, .k-approve { --kc: var(--k-case); } .k-upload { --kc: var(--k-doc); }
.big { font-size: 54px; font-weight: 300; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dk-row { display: flex; align-items: baseline; gap: 12px; } .dk-row span { font-size: 15px; color: var(--ink-2); }
.dc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.dc-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.dc-meta.txt { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.55; } .dc-meta b { color: var(--ink); font-weight: 600; }
.chip-d { padding: 2px 10px; border-radius: 999px; background: var(--p-done); color: var(--c-done); font-weight: 600; font-size: 12.5px; }
.dbar-l { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); } .dbar-l b { font-weight: 600; color: var(--ink); }
.bar-d { display: block; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar-d > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0B5384, #2E9BE0); }
.btn-o { display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-top: 16px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .15s, background .15s; }
.btn-o:hover { border-color: var(--brand); color: var(--brand); }
.btn-o.sm { height: 36px; margin: 0; padding: 0 14px; font-size: 13.5px; }
.link-d { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-2); }
.link-d:hover { color: var(--brand); }
.ta-r { text-align: right !important; }

/* ---------- Shell ---------- */
/* fullscreen: the app fills the viewport edge to edge, no floating frame */
.dash-d { min-height: 100vh; min-height: 100dvh; background: #fff; }
.df { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: #fff; transition: grid-template-columns .25s ease; }
.df-side { position: sticky; top: 0; z-index: 20; height: 100vh; height: 100dvh; display: flex; flex-direction: column; min-width: 0; padding: 20px 16px 16px; border-right: 1px solid var(--line); background: #fff; }
.df-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.df-brand img { height: 26px; width: auto; }
.df-close, .df-menu { display: none; }
.df-nav { display: grid; gap: 4px; align-content: start; flex: 1; overflow-y: auto; }
.df-link { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 400; text-align: left; transition: background .15s, color .15s; }
.df-link .ic { color: var(--muted); flex: none; }
.df-link span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-link em { font-style: normal; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.df-link:hover { background: var(--surface-2); color: var(--ink); }
.df-link.on { background: #fff; border-color: var(--line); box-shadow: 0 2px 8px -4px rgba(16, 34, 54, .18); color: var(--ink); font-weight: 500; }
.df-link.on .ic { color: var(--brand); }
.df-link.on em { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; }
.df-me-a { margin-top: 12px; }
.df-me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, #E3F0FB, #F1F7FD); text-align: left; }
.df-me .av { background: var(--brand); }
.df-me > span:not(.av) { flex: 1; display: grid; min-width: 0; line-height: 1.3; } .df-me b { font-size: 14px; font-weight: 500; } .df-me small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-me-a .pop { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
/* collapsed sidebar: icons only */
.dash-d.collapsed .df { grid-template-columns: 80px minmax(0, 1fr); }
.dash-d.collapsed .df-brand { flex-direction: column; } .dash-d.collapsed .df-brand img { width: 44px; height: auto; object-fit: cover; object-position: left; }
.dash-d.collapsed .df-col { transform: rotate(180deg); }
.dash-d.collapsed .df-link { justify-content: center; padding: 0; position: relative; } .dash-d.collapsed .df-link span { display: none; }
.dash-d.collapsed .df-link em { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
.dash-d.collapsed .df-me > span:not(.av), .dash-d.collapsed .df-me > .ic { display: none; } .dash-d.collapsed .df-me { justify-content: center; padding: 8px 0; }
/* main panel with the blue band at the top */
.df-main { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(900px 300px at 10% 0%, #CFE5F7 0%, transparent 70%), radial-gradient(800px 280px at 90% 8%, #E1EEFB 0%, transparent 70%), linear-gradient(180deg, #E6F1FB 0, #F2F7FC 200px, #fff 290px); }
.df-top { display: flex; align-items: center; gap: 12px; padding: 20px clamp(20px, 3vw, 40px) 0; }
.gsearch.d { flex: 1; max-width: 300px; }
.gsearch.d label { height: 42px; padding: 0 12px 0 14px; border-radius: 999px; background: #fff; color: var(--muted); box-shadow: 0 1px 2px rgba(16, 34, 54, .05); }
.gsearch.d input { color: var(--ink); } .gsearch.d kbd { display: none; }
.df-top-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.df-top-r .bell { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 34, 54, .05); --bell-ring: #fff; }
.df-content { flex: 1; padding: 20px clamp(20px, 3vw, 40px) 40px; min-width: 0; }

/* page heads sit on the band, with light large type */
.ds-d .page-head { margin: 4px 0 28px; align-items: flex-end; }
.ds-d .page-title { font-size: 40px; font-weight: 400; letter-spacing: -.025em; }
.ds-d .page-sub { color: var(--ink-2); font-size: 15px; }
.dh { margin: 6px 0 30px; }
.dh-date { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.dh h1 { font-size: clamp(34px, 3.6vw, 46px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.dh-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }

/* shared module components in the Command look */
.ds-d .panel, .ds-d .card, .ds-d .glass { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: none; }
.ds-d .btn { border-radius: 999px; font-weight: 500; }
.ds-d .btn-ghost { background: #fff; }
.ds-d .tabs { gap: 6px; }
.ds-d .tab { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
.ds-d .tab:hover { background: #E8EEF4; }
.ds-d .tab.on { background: var(--brand); color: #fff; } .ds-d .tab.on em { background: rgba(255, 255, 255, .2); color: #fff; }
.ds-d .tab em { background: transparent; }
.ds-d .search-field, .ds-d .select-field { border-radius: 999px; }
.ds-d .table th { background: var(--surface-2); border: 0; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--muted); padding: 12px 14px; }
.ds-d .table th:first-child { border-radius: 12px 0 0 12px; } .ds-d .table th:last-child { border-radius: 0 12px 12px 0; }
.ds-d .table td { padding: 14px; }
.ds-d .eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.ds-d .panel-h h2 { font-weight: 500; }
.ds-d .mp { border-radius: 18px; } .ds-d .mp.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.ds-d .next-card { background: linear-gradient(135deg, #0A3A60, #0B5384 60%, #2E9BE0); color: #fff; border: 0; } .ds-d .next-card .eyebrow, .ds-d .next-card .muted { color: #CFE4F6; }
.ds-d .crow { border-radius: 14px; }
.ds-d .ts-sum { border-radius: 20px; box-shadow: none; }
.ds-d .ts-sum b, .ds-d .ret-big, .ds-d .strip-c b { font-weight: 300; }
.ds-d .ret-m { border-radius: 18px; }
.ds-d .callout { border-radius: 14px; }
.ds-d .hcase.on { background: var(--p-progress); }
.ds-d .note { background: var(--surface-2); }
.ds-d .md-grid { background: var(--surface-2); border-radius: 14px; }
.ds-d .modal { border-radius: 24px; }
.ds-d .pop { border-radius: 18px; }
.ds-d .toast { border-radius: 999px; background: var(--brand-d); }

/* ---------- Dashboard ---------- */
.ov-d { display: grid; gap: 16px; }
.ov-d .dh { margin-bottom: 14px; }
.d3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dn-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dnut { position: relative; width: 140px; height: 140px; flex: none; }
.dnut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dnut b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; font-weight: 300; letter-spacing: -.02em; }
.dn-leg { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; flex: 1; min-width: 140px; }
.dn-leg li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.dn-leg i { width: 10px; height: 10px; border-radius: 2px; flex: none; } .dn-leg span { flex: 1; }
.dn-leg b { font-size: 24px; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--ink); }
.sch-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.sch { display: grid; gap: 4px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.sch:hover { border-color: #C9D7E4; box-shadow: 0 6px 18px -12px rgba(16, 34, 54, .3); }
.sch-top { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--muted); } .sch-top b { font-weight: 500; color: var(--ink); }
.sch.first .sch-top b { color: var(--brand); }
.sch-t { margin-top: 10px; font-size: 18px; font-weight: 400; color: var(--ink); line-height: 1.3; }
.sch.first .sch-t, .sch.first .sch-s { padding-left: 12px; border-left: 2px solid var(--brand); }
.sch-s { font-size: 13px; color: var(--muted); line-height: 1.4; }
.sch-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sch-f > span { display: grid; gap: 2px; justify-items: start; } .sch-f small { font-size: 12px; color: var(--muted); } .sch-f b { font-size: 14px; font-weight: 500; }
.st { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 500; }
.st-wait { background: var(--p-awaiting); color: var(--c-awaiting); } .st-soon { background: var(--p-done); color: var(--c-done); } .st-up { background: var(--surface-2); color: var(--ink-2); }
.fp { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.fp button { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.fp button:hover { background: #E8EEF4; } .fp button.on { background: var(--brand); color: #fff; }
.fd-it { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fd-it > span:last-child { display: grid; min-width: 0; } .fd-it b { font-size: 14.5px; font-weight: 500; } .fd-it small { font-size: 12.5px; color: var(--muted); }
.fd-it .dc-i { width: 40px; height: 40px; }
.fd-c { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.pill-l { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.pr { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.pr-overdue { background: var(--p-danger); color: var(--c-danger); } .pr-high { background: var(--p-awaiting); color: var(--c-awaiting); } .pr-medium { background: var(--p-pending); color: var(--c-pending); } .pr-low { background: var(--surface-2); color: var(--ink-2); }


/* thumbnail in the design switcher */
.th-d { background: #E9EDF1; } .th-d .t1 { left: 4px; top: 4px; bottom: 4px; width: 16px; background: #fff; border-radius: 4px; } .th-d .t2 { left: 23px; right: 4px; top: 4px; height: 14px; background: linear-gradient(90deg, #CFE5F7, #EEF6FD); border-radius: 4px 4px 0 0; } .th-d .t3 { left: 23px; right: 4px; top: 18px; bottom: 4px; background: #fff; border-radius: 0 0 4px 4px; box-shadow: inset 0 0 0 1px #E3E8EE; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .d3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .d3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .dash-d { padding: 0; } .df { display: block; min-height: 100dvh; padding: 0; border-radius: 0; box-shadow: none; }
  .df-side { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 270px; padding: 14px; background: #fff; z-index: 60; transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility .25s; box-shadow: 10px 0 40px -10px rgba(0, 0, 0, .3); }
  .dash-d.drawer-open .df-side { transform: none; visibility: visible; }
  .df-col { display: none; } .df-close, .df-menu { display: grid; }
  .dash-d.collapsed .df-link { justify-content: flex-start; padding: 0 12px; } .dash-d.collapsed .df-link span, .dash-d.collapsed .df-me > span:not(.av), .dash-d.collapsed .df-me > .ic { display: revert; }
  .dash-d.collapsed .df-link em { position: static; }
  .df-main { min-height: 100dvh; border-radius: 0; }
  .df-top-r .bell, .df-menu { background: #fff; border-radius: 50%; width: 42px; height: 42px; }
}
@media (max-width: 760px) {
  .df-top { padding: 12px 14px 0; } .gsearch.d { max-width: none; }
  .df-content { padding: 14px 14px 32px; }
  .d3 { grid-template-columns: minmax(0, 1fr); } .d3 > :last-child { grid-column: auto; }
  .big { font-size: 46px; }
  .dh h1 { font-size: 30px; } .ds-d .page-title { font-size: 30px; }
  .dc { padding: 16px; }
  .fp { margin-left: 0; width: 100%; }
  .table.fd td.ta-r { text-align: left !important; justify-content: flex-start; }
}

/* keep IDs, dates and status pills on one line */
.ds-d .table td.mono, .ds-d .table td[data-l="Updated"] { white-space: nowrap; }
.st { white-space: nowrap; }
.sch-f { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- Login: one centred card on the HADS-blue band ---------- */
.lg-d { min-height: 100vh; min-height: 100dvh; background: #F4F7FA; }
.ldx { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: clamp(14px, 3vh, 28px) clamp(16px, 4vw, 48px); }
.ldx::before { content: ''; position: absolute; inset: 0 0 auto; height: 58%; z-index: -1; border-radius: 0 0 48px 48px; background: radial-gradient(800px 360px at 15% 0%, #BFDDF4 0%, transparent 70%), radial-gradient(700px 320px at 90% 20%, #D6E8FA 0%, transparent 70%), linear-gradient(180deg, #DCEBF8, #EEF5FC); }
.ldx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ldx-top img { height: 30px; width: auto; }
.ldx-help { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(16, 34, 54, .06); }
.ldx-help:hover { color: var(--brand); }
.ldx-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 4vh, 36px); padding: clamp(12px, 3vh, 28px) 0; }
.ldx-card { width: 100%; max-width: 440px; padding: clamp(22px, 4vh, 36px) 36px clamp(20px, 3.5vh, 30px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 70px -40px rgba(11, 83, 132, .45); }
.ldx-k { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.ldx-card h1 { font-size: 40px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.ldx-sub { margin: 8px 0 clamp(16px, 3vh, 26px); color: var(--ink-2); }
.lg-d .login-form { gap: 14px; }
.lg-d .field-in { border-radius: 12px; }
.lg-d .btn-primary { border-radius: 999px; font-weight: 500; }
.ldx-facts { list-style: none; display: flex; justify-content: center; margin: 0; padding: 0; }
.ldx-facts li { display: grid; justify-items: center; gap: 2px; min-width: 150px; padding: 0 22px; text-align: center; }
.ldx-facts li + li { border-left: 1px solid var(--line); }
.ldx-facts b { font-size: 34px; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; color: var(--brand); }
.ldx-facts span { font-size: 13px; color: var(--muted); }
.ldx-foot .demo-note { margin-top: 0; }
@media (max-height: 820px) {
  .ldx-card h1 { font-size: 34px; }
  .lg-d .login-form { gap: 10px; } .lg-d .field-in { height: 42px; } .lg-d .btn-lg { height: 44px; }
  .ldx-facts b { font-size: 28px; }
}
@media (max-height: 700px) { .ldx-facts { display: none; } }
@media (max-width: 760px) {
  .ldx { padding: 14px 16px 64px; }
  .ldx::before { height: 46%; border-radius: 0 0 32px 32px; }
  .ldx-top img { height: 26px; }
  .ldx-card { padding: 22px 20px 18px; }
  .ldx-card h1 { font-size: 32px; }
  .ldx-facts { display: none; }
}
