/* ============================================================
   SDML GROUPE — admin.css v4.0
   SaaS Fintech Edition · Plus Jakarta Sans
   Palette: Clean Slate · Deep Navy · Emerald Green
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --brand-navy:       #0f172a;
  --brand-navy-light: #1e293b;
  --brand-navy-ghost: rgba(15, 23, 42, 0.05);
  --brand-navy-ghost-md: rgba(15, 23, 42, 0.09);

  --brand-emerald:       #10b981;
  --brand-emerald-light: #34d399;
  --brand-emerald-dim:   #059669;
  --brand-emerald-pale:  rgba(16, 185, 129, 0.1);
  --brand-emerald-ring:  rgba(16, 185, 129, 0.25);

  --brand-slate:      #f8fafc;
  --stone-pale:       #f1f5f9;
  --stone-light:      #e2e8f0;
  --white:            #ffffff;

  --slate:            #475569;
  --slate-light:      #64748b;
  --slate-pale:       #94a3b8;

  --border:           rgba(15, 23, 42, 0.08);
  --border-md:        rgba(15, 23, 42, 0.15);
  --border-emerald:   rgba(16, 185, 129, 0.25);

  /* Status Colors */
  --success:      #10b981;
  --success-bg:   #ecfdf5;
  --success-brd:  rgba(16, 185, 129, 0.2);
  --error:        #ef4444;
  --error-bg:     #fef2f2;
  --error-brd:    rgba(239, 68, 68, 0.2);
  --warning:      #f59e0b;
  --warning-bg:   #fffbeb;
  --warning-brd:  rgba(245, 158, 11, 0.2);
  --info:         #3b82f6;
  --info-bg:      #eff6ff;

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* SaaS Shadows */
  --shadow-xs:      0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-sm:      0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-card:    0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lift:    0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-emerald: 0 6px 24px rgba(16, 185, 129, 0.2);
  --shadow-navy:    0 10px 36px rgba(15, 23, 42, 0.2);

  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .2s;

  --sidebar-w: 252px;
  --header-h:  64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--brand-slate);
  color: var(--brand-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
::selection { background: var(--brand-emerald-pale); color: var(--brand-navy); }

/* ================================================================
   PAGE LOGIN
================================================================ */
.admin-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(15, 23, 42, 0.05) 0%, transparent 50%),
    var(--brand-slate);
  padding: 1.25rem;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.75rem 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lift);
}

/* Ligne Emerald en haut */
.login-card::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-emerald), var(--brand-emerald-light));
  border-radius: var(--r-full);
  margin: 0 auto 1.75rem;
}

.login-logo {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  color: var(--brand-navy);
  margin-bottom: .3rem;
  letter-spacing: -.02em;
}
.login-logo .logo-accent { color: var(--brand-emerald); }

.login-title {
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  color: var(--slate-light);
  margin-bottom: 2rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ================================================================
   LAYOUT ADMIN
================================================================ */
.admin-body {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--brand-navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 500;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--t) var(--ease);
  scrollbar-width: none;
}
.admin-sidebar::-webkit-scrollbar { display: none; }
.admin-sidebar.open { transform: translateX(0); }
@media(min-width:1024px) { .admin-sidebar { transform: translateX(0); } }

/* Ligne Emerald en haut sidebar */
.admin-sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-emerald), var(--brand-emerald-light), var(--brand-emerald), transparent);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.sidebar-overlay.visible { display: block; }

.sidebar-logo {
  padding: 1.5rem 1.4rem 1.1rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.sidebar-logo .logo-accent { color: var(--brand-emerald-light); }

.sidebar-nav {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-section {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.3);
  padding: 1rem 1.4rem .35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1.4rem;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  border-left: 2px solid transparent;
  transition: all var(--t) var(--ease);
  width: 100%;
  text-align: left;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
}
.sidebar-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.05);
}
.sidebar-link.active {
  color: var(--brand-emerald-light);
  border-left-color: var(--brand-emerald-light);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 700;
}
.sidebar-icon { font-size: .95rem; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-logout { color: rgba(239,68,68,.8) !important; }
.sidebar-logout:hover { background: rgba(239,68,68,.1) !important; color: #EF4444 !important; }

/* ---- Main ---- */
.admin-main {
  flex: 1;
  margin-left: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--t) var(--ease);
}
@media(min-width:1024px) { .admin-main { margin-left: var(--sidebar-w); } }

/* ---- Header ---- */
.admin-header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.75rem;
  box-shadow: var(--shadow-xs);
}

.sidebar-toggle {
  color: var(--slate);
  font-size: 1.2rem;
  padding: .4rem;
  border-radius: var(--r-sm);
  transition: background var(--t);
  display: block;
  line-height: 1;
}
.sidebar-toggle:hover { background: var(--brand-navy-ghost); }
@media(min-width:1024px) { .sidebar-toggle { display: none; } }

.admin-header-title {
  font-weight: 700;
  font-size: .95rem;
  flex: 1;
  color: var(--brand-navy);
  letter-spacing: -.01em;
}

.admin-header-user {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--slate-light);
}
.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-slate);
  border: 2px solid var(--brand-emerald-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  color: var(--brand-emerald-dim);
  flex-shrink: 0;
}
.admin-header-user span { font-size: .84rem; font-weight: 600; }

/* ---- Content ---- */
.admin-content {
  flex: 1;
  padding: 1.75rem 1.5rem;
}
@media(min-width:768px) { .admin-content { padding: 2.25rem 2.5rem; } }

/* ================================================================
   STAT CARDS
================================================================ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media(min-width:1024px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-emerald);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.stat-card:hover { 
  box-shadow: var(--shadow-card); 
  transform: translateY(-2px); 
  border-color: var(--border-emerald);
}
.stat-card:hover::after { transform: scaleX(1); }

.stat-icon { font-size: 1.4rem; line-height: 1; }
.stat-label {
  font-size: .7rem;
  color: var(--slate-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stat-value {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -.02em;
}
.stat-icon-accent  ~ .stat-value,
.stat-icon-accent .stat-value { color: var(--brand-emerald-dim); }
.stat-icon-success ~ .stat-value,
.stat-icon-success .stat-value { color: var(--success); }
.stat-icon-warning ~ .stat-value,
.stat-icon-warning .stat-value { color: var(--warning); }

/* ================================================================
   CARDS
================================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.card-title {
  font-size: .9rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--brand-navy);
  letter-spacing: -.01em;
}

/* ================================================================
   TABLES
================================================================ */
.table-responsive { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .855rem;
}
.admin-table th {
  padding: .8rem 1.1rem;
  text-align: left;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--slate-pale);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--brand-slate);
}
.admin-table td {
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--brand-navy);
  font-weight: 500;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background var(--t); }
.admin-table tbody tr:hover td { background: var(--brand-slate); }

@media(max-width:767px) {
  .admin-table thead { display: none; }
  .admin-table tr {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: .75rem;
    padding: .85rem;
    background: var(--white);
  }
  .admin-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: .3rem 0;
    font-size: .82rem;
  }
  .admin-table td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--slate-light);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    flex-shrink: 0;
    margin-right: .75rem;
  }
}

/* ================================================================
   STATUS BADGES
================================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .65rem;
  border-radius: var(--r-full);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-success,
.status-publie,
.status-livre    { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-brd); }
.status-brouillon,
.status-en_attente { background: var(--stone-pale); color: var(--slate-light); border: 1px solid var(--border); }
.status-failed,
.status-revoque  { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-brd); }
.status-rembourse { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-brd); }

/* ================================================================
   BADGES PRODUIT
================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .65rem;
  border-radius: var(--r-full);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-abonnement { background: #EEF2FF; color: #3730A3; border: 1px solid rgba(55, 48, 163, 0.2); }
.badge-formation  { background: #FFFBEB; color: #92400E; border: 1px solid rgba(146, 64, 14, 0.2); }
.badge-fichier    { background: #ECFDF5; color: #065F46; border: 1px solid rgba(6, 95, 70, 0.2); }
.badge-acces      { background: #FFF1F2; color: #9F1239; border: 1px solid rgba(159, 18, 57, 0.2); }

/* ================================================================
   BOUTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 40px;
  padding: .55rem 1.25rem;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .025em;
  border: 1.5px solid transparent;
  transition: all var(--t) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-navy);
  color: var(--white);
  border-color: var(--brand-navy);
}
.btn-primary:hover { background: var(--brand-navy-light); transform: translateY(-1px); box-shadow: var(--shadow-navy); }

/* Anciennement .btn-gold */
.btn-emerald {
  background: var(--brand-emerald);
  color: var(--white);
  border-color: var(--brand-emerald);
}
.btn-emerald:hover { background: var(--brand-emerald-light); transform: translateY(-1px); box-shadow: var(--shadow-emerald); }

.btn-outline {
  background: transparent;
  color: var(--brand-navy);
  border-color: var(--stone-light);
}
.btn-outline:hover { border-color: var(--brand-navy); background: var(--stone-pale); }

.btn-ghost {
  background: transparent;
  color: var(--slate-light);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--brand-navy-ghost); color: var(--brand-navy); }

.btn-danger {
  background: transparent;
  color: var(--error);
  border-color: var(--error-brd);
}
.btn-danger:hover { background: var(--error-bg); border-color: var(--error); }

/* ================================================================
   FLASH MESSAGES
================================================================ */
.flash {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.25rem;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 600;
  margin: 0 1.75rem 1rem;
  border-left: 4px solid;
}
.flash-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.flash-error   { background: var(--error-bg);   color: var(--error);   border-color: var(--error); }
.flash-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info); }

/* ================================================================
   FORMULAIRES
================================================================ */
.form-group { margin-bottom: 1.15rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem 1.1rem;
}
@media(min-width:640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: .38rem;
  letter-spacing: .02em;
}
.form-group .req { color: var(--brand-emerald); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .68rem .95rem;
  background: var(--brand-slate);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-sm);
  color: var(--brand-navy);
  font-size: .875rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate-pale); font-weight: 400; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 3px var(--brand-emerald-ring);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}
.form-group small {
  display: block;
  margin-top: .28rem;
  font-size: .71rem;
  color: var(--slate-light);
  line-height: 1.5;
  font-weight: 500;
}

.form-section-title {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--slate-pale);
  padding: .85rem 0 .45rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.1rem;
  margin-top: .5rem;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  cursor: pointer;
  color: var(--brand-navy) !important;
  font-weight: 600 !important;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-emerald);
  cursor: pointer;
}

.char-counter { font-size: .68rem; text-align: right; margin-top: .22rem; color: var(--slate-pale); font-weight: 600; }
.char-counter.warn  { color: var(--warning); }
.char-counter.error { color: var(--error); }

/* ================================================================
   ZONE UPLOAD
================================================================ */
.upload-area {
  border: 2px dashed var(--border-md);
  border-radius: var(--r-md);
  padding: 1.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  background: var(--brand-slate);
}
.upload-area:hover,
.upload-area.dragover {
  border-color: var(--brand-emerald);
  background: var(--brand-emerald-pale);
}
.upload-hint { font-size: .82rem; color: var(--slate-light); line-height: 1.65; font-weight: 500; }

/* ================================================================
   WYSIWYG EDITOR
================================================================ */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: .5rem .65rem;
  background: var(--stone-pale);
  border: 1.5px solid var(--border-md);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.editor-toolbar button {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  color: var(--slate);
  padding: .25rem .6rem;
  font-size: .78rem;
  min-width: 30px;
  font-family: var(--font-body);
  transition: all var(--t);
  cursor: pointer;
  font-weight: 600;
}
.editor-toolbar button:hover { border-color: var(--brand-emerald); color: var(--brand-emerald-dim); background: var(--brand-emerald-pale); }

.wysiwyg-editor {
  background: var(--white);
  border: 1.5px solid var(--border-md);
  border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: .85rem 1rem;
  color: var(--brand-navy);
  font-size: .875rem;
  line-height: 1.7;
  outline: none;
  overflow-y: auto;
}
.wysiwyg-editor:focus {
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 3px var(--brand-emerald-ring);
}
.wysiwyg-editor h2 { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 .4rem; color: var(--brand-navy); }
.wysiwyg-editor h3 { font-size: .95rem; font-weight: 700; margin: .85rem 0 .35rem; color: var(--brand-navy); }
.wysiwyg-editor p  { margin-bottom: .75rem; }
.wysiwyg-editor ul { list-style: disc; padding-left: 1.25rem; margin-bottom: .75rem; }
.wysiwyg-editor ol { list-style: decimal; padding-left: 1.25rem; margin-bottom: .75rem; }

/* ================================================================
   LIVRAISON TABS (produits form)
================================================================ */
.livraison-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.livraison-tab {
  padding: .5rem 1.1rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-md);
  background: transparent;
  color: var(--slate-light);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  font-family: var(--font-body);
}
.livraison-tab.active {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald-dim);
  background: var(--brand-emerald-pale);
}
.livraison-tab:hover:not(.active) { border-color: var(--border-md); color: var(--brand-navy); background: var(--brand-navy-ghost); }

.file-saved {
  background: var(--success-bg);
  border: 1px solid var(--success-brd);
  border-radius: var(--r-sm);
  padding: .7rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .85rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ================================================================
   EMPTY STATE
================================================================ */
.empty-state {
  text-align: center;
  padding: 4.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.empty-state p { font-size: .9rem; color: var(--slate-light); font-weight: 500; }

/* ================================================================
   PAGINATION
================================================================ */
.pagination {
  display: flex;
  gap: .4rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .65rem;
  border-radius: var(--r-sm);
  font-size: .8rem;
  font-weight: 700;
  border: 1.5px solid var(--border-md);
  background: var(--white);
  color: var(--slate);
  transition: all var(--t);
}
.page-link:hover { border-color: var(--brand-emerald); color: var(--brand-emerald-dim); background: var(--brand-emerald-pale); }
.page-link.active { background: var(--brand-emerald); border-color: var(--brand-emerald); color: var(--white); }

/* ================================================================
   DRAG HANDLE
================================================================ */
.drag-handle { opacity: .35; user-select: none; cursor: grab; }
.drag-handle:hover { opacity: .75; color: var(--brand-emerald); }

/* ================================================================
   CHART CONTAINER
================================================================ */
.chart-container { position: relative; height: 220px; }