:root {
  --page-bg: #ffffff;
  --sidebar-bg: #fafafa;
  --surface: #fafafa;
  --surface-alt: #f4f4f5;
  --text: #09090b;
  --text-muted: #71717a;
  --text-faint: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --primary: #18181b;
  --primary-dark: #27272a;
  --primary-soft: #f4f4f5;
  --cyan: #52525b;
  --error: #be123c;
  --error-bg: rgba(251, 113, 133, 0.14);
  --success: #15803d;
  --success-bg: rgba(52, 211, 153, 0.14);
  --warning: #a16207;
  --warning-bg: rgba(251, 191, 36, 0.14);
  --whatsapp: #15803d;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sidebar-w: 220px;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--page-bg);
  background-image:
    radial-gradient(900px 560px at 15% -10%, #f4f4f5, rgba(10, 11, 18, 0) 60%),
    radial-gradient(800px 520px at 100% 0%, rgba(192, 132, 252, 0.10), rgba(10, 11, 18, 0) 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
}

a { color: #18181b; }

code {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Shell: sidebar + main ---------- */

.app-shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  z-index: 30;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 6px var(--primary-soft);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.sidebar-link {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover { background: var(--surface-alt); color: var(--text); }

.sidebar-link.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.45);
}

.sidebar-link svg { width: 19px; height: 19px; }

.sidebar-logout { color: var(--error); }
.sidebar-logout:hover { background: var(--error-bg); color: var(--error); }

.sidebar-sublink { display: none; padding-left: 2.4rem !important; font-size: 0.82em; opacity: 0.75; }
.sidebar-sublink--visible { display: flex; }
.sidebar-sublink:hover { opacity: 1; }

.app-main {
  flex: 1;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.75rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 7, 19, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-title { font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--text); }

.topbar-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.topbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.topbar-nav a:hover { background: var(--surface-alt); color: var(--text); }
.topbar-nav a.active { background: var(--primary-soft); color: #27272a; }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.topbar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.topbar-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-content {
  padding: 1.5rem 1.75rem 3.5rem;
  max-width: 1280px;
}

.app-content--dashboard {
  padding: 0.9rem 1.5rem 1rem;
  max-width: 1400px;
}

.app-content > h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.9rem;
  color: var(--text);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.app-content > h2:first-of-type { border-top: none; padding-top: 0; }
.app-content > h3 { color: var(--text); font-size: 0.98rem; margin: 1.4rem 0 0.6rem; }
.app-content > p { color: var(--text-muted); }
.app-content > p strong { color: var(--text); }
.app-content > ul { color: var(--text-muted); }

/* ---------- Cards / forms / tables (dark surfaces) ---------- */

.app-content > form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem 1.6rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0.9rem 0 0.35rem;
}

label:first-child { margin-top: 0; }

input[type=text], input[type=email], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%;
  max-width: 480px;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--page-bg);
  color: var(--text);
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

textarea {
  max-width: 100%;
  width: 100%;
  height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

button {
  font-family: inherit;
  font-size: 0.87rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  margin-top: 1.1rem;
  margin-right: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

button:hover { background: var(--primary-dark); }
button:active { transform: translateY(1px); }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table-scroll table { margin-top: 0; box-shadow: none; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.5rem;
  box-shadow: var(--shadow);
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text);
}

th {
  background: var(--surface-alt);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

table button {
  margin-top: 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
}

table form { display: inline-block; margin-right: 0.4rem; }

.send-form {
  display: block !important;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem 0.5rem;
  min-width: 200px;
  margin-bottom: 0.5rem !important;
}

.send-form label {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
}

.send-form input[type=datetime-local] {
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
  max-width: 100%;
}

.send-form-hint {
  font-size: 0.68rem;
  color: var(--text-faint);
  margin: 0.3rem 0 0.55rem;
}

.send-form button {
  width: 100%;
  margin: 0;
}

.btn-danger { background: var(--error-bg); color: var(--error); }
.btn-danger:hover { background: rgba(251, 113, 133, 0.28); }

.error {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.message {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.count {
  display: inline-block;
  background: var(--primary-soft);
  color: #27272a;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.35rem;
  margin: 1rem 0;
}

.preview h3 { margin-top: 0; }
.preview table { margin-top: 0.5rem; }

/* ---------- Status badges (pill chips) ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge-blue { background: var(--primary-soft); color: #27272a; }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-amber { background: var(--warning-bg); color: var(--warning); }
.badge-red { background: var(--error-bg); color: var(--error); }
.badge-gray { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.badge-whatsapp { background: rgba(37, 211, 102, 0.14); color: var(--whatsapp); }

/* ---------- Dashboard: hero cards / strip / charts (layout compacto, sin scroll) ---------- */

.dash-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.dash-hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.8rem 0.95rem;
}

.dash-hero-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-hero-icon svg { width: 13px; height: 13px; }

.dash-hero-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 2rem 0.35rem 0;
}

.dash-hero-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.dash-hero-value--text { font-size: 1rem; }

.dash-hero-value.accent { color: var(--cyan); }

.dash-hero-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.dash-hero-spark-wrap {
  position: relative;
  width: 100%;
  height: 26px;
  margin-top: 0.4rem;
}

.dash-strip {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 0.65rem;
}

.dash-strip-item {
  flex: 1 1 0;
  min-width: 130px;
  padding: 0.55rem 0.9rem;
  border-right: 1px solid var(--border);
}

.dash-strip-item:last-child { border-right: none; }

.dash-strip-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.dash-strip-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.dash-charts-grid--triple { grid-template-columns: 1.3fr 1fr 1fr; }

.dash-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem;
}

.dash-chart-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.dash-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 115px;
}

@media (max-width: 1100px) {
  .dash-charts-grid--triple { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .dash-hero-grid { grid-template-columns: 1fr 1fr; }
  .dash-charts-grid, .dash-charts-grid--triple { grid-template-columns: 1fr; }
}

/* Donut widget ("Rendimiento de email"), estilo "Current Round" */

.dash-donut-card { display: flex; flex-direction: column; }

.dash-donut-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.dash-donut-head h3 { margin: 0; }

.dash-donut-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
}

.dash-donut-ring {
  position: relative;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
}

.dash-donut-ring canvas { width: 92px !important; height: 92px !important; }

.dash-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.dash-donut-center-value { font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.1; }

.dash-donut-center-label {
  font-size: 0.56rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
}

.dash-donut-legend {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.dash-donut-legend-label { display: flex; align-items: center; color: var(--text-muted); }

.dash-donut-legend-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.45rem;
  flex-shrink: 0;
}

.dash-donut-legend-value { font-weight: 700; color: var(--text); }

.dash-table-card { padding: 0.85rem 1rem 0.4rem; }
.dash-table-card table { margin-top: 0; box-shadow: none; border: none; }
.dash-table-card th, .dash-table-card td { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
.dash-table-card th { font-size: 0.62rem; }

/* Avatares y botón pill en tablas */

.table-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: #27272a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.62rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 700;
  font-size: 0.74rem;
  text-decoration: none;
  white-space: nowrap;
}

.pill-link:hover { background: rgba(52, 211, 153, 0.26); }

/* ---------- Login ---------- */

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.9rem 1.8rem;
}

.login-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 0 6px var(--primary-soft);
  margin: 0 auto 1.2rem;
}

.login-card h1 {
  font-size: 1.2rem;
  text-align: center;
  margin: 0 0 1.4rem;
  color: var(--text);
}

.login-card button { width: 100%; margin-top: 1.3rem; padding: 0.7rem; }
.login-card label { margin-top: 1rem; }
.login-card input { max-width: 100%; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .app-shell { flex-direction: column; }

  .sidebar {
    position: sticky;
    height: auto;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    gap: 1rem;
    overflow-x: auto;
  }

  .sidebar-nav { flex-direction: row; flex: none; }

  .topbar { padding: 1rem 1.1rem; flex-wrap: wrap; }
  .app-content { padding: 1.1rem 1.1rem 3rem; }
  .dash-hero-grid, .dash-chip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .dash-hero-grid, .dash-chip-grid { grid-template-columns: 1fr; }
  .topbar-user-email { display: none; }
}

/* Light workspace, inspired by the supplied dashboard reference. */
body { background-image: none; font-size: 14px; }
:root { --surface: #fff; }
a { text-underline-offset: 3px; }
.sidebar { align-items: stretch; padding: 20px 12px 14px; gap: 26px; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; padding: 0 6px; }
.sidebar-logo { width: 32px; height: 32px; border-radius: 7px; box-shadow: none; flex-shrink: 0; font-size: 11px; }
.brand-copy { display: flex; flex-direction: column; font-size: 12px; line-height: 1.5; }
.brand-copy small { font-size: 11px; color: var(--text-muted); }
.nav-label { font-size: 11px; color: var(--text-muted); margin: 0 10px 8px; }
.sidebar-nav { align-items: stretch; gap: 4px; }
.sidebar-link { width: 100%; height: 36px; justify-content: flex-start; gap: 10px; padding: 0 10px; border-radius: 6px; font-size: 13px; color: #52525b; }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-link.active { background: #ededf0; color: #09090b; box-shadow: none; font-weight: 600; }
.sidebar-account { display: flex; align-items: center; gap: 8px; padding: 8px 6px; overflow: hidden; }
.sidebar-account .brand-copy { min-width: 0; }
.sidebar-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar { min-height: 64px; background: #fff; backdrop-filter: none; padding: 12px 28px; border-bottom: 0; }
.topbar-nav { gap: 18px; }
.topbar-nav a { padding: 4px 0; border-radius: 0; font-size: 12px; font-weight: 400; }
.topbar-nav a.active { background: none; color: #09090b; font-weight: 600; }
.topbar-user { border: none; padding: 0; background: none; }
.topbar-user-avatar { background: #f4f4f5; color: #27272a; }
.topbar-user-email { display: none; }
.app-content, .app-content--dashboard { max-width: 1600px; padding: 18px 28px 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-heading h1 { font-size: 26px; letter-spacing: -1px; margin: 0; line-height: 1.3; }
.primary-link { background: #18181b; color: white; padding: 8px 13px; border-radius: 6px; font-size: 12px; text-decoration: none; font-weight: 500; }
.primary-link:hover { background: #3f3f46; }
.dashboard-tabs { display: inline-flex; background: #f4f4f5; border-radius: 6px; padding: 4px; margin-bottom: 20px; gap: 4px; }
.dashboard-tabs a { padding: 5px 12px; font-size: 12px; text-decoration: none; color: #71717a; border-radius: 4px; }
.dashboard-tabs a.active { background: white; color: #18181b; box-shadow: var(--shadow); }
.dash-hero-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.dash-hero-card { padding: 20px; }
.dash-hero-icon { background: none; color: #71717a; top: 16px; right: 16px; }
.dash-hero-icon svg { width: 16px; height: 16px; }
.dash-hero-label { text-transform: none; letter-spacing: 0; color: #18181b; font-weight: 500; font-size: 12px; margin-bottom: 8px; }
.dash-hero-value { font-size: 25px; letter-spacing: -.6px; font-weight: 700; }
.dash-hero-sub { font-size: 11px; margin-top: 4px; }
.dash-hero-spark-wrap { display: none; }
.dashboard-primary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-bottom: 20px; }
.dash-chart-card { padding: 22px; min-width: 0; }
.dash-chart-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.card-description { color: #71717a; font-size: 12px; margin: 0 0 20px; }
.dash-chart-canvas-wrap { height: 270px; }
.recent-list { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.recent-item { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.recent-avatar { width: 34px; height: 34px; border-radius: 50%; background: #f4f4f5; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; }
.recent-copy { min-width: 0; flex: 1; }
.recent-copy strong { font-size: 12px; display: block; overflow-wrap: anywhere; }
.recent-copy small { color: #71717a; font-size: 11px; }
.recent-value { text-align: right; font-size: 12px; font-weight: 600; }
.dash-strip { margin-bottom: 20px; box-shadow: none; }
.dash-strip-label { text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 400; }
.dash-strip-item { padding: 14px 20px; }
.dash-charts-grid { gap: 18px; }
.dash-donut-ring, .dash-donut-ring canvas { width: 130px !important; height: 130px !important; }
.dash-donut-ring { flex-basis: 130px; }
button { border-radius: 6px; font-weight: 500; }
th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
tr:hover td { background: #fafafa; }
.badge-gray { background: #f4f4f5; }
.pill-link { background: #f4f4f5; color: #18181b; border-radius: 5px; }
:focus-visible { outline: 2px solid #71717a; outline-offset: 3px; }
@media(max-width:1100px) { :root { --sidebar-w: 190px; } .dash-hero-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:900px) { .sidebar { flex: none; gap: 12px; padding: 10px; align-items: center; } .sidebar-nav { flex-direction: row; } .sidebar-link { width: auto; } .sidebar-account, .nav-label, .sidebar-brand .brand-copy { display: none; } .sidebar-logout { margin-left: auto; } .dashboard-primary { grid-template-columns: 1fr; } .topbar { position: static; } }
@media(max-width:560px) { .sidebar { flex-wrap: wrap; overflow: visible; } .sidebar-nav { order: 3; width: 100%; justify-content: space-between; gap: 0; } .sidebar-link { font-size: 11px; padding: 0 6px; gap: 5px; } .topbar { padding: 12px 16px; } .topbar-nav { gap: 12px; } .app-content { padding: 16px; } .dash-hero-grid { grid-template-columns: 1fr; } .page-heading h1 { font-size: 24px; } .dash-chart-card { padding: 16px; } .dashboard-tabs { display: flex; } .dashboard-tabs a { padding: 5px 8px; } }
