:root {
  --dh-green: #006847;
  --dh-navy: #0a1628;
  --dh-gold: #ffc107;
  --dh-surface: #f3f5f8;
  --dh-radius: 0.85rem;
  --sidebar-width: 248px;
  --topbar-height: 52px;
  --ui-font-scale: 0.7;
  --brand-primary: var(--dh-green);
  --brand-secondary: #1a4731;
  --brand-accent: var(--dh-gold);
  --dh-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  --dh-ease: .22s ease;
}
html { font-size: calc(16px * var(--ui-font-scale)); }
@media print { html { font-size: 16px !important; } }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--dh-surface);
  margin: 0;
  min-height: 100vh;
  color: #1b2430;
}
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  overflow-y: auto;
  transition: transform .28s ease;
}
.sidebar a { color: rgba(255,255,255,.9); text-decoration: none; }
.sidebar .nav-link {
  padding: .42rem .75rem;
  border-radius: .5rem;
  display: flex;
  gap: .55rem;
  align-items: center;
  min-height: 36px;
  transition: background var(--dh-ease), transform var(--dh-ease);
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brand-accent);
}
.dh-nav-label {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
  margin: .85rem .75rem .25rem;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--brand-primary);
  display: grid; place-items: center; font-weight: 800;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}
.main-wrap { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 1020;
  min-height: var(--topbar-height);
  box-shadow: 0 1px 0 rgba(15,23,42,.06);
}
.topbar-title {
  font-weight: 650;
  font-size: .95rem;
  margin-right: .25rem;
  white-space: nowrap;
}
.dh-tool {
  width: 32px; height: 32px;
  border: 1px solid #e4e8ee;
  background: #fff;
  color: #334;
  border-radius: .45rem;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: .78rem;
  line-height: 1;
  text-decoration: none;
  transition: border-color var(--dh-ease), background var(--dh-ease), transform .15s ease;
}
.dh-tool:hover { border-color: var(--brand-primary); color: var(--brand-primary); transform: translateY(-1px); }
.dh-zoom { display: inline-flex; gap: 3px; }
.dh-zoom-label { width: auto; min-width: 40px; padding: 0 .4rem; }
.dh-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 32px;
  max-width: 220px;
  margin-left: auto;
  padding: 0 .65rem 0 .55rem;
  border: 1px solid #e4e8ee;
  background: #f7f8fb;
  border-radius: 999px;
  color: #5b6573;
  font-size: .8rem;
  white-space: nowrap;
  transition: border-color var(--dh-ease), box-shadow var(--dh-ease);
}
.dh-search-trigger:hover { border-color: var(--brand-primary); color: #1b2430; }
.dh-search-trigger-text { overflow: hidden; text-overflow: ellipsis; }
.dh-search-kbd {
  font-size: .65rem;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: .3rem;
  padding: .05rem .28rem;
  color: #6c757d;
}
.dh-role-select {
  width: auto;
  max-width: 9.5rem;
  height: 32px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: .78rem;
}
.dh-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand-accent);
}
.dh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dh-avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.dh-user { position: relative; }
.dh-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 36px;
  max-width: 16rem;
  padding: 2px 8px 2px 2px;
  border: 1px solid #e4e8ee;
  background: #fff;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--dh-ease), box-shadow var(--dh-ease), transform .15s ease;
}
.dh-user-toggle:hover, .dh-user-toggle:focus-visible, .dh-user.show .dh-user-toggle {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 16%, transparent);
  outline: none;
  transform: translateY(-1px);
}
.dh-user-toggle::after { display: none; }
.dh-user-meta {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
  text-align: left;
}
.dh-user-meta strong {
  font-size: .78rem;
  font-weight: 750;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-user-meta small {
  font-size: .68rem;
  color: #6c757d;
  text-transform: capitalize;
}
.dh-user-caret { font-size: .7rem; color: #6c757d; transition: transform .18s ease; }
.dh-user.show .dh-user-caret { transform: rotate(180deg); }
.dh-user-menu {
  min-width: 17.5rem;
  padding: .45rem;
  border: 1px solid #e4e8ee;
  border-radius: .9rem;
  box-shadow: var(--dh-shadow);
  margin-top: .45rem !important;
  animation: dhIn .18s ease;
}
.dh-user-menu-head {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: .55rem .65rem .7rem;
  margin-bottom: .35rem;
  border-bottom: 1px solid #eef1f5;
}
.dh-avatar-menu { width: 42px; height: 42px; font-size: 1rem; }
.dh-user-menu-sub { font-size: .75rem; color: #6c757d; }
.dh-user-role {
  display: inline-block;
  margin-top: .2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: capitalize;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
  border-radius: 999px;
  padding: .08rem .45rem;
}
.dh-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  border-radius: .65rem;
  font-weight: 650;
  padding: .45rem .7rem;
}
.dh-user-menu .dropdown-item i { color: var(--brand-primary); }
.dh-user-menu .dropdown-item.active {
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
  color: var(--brand-primary);
}
.dh-user-signout { color: #b02a37 !important; }
.dh-user-signout i { color: #b02a37 !important; }
.dh-user-signout:hover, .dh-user-signout:focus {
  background: #fdecec !important;
  color: #8a1f2a !important;
}
@media (min-width: 768px) {
  .dh-user-meta { display: flex; }
}
.dh-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  background: #dc3545; color: #fff;
  font-size: .6rem; line-height: 16px; text-align: center;
  padding: 0 4px;
}
.content { padding: 1rem 1.15rem 5rem; flex: 1; }
@media (max-width: 767.98px) {
  .content { padding: .85rem .85rem 5.75rem; }
}
.dh-page { animation: dhIn .35s ease; }
@keyframes dhIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.dh-search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 22, 40, .45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 10vh 1rem 1rem;
  animation: dhIn .2s ease;
}
.dh-search-overlay[hidden] { display: none !important; }
.dh-search-panel { width: min(28rem, 100%); }
.dh-search-results a {
  display: block; padding: .5rem .65rem; border-radius: .5rem;
  text-decoration: none; color: inherit;
}
.dh-search-results a:hover, .dh-search-results a:focus {
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
  outline: none;
}
html[data-theme="dark"] .dh-search-results a:hover,
html[data-theme="dark"] .dh-search-results a:focus { background: #1c2a44; }
.stat-card {
  background: #fff; border: 0; border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow);
  transition: transform var(--dh-ease), box-shadow var(--dh-ease);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.hero, .dh-profile-hero {
  background: linear-gradient(120deg, var(--dh-navy), var(--brand-secondary) 45%, var(--brand-primary));
  color: #fff; border-radius: 1rem; padding: 1.25rem 1.4rem;
}
.dh-profile-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
@media (max-width: 767.98px) {
  .hero, .dh-profile-hero { padding: 1rem 1.05rem; }
  .dh-profile-hero .ms-lg-auto { width: 100%; }
  .dh-profile-hero .btn { min-height: 44px; flex: 1 1 calc(50% - .35rem); }
}
.btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-secondary); border-color: var(--brand-secondary); }
.btn-outline-primary { color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline-primary:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.nav-pills .nav-link.active { background: var(--brand-primary); }
.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand-primary) 22%, transparent);
}
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #5b6573; }
.dev-footer { font-size: .78rem; color: #6c757d; text-align: center; padding: .85rem; }
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.mobile-nav a {
  flex: 1; text-align: center; padding: .5rem .2rem; font-size: .7rem;
  color: #445; text-decoration: none; min-height: 48px;
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--brand-primary); }
html[data-theme="dark"] body { background: #0b1220; color: #e8edf5; }
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .mobile-nav,
html[data-theme="dark"] .dh-tool,
html[data-theme="dark"] .dh-search-trigger { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-tool,
html[data-theme="dark"] .dh-search-trigger,
html[data-theme="dark"] .dh-search-kbd,
html[data-theme="dark"] .dh-user-toggle,
html[data-theme="dark"] .dh-user-menu { border-color: #243049; }
html[data-theme="dark"] .dh-user-toggle,
html[data-theme="dark"] .dh-user-menu { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-user-menu-head { border-color: #243049; }
html[data-theme="dark"] .dh-user-menu-sub,
html[data-theme="dark"] .dh-user-meta small,
html[data-theme="dark"] .dh-user-caret { color: #9aa8bd; }
html[data-theme="dark"] .dh-user-menu .dropdown-item { color: #e8edf5; }
html[data-theme="dark"] .dh-user-menu .dropdown-item.active,
html[data-theme="dark"] .dh-user-menu .dropdown-item:hover { background: #1c2a44; color: #fff; }
html[data-theme="dark"] .dh-user-signout:hover,
html[data-theme="dark"] .dh-user-signout:focus { background: #3a1c24 !important; }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .table { background: #121b2e; color: #e8edf5; }
.auth-body { min-height: 100vh; }
.auth-shell {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--brand-accent) 28%, transparent), transparent),
    linear-gradient(155deg, var(--dh-navy), var(--brand-primary));
  padding: 1.25rem;
}
.auth-split {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  animation: dhIn .4s ease;
}
.auth-brand {
  background: linear-gradient(165deg, var(--brand-secondary), var(--brand-primary));
  color: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.auth-kicker {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  margin: 0;
}
.auth-credit { font-size: .78rem; opacity: .8; }
.auth-card { padding: 2rem 1.6rem; }
.auth-wide .auth-split {
  width: min(1040px, 100%);
  grid-template-columns: 280px 1fr;
}
.auth-wide .auth-brand { min-height: auto; }
.dh-auth-form .form-control { min-height: 40px; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: color-mix(in srgb, var(--brand-primary) 6%, transparent); }
.dh-search-panel.stat-card:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .dh-page, .auth-split, .dh-search-overlay,
  .dh-me-hero, .dh-me-stat, .dh-me-item, .dh-me-balance, .dh-me-empty,
  .dh-me-page .dh-ori-card, .dh-me-page .dh-ori-duty, .dh-me-progress > span,
  .dh-cal-card, .dh-man-hero, .dh-man-hero-book, .dh-man-hero-glow,
  .dh-man-eq i, .dh-man-flow-step, .dh-man-rise, .dh-man-card, .dh-short { animation: none !important; }
  .stat-card, .sidebar .nav-link, .dh-tool, .dh-user-toggle { transition: none; }
  .stat-card:hover, .dh-tool:hover, .dh-me-item:hover, .dh-me-balance:hover, .dh-leave-type:hover, .dh-user-toggle:hover, .dh-short:hover, .dh-day-chip:hover { transform: none; }
  .dh-user-menu { animation: none; }
}
.dh-pipe {
  display: inline-block;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .02em;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #eef1f5;
  color: #334;
}
.dh-pipe-open, .dh-pipe-shortlisted, .dh-pipe-interview { background: color-mix(in srgb, var(--brand-primary) 14%, #fff); color: var(--brand-primary); }
.dh-pipe-offered, .dh-pipe-hired, .dh-pipe-filled { background: #e8f6ee; color: #146c43; }
.dh-pipe-closed, .dh-pipe-rejected, .dh-pipe-draft { background: #f1f3f6; color: #5b6573; }
html[data-theme="dark"] .dh-pipe { background: #1c2a44; color: #e8edf5; }
.dh-preset-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.dh-preset {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid #e4e8ee; background: #fff;
  border-radius: 999px; padding: .3rem .65rem;
  font-size: .78rem; color: #334;
}
.dh-preset:hover { border-color: var(--brand-primary); }
.dh-preset-dots { display: inline-flex; gap: 3px; }
.dh-preset-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
@media (max-width: 767.98px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { min-height: auto; padding: 1.4rem 1.25rem; }
  .dh-search-trigger-text, .dh-search-kbd { display: none; }
  .dh-search-trigger { max-width: 32px; width: 32px; padding: 0; justify-content: center; border-radius: .45rem; }
  .topbar-title { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
  .dh-user-toggle { min-height: 44px; min-width: 44px; }
}
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-105%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .mobile-nav { display: flex; }
  .content { padding-bottom: 5.5rem; }
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, .45);
    z-index: 1025;
  }
}
.sidebar-backdrop { display: none; }
html[data-theme="dark"] a.text-dark { color: #e8edf5 !important; }
html[data-theme="dark"] .dh-preset { background: #121b2e; color: #e8edf5; border-color: #243049; }
.dh-skip-link { position: absolute; left: -999px; }
.dh-skip-link:focus { left: 8px; top: 8px; background: #fff; padding: .4rem .7rem; z-index: 2000; }
@media (max-width: 991.98px) {
  .dh-filters-desktop { display: none !important; }
}
@media (min-width: 992px) {
  .dh-filter-sheet-btn { display: none !important; }
}
.dh-filter-sheet { height: auto !important; max-height: 85vh; }
@media (max-width: 767.98px) {
  .dh-staff-table { display: none !important; }
}
@media (min-width: 768px) {
  .dh-staff-cards { display: none !important; }
}
.dh-payslip { max-width: 720px; margin: 0 auto; }
.dh-slip {
  max-width: 46rem; margin: 0 auto 2rem;
  background: #fff; color: #1a1f2b;
  padding: 1.5rem 1.45rem 1.15rem;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(26,39,68,.12);
  border: 1px solid #e7edf3;
  animation: dhRise .45s ease;
}
.dh-slip-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .75rem; }
.dh-slip-logo { max-height: 64px; max-width: 96px; object-fit: contain; }
.dh-slip-mark {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: var(--brand-primary); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.dh-slip-org { font-weight: 800; letter-spacing: .02em; color: var(--brand-secondary); font-size: 1.05rem; }
.dh-slip-addr { font-size: .82rem; color: #5b6573; }
.dh-slip-badge { margin-left: auto; text-align: right; flex-shrink: 0; }
.dh-slip-rule {
  height: 3px; border-radius: 99px; margin: .35rem 0 1rem;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--brand-primary));
}
.dh-slip-title-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-bottom: 1.1rem; }
.dh-slip-title {
  font-size: 1.2rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  margin: 0; color: var(--brand-secondary);
}
.dh-slip-period { text-align: right; font-weight: 650; color: var(--dh-navy); }
.dh-slip-period span { font-weight: 500; color: #5b6573; font-size: .85rem; }
.dh-slip-who { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.15rem; }
.dh-slip-photo {
  width: 76px; height: 92px; border-radius: .55rem; overflow: hidden; flex-shrink: 0;
  background: #0a1628; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand-accent);
}
.dh-slip-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-slip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.dh-slip-cols h2 {
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-primary); margin: 0 0 .45rem;
}
.dh-slip-table { width: 100%; }
.dh-slip-table td { padding: .32rem 0; border-bottom: 1px solid #eef2f6; }
.dh-slip-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh-slip-table tr.is-total td { border-bottom: 0; font-weight: 800; padding-top: .55rem; }
.dh-slip-net {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 1.15rem; padding: .9rem 1.1rem; border-radius: .85rem;
  background: var(--brand-primary); color: #fff;
}
.dh-slip-net strong { font-size: 1.35rem; letter-spacing: .01em; }
.dh-slip-notes { margin: .9rem 0 0; color: #5b6573; font-size: .85rem; }
.dh-slip-foot { margin-top: 1.2rem; font-size: .72rem; color: #8a93a0; border-top: 1px solid #eef2f6; padding-top: .55rem; }
@media (max-width: 767.98px) {
  .dh-slip { padding: 1.1rem 1rem 1rem; }
  .dh-slip-head, .dh-slip-title-row { flex-wrap: wrap; }
  .dh-slip-badge, .dh-slip-period { text-align: left; margin-left: 0; }
  .dh-slip-cols { grid-template-columns: 1fr; }
}
@media print {
  .dh-payslip, .dh-slip { box-shadow: none !important; border: 0; max-width: none; margin: 0; padding: 0; animation: none; }
  .dh-slip-logo { max-height: 72px; max-width: 110px; }
  .dh-slip-net { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
html[data-theme="dark"] .dh-slip { background: #fff; color: #1a1f2b; }
.dh-photo-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--brand-primary) 35%, #d5dde6);
  border-radius: .9rem;
  background: color-mix(in srgb, var(--brand-primary) 5%, #fff);
}
.dh-photo-frame {
  width: 132px;
  height: 165px;
  border-radius: .7rem;
  overflow: hidden;
  background: #0a1628;
  position: relative;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand-accent);
  flex-shrink: 0;
}
.dh-photo-frame img, .dh-photo-frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.dh-photo-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center;
  color: rgba(255,255,255,.75); text-align: center; font-size: .78rem; gap: .35rem;
}
.dh-photo-empty i { font-size: 1.8rem; }
.dh-photo-card.is-live .dh-photo-empty,
.dh-photo-card.is-live #dhPhotoPreview { display: none !important; }
.dh-photo-meta { min-width: 220px; flex: 1; }
.dh-photo-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
html[data-theme="dark"] .dh-photo-card { background: #121b2e; border-color: #243049; }
.dh-passport {
  width: 96px; height: 120px; border-radius: .55rem; overflow: hidden;
  background: #0a1628; flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand-accent);
}
.dh-passport img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-passport-empty { display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: 1.6rem; }
.dh-form-section {
  background: #fff;
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow);
  padding: 1.1rem 1.2rem 1.25rem;
  margin-bottom: 1rem;
}
.dh-form-section h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-accent);
  padding-bottom: .45rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
html[data-theme="dark"] .dh-form-section { background: #121b2e; }
.dh-dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .85rem 1.25rem; }
.dh-dl-grid .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }
.dh-dl-grid .v { font-weight: 600; }
.dh-dl-grid .grid-span { grid-column: 1 / -1; }
.dh-roster-wrap { overflow-x: auto; }
.dh-roster th, .dh-roster td { vertical-align: middle; }
.dh-roster th:first-child, .dh-roster td:first-child {
  position: sticky; left: 0; z-index: 1; background: #fff; min-width: 9.5rem;
}
html[data-theme="dark"] .dh-roster th:first-child,
html[data-theme="dark"] .dh-roster td:first-child { background: #121b2e; }
.dh-roster td { min-width: 6.5rem; }
.dh-shift {
  display: block; width: 100%; border: 0; border-radius: .45rem;
  padding: .4rem .45rem; color: #fff; font-size: .78rem; text-align: center;
  cursor: pointer;
}
.dh-roster-month td { min-width: 2.6rem; max-width: 3.4rem; padding: .2rem !important; }
.dh-roster-month .staff-col { min-width: 9.5rem; max-width: 12rem; }
.dh-roster-month .date-col { vertical-align: bottom; font-size: .7rem; line-height: 1.1; }
.dh-roster-month .dh-dow { display: block; font-weight: 700; color: #6c757d; }
.dh-roster-month .dh-dom { display: block; font-size: .9rem; }
.dh-roster-month th.is-today, .dh-roster-month td.is-today {
  box-shadow: inset 0 -2px 0 var(--brand-accent);
}
.dh-roster-month th.is-weekend { background: #f8fafc; }
.dh-shift-code { display: block; font-weight: 800; font-size: .68rem; letter-spacing: .02em; }
.dh-shift-empty {
  display: block; width: 100%; min-height: 2.1rem; border: 1px dashed #d5dbe3;
  background: transparent; border-radius: .4rem; color: #9aa3b2; font-size: .68rem;
}
.dh-shift-empty:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.dh-roster-paint {
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1rem 1.1rem;
}
.dh-paint-chip {
  border: 0; border-radius: 999px; padding: .35rem .75rem; font-size: .8rem; font-weight: 700;
  background: color-mix(in srgb, var(--chip, #8a93a3) 18%, #fff);
  color: var(--dh-navy); box-shadow: inset 0 0 0 2px transparent;
}
.dh-paint-chip.is-on { box-shadow: inset 0 0 0 2px var(--chip, var(--brand-primary)); background: var(--chip, var(--brand-primary)); color: #fff; }
html[data-theme="dark"] .dh-roster-paint { background: #121b2e; }
html[data-theme="dark"] .dh-paint-chip { color: #e8edf5; }
.dh-roster-leave { background: color-mix(in srgb, var(--brand-accent) 22%, transparent); }
.dh-cal-print-head { display: none; }
.dh-cal-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin: 0 0 0.85rem;
}
.dh-cal-nav-btn {
  width: 2.35rem; height: 2.35rem; border-radius: .7rem;
  display: grid; place-items: center;
  background: #fff; color: var(--dh-navy); box-shadow: var(--dh-shadow);
  text-decoration: none; font-size: 1.05rem;
}
.dh-cal-nav-btn:hover { color: var(--brand-primary); }
.dh-cal-nav-title {
  font-weight: 800; font-size: 1.15rem; color: var(--dh-navy);
  min-width: 10rem;
}
.dh-cal-month-pick { margin-left: auto; max-width: 11rem; }
.dh-cal-legend {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem;
  font-size: .8rem; color: #6c757d; margin: 0 0 .75rem;
}
.dh-cal-dot {
  display: inline-block; width: .7rem; height: .7rem; border-radius: 50%;
  margin-right: .3rem; vertical-align: middle;
}
.dh-cal-dot.is-duty { background: var(--brand-primary); }
.dh-cal-dot.is-off { background: #c5cad3; }
.dh-cal-dot.is-leave { background: var(--brand-accent); }
.dh-cal-dot.is-today { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand-accent); background: var(--dh-navy); }
.dh-cal-card {
  background: #fff; border-radius: 1rem; box-shadow: var(--dh-shadow);
  overflow: hidden; animation: dhRise .45s ease;
}
.dh-cal-weekdays, .dh-cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
}
.dh-cal-weekdays {
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  border-bottom: 1px solid #e8edf3;
}
.dh-cal-weekdays > div {
  text-align: center; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #5b6573;
  padding: .55rem .2rem;
}
.dh-cal-weekdays > div:nth-child(n+6) { color: var(--brand-primary); }
.dh-cal-cell {
  appearance: none; -webkit-appearance: none;
  display: flex; flex-direction: column; align-items: stretch; gap: .28rem;
  min-height: 6.4rem; padding: .45rem .4rem .5rem;
  border: 0; border-right: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5;
  background: #fff; text-align: left; color: inherit; cursor: pointer;
  font: inherit;
}
.dh-cal-cell:focus { outline: none; }
.dh-cal-cell:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-primary); }
.dh-cal-cell:nth-child(7n) { border-right: 0; }
.dh-cal-cell.is-weekend { background: #f8fafc; }
.dh-cal-cell.is-outside { background: #f4f6f9; color: #9aa3b2; }
.dh-cal-cell.is-outside .dh-cal-empty { display: none; }
.dh-cal-cell.is-today {
  box-shadow: inset 0 0 0 2px var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 10%, #fff);
}
.dh-cal-cell.is-selected { background: color-mix(in srgb, var(--brand-primary) 8%, #fff); }
.dh-cal-cell.has-leave { background: color-mix(in srgb, var(--brand-accent) 14%, #fff); }
.dh-cal-cell:hover { background: color-mix(in srgb, var(--brand-primary) 6%, #fff); }
.dh-cal-num {
  font-weight: 800; font-size: .95rem; line-height: 1;
  width: 1.55rem; height: 1.55rem; border-radius: 50%;
  display: grid; place-items: center;
}
.dh-cal-cell.is-today .dh-cal-num {
  background: var(--dh-navy); color: #fff;
}
.dh-cal-shift {
  display: flex; flex-direction: column; gap: .08rem;
  border-radius: .45rem; padding: .28rem .4rem;
  font-size: .72rem; font-weight: 700; line-height: 1.2;
}
.dh-cal-shift.is-off { background: #eef1f5; color: #5b6573; }
.dh-cal-shift-code { display: none; }
.dh-cal-shift-time { font-weight: 600; opacity: .88; font-size: .68rem; }
.dh-cal-empty { font-size: .7rem; color: #9aa3b2; }
.dh-cal-leave, .dh-cal-cover {
  font-size: .62rem; font-weight: 700; line-height: 1.2;
  color: #664d03; background: #fff3cd; border-radius: .35rem; padding: .15rem .35rem;
}
.dh-cal-cover { background: color-mix(in srgb, var(--brand-primary) 12%, #fff); color: var(--brand-primary); }
.dh-cal-day-panel {
  margin-top: .9rem; background: #fff; border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow); padding: 1rem 1.1rem;
  border-left: 4px solid var(--brand-accent);
}
.dh-cal-day-kicker {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: #6c757d; font-weight: 700;
}
@media (max-width: 767.98px) {
  .dh-cal-month-pick { margin-left: 0; width: 100%; max-width: none; }
  .dh-cal-cell { min-height: 4.4rem; padding: .35rem .28rem .4rem; }
  .dh-cal-shift-name, .dh-cal-shift-time { display: none; }
  .dh-cal-shift-code { display: block; }
  .dh-cal-leave, .dh-cal-cover { display: none; }
  .dh-cal-weekdays > div { font-size: .62rem; padding: .4rem .1rem; }
}
@media print {
  .dh-cal-nav, .dh-cal-legend, .dh-cal-day-panel, .dh-me-hero, .dh-page-hint { display: none !important; }
  .dh-cal-print-head {
    display: flex; justify-content: space-between; gap: 1rem;
    margin-bottom: .75rem; font-size: .9rem;
  }
  .dh-cal-card { box-shadow: none; border: 1px solid #ccd; }
  .dh-cal-cell { min-height: 5.2rem; break-inside: avoid; }
  .dh-cal-shift-name, .dh-cal-shift-time { display: block !important; }
  .dh-cal-shift-code { display: none !important; }
  .dh-cal-leave, .dh-cal-cover { display: block !important; }
}
html[data-theme="dark"] .dh-cal-nav-btn,
html[data-theme="dark"] .dh-cal-card,
html[data-theme="dark"] .dh-cal-day-panel { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-cal-nav-title { color: #e8edf5; }
html[data-theme="dark"] .dh-cal-weekdays { background: #1c2a44; border-color: #243049; }
html[data-theme="dark"] .dh-cal-weekdays > div { color: #9aa8c0; }
html[data-theme="dark"] .dh-cal-cell {
  background: #121b2e; border-color: #243049; color: #e8edf5;
}
html[data-theme="dark"] .dh-cal-cell.is-weekend { background: #101827; }
html[data-theme="dark"] .dh-cal-cell.is-outside { background: #0d1524; color: #6b7790; }
html[data-theme="dark"] .dh-cal-cell.is-today,
html[data-theme="dark"] .dh-cal-cell.has-leave,
html[data-theme="dark"] .dh-cal-cell.is-selected { background: #1a2744; }
html[data-theme="dark"] .dh-cal-shift.is-off { background: #1c2a44; color: #c5cad3; }
.dh-sign-pad {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 160px;
  border: 1px dashed #9aa7b5;
  border-radius: .5rem;
  background: #fff;
  touch-action: none;
}
.dh-sign-img {
  height: 48px;
  max-width: 220px;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: .35rem;
  padding: 2px 6px;
}
.dh-sign-btn { min-height: 44px; }
.dh-topic-done { border-left: 4px solid var(--brand-primary); }
.dh-ori-card {
  background: #fff;
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow);
  padding: 1rem 1.15rem 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid #e7edf3;
}
.dh-ori-card.is-done { border-left: 4px solid var(--brand-primary); }
.dh-ori-card.is-yours { border-left: 4px solid var(--brand-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-accent) 45%, transparent), var(--dh-shadow); }
.dh-ori-card-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.dh-ori-card-head h2 { font-size: 1.02rem; font-weight: 700; color: var(--brand-primary); margin: 0 0 .2rem; }
.dh-ori-num {
  width: 2.2rem; height: 2.2rem; border-radius: .55rem;
  background: var(--brand-secondary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.dh-ori-who { font-size: .8rem; color: #5b6573; }
.dh-ori-do {
  background: color-mix(in srgb, var(--brand-primary) 7%, #fff);
  border-radius: .55rem;
  padding: .7rem .85rem;
  margin-bottom: .85rem;
}
.dh-ori-do-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--brand-primary); font-weight: 700; margin-bottom: .2rem;
}
.badge.dh-ori-yours { background: var(--brand-accent); color: #0a1628; }
.dh-ori-duty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .85rem; }
.dh-ori-duty {
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1rem 1.1rem; border: 1px solid #e7edf3;
}
.dh-ori-duty h2 { font-size: .98rem; font-weight: 700; color: var(--brand-primary); margin: .45rem 0 .55rem; }
.dh-ori-wait {
  display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  padding: .75rem .85rem; border-radius: .65rem; text-decoration: none; color: inherit;
  background: color-mix(in srgb, var(--brand-primary) 6%, #fff); min-height: 48px;
}
.dh-ori-wait:hover { background: color-mix(in srgb, var(--brand-primary) 12%, #fff); }
.dh-ori-priv-list { display: grid; gap: .55rem; }
.dh-ori-priv {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem .8rem; border: 1px solid #e7edf3; border-radius: .65rem;
  background: #fff; min-height: 48px;
}
.dh-ori-priv.is-on { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 6%, #fff); }
.dh-ori-priv input { margin-top: .2rem; }
.dh-ori-priv strong { display: block; }
.dh-ori-priv small { display: block; color: #5b6573; margin-top: .15rem; }
.dh-panel-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.dh-panel-seat {
  background: #fff;
  border: 1px solid #e7edf3;
  border-radius: var(--dh-radius);
  padding: .85rem .95rem;
  box-shadow: var(--dh-shadow);
  min-height: 96px;
}
.dh-panel-seat.is-mine { border-color: var(--brand-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-accent) 50%, transparent), var(--dh-shadow); }
.dh-panel-seat.is-submitted { border-left: 4px solid var(--brand-primary); }
.dh-panel-seat.is-saved { border-left: 4px solid var(--brand-accent); }
.dh-panel-seat.is-pending { border-left: 4px solid #9aa7b5; }
.dh-panel-seat.is-overall { background: color-mix(in srgb, var(--brand-primary) 8%, #fff); }
.dh-panel-role { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-primary); font-weight: 700; margin-bottom: .2rem; }
.dh-panel-mine { border: 1px solid color-mix(in srgb, var(--brand-accent) 55%, #e7edf3); }
.dh-panel-crit { padding: .7rem 0; border-bottom: 1px solid #eef2f6; }
.dh-panel-crit:last-of-type { border-bottom: 0; }
.dh-panel-table-wrap { overflow-x: auto; }
.dh-panel-table th { white-space: nowrap; background: #eef6f1; }
html[data-theme="dark"] .dh-panel-seat { background: #121b2e; border-color: #243049; }
html[data-theme="dark"] .dh-panel-seat.is-overall { background: #1c2a44; }
html[data-theme="dark"] .dh-panel-table th { background: #1c2a44; }
html[data-theme="dark"] .dh-ori-card,
html[data-theme="dark"] .dh-ori-duty,
html[data-theme="dark"] .dh-ori-priv { background: #121b2e; border-color: #243049; }
html[data-theme="dark"] .dh-ori-do { background: #1c2a44; }
html[data-theme="dark"] .dh-ori-wait { background: #1c2a44; color: inherit; }
.dh-grade-E { background: #006847; color: #fff; }
.dh-grade-G { background: #1a4731; color: #fff; }
.dh-grade-S { background: #0a1628; color: #fff; }
.dh-grade-F { background: #ffc107; color: #0a1628; }
.dh-grade-U { background: #b02a37; color: #fff; }
.dh-grade-N { background: #6c757d; color: #fff; }
html[data-theme="dark"] .dh-sign-pad { background: #fff; }
.dh-day-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.dh-day-chip {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 52px;
  min-width: 9.5rem;
  flex: 1 1 9.5rem;
  padding: .55rem .75rem;
  border-radius: .8rem;
  background: #fff;
  border: 1px solid #e8edf3;
  box-shadow: var(--dh-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform var(--dh-ease), box-shadow var(--dh-ease), border-color var(--dh-ease);
}
.dh-day-chip > i {
  width: 2.1rem; height: 2.1rem; border-radius: .65rem; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-primary) 14%, #fff);
  color: var(--brand-primary);
  font-size: 1.05rem;
}
.dh-day-chip-copy { display: flex; flex-direction: column; min-width: 0; }
.dh-day-chip:hover { transform: translateY(-2px); border-color: var(--brand-primary); color: inherit; }
.dh-day-chip.is-alert { border-color: color-mix(in srgb, var(--brand-accent) 55%, #e8edf3); background: #fffdf4; }
.dh-day-chip.is-alert > i { background: color-mix(in srgb, var(--brand-accent) 28%, #fff); color: #7a5b00; }
.dh-day-chip-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #5b6573; }
.dh-day-chip-text { font-weight: 650; }
html[data-theme="dark"] .dh-day-chip { background: #121b2e; border-color: #243049; color: #e8edf5; }
html[data-theme="dark"] .dh-day-chip.is-alert { background: #2a2410; border-color: #5c4a12; }
html[data-theme="dark"] .dh-day-chip > i { background: #1c2a44; }

.dh-short-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.dh-short {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  min-height: 7.2rem;
  padding: .9rem .95rem 1rem;
  background: #fff;
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  animation: dhRise .42s ease both;
  animation-delay: calc(min(var(--i, 0), 10) * .04s);
  transition: transform var(--dh-ease), box-shadow var(--dh-ease), border-color var(--dh-ease);
}
.dh-short:hover, .dh-short:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-primary) 40%, #e8edf3);
  box-shadow: 0 12px 28px rgba(15,23,42,.1);
  color: inherit;
  outline: none;
}
.dh-short-ico {
  width: 2.45rem; height: 2.45rem; border-radius: .75rem;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-primary) 14%, #fff);
  color: var(--brand-primary);
  font-size: 1.2rem;
  margin-bottom: .15rem;
}
.dh-short-label { font-weight: 750; font-size: .95rem; line-height: 1.2; }
.dh-short-text { font-size: .8rem; color: #5b6778; line-height: 1.35; }
.dh-short.is-hot { border-color: color-mix(in srgb, var(--brand-accent) 50%, transparent); }
.dh-short.is-hot .dh-short-ico {
  background: color-mix(in srgb, var(--brand-accent) 30%, #fff);
  color: #7a5b00;
}
@media (min-width: 768px) {
  .dh-short-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
html[data-theme="dark"] .dh-short { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-short-text { color: #9aa8bd; }
html[data-theme="dark"] .dh-short-ico { background: #1c2a44; }
html[data-theme="dark"] .dh-short.is-hot { border-color: #5c4a12; }
html[data-theme="dark"] .dh-short.is-hot .dh-short-ico { background: #3d3210; color: #ffc107; }

.dh-short-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: .85rem 1.1rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.dh-short-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}
.dh-short-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
  color: var(--brand-primary);
}
.dh-short-count {
  display: none;
  font-size: .8rem;
  font-weight: 650;
  color: #5b6573;
}
#dhDashShortcuts.is-editing .dh-short-count { display: inline-flex; }
.dh-short-tile { position: relative; min-width: 0; }
.dh-short-tile .dh-short { height: 100%; width: 100%; }
.dh-short-tools {
  display: none;
  position: absolute;
  top: .4rem;
  right: .4rem;
  gap: .2rem;
  z-index: 2;
}
#dhDashShortcuts.is-editing .dh-short-tools { display: flex; }
#dhDashShortcuts.is-editing .dh-short {
  pointer-events: none;
  border-style: dashed;
  padding-right: 2.5rem;
}
.dh-short-tool {
  width: 1.7rem; height: 1.7rem; border-radius: .5rem;
  border: 0; background: #0a1628; color: #fff;
  display: grid; place-items: center; font-size: .75rem;
  box-shadow: 0 4px 10px rgba(15,23,42,.18);
  cursor: pointer;
}
.dh-short-tool:disabled { opacity: .35; }
.dh-short-tool.is-remove { background: #8b1e1e; }
.dh-short-empty { padding: .25rem 0 .15rem; }
.dh-short-lib {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed #d7dee8;
}
.dh-lib-block { margin-top: .7rem; }
.dh-lib-label {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: #5b6573; margin-bottom: .4rem;
}
.dh-lib-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.dh-lib-item {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px dashed color-mix(in srgb, var(--brand-primary) 35%, #d7dee8);
  background: color-mix(in srgb, var(--brand-primary) 6%, #fff);
  color: inherit;
  border-radius: 999px;
  padding: .35rem .75rem .35rem .55rem;
  font-size: .85rem;
  font-weight: 650;
  cursor: pointer;
}
.dh-lib-item i {
  width: 1.45rem; height: 1.45rem; border-radius: 999px;
  display: grid; place-items: center;
  background: #fff; color: var(--brand-primary); font-size: .9rem;
}
.dh-lib-item:hover { border-color: var(--brand-primary); }
.dh-lib-item:disabled { opacity: .45; }
.dh-short-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 1rem;
}
html[data-theme="dark"] .dh-short-badge { background: #1c2a44; color: #9ec5ff; }
html[data-theme="dark"] .dh-short-count { color: #9aa8bd; }
html[data-theme="dark"] .dh-short-lib { border-top-color: #243049; }
html[data-theme="dark"] .dh-lib-item { background: #1c2a44; border-color: #31415c; color: #e8edf5; }
html[data-theme="dark"] .dh-lib-item i { background: #121b2e; }
html[data-theme="dark"] .dh-lib-label { color: #9aa8bd; }
.dh-empty { padding: .85rem 0; color: #6c757d; }
.dh-gl-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .85rem 1.2rem;
  margin-bottom: .75rem;
}
.dh-gl-how-grid p { margin: .25rem 0 0; color: #5b6573; font-size: .9rem; }
.dh-gl-path {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem;
}
.dh-gl-path-item {
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: .82rem;
  padding: .2rem .55rem;
  border-radius: 999px;
}
.dh-gl-path-next { color: #6c757d; }
.dh-gl-card {
  border: 1px solid #e7edf3;
  border-radius: .75rem;
  padding: .85rem .9rem;
  margin: .75rem 0;
  background: color-mix(in srgb, var(--brand-primary) 3%, #fff);
}
html[data-theme="dark"] .dh-gl-how-grid p { color: #9aa6b8; }
html[data-theme="dark"] .dh-gl-path-item { background: #1c2a44; }
html[data-theme="dark"] .dh-gl-card { background: #121b2e; border-color: #243049; }
.dh-pick-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: .75rem; flex-wrap: wrap; margin-bottom: .85rem;
}
.dh-pick-head h2 { border-bottom: 0; padding-bottom: 0; margin: 0; }
.dh-pick-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.dh-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: .5rem;
}
.dh-role-chip {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .65rem .75rem; border: 1px solid #e7edf3; border-radius: .65rem;
  background: #fff; min-height: 48px; margin: 0;
}
.dh-role-chip span { display: flex; flex-direction: column; gap: .1rem; line-height: 1.25; }
.dh-role-chip small { color: #5b6573; font-size: .72rem; }
.dh-role-chip.is-on, .dh-role-chip:has(input:checked) {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
}
.dh-sms-note {
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  border-radius: .65rem; padding: .65rem .8rem; font-size: .9rem;
}
.dh-sms-note.is-warn { background: #fff3cd; }
.dh-sms-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; background: linear-gradient(120deg, var(--dh-navy), var(--brand-secondary) 48%, var(--brand-primary));
  color: #fff; border-radius: 1rem; padding: 1.15rem 1.25rem;
}
.dh-sms-units {
  min-width: 10rem; background: rgba(255,255,255,.14); border-radius: .85rem;
  padding: .75rem .9rem; text-align: right;
}
.dh-sms-units span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.dh-sms-units strong { display: block; font-size: 1.8rem; line-height: 1.1; }
.dh-sms-units small { display: block; opacity: .8; }
.dh-sms-units.dh-sms-ok { background: #198754; }
.dh-sms-units.dh-sms-low { background: #ffc107; color: #0a1628; }
html[data-theme="dark"] .dh-role-chip { background: #121b2e; border-color: #243049; }
html[data-theme="dark"] .dh-role-chip.is-on,
html[data-theme="dark"] .dh-role-chip:has(input:checked) {
  background: color-mix(in srgb, var(--brand-primary) 16%, #121b2e);
}
html[data-theme="dark"] .dh-sms-note { background: #1c2a44; }
html[data-theme="dark"] .dh-sms-note.is-warn { background: #3d3210; }
.dh-staff-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  background: linear-gradient(120deg, var(--dh-navy), var(--brand-secondary) 48%, var(--brand-primary));
  color: #fff;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
}
.dh-staff-hero-photo {
  width: 112px;
  height: 140px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.92), 0 0 0 6px var(--brand-accent);
}
.dh-staff-hero-photo.dh-passport-empty { font-size: 2.2rem; font-weight: 700; }
.dh-staff-hero-main { flex: 1 1 16rem; }
.dh-staff-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .7rem;
  opacity: .88;
  font-size: .92rem;
}
.dh-staff-hero-meta span + span::before {
  content: "·";
  margin-right: .7rem;
  opacity: .7;
}
.dh-staff-chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.dh-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
a.dh-chip:hover { color: #fff; filter: brightness(1.08); }
.dh-chip-ok { background: #198754; }
.dh-chip-warn { background: #ffc107; color: #0a1628; }
.dh-chip-bad { background: #b02a37; }
.dh-staff-hero-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-left: auto; }
.dh-staff-tabs {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .15rem 0 .85rem;
  margin-bottom: .4rem;
  scrollbar-width: thin;
}
.dh-staff-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: .86rem;
  box-shadow: var(--dh-shadow);
  min-height: 40px;
}
.dh-staff-tab:hover { color: var(--brand-secondary); }
.dh-staff-tab.active {
  background: var(--brand-primary);
  color: #fff;
}
.dh-glance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.dh-glance > div {
  background: color-mix(in srgb, var(--brand-primary) 7%, #fff);
  border-radius: .7rem;
  padding: .65rem .75rem;
}
.dh-glance span {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
}
.dh-glance strong { font-size: 1.05rem; }
.dh-qr-code {
  display: block;
  word-break: break-all;
  background: color-mix(in srgb, var(--brand-primary) 7%, #fff);
  border-radius: .55rem;
  padding: .65rem .7rem;
  font-size: .78rem;
}
.dh-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid #e8edf3;
}
.dh-file-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dh-file-row-stack { display: block; }
html[data-theme="dark"] .dh-staff-tab { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-staff-tab.active { background: var(--brand-primary); color: #fff; }
html[data-theme="dark"] .dh-glance > div,
html[data-theme="dark"] .dh-qr-code { background: #1c2a44; }
html[data-theme="dark"] .dh-file-row { border-color: #243049; }
@media (max-width: 767.98px) {
  .dh-staff-hero-actions { width: 100%; margin-left: 0; }
  .dh-staff-hero-actions .btn { flex: 1 1 auto; }
}
@media print {
  .sidebar, .topbar, .mobile-nav, .dev-footer, .no-print, .sidebar-backdrop, .dh-search-overlay, .dh-page-hint { display: none !important; }
  .main-wrap { margin: 0 !important; }
  .content { padding: 8px !important; }
  .stat-card { box-shadow: none !important; }
  .dh-sign-pad { display: none !important; }
  .dh-page { animation: none; }
}
.dh-role-card { min-height: 100%; }
.dh-role-lock {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: .75rem;
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, #e7edf3);
}
.dh-role-lock i { font-size: 1.35rem; color: var(--brand-primary); }
.dh-perm-mod-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .45rem;
}
.dh-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .45rem;
}
.dh-perm {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .65rem .7rem; border: 1px solid #e7edf3; border-radius: .65rem;
  background: #fff; min-height: 48px; cursor: pointer;
}
.dh-perm.is-on { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 6%, #fff); }
.dh-perm input { margin-top: .15rem; }
.dh-perm strong { display: block; font-size: .86rem; }
.dh-perm small { display: block; color: #5b6573; font-size: .72rem; }
.dh-smtp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .55rem;
}
.dh-smtp-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  text-align: left; min-height: 76px;
  border: 1px solid #e4e8ee; background: #fff;
  border-radius: .75rem; padding: .7rem .8rem;
  color: inherit;
}
.dh-smtp-card i { font-size: 1.15rem; color: var(--brand-primary); }
.dh-smtp-card strong { font-size: .82rem; }
.dh-smtp-card:hover { border-color: var(--brand-primary); }
.dh-smtp-card.is-on {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-primary) 35%, transparent);
}
.dh-tpl-head { display: flex; gap: .75rem; align-items: flex-start; }
.dh-tpl-icon {
  width: 40px; height: 40px; border-radius: .65rem;
  display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
  color: var(--brand-primary); font-size: 1.1rem;
}
.dh-tpl-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.dh-tpl-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem; padding: .15rem .45rem; border-radius: 999px;
  background: #eef1f5; color: #334;
}
html[data-theme="dark"] .dh-perm,
html[data-theme="dark"] .dh-smtp-card,
html[data-theme="dark"] .dh-role-lock { background: #121b2e; border-color: #243049; color: #e8edf5; }
html[data-theme="dark"] .dh-perm.is-on,
html[data-theme="dark"] .dh-smtp-card.is-on,
html[data-theme="dark"] .dh-role-lock { background: #1c2a44; }
html[data-theme="dark"] .dh-tpl-icon { background: #1c2a44; }
html[data-theme="dark"] .dh-tpl-chip { background: #1c2a44; color: #e8edf5; }
html[data-theme="dark"] .dh-perm small { color: #9aa7b5; }
.dh-news-card p:last-child { margin-bottom: 0; }
.dh-news-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; background: linear-gradient(120deg, var(--dh-navy), var(--brand-secondary) 48%, var(--brand-primary));
  color: #fff; border-radius: 1rem; padding: 1.15rem 1.25rem;
}
.dh-news-hero-side { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.dh-news-count {
  background: rgba(255,255,255,.14); border-radius: .75rem; padding: .45rem .8rem; text-align: center; min-width: 4.5rem;
}
.dh-news-count strong { display: block; font-size: 1.35rem; line-height: 1.1; }
.dh-news-count span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.dh-news-toolbar {
  display: flex; align-items: center; gap: .65rem;
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: .55rem .85rem;
}
.dh-news-toolbar i { color: var(--brand-primary); }
.dh-news-toolbar .form-control { border: 0; box-shadow: none; }
.dh-news-lead, .dh-news-item {
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1.15rem 1.2rem;
}
.dh-news-lead { border-left: 5px solid var(--brand-accent); }
.dh-news-lead-top, .dh-news-item-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }
.dh-news-tag {
  display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff); color: var(--brand-primary);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.dh-news-tag.is-new { background: #ffc107; color: #0a1628; }
.dh-news-tag.is-all { background: #e8f6ee; color: #146c43; }
.dh-news-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.dh-news-item h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.dh-news-body { margin: .55rem 0 .75rem; }
.dh-news-body.is-clip {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.dh-news-meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: #6c757d; font-size: .85rem;
}
.dh-news-meta a { font-weight: 600; }
.dh-news-list { display: grid; gap: .85rem; }
.dh-news-empty-icon {
  width: 3.2rem; height: 3.2rem; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem;
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff); color: var(--brand-primary);
}
html[data-theme="dark"] .dh-news-toolbar,
html[data-theme="dark"] .dh-news-lead,
html[data-theme="dark"] .dh-news-item { background: #121b2e; }
html[data-theme="dark"] .dh-news-tag { background: #1c2a44; color: #e8edf5; }
html[data-theme="dark"] .dh-news-tag.is-new { background: #ffc107; color: #0a1628; }
html[data-theme="dark"] .dh-news-body.is-clip { color: inherit; }
@media (max-width: 767.98px) {
  .dh-log-table { display: none !important; }
}
.dh-me-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem 1.1rem;
  background:
    radial-gradient(420px 180px at 96% -30%, color-mix(in srgb, var(--brand-accent) 38%, transparent), transparent),
    linear-gradient(120deg, var(--dh-navy), var(--brand-secondary) 48%, var(--brand-primary));
  color: #fff;
  border-radius: 1.05rem;
  padding: 1.2rem 1.3rem;
  animation: dhMeIn .5s ease;
}
.dh-me-hero-icon {
  width: 3.15rem; height: 3.15rem; border-radius: .9rem;
  display: grid; place-items: center; font-size: 1.45rem;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.dh-me-kicker {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: .72; font-weight: 700; margin-bottom: .15rem;
}
.dh-me-hero h1 { color: #fff; }
.dh-me-hero-main p { max-width: 42rem; }
.dh-me-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.dh-me-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: .55rem;
}
.dh-me-stat {
  background: rgba(255,255,255,.12);
  border-radius: .75rem;
  padding: .55rem .7rem;
  animation: dhRise .45s ease both;
}
.dh-me-stat:nth-child(1) { animation-delay: .06s; }
.dh-me-stat:nth-child(2) { animation-delay: .12s; }
.dh-me-stat:nth-child(3) { animation-delay: .18s; }
.dh-me-stat:nth-child(4) { animation-delay: .24s; }
.dh-me-stat strong { display: block; font-size: 1.25rem; line-height: 1.15; }
.dh-me-stat span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .82; }
.dh-me-progress {
  grid-column: 1 / -1;
  height: 8px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden;
}
.dh-me-progress > span {
  display: block; height: 100%; width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--brand-accent), #fff);
  border-radius: inherit;
  animation: dhFill .85s ease;
}
.dh-me-list { display: grid; gap: .8rem; }
.dh-me-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .85rem;
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1rem 1.1rem; text-decoration: none; color: inherit;
  border-left: 4px solid var(--brand-primary);
  animation: dhRise .42s ease both;
  transition: transform var(--dh-ease), box-shadow var(--dh-ease);
}
a.dh-me-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.1); color: inherit; }
.dh-me-list > *:nth-child(1) { animation-delay: .04s; }
.dh-me-list > *:nth-child(2) { animation-delay: .08s; }
.dh-me-list > *:nth-child(3) { animation-delay: .12s; }
.dh-me-list > *:nth-child(4) { animation-delay: .16s; }
.dh-me-list > *:nth-child(5) { animation-delay: .2s; }
.dh-me-list > *:nth-child(6) { animation-delay: .24s; }
.dh-me-list > *:nth-child(n+7) { animation-delay: .28s; }
.dh-me-item.is-warn { border-left-color: var(--brand-accent); }
.dh-me-item.is-bad { border-left-color: #b02a37; }
.dh-me-item.is-ok { border-left-color: var(--brand-primary); }
.dh-me-item-title { font-weight: 700; font-size: 1.02rem; color: var(--dh-navy); }
.dh-me-item-meta {
  display: flex; flex-wrap: wrap; gap: .25rem .85rem;
  color: #6c757d; font-size: .85rem; margin-top: .3rem;
}
.dh-me-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex-shrink: 0; }
.dh-me-amount { font-weight: 800; font-size: 1.15rem; color: var(--brand-primary); white-space: nowrap; }
.dh-me-pill {
  display: inline-flex; align-items: center; padding: .18rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.dh-me-pill.is-ok { background: #e8f6ee; color: #146c43; }
.dh-me-pill.is-wait { background: #fff3cd; color: #664d03; }
.dh-me-pill.is-bad { background: #f8d7da; color: #842029; }
.dh-me-pill.is-info { background: color-mix(in srgb, var(--brand-primary) 12%, #fff); color: var(--brand-primary); }
.dh-me-pill.is-pulse { animation: dhPulse 1.6s ease-in-out infinite; }
.dh-me-empty {
  text-align: center; padding: 2.6rem 1.2rem;
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  animation: dhRise .4s ease;
}
.dh-me-empty-icon {
  width: 3.2rem; height: 3.2rem; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem;
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff); color: var(--brand-primary);
}
.dh-me-balance {
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1rem 1.05rem; height: 100%;
  animation: dhRise .45s ease both;
  transition: transform var(--dh-ease);
}
.dh-me-balance:hover { transform: translateY(-2px); }
.dh-me-bar { height: 6px; border-radius: 99px; background: #e8edf3; overflow: hidden; margin-top: .55rem; }
.dh-me-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: inherit;
}
.dh-me-form, .dh-me-panel {
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1.15rem 1.2rem; animation: dhRise .4s ease;
}
.dh-me-form { border-top: 4px solid var(--brand-accent); }
.dh-me-panel { border-left: 5px solid var(--brand-accent); }
.dh-me-panel a { text-decoration: none; }
.dh-me-upload {
  margin-top: .85rem; padding-top: .85rem;
  border-top: 1px dashed color-mix(in srgb, var(--brand-primary) 22%, #e7edf3);
}
.dh-me-page .dh-ori-card,
.dh-me-page .dh-ori-duty,
.dh-me-page .dh-ori-wait { animation: dhRise .42s ease both; }
.dh-me-page .dh-ori-card:nth-of-type(1),
.dh-me-page .dh-ori-duty:nth-of-type(1) { animation-delay: .05s; }
.dh-me-page .dh-ori-card:nth-of-type(2),
.dh-me-page .dh-ori-duty:nth-of-type(2) { animation-delay: .1s; }
.dh-me-page .dh-ori-card:nth-of-type(3),
.dh-me-page .dh-ori-duty:nth-of-type(3) { animation-delay: .15s; }
.dh-me-page .dh-ori-card:nth-of-type(n+4),
.dh-me-page .dh-ori-duty:nth-of-type(n+4) { animation-delay: .2s; }
@keyframes dhMeIn {
  from { opacity: 0; transform: translateY(-10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes dhRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes dhFill { from { width: 0; } }
@keyframes dhPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, #b02a37 40%, transparent); }
  50% { box-shadow: 0 0 0 7px transparent; }
}
@media (max-width: 767.98px) {
  .dh-me-hero {
    grid-template-columns: auto 1fr;
    padding: 1rem 1.05rem;
    gap: .75rem;
  }
  .dh-me-hero-icon { width: 2.65rem; height: 2.65rem; font-size: 1.2rem; border-radius: .75rem; }
  .dh-me-hero h1 { font-size: 1.15rem; }
  .dh-me-hero-main p { font-size: .9rem; }
  .dh-me-hero-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .dh-me-hero-actions .btn { min-height: 44px; flex: 1 1 auto; }
  .dh-me-item { flex-direction: column; }
  .dh-me-item-side { align-items: flex-start; }
}
html[data-theme="dark"] .dh-me-item,
html[data-theme="dark"] .dh-me-empty,
html[data-theme="dark"] .dh-me-balance,
html[data-theme="dark"] .dh-me-form,
html[data-theme="dark"] .dh-me-panel { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-me-item-title { color: #e8edf5; }
html[data-theme="dark"] .dh-me-bar,
html[data-theme="dark"] .dh-me-upload { background: #1c2a44; border-color: #243049; }
html[data-theme="dark"] .dh-me-empty-icon { background: #1c2a44; }
.dh-promo-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.dh-promo-count {
  display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem;
  margin-left: .35rem; border-radius: 999px; font-size: .7rem; font-weight: 700;
  background: rgba(255,255,255,.25);
}
.nav-pills .nav-link:not(.active) .dh-promo-count {
  background: color-mix(in srgb, var(--brand-primary) 14%, #fff); color: var(--brand-primary);
}
.dh-promo-list { display: grid; gap: .9rem; }
.dh-promo-card {
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1.05rem 1.15rem; border-left: 4px solid var(--brand-primary);
  animation: dhRise .42s ease both;
}
.dh-promo-card.is-wait { border-left-color: var(--brand-accent); }
.dh-promo-card.is-bad { border-left-color: #b02a37; }
.dh-promo-card-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dh-promo-name { font-weight: 700; font-size: 1.05rem; color: var(--dh-navy); text-decoration: none; }
.dh-promo-name:hover { color: var(--brand-primary); }
.dh-promo-card-side { text-align: right; }
.dh-promo-path { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; justify-content: flex-end; margin-top: .35rem; font-size: .9rem; }
.dh-promo-path span { color: #6c757d; }
.dh-promo-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: #6c757d; font-size: .85rem; margin: .65rem 0; }
.dh-promo-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .4rem .75rem; }
.dh-promo-checks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0 .4rem; align-items: start; font-size: .85rem; }
.dh-promo-checks li small { grid-column: 2; color: #6c757d; }
.dh-promo-checks .is-ok i { color: #198754; }
.dh-promo-checks .is-off i { color: #b02a37; }
.dh-promo-checks .is-note i { color: var(--brand-accent); }
.dh-promo-banner {
  display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.05rem;
  border-radius: var(--dh-radius); background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, #e7edf3); font-size: .92rem; color: #334155;
}
.dh-promo-banner i { font-size: 1.2rem; color: var(--brand-primary); margin-top: .1rem; }
.dh-promo-group {
  margin: .35rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-primary);
}
.dh-promo-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .85rem; padding-top: .75rem; border-top: 1px dashed #e7edf3; }
.dh-promo-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.dh-promo-form .form-control { width: auto; min-width: 8.5rem; }
.dh-promo-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.dh-promo-preset {
  display: grid; gap: .35rem; padding: .9rem 1rem; border-radius: .85rem; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, #e7edf3);
  background: #fff;
}
.dh-promo-preset input { margin-right: .4rem; }
.dh-promo-preset.is-on, .dh-promo-preset:has(input:checked) {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 7%, #fff);
  box-shadow: 0 0 0 1px var(--brand-primary);
}
.dh-promo-preset span { font-size: .85rem; color: #5b6573; }
.dh-promo-qual { padding: .75rem 0; border-top: 1px solid #eef2f6; }
.dh-promo-qual-list { list-style: none; padding: 0; margin: .45rem 0; display: grid; gap: .25rem; }
.dh-promo-qual-list li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.dh-promo-qual-list small { color: #6c757d; }
@media (max-width: 767.98px) {
  .dh-promo-card-side, .dh-promo-path { text-align: left; justify-content: flex-start; }
  .dh-promo-form .form-control { min-width: 100%; }
}
html[data-theme="dark"] .dh-promo-card,
html[data-theme="dark"] .dh-promo-preset,
html[data-theme="dark"] .dh-promo-banner { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-promo-name { color: #e8edf5; }
html[data-theme="dark"] .dh-promo-actions { border-color: #243049; }
html[data-theme="dark"] .dh-promo-banner { border-color: #243049; }
.dh-pay-status {
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1.15rem 1.2rem; border-left: 5px solid var(--brand-primary);
  animation: dhRise .4s ease;
}
.dh-pay-status.is-wait { border-left-color: var(--brand-accent); }
.dh-pay-status-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dh-pay-status-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .7rem; color: #6c757d; font-size: .85rem; }
.dh-pay-vouchers { display: grid; gap: .35rem; margin-top: .75rem; padding-top: .7rem; border-top: 1px dashed #e7edf3; font-size: .85rem; }
.dh-pay-vouchers span, .dh-pay-vouchers a { margin-left: .5rem; }
html[data-theme="dark"] .dh-pay-status { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-pay-vouchers { border-color: #243049; }
.dh-letter-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  align-items: center; margin-bottom: 1rem;
}
.dh-letter-toolbar-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.dh-letter-paper {
  max-width: 46rem; margin: 0 auto 2rem;
  background: #fff; color: #1a1f2b;
  padding: 1.75rem 1.6rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(26,39,68,.12);
  border: 1px solid #e7edf3;
  animation: dhRise .45s ease;
}
.dh-letter-paper.is-preview { transform: scale(.92); transform-origin: top center; margin-bottom: 0; }
.dh-letter-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .9rem; }
.dh-letter-logo { max-height: 56px; max-width: 88px; object-fit: contain; }
.dh-letter-mark {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: var(--brand-primary); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.dh-letter-org { font-weight: 800; letter-spacing: .02em; color: var(--brand-secondary); }
.dh-letter-addr { font-size: .82rem; color: #5b6573; }
.dh-letter-rule {
  height: 3px; border-radius: 99px; margin: .4rem 0 1.1rem;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent), var(--brand-primary));
}
.dh-letter-title {
  font-size: 1.15rem; font-weight: 800; text-align: center;
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem;
  color: var(--brand-secondary);
}
.dh-letter-date, .dh-letter-to { margin-bottom: .85rem; }
.dh-letter-body p { margin-bottom: .85rem; line-height: 1.55; }
.dh-letter-close { margin-top: 1.4rem; }
.dh-letter-sign { margin-top: 1.5rem; }
.dh-letter-sign img { max-height: 64px; max-width: 220px; display: block; margin-bottom: .25rem; }
.dh-letter-sign-space { height: 48px; }
.dh-letter-sign-name { font-weight: 800; }
.dh-letter-sign-title { font-size: .85rem; color: #5b6573; }
.dh-letter-foot { margin-top: 1.6rem; font-size: .72rem; color: #8a93a0; border-top: 1px solid #eef2f6; padding-top: .6rem; }
.dh-letter-card { animation: dhRise .42s ease both; }
.dh-letter-card:nth-child(1) { animation-delay: .04s; }
.dh-letter-card:nth-child(2) { animation-delay: .08s; }
.dh-letter-card:nth-child(3) { animation-delay: .12s; }
.dh-letter-kind {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand-primary); margin-bottom: .2rem;
}
.dh-letter-flags { padding-left: 1.1rem; }
.dh-letter-stat { animation: dhRise .4s ease; }
.dh-letter-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.dh-letter-chip {
  border: 1px solid #dbe3ec; background: #f6f8fb; color: #334;
  border-radius: 99px; padding: .2rem .55rem; font-size: .75rem; cursor: pointer;
}
.dh-letter-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.dh-letter-preview-wrap { position: sticky; top: 5rem; }
@media print {
  .dh-letter-toolbar { display: none !important; }
  .dh-letter-paper {
    box-shadow: none; border: 0; max-width: none; margin: 0; padding: 0;
    animation: none;
  }
}
@media (max-width: 767.98px) {
  .dh-letter-paper { padding: 1.15rem 1rem 1rem; }
  .dh-letter-paper.is-preview { transform: none; }
  .dh-letter-preview-wrap { position: static; }
}
html[data-theme="dark"] .dh-letter-paper { background: #fff; color: #1a1f2b; }
.dh-leave-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.dh-leave-type {
  --leave-color: var(--brand-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: 0;
  padding: .85rem .9rem .8rem 1rem;
  border: 1px solid #e4e8ee;
  border-radius: .9rem;
  background: #fff;
  cursor: pointer;
  min-height: 5.2rem;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dh-leave-type::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem; bottom: .55rem;
  width: 4px;
  border-radius: 99px;
  background: var(--leave-color);
}
.dh-leave-type input { position: absolute; opacity: 0; pointer-events: none; }
.dh-leave-type-name { font-weight: 700; color: var(--dh-navy); padding-right: 1.4rem; }
.dh-leave-type-meta { font-size: .78rem; color: #6c757d; }
.dh-leave-type-tag {
  display: inline-flex; align-self: flex-start;
  margin-top: .25rem; padding: .08rem .45rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  background: #eef1f5; color: #445;
}
.dh-leave-type-tag.is-pay { background: #fff3cd; color: #664d03; }
.dh-leave-type.is-on {
  border-color: var(--leave-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--leave-color) 18%, transparent);
  background: color-mix(in srgb, var(--leave-color) 6%, #fff);
}
.dh-leave-type.is-on::after {
  content: "";
  position: absolute; top: .7rem; right: .7rem;
  width: .85rem; height: .85rem; border-radius: 50%;
  background: var(--leave-color);
  box-shadow: inset 0 0 0 3px #fff;
}
.dh-leave-path {
  display: flex; flex-wrap: wrap; gap: .35rem .55rem;
  list-style: none; padding: 0; margin: 0;
  font-size: .78rem; color: #6c757d;
}
.dh-leave-path li {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #f4f6f9; border-radius: 999px; padding: .22rem .65rem;
}
.dh-leave-path li:not(:last-child)::after {
  content: "→";
  margin-left: .15rem;
  opacity: .55;
}
.dh-leave-path li.is-on { background: #fff3cd; color: #664d03; font-weight: 650; }
.dh-leave-summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem;
  padding: .85rem 1rem;
  border-radius: .85rem;
  background: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  color: var(--dh-navy);
}
.dh-leave-summary strong { font-size: 1.55rem; line-height: 1; }
.dh-leave-summary-mode, .dh-leave-summary-bal { color: #5b6573; font-size: .85rem; }
.dh-leave-pay { padding: .7rem .85rem; background: #f7f8fb; border-radius: .75rem; }
.dh-leave-actions {
  display: grid; gap: .65rem;
  position: sticky; bottom: .75rem; z-index: 5;
  padding-top: .25rem;
}
.dh-leave-apply .form-control, .dh-leave-apply .form-select { min-height: 48px; }
.dh-leave-apply textarea.form-control { min-height: 5.2rem; }
@media (min-width: 768px) {
  .dh-leave-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dh-leave-actions { grid-template-columns: 1fr auto; align-items: start; }
  .dh-leave-actions .btn-outline-secondary { width: auto !important; min-width: 8rem; }
}
@media (max-width: 767.98px) {
  .dh-leave-actions { bottom: 4.4rem; }
}
html[data-theme="dark"] .dh-leave-type,
html[data-theme="dark"] .dh-leave-summary,
html[data-theme="dark"] .dh-leave-pay { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-leave-type { border-color: #243049; }
html[data-theme="dark"] .dh-leave-type-name { color: #e8edf5; }
html[data-theme="dark"] .dh-leave-type.is-on { background: color-mix(in srgb, var(--leave-color) 16%, #121b2e); }
html[data-theme="dark"] .dh-leave-path li { background: #1c2a44; color: #c9d4e5; }
html[data-theme="dark"] .dh-leave-path li.is-on { background: #3d3414; color: #ffe08a; }
.dh-me-item.is-info { border-left-color: var(--brand-primary); }
.dh-cos {
  max-width: 46rem; margin: 0 auto 2.2rem;
  background: #fff; color: #1a1f2b;
  padding: 1.5rem 1.5rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(26,39,68,.12);
  border: 1px solid #e7edf3;
  animation: dhRise .45s ease;
}
.dh-cos-title {
  font-size: 1.35rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; text-align: center;
  color: var(--brand-secondary); margin: 0 0 .35rem;
}
.dh-cos-lead { text-align: center; color: #5b6573; margin-bottom: 1.2rem; }
.dh-cos-card, .dh-cos-section, .dh-cos-ack {
  border: 1px solid #e7edf3; border-radius: .9rem;
  padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.dh-cos-card { background: color-mix(in srgb, var(--brand-primary) 6%, #fff); }
.dh-cos-card h2, .dh-cos-section h2, .dh-cos-ack h2 {
  font-size: .95rem; font-weight: 800; color: var(--brand-secondary); margin: 0 0 .75rem;
}
.dh-cos-kicker {
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-primary); margin-bottom: .25rem;
}
.dh-cos-body p { margin-bottom: .7rem; line-height: 1.55; }
.dh-cos-h {
  font-size: .92rem; font-weight: 800; color: var(--dh-navy);
  margin: 1.05rem 0 .4rem; padding-top: .2rem;
}
.dh-cos-list { margin: 0 0 .85rem; padding-left: 1.15rem; }
.dh-cos-list li { margin-bottom: .35rem; line-height: 1.5; }
.dh-cos-scan { margin: .75rem 0 0; font-size: .85rem; }
.dh-cos-empty {
  padding: 1.2rem; text-align: center; color: #6c757d;
  border: 1px dashed #dbe3ec; border-radius: .85rem; margin-bottom: 1rem;
}
.dh-cos-ack p { color: #334; line-height: 1.5; }
.dh-cos-sign-grid {
  display: grid; grid-template-columns: 1.3fr .8fr 1.1fr; gap: 1.1rem;
  margin-top: 1.4rem;
}
.dh-cos-line {
  border-bottom: 1px solid #1a1f2b; height: 2.4rem; margin-bottom: .35rem;
}
.dh-cos-foot { margin-top: .4rem; }
@media (max-width: 767.98px) {
  .dh-cos { padding: 1.1rem 1rem 1rem; }
  .dh-cos-sign-grid { grid-template-columns: 1fr; }
}
@media print {
  .dh-cos {
    box-shadow: none !important; border: 0; max-width: none; margin: 0; padding: 0; animation: none;
  }
  .dh-cos-card, .dh-cos-section, .dh-cos-ack { break-inside: avoid; }
  .dh-slip-logo { max-height: 72px; max-width: 110px; }
}
html[data-theme="dark"] .dh-cos { background: #fff; color: #1a1f2b; }

.dh-hod-scope {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #0a1628 0%, #0d3b2e 100%);
  color: #fff;
  border-radius: var(--dh-radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--dh-shadow);
}
.dh-hod-scope-icon {
  width: 2.4rem; height: 2.4rem; border-radius: .7rem;
  background: rgba(255,193,7,.2); color: var(--dh-gold);
  display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0;
}
.dh-hod-scope-kicker {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  opacity: .7; font-weight: 700; margin-bottom: .15rem;
}
.dh-hod-scope p { opacity: .92; }
.dh-hod-scope-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.dh-hod-scope-pills span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .78rem;
  font-weight: 650;
}
.dh-pick-search { margin-bottom: .65rem; }
.dh-pick-box {
  max-height: min(22rem, 58vh);
  overflow: auto;
  padding: .15rem .15rem .35rem;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e7edf3;
  border-radius: .75rem;
  background: color-mix(in srgb, var(--dh-surface) 65%, #fff);
}
.dh-pick-box .dh-role-grid, .dh-pick-box .dh-ori-priv-list { padding: .55rem; }
.dh-pick-count {
  align-self: center;
  font-size: .78rem;
  font-weight: 700;
  color: #5b6778;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #eef2f6;
}
.dh-user-savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .85rem 0 .25rem;
  background: linear-gradient(180deg, transparent, var(--dh-surface) 28%);
}
.dh-user-savebar .btn { min-height: 44px; }
@media (max-width: 991.98px) {
  .dh-user-savebar { bottom: 3.6rem; padding-bottom: .6rem; }
  .dh-user-savebar .btn { flex: 1 1 8rem; }
  .dh-pick-head { align-items: stretch; }
  .dh-pick-actions { width: 100%; }
  .dh-pick-actions .btn { flex: 1; min-height: 40px; }
  .dh-sms-hero { flex-direction: column; align-items: stretch; }
  .dh-sms-units { text-align: left; min-width: 0; width: 100%; }
}
html[data-theme="dark"] .dh-pick-box { background: #0f1726; border-color: #243049; }
html[data-theme="dark"] .dh-pick-count { background: #1c2a44; color: #c9d4e5; }

.dh-filter-bar {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: var(--dh-radius);
  padding: .9rem 1rem;
  box-shadow: var(--dh-shadow);
}
.dh-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  align-items: end;
}
.dh-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.dh-filter-actions .btn { min-height: 40px; }
@media (min-width: 768px) {
  .dh-filter-grid {
    grid-template-columns: minmax(14rem, 2.2fr) repeat(auto-fit, minmax(8.5rem, 1fr));
  }
  .dh-filter-actions { justify-content: flex-start; }
}
.dh-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1rem;
  padding: .85rem 0 .15rem;
}
.dh-pager-meta { font-size: .85rem; color: #5b6778; }
.dh-pager-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.dh-pager-btn, .dh-pager-num {
  min-height: 40px;
  min-width: 40px;
  padding: .4rem .8rem;
  border-radius: 10px;
  border: 1px solid #d7dde6;
  background: #fff;
  color: #0a1628;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
}
.dh-pager-btn:hover, .dh-pager-num:hover { border-color: var(--dh-green); color: var(--dh-green); }
.dh-pager-num.is-current {
  background: var(--dh-green);
  border-color: var(--dh-green);
  color: #fff;
}
.dh-pager-btn.is-off { opacity: .38; pointer-events: none; }
.dh-pager-gap { padding: 0 .15rem; color: #8a94a3; }
.dh-pager-pages { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.dh-pager-status { display: none; font-size: .85rem; color: #5b6778; font-weight: 600; }
.dh-role-pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.dh-role-pills .badge { font-weight: 600; }
@media (max-width: 767.98px) {
  .dh-pager { flex-direction: column; align-items: stretch; }
  .dh-pager-pages { display: none; }
  .dh-pager-status { display: inline; }
  .dh-pager-nav { width: 100%; justify-content: space-between; }
  .dh-pager-btn { flex: 1 1 0; }
}
.dh-dash-facility { max-width: 22rem; }
.dh-sup-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1.1rem 1.2rem; border-left: 5px solid var(--brand-accent);
  animation: dhRise .4s ease;
}
.dh-sup-card.is-empty { border-left-color: #cfd8e3; }
.dh-sup-photo {
  width: 4.2rem; height: 4.2rem; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--brand-primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.35rem;
}
.dh-sup-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-sup-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; color: #6c757d; font-size: .85rem; margin-bottom: .75rem; }
.dh-sup-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.dh-sup-actions .btn { min-height: 44px; }
@media (max-width: 767.98px) {
  .dh-sup-card { flex-direction: column; align-items: stretch; }
  .dh-sup-actions .btn { width: 100%; }
}
html[data-theme="dark"] .dh-sup-card { background: #121b2e; color: #e8edf5; }

/* User manual */
.dh-man-page { max-width: 1180px; margin: 0 auto; padding-bottom: 2rem; }
.dh-man-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  padding: 1.4rem 1.35rem 1.25rem;
  color: #fff;
  background:
    linear-gradient(135deg, var(--brand-primary) 0%, #083d2c 55%, var(--dh-navy) 100%);
  box-shadow: var(--dh-shadow);
  min-height: 10.5rem;
}
.dh-man-hero-glow {
  position: absolute; inset: auto -20% -40% 40%;
  width: 18rem; height: 18rem; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-accent) 55%, transparent), transparent 70%);
  animation: dhManFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.dh-man-hero-book {
  position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 5rem; opacity: .18;
  animation: dhManBob 3.2s ease-in-out infinite;
}
.dh-man-hero-copy { position: relative; z-index: 1; max-width: 42rem; }
.dh-man-kicker {
  letter-spacing: .12em; text-transform: uppercase; font-size: .68rem;
  font-weight: 800; opacity: .85; margin: 0 0 .35rem;
}
.dh-man-hero h1 { font-size: 1.85rem; font-weight: 800; margin: 0 0 .45rem; }
.dh-man-lead { margin: 0; opacity: .92; line-height: 1.5; }
.dh-man-hero-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.dh-man-hero-pills span {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: .28rem .7rem; font-size: .78rem; font-weight: 650;
}
.dh-man-player {
  position: sticky; top: calc(var(--topbar-height) + 8px); z-index: 20;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 1rem;
  padding: .85rem 1rem;
  box-shadow: var(--dh-shadow);
  display: grid;
  gap: .55rem;
}
.dh-man-player.is-live { border-color: color-mix(in srgb, var(--brand-primary) 45%, #e4e8ee); }
.dh-man-player-brand { display: flex; align-items: center; gap: .7rem; }
.dh-man-player-brand strong { display: block; font-size: .95rem; }
.dh-man-player-brand small { color: #5b6778; }
.dh-man-eq { display: flex; gap: 3px; height: 22px; align-items: flex-end; }
.dh-man-eq i {
  width: 4px; background: var(--brand-primary); border-radius: 2px;
  animation: dhManEq 1s ease-in-out infinite;
  height: 6px;
}
.dh-man-eq i:nth-child(2) { animation-delay: .15s; }
.dh-man-eq i:nth-child(3) { animation-delay: .3s; }
.dh-man-eq i:nth-child(4) { animation-delay: .45s; }
.dh-man-player.is-live .dh-man-eq i { height: 18px; }
.dh-man-player-controls { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.dh-man-btn-play {
  background: var(--brand-primary); color: #fff; border: 0;
  min-height: 44px; padding: .4rem 1rem; font-weight: 700; border-radius: 999px;
}
.dh-man-btn-play:hover { color: #fff; filter: brightness(1.08); }
.dh-man-player-controls .btn { min-height: 44px; min-width: 44px; border-radius: 999px; }
.dh-man-speed { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 650; }
.dh-man-speed select {
  min-height: 40px; border-radius: 10px; border: 1px solid #d7dde6; padding: 0 .55rem;
  background: #fff;
}
.dh-man-player-hint { font-size: .78rem; color: #5b6778; }
.dh-man-toolbar {
  display: grid; gap: .6rem; margin: 1rem 0;
}
.dh-man-search {
  display: flex; align-items: center; gap: .55rem;
  background: #fff; border: 1px solid #e4e8ee; border-radius: 12px; padding: .15rem .85rem;
  min-height: 44px;
}
.dh-man-search input {
  border: 0; outline: 0; width: 100%; background: transparent; min-height: 40px;
}
.dh-man-layout {
  display: grid; gap: 1rem;
}
.dh-man-toc {
  display: none;
}
.dh-man-toc-title {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 800; color: #6c757d; margin: .7rem 0 .25rem;
}
.dh-man-toc a {
  display: flex; align-items: center; gap: .45rem;
  padding: .38rem .55rem; border-radius: .55rem;
  color: #334; text-decoration: none; font-size: .86rem;
}
.dh-man-toc a.is-active, .dh-man-toc a:hover {
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
  color: var(--brand-primary);
}
.dh-man-card {
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
  padding: 1.15rem 1.2rem 1.25rem; margin-bottom: 1rem;
  border-left: 5px solid var(--brand-primary);
}
.dh-man-card-mgmt { border-left-color: var(--brand-accent); }
.dh-man-rise { animation: dhRise .45s ease both; animation-delay: var(--man-delay, 0s); }
.dh-man-card.dh-man-hidden { display: none; }
.dh-man-card header {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem;
  margin-bottom: .55rem;
}
.dh-man-card h2 { margin: 0; font-size: 1.2rem; font-weight: 800; flex: 1 1 auto; }
.dh-man-card h3 { font-size: 1rem; font-weight: 750; margin: 1rem 0 .5rem; }
.dh-man-badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: color-mix(in srgb, var(--brand-primary) 14%, #fff);
  color: var(--brand-primary); border-radius: 999px; padding: .2rem .55rem;
}
.dh-man-badge-mgmt {
  background: color-mix(in srgb, var(--brand-accent) 28%, #fff);
  color: #7a5b00;
}
.dh-man-open {
  margin-left: auto; font-size: .8rem; font-weight: 700;
  min-height: 36px; display: inline-flex; align-items: center;
}
.dh-man-list { padding-left: 1.1rem; margin: .75rem 0 0; }
.dh-man-list li { margin: .35rem 0; }
.dh-man-tips {
  display: grid; gap: .7rem; margin-top: 1rem;
}
.dh-man-tips > div {
  background: #f6f8fb; border-radius: .85rem; padding: .85rem .9rem;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: .7rem; row-gap: .15rem;
}
.dh-man-tips i { font-size: 1.35rem; color: var(--brand-primary); grid-row: 1 / span 2; align-self: center; }
.dh-man-tips strong { font-size: .9rem; }
.dh-man-tips span { font-size: .82rem; color: #5b6778; }
.dh-man-grid {
  display: grid; gap: .65rem; margin-top: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
}
.dh-man-grid a {
  display: flex; flex-direction: column; gap: .15rem;
  text-decoration: none; color: inherit;
  border: 1px solid #e4e8ee; border-radius: .85rem; padding: .8rem .85rem;
  min-height: 88px; background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.dh-man-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: var(--dh-shadow);
  color: inherit;
}
.dh-man-grid i { font-size: 1.25rem; color: var(--brand-primary); }
.dh-man-grid span { font-size: .78rem; color: #5b6778; }
.dh-man-flow {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: .55rem;
  grid-template-columns: 1fr;
}
.dh-man-flow-step {
  position: relative;
  background: #f6f8fb; border-radius: .85rem; padding: .75rem .8rem .75rem 3.6rem;
  min-height: 4.2rem;
  animation: dhRise .4s ease both;
  animation-delay: calc(var(--i, 1) * .07s);
}
.dh-man-flow-num {
  position: absolute; left: .7rem; top: .75rem;
  width: 1.55rem; height: 1.55rem; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}
.dh-man-flow-icon {
  position: absolute; left: .55rem; bottom: .55rem;
  color: var(--brand-primary); opacity: .85;
}
.dh-man-flow-step strong { display: block; }
.dh-man-flow-step span { font-size: .8rem; color: #5b6778; }
.dh-man-note {
  margin-top: .9rem; padding: .8rem .9rem; border-radius: .75rem;
  background: color-mix(in srgb, var(--brand-accent) 18%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 40%, #fff);
}
.dh-man-swim {
  display: grid; gap: .5rem; margin-top: 1rem;
  grid-template-columns: 1fr 1fr;
}
.dh-man-swim > div {
  border-radius: .85rem; padding: .75rem .8rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 10%, #fff), #fff);
  border: 1px solid #e4e8ee;
  animation: dhRise .45s ease both;
}
.dh-man-swim strong { display: block; }
.dh-man-swim span { font-size: .78rem; color: #5b6778; }
.dh-man-split {
  margin: 1.4rem 0 .8rem;
  padding: .9rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--dh-navy), var(--brand-primary));
  color: #fff;
}
.dh-man-split h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.dh-man-split p { margin: 0; opacity: .9; }
.dh-man-staff-note {
  display: flex; gap: .8rem; align-items: flex-start;
  background: #fff; border-radius: var(--dh-radius); padding: 1rem 1.1rem;
  box-shadow: var(--dh-shadow); border-left: 5px solid #cfd8e3;
}
.dh-man-staff-note i { font-size: 1.4rem; color: #6c757d; }
.dh-man-credit { font-size: .8rem; color: #6c757d; margin: 1.2rem 0 0; }
.dh-man-svg-wrap { margin: 1.05rem 0 0; }
.dh-man-svg {
  width: 100%; height: auto; display: block;
  background: #f6f8fb; border-radius: .9rem; padding: .4rem;
}
.dh-man-svg-wrap figcaption {
  font-size: .78rem; color: #5b6778; margin-top: .4rem;
}
.is-speaking {
  background: color-mix(in srgb, var(--brand-accent) 38%, transparent);
  border-radius: .35rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 22%, transparent);
  transition: background .2s ease;
}
@keyframes dhManFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, -10px); }
}
@keyframes dhManBob {
  0%, 100% { transform: translateY(-50%) rotate(-6deg); }
  50% { transform: translateY(calc(-50% - 8px)) rotate(4deg); }
}
@keyframes dhManEq {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}
@media (min-width: 768px) {
  .dh-man-hero { padding: 1.8rem 1.8rem 1.5rem; min-height: 12rem; }
  .dh-man-hero h1 { font-size: 2.1rem; }
  .dh-man-player {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .dh-man-player-hint { grid-column: 1 / -1; }
  .dh-man-toolbar { grid-template-columns: 1.4fr .9fr; }
  .dh-man-tips { grid-template-columns: repeat(3, 1fr); }
  .dh-man-flow {
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  }
  .dh-man-flow-step { padding: 2.4rem .75rem .8rem; text-align: center; min-height: 8.2rem; }
  .dh-man-flow-num { left: 50%; top: .55rem; transform: translateX(-50%); }
  .dh-man-flow-icon { left: 50%; bottom: auto; top: 2.25rem; transform: translateX(-50%); }
  .dh-man-swim { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) {
  .dh-man-layout { grid-template-columns: 220px 1fr; align-items: start; }
  .dh-man-toc {
    display: block;
    position: sticky; top: calc(var(--topbar-height) + 7.5rem);
    background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
    padding: .75rem .55rem .85rem;
    max-height: calc(100vh - 10rem); overflow: auto;
  }
}
@media (max-width: 767.98px) {
  .dh-man-hero-book { font-size: 3.4rem; right: .4rem; opacity: .12; }
  .dh-man-open { width: 100%; justify-content: center; margin-left: 0; }
  .dh-man-player-controls .btn { flex: 1 1 auto; }
  .dh-man-grid a { min-height: 44px; }
}
html[data-theme="dark"] .dh-man-player,
html[data-theme="dark"] .dh-man-search,
html[data-theme="dark"] .dh-man-card,
html[data-theme="dark"] .dh-man-toc,
html[data-theme="dark"] .dh-man-staff-note,
html[data-theme="dark"] .dh-man-grid a { background: #121b2e; color: #e8edf5; border-color: #243049; }
html[data-theme="dark"] .dh-man-tips > div,
html[data-theme="dark"] .dh-man-flow-step { background: #1a2740; }
html[data-theme="dark"] .dh-man-player-brand small,
html[data-theme="dark"] .dh-man-flow-step span,
html[data-theme="dark"] .dh-man-grid span,
html[data-theme="dark"] .dh-man-credit { color: #9aa8bd; }
html[data-theme="dark"] .dh-man-speed select { background: #121b2e; color: #e8edf5; border-color: #243049; }
html[data-theme="dark"] .dh-man-svg { background: #1a2740; }
html[data-theme="dark"] .dh-man-svg-wrap figcaption { color: #9aa8bd; }
.dh-update-bar {
  height: .45rem; border-radius: 99px; background: rgba(11,31,58,.12); overflow: hidden; margin: .35rem 0 .75rem;
}
.dh-update-bar span {
  display: block; height: 100%; width: 38%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  animation: dhUpdateSlide 1.35s ease-in-out infinite;
}
@keyframes dhUpdateSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
html[data-theme="dark"] .dh-update-bar { background: #1a2740; }
.dh-update-path {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem;
  counter-reset: upd;
}
.dh-update-path li {
  display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; align-items: start;
  padding: .7rem .8rem; border: 1px solid #e7edf3; border-radius: .8rem; background: #fff;
}
.dh-update-path li::before {
  counter-increment: upd; content: counter(upd);
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #e8f6ee; color: var(--brand-primary); font-weight: 800;
}
.dh-update-path li.is-done::before { background: var(--brand-primary); color: #fff; }
.dh-update-path li.is-now {
  border-color: color-mix(in srgb, var(--brand-accent) 55%, #e7edf3);
  background: color-mix(in srgb, var(--brand-accent) 10%, #fff);
}
.dh-update-path li.is-now::before { background: var(--brand-accent); color: #0a1628; }
.dh-update-path strong { display: block; }
.dh-update-path span { color: #5b6778; font-size: .9rem; }
.dh-update-ready {
  border-color: color-mix(in srgb, var(--brand-accent) 45%, #e7edf3) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-accent) 25%, transparent);
}
.dh-update-more {
  background: #fff; border: 1px solid #e7edf3; border-radius: 1rem; padding: .65rem 1rem 1rem;
}
.dh-update-more summary {
  cursor: pointer; font-weight: 700; color: #5b6778; padding: .35rem 0;
}
.dh-update-more[open] summary { margin-bottom: .35rem; }
.dh-update-studio { border-color: #f0d56a !important; background: #fffdf4; }
html[data-theme="dark"] .dh-update-path li { background: #121b2e; border-color: #243049; }
html[data-theme="dark"] .dh-update-path span { color: #9aa8bd; }
html[data-theme="dark"] .dh-update-more { background: #121b2e; border-color: #243049; }
html[data-theme="dark"] .dh-update-studio { background: #2a2410; border-color: #5a4a14 !important; }

/* Page “how to use this” hint — every signed-in and auth screen */
.dh-page-hint {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-accent) 14%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, #e7edf3);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--dh-radius);
  box-shadow: var(--dh-shadow);
  padding: .85rem 1rem .95rem;
  animation: dhRise .4s ease;
}
.dh-page-hint-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.dh-page-hint-summary::-webkit-details-marker,
.dh-page-hint-summary::marker { display: none; }
.dh-page-hint-icon {
  flex-shrink: 0;
  width: 2.45rem; height: 2.45rem; border-radius: .75rem;
  display: grid; place-items: center;
  font-size: 1.2rem;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
}
.dh-page-hint-copy { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.dh-page-hint-kicker {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: #6c757d;
}
.dh-page-hint-title {
  font-weight: 800; color: var(--dh-navy); font-size: 1.02rem; line-height: 1.25;
}
.dh-page-hint-toggle {
  margin-left: auto;
  flex-shrink: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-primary);
  padding: .35rem .65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
  min-height: 32px;
  display: inline-flex; align-items: center;
}
.dh-page-hint[open] .dh-page-hint-toggle { background: color-mix(in srgb, var(--brand-accent) 28%, #fff); color: #5c4300; }
.dh-page-hint-toggle::after { content: 'Show'; margin-left: .15rem; }
.dh-page-hint[open] .dh-page-hint-toggle::after { content: 'Hide'; }
.dh-page-hint-text {
  margin: .7rem 0 0 3.2rem;
  color: #3d4a5c;
  font-size: .95rem;
  line-height: 1.5;
  max-width: 52rem;
}
.auth-card .dh-page-hint { margin-top: .15rem; }
.auth-card .dh-page-hint-text { margin-left: 0; }
@media (max-width: 767.98px) {
  .dh-page-hint { padding: .8rem .85rem .9rem; }
  .dh-page-hint-icon { width: 2.2rem; height: 2.2rem; font-size: 1.05rem; }
  .dh-page-hint-text { margin-left: 0; font-size: .92rem; }
  .dh-page-hint-toggle { min-height: 36px; }
  .dh-page > .d-flex.justify-content-between {
    align-items: stretch !important;
  }
  .dh-page > .d-flex.justify-content-between > .d-flex,
  .dh-page > .d-flex.justify-content-between > div:last-child:not(:first-child) {
    width: 100%;
  }
  .dh-page > .d-flex.justify-content-between .btn {
    min-height: 44px;
  }
  .dh-form-section .btn,
  .stat-card .btn-primary,
  .stat-card .btn-outline-primary { min-height: 44px; }
}
@media (min-width: 768px) {
  .dh-page-hint-toggle { display: none; }
  .dh-page-hint-summary { cursor: default; pointer-events: none; }
  .dh-page-hint { padding: 1rem 1.15rem 1.05rem; }
}
html[data-theme="dark"] .dh-page-hint {
  background: linear-gradient(180deg, #1a2740, #121b2e);
  border-color: #243049;
}
html[data-theme="dark"] .dh-page-hint-icon { background: #1c2a44; color: var(--brand-accent); }
html[data-theme="dark"] .dh-page-hint-title { color: #e8edf5; }
html[data-theme="dark"] .dh-page-hint-text { color: #c5d0e0; }
html[data-theme="dark"] .dh-page-hint-toggle { background: #1c2a44; color: var(--brand-accent); }

/* Reports centre */
.dh-rpt-toolbar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.dh-rpt-find-wrap {
  position: relative; flex: 1 1 16rem; min-width: 12rem;
}
.dh-rpt-find-wrap > i {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: #6c757d; pointer-events: none;
}
.dh-rpt-find { padding-left: 2.2rem; min-height: 44px; }
.dh-rpt-group {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 800; color: var(--dh-navy); margin: 0 0 .65rem;
}
.dh-rpt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
}
.dh-rpt-card {
  display: flex; flex-direction: column; gap: .35rem;
  background: #fff; border-radius: 1rem;
  padding: 1.15rem 1.2rem 1.05rem;
  text-decoration: none; color: inherit;
  box-shadow: var(--dh-shadow);
  border: 1px solid transparent;
  border-top: 4px solid var(--brand-primary);
  position: relative; overflow: hidden;
  animation: dhRise .5s ease both;
  animation-delay: var(--d, 0ms);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dh-rpt-card:nth-child(3n+2) { border-top-color: var(--dh-navy); }
.dh-rpt-card:nth-child(3n) { border-top-color: var(--brand-accent); }
.dh-rpt-card-extra { border-top-color: var(--brand-accent); }
.dh-rpt-card::after {
  content: "";
  position: absolute; inset: 0 auto auto -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,193,7,.14), transparent);
  animation: dhRptShine 3.2s ease-in-out infinite;
  pointer-events: none;
}
.dh-rpt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15,23,42,.12);
  color: inherit;
  border-color: color-mix(in srgb, var(--brand-primary) 18%, #fff);
}
.dh-rpt-ico {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  display: grid; place-items: center; font-size: 1.2rem;
  background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
  color: var(--brand-primary); margin-bottom: .15rem;
}
.dh-rpt-card:nth-child(3n+2) .dh-rpt-ico {
  background: color-mix(in srgb, var(--dh-navy) 12%, #fff); color: var(--dh-navy);
}
.dh-rpt-card:nth-child(3n) .dh-rpt-ico,
.dh-rpt-card-extra .dh-rpt-ico {
  background: color-mix(in srgb, var(--brand-accent) 22%, #fff); color: #7a5b00;
}
.dh-rpt-card strong { color: var(--dh-navy); font-size: 1.05rem; }
.dh-rpt-card > span { color: #5b6778; font-size: .9rem; line-height: 1.4; flex: 1; }
.dh-rpt-card em {
  font-style: normal; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-primary); margin-top: .35rem;
}
.dh-rpt-aside {
  background: color-mix(in srgb, var(--brand-accent) 16%, #fff);
  border-left: 4px solid var(--brand-accent);
  border-radius: .75rem;
  padding: .7rem .95rem; color: #3d4a5c;
}
.dh-rpt-chart-wrap { overflow: hidden; }
.dh-rpt-chart { position: relative; height: 220px; }
.dh-rpt-table {
  background: #fff; border-radius: var(--dh-radius); box-shadow: var(--dh-shadow);
}
.dh-rpt-table thead th {
  background: var(--dh-navy); color: #fff; font-weight: 600;
  white-space: nowrap; font-size: .82rem;
}
.dh-rpt-table tbody tr:nth-child(even) { background: #f7faf8; }
.dh-rpt-table tbody tr:hover { background: color-mix(in srgb, var(--brand-primary) 8%, #fff); }
@keyframes dhRptShine {
  0%, 58% { transform: translateX(0); }
  82% { transform: translateX(380%); }
  100% { transform: translateX(380%); }
}
@media (max-width: 767.98px) {
  .dh-rpt-card { min-height: 44px; }
  .dh-rpt-chart { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-rpt-card, .dh-rpt-card::after { animation: none; }
}
@media print {
  .dh-rpt-toolbar, .dh-rpt-chart-wrap, .dh-rpt-aside { display: none !important; }
  .dh-rpt-table { box-shadow: none; }
}
html[data-theme="dark"] .dh-rpt-card,
html[data-theme="dark"] .dh-rpt-table { background: #121b2e; color: #e8edf5; }
html[data-theme="dark"] .dh-rpt-group,
html[data-theme="dark"] .dh-rpt-card strong { color: #e8edf5; }
html[data-theme="dark"] .dh-rpt-card > span { color: #c5d0e0; }
html[data-theme="dark"] .dh-rpt-ico { background: #1c2a44; }
html[data-theme="dark"] .dh-rpt-table tbody tr:nth-child(even) { background: #1c2a44; }
html[data-theme="dark"] .dh-rpt-aside { background: #1c2a44; color: #e8edf5; }
