/*
 * RIFD executive dashboard
 * Shared system: PageHeader / StatCard / ActionButton
 * Icon source: Lucide Static 1.27.0 (ISC)
 * Revision: 20260727-exec-2
 */

:root {
  --exec-navy: #1b3a6b;
  --exec-navy-deep: #11294f;
  --exec-mint: #33d6a6;
  --exec-gold: #e8b84b;
  --exec-canvas: #f4f7fb;
  --exec-surface: #ffffff;
  --exec-ink: #17243a;
  --exec-muted: #66758a;
  --exec-line: #e1e8f0;
  --exec-radius: 18px;
  --exec-shadow: 0 4px 12px rgba(27, 58, 107, 0.08);
}

.exec-panel,
.exec-panel *,
.exec-panel *::before,
.exec-panel *::after {
  box-sizing: border-box;
}

.exec-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
  color: var(--exec-ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(232, 184, 75, 0.09), transparent 26rem),
    linear-gradient(180deg, #f8fafc 0%, var(--exec-canvas) 100%);
  font-family: "Tajawal", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.exec-panel.exec-open {
  transform: none;
}

.exec-panel-header {
  display: flex;
  flex: 0 0 72px;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(18px, 3vw, 44px);
  border-bottom: 1px solid rgba(27, 58, 107, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(27, 58, 107, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.exec-brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.exec-brand-lockup > div {
  display: grid;
  gap: 1px;
}

.exec-brand-lockup strong {
  color: var(--exec-navy);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.exec-brand-lockup span {
  color: var(--exec-muted);
  font-size: 12px;
  font-weight: 600;
}

.exec-brand-mark,
.exec-title-chip {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--exec-navy);
  box-shadow: 0 7px 16px rgba(27, 58, 107, 0.2);
}

.exec-close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--exec-line);
  border-radius: 12px;
  color: var(--exec-muted);
  background: #fff;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.exec-close:hover {
  border-color: rgba(27, 58, 107, 0.28);
  color: var(--exec-navy);
  background: #f8fafc;
  transform: translateY(-1px);
}

.exec-body {
  flex: 1;
  overflow: auto;
  padding: 30px clamp(18px, 3.5vw, 54px) 70px;
}

/* Shared PageHeader */
.exec-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1760px;
  gap: 28px;
  margin: 0 auto 26px;
}

.exec-page-heading {
  min-width: 0;
}

.exec-page-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exec-title-chip {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  color: var(--exec-navy);
  background: var(--exec-gold);
  box-shadow: 0 8px 18px rgba(232, 184, 75, 0.2);
}

.exec-eyebrow {
  margin: 0 0 3px;
  color: #7c8797;
  font-family: "IBM Plex Sans Arabic", "Tajawal", Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.exec-page-header h1 {
  position: relative;
  margin: 0;
  padding-bottom: 9px;
  color: var(--exec-navy);
  font-family: "Tajawal", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.exec-page-header h1::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 66px;
  height: 3px;
  border-radius: 999px;
  background: var(--exec-gold);
}

.exec-page-subtitle {
  margin: 9px 62px 0 0;
  color: var(--exec-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.exec-page-tools {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.exec-timestamp {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid #e5eaf0;
  border-radius: 999px;
  color: #66758a;
  background: #eef2f6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.exec-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shared ActionButton */
.exec-action-button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--exec-navy);
  border-radius: 11px;
  color: var(--exec-navy);
  background: #fff;
  font: 800 13px/1 "Tajawal", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.exec-action-button:hover {
  color: var(--exec-navy-deep);
  background: #f7fafc;
  box-shadow: 0 5px 13px rgba(27, 58, 107, 0.08);
  transform: translateY(-1px);
}

.exec-action-primary {
  color: #fff;
  background: var(--exec-navy);
  box-shadow: 0 7px 16px rgba(27, 58, 107, 0.2);
}

.exec-action-primary:hover {
  color: #fff;
  border-color: var(--exec-navy-deep);
  background: var(--exec-navy-deep);
}

.exec-action-button[aria-pressed="true"] {
  border-color: var(--exec-mint);
  box-shadow: inset 0 0 0 1px var(--exec-mint);
}

/* Shared StatCard */
.exec-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1760px;
  gap: 14px;
  margin: 0 auto 30px;
}

.exec-stat-card {
  --exec-card-accent: var(--exec-navy);
  --exec-card-accent-ink: var(--exec-navy);

  display: flex;
  min-width: 0;
  min-height: 158px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--exec-line);
  border-top: 3px solid var(--exec-card-accent);
  border-radius: var(--exec-radius);
  background: #fff;
  box-shadow: 0 4px 12px rgba(27, 58, 107, 0.08);
  transition:
    box-shadow 170ms ease,
    transform 170ms ease;
}

.exec-stat-card:hover {
  box-shadow: 0 9px 22px rgba(27, 58, 107, 0.12);
  transform: translateY(-2px);
}

.exec-tone-mint {
  --exec-card-accent: var(--exec-mint);
  --exec-card-accent-ink: #178867;
}

.exec-tone-gold {
  --exec-card-accent: var(--exec-gold);
  --exec-card-accent-ink: #9a6908;
}

.exec-tone-navy {
  --exec-card-accent: var(--exec-navy);
  --exec-card-accent-ink: var(--exec-navy);
}

.exec-tone-neutral {
  --exec-card-accent: #718198;
  --exec-card-accent-ink: #50627a;
}

.exec-stat-card-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.exec-stat-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--exec-card-accent);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--exec-card-accent) 26%, transparent);
}

.exec-stat-copy {
  min-width: 0;
}

.exec-stat-label {
  display: block;
  overflow: hidden;
  color: var(--exec-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-stat-value {
  display: block;
  margin-top: 6px;
  color: var(--exec-card-accent-ink);
  font-family: "IBM Plex Sans Arabic", "Tajawal", Tahoma, Arial, sans-serif;
  font-size: clamp(36px, 2.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.exec-stat-footer {
  display: flex;
  min-height: 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf1f5;
  padding-top: 10px;
}

.exec-stat-hint {
  color: #7a8798;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.exec-trend-indicator {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.exec-trend-up {
  color: #0d7959;
  background: rgba(51, 214, 166, 0.15);
}

.exec-trend-down {
  color: #b33340;
  background: #fff0f1;
}

.exec-trend-flat {
  color: #64748b;
  background: #eef2f6;
}

/* Sections */
.exec-section {
  max-width: 1760px;
  margin: 0 auto 30px;
}

.exec-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.exec-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--exec-navy);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.exec-section-heading p {
  margin: 4px 0 0;
  color: var(--exec-muted);
  font-size: 12px;
  font-weight: 500;
}

.exec-count-badge {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  padding-inline: 8px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--exec-gold);
  font-size: 12px;
  font-weight: 900;
}

/* Department status grid */
.exec-dept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.exec-dept-card {
  --exec-dept-accent: var(--exec-mint);

  display: flex;
  min-height: 252px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--exec-line);
  border-radius: var(--exec-radius);
  background: #fff;
  box-shadow: var(--exec-shadow);
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.exec-dept-live {
  border-inline-start: 4px solid var(--exec-mint);
  cursor: pointer;
}

.exec-dept-live:hover,
.exec-dept-live:focus-visible {
  border-color: rgba(51, 214, 166, 0.7);
  outline: none;
  box-shadow:
    0 12px 26px rgba(27, 58, 107, 0.13),
    0 0 0 3px rgba(51, 214, 166, 0.12);
  transform: translateY(-2px);
}

.exec-dept-card[data-exec-service="ambulance"] {
  --exec-dept-accent: #e86f6f;
}

.exec-dept-card[data-exec-service="physio"] {
  --exec-dept-accent: #33d6a6;
}

.exec-dept-card[data-exec-service="nutrition"] {
  --exec-dept-accent: #e8b84b;
}

.exec-dept-card[data-exec-service="social"] {
  --exec-dept-accent: #4db9aa;
}

.exec-dept-card[data-exec-service="sterile"] {
  --exec-dept-accent: #7587d9;
}

.exec-dept-card[data-exec-service="pharmacy"] {
  --exec-dept-accent: #4aa6d9;
}

.exec-dept-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.exec-dept-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--exec-dept-accent);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--exec-dept-accent) 28%, transparent);
}

.exec-status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.exec-status-live {
  color: #fff;
  background: var(--exec-mint);
}

.exec-status-pending {
  color: var(--exec-navy);
  background: var(--exec-gold);
}

.exec-dept-info {
  margin-top: 14px;
}

.exec-dept-info h3 {
  margin: 0;
  color: var(--exec-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.exec-dept-info > span {
  display: block;
  margin-top: 2px;
  color: #7b8796;
  font-family: "IBM Plex Sans Arabic", "Tajawal", Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.exec-dept-placeholder {
  display: flex;
  min-height: 82px;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf1f5;
}

.exec-placeholder-line {
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: var(--exec-dept-accent);
}

.exec-dept-placeholder p {
  margin: 9px 0 0;
  color: #8290a1;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.exec-dept-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 16px;
  padding: 12px 0;
  border-block: 1px solid #edf1f5;
}

.exec-dept-stats > div {
  min-width: 0;
  text-align: center;
}

.exec-dept-stats > div + div {
  border-inline-start: 1px solid #e8edf3;
}

.exec-dept-stats strong {
  display: block;
  color: var(--exec-navy);
  font-family: "IBM Plex Sans Arabic", "Tajawal", Tahoma, Arial, sans-serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.05;
}

.exec-dept-stats span {
  display: block;
  margin-top: 4px;
  color: #7d8999;
  font-size: 12px;
  font-weight: 700;
}

.exec-dept-stats .is-warning strong {
  color: #a16c05;
}

.exec-dept-substatus {
  display: flex;
  min-height: 24px;
  gap: 5px;
  margin-top: 11px;
  overflow: hidden;
}

.exec-substatus-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  color: #526276;
  background: #eef2f6;
  font-size: 12px;
  font-weight: 700;
}

.exec-substatus-pill b {
  color: var(--exec-navy);
  font-weight: 900;
}

/* Overdue and chart cards */
.exec-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.8fr);
  gap: 18px;
}

.exec-attention-card,
.exec-trend-card {
  min-height: 236px;
  overflow: hidden;
  border: 1px solid var(--exec-line);
  border-inline-start: 4px solid var(--exec-gold);
  border-radius: var(--exec-radius);
  background: #fff;
  box-shadow: var(--exec-shadow);
}

.exec-attention-empty,
.exec-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 30px;
}

.exec-attention-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--exec-navy);
  background: var(--exec-gold);
  box-shadow: 0 7px 16px rgba(232, 184, 75, 0.2);
}

.exec-attention-empty h3,
.exec-chart-empty h3 {
  margin: 0;
  color: var(--exec-navy);
  font-size: 16px;
  font-weight: 900;
}

.exec-attention-empty p,
.exec-chart-empty p {
  margin: 5px 0 0;
  color: var(--exec-muted);
  font-size: 12px;
  line-height: 1.6;
}

.exec-feed {
  display: grid;
  gap: 0;
}

.exec-feed-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf1f5;
}

.exec-feed-item:last-child {
  border-bottom: 0;
}

.exec-feed-priority {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--exec-gold);
  box-shadow: 0 0 0 4px rgba(232, 184, 75, 0.13);
}

.exec-feed-body strong {
  display: block;
  color: var(--exec-ink);
  font-size: 13px;
  font-weight: 800;
}

.exec-feed-body span {
  display: block;
  margin-top: 3px;
  color: #7b8797;
  font-size: 12px;
  font-weight: 600;
}

.exec-feed-kind {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--exec-navy);
  background: #eef2f6;
  font-size: 12px;
  font-weight: 800;
}

.exec-trend-card {
  border-inline-start-color: var(--exec-mint);
  padding: 18px 20px 14px;
}

.exec-chart-empty {
  padding: 30px;
}

.exec-chart-icon {
  color: #fff;
  background: var(--exec-mint);
  box-shadow: 0 7px 16px rgba(51, 214, 166, 0.22);
}

.exec-trend-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.exec-trend-card-head h3 {
  margin: 0;
  color: var(--exec-navy);
  font-size: 15px;
  font-weight: 900;
}

.exec-trend-card-head p {
  margin: 3px 0 0;
  color: var(--exec-muted);
  font-size: 12px;
}

.exec-chart-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #718095;
  font-size: 12px;
  font-weight: 700;
}

.exec-chart-key i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--exec-mint);
}

.exec-chart {
  display: flex;
  height: 156px;
  align-items: flex-end;
  gap: 5px;
  margin-top: 16px;
  padding-top: 20px;
  border-bottom: 1px solid #dfe6ee;
}

.exec-chart-column {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.exec-chart-value {
  color: #738095;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 150ms ease;
}

.exec-chart-column:hover .exec-chart-value {
  opacity: 1;
}

.exec-chart-bar {
  display: block;
  width: 100%;
  max-width: 22px;
  min-height: 7px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--exec-mint), #18a780);
  box-shadow: 0 4px 8px rgba(51, 214, 166, 0.13);
}

.exec-chart-label {
  color: #8190a1;
  font-size: 12px;
  font-weight: 700;
}

/* States and toast */
.exec-state-card {
  display: flex;
  width: min(620px, calc(100% - 32px));
  min-height: 150px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8vh auto 0;
  padding: 28px;
  border: 1px solid var(--exec-line);
  border-radius: var(--exec-radius);
  background: #fff;
  box-shadow: var(--exec-shadow);
}

.exec-state-card strong {
  display: block;
  color: var(--exec-navy);
  font-size: 16px;
  font-weight: 900;
}

.exec-state-card p {
  margin: 5px 0 0;
  color: var(--exec-muted);
  font-size: 12px;
}

.exec-spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 3px solid #e4eaf0;
  border-top-color: var(--exec-mint);
  border-radius: 50%;
  animation: exec-spin 750ms linear infinite;
}

@keyframes exec-spin {
  to {
    transform: rotate(360deg);
  }
}

.exec-retry {
  min-height: 40px;
  margin-top: 13px;
  padding-inline: 14px;
  border: 1px solid var(--exec-navy);
  border-radius: 10px;
  color: #fff;
  background: var(--exec-navy);
  font: 800 12px/1 "Tajawal", Tahoma, Arial, sans-serif;
  cursor: pointer;
}

.exec-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  max-width: min(440px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid rgba(51, 214, 166, 0.36);
  border-radius: 999px;
  color: #fff;
  background: var(--exec-navy-deep);
  box-shadow: 0 12px 30px rgba(17, 41, 79, 0.22);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.exec-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Masked Lucide icon system */
.exec-icon {
  --exec-icon-url: url("/assets/icons/manager/layout-dashboard.svg");

  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-color: currentColor;
  -webkit-mask: var(--exec-icon-url) center / contain no-repeat;
  mask: var(--exec-icon-url) center / contain no-repeat;
}

.exec-stat-icon .exec-icon,
.exec-dept-icon .exec-icon,
.exec-title-chip .exec-icon,
.exec-attention-icon .exec-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.exec-icon-dashboard {
  --exec-icon-url: url("/assets/icons/manager/layout-dashboard.svg");
}

.exec-icon-clipboard {
  --exec-icon-url: url("/assets/icons/nutrition/clipboard-list.svg");
}

.exec-icon-package {
  --exec-icon-url: url("/assets/icons/nutrition/package.svg");
}

.exec-icon-alert {
  --exec-icon-url: url("/assets/icons/nutrition/triangle-alert.svg");
}

.exec-icon-zap {
  --exec-icon-url: url("/assets/icons/executive/zap.svg");
}

.exec-icon-clock {
  --exec-icon-url: url("/assets/icons/executive/clock-3.svg");
}

.exec-icon-check {
  --exec-icon-url: url("/assets/icons/executive/circle-check-big.svg");
}

.exec-icon-print {
  --exec-icon-url: url("/assets/icons/executive/printer.svg");
}

.exec-icon-download {
  --exec-icon-url: url("/assets/icons/executive/file-down.svg");
}

.exec-icon-eye {
  --exec-icon-url: url("/assets/icons/executive/eye.svg");
}

.exec-icon-calendar {
  --exec-icon-url: url("/assets/icons/executive/calendar-days.svg");
}

.exec-icon-close {
  --exec-icon-url: url("/assets/icons/executive/x.svg");
}

.exec-icon-dept-ambulance {
  --exec-icon-url: url("/assets/icons/departments/ambulance.svg");
}

.exec-icon-dept-physio {
  --exec-icon-url: url("/assets/icons/departments/dumbbell.svg");
}

.exec-icon-dept-nutrition {
  --exec-icon-url: url("/assets/icons/departments/apple.svg");
}

.exec-icon-dept-social {
  --exec-icon-url: url("/assets/icons/departments/heart-handshake.svg");
}

.exec-icon-dept-sterile {
  --exec-icon-url: url("/assets/icons/departments/shield-check.svg");
}

.exec-icon-dept-pharmacy {
  --exec-icon-url: url("/assets/icons/departments/pill.svg");
}

/* Top navigation trigger */
.exec-trigger-btn {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin-left: 8px;
  place-items: center;
  border: 1px solid rgba(27, 58, 107, 0.14);
  border-radius: 12px;
  color: var(--exec-navy);
  background: #fff;
  box-shadow: 0 4px 12px rgba(27, 58, 107, 0.07);
  cursor: pointer;
}

.exec-trigger-btn:hover {
  color: #fff;
  background: var(--exec-navy);
}

/* Responsive */
@media (max-width: 1450px) {
  .exec-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .exec-page-header {
    flex-direction: column;
  }

  .exec-page-tools {
    width: 100%;
    justify-items: start;
  }

  .exec-actions {
    justify-content: flex-start;
  }

  .exec-dept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exec-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .exec-panel-header {
    flex-basis: 64px;
    padding-inline: 14px;
  }

  .exec-brand-lockup > div span {
    display: none;
  }

  .exec-body {
    padding: 22px 14px 50px;
  }

  .exec-page-header {
    margin-bottom: 20px;
  }

  .exec-page-title-row {
    align-items: flex-start;
  }

  .exec-eyebrow {
    font-size: 12px;
  }

  .exec-page-header h1 {
    font-size: 26px;
  }

  .exec-page-subtitle {
    margin-right: 0;
  }

  .exec-page-tools {
    gap: 10px;
  }

  .exec-timestamp {
    max-width: 100%;
    white-space: normal;
  }

  .exec-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .exec-action-button {
    width: 100%;
    padding-inline: 8px;
    font-size: 12px;
  }

  .exec-kpi-strip,
  .exec-dept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exec-stat-card {
    min-height: 148px;
    padding: 15px;
  }

  .exec-stat-card-main {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .exec-stat-icon {
    width: 44px;
    height: 44px;
  }

  .exec-stat-value {
    font-size: 34px;
  }

  .exec-stat-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .exec-dept-card {
    min-height: 240px;
  }
}

@media (max-width: 520px) {
  .exec-actions {
    grid-template-columns: 1fr;
  }

  .exec-kpi-strip,
  .exec-dept-grid {
    grid-template-columns: 1fr;
  }

  .exec-title-chip {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .exec-page-header h1 {
    font-size: 24px;
  }

  .exec-dept-card {
    min-height: 232px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exec-panel,
  .exec-panel *,
  .exec-panel *::before,
  .exec-panel *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .exec-panel {
    position: static;
    overflow: visible;
    transform: none;
  }

  .exec-panel-header,
  .exec-actions,
  .exec-trigger-btn,
  .exec-close,
  .exec-toast {
    display: none !important;
  }

  .exec-body {
    overflow: visible;
    padding: 0;
  }

  .exec-page-header,
  .exec-kpi-strip,
  .exec-section {
    max-width: none;
  }

  .exec-stat-card,
  .exec-dept-card,
  .exec-attention-card,
  .exec-trend-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
