/* ============================================================
   IT-CONNECT — Design System (shared)
   Fuente canónica de estilos: editar AQUÍ para que los cambios
   afecten a frontend-admin y frontend-cliente simultáneamente.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Material Design Icons webfont */
@font-face {
  font-family: 'Material Design Icons';
  src: url('../fonts/materialdesignicons-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.mdi {
  font-family: 'Material Design Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  /* Brand: Steel Blue */
  --brand-50:  #EEF1F7;
  --brand-100: #BAC9DE;
  --brand-200: #DEEAF4;
  --brand-300: #CEE0EF;
  --brand-400: #97AECE;
  --brand-500: #7493BE;
  --brand-600: #496C9C;
  --brand-700: #314868;
  --brand-900: #2E3138;

  /* Neutrals */
  --slate-50:  #FCFDFE;
  --slate-100: #E8EBF7;
  --slate-200: #CEE0EF;
  --slate-300: #BFD7EA;
  --slate-400: #6EA4D0;
  --slate-500: #585365;
  --slate-600: #3E424B;
  --slate-700: #2F3238;
  --slate-800: #1F2126;
  --slate-900: #2E3138;

  /* Semantic */
  --success-100: #DEEAF4;
  --success-500: #346FA0;
  --success-600: #314868;
  --success-700: #2C2932;
  --danger-100:  #FCE9EA;
  --danger-500:  #EB5153;
  --danger-600:  #D4191C;
  --danger-700:  #8D1113;
  --warning-100: #F5A8AA;
  --warning-500: #F07D7F;
  --warning-600: #EB5153;
  --warning-700: #8D1113;

  /* Foreground */
  --fg-1:         #2E3138;
  --fg-2:         #585365;
  --fg-3:         #97AECE;
  --fg-on-dark:   #FFFFFF;
  --fg-on-dark-2: rgba(255,255,255,.70);
  --fg-on-dark-3: rgba(255,255,255,.50);

  /* Background */
  --bg-app:      #E8EBF7;
  --bg-surface:  #FFFFFF;
  --bg-sidebar:  #2E3138;
  --bg-sidebar-2:#3E424B;
  --bg-soft:     #FCFDFE;

  /* Borders */
  --border-1: #BFD7EA;
  --border-2: #E8EBF7;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-icon: 'Material Design Icons';

  --fs-display:   28px;
  --fs-h1:        20px;
  --fs-h2:        16px;
  --fs-h3:        14px;
  --fs-body:      14px;
  --fs-sm:        13px;
  --fs-xs:        12px;
  --fs-uppercase: 11px;
  --fs-mono:      13px;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-tight:  1.15;
  --lh-snug:   1.35;
  --lh-normal: 1.5;

  --tracking-uppercase: 0.05em;

  /* Spacing (4px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:    0 4px 8px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:    0 4px 16px rgba(15,23,42,.10);
  --shadow-xl:    0 20px 25px -5px rgba(15,23,42,.10), 0 8px 10px -6px rgba(15,23,42,.10);
  --shadow-focus: 0 0 0 3px rgba(116,147,190,.25);

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 220ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-std: ease;
}

/* ── Base ────────────────────────────────────────────────────── */
html, body { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
code, .mono { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--fg-2); }

/* ── Scrollbars ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ── View enter ──────────────────────────────────────────────── */
.view-enter { animation: fadeIn 0.18s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Toast ───────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 260px; max-width: 380px;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; color: #fff;
  box-shadow: var(--shadow-lg);
  animation: slideInToast 0.22s ease forwards;
  display: flex; align-items: center; gap: 0.5rem;
}
.toast.success { background: var(--success-600); }
.toast.error   { background: var(--danger-600); }
.toast.info    { background: var(--brand-600); }
.toast.warning { background: var(--warning-600); }
.toast.hide    { animation: slideOutToast 0.2s ease forwards; }
@keyframes slideInToast {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutToast {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ── Modal ───────────────────────────────────────────────────── */
#modal-overlay { animation: fadeIn 0.15s ease forwards; }
#modal-box     { animation: scaleIn 0.18s ease forwards; }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Tables ──────────────────────────────────────────────────── */
.it-table { width: 100%; border-collapse: collapse; }
.it-table thead th {
  background: var(--bg-soft);
  color: var(--fg-2);
  font-size: var(--fs-uppercase); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--tracking-uppercase);
  padding: 0.625rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}
.it-table tbody tr {
  border-bottom: 1px solid var(--slate-100);
  transition: background var(--dur-fast);
}
.it-table tbody tr:hover { background: var(--slate-50); }
.it-table tbody td {
  padding: 0.75rem 1rem;
  font-size: var(--fs-body);
  color: var(--fg-1);
  vertical-align: middle;
}
.it-table tbody tr.clickable { cursor: pointer; }
.it-table .col-right { text-align: right; }

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 1.125rem; height: 1.125rem;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
.spinner.dark { border-color: rgba(116,147,190,.25); border-top-color: var(--brand-600); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tabs ────────────────────────────────────────────────────── */
.tab-bar { display: flex; border-bottom: 1px solid var(--border-1); padding: 0 16px; }
.tab-btn {
  padding: 0.625rem 1rem;
  font-size: var(--fs-body); font-weight: 500;
  color: var(--fg-2);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  background: none;
  border-top: none; border-left: none; border-right: none;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--brand-700); }
.tab-btn.active { color: var(--brand-600); border-bottom-color: var(--brand-600); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* kit.css .tabs alias */
.tabs { display: flex; border-bottom: 1px solid var(--border-1); }
.tabs button {
  padding: 10px 16px; font-size: var(--fs-body); font-weight: 500;
  color: var(--fg-2); background: none; border: 0;
  border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.tabs button.active { color: var(--brand-600); border-bottom-color: var(--brand-600); }

/* ── Toggle ──────────────────────────────────────────────────── */
.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  width: 2.25rem; height: 1.25rem;
  background: var(--slate-300); border-radius: 9999px;
  transition: background 0.2s; position: relative;
}
.toggle input:checked ~ .toggle-track { background: var(--brand-600); }
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 1rem; height: 1rem;
  background: white; border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked ~ .toggle-track .toggle-thumb { transform: translateX(1rem); }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: var(--fs-sm); color: var(--fg-2);
  flex-wrap: wrap; margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--brand-600); text-decoration: none; transition: opacity var(--dur-fast); }
.breadcrumb a:hover { opacity: 0.75; }
.breadcrumb .sep { color: var(--slate-300); }

/* ── Initials / org avatar ───────────────────────────────────── */
.org-avatar {
  background: var(--brand-50); color: var(--brand-600);
  font-weight: 600; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* kit.css aliases */
.av-org { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.av-org.sm { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }

/* ── Info card ───────────────────────────────────────────────── */
.info-card { background: var(--bg-soft); border-radius: 0.5rem; padding: 0.75rem 1rem; }
.info-card-label {
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--fg-2); text-transform: uppercase; letter-spacing: var(--tracking-uppercase);
  margin: 0 0 0.25rem;
}
.info-card-value {
  font-size: var(--fs-body); font-weight: 600; color: var(--slate-800);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0;
}

/* ── Progress bar ────────────────────────────────────────────── */
.progress-bar { height: 8px; background: var(--slate-100); border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 9999px; transition: width 0.3s ease; }

/* ── Search / text input ─────────────────────────────────────── */
.search-input {
  border: 1px solid var(--slate-300); border-radius: var(--radius-md);
  padding: 9px 12px; font-size: var(--fs-body); font-family: var(--font-sans);
  color: var(--fg-1); outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.search-input:focus { border-color: var(--brand-500); box-shadow: var(--shadow-focus); }
.search-input::placeholder { color: var(--fg-3); }
/* kit.css .inp alias */
.inp { border: 1px solid var(--slate-300); border-radius: var(--radius-md); padding: 9px 12px; font-size: var(--fs-body); font-family: inherit; color: var(--fg-1); outline: none; background: #fff; }
.inp:focus, .inp.focused { border-color: var(--brand-500); box-shadow: var(--shadow-focus); }
.inp::placeholder { color: var(--fg-3); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 8px 16px; font-size: var(--fs-body); font-weight: 500; font-family: inherit; cursor: pointer; border-radius: var(--radius-md); line-height: 1; transition: background var(--dur-fast) var(--ease-std); }
.btn-primary   { background: var(--brand-500); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: var(--slate-300); color: var(--fg-1); }
.btn-secondary:hover { background: var(--brand-400); }
.btn-danger    { background: var(--danger-500); color: #fff; }
.btn-danger:hover { background: var(--danger-600); }
.btn-ghost     { background: transparent; color: var(--brand-600); padding: 8px 12px; border: 0; font-family: inherit; font-size: var(--fs-body); font-weight: 500; cursor: pointer; border-radius: var(--radius-md); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-icon { padding: 6px; background: transparent; border-radius: var(--radius-sm); cursor: pointer; color: var(--fg-2); border: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon:hover { background: var(--brand-50); color: var(--brand-600); }
.btn-icon.danger:hover { background: var(--danger-100); color: var(--danger-600); }

/* ── Cards ───────────────────────────────────────────────────── */
.card-s {
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-s .card-h {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: space-between;
}
.card-s .card-h h2 { font-size: var(--fs-h2); font-weight: 600; margin: 0; }
.card-s .card-h .sub { font-size: var(--fs-xs); color: var(--fg-2); }

/* ── Badges ──────────────────────────────────────────────────── */
.bdg { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.bdg-success { background: var(--success-100); color: var(--success-500); }
.bdg-danger  { background: var(--danger-100);  color: var(--danger-600); }
.bdg-warning { background: var(--warning-100); color: var(--warning-700); }
.bdg-neutral { background: var(--slate-100);   color: var(--fg-2); }
.bdg-pro     { background: var(--brand-50);    color: var(--brand-600); }
.bdg-ent     { background: var(--brand-100);   color: var(--brand-700); }
.bdg-free    { background: var(--slate-100);   color: var(--fg-2); }

/* ── Online dot indicator ────────────────────────────────────── */
.dot-s { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.dot-s::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success-500); flex-shrink: 0; }
.dot-s.off::before { background: var(--danger-500); }

/* ── KPI tile ────────────────────────────────────────────────── */
.kpi {
  background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px; flex: 1; min-width: 0;
}
.kpi-head  { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kpi-icon  { width: 32px; height: 32px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.kpi-label { font-size: var(--fs-xs); color: var(--fg-2); font-weight: 500; }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--fg-1); }
.kpi-meta  { font-size: var(--fs-uppercase); color: var(--fg-2); margin-top: 4px; font-family: var(--font-mono); }

/* ── Sidebar shell ───────────────────────────────────────────── */
.it-sidebar {
  width: 256px; background: var(--bg-sidebar); color: #fff;
  display: flex; flex-direction: column; flex-shrink: 0;
  z-index: 20;
}
.it-sidebar-brand {
  display: flex; align-items: center;
  padding: 16px 20px; min-height: 62px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.it-sidebar-section {
  padding: 14px 20px 6px;
  font-size: var(--fs-uppercase); font-weight: 600;
  letter-spacing: var(--tracking-uppercase); text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.it-nav { display: flex; flex-direction: column; padding: 0 12px; gap: 2px; }
.it-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; font-size: var(--fs-body);
  color: rgba(255,255,255,.85); text-decoration: none;
  border-radius: var(--radius-md); cursor: pointer;
  transition: background var(--dur-fast);
}
.it-nav a:hover { background: var(--bg-sidebar-2); color: #fff; }
.it-nav a.active { background: var(--brand-600); color: #fff; }
.it-nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.it-sidebar-footer {
  margin-top: auto; padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.it-avatar-sm {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  background: var(--brand-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 600; flex-shrink: 0;
}
.it-sidebar-footer .who { flex: 1; min-width: 0; }
.it-sidebar-footer .who .n { font-size: var(--fs-sm); font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-sidebar-footer .who .r { font-size: var(--fs-uppercase); color: rgba(255,255,255,.6); font-family: var(--font-mono); }

/* ── Header shell ────────────────────────────────────────────── */
.it-header {
  height: 56px; background: #fff;
  border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px; flex-shrink: 0;
}
.it-header .crumbs { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--fg-2); }
.it-header .crumbs a { color: var(--brand-600); text-decoration: none; }
.it-header .crumbs .sep { color: var(--slate-300); }
.it-header .crumbs .cur { color: var(--fg-1); font-weight: 500; }
.it-header .spacer { flex: 1; }
.it-header .icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--fg-2); cursor: pointer;
  border: 0; background: transparent;
  transition: background var(--dur-fast), color var(--dur-fast);
  position: relative;
}
.it-header .icon-btn:hover { background: var(--brand-50); color: var(--brand-600); }
.it-header .icon-btn .dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger-500); border: 2px solid #fff;
}

/* ── Toolbar (filters + search bar) ─────────────────────────── */
.toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-1);
  background: #fff;
}
.toolbar .search { position: relative; flex: 1; max-width: 380px; }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.toolbar .search input { width: 100%; padding: 8px 12px 8px 36px; border: 1px solid var(--slate-300); border-radius: var(--radius-md); font-size: var(--fs-sm); font-family: inherit; outline: none; }
.toolbar .search input:focus { border-color: var(--brand-500); box-shadow: var(--shadow-focus); }
.toolbar .spacer { flex: 1; }

/* ── Pagination ──────────────────────────────────────────────── */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border-1);
  font-size: var(--fs-sm); color: var(--fg-2);
}
.pager .pages { display: flex; gap: 4px; }
.pg-btn { width: 28px; height: 28px; border-radius: var(--radius-sm); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg-2); background: transparent; font-family: inherit; font-size: var(--fs-sm); }
.pg-btn.active { background: var(--brand-500); color: #fff; }
.pg-btn:hover:not(.active) { background: var(--slate-100); }

/* ── Live event row ──────────────────────────────────────────── */
.event {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-2);
  font-size: var(--fs-sm);
}
.event:last-child { border-bottom: 0; }
.event .when { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-2); width: 64px; flex-shrink: 0; }
.event .who  { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event .meta { font-family: var(--font-mono); font-size: var(--fs-uppercase); color: var(--fg-2); }

/* ── Form field ──────────────────────────────────────────────── */
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld label { font-size: var(--fs-uppercase); font-weight: 600; color: var(--fg-2); text-transform: uppercase; letter-spacing: var(--tracking-uppercase); }

/* ── Login card ──────────────────────────────────────────────── */
.login-card {
  width: 440px; max-width: calc(100vw - 32px); background: #fff;
  border-radius: var(--radius-xl); border: 1px solid var(--border-1);
  box-shadow: var(--shadow-lg); padding: 36px 32px;
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; }
.login-brand img { width: 80px; }
.login-brand .lbl { font-size: var(--fs-uppercase); font-weight: 600; color: var(--fg-2); text-transform: uppercase; letter-spacing: var(--tracking-uppercase); }

/* ── Utility ─────────────────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-2); }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; color: var(--fg-2); text-transform: uppercase; letter-spacing: var(--tracking-uppercase); margin: 0; }
.subtle { font-size: var(--fs-sm); color: var(--fg-2); }

/* ── Sidebar responsivo ──────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 30;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-topbar {
  display: none;
  align-items: center; gap: 12px;
  height: 56px; padding: 0 16px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.btn-sidebar-toggle {
  background: transparent; border: 0;
  color: rgba(255,255,255,.85); cursor: pointer;
  padding: 6px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-sidebar-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }

@media (max-width: 767px) {
  .it-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0; height: auto;
    transform: translateX(-100%);
    transition: transform var(--dur-base) var(--ease-out);
    z-index: 40;
  }
  .it-sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; }
  .mobile-topbar    { display: flex; }
}
