/* ==========================================================================
   Turnike yönetim paneli — tasarım sistemi
   Bootstrap kaldırıldı; burada tanımlı sınıflar dışında bir bağımlılık yok.
   ========================================================================== */

/* --- 1. Tokenlar ------------------------------------------------------- */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --sidebar-w: 264px;
  --topbar-h: 64px;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-full: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;

  --brand: #6366f1;
  --brand-strong: #4f46e5;
  --brand-soft: rgba(99, 102, 241, 0.14);

  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, 0.14);
  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.14);
  --bad: #dc2626;
  --bad-soft: rgba(220, 38, 38, 0.14);
  --info: #0891b2;
  --info-soft: rgba(8, 145, 178, 0.14);

  --ring: 0 0 0 3px rgba(99, 102, 241, 0.35);
  --transition: 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Açık tema (varsayılan) */
:root,
:root[data-theme="light"] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --sidebar-bg: #0f172a;
  --sidebar-text: #cbd5e1;
  --sidebar-text-strong: #ffffff;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px -12px rgba(15, 23, 42, 0.18);
}

/* Koyu tema */
:root[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #131c31;
  --surface-2: #18223a;
  --surface-3: #1f2b47;
  --sidebar-bg: #080e1b;
  --sidebar-text: #93a4c3;
  --sidebar-text-strong: #ffffff;
  --sidebar-border: rgba(255, 255, 255, 0.07);
  --border: #253352;
  --border-strong: #33456d;
  --text: #e8edf7;
  --text-muted: #93a4c3;
  --text-faint: #6c7ea3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 12px 28px -14px rgba(0, 0, 0, 0.7);

  --brand-soft: rgba(99, 102, 241, 0.22);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.16);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.16);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.16);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b1120;
    --surface: #131c31;
    --surface-2: #18223a;
    --surface-3: #1f2b47;
    --sidebar-bg: #080e1b;
    --sidebar-text: #93a4c3;
    --border: #253352;
    --border-strong: #33456d;
    --text: #e8edf7;
    --text-muted: #93a4c3;
    --text-faint: #6c7ea3;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 12px 28px -14px rgba(0, 0, 0, 0.7);
    --brand-soft: rgba(99, 102, 241, 0.22);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.16);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.16);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.16);
    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, 0.16);
  }
}

/* --- 2. Temel ---------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 var(--sp-3); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.85em; }
svg { flex-shrink: 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 0.8125rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.mono { font-family: var(--mono); }
.stack { display: flex; flex-direction: column; gap: var(--sp-5); }
.row-actions { display: flex; gap: var(--sp-2); align-items: center; }
.hide { display: none !important; }

/* --- 3. Kabuk ---------------------------------------------------------- */

.shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform var(--transition);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: var(--topbar-h);
  padding: 0 var(--sp-5);
  color: var(--sidebar-text-strong);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
}

.nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--sidebar-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--sidebar-text-strong); text-decoration: none; }
.nav-link.active { background: var(--brand); color: #fff; }
.nav-link.active:hover { background: var(--brand-strong); }
.nav-link .badge { margin-left: auto; }
/* Etkin bağlantının zemini marka rengi; yumuşak rozet orada okunmuyor. */
.nav-link.active .badge { background: rgba(255, 255, 255, 0.22); color: #fff; }

.sidebar-foot {
  flex-shrink: 0;
  padding: var(--sp-3);
  border-top: 1px solid var(--sidebar-border);
}

/* Kenar çubuğu her iki temada da koyu; içindeki düğme gövde metin rengini
   kullanırsa açık temada görünmez oluyor. */
.sidebar .btn-ghost {
  color: var(--sidebar-text);
  border-color: var(--sidebar-border);
}
.sidebar .btn-ghost:hover {
  color: var(--sidebar-text-strong);
  background: rgba(255, 255, 255, 0.08);
}
.sidebar .avatar {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sidebar-text-strong);
}

.who {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  min-width: 0;
}
.who > div { min-width: 0; }
.who-name { color: var(--sidebar-text-strong); font-weight: 600; font-size: 0.875rem; }
.who-role { color: var(--text-faint); font-size: 0.75rem; }
.who-name, .who-role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-6);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 1.125rem; }
.topbar-meta { font-size: 0.8125rem; color: var(--text-muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }

.content { flex: 1; padding: var(--sp-6); max-width: 1440px; width: 100%; }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

/* --- 4. Sayfa başlığı --------------------------------------------------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.page-head p { margin: var(--sp-1) 0 0; color: var(--text-muted); font-size: 0.9rem; max-width: 68ch; }
.page-head-actions { margin-left: auto; display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* --- 5. Kart ----------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { font-size: 1rem; }
.card-head-actions { margin-left: auto; display: flex; gap: var(--sp-2); align-items: center; }
.card-body { padding: var(--sp-5); }
.card-body.flush { padding: 0; }
.card-foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  display: flex;
  gap: var(--sp-2);
  justify-content: flex-end;
}

/* --- 6. Özet kutuları --------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.stat-icon.ok { background: var(--ok-soft); color: var(--ok); }
.stat-icon.warn { background: var(--warn-soft); color: var(--warn); }
.stat-icon.bad { background: var(--bad-soft); color: var(--bad); }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); }
.stat-value { font-size: 1.625rem; font-weight: 680; letter-spacing: -0.02em; line-height: 1.2; }
.stat-note { font-size: 0.75rem; color: var(--text-faint); }

/* --- 7. Tablo ---------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data th:first-child, table.data td:first-child { padding-left: var(--sp-5); }
table.data th:last-child, table.data td:last-child { padding-right: var(--sp-5); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 650;
  font-size: 0.8125rem;
  flex-shrink: 0;
  text-transform: uppercase;
}
.person { display: flex; align-items: center; gap: var(--sp-3); }
.person-name { font-weight: 550; }

/* --- 8. Boş durum ------------------------------------------------------ */

.empty {
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  color: var(--text-muted);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text-faint);
}
.empty p { margin: var(--sp-1) 0 0; font-size: 0.875rem; color: var(--text-faint); }

/* --- 9. Düğmeler ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--surface-3);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { text-decoration: none; background: var(--border); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }

.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }

.btn-ok { background: transparent; border-color: var(--ok); color: var(--ok); }
.btn-ok:hover { background: var(--ok); color: #fff; }

.btn-sm { padding: 5px 10px; font-size: 0.8125rem; }
.btn-icon { padding: 7px; }
.btn-block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.icon-btn:hover { color: var(--text); background: var(--surface-3); }

/* --- 10. Rozet --------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  background: var(--surface-3);
  color: var(--text-muted);
  white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }

.dot { width: 7px; height: 7px; border-radius: var(--r-full); background: currentColor; }

/* --- 11. Form ---------------------------------------------------------- */

.field { margin-bottom: var(--sp-4); }
.field:last-child { margin-bottom: 0; }
.field > label,
.label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.hint { margin-top: 6px; font-size: 0.75rem; color: var(--text-muted); }
.error-text { margin-top: 6px; font-size: 0.75rem; color: var(--bad); }

/* Tip belirtilmemiş <input> da metin alanıdır; seçiciyi tipe göre yazınca
   type="text" yazılmamış alanlar stilsiz kalıyordu. */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

.check { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.check input { margin-top: 2px; }
.check label { font-weight: 550; font-size: 0.9rem; cursor: pointer; margin: 0; }
.check .hint { margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-4); }

.form-section {
  padding-top: var(--sp-5);
  margin-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.form-section-title {
  font-size: 0.8125rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

/* Filtre çubuğu */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-3);
}
.filters .field { margin: 0; }
.filters select, .filters input { min-width: 120px; }

/* Sekme benzeri filtre */
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-3);
  border-radius: var(--r);
  flex-wrap: wrap;
}
.segmented a {
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--text-muted);
}
.segmented a:hover { color: var(--text); text-decoration: none; }
.segmented a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* --- 12. Bildirim ------------------------------------------------------ */

.flash {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: var(--sp-5);
  font-size: 0.9rem;
}
.flash-ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.flash-bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.flash-warn { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.flash-info { border-color: var(--info); background: var(--info-soft); color: var(--info); }
.flash-close {
  margin-left: auto;
  background: none;
  border: 0;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.flash-close:hover { opacity: 1; }

/* Kaydetme geri bildirimi (çizelge) */
.toast {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { color: var(--ok); }
.toast.bad { color: var(--bad); }

/* --- 13. Çizelge ızgarası ---------------------------------------------- */

.roster th.today { background: var(--brand-soft); color: var(--brand); }
.roster td { padding: 6px !important; }
.roster select { font-size: 0.8125rem; padding: 6px 26px 6px 8px; min-width: 158px; }
.roster select.inherited { color: var(--text-muted); border-style: dashed; }
.roster select.saving { border-color: var(--brand); }
.roster select.saved { border-color: var(--ok); }
.roster .day-head { font-size: 0.6875rem; }
.roster .day-head strong { display: block; font-size: 0.8125rem; color: var(--text); }

/* --- 14. Giriş sayfası -------------------------------------------------- */

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--brand-soft), transparent),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: var(--sp-6);
}
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.auth-sub { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: var(--sp-6); }

/* --- 15. Genel içerik sayfaları (gizlilik/destek) ---------------------- */

.prose { max-width: 72ch; }
.prose h2 { margin: var(--sp-6) 0 var(--sp-3); font-size: 1.125rem; }
.prose h3 { margin: var(--sp-5) 0 var(--sp-2); }
.prose ul { padding-left: var(--sp-5); margin: 0 0 var(--sp-3); }
.prose li { margin-bottom: var(--sp-2); }

.public-page { max-width: 860px; margin: 0 auto; padding: var(--sp-7) var(--sp-5); }

/* --- 16. Duyarlılık ---------------------------------------------------- */

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
  .shell.nav-open .sidebar { transform: translateX(0); }
  .shell.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .topbar { padding: 0 var(--sp-4); }
  .content { padding: var(--sp-4); }
}

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

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .card-body { padding: var(--sp-4); }
  .card-head { padding: var(--sp-4); }
  table.data th:first-child, table.data td:first-child { padding-left: var(--sp-4); }
  table.data th:last-child, table.data td:last-child { padding-right: var(--sp-4); }
  .page-head-actions { width: 100%; margin-left: 0; }
  .topbar-meta { display: none; }
  .stat { padding: var(--sp-4); }
  .stat-value { font-size: 1.375rem; }
}

@media print {
  .sidebar, .topbar, .page-head-actions, .filters, .scrim { display: none !important; }
  .main { margin-left: 0; }
  .content { padding: 0; }
  .card { border: 0; box-shadow: none; }
  body { background: #fff; color: #000; }
}
