:root {
  color-scheme: light;
  --brand-950: #003941;
  --brand-900: #11434d;
  --brand-850: #134851;
  --brand-800: #1a535b;
  --brand-700: #245d66;
  --brand-600: #4b828b;
  --mint-600: #38b9b0;
  --mint-500: #4ecdc4;
  --mint-400: #8cd4d0;
  --mint-100: #edfaf9;
  --coral-600: #e64e55;
  --coral-500: #ff6b6b;
  --coral-100: #fff1ed;
  --blue-500: #6bcfff;
  --blue-100: #ebf8ff;
  --purple-500: #9679ee;
  --purple-100: #f2efff;
  --lime-500: #c1cd4e;
  --lime-100: #f9faf0;
  --red-600: #c93636;
  --red-500: #e02020;
  --red-100: #ffeaea;
  --ink-950: #172b31;
  --ink-900: #2b4a4e;
  --ink-800: #37576f;
  --ink-700: #476e87;
  --ink-600: #536877;
  --ink-500: #6b7c86;
  --ink-400: #8d9aa1;
  --line-strong: #cdd9df;
  --line: #dde5ed;
  --line-soft: #edf2f5;
  --canvas: #f5f8fa;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --shadow-sm: 0 1px 2px rgb(0 57 65 / 7%);
  --shadow-md: 0 12px 36px rgb(0 57 65 / 10%);
  --shadow-lg: 0 24px 70px rgb(0 57 65 / 18%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 15px;
  --radius-xl: 24px;
  --sidebar-width: 264px;
  --topbar-height: 76px;
  --focus-ring: 0 0 0 3px rgb(78 205 196 / 28%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink-950);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

a {
  color: var(--brand-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-950);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
a,
input,
select,
textarea,
[tabindex]:not([tabindex="-1"]) {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  border-radius: 6px;
  box-shadow: var(--focus-ring);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--brand-950);
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 26px;
  height: 26px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Authentication */
.login-page {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--brand-800), var(--brand-600));
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
}

.login-brand {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 84px);
  overflow: hidden;
}

.login-brand::before,
.login-brand::after {
  position: absolute;
  content: "";
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 50%;
}

.login-brand::before {
  width: 420px;
  height: 420px;
  top: -190px;
  right: -190px;
}

.login-brand::after {
  width: 250px;
  height: 250px;
  bottom: -130px;
  left: -100px;
}

.login-logo {
  position: relative;
  z-index: 1;
  width: 184px;
  height: auto;
}

.login-brand__copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin-bottom: min(42vh, 330px);
  color: #fff;
}

.login-brand__eyebrow {
  margin: 0 0 14px;
  color: var(--mint-400);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-brand__copy h1 {
  max-width: 480px;
  margin: 0 0 18px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.login-brand__copy p {
  max-width: 520px;
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: 18px;
}

.login-brand__art {
  position: absolute;
  z-index: 1;
  right: clamp(24px, 5vw, 70px);
  bottom: 0;
  width: min(48%, 330px);
  max-height: 42vh;
  object-fit: contain;
  object-position: bottom;
  opacity: 0.95;
  pointer-events: none;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 28px;
  background: var(--surface-soft);
  border-radius: 32px 0 0 32px;
  box-shadow: -22px 0 70px rgb(0 57 65 / 14%);
}

.login-card {
  width: min(100%, 440px);
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.login-card__mark {
  display: none;
  width: 150px;
  margin-bottom: 28px;
}

.login-card h2 {
  margin: 0 0 8px;
  color: var(--brand-850);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.login-card__intro {
  margin: 0 0 28px;
  color: var(--ink-500);
}

.login-card__footer {
  margin: 24px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  text-align: center;
}

/* Admin shell */
.admin-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  min-height: 100vh;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(180deg, var(--brand-800), var(--brand-600));
  box-shadow: 8px 0 28px rgb(0 57 65 / 10%);
}

.sidebar__header {
  display: flex;
  align-items: center;
  min-height: var(--topbar-height);
  padding: 12px 22px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.sidebar__logo {
  width: 152px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.sidebar__close {
  display: none;
  margin-left: auto;
  color: #fff;
  background: transparent;
  border: 0;
}

.sidebar__context {
  margin: 18px 18px 6px;
  padding: 14px;
  color: rgb(255 255 255 / 82%);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.sidebar__context strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 15px;
}

.sidebar__nav {
  flex: 1;
  padding: 10px 12px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar__nav-label {
  margin: 18px 12px 7px;
  color: rgb(255 255 255 / 55%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 12px;
  margin: 3px 0;
  padding: 10px 13px;
  color: rgb(255 255 255 / 76%);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.sidebar__link:hover {
  color: #fff;
  background: rgb(255 255 255 / 9%);
  transform: translateX(2px);
}

.sidebar__link.is-active {
  color: var(--brand-950);
  background: var(--surface);
  box-shadow: 0 8px 20px rgb(0 57 65 / 12%);
}

.sidebar__link.is-active .icon {
  color: var(--mint-600);
}

.sidebar__footer {
  padding: 14px 16px 18px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.sidebar__logout {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: rgb(255 255 255 / 78%);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.sidebar__logout:hover {
  color: #fff;
  background: rgb(255 255 255 / 9%);
}

.sidebar-overlay {
  position: fixed;
  z-index: 35;
  inset: 0;
  display: none;
  background: rgb(0 31 36 / 58%);
  border: 0;
  backdrop-filter: blur(2px);
}

.admin-workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  gap: 20px;
  padding: 10px clamp(20px, 3.2vw, 44px);
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}

.topbar__menu {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--brand-800);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.topbar__title-group {
  min-width: 0;
  flex: 1;
}

.topbar__eyebrow {
  margin: 0 0 1px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar__title {
  margin: 0;
  overflow: hidden;
  color: var(--brand-850);
  font-size: 22px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__search {
  position: relative;
  width: min(34vw, 360px);
}

.topbar__search .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--mint-600);
  transform: translateY(-50%);
  pointer-events: none;
}

.topbar__search input {
  width: 100%;
  height: 42px;
  padding: 9px 36px 9px 42px;
  background: var(--canvas);
  border: 1px solid transparent;
  border-radius: 100px;
}

.topbar__search input:hover,
.topbar__search input:focus {
  background: var(--surface);
  border-color: var(--line-strong);
}

.topbar__search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.topbar__search.has-value .topbar__search-clear {
  display: flex;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user__avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand-950);
  background: var(--mint-100);
  border: 1px solid var(--mint-400);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.admin-user__meta {
  min-width: 0;
}

.admin-user__name,
.admin-user__role {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user__name {
  color: var(--ink-950);
  font-size: 13px;
  font-weight: 700;
}

.admin-user__role {
  color: var(--ink-500);
  font-size: 11px;
}

.admin-main {
  width: 100%;
  max-width: 1680px;
  min-height: calc(100vh - var(--topbar-height) - 62px);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 42px) clamp(18px, 3.2vw, 44px) 56px;
}

.admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 3.2vw, 44px);
  color: var(--ink-500);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}

/* Page composition */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-header__copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--mint-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: var(--brand-850);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.page-subtitle {
  margin: 9px 0 0;
  color: var(--ink-500);
  font-size: 15px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

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

.section-heading h2,
.section-heading h3 {
  margin: 0;
  color: var(--brand-850);
  font-size: 19px;
  letter-spacing: -0.015em;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 22px;
}

.stack--lg {
  gap: 30px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.span-2 {
  grid-column: span 2;
}

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card--padded {
  padding: clamp(18px, 2vw, 26px);
}

.card--flush {
  overflow: hidden;
}

.card--accent {
  background: linear-gradient(145deg, var(--brand-800), var(--brand-600));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.card__header h2,
.card__header h3 {
  margin: 0;
  color: var(--brand-850);
  font-size: 18px;
}

.card__header p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 13px;
}

.card__body {
  padding: 22px;
}

.card__footer {
  padding: 14px 22px;
  background: var(--surface-soft);
  border-top: 1px solid var(--line-soft);
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  color: var(--brand-950);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 140ms ease, border 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  color: var(--brand-950);
  background: var(--surface-soft);
  border-color: var(--ink-400);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled,
.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button--primary {
  color: var(--brand-950);
  background: var(--mint-500);
  border-color: var(--mint-500);
}

.button--primary:hover {
  background: var(--mint-400);
  border-color: var(--mint-400);
}

.button--danger {
  color: var(--red-600);
  background: var(--surface);
  border-color: #f0b7b7;
}

.button--danger:hover {
  color: #fff;
  background: var(--red-600);
  border-color: var(--red-600);
}

.button--ghost {
  min-height: 36px;
  padding: 7px 10px;
  background: transparent;
  border-color: transparent;
}

.button--ghost:hover {
  background: var(--canvas);
  border-color: transparent;
}

.button--small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.button--icon {
  width: 40px;
  padding: 0;
  border-radius: 50%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--mint-600);
}

/* Alerts */
.flash-region {
  display: grid;
  gap: 10px;
  max-width: 1680px;
  margin: 20px auto -2px;
  padding: 0 clamp(18px, 3.2vw, 44px);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  color: var(--ink-950);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint-600);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.alert--success {
  background: var(--mint-100);
  border-color: #b6e6e2;
  border-left-color: var(--mint-600);
}

.alert--danger {
  background: var(--red-100);
  border-color: #f3bcbc;
  border-left-color: var(--red-600);
}

.alert--warning {
  background: #fff8e5;
  border-color: #f1d797;
  border-left-color: #bd7811;
}

.alert__content {
  min-width: 0;
  flex: 1;
}

.alert__content strong {
  display: block;
  margin-bottom: 1px;
}

.alert__content p {
  margin: 0;
  color: var(--ink-600);
  font-size: 13px;
}

.alert__dismiss {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

/* Metrics and summaries */
.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-lazy-panel {
  min-height: 220px;
}

.dashboard-lazy-panel__placeholder {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-500);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--mint-200);
  border-top-color: var(--mint-600);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.stat-card--loading {
  display: grid;
  min-height: 176px;
  align-content: start;
  gap: 13px;
}

.skeleton--circle { width: 42px; height: 42px; border-radius: 50%; }
.skeleton--label { width: 45%; height: 13px; margin-top: 12px; }
.skeleton--value { width: 34%; height: 36px; }
.skeleton--text { width: 68%; height: 13px; }
.skeleton--eyebrow { width: 118px; height: 12px; }
.skeleton--title { width: min(300px, 70vw); height: 38px; }
.skeleton--subtitle { width: min(540px, 92vw); height: 16px; }
.skeleton--table-line { display: block; width: 100%; height: 28px; }

.page-loading {
  display: grid;
  gap: 28px;
}

.page-loading__heading {
  display: grid;
  gap: 10px;
}

.page-loading__table {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-loading__message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

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

.stat-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--stat-color, var(--brand-800));
  background: var(--stat-tint, var(--mint-100));
  border-radius: 50%;
}

.stat-card__label {
  margin: 14px 0 4px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 600;
}

.stat-card__value {
  margin: 0;
  color: var(--brand-850);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.stat-card__trend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 12px;
}

.trend--up {
  color: #18745c;
}

.trend--down {
  color: var(--red-600);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row__label {
  color: var(--ink-600);
  font-size: 13px;
}

.metric-row__value {
  color: var(--brand-850);
  font-weight: 800;
}

.progress {
  height: 8px;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 100px;
}

.progress__bar {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--progress-color, var(--mint-500));
  border-radius: inherit;
}

/* Charts without external libraries */
.bar-chart {
  display: grid;
  min-height: 240px;
  align-items: end;
  gap: 10px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(28px, 1fr);
  padding-top: 28px;
  overflow-x: auto;
}

.bar-chart__item {
  display: grid;
  min-width: 28px;
  height: 210px;
  grid-template-rows: 1fr auto;
  gap: 8px;
}

.bar-chart__track {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  background-image: linear-gradient(to top, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 25%;
  border-bottom: 1px solid var(--line);
}

.bar-chart__bar {
  position: relative;
  width: 100%;
  min-height: 3px;
  height: var(--bar, 0%);
  background: linear-gradient(180deg, var(--mint-400), var(--mint-600));
  border-radius: 8px 8px 2px 2px;
}

.bar-chart__bar:hover::before,
.bar-chart__bar:focus::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  padding: 4px 7px;
  content: attr(data-value);
  color: #fff;
  background: var(--brand-950);
  border-radius: 5px;
  font-size: 11px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.bar-chart__label {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-summary {
  display: flex;
  align-items: center;
  gap: 26px;
}

.donut {
  --donut-a: 60%;
  --donut-b: 78%;
  position: relative;
  display: grid;
  width: 148px;
  height: 148px;
  flex: 0 0 auto;
  place-items: center;
  background: conic-gradient(var(--mint-500) 0 var(--donut-a), var(--blue-500) var(--donut-a) var(--donut-b), var(--coral-500) var(--donut-b) 100%);
  border-radius: 50%;
}

.donut::after {
  position: absolute;
  width: 92px;
  height: 92px;
  content: "";
  background: var(--surface);
  border-radius: 50%;
}

.donut__value {
  position: relative;
  z-index: 1;
  color: var(--brand-850);
  font-size: 22px;
  font-weight: 800;
}

.legend {
  display: grid;
  flex: 1;
  gap: 10px;
}

.legend__item {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  color: var(--ink-600);
  font-size: 12px;
}

.legend__dot {
  width: 10px;
  height: 10px;
  background: var(--dot, var(--mint-500));
  border-radius: 50%;
}

.legend__value {
  color: var(--ink-950);
  font-weight: 800;
}

.funnel {
  display: grid;
  gap: 9px;
}

.funnel__row {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: minmax(88px, 0.8fr) minmax(110px, 2fr) auto;
}

.funnel__label,
.funnel__value {
  font-size: 12px;
}

.funnel__label {
  color: var(--ink-600);
}

.funnel__value {
  min-width: 42px;
  color: var(--brand-850);
  font-weight: 800;
  text-align: right;
}

.funnel__track {
  height: 14px;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 100px;
}

.funnel__bar {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--progress-color, var(--mint-500));
  border-radius: inherit;
}

/* Toolbar, filters and tabs */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.toolbar__group {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.toolbar__hint {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
  text-align: right;
}

.search-control {
  position: relative;
  min-width: min(100%, 280px);
  flex: 1;
}

.search-control .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--mint-600);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-control input {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px 9px 40px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.filter-select {
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  overflow-x: auto;
  background: #eef4f6;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tabs__link,
.tabs__button {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  color: var(--ink-700);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tabs__link:hover,
.tabs__button:hover,
.tabs__link.is-active,
.tabs__button[aria-selected="true"] {
  color: var(--brand-850);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tab-panel[hidden] {
  display: none;
}

/* Tables */
.table-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}

.data-table th {
  color: var(--ink-600);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background 120ms ease;
}

.data-table tbody tr:hover {
  background: #fbfdfd;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table__primary {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 11px;
}

.data-table__primary-copy {
  min-width: 0;
}

.data-table__primary strong,
.data-table__primary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table__primary strong {
  color: var(--ink-950);
  font-size: 13px;
}

.data-table__primary small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 11px;
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.table-empty-row td {
  padding: 0;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--ink-500);
  background: var(--surface-soft);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}

.table-no-match {
  display: none;
  padding: 28px;
  color: var(--ink-500);
  text-align: center;
}

.table-no-match.is-visible {
  display: block;
}

.checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--mint-600);
}

.avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: var(--brand-850);
  background: var(--mint-100);
  border: 1px solid #c9ebe8;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.avatar--lg {
  width: 72px;
  height: 72px;
  font-size: 20px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  color: var(--ink-700);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.badge::before {
  width: 6px;
  height: 6px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.badge--success,
.badge--active,
.badge--accepted {
  color: #18745c;
  background: var(--mint-100);
  border-color: #b6e6e2;
}

.badge--warning,
.badge--pending {
  color: #8d5d10;
  background: #fff8e5;
  border-color: #f1d797;
}

.badge--danger,
.badge--error,
.badge--declined {
  color: var(--red-600);
  background: var(--red-100);
  border-color: #f3bcbc;
}

.badge--muted,
.badge--inactive,
.badge--cancelled {
  color: var(--ink-500);
  background: var(--canvas);
}

.badge--info {
  color: #176b91;
  background: var(--blue-100);
  border-color: #b9e5f8;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.category-badge::before {
  width: 10px;
  height: 10px;
  content: "";
  background: var(--category-color, var(--mint-500));
  border-radius: 50%;
}

.category--medication { --category-color: var(--purple-500); }
.category--reminder,
.category--mood { --category-color: var(--blue-500); }
.category--symptom { --category-color: var(--mint-500); }
.category--food { --category-color: var(--coral-500); }
.category--note { --category-color: var(--lime-500); }

.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination__link {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  padding: 0 9px;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.pagination__link:hover,
.pagination__link.is-active {
  color: var(--brand-950);
  background: var(--mint-100);
  border-color: var(--mint-400);
}

.pagination__link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 18px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  min-width: 0;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.form-label__optional {
  color: var(--ink-400);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--ink-950);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.form-control:hover {
  border-color: var(--ink-400);
}

.form-control:focus {
  border-color: var(--mint-600);
  box-shadow: var(--focus-ring);
}

.form-control:disabled,
.form-control[readonly] {
  color: var(--ink-500);
  background: var(--canvas);
  cursor: not-allowed;
}

textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

.form-help,
.form-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.form-help {
  color: var(--ink-500);
}

.form-error {
  color: var(--red-600);
  font-weight: 600;
}

.form-control[aria-invalid="true"] {
  border-color: var(--red-600);
}

.input-with-action {
  position: relative;
}

.input-with-action .form-control {
  padding-right: 50px;
}

.input-action {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--mint-600);
}

.check-field strong,
.check-field small {
  display: block;
}

.check-field strong {
  font-size: 13px;
}

.check-field small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 11px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.field-group-title {
  grid-column: 1 / -1;
  margin: 8px 0 -3px;
  padding: 9px 11px;
  color: var(--ink-800);
  background: var(--canvas);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Detail views */
.detail-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-800), var(--brand-600));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.detail-hero .avatar {
  width: 82px;
  height: 82px;
  color: var(--brand-950);
  background: #fff;
  border: 3px solid rgb(255 255 255 / 65%);
  font-size: 22px;
}

.detail-hero__copy {
  min-width: 0;
  flex: 1;
}

.detail-hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.detail-hero p {
  margin: 6px 0 0;
  color: rgb(255 255 255 / 76%);
}

.detail-list {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-list__item {
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.detail-list__item:nth-child(odd) {
  padding-right: 20px;
}

.detail-list__item:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line-soft);
}

.detail-list dt {
  margin-bottom: 4px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 600;
}

/* Timeline and activity */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  position: absolute;
  width: 1px;
  content: "";
  top: 22px;
  bottom: 22px;
  left: 19px;
  background: var(--line);
}

.timeline__item {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 10px 0;
  grid-template-columns: 40px minmax(0, 1fr) auto;
}

.timeline__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--brand-950);
  background: var(--event-color, var(--mint-500));
  border: 4px solid var(--surface);
  border-radius: 50%;
}

.timeline__title {
  margin: 1px 0 2px;
  color: var(--ink-950);
  font-size: 13px;
  font-weight: 700;
}

.timeline__description,
.timeline__time {
  color: var(--ink-500);
  font-size: 11px;
}

.timeline__description {
  margin: 0;
}

.timeline__time {
  padding-top: 3px;
  white-space: nowrap;
}

/* Empty and loading states */
.empty-state {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--ink-500);
  text-align: center;
}

.empty-state__image {
  width: min(180px, 48vw);
  max-height: 150px;
  margin-bottom: 15px;
  object-fit: contain;
}

.empty-state__icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 14px;
  color: var(--brand-800);
  background: var(--mint-100);
  border-radius: 50%;
}

.empty-state h3 {
  margin: 0 0 5px;
  color: var(--brand-850);
  font-size: 17px;
}

.empty-state p {
  max-width: 430px;
  margin: 0;
  font-size: 13px;
}

.empty-state .button {
  margin-top: 16px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 6px;
}

.skeleton::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 75%), transparent);
  animation: shimmer 1.45s infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

/* Marketing and operational modules */
.insight-card {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.insight-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.insight-card__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--brand-800);
  background: var(--mint-100);
  border-radius: 50%;
}

.insight-card h3 {
  margin: 15px 0 4px;
  color: var(--brand-850);
  font-size: 16px;
}

.insight-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
}

.insight-card__metric {
  margin-top: auto;
  padding-top: 16px;
  color: var(--brand-850);
  font-size: 25px;
  font-weight: 800;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.status-item__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--status-color, var(--mint-600));
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-color, var(--mint-600)) 15%, transparent);
}

.status-item__copy {
  min-width: 0;
  flex: 1;
}

.status-item__copy strong,
.status-item__copy small {
  display: block;
}

.status-item__copy strong {
  color: var(--ink-950);
  font-size: 13px;
}

.status-item__copy small {
  color: var(--ink-500);
  font-size: 11px;
}

.status-item__value {
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 700;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  color: var(--brand-850);
  background: var(--blue-100);
  border: 1px solid #b9e5f8;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.privacy-note strong {
  display: block;
  margin-bottom: 2px;
}

.privacy-note p {
  margin: 0;
  color: var(--ink-600);
}

.quick-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--ink-950);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.quick-action:hover {
  color: var(--brand-850);
  background: var(--mint-100);
  border-color: #c9ebe8;
}

.quick-action__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand-800);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.quick-action strong,
.quick-action small {
  display: block;
}

.quick-action strong {
  font-size: 13px;
}

.quick-action small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 11px;
}

/* Responsive */
@media (max-width: 1240px) {
  .stats-grid,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .login-brand__art {
    opacity: 0.5;
  }
}

@media (max-width: 960px) {
  .admin-shell {
    display: block;
  }

  .sidebar {
    width: min(var(--sidebar-width), 88vw);
    transform: translateX(-105%);
    transition: transform 190ms ease;
  }

  .sidebar__close,
  .topbar__menu {
    display: inline-flex;
  }

  .admin-body.sidebar-open {
    overflow: hidden;
  }

  .admin-body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .admin-body.sidebar-open .sidebar-overlay {
    display: block;
  }

  .admin-workspace {
    width: 100%;
  }

  .topbar {
    gap: 12px;
  }

  .topbar__search {
    width: min(32vw, 290px);
  }

  .login-shell {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .login-brand {
    padding: 38px 28px;
  }

  .login-brand__copy h1 {
    font-size: 38px;
  }

  .login-brand__copy p {
    font-size: 15px;
  }

  .login-brand__art {
    display: none;
  }

  .login-brand__copy {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .login-shell {
    display: block;
  }

  .login-brand {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 18px;
    border-radius: 0;
  }

  .login-card {
    padding: 28px 24px;
  }

  .login-card__mark {
    display: block;
  }

  .topbar {
    min-height: 66px;
    padding: 9px 14px;
  }

  .topbar__eyebrow,
  .admin-user__meta {
    display: none;
  }

  .topbar__title {
    font-size: 18px;
  }

  .topbar__search {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    display: none;
    width: auto;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .topbar__search.is-open {
    display: block;
  }

  .topbar__search-toggle {
    display: inline-flex;
  }

  .admin-main {
    padding: 22px 14px 42px;
  }

  .flash-region {
    margin-top: 14px;
    padding: 0 14px;
  }

  .page-header,
  .section-heading,
  .toolbar,
  .table-footer,
  .admin-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .page-actions,
  .toolbar__group {
    justify-content: flex-start;
  }

  .page-actions .button {
    flex: 1;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .form-field--full {
    grid-column: auto;
  }

  .donut-summary,
  .detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero {
    padding: 20px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list__item:nth-child(odd),
  .detail-list__item:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }
}

@media (min-width: 761px) {
  .topbar__search-toggle {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 17px;
  }

  .card__header,
  .card__body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .funnel__row {
    grid-template-columns: 78px minmax(80px, 1fr) auto;
  }
}

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

@media print {
  .sidebar,
  .topbar,
  .admin-footer,
  .page-actions,
  .toolbar,
  .table-actions,
  .flash-region {
    display: none !important;
  }

  .admin-shell,
  .admin-workspace {
    display: block;
    width: 100%;
  }

  .admin-main {
    max-width: none;
    padding: 0;
  }

  .card,
  .table-card,
  .stat-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
