/* ═══════════════════════════════════════════════════════════
   Observatoire PND — Back-Office Admin CSS
   Charte : Orange #F47920 · Vert #009A44 · Navy #0D1B35
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --o: #F47920; --od: #D4610A; --ol: #FFF3E8;
  --g: #009A44; --gd: #007A36; --gl: #E6F7EE;
  --n: #0D1B35; --nd: #091428; --nl: #E8EBF0;
  --bg: #F4F6FA; --w: #FFFFFF; --b: #E4E9F2;
  --tm: #3D4F68; --ts: #8896AB; --td: #0D1B35;
  --r: 10px; --rl: 14px;
  --ss: 0 1px 3px rgba(13,27,53,.06);
  --sm: 0 4px 16px rgba(13,27,53,.08);
  --sl: 0 8px 32px rgba(13,27,53,.12);
  --fh: 'Outfit', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --sidebar-w: 260px;
  --sidebar-c: 72px;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  font-size: 14px;
  color: var(--tm);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ══════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--n);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(244,121,32,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,154,68,.07) 0%, transparent 70%);
  border-radius: 50%;
}
.login-card {
  position: relative; z-index: 2;
  width: 420px; max-width: 92vw;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 44px 36px;
  animation: loginIn .6s ease;
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.login-logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--o);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--fh); font-weight: 900; color: #fff;
}
.login-logo span { font-size: 11px; line-height: 1.2; }
.login-logo small { font-size: 7px; color: rgba(255,255,255,.5); }
.login-brand-text { color: #fff; }
.login-brand-text strong { font-family: var(--fh); font-size: 16px; font-weight: 700; display: block; }
.login-brand-text small { font-size: 11px; color: rgba(255,255,255,.4); }
.login-title {
  font-family: var(--fh); font-size: 22px; font-weight: 800;
  color: #fff; margin-bottom: 6px;
}
.login-sub { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 28px; }
.login-field { margin-bottom: 18px; }
.login-label {
  display: block; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.5); margin-bottom: 7px; letter-spacing: .03em;
}
.login-input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px; color: #fff; font-size: 14px;
  transition: border-color .2s, background .2s;
  outline: none;
}
.login-input::placeholder { color: rgba(255,255,255,.25); }
.login-input:focus { border-color: var(--o); background: rgba(255,255,255,.08); }
.login-btn {
  width: 100%; padding: 14px;
  background: var(--o); color: #fff;
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  font-family: var(--fh);
  transition: background .2s, transform .15s;
  margin-top: 8px;
}
.login-btn:hover { background: var(--od); transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }
.login-footer {
  text-align: center; margin-top: 22px;
  font-size: 12px; color: rgba(255,255,255,.3);
}
.login-footer a { color: var(--o); font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   LAYOUT — Sidebar + Topbar + Main
══════════════════════════════════════ */
.admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
  transition: grid-template-columns .3s cubic-bezier(.4,0,.2,1);
}
.admin-layout.collapsed { grid-template-columns: var(--sidebar-c) 1fr; }

/* ── SIDEBAR ── */
.sidebar {
  grid-row: 1 / -1;
  background: var(--n);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width .3s cubic-bezier(.4,0,.2,1);
  z-index: 100;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 11px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-logo {
  width: 38px; min-width: 38px; height: 38px;
  border-radius: 10px; background: var(--o);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--fh); color: #fff; font-weight: 900;
}
.sidebar-logo span { font-size: 10px; line-height: 1.1; }
.sidebar-logo small { font-size: 6.5px; color: rgba(255,255,255,.5); }
.sidebar-brand-text { white-space: nowrap; overflow: hidden; }
.sidebar-brand-text strong { font-family: var(--fh); font-size: 14px; font-weight: 700; color: #fff; display: block; }
.sidebar-brand-text small { font-size: 10px; color: rgba(255,255,255,.35); }
.collapsed .sidebar-brand-text { opacity: 0; width: 0; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 10px; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

.nav-section-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.25);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 16px 12px 6px; white-space: nowrap;
  overflow: hidden;
}
.nav-btn {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 10px 12px;
  border: none; border-radius: 8px;
  background: transparent; color: rgba(255,255,255,.55);
  font-size: 13px; font-weight: 500;
  transition: all .15s; white-space: nowrap;
  text-align: left;
}
.nav-btn i { font-size: 17px; min-width: 20px; text-align: center; }
.nav-btn:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.nav-btn.active { background: rgba(244,121,32,.12); color: var(--o); font-weight: 600; }
.nav-btn .nav-label { overflow: hidden; text-overflow: ellipsis; }
.collapsed .nav-label { opacity: 0; width: 0; }
.collapsed .nav-section-label { text-align: center; font-size: 0; }
.collapsed .nav-section-label::after { content: '—'; font-size: 10px; color: rgba(255,255,255,.15); }

.nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: var(--o); color: #fff;
  padding: 2px 7px; border-radius: 10px;
  min-width: 20px; text-align: center;
}
.collapsed .nav-badge { display: none; }

.nav-chevron {
  margin-left: auto; font-size: 10px;
  color: rgba(255,255,255,.25);
  transition: transform .25s;
}
.nav-btn.open .nav-chevron { transform: rotate(180deg); color: var(--o); }
.collapsed .nav-chevron { display: none; }

.nav-submenu {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.nav-sub-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 12px 8px 42px;
  border: none; border-radius: 6px;
  background: transparent; color: rgba(255,255,255,.4);
  font-size: 12.5px; font-weight: 500;
  transition: all .15s; text-align: left; white-space: nowrap;
}
.nav-sub-btn:hover { color: rgba(255,255,255,.75); background: rgba(255,255,255,.04); }
.nav-sub-btn.active { color: var(--o); font-weight: 600; }
.collapsed .nav-sub-btn { padding-left: 0; justify-content: center; }
.collapsed .nav-submenu { max-height: 0 !important; }

.sidebar-footer {
  padding: 14px; border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: 10px;
  transition: background .15s;
  overflow: hidden;
}
.sidebar-user:hover { background: rgba(255,255,255,.06); }
.sidebar-avatar {
  width: 36px; min-width: 36px; height: 36px;
  border-radius: 10px; background: var(--o);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-weight: 800; font-size: 12px; color: #fff;
}
.sidebar-user-info { overflow: hidden; white-space: nowrap; }
.sidebar-user-info strong { font-size: 12.5px; font-weight: 600; color: #fff; display: block; }
.sidebar-user-info small { font-size: 10.5px; color: rgba(255,255,255,.35); }
.collapsed .sidebar-user-info { opacity: 0; width: 0; }

/* ── TOPBAR ── */
.topbar {
  background: var(--w);
  border-bottom: 1px solid var(--b);
  display: flex; align-items: center;
  padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 90;
}
.topbar-toggle {
  width: 36px; height: 36px;
  border: 1.5px solid var(--b); border-radius: 8px;
  background: var(--w); color: var(--ts);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .15s;
}
.topbar-toggle:hover { border-color: var(--o); color: var(--o); }
.topbar-search {
  flex: 1; max-width: 400px;
  position: relative;
}
.topbar-search input {
  width: 100%; padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--b); border-radius: 8px;
  background: var(--bg); font-size: 13px; color: var(--tm);
  outline: none; transition: border-color .2s, background .2s;
}
.topbar-search input::placeholder { color: var(--ts); }
.topbar-search input:focus { border-color: var(--o); background: var(--w); }
.topbar-search i {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--ts); pointer-events: none;
}
.topbar-right {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.topbar-icon-btn {
  width: 38px; height: 38px;
  border: 1.5px solid var(--b); border-radius: 8px;
  background: var(--w); color: var(--ts);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .15s;
  position: relative;
}
.topbar-icon-btn:hover { border-color: var(--o); color: var(--o); }
.topbar-icon-btn .badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #EF4444; border: 2px solid var(--w);
}
.topbar-profile {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 10px;
  border: none; background: transparent;
  transition: background .15s; cursor: pointer;
}
.topbar-profile:hover { background: var(--bg); }
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--n); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-weight: 800; font-size: 11px;
}
.topbar-user-name { font-size: 13px; font-weight: 600; color: var(--n); }
.topbar-user-role { font-size: 11px; color: var(--ts); }

/* ── MAIN CONTENT ── */
.main-content {
  padding: 28px;
  overflow-y: auto;
  min-height: calc(100vh - var(--topbar-h));
}
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 14px;
}
.page-title { font-family: var(--fh); font-size: 1.5rem; font-weight: 800; color: var(--n); }
.page-sub { font-size: 13px; color: var(--ts); margin-top: 3px; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid transparent;
  transition: all .2s; font-family: var(--fb);
  white-space: nowrap;
}
.btn-primary { background: var(--o); color: #fff; border-color: var(--o); }
.btn-primary:hover { background: var(--od); border-color: var(--od); transform: translateY(-1px); }
.btn-success { background: var(--g); color: #fff; border-color: var(--g); }
.btn-success:hover { background: var(--gd); }
.btn-outline { background: var(--w); color: var(--tm); border-color: var(--b); }
.btn-outline:hover { border-color: var(--o); color: var(--o); }
.btn-danger { background: #FEE2E2; color: #DC2626; border-color: #FECACA; }
.btn-danger:hover { background: #DC2626; color: #fff; }
.btn-ghost { background: transparent; color: var(--ts); border-color: transparent; padding: 8px 12px; }
.btn-ghost:hover { color: var(--o); background: var(--ol); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; }

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.card {
  background: var(--w); border: 1px solid var(--b);
  border-radius: var(--rl); overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--sm); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--b);
  flex-wrap: wrap; gap: 10px;
}
.card-title { font-family: var(--fh); font-size: 15px; font-weight: 700; color: var(--n); }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--b); background: var(--bg); }

/* ── KPI Cards ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  background: var(--w); border: 1px solid var(--b);
  border-radius: var(--rl); padding: 22px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: all .2s;
}
.kpi-card:hover { box-shadow: var(--sm); transform: translateY(-2px); }
.kpi-icon {
  width: 48px; min-width: 48px; height: 48px;
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 20px;
}
.kpi-icon.orange { background: var(--ol); color: var(--o); }
.kpi-icon.green { background: var(--gl); color: var(--g); }
.kpi-icon.navy { background: var(--nl); color: var(--n); }
.kpi-icon.red { background: #FEE2E2; color: #DC2626; }
.kpi-value { font-family: var(--fh); font-size: 1.6rem; font-weight: 800; color: var(--n); line-height: 1.2; }
.kpi-label { font-size: 12.5px; color: var(--ts); margin-top: 3px; }
.kpi-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; margin-top: 6px;
  padding: 2px 8px; border-radius: 6px;
}
.kpi-trend.up { background: var(--gl); color: var(--g); }
.kpi-trend.down { background: #FEE2E2; color: #DC2626; }

/* ══════════════════════════════════════
   TABLES
══════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.table thead th {
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--ts);
  text-transform: uppercase; letter-spacing: .05em;
  background: var(--bg); border-bottom: 1.5px solid var(--b);
  white-space: nowrap;
}
.table tbody td {
  padding: 14px 16px; border-bottom: 1px solid var(--b);
  vertical-align: middle;
}
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: #FAFBFD; }
.table tbody tr:last-child td { border-bottom: none; }
.td-strong { font-weight: 600; color: var(--n); }
.td-muted { color: var(--ts); font-size: 12px; }
.td-actions { display: flex; gap: 6px; }

/* ── Status badges ── */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600;
}
.status-active { background: var(--gl); color: var(--g); }
.status-pending { background: #FEF3C7; color: #D97706; }
.status-draft { background: var(--nl); color: var(--n); }
.status-paused { background: #FEE2E2; color: #DC2626; }
.status-done { background: var(--ol); color: var(--o); }
.status::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor;
}

/* ── Pagination ── */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 12px; flex-wrap: wrap;
}
.pagination-info { font-size: 12.5px; color: var(--ts); }
.pagination-btns { display: flex; gap: 4px; }
.pg-btn {
  width: 34px; height: 34px;
  border: 1.5px solid var(--b); border-radius: 8px;
  background: var(--w); color: var(--tm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; transition: all .15s;
}
.pg-btn:hover { border-color: var(--o); color: var(--o); }
.pg-btn.active { background: var(--o); color: #fff; border-color: var(--o); }
.pg-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ══════════════════════════════════════
   MODALS
══════════════════════════════════════ */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(13, 27, 53, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-mask.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--w);
  border-radius: 16px;
  width: 560px; max-width: 100%;
  max-height: 88vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sl);
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.modal-mask.show .modal-box { transform: translateY(0) scale(1); }
.modal-box.lg { width: 720px; }
.modal-box.sm { width: 420px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--b);
  flex-shrink: 0;
}
.modal-title { font-family: var(--fh); font-size: 16px; font-weight: 700; color: var(--n); }
.modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid var(--b); background: var(--w);
  color: var(--ts); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.modal-close:hover { border-color: #DC2626; color: #DC2626; background: #FEE2E2; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 16px 24px;
  border-top: 1px solid var(--b); flex-shrink: 0;
}

/* ══════════════════════════════════════
   FORMS
══════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--n); margin-bottom: 6px;
}
.form-label .req { color: #DC2626; margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--b); border-radius: 8px;
  background: var(--w); font-size: 13.5px; color: var(--tm);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--o);
  box-shadow: 0 0 0 3px rgba(244,121,32,.1);
}
.form-input::placeholder { color: var(--ts); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%238896AB'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 11.5px; color: var(--ts); margin-top: 5px; }
.form-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--tm); cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--o);
  cursor: pointer;
}

/* ── Tabs ── */
.tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--b);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}
.tab-btn {
  padding: 12px 20px; font-size: 13px; font-weight: 600;
  color: var(--ts); background: none; border: none;
  border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  transition: all .2s; white-space: nowrap;
}
.tab-btn:hover { color: var(--n); }
.tab-btn.active { color: var(--o); border-bottom-color: var(--o); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Filter bar ── */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px; align-items: center;
}
.filter-bar .form-input, .filter-bar .form-select {
  padding: 9px 12px; font-size: 12.5px; min-width: 160px;
}

/* ══════════════════════════════════════
   TOASTS
══════════════════════════════════════ */
.toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 600; display: flex; flex-direction: column;
  gap: 10px; pointer-events: none;
}
.toast {
  pointer-events: all;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; min-width: 320px; max-width: 440px;
  border-radius: 12px; background: var(--w);
  border: 1px solid var(--b); box-shadow: var(--sl);
  animation: toastIn .35s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}
.toast-icon {
  width: 36px; min-width: 36px; height: 36px;
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 16px;
}
.toast.success .toast-icon { background: var(--gl); color: var(--g); }
.toast.error .toast-icon { background: #FEE2E2; color: #DC2626; }
.toast.info .toast-icon { background: var(--ol); color: var(--o); }
.toast-text { flex: 1; }
.toast-title { font-size: 13px; font-weight: 600; color: var(--n); }
.toast-msg { font-size: 12px; color: var(--ts); margin-top: 2px; }
.toast-close {
  background: none; border: none; color: var(--ts);
  font-size: 16px; cursor: pointer; padding: 4px;
  transition: color .15s;
}
.toast-close:hover { color: var(--n); }

/* ══════════════════════════════════════
   DROPDOWN MENU
══════════════════════════════════════ */
.dropdown-wrap { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--w); border: 1px solid var(--b);
  border-radius: 12px; box-shadow: var(--sl);
  min-width: 200px; padding: 6px;
  z-index: 50;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: all .2s;
}
.dropdown-menu.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: var(--tm);
  border: none; background: none; width: 100%;
  text-align: left; transition: all .1s; cursor: pointer;
}
.dropdown-item:hover { background: var(--bg); color: var(--o); }
.dropdown-item i { font-size: 15px; color: var(--ts); min-width: 18px; }
.dropdown-divider { height: 1px; background: var(--b); margin: 4px 0; }

/* ══════════════════════════════════════
   CHARTS placeholder
══════════════════════════════════════ */
.chart-placeholder {
  height: 260px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--bg) 0%, var(--nl) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ts); font-size: 13px; font-weight: 500;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w); transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 200;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(13,27,53,.5); z-index: 190;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .mobile-overlay.show { opacity: 1; pointer-events: all; }
  .topbar { padding: 0 16px; }
  .main-content { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .modal-box { border-radius: 16px 16px 0 0; max-height: 92vh; }
  .modal-mask { align-items: flex-end; padding: 0; }
}
