/* ==========================================================================
   Apartman360 Tasarım Sistemi
   Marka renkleri tek yerden değiştirilebilir (--a-brand*). Açık/koyu tema: [data-bs-theme]
   ========================================================================== */
@font-face { font-family: "InterVar"; src: url("/lib/inter/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BA, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "InterVar"; src: url("/lib/inter/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root, [data-bs-theme="light"] {
  --a-brand: #1f5eff;
  --a-brand-rgb: 31, 94, 255;
  --a-brand-600: #1748cc;
  --a-brand-50: #eef3ff;
  --a-accent: #0fa89a;
  --a-bg: #f5f7fb;
  --a-surface: #ffffff;
  --a-surface-2: #f8f9fc;
  --a-border: #e4e8f0;
  --a-text: #1a2233;
  --a-muted: #5f6b80;
  --a-sidebar-bg: #0f1729;
  --a-sidebar-text: #aab4c8;
  --a-sidebar-active: #ffffff;
  --a-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --a-shadow-lg: 0 12px 32px rgba(16, 24, 40, .10);
  --a-radius: 12px;
  --a-radius-sm: 8px;
  --a-success: #12a150; --a-warning: #d98a00; --a-danger: #dc3545; --a-info: #0d8bd9;

  --bs-primary: var(--a-brand);
  --bs-primary-rgb: var(--a-brand-rgb);
  --bs-link-color: var(--a-brand);
  --bs-link-color-rgb: var(--a-brand-rgb);
  --bs-link-hover-color: var(--a-brand-600);
  --bs-body-font-family: "InterVar", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-bg: var(--a-bg);
  --bs-body-color: var(--a-text);
  --bs-secondary-color: var(--a-muted);
  --bs-border-color: var(--a-border);
  --bs-border-radius: var(--a-radius-sm);
  --bs-border-radius-lg: var(--a-radius);
  --bs-card-bg: var(--a-surface);
  --bs-tertiary-bg: var(--a-surface-2);
  --bs-focus-ring-color: rgba(var(--a-brand-rgb), .25);
}

[data-bs-theme="dark"] {
  --a-brand: #5b8cff;
  --a-brand-rgb: 91, 140, 255;
  --a-brand-600: #7aa2ff;
  --a-brand-50: rgba(91, 140, 255, .12);
  --a-bg: #0c111c;
  --a-surface: #141b2a;
  --a-surface-2: #182133;
  --a-border: #263149;
  --a-text: #e6eaf2;
  --a-muted: #98a3b8;
  --a-sidebar-bg: #0a0f1a;
  --a-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --a-shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
  --bs-body-bg: var(--a-bg);
  --bs-body-color: var(--a-text);
  --bs-secondary-color: var(--a-muted);
  --bs-border-color: var(--a-border);
  --bs-card-bg: var(--a-surface);
  --bs-tertiary-bg: var(--a-surface-2);
  --bs-primary: var(--a-brand);
  --bs-primary-rgb: var(--a-brand-rgb);
  --bs-link-color: var(--a-brand);
  --bs-link-color-rgb: var(--a-brand-rgb);
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; letter-spacing: -0.02em; }
.text-muted, .text-secondary { color: var(--a-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.small-caps { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--a-muted); }
.tabular { font-variant-numeric: tabular-nums; }
a { text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--a-brand); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--a-brand); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Butonlar */
.btn { font-weight: 600; border-radius: var(--a-radius-sm); padding: .5rem 1rem; }
.btn-sm { padding: .32rem .7rem; font-size: .84rem; }
.btn-lg { padding: .75rem 1.4rem; }
.btn-primary { --bs-btn-bg: var(--a-brand); --bs-btn-border-color: var(--a-brand); --bs-btn-hover-bg: var(--a-brand-600); --bs-btn-hover-border-color: var(--a-brand-600); --bs-btn-active-bg: var(--a-brand-600); --bs-btn-disabled-bg: var(--a-brand); --bs-btn-disabled-border-color: var(--a-brand); }
.btn-outline-primary { --bs-btn-color: var(--a-brand); --bs-btn-border-color: var(--a-brand); --bs-btn-hover-bg: var(--a-brand); --bs-btn-hover-border-color: var(--a-brand); --bs-btn-active-bg: var(--a-brand); }
.btn-soft { background: var(--a-brand-50); color: var(--a-brand); border: 0; }
.btn-soft:hover { background: rgba(var(--a-brand-rgb), .18); color: var(--a-brand); }
.btn-ghost { background: transparent; border: 1px solid var(--a-border); color: var(--a-text); }
.btn-ghost:hover { background: var(--a-surface-2); color: var(--a-text); }
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }

/* Formlar */
.form-control, .form-select { border-radius: var(--a-radius-sm); border-color: var(--a-border); padding: .55rem .8rem; background-color: var(--a-surface); }
.form-control:focus, .form-select:focus { border-color: var(--a-brand); box-shadow: 0 0 0 .2rem rgba(var(--a-brand-rgb), .15); }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-text { color: var(--a-muted); }
.field-validation-error, .validation-summary-errors { color: var(--a-danger); font-size: .85rem; }
.input-validation-error { border-color: var(--a-danger) !important; }
.required::after { content: " *"; color: var(--a-danger); }

/* Kartlar */
.card { border: 1px solid var(--a-border); border-radius: var(--a-radius); box-shadow: var(--a-shadow); background: var(--a-surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--a-border); padding: 1rem 1.25rem; font-weight: 600; }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 700; }

.stat-card { position: relative; padding: 1.1rem 1.2rem; height: 100%; }
.stat-card .stat-label { font-size: .8rem; color: var(--a-muted); font-weight: 600; }
.stat-card .stat-value { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.stat-card .stat-icon { position: absolute; right: 1rem; top: 1rem; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--a-brand-50); color: var(--a-brand); }
.stat-card .stat-icon.green { background: rgba(18, 161, 80, .12); color: var(--a-success); }
.stat-card .stat-icon.amber { background: rgba(217, 138, 0, .13); color: var(--a-warning); }
.stat-card .stat-icon.red { background: rgba(220, 53, 69, .12); color: var(--a-danger); }
.stat-card .stat-icon.teal { background: rgba(15, 168, 154, .12); color: var(--a-accent); }
.stat-card .stat-trend { font-size: .78rem; font-weight: 600; }

/* Tablolar */
.table-modern { margin: 0; --bs-table-bg: transparent; }
.table-modern > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--a-muted); font-weight: 600; background: var(--a-surface-2); border-bottom: 1px solid var(--a-border); padding: .7rem 1rem; white-space: nowrap; }
.table-modern > tbody td { padding: .75rem 1rem; vertical-align: middle; border-color: var(--a-border); }
.table-modern > tbody tr:hover > td { background: var(--a-surface-2); }
.table-modern td.num, .table-modern th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-modern tfoot td { font-weight: 700; background: var(--a-surface-2); padding: .75rem 1rem; }
.table-responsive { border-radius: 0 0 var(--a-radius) var(--a-radius); }

/* Rozetler */
.badge { font-weight: 600; border-radius: 999px; padding: .35em .7em; }
.badge-soft-success { background: rgba(18, 161, 80, .12); color: #0d7a3c; }
.badge-soft-warning { background: rgba(217, 138, 0, .14); color: #8a5800; }
.badge-soft-danger { background: rgba(220, 53, 69, .12); color: #b02a37; }
.badge-soft-info { background: rgba(13, 139, 217, .12); color: #0a6aa6; }
.badge-soft-secondary { background: rgba(95, 107, 128, .14); color: var(--a-muted); }
.badge-soft-primary { background: var(--a-brand-50); color: var(--a-brand); }
[data-bs-theme="dark"] .badge-soft-success { color: #4cd38a; }
[data-bs-theme="dark"] .badge-soft-warning { color: #f3b84b; }
[data-bs-theme="dark"] .badge-soft-danger { color: #f17d89; }
[data-bs-theme="dark"] .badge-soft-info { color: #5fb8f0; }

/* Boş durum */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--a-muted); }
.empty-state .empty-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 16px; background: var(--a-brand-50); color: var(--a-brand); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.empty-state h3 { font-size: 1.05rem; color: var(--a-text); }

/* ==========================================================================
   Panel yerleşimi (yönetici / sakin / super admin)
   ========================================================================== */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 264px; flex-shrink: 0; background: var(--a-sidebar-bg); color: var(--a-sidebar-text); position: sticky; top: 0; height: 100vh; overflow-y: auto; transition: width .2s ease; display: flex; flex-direction: column; z-index: 1030; }
.app-sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.app-sidebar .brand img { width: 32px; height: 32px; }
.app-sidebar .nav-section { padding: 1rem 1.25rem .35rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7894; font-weight: 700; }
.app-sidebar .nav-link { display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem; margin: 1px .65rem; border-radius: 8px; color: var(--a-sidebar-text); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.app-sidebar .nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; flex-shrink: 0; }
.app-sidebar .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-sidebar .nav-link.active { background: var(--a-brand); color: var(--a-sidebar-active); }
.app-sidebar .sidebar-footer { margin-top: auto; padding: 1rem 1.25rem; font-size: .8rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.sidebar-collapsed .app-sidebar { width: 76px; }
.sidebar-collapsed .app-sidebar .nav-link span, .sidebar-collapsed .app-sidebar .nav-section, .sidebar-collapsed .app-sidebar .brand span, .sidebar-collapsed .app-sidebar .sidebar-footer { display: none; }
.sidebar-collapsed .app-sidebar .nav-link { justify-content: center; padding: .6rem; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 1020; background: color-mix(in srgb, var(--a-surface) 88%, transparent); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--a-border); display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem; min-height: 64px; }
.app-content { padding: 1.5rem; flex: 1; }
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-header h1 { font-size: 1.45rem; margin: 0; }
.page-header .breadcrumb { margin: 0 0 .2rem; font-size: .8rem; }
.site-selector .form-select { min-width: 220px; font-weight: 600; }
.topbar-icon { position: relative; }
.topbar-icon .dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--a-danger); color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-menu { width: 360px; max-height: 480px; overflow-y: auto; }
.notif-item { display: block; padding: .7rem 1rem; border-bottom: 1px solid var(--a-border); text-decoration: none; color: var(--a-text); }
.notif-item.unread { background: var(--a-brand-50); }
.notif-item:hover { background: var(--a-surface-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--a-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.readonly-banner { background: #fff4e0; color: #7a4b00; border-bottom: 1px solid #f3d39a; padding: .55rem 1.5rem; font-size: .9rem; }
[data-bs-theme="dark"] .readonly-banner { background: #3a2a0c; color: #f3c56b; border-color: #5c430f; }
.demo-banner { background: linear-gradient(90deg, #0fa89a, #1f5eff); color: #fff; padding: .5rem 1.5rem; font-size: .88rem; }
.demo-banner a { color: #fff; font-weight: 700; }
.test-badge { background: #ffe9a8; color: #6b4e00; font-weight: 800; padding: .15rem .5rem; border-radius: 6px; font-size: .72rem; letter-spacing: .05em; }

@media (max-width: 991.98px) {
  .app-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; width: 280px; box-shadow: var(--a-shadow-lg); }
  .sidebar-open .app-sidebar { transform: translateX(0); }
  .sidebar-open .sidebar-backdrop { display: block; }
  .sidebar-collapsed .app-sidebar { width: 280px; }
  .sidebar-collapsed .app-sidebar .nav-link span, .sidebar-collapsed .app-sidebar .nav-section, .sidebar-collapsed .app-sidebar .brand span { display: initial; }
  .app-content { padding: 1rem; }
  .app-topbar { padding: .6rem 1rem; }
  .site-selector .form-select { min-width: 0; max-width: 170px; }
  .notif-menu { width: calc(100vw - 32px); }
}
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(10, 15, 26, .5); z-index: 1025; }

/* Filtre çubuğu */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; padding: 1rem 1.25rem; border-bottom: 1px solid var(--a-border); }
.filter-bar .form-control, .filter-bar .form-select { min-width: 140px; }
.filter-bar > div { flex: 0 1 auto; }

/* Kontrol listesi */
.checklist-item { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; }
.checklist-item .check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--a-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checklist-item.done .check { background: var(--a-success); border-color: var(--a-success); color: #fff; }
.checklist-item.done .title { text-decoration: line-through; color: var(--a-muted); }

/* Sihirbaz adımları */
.wizard-steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.wizard-steps .step { flex: 1; min-width: 120px; padding: .6rem .8rem; border-radius: 10px; background: var(--a-surface); border: 1px solid var(--a-border); font-size: .85rem; font-weight: 600; color: var(--a-muted); }
.wizard-steps .step.active { border-color: var(--a-brand); color: var(--a-brand); background: var(--a-brand-50); }
.wizard-steps .step.done { color: var(--a-success); }

/* Yükleniyor */
.loading-overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, .55); z-index: 3000; display: none; align-items: center; justify-content: center; }
[data-bs-theme="dark"] .loading-overlay { background: rgba(0, 0, 0, .45); }
.loading-overlay.show { display: flex; }
.toast-container { z-index: 3100; }

/* Zaman çizelgesi */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--a-brand); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--a-border); }
.timeline li:last-child::after { display: none; }
.timeline .internal::before { background: var(--a-warning); }

/* Yazdırma */
@media print {
  .app-sidebar, .app-topbar, .no-print, .btn, .filter-bar, .demo-banner, .readonly-banner { display: none !important; }
  .app-content { padding: 0; }
  .card { box-shadow: none; border: 0; }
  body { background: #fff; }
}

/* ==========================================================================
   Herkese açık site
   ========================================================================== */
.public-nav { background: color-mix(in srgb, var(--a-surface) 85%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--a-border); }
.public-nav .navbar-brand { font-weight: 800; letter-spacing: -0.03em; display: flex; align-items: center; gap: .5rem; }
.public-nav .nav-link { font-weight: 500; color: var(--a-text); }
.public-nav .nav-link:hover, .public-nav .nav-link.active { color: var(--a-brand); }
.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 680px; background: radial-gradient(closest-side, rgba(var(--a-brand-rgb), .14), transparent 70%), radial-gradient(closest-side at 80% 30%, rgba(15, 168, 154, .12), transparent 70%); z-index: -1; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.035em; }
.hero .lead { font-size: 1.15rem; color: var(--a-muted); max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 99px; background: var(--a-brand-50); color: var(--a-brand); font-weight: 600; font-size: .82rem; }
.screenshot { border-radius: 14px; border: 1px solid var(--a-border); box-shadow: var(--a-shadow-lg); background: var(--a-surface); }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--a-surface); border-top: 1px solid var(--a-border); border-bottom: 1px solid var(--a-border); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.feature-card { padding: 1.5rem; height: 100%; border-radius: var(--a-radius); background: var(--a-surface); border: 1px solid var(--a-border); transition: transform .15s ease, box-shadow .15s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--a-shadow-lg); }
.feature-card .icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--a-brand-50); color: var(--a-brand); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; }
.pricing-card { border-radius: 16px; padding: 2rem; background: var(--a-surface); border: 1px solid var(--a-border); height: 100%; display: flex; flex-direction: column; position: relative; }
.pricing-card.featured { border: 2px solid var(--a-brand); box-shadow: var(--a-shadow-lg); }
.pricing-card .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--a-brand); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .8rem; border-radius: 99px; }
.pricing-card .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.pricing-card ul { list-style: none; padding: 0; margin: 1.25rem 0; flex: 1; }
.pricing-card li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.pricing-card li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--a-success); font-weight: 700; }
.billing-toggle .btn { min-width: 110px; }
.step-number { width: 40px; height: 40px; border-radius: 50%; background: var(--a-brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta-band { background: linear-gradient(120deg, #1f5eff, #0f3fc2 55%, #0fa89a); color: #fff; border-radius: 20px; padding: 3rem 2rem; }
.cta-band .btn-light { color: #1f5eff; }
.public-footer { background: var(--a-sidebar-bg); color: #aab4c8; padding: 3.5rem 0 2rem; }
.public-footer a { color: #d5dbe7; text-decoration: none; }
.public-footer a:hover { color: #fff; }
.public-footer h6 { color: #fff; font-weight: 700; }
.prose { max-width: 760px; line-height: 1.75; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose img { max-width: 100%; height: auto; }
.prose ol li, .prose ul li { margin-bottom: .4rem; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; z-index: 2000; display: none; }
.cookie-banner.show { display: block; }
.auth-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; padding: 2.5rem 0; }
.auth-card { max-width: 460px; width: 100%; margin: 0 auto; }
.accordion-button:not(.collapsed) { background: var(--a-brand-50); color: var(--a-brand); }
.help-search { max-width: 640px; }
.mini-chart { height: 280px; position: relative; }
.chart-sm { height: 220px; position: relative; }
.legal-review { border-left: 4px solid var(--a-warning); }
.kbd-hint { font-size: .75rem; color: var(--a-muted); }
.receipt { max-width: 720px; margin: 0 auto; }
.potential { border-left: 4px dashed var(--a-warning) !important; }
.actual { border-left: 4px solid var(--a-success) !important; }

/* Düzen ince ayarları */
.page-header form .form-control, .page-header form .form-select { width: auto; }
.public-nav .nav-link, .public-nav .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1279.98px) { .public-nav .nav-link { padding-left: .45rem; padding-right: .45rem; font-size: .92rem; } .public-nav .btn { padding: .45rem .75rem; font-size: .9rem; } }
.filter-bar .form-check { white-space: nowrap; }
.table-modern td .btn + .btn, .table-modern td form + a { margin-left: .25rem; }
@media (max-width: 575.98px) {
  .page-header h1 { font-size: 1.25rem; }
  .stat-card .stat-value { font-size: 1.15rem; }
  .filter-bar > div { flex: 1 1 140px; }
  .filter-bar .form-control, .filter-bar .form-select { min-width: 0; width: 100%; }
  .page-header > .d-flex { width: 100%; }
}
.stat-card .stat-label, .stat-card .stat-value { padding-right: 46px; }
@media (max-width: 575.98px) {
  .stat-card .stat-icon { width: 28px; height: 28px; font-size: .85rem; right: .6rem; top: .6rem; border-radius: 8px; }
  .stat-card .stat-label, .stat-card .stat-value { padding-right: 30px; }
  .stat-card { padding: .85rem .9rem; }
  .app-topbar .btn-icon[title], .app-topbar [data-theme-toggle] { display: none; }
  .site-selector .form-select { max-width: 150px; font-size: .85rem; }
}
