:root {
  --ac-primary: #e8384f;
  --ac-primary-dark: #c31e37;
  --ac-primary-soft: #ffe6e8;
  --ac-primary-tint: #ffcdd3;
  --ac-primary-grad: linear-gradient(135deg, #ff8a6b 0%, #f4485c 48%, #d8213c 100%);

  --ac-ink: #23202a;
  --ac-ink-soft: #453f4c;
  --ac-muted: #7c7280;
  --ac-line: #f0e5e2;
  --ac-line-strong: #e6d6d1;
  --ac-page: #fdf8f6;
  --ac-surface: #ffffff;

  --ac-danger: #e5484d;
  --ac-danger-soft: #ffe6e6;
  --ac-warn: #d97706;
  --ac-warn-soft: #fff3dd;
  --ac-ok: #0f9d6e;
  --ac-ok-soft: #dcfaef;
  --ac-info: #3b82f6;
  --ac-info-soft: #e5efff;

  --ac-c1: #e8384f;  
  --ac-c2: #3b82f6;  
  --ac-c3: #0fb5a7;  
  --ac-c4: #ec4e8c;  
  --ac-c5: #7c5cfc;  
  --ac-c6: #f5a524;  
  --ac-c7: #12b886;  
  --ac-c8: #e5484d;  

  --ac-shadow-sm: 0 1px 2px rgba(80, 45, 35, 0.05), 0 1px 3px rgba(80, 45, 35, 0.04);
  --ac-shadow-md: 0 4px 20px rgba(90, 50, 40, 0.07);
  --ac-shadow-lg: 0 18px 44px rgba(90, 50, 40, 0.13);

  --ac-radius: 16px;
  --ac-sidebar: 260px;
}

body.ac-body {
  background: var(--ac-page);
  background-image:
    radial-gradient(1100px 460px at 88% -8%, #ffe3e6 0%, rgba(255, 227, 230, 0) 62%),
    radial-gradient(760px 380px at 2% 0%, #ffeef2 0%, rgba(255, 238, 242, 0) 58%);
  background-attachment: fixed;
  color: var(--ac-ink);
  font-family: var(--font-family, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.ac-shell { min-height: 100vh; }

.ac-sidebar {
  width: var(--ac-sidebar);
  background: #fff;
  border-right: 1px solid var(--ac-line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.ac-sidebar::-webkit-scrollbar { width: 6px; }
.ac-sidebar::-webkit-scrollbar-thumb { background: var(--ac-line-strong); border-radius: 99px; }

@media (min-width: 992px) {
  .ac-sidebar-fixed { position: fixed; inset: 0 auto 0 0; z-index: 1030; }
  .ac-main { margin-left: var(--ac-sidebar); }
}

.ac-main { min-width: 0; }
.ac-content { padding: 30px 34px 56px; max-width: 1480px; }
@media (max-width: 991.98px) { .ac-content { padding: 18px 14px 40px; } }

/* ── Brand ────────────────────────────────────────────────────────────── */
.ac-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
}
.ac-brand-mark {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: var(--ac-primary-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(232, 56, 79, 0.34);
}
.ac-brand-mark svg { width: 22px; height: 22px; }
.ac-brand-title { font-size: 16.5px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.ac-brand-sub { font-size: 12px; color: var(--ac-muted); font-weight: 500; }

.ac-clock-btn {
  margin: 4px 18px 18px; height: 48px; border: none; border-radius: 13px;
  background: var(--ac-primary-grad); color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: calc(100% - 36px); box-shadow: 0 10px 22px rgba(232, 56, 79, 0.3);
  transition: transform 0.14s ease, box-shadow 0.2s ease;
}
.ac-clock-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(232, 56, 79, 0.38); }
.ac-clock-btn svg { width: 18px; height: 18px; }

/* ── Sidebar nav ──────────────────────────────────────────────────────── */
.ac-nav { padding: 0 14px; display: flex; flex-direction: column; gap: 3px; }
.ac-nav-group {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ac-muted); padding: 14px 14px 6px;
}
.ac-nav-group:first-child { padding-top: 4px; }
.ac-nav-link {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; border-radius: 12px;
  color: var(--ac-ink-soft); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}
.ac-nav-link svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.82; }
.ac-nav-link:hover { background: var(--ac-primary-soft); color: var(--ac-primary-dark); }
.ac-nav-link:hover svg { opacity: 1; }

.ac-nav-link.active {
  background: var(--ac-primary-grad);
  color: #fff;
  box-shadow: 0 8px 18px rgba(232, 56, 79, 0.3);
}
.ac-nav-link.active svg { opacity: 1; }
.ac-nav-link.disabled { opacity: 0.45; pointer-events: none; }

.ac-sidebar-foot { margin-top: auto; padding: 14px; border-top: 1px solid var(--ac-line); }
.ac-sidebar-foot .ac-nav-link.text-danger:hover { background: var(--ac-danger-soft); color: var(--ac-danger) !important; }

/* ── Page header ──────────────────────────────────────────────────────── */
.ac-title {
  font-size: 31px; font-weight: 800; letter-spacing: -0.03em; margin: 0;
  color: var(--ac-ink);
}
.ac-subtitle { font-size: 14.5px; color: var(--ac-muted); margin-top: 6px; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.ac-card {
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow-sm);
}
.ac-card-pad { padding: 22px; }

/* ── Stat tile ────────────────────────────────────────────────────────
   A coloured wash in the corner plus a matching icon chip, so a row of
   tiles reads as distinct categories at a glance rather than six greys. */
.ac-stat {
  --accent: var(--ac-c5);
  --accent-soft: #efeaff;
  position: relative;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  padding: 18px 18px 20px;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--ac-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.ac-stat::after {
  content: '';
  position: absolute; top: -46px; right: -46px;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--accent); opacity: 0.1;
}
.ac-stat:hover { transform: translateY(-2px); box-shadow: var(--ac-shadow-md); }

.ac-stat.is-primary { --accent: var(--ac-c1); --accent-soft: var(--ac-primary-soft); }
.ac-stat.is-danger  { --accent: var(--ac-c8); --accent-soft: var(--ac-danger-soft); }
.ac-stat.is-warn    { --accent: var(--ac-c6); --accent-soft: var(--ac-warn-soft); }
.ac-stat.is-ok      { --accent: var(--ac-c7); --accent-soft: var(--ac-ok-soft); }

.ac-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.ac-stat-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ac-muted);
}
.ac-stat-head svg {
  width: 38px; height: 38px; flex-shrink: 0; padding: 9px;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent);
}
.ac-stat-value {
  margin-top: 14px; font-size: 34px; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1; position: relative;
  font-variant-numeric: tabular-nums;
}
.ac-stat-value.text-danger { color: var(--ac-danger) !important; }

/* Give the dashboard's headline row its own spectrum. */
#ar-stat-row > [class*="col"]:nth-child(1) .ac-stat,
#stat-row > [class*="col"]:nth-child(1) .ac-stat { --accent: var(--ac-c5); --accent-soft: #efeaff; }
#ar-stat-row > [class*="col"]:nth-child(2) .ac-stat,
#stat-row > [class*="col"]:nth-child(2) .ac-stat { --accent: var(--ac-c7); --accent-soft: var(--ac-ok-soft); }
#ar-stat-row > [class*="col"]:nth-child(3) .ac-stat,
#stat-row > [class*="col"]:nth-child(3) .ac-stat { --accent: var(--ac-c8); --accent-soft: var(--ac-danger-soft); }
#ar-stat-row > [class*="col"]:nth-child(4) .ac-stat,
#stat-row > [class*="col"]:nth-child(4) .ac-stat { --accent: var(--ac-c2); --accent-soft: var(--ac-info-soft); }
#ar-stat-row > [class*="col"]:nth-child(5) .ac-stat,
#stat-row > [class*="col"]:nth-child(5) .ac-stat { --accent: var(--ac-c6); --accent-soft: var(--ac-warn-soft); }
#ar-stat-row > [class*="col"]:nth-child(6) .ac-stat,
#stat-row > [class*="col"]:nth-child(6) .ac-stat { --accent: var(--ac-c4); --accent-soft: #ffe6f0; }

/* ── Metric tile (icon + label + value) ───────────────────────────────── */
.ac-metric {
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; height: 100%;
  box-shadow: var(--ac-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.ac-metric:hover { transform: translateY(-2px); box-shadow: var(--ac-shadow-md); }
.ac-metric-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ac-metric-icon svg { width: 21px; height: 21px; }
.ac-metric .k { font-size: 12.5px; color: var(--ac-muted); font-weight: 600; }
.ac-metric .v {
  font-size: 23px; font-weight: 800; margin-top: 2px;
  letter-spacing: -0.025em; font-variant-numeric: tabular-nums;
}

/* ── Tables ───────────────────────────────────────────────────────────── */
.ac-table { --bs-table-bg: transparent; margin: 0; }
.ac-table > :not(caption) > * > * { padding: 14px 16px; border-bottom-color: var(--ac-line); }
.ac-table thead th {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe9eb 100%);
  font-size: 12px; font-weight: 800; color: var(--ac-muted);
  letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap; border-bottom-color: var(--ac-line-strong);
}
.ac-table thead th:first-child { border-top-left-radius: var(--ac-radius); }
.ac-table thead th:last-child { border-top-right-radius: var(--ac-radius); }
.ac-table tbody tr:last-child > * { border-bottom: none; }
.ac-table tbody tr { transition: background 0.14s ease; }
.ac-table tbody tr:hover { background: #fff5f6; }
.ac-table tbody tr.is-flagged { background: #fff2f2; box-shadow: inset 3px 0 0 var(--ac-danger); }

/* ── Avatar ───────────────────────────────────────────────────────────── */
.ac-avatar {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: var(--ac-primary-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(232, 56, 79, 0.26);
  overflow: hidden;
}
.ac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ac-avatar.sm { width: 32px; height: 32px; font-size: 11px; border-radius: 10px; }
.ac-avatar.lg { width: 104px; height: 104px; font-size: 32px; border-radius: 28px; }

/* Rotate avatar hues so a staff list doesn't read as one solid block. */
.ac-table tbody tr:nth-child(6n+2) .ac-avatar,
.ac-list-row:nth-child(6n+2) .ac-avatar { background: linear-gradient(135deg, #6aa6ff, #3b82f6); box-shadow: 0 4px 10px rgba(59,130,246,.26); }
.ac-table tbody tr:nth-child(6n+3) .ac-avatar,
.ac-list-row:nth-child(6n+3) .ac-avatar { background: linear-gradient(135deg, #4fd6c8, #0fb5a7); box-shadow: 0 4px 10px rgba(15,181,167,.26); }
.ac-table tbody tr:nth-child(6n+4) .ac-avatar,
.ac-list-row:nth-child(6n+4) .ac-avatar { background: linear-gradient(135deg, #ff85b3, #ec4e8c); box-shadow: 0 4px 10px rgba(236,78,140,.26); }
.ac-table tbody tr:nth-child(6n+5) .ac-avatar,
.ac-list-row:nth-child(6n+5) .ac-avatar { background: linear-gradient(135deg, #a58bff, #7c5cfc); box-shadow: 0 4px 10px rgba(124,92,252,.26); }
.ac-table tbody tr:nth-child(6n) .ac-avatar,
.ac-list-row:nth-child(6n) .ac-avatar { background: linear-gradient(135deg, #4fd699, #12b886); box-shadow: 0 4px 10px rgba(18,184,134,.26); }

/* Approval rows reuse the avatar hue rotation so the queue reads as people. */
#approvals > div:nth-child(6n+2) .ac-avatar { background: linear-gradient(135deg, #6aa6ff, #3b82f6); box-shadow: 0 4px 10px rgba(59,130,246,.26); }
#approvals > div:nth-child(6n+3) .ac-avatar { background: linear-gradient(135deg, #4fd6c8, #0fb5a7); box-shadow: 0 4px 10px rgba(15,181,167,.26); }
#approvals > div:nth-child(6n+4) .ac-avatar { background: linear-gradient(135deg, #ff85b3, #ec4e8c); box-shadow: 0 4px 10px rgba(236,78,140,.26); }
#approvals > div:nth-child(6n+5) .ac-avatar { background: linear-gradient(135deg, #a58bff, #7c5cfc); box-shadow: 0 4px 10px rgba(124,92,252,.26); }
#approvals > div:nth-child(6n)   .ac-avatar { background: linear-gradient(135deg, #4fd699, #12b886); box-shadow: 0 4px 10px rgba(18,184,134,.26); }
#approvals > div:last-child { border-bottom: none !important; }

/* ── Pills ────────────────────────────────────────────────────────────── */
.ac-pill {
  border-radius: 999px; padding: 5px 12px;
  font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.ac-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; }
.ac-pill.ok   { background: var(--ac-ok-soft);     color: var(--ac-ok); }
.ac-pill.warn { background: var(--ac-warn-soft);   color: var(--ac-warn); }
.ac-pill.bad  { background: var(--ac-danger-soft); color: var(--ac-danger); }
.ac-pill.mute { background: #f2eae8;               color: var(--ac-muted); }
.ac-pill.info { background: var(--ac-info-soft);   color: var(--ac-info); }

/* ── Filter chips / toggles ───────────────────────────────────────────── */
.btn-ac-outline.active {
  background: var(--ac-primary-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(232, 56, 79, 0.28);
}

.form-check-input:checked { background-color: var(--ac-primary); border-color: var(--ac-primary); }
.form-check-input:focus { border-color: var(--ac-primary); box-shadow: 0 0 0 0.2rem rgba(232, 56, 79, 0.18); }

/* ── Row list ─────────────────────────────────────────────────────────── */
.ac-list-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border-bottom: 1px solid var(--ac-line);
  transition: background 0.14s ease;
}
.ac-list-row:last-child { border-bottom: none; }
.ac-list-row:hover { background: #fff5f6; }

/* ── Charts / bars ────────────────────────────────────────────────────── */
.ac-chart svg { width: 100%; display: block; }
.ac-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--ac-muted); font-weight: 600; }
.ac-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ac-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 3px; }

.ac-bar-track { height: 10px; border-radius: 999px; background: #f3eae7; overflow: hidden; }
.ac-bar-track i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--ac-primary-grad);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Department bars cycle the categorical palette. */
#departments > *:nth-child(8n+1) .ac-bar-track i { background: linear-gradient(90deg, #ff8a6b, #e8384f); }
#departments > *:nth-child(8n+2) .ac-bar-track i { background: linear-gradient(90deg, #6aa6ff, #3b82f6); }
#departments > *:nth-child(8n+3) .ac-bar-track i { background: linear-gradient(90deg, #4fd6c8, #0fb5a7); }
#departments > *:nth-child(8n+4) .ac-bar-track i { background: linear-gradient(90deg, #ff85b3, #ec4e8c); }
#departments > *:nth-child(8n+5) .ac-bar-track i { background: linear-gradient(90deg, #a58bff, #7c5cfc); }
#departments > *:nth-child(8n+6) .ac-bar-track i { background: linear-gradient(90deg, #ffc861, #f5a524); }
#departments > *:nth-child(8n+7) .ac-bar-track i { background: linear-gradient(90deg, #4fd699, #12b886); }
#departments > *:nth-child(8n) .ac-bar-track i   { background: linear-gradient(90deg, #ff7c80, #e5484d); }

/* ── Timeline ─────────────────────────────────────────────────────────── */
.ac-timeline { position: relative; }
.ac-timeline-item { position: relative; padding-left: 28px; padding-bottom: 22px; }
.ac-timeline-item:last-child { padding-bottom: 0; }
.ac-timeline-item::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--ac-line-strong);
}
.ac-timeline-item::after {
  content: ''; position: absolute; left: 5.5px; top: 18px; bottom: 0;
  width: 2px; background: var(--ac-line);
}
.ac-timeline-item:last-child::after { display: none; }
.ac-timeline-item.is-latest::before {
  background: var(--ac-primary); border-color: var(--ac-primary-tint);
  box-shadow: 0 0 0 3px rgba(232, 56, 79, 0.16);
}

/* ── Tabs & buttons ───────────────────────────────────────────────────── */
.ac-tabs .nav-link {
  color: var(--ac-muted); font-weight: 700;
  border: none; border-bottom: 2.5px solid transparent;
  padding: 11px 4px; margin-right: 26px;
}
.ac-tabs .nav-link:hover { color: var(--ac-primary-dark); }
.ac-tabs .nav-link.active { color: var(--ac-primary); border-bottom-color: var(--ac-primary); background: none; }

.btn-ac {
  background: var(--ac-primary-grad); color: #fff; font-weight: 700;
  border: none; border-radius: 11px; padding: 9px 18px;
  box-shadow: 0 8px 18px rgba(232, 56, 79, 0.28);
  transition: transform 0.14s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-ac:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(232, 56, 79, 0.36); }
.btn-ac:disabled { opacity: 0.55; box-shadow: none; transform: none; }

.btn-ac-outline {
  border: 1px solid var(--ac-line-strong); background: #fff; color: var(--ac-ink);
  font-weight: 700; border-radius: 11px; padding: 8px 16px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-ac-outline:hover { background: var(--ac-primary-soft); color: var(--ac-primary-dark); border-color: var(--ac-primary-tint); }

.form-control, .form-select {
  border-color: var(--ac-line-strong); border-radius: 11px; padding: 9px 13px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ac-primary);
  box-shadow: 0 0 0 0.2rem rgba(232, 56, 79, 0.14);
}
.form-select-sm { padding: 6px 30px 6px 11px; background-position: right 9px center; }
/* Compact selects still need room for the caret, or the value sits under it. */
.form-select.w-auto { min-width: 78px; }
.form-label { font-weight: 700; font-size: 13.5px; color: var(--ac-ink-soft); }

.ac-empty {
  padding: 34px 28px; text-align: center; color: var(--ac-muted); font-size: 14px;
}

/* Bootstrap surfaces retinted to the console palette */
.modal-content { border-radius: var(--ac-radius) !important; border: none !important; box-shadow: var(--ac-shadow-lg); }
.modal-header, .modal-footer { border-color: var(--ac-line) !important; }
.dropdown-menu { border-color: var(--ac-line); border-radius: 13px; box-shadow: var(--ac-shadow-md); padding: 6px; }
.dropdown-item { border-radius: 9px; font-weight: 600; font-size: 14px; padding: 9px 12px; }
.dropdown-item:active, .dropdown-item.active { background: var(--ac-primary); }
.dropdown-item:hover { background: var(--ac-primary-soft); color: var(--ac-primary-dark); }
.offcanvas { border: none; }
.pagination .page-link { color: var(--ac-ink); border-color: var(--ac-line); font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--ac-primary); border-color: var(--ac-primary); }
.progress-bar { background: var(--ac-primary-grad); }
.nav-tabs { border-bottom-color: var(--ac-line); }
.list-group-item { border-color: var(--ac-line); }
.list-group-item-action:hover, .list-group-item-action:focus { background: var(--ac-primary-soft); color: var(--ac-primary-dark); }

/* Reveal cards on load — one gentle orchestrated entrance, nothing more. */
@media (prefers-reduced-motion: no-preference) {
  .ac-content > * { animation: ac-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .ac-content > *:nth-child(2) { animation-delay: 0.04s; }
  .ac-content > *:nth-child(3) { animation-delay: 0.08s; }
  .ac-content > *:nth-child(4) { animation-delay: 0.12s; }
  .ac-content > *:nth-child(n+5) { animation-delay: 0.16s; }
}
@keyframes ac-rise { from { opacity: 0; transform: translateY(10px); } }

/* Keyboard focus stays visible against every surface */
.ac-body :focus-visible { outline: 2px solid var(--ac-primary); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Notifications feed (admin inbox + shared with the employee page) ──── */
.ac-notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--ac-line); cursor: default; }
.ac-notif-item:last-child { border-bottom: none; }
.ac-notif-item.unread { background: #fff5f6; cursor: pointer; }
.ac-notif-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--ac-primary); visibility: hidden; }
.ac-notif-item.unread .ac-notif-dot { visibility: visible; }
.ac-notif-body { min-width: 0; flex: 1; }
.ac-notif-title { font-weight: 700; font-size: 14.5px; }
.ac-notif-meta { font-size: 12.5px; color: var(--ac-muted); margin-top: 1px; }
.ac-notif-text { font-size: 14px; color: var(--ac-ink-soft); margin-top: 6px; white-space: pre-wrap; }
.ac-notif-media { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ac-notif-media img { max-width: 260px; max-height: 200px; border-radius: 10px; border: 1px solid var(--ac-line); display: block; }
.ac-notif-media audio { height: 34px; max-width: 280px; }
.ac-notif-quote { font-size: 12.5px; font-style: italic; color: var(--ac-muted); margin-top: 6px; }

.ac-reply-zone { margin-top: 10px; }
.ac-reply-btn { border: none; background: none; padding: 0; font-size: 13px; font-weight: 700; color: var(--ac-primary); cursor: pointer; }
.ac-reply-box { margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--ac-page); border: 1px solid var(--ac-line); max-width: 420px; }
.ac-reply-input { width: 100%; border: none; background: none; resize: vertical; min-height: 40px; font-size: 14px; font-family: inherit; outline: none; }
.ac-reply-attachment audio { height: 32px; max-width: 220px; margin-top: 6px; }
.ac-reply-toolbar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ac-reply-record { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--ac-line); background: #fff; color: var(--ac-ink-soft); cursor: pointer; flex-shrink: 0; }
.ac-reply-record.recording { background: var(--ac-danger-soft); color: var(--ac-danger); border-color: var(--ac-danger); }
.ac-reply-status { font-size: 12px; color: var(--ac-muted); flex: 1; }

/* ── Message composer + recipient picker (Message Employees page) ──────── */
.ac-compose { border: 1px solid var(--ac-line); border-radius: var(--ac-radius); padding: 16px; background: #fff; }
.ac-compose textarea { border: none; resize: vertical; min-height: 64px; font-size: 14.5px; width: 100%; outline: none; }
.ac-compose-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ac-line); }
.ac-compose-tools { display: flex; align-items: center; gap: 6px; }
.ac-compose-tool { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--ac-line); background: #fff; color: var(--ac-ink-soft); cursor: pointer; }
.ac-compose-tool:hover { background: var(--ac-primary-soft); color: var(--ac-primary-dark); }
.ac-compose-tool.recording { background: var(--ac-danger-soft); color: var(--ac-danger); border-color: var(--ac-danger); }
.ac-compose-attachments { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ac-compose-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--ac-page); border: 1px solid var(--ac-line); font-size: 13px; font-weight: 600; }
.ac-compose-chip img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.ac-compose-chip button { border: none; background: none; color: var(--ac-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.ac-compose-chip audio { height: 30px; max-width: 180px; }

.ac-recipient-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ac-recipient-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ac-line); }
.ac-recipient-row:last-child { border-bottom: none; }
.ac-recipient-row .form-check-input { flex-shrink: 0; width: 18px; height: 18px; }
.ac-recipient-name { font-weight: 700; font-size: 14px; }
.ac-recipient-meta { font-size: 12.5px; color: var(--ac-muted); }
.ac-send-bar { position: sticky; bottom: 0; background: var(--ac-page); padding-top: 14px; margin-top: 6px; }

/* ============================================================================
   Auth split shell — full-viewport two-column layout for the admin and
   superadmin sign-in pages: a coral branding panel on the left, the actual
   form (scrollable, independently) on the right. Below the lg breakpoint the
   branding panel drops out entirely and the form alone fills the screen —
   there's no room to do both justice on a phone, and the form is what
   actually matters there.
   ========================================================================= */
.auth-split { min-height: 100dvh; display: flex; }

.auth-split-left {
  display: none;
  position: relative;
  flex: 0 0 44%;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 48px;
  background: var(--ac-primary-grad);
  color: #fff;
}
@media (min-width: 992px) { .auth-split-left { display: flex; } }

.auth-split-orb { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.auth-split-orb-1 { width: 340px; height: 340px; top: -120px; left: -100px; background: rgba(255,255,255,0.16); }
.auth-split-orb-2 { width: 300px; height: 300px; bottom: -140px; right: -90px; background: rgba(255,255,255,0.12); }
.auth-split-grid {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(560px 420px at 30% 20%, #000 0%, transparent 75%);
}

.auth-split-brand { position: relative; display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.auth-split-brand svg { width: 30px; height: 30px; }

.auth-split-copy { position: relative; margin-top: 10px; }
.auth-split-copy h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 14px; }
.auth-split-copy p { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.86); max-width: 380px; margin: 0; }

.auth-split-list { position: relative; list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-split-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: rgba(255,255,255,0.94); font-weight: 600; }
.auth-split-list li svg {
  flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
}

.auth-split-card {
  position: relative; margin-top: 36px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 16px; padding: 18px 20px;
  backdrop-filter: blur(6px);
}
.auth-split-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-split-card-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.auth-split-card-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #fff; }
.auth-split-card-live i { width: 6px; height: 6px; border-radius: 50%; background: #4fd699; box-shadow: 0 0 0 3px rgba(79,214,153,0.35); }
.auth-split-card-stats { display: flex; gap: 22px; margin-top: 12px; }
.auth-split-card-stats div .n { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.auth-split-card-stats div .l { font-size: 11.5px; color: rgba(255,255,255,0.72); margin-top: 2px; }

.auth-split-foot { position: relative; font-size: 12.5px; color: rgba(255,255,255,0.7); }

.auth-split-right {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; overflow-y: auto;
  background: var(--ac-page);
  background-image:
    radial-gradient(900px 380px at 100% 0%, #ffe3e6 0%, rgba(255, 227, 230, 0) 62%);
}
.auth-split-right-inner { width: 100%; max-width: 430px; }
.auth-split-mobile-brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--ac-primary); margin-bottom: 22px; }
.auth-split-mobile-brand svg { width: 26px; height: 26px; }
@media (min-width: 992px) { .auth-split-mobile-brand { display: none; } }

/* ── Year chart (Per-Employee Report) ──────────────────────────────── */
/* Recessive chrome, so the marks carry the ink: hairline grid, muted
   labels, and a hover card that floats above the plot rather than
   pushing it around. */
.yc-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.yc-legend-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ac-ink-soft); font-weight: 500;
}
.yc-swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.yc-swatch-rule { height: 2px; border-radius: 2px; width: 14px; }

.yc-plot { position: relative; }
.yc-col .yc-hit { transition: fill .12s ease; }
.yc-col:not(.yc-col-empty):hover .yc-hit { fill: var(--ac-primary-soft); opacity: .45; }

.yc-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--ac-surface); border: 1px solid var(--ac-line-strong);
  border-radius: 10px; padding: 9px 11px; min-width: 148px;
  box-shadow: 0 8px 24px rgba(35, 32, 42, .13);
}
.yc-tip[hidden] { display: none; }
.yc-tip-head { font-size: 12px; font-weight: 700; color: var(--ac-ink); margin-bottom: 5px; }
.yc-tip-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 12.5px; color: var(--ac-muted); line-height: 1.7;
}
.yc-tip-row b { color: var(--ac-ink); font-weight: 600; }

.yc-hint { font-size: 12.5px; color: var(--ac-muted); margin-top: 10px; }
.yc-empty { font-size: 13px; color: var(--ac-muted); padding: 18px 0; }
