@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
/* Gece 10 (açık iş 282, 01.11.2026) — yazı tipleri (Outfit, JetBrains Mono, Newsreader) artık css/fonts.css'ten, kendi sunucumuzdan
   gelir; sayfa başlıkları fonts.css'i bu dosyadan ÖNCE bağlar. Buraya dış adresli @import geri gelmesin (Gece10_ExternalAssetGuardTests). */

/* ============================================
   HIRDASOFT DESIGN SYSTEM — v2.0
   Aesthetic: Editorial Luxury
   Font: Outfit (display) + Newsreader (serif accent) + JetBrains Mono (data)
   Palette: Warm Stone neutrals + Teal accent
   ============================================ */
:root {
    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Warm Stone Neutrals */
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;

    /* Brand — Kurumsal Mavi (CTA, sidebar, link active, primary) */
    --brand: #1e40af;
    /* --brand'in kanal biçimi (İP-5, 28.11.2026): Bootstrap rengi rgba(R, G, B, saydamlık) diye okur ve CSS onaltılık değerden kanal
       çıkaramaz. Aynı renk (#1e40af = 30, 64, 175); --brand değişirse bu da değişir. */
    --brand-rgb: 30, 64, 175;
    --brand-dark: #1e3a8a;
    --brand-mid: #3b82f6;
    --brand-light: #dbeafe;
    --brand-glow: rgba(30, 64, 175, 0.12);
    --brand-text-on-dark: #ffffff;

    /* Success — Teal (semantic: başarı, .bg-success, .btn-success) */
    --success: #0d9488;
    --success-dark: #0f766e;
    --success-mid: #14b8a6;
    --success-light: #ccfbf1;
    --success-glow: rgba(13, 148, 136, 0.12);

    /* Semantic Colors */
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-error: #dc2626;
    --color-info: #2563eb;

    /* Surfaces */
    --bg-app: #f8f7f6;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --bg-inset: var(--stone-100);
    --bg-overlay: rgba(12, 10, 9, 0.55);
    --bg-frosted: rgba(255, 255, 255, 0.72);

    /* Text */
    --text-primary: var(--stone-900);
    --text-secondary: var(--stone-500);
    --text-tertiary: var(--stone-400);
    --text-white: #ffffff;
    --text-accent: var(--brand);

    /* Borders */
    --border-default: var(--stone-200);
    --border-subtle: var(--stone-100);
    --border-strong: var(--stone-300);

    /* Shadows — tinted warm */
    --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-sm: 0 2px 6px rgba(28, 25, 23, 0.04), 0 1px 2px rgba(28, 25, 23, 0.02);
    --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.06), 0 2px 4px rgba(28, 25, 23, 0.03);
    --shadow-lg: 0 12px 40px rgba(28, 25, 23, 0.08), 0 4px 12px rgba(28, 25, 23, 0.04);
    --shadow-xl: 0 24px 56px rgba(28, 25, 23, 0.12), 0 8px 20px rgba(28, 25, 23, 0.06);
    --shadow-brand: 0 4px 20px rgba(30, 64, 175, 0.18);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Motion — custom spring curves */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --duration-reveal: 700ms;

    /* Layout */
    --navbar-height: 60px;
    /* S22-2 — bilgisayar menüsünün iki genişliği: açık ve daraltılmış şerit. Kullanılan değer .app-container'daki --nav-w (menü bloğu). */
    --nav-w-open: 256px;
    --nav-w-rail: 88px;

    /* Legacy compat */
    --primary-color: var(--stone-900);
    --primary-dark: var(--stone-950);
    --secondary-color: var(--stone-800);
    --bg-primary: var(--bg-app);
    --bg-secondary: var(--bg-card);
    --border-color: var(--border-default);
    --border-radius: var(--radius-md);
    --border-radius-sm: var(--radius-sm);
    --border-radius-lg: var(--radius-lg);
    --card-bg: var(--bg-card);
    --card-shadow: var(--shadow-sm);
    --card-border-radius: var(--radius-lg);
    --navbar-bg: var(--stone-950);
    --input-bg: var(--bg-card);
    --input-border: 1.5px solid var(--border-default);
    --input-focus-border: var(--brand);
    --input-focus-shadow: 0 0 0 3px var(--brand-glow);
    --btn-primary-bg: var(--stone-900);
    --btn-primary-hover-shadow: 0 4px 12px rgba(28, 25, 23, 0.15);
    --transition-fast: var(--duration-fast) var(--ease-out);
    --transition-normal: var(--duration-normal) var(--ease-out);
    --transition-slow: var(--duration-slow) var(--ease-out);
    --zinc-50: var(--stone-50);
    --zinc-100: var(--stone-100);
    --zinc-200: var(--stone-200);
    --zinc-300: var(--stone-300);
    --zinc-400: var(--stone-400);
    --zinc-500: var(--stone-500);
    --zinc-600: var(--stone-600);
    --zinc-700: var(--stone-700);
    --zinc-800: var(--stone-800);
    --zinc-900: var(--stone-900);
    --zinc-950: var(--stone-950);

    /* Bootstrap'ın "ana renk"i kurumsal mavi (İP-5, 28.11.2026; D1). Depodaki stil dosyası Bootstrap 5.1.0
       (css/bootstrap/bootstrap.min.css): --bs-primary-rgb'yi yalnız .text-primary ve .bg-primary (bg-opacity-* ile) okur;
       --bs-primary'yi hiçbir kural okumaz (sürüm yükselince hazır dursun diye bağlı). Bağlantı rengi 5.1'de değişken değil, sabit
       kural: "LINKS" bölümündeki a, .btn-link kuralı kurumsal mavi verir. Sabit maviyle yazılan .border-primary, .page-link ve
       bileşen durumlarının kuralları aşağıda (BADGES, PAGINATION, COMPONENT STATES). */
    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font-display);
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg-app);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    text-rendering: optimizeLegibility;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.011em;
}

body:not(.landing-page) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

body.landing-page {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
}

body.landing-page .landing-content-wrapper,
.landing-page .landing-content-wrapper {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
}

body > div, body > component, #app, #blazor-error-ui {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

h1:focus { outline: none; }

/* Subtle grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ============================================
   TYPOGRAPHY — Editorial Hierarchy
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-top: 0;
}

h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

.font-serif { font-family: var(--font-serif); }

.font-mono, .badge, .kpi-card h3,
[data-type="currency"], [data-type="number"] {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.tabular-nums {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

/* Eyebrow — tiny uppercase label preceding headings */
.eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
    margin-bottom: 0.5rem;
    display: block;
}

/* ============================================
   LINKS & INTERACTIVE BASE
   ============================================ */
/* brand: default link rengi kurumsal mavi (içerik gövdesindeki <a>) */
a, .btn-link {
    color: var(--brand);
    transition: color var(--duration-fast) var(--ease-out);
    text-decoration-color: var(--border-default);
    text-underline-offset: 3px;
}

a:hover, .btn-link:hover {
    color: var(--brand-dark);
}

/* ============================================
   BUTTONS — Haptic with Double-Bezel
   ============================================ */
.btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.btn:active {
    transform: scale(0.97) translateY(1px);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
    box-shadow: 0 0 0 3px var(--brand-glow);
    outline: none;
}

/* brand: CTA primary — kurumsal mavi */
.btn-primary {
    color: var(--text-white) !important;
    background: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,0.10);
}

.btn-primary:hover {
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.10);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.97) translateY(0);
    background: var(--brand-dark) !important;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--stone-50);
    border-color: var(--border-strong);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* success: semantic — başarılı işlem, .bg-success ile aynı yeşil ton */
.btn-success {
    background: var(--success);
    border: 1px solid var(--success);
    color: white;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.18);
}

.btn-success:hover {
    background: var(--success-dark);
    border-color: var(--success-dark);
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--color-error);
    border: 1px solid var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-warning {
    background: var(--color-warning);
    border: 1px solid var(--color-warning);
    color: var(--stone-900);
}

.btn-warning:hover {
    background: #b45309;
    color: white;
}

.btn-info {
    background: var(--color-info);
    border: 1px solid var(--color-info);
    color: white;
}

.btn-info:hover {
    background: #1d4ed8;
}

/* brand: outline-primary — kurumsal mavi outline, hover dolu brand */
.btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--brand);
    color: var(--brand);
}

.btn-outline-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--text-white);
}

.btn-outline-danger {
    background: transparent;
    border: 1.5px solid var(--border-default);
    color: var(--color-error);
}

.btn-outline-danger:hover {
    background: #fef2f2;
    border-color: var(--color-error);
}

.btn-outline-secondary {
    background: transparent;
    border: 1.5px solid var(--border-default);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--stone-50);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
    background: var(--stone-100);
    color: var(--text-primary);
}

/* ============================================
   FORM ELEMENTS — Refined Inputs
   ============================================ */
.form-control {
    font-family: var(--font-display);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-xs);
}

.form-control:hover {
    border-color: var(--border-strong);
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
    background: var(--bg-card);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-select {
    font-family: var(--font-display);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 0.875rem;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-xs);
}

.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
    background: var(--bg-card);
}

.form-check-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    letter-spacing: 0;
}

.form-control-sm {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
}

.form-control-lg, .form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
}

.input-group {
    display: flex;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn {
    flex-shrink: 0;
}

.input-group-text {
    background: var(--stone-50);
    border: 1.5px solid var(--border-default);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.valid.modified:not([type=checkbox]) {
    outline: none;
    border-color: var(--color-success);
}

.invalid {
    outline: none;
    border-color: var(--color-error);
}

.validation-message {
    color: var(--color-error);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* ============================================
   APP SHELL — Flex Layout Container
   ============================================ */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* ============================================
   TOP NAVBAR — Frosted Glass Bar
   ============================================ */
.top-navbar {
    background: var(--stone-950);
    color: white;
    padding: 0;
    z-index: 1000;
    width: 100%;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-container {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    height: var(--navbar-height);
    width: 100%;
    margin: 0;
}

.navbar-brand {
    color: white !important;
    font-size: 1.125rem;
    font-weight: 800;
    text-decoration: none;
    margin-right: 2.5rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-out);
    letter-spacing: -0.025em;
}

.navbar-brand:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white !important;
}

.navbar-menu {
    display: flex;
    flex-direction: row;
    gap: 2px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.navbar-menu .nav-link {
    color: rgba(255, 255, 255, 0.5) !important;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    border-radius: var(--radius-xs);
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
    position: relative;
}

.navbar-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9) !important;
}

/* brand: top navbar aktif link — kurumsal mavi vurgu */
.navbar-menu .nav-link.active {
    background: rgba(59, 130, 246, 0.18);
    color: var(--brand-light) !important;
    font-weight: 600;
}

.navbar-menu .nav-link i {
    font-size: 0.9rem;
    opacity: 0.65;
}

.navbar-menu .nav-link.active i {
    opacity: 1;
}

/* Brand icon */
.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--brand-mid), var(--brand-dark));
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.8rem;
}

/* User section */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem 0.3rem 0.3rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-user-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-mid), var(--brand-dark));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.nav-avatar-lg {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
}

.navbar-user .user-greeting {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.nav-chevron {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform var(--duration-normal) var(--ease-out);
}

/* User Dropdown */
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    min-width: 220px;
    z-index: 1100;
    animation: dropdownReveal var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

@keyframes dropdownReveal {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.dropdown-user-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--stone-900);
    letter-spacing: -0.01em;
}

.dropdown-user-role {
    font-size: 0.75rem;
    color: var(--stone-400);
    font-weight: 500;
}

.nav-user-dropdown .dropdown-divider {
    height: 1px;
    background: var(--stone-100);
    margin: 0;
}

.nav-user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--stone-600);
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-user-dropdown .dropdown-item:hover {
    background: var(--stone-50);
    color: var(--stone-900);
}

.nav-user-dropdown .dropdown-item i {
    font-size: 1rem;
    opacity: 0.6;
}

.nav-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

/* Mobile user card */
.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--stone-50);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.navbar-user .logout-btn {
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    transition: all var(--duration-normal) var(--ease-out);
    background: transparent;
    font-weight: 500;
}

.navbar-user .logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* License badge */
.license-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--duration-normal) var(--ease-out);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.license-status i {
    font-size: 0.75rem;
}

/* success: semantic — lisans geçerli yeşil rozeti */
.license-status.license-valid {
    background: rgba(13, 148, 136, 0.15);
    color: #5eead4;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.license-status.license-invalid {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.license-status:hover { opacity: 0.85; }

/* ============================================
   MAIN CONTENT & CONTENT WRAPPER
   ============================================ */
.main-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    background: var(--bg-app);
    height: calc(100vh - var(--navbar-height));
    height: calc(100dvh - var(--navbar-height));
    max-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}

/* Quick Sale page — no padding, scrollable on mobile */
body.quicksale-page .content-wrapper {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
    body.quicksale-page .content-wrapper {
        overflow: hidden;
    }
}

/* ============================================
   PAGE LAYOUTS — Viewport-fit System
   ============================================ */

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex: 0 0 auto;
}

.page-toolbar h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.toolbar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-alerts { flex: 0 0 auto; margin-bottom: 0.5rem; }
.page-filters { flex: 0 0 auto; margin-bottom: 0.75rem; }
.page-tabs { flex: 0 0 auto; }

/* LIST PAGE */
.list-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.list-page .table-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.list-page .table-card > .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    padding: 0;
}

/* 2026-09-04 — bir sayfada birden fazla .table-card varsa (ör. Tahsilat İptal: Aktif
   Tahsilatlar + Havale/Kart Tahsilatları) hepsi flex:1 ile eşit pay alır (satır 983-992'nin
   kasıtlı tasarımı). Ama BOŞ bir kart da aynı payı alıp altında boşuna beyaz alan bırakır,
   dolu kart ise küçük payına sığmayıp erken kayar. .table-card-natural bu durumda YALNIZ
   ilgili kart için doğal (içeriğe göre) yüksekliğe döner; diğer kart(lar) kalan alanı devralır. */
.list-page .table-card.table-card-natural {
    flex: 0 0 auto;
}

.list-page .table-card.table-card-natural > .card-body {
    flex: 0 0 auto;
    overflow: visible;
}

.list-page .tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.list-page .tab-content > .tab-pane {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.list-page .tab-content > .tab-pane.active {
    display: flex;
}

.list-page .tab-content > .tab-pane > .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.list-page .tab-content > .tab-pane > .card > .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    padding: 0;
}

/* DETAIL PAGE */
.detail-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.detail-page .info-card {
    flex: 0 0 auto;
    margin-bottom: 1rem;
}

.detail-page .data-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.detail-page .data-card > .card-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 0;
}

.detail-item { margin-bottom: 0.25rem; }

.detail-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    display: block;
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* FORM PAGE */
.form-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

@media (min-width: 768px) {
    .form-page {
        max-width: 720px;
        padding: 0;
    }
}

.form-page .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.form-page .card-header { flex: 0 0 auto; }
.form-page .card-header h4 { margin: 0; font-size: 1.1rem; }

.form-page .card-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.form-page .form-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
    flex: 0 0 auto;
}

/* FIT PAGE */
.fit-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.fit-page > .row {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.fit-page > .row > [class*="col-"] {
    overflow-y: auto;
    min-height: 0;
}

/* ============================================
   TELEFONDA SAYFA KAYAR (31.10.2026, AcikIsler 279)
   ============================================
   Yukarıdaki dört düzen (list-page, detail-page, form-page, fit-page) sayfayı ekrana sığdırır, taşanı keser; bilgisayarda tablo kendi
   kutusunda kayar. Telefonda kutular sıfıra eziliyor ya da kesilen yer hiç kaydırılamıyordu. Müşteri şikâyeti: iPhone'da Veresiye
   Tahsilat'ta borç seçince "Tahsilat Yap" ekranın 350 px altında kaldı; Cariler'de tablo 0 px'e ezilmişti. Üst menünün çıktığı
   genişlikte (992 px altı) sığdırma kapanır: kutular içerikleri kadar uzar, bütün sayfayı .content-wrapper kaydırır; geniş tablo yatayda
   kendi kutusunda kayar. Ölçen test: E2E/tests/kaydirma.telefon.spec.ts (Chrome ve Safari motorunda). */
@media (max-width: 991.98px) {
    .list-page,
    .list-page .table-card,
    .list-page .tab-content,
    .list-page .tab-content > .tab-pane,
    .list-page .tab-content > .tab-pane > .card,
    .detail-page,
    .detail-page .data-card,
    .form-page,
    .form-page .card,
    .fit-page,
    .fit-page > .row {
        flex: 0 0 auto;
        min-height: auto;
        overflow: visible;
    }

    /* Kart gövdesi dikeyde içeriği kadar uzar; yatayda taşan tablo kendi içinde kayar (mobile.css: "yatay scroll garanti"). */
    .list-page .table-card > .card-body,
    .list-page .tab-content > .tab-pane > .card > .card-body,
    .detail-page .data-card > .card-body,
    .form-page .card-body,
    .fit-page > .row > [class*="col-"] {
        flex: 0 0 auto;
        min-height: auto;
        overflow-x: auto;
        overflow-y: visible;
    }
}

/* ============================================
   CARDS — Warm Surfaces with Subtle Depth
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.25rem;
    transition: box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1rem 1.25rem;
    background: transparent;
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    background: var(--stone-50);
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   TABLES — Clean Data Display
   ============================================ */
.table {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0;
    font-size: 0.8125rem;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
}

/* Tablo başlığı 768 pikselin altında 0.6875rem (10,3 piksel), 768 piksel ve üstünde 12 piksel: 12 piksel ".card .table thead th"
   kuralının ardındaki @media'da (İP-5, D10; Ş-L28). Renk --text-secondary, --stone-50 zeminde 4,59:1. */
.table thead th {
    background: var(--stone-50);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border-default);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: background var(--duration-fast) var(--ease-out);
    border-bottom: 1px solid var(--border-subtle);
}

.table tbody tr:hover {
    background: var(--stone-50);
}

.table tbody td {
    padding: 0.625rem 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-subtle);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background: transparent;
}

.table-striped > tbody > tr:nth-of-type(odd):hover > td {
    background: var(--stone-50);
}

/* ============================================
   ALERTS — Left-bordered with Warm Tones
   ============================================ */
.alert {
    border: 1px solid;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.8125rem;
    border-left-width: 3px;
}

/* 2026-07-30 — `display:flex` KALDIRILDI (bilinçli).
   Kural "ikon + tek metin" varsayıyordu; oysa uyarıların 47'sinde metnin içinde <strong>
   geçiyor ve flex her metin parçasını AYRI KOLONA çeviriyordu ("... için | kasadan çıkış
   yazılmaz | . İptal edildiğinde ..."). Normal satır akışında ikon ilk satırda kalır,
   metin bütün akar — istenen görünüm bu.
   Flex'e gerçekten ihtiyacı olan tek uyarı (Transactions/CreditPayment.razor:173) kendi
   üzerinde `d-flex` taşıyor, etkilenmez. İkon boşluğu ikondaki me-* sınıflarından gelir. */


.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    border-left-color: var(--color-success);
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    border-left-color: var(--color-error);
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
    border-left-color: var(--color-warning);
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
    border-left-color: var(--color-info);
}

/* ============================================
   BADGES — Pill-shaped
   ============================================ */
/* Rozetin boyu ve iç boşluğu yalnız burada (Ş-L23: mobile.css'teki iki rozet kuralı kaldırıldı; değerleri aynı aralıklarla aşağıda).
   Ş-L28: 768 pikselin altında ölçüler c97a420'daki gibi — her genişlikte 0.6875rem ve 0.25rem 0.5rem, 480 pikselin altında 0.625rem ve
   0.2rem 0.375rem; satır içi yazı boyu geçerli. 768 piksel ve üstünde yazı 12 piksel (D10). */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .badge {
        font-size: 0.625rem;
        padding: 0.2rem 0.375rem;
    }
}

/* Önem işareti bilinçli: 59 rozet satır içi stille 0.6–0.78rem, biri 0.9rem yazılı, biri fs-6 taşıyor; masaüstünde boy her yerde aynı
   olsun diye (Ş-L23) satır içi stili yalnız önem işareti ezer. */
@media (min-width: 768px) {
    .badge { font-size: 12px !important; }
}

/* .bg-primary burada yazılmaz (İP-5, 28.11.2026): Bootstrap'ın kendi kuralı rengi :root'taki --bs-primary-rgb'den (kurumsal mavi)
   ve saydamlığı bg-opacity-*'tan okur. Eskiden burada siyah (--stone-900) vardı; saydamlığı da ezip açık mavi istenen başlığı
   (Sipariş İadesi Oluştur, "Sipariş Bilgileri") siyah yapıyordu. Rozette yazı beyaz, kurumsal mavide 8,72:1. */
.bg-success { background: var(--success) !important; }
.bg-danger { background: var(--color-error) !important; }
.bg-warning { background: var(--color-warning) !important; color: var(--stone-900) !important; }
.bg-info { background: var(--color-info) !important; }
/* Nötr rozet (İP-5; D5): .status-neutral ve yeni yüzdeki hs-pill-neutral ile aynı açık taş zemin, koyu yazı; 6,99:1 (eskiden beyaz
   yazı --stone-400 zeminde 2,52:1). */
.bg-secondary { background: var(--stone-100) !important; color: var(--stone-600) !important; }
.bg-light { background: var(--stone-100) !important; color: var(--text-primary) !important; }
/* Bootstrap 5.1 .border-primary'yi değişkenden değil sabit maviden (#0d6efd) yazar; önem işareti Bootstrap'ınkini ezmek için. */
.border-primary { border-color: var(--brand) !important; }
/* Okunmayan dolu rozetler (İP-5 ek iş, Ş-L23): renk ailesi ve dolu biçim kalır, yalnız rozet (düğme, şerit ve öbür öğeler aynı). Önem
   işareti ezilen kuralların (.bg-success burada, .text-dark Bootstrap'ta) önem işaretli olmasından.
   - Yeşil: beyaz yazı --success zemininde 3,74:1 → bir ton koyu zemin (--success-dark) 5,47:1.
   - Mavi zeminde koyu yazı (bg-info text-dark; Bootstrap'ın açık camgöbeği için yazılmış): 2,98:1 → beyaz yazı 5,17:1. */
.badge.bg-success { background: var(--success-dark) !important; }
.badge.bg-info.text-dark { color: var(--text-white) !important; }
/* Dolu koyu şeritte (bg-* text-white: kart ve pencere başlığı) başlık beyaz. Genel h1–h6 rengi "text-white"ın mirasını kesip başlığı koyu
   yazıyordu. Koyu → beyaz: siyah (bg-dark) 1,13 → 15,43; kurumsal mavi 2,00 → 8,72; kırmızı 3,62 → 4,83; bilgi mavisi 3,38 → 5,17:1.
   Yeşil (bg-success) ve turuncu (bg-warning) şeritte koyu başlık kalır: orada koyu 4,67 ve 5,49:1, beyaz 3,74 ve 3,19:1. */
:is(.bg-primary, .bg-dark, .bg-danger, .bg-info).text-white :is(h1, h2, h3, h4, h5, h6) { color: inherit; }

/* Status pills — semantic */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: var(--font-mono);
}

.status-success { background: #dcfce7; color: #166534; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-danger { background: #fef2f2; color: #991b1b; }
.status-info { background: #dbeafe; color: #1e40af; }
.status-neutral { background: var(--stone-100); color: var(--stone-600); }

/* ============================================
   TABS — Underline Style
   ============================================ */
.nav-tabs {
    border-bottom: 1px solid var(--border-default);
    flex-shrink: 0;
    gap: 0;
}

.nav-tabs .nav-link {
    /* 2026-09-12 — `display` açıkça yazılıyor. Eskiden tanıtım sayfası için
       yazılmış genel `.nav-link` kuralından geliyordu: 768px altında
       `none !important`, üstünde `inline-flex`. O kural `.landing-nav` altına
       alındı; sekmelerin masaüstündeki görünümü değişmesin ve telefonda
       kaybolmasın diye değer burada sabitlendi. */
    display: inline-flex;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    background: none;
    transition: all var(--duration-normal) var(--ease-out);
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--border-strong);
}

.nav-tabs .nav-link.active {
    color: var(--brand-dark);
    border-bottom-color: var(--brand);
    font-weight: 600;
    background: none;
}

/* ============================================
   PAGINATION — Bootstrap .pagination
   ============================================ */
/* İP-5 (28.11.2026; D1): Bootstrap 5.1 sayfa düğmelerini değişkenden değil sabit maviden (#0d6efd) yazar. Yazı ve seçili sayfa kurumsal
   mavi (8,72:1); odak halkası Bootstrap'ın (odak halkası ayrı karar, Ş-L23). Kapsam: ListPager, eski tablonun sayfa düğmeleri (seçili
   sayfa "active" sınıfı alır), elle yazılmış sayfalamalar. Yeni yüzdeki sayfalama (hs.css .hs-pager) daha özgül kurallarıyla bunları ezer. */
.page-link { color: var(--brand); }
.page-link:hover,
.page-link:focus { color: var(--brand-dark); }
.page-item.active .page-link {
    color: var(--text-white);
    background-color: var(--brand);
    border-color: var(--brand);
}

/* ============================================
   COMPONENT STATES — Bootstrap 5.1'in sabit mavisi yerine kurumsal mavi
   ============================================ */
/* İP-5 ek iş (28.11.2026; D1, Ş-L23): Bootstrap bu durumlarda maviyi değişkenden değil sabit renkten yazar (#0d6efd, #0c63e4, #cfe2ff).
   Yalnız uygulamada kullanılanlar. Dokunulmayanlar: odak halkası ve form kutusu çerçevesi (ayrı karar); basılı an (:active; kullanıcı
   menüsünün kendi kuralı var). Seçili onay kutusu zaten kurumsal mavi (FORM ELEMENTS). Kullanılmayan: .nav-pills, .progress-bar,
   .alert-primary, .list-group-item-primary, .link-primary, .btn-check. */

/* Seçili liste satırı (Borç Seç penceresi, Hızlı Satış'ta müşteri seçimi): beyaz yazı 8,72:1. Satırdaki soluk yazı (.text-muted, önem
   işaretli) mavide 1,82:1 kalırdı → açık mavi 7,15:1; önem işareti o kuralı ezmek için. */
.list-group-item.active {
    color: var(--text-white);
    background-color: var(--brand);
    border-color: var(--brand);
}
.list-group-item.active .text-muted { color: var(--brand-light) !important; }

/* Açılır listede seçili öğe (Cari Hareketleri'nde müşteri süzgeci): beyaz yazı 8,72:1. */
.dropdown-item.active {
    color: var(--text-white);
    background-color: var(--brand);
}

/* Açık akordeon başlığı (Kullanıcı İzinleri): açık mavi zemin, koyu mavi yazı 8,49:1. Bootstrap'ın oku sabit mavili bir görsel; burada
   aynı biçim maske olur ve yazının rengini alır. Maskeyi tanımayan tarayıcıda Bootstrap'ın oku kalır. */
.accordion-button:not(.collapsed) {
    color: var(--brand-dark);
    background-color: var(--brand-light);
}
@supports (-webkit-mask: none) or (mask: none) {
    .accordion-button:not(.collapsed)::after {
        background-image: none;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") center / 1.25rem no-repeat;
        mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") center / 1.25rem no-repeat;
    }
}

/* Vurgulu tablo satırı (Barkodlar'da birincil barkod): açık mavi zemin, koyu yazı 14,33:1; üstüne gelince yarı saydam mavi katman 11,86:1. */
.table-primary {
    --bs-table-bg: var(--brand-light);
    --bs-table-striped-bg: var(--brand-glow);
    --bs-table-striped-color: var(--text-primary);
    --bs-table-active-bg: var(--brand-glow);
    --bs-table-active-color: var(--text-primary);
    --bs-table-hover-bg: var(--brand-glow);
    --bs-table-hover-color: var(--text-primary);
    color: var(--text-primary);
    border-color: var(--border-default);
}

/* Pasif çerçeveli mavi düğmenin yazısı (Bootstrap'ta sabit mavi; çerçevesi "BUTTONS"ta zaten kurumsal mavi). */
.btn-outline-primary:disabled,
.btn-outline-primary.disabled { color: var(--brand); }

/* ============================================
   SCROLLBARS — Thin, Warm
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stone-300); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone-400); }

.content-wrapper::-webkit-scrollbar { width: 6px; }
.content-wrapper::-webkit-scrollbar-track { background: transparent; }
.content-wrapper::-webkit-scrollbar-thumb { background: var(--stone-300); border-radius: 6px; }

/* ============================================
   BLAZOR ERROR UI
   ============================================ */
#blazor-error-ui {
    background: var(--bg-card);
    bottom: 0;
    box-shadow: var(--shadow-lg);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    /* AcikIsler 39: onay penceresinin (1080) ve bildirimlerin (2000) üstünde — pencere açıkken bağlantı düşerse
       "Yeniden Yükle" tıklanabilsin. */
    z-index: 2100;
    border-top: 2px solid var(--color-error);
    font-size: 0.875rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA5Ny43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--radius-sm);
}

/* AcikIsler 54 — içeriği verilmemiş bir hata sınırı kalırsa İngilizce metin görünmesin. */
.blazor-error-boundary::after { content: "Beklenmeyen bir hata oluştu. Sayfayı yenileyin."; }

/* ============================================
   BOOTSTRAP OVERRIDE — Full Width
   ============================================ */
.container, .container-fluid,
.container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.content-wrapper .container, .content-wrapper .container-fluid,
.app-container .container, .app-container .container-fluid,
.main-content .container, .main-content .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 576px) { .container { max-width: 100% !important; } }
@media (min-width: 768px) { .container { max-width: 100% !important; } }
@media (min-width: 992px) { .container { max-width: 100% !important; } }
@media (min-width: 1200px) { .container { max-width: 100% !important; } }

.content-wrapper .table, .table {
    width: 100% !important;
    max-width: 100% !important;
}

.content-wrapper .row { margin-left: 0 !important; margin-right: 0 !important; }
.row { margin-left: 0 !important; margin-right: 0 !important; }

.content-wrapper .col-md-6, .content-wrapper .col-md-8, .content-wrapper .col-md-12 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.content-wrapper .btn { margin-right: 0.5rem; margin-bottom: 0.5rem; }

/* Gece 11 (denetim B D17, Ş1) — masraf formları (Yeni Masraf, Düzenle, tekrarlayan masraf): iki sütunlu satırlar (Tutar · KDV oranı,
   Vade · Planlanan ödeme şekli) tek sütunlu alanlarla aynı kenarda; genel .row eksi kenarı sıfırlandığı ve .col-md-6 iç boşluklu olduğu için
   11 px içeride kalıyorlardı. Telefonda seçim ve tarih kutuları 16 px: iPhone 16 px altındaki kutuda odakta sayfayı yakınlaştırır
   (mobile.css kuralı sınıflı .form-select ve tarih kutusunu tutmuyor). */
.expense-form .expense-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 1rem; }
@media (max-width: 767.98px) {
    .expense-form .expense-form-row { grid-template-columns: minmax(0, 1fr); }
    .expense-form .form-select,
    .expense-form input[type="date"].form-control { font-size: 16px; }
}

.content-wrapper h1, .content-wrapper h2, .content-wrapper h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.content-wrapper h1 { font-size: 1.625rem; }
.content-wrapper h2 { font-size: 1.5rem; }
.content-wrapper h3 { font-size: 1.25rem; }

.content-wrapper .form-group, .content-wrapper .mb-3 { width: 100%; }
.content-wrapper .table-responsive { width: 100%; overflow-x: auto; }

/* Detail page table containers */
.details-table-container {
    overflow-y: auto;
    overflow-x: hidden;
}

.details-table-container table { margin-bottom: 0; }

.details-table-container thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--stone-50);
}

.details-table-container thead th {
    background: var(--stone-50);
    font-weight: 600;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border-default);
    white-space: nowrap;
}

.details-table-container tbody tr:hover { background-color: var(--stone-50); }

.details-table-container tfoot {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background-color: var(--stone-100) !important;
}

.details-table-container tfoot th, .details-table-container tfoot td {
    background-color: var(--stone-100) !important;
    font-weight: 600;
    padding: 0.625rem;
    border-top: 1px solid var(--border-default);
}

/* Dashboard widget tables */
.card .table thead {
    background-color: var(--stone-50) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.card .table thead th {
    background-color: var(--stone-50) !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    font-size: 0.6875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 0.625rem 0.5rem !important;
    border-bottom: 1px solid var(--border-default) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

/* İP-5 (D10) + Ş-L28: tablo başlığı 768 piksel ve üstünde 12 piksel; altında 0.6875rem kalır (telefonda 12 piksellik büyük harfli,
   satır kırmayan başlık tabloyu genişletip tutar sütununu ekran dışına itiyordu: 038, 078, 116). Bu blok iki başlık kuralının da
   ardında durmalı; ikinci satırdaki önem işareti yukarıdaki önem işaretli kuralı ezmek için. */
@media (min-width: 768px) {
    .table thead th { font-size: 12px; }
    .card .table thead th { font-size: 12px !important; }
}

/* ============================================
   SEARCH BOX
   ============================================ */
.search-box { position: relative; }

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    z-index: 1;
}

.search-box .form-control { padding-left: 2.75rem; }

/* ============================================
   SKELETON / LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--stone-100) 25%, var(--stone-200) 50%, var(--stone-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text { height: 1rem; width: 60%; margin-bottom: 0.5rem; }
.skeleton-text.large { height: 2rem; width: 40%; }
.skeleton-block { height: 100%; width: 100%; min-height: 120px; border-radius: var(--radius-md); }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   ANIMATIONS — Scroll Reveals & Micro-interactions
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Page entrance */
.list-page, .detail-page, .form-page, .fit-page {
    animation: fadeIn var(--duration-slow) var(--ease-out);
}

/* ============================================
   MISC UTILITIES
   ============================================ */
.text-muted { font-size: 0.8125rem; color: var(--text-secondary) !important; }
.shadow-top { box-shadow: 0 -4px 12px rgba(28, 25, 23, 0.04); }

.offcanvas-backdrop {
    position: fixed;
    top: 0; left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-overlay);
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

/* Dashboard container */
.dashboard-container {
    width: 100%;
    height: auto;
    overflow: visible;
}

.dashboard-container .card { margin-bottom: 1.25rem; }
.dashboard-container .card-body { padding: 1.25rem; }
.dashboard-container .table-responsive { width: 100%; overflow-x: auto; }

/* Reports — S24-3 (01.12.2026): eski reports-income-list / reports-expense-list kuralları emekli (hiçbir sayfa kullanmıyor; raporlar
   iskelette, hs.css hs-report-*). */

/* Header actions */
.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   MOBILE MENU (Hamburger Slide) — telefon üst çubuğu ve çekmece (992 px altı)
   S22-1 (30.11.2026; çizim MenuKabuguTelefon, patron kararları 2 ve 3) — üst çubuk ve çekmece kuralları bu blokta toplandı (eski
   "AcikIsler 154" ad kısaltma bloğu buraya girdi). Değişenler:
   • Üst çubuk 60 px: logo ve firma adı (tek satır, üç noktayla kısalır), zil (okunmamış sayı rozetli) ve menü düğmesi; düğmeler 48 px.
   • Karartma (1001) ve çekmece (1002) üst çubuğun (1000) üstünde: çekmece açıkken menü düğmesi karartmanın altında kalır, görünen tek
     kapatma düğmesi çekmece başlığındaki 48 px'lik çarpı. Karartmaya dokunmak ve satıra basmak yine kapatır.
   • Çekmece en çok 320 px, sağda sayfadan 56 px görünür. Başlık ve arama üstte, liste kendi içinde kayar, alt bölüm (firma ve şube seçici,
     kullanıcı, kilit düğmeleri, "Kullanıcı Değiştir", "Çıkış Yap") altta hep görünür. Çok kısa ekranda liste en az 9 rem kalır, artanı
     çekmecenin kendisi kaydırır.
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.375rem;
    width: 48px;
    height: 48px;
    flex: none;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu-toggle:hover { background: rgba(255, 255, 255, 0.12); }

/* Zil: üst çubukta, menü düğmesinin solunda (yalnız üst çubuğun göründüğü 992 px altında görünür). */
.mobile-notif-bell {
    position: relative;
    display: inline-flex;
    flex: none;
    order: 1;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
}

.mobile-notif-bell:hover,
.mobile-notif-bell:focus-visible { background: rgba(255, 255, 255, 0.12); color: #fff; }

.mobile-notif-bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--stone-950);
    pointer-events: none;
}

@media (max-width: 991.98px) {
    /* Seçici iki sınıflı: aşağıdaki kırılım kurallarının (.navbar-container, .navbar-brand) iç boşluğunu ve sarmasını ezer. */
    .top-navbar .navbar-container {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 8px 0 14px;
    }

    .top-navbar .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .top-navbar .brand-icon { flex: none; }

    .top-navbar .brand-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .top-navbar .mobile-menu-toggle { margin-left: 0; }
}

@media (min-width: 992px) {
    .mobile-notif-bell { display: none; }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-overlay);
    z-index: 1001;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(320px, calc(100vw - 56px));
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    z-index: 1002;
    transition: left var(--duration-slow) var(--ease-out);
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-sidebar.active { left: 0; }

.mobile-menu-header {
    flex: none;
    min-height: 64px;
    background: var(--stone-950);
    color: white;
    padding: 8px 8px 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* AcikIsler 154 (05.10) — uzun ad başlığı 300 px'ten genişletiyor, kapatma düğmesi kenardan kesiliyordu. Ad kısalır (çekmecede iki satır,
   tam ad ipucunda); simge ve kapatma düğmesi küçülmez. */
.mobile-menu-header .navbar-brand {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.25;
    white-space: normal;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.mobile-menu-header .brand-icon { flex: none; }

.mobile-menu-header .mobile-brand-text {
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.mobile-menu-close {
    flex: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu-close:hover { background: rgba(255, 255, 255, 0.12); }

/* Arama ve liste: arama üstte durur, liste kendi içinde kayar. Kapta taşma gizlenmez (en küçük boy listenin 9 rem'ini içerir).
   DZ-S22-1 — boyun tek kaynağı burası (NavMenu.razor.css'teki Gece 13 kuralı kalktı). Liste boyutça kapalıdır (contain: size): içeriğinin
   boyu kabın en küçük boyuna eklenmez; liste kalan yeri doldurur, en az 9 rem kalır. Kapsama olmadan bütün gruplar açıkken kap 32 satır
   boyuna uzuyor, alt bölüm ("Çıkış Yap") ekranın altına düşüyordu (360 × 640'ta 805–849). */
.mobile-menu-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mobile-menu-content .nav-search { flex: none; padding: 10px 12px 6px; }
.mobile-menu-content .nav-search-empty { flex: none; }

.mobile-menu-list {
    flex: 1 1 auto;
    min-height: 9rem;
    contain: size;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 0.5rem;
}

/* Alt bölüm: hep görünür. Firma ve şube seçicinin listesi burada yukarı açılır (aşağıda yer yok). */
.mobile-menu-footer {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border-default);
    background: var(--stone-50);
}

.mobile-menu-footer .tenant-switcher-mobile,
.mobile-menu-footer .branch-switcher-mobile { padding: 0; }

.mobile-menu-footer .tenant-switcher-mobile .tenant-switcher-btn,
.mobile-menu-footer .branch-switcher-mobile .branch-switcher-btn { min-height: 48px; }

.mobile-menu-footer .tenant-switcher-mobile .tenant-switcher-dropdown,
.mobile-menu-footer .branch-switcher-mobile .branch-switcher-dropdown {
    top: auto;
    bottom: calc(100% + 6px);
    max-height: 60vh;
    overflow-y: auto;
}

.mobile-menu-content .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--duration-normal) var(--ease-out);
    font-weight: 500;
    font-size: 0.9rem;
}

.mobile-menu-content .nav-link:hover {
    background: var(--stone-50);
    padding-left: 1.75rem;
}

.mobile-menu-content .nav-link.active {
    background: var(--brand-glow);
    color: var(--brand-dark);
    border-left: 3px solid var(--brand);
    font-weight: 600;
}

.mobile-menu-content .nav-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: var(--text-tertiary);
}

.mobile-menu-content .nav-link.active i { color: var(--brand); }

/* S22-1 — kullanıcı kartı, kilit düğmeleri ve "Çıkış Yap" çekmecenin alt bölümünde (.mobile-menu-footer; zemin ve üst çizgi orada). */
.mobile-menu-user {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-user .mobile-user-card {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    min-width: 0;
}

.mobile-menu-user .mobile-user-text { min-width: 0; }

.mobile-menu-user .mobile-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-footer .tenant-switcher-current,
.mobile-menu-footer .branch-switcher-current { min-width: 0; }

.mobile-menu-user .logout-btn { width: 100%; min-height: 44px; justify-content: center; }

/* ============================================
   THEME TOGGLE BUTTON (§36)
   ============================================ */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: all var(--duration-fast) var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-theme-btn {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    min-width: 28px;
    text-align: center;
}

.sidebar-theme-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-theme-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: default;
}

.sidebar-theme-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.navbar-theme-btn {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    order: 1;
    margin-left: auto;
    margin-right: 0.25rem;
}

.navbar-theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- Mobile Menu Context (light) --- */
.mobile-menu-content .nav-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem 0.7rem;
    color: var(--text-primary);
    background: var(--stone-100);
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
    width: 100%;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.15s, color 0.15s;
    margin-top: 0.5rem;
}

.mobile-menu-content .nav-group-header:hover {
    background: var(--stone-200);
    color: var(--text-primary);
}

.mobile-menu-content .nav-group-header i:first-child {
    font-size: 1.05rem;
    color: var(--brand);
    width: 20px;
    text-align: center;
}

.mobile-menu-content .nav-group-label {
    flex: 1;
}

.mobile-menu-content .nav-group-chevron {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    transition: transform 0.25s var(--ease-out);
}

.mobile-menu-content .nav-group.open .nav-group-chevron {
    transform: rotate(-180deg);
}

/* Gece 14c: telefon çekmecesinde de kenar menüyle aynı ızgara geçişi (kapalı 0fr, açık 1fr = gerçek boy). */
.mobile-menu-content .nav-group-items {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.2s var(--ease-out), margin 0.2s var(--ease-out);
}

.mobile-menu-content .nav-group.open .nav-group-items {
    grid-template-rows: 1fr;
}

/* Mobile sub-links indented */
.mobile-menu-content .nav-group-items .nav-link {
    padding-left: 2rem;
}

/* Mobile quicksale: brand mavisinden farklı amber vurgu (sidebar ile aynı kural). */
.mobile-menu-content .mobile-quicksale {
    color: #b45309 !important;
    background: rgba(251, 191, 36, 0.10);
    font-weight: 600;
}

/* ============================================
   DASHBOARD — Bento Grid Layout
   ============================================ */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex: 0 0 auto;
}

.dashboard-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0;
}

.dashboard-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.125rem 0 0;
    font-family: var(--font-serif);
    font-style: italic;
}

.btn-new-sale {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--brand);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-brand);
}

.btn-new-sale:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(30, 64, 175, 0.30);
    color: white;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0.5rem;
}

/* KPI Boxes — Card Grid */
.kpi-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
    flex: 0 0 auto;
}


/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    flex: 0 0 auto;
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    box-shadow: var(--shadow-xs);
}

.chart-container .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    text-align: left;
}

.chart-container .section-header h5 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.chart-wrapper {
    height: 160px;
    position: relative;
}

/* Tables Section */
.tables-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    flex: 0 0 auto;
}

.table-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.table-panel .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
    margin-bottom: 0;
}

.table-panel .section-header h5 {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-link {
    font-size: 0.75rem;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color var(--duration-fast) var(--ease-out);
}

.section-link:hover { color: var(--brand-dark); }

.table-wrapper { max-height: 200px; overflow-y: auto; }

.dashboard-table {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: collapse;
}

.dashboard-table thead th {
    background: var(--stone-50);
    padding: 0.375rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-default);
    position: sticky;
    top: 0;
    z-index: 5;
}

.dashboard-table tbody td {
    padding: 0.375rem 0.625rem;
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-table tbody tr {
    transition: background var(--duration-fast) var(--ease-out);
}

.dashboard-table tbody tr:hover {
    background: var(--stone-50);
}

/* ============================================
   QUICK SALE CONTAINER
   ============================================ */
.quick-sale-container .quick-sale-row {
    height: calc(100vh - 150px);
    height: calc(100dvh - 150px);
    min-height: 500px;
    max-height: calc(100vh - 150px);
}

.quick-sale-container .quick-sale-row > [class*="col-"] {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quick-sale-container .card.h-100 {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.quick-sale-container .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.quick-sale-container .product-list,
.quick-sale-container .cart-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.quick-sale-container .cart-summary,
.quick-sale-container .flex-shrink-0,
.quick-sale-container .cart-sale-info,
.quick-sale-container .cart-discount-section,
.quick-sale-container .cart-action { flex-shrink: 0; }

/* ============================================
   RESPONSIVE BREAKPOINTS — Mobile-First
   Base styles = mobile (<576px)
   ============================================ */

/* === MOBILE BASE OVERRIDES (applied to all screens, mobile-first) === */
.navbar-menu { display: none; }
.navbar-user { display: none; }
.mobile-menu-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
}

.navbar-container {
    padding: 0.4rem 0.75rem;
    flex-wrap: wrap;
}

.navbar-brand { font-size: 0.9rem; margin-right: 1rem; }
.content-wrapper { padding: 0.5rem; }
.card { border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.card-body { padding: 0.5rem; }
.license-status { font-size: 0.625rem; padding: 0.2rem 0.4rem; }

.btn { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-sm { padding: 0.375rem 0.625rem; font-size: 0.8125rem; }
.form-control, .form-select { padding: 0.55rem 0.75rem; font-size: 0.875rem; }

.table { font-size: 0.8125rem; }
.table th, .table td { padding: 0.5rem; }
.table-responsive { -webkit-overflow-scrolling: touch; }

h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9375rem; }

.btn-group { flex-direction: column; width: 100%; }
.btn-group .btn { width: 100%; margin-bottom: 0.5rem; }

.modal-dialog { margin: 0.5rem; }
.modal-content { border-radius: var(--radius-md); }

.nav-tabs { flex-wrap: wrap; }
.nav-tabs .nav-link { font-size: 0.8125rem; padding: 0.5rem 0.625rem; }

.quick-sale-container .quick-sale-row { height: auto; min-height: auto; }
.quick-sale-container .quick-sale-row > [class*="col-"] { height: auto; }

/* Dashboard mobile base */
.dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.kpi-boxes {
    grid-template-columns: repeat(2, 1fr);
}

.charts-section {
    grid-template-columns: 1fr;
}

.tables-section {
    grid-template-columns: 1fr;
}

.chart-wrapper { height: 200px; min-height: 200px; }
.table-wrapper { max-height: 180px; }

/* === SM: ≥576px (Large Phone) === */
@media (min-width: 576px) {
    .navbar-container { padding: 0.5rem 1rem; }
    .navbar-brand { font-size: 0.95rem; }
    .content-wrapper { padding: 0.75rem; }
    .card { border-radius: var(--radius-md); }
    .card-body { padding: 0.75rem; }
    .license-status { font-size: 0.6875rem; padding: 0.25rem 0.625rem; }

    .kpi-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === MD: ≥768px (Tablet) === */
@media (min-width: 768px) {
    .navbar-brand { font-size: 1rem; }
    .content-wrapper { padding: 1rem; }
    .card { margin-bottom: 1rem; }
    .card-body { padding: 1rem; }

    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }

    .btn-group { flex-direction: row; width: auto; }
    .btn-group .btn { width: auto; margin-bottom: 0; }

    .modal-dialog { margin: 1.75rem auto; }
    .modal-content { border-radius: var(--radius-lg); }

    .nav-tabs { flex-wrap: nowrap; }
    .nav-tabs .nav-link { font-size: 0.875rem; padding: 0.5rem 0.75rem; }

    .dashboard-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .chart-wrapper { height: 220px; }
}

/* === LG: ≥992px (Laptop — Sidebar Mode) === */
@media (min-width: 992px) {
    .top-navbar { display: none; }
    .mobile-menu-overlay, .mobile-menu-sidebar { display: none !important; }
    .mobile-menu-toggle { display: none; }
    .navbar-user { display: flex; }

    /* S22-2 — sol boşluk menünün genişliğinden (--nav-w; bilgisayar menüsü bloğu). */
    .app-container {
        --navbar-height: 0px;
    }

    .content-wrapper {
        padding: 1.5rem;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
    }

    .card { border-radius: var(--radius-lg); }
    .card-body { padding: 1.25rem; }

    .btn { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
    .form-control, .form-select { padding: 0.625rem 0.875rem; font-size: 0.875rem; }

    .table { font-size: 0.875rem; }
    .table th, .table td { padding: 0.625rem 0.75rem; }

    .kpi-boxes {
        grid-template-columns: repeat(4, 1fr);
    }

    .charts-section {
        grid-template-columns: 1fr 1fr;
    }

    .chart-wrapper { height: 140px; }
    .table-wrapper { max-height: 170px; }

    h3 { font-size: 1.25rem; }
}

/* === XL: ≥1400px — S22-2: eski "üst menü" kipi kalktı (§35.4 onu zaten eziyordu); sol menü her genişlikte. Yalnız Panel ızgarası. === */
@media (min-width: 1400px) {
    .navbar-container { padding: 0 1.5rem; }
    .navbar-brand { font-size: 1.125rem; margin-right: 2.5rem; }

    .kpi-boxes {
        grid-template-columns: repeat(4, 1fr);
    }

    .charts-section {
        grid-template-columns: minmax(0, 65%) minmax(0, 35%);
    }

    .tables-section {
        grid-template-columns: 1fr 1fr;
    }
}

/* Compact navbar for 1400-1599px */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .navbar-menu .nav-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }
    .navbar-brand { margin-right: 1.5rem; }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .form-control, .form-select { min-height: 44px; }
    .btn-sm { min-height: 36px; }
    .table tbody tr { min-height: 44px; }
    .btn:hover, .nav-link:hover { transform: none; }
    .btn:focus, .nav-link:focus, .form-control:focus, .form-select:focus {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }
}

/* Landscape on small screens */
@media (orientation: landscape) and (max-height: 500px) {
    .navbar-container { padding: 0.4rem 1rem; }
    .content-wrapper { padding: 0.75rem; }
}

/* Safe area insets */
@supports (padding: max(0px)) {
    .mobile-menu-sidebar {
        padding-top: max(0.5rem, env(safe-area-inset-top));
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
    .content-wrapper {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
}

/* Print */
@media print {
    /* VARSAYILAN sayfa boyutu/kenarı — genel sayfalar (rapor/liste/detay) Ctrl+P'de
       cihaz varsayılanına düşmesin diye A4 + makul kenar. Bu kural yalnız bir VARSAYILAN:
       site.css <head>'de linklenir, dolayısıyla bu @page belge sırasında ÖNCE gelir.
       Satış fişi (ReceiptContent.razor) kendi @page'ini (80mm auto / A4) <body> içindeki
       inline <style> ile DAHA SONRA bildirir; eşit özgüllükte sonra-gelen kazanır →
       fiş izole yazdırılırken 80mm @page'i BU global A4'ü EZER (çakışma yok, fiş korunur).
       Detay: değişiklik notu. */
    @page { size: A4; margin: 16mm; }

    .print-only { display: block !important; }
    .no-print { display: none !important; }
    .navbar, .nav-tabs, .btn, .form-check, .card-header button { display: none !important; }
    h3 { page-break-after: avoid; }
    .table { page-break-inside: avoid; }
    .table thead { display: table-header-group !important; }
    .table tfoot { display: table-footer-group !important; }

    /* Break-inside korumasını daha küçük birimlere yay: tek bir tablo satırı, liste
       öğesi veya form-group sayfa sınırında ikiye bölünmesin. Büyük tablolar sayfaya
       sığmadığında .table'ın avoid'i etkisiz kalır; satır bazlı koruma okunabilirliği korur. */
    .table tbody tr,
    .list-group-item,
    li,
    .form-group,
    .mb-3,
    .row > [class*="col-"] {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Paragraf/blok sonunda tek satırlık öksüz/dul satır bırakma. */
    p, li, td, th, .card-body {
        orphans: 3;
        widows: 3;
    }

    .card { page-break-inside: avoid; break-inside: avoid; border: 1px solid #ddd; margin-bottom: 1rem; }
    .alert { page-break-after: avoid; border: 1px solid #ddd; }

    /* Layout container kisitlamalarini kaldir - icerik kesilmesin */
    html, body {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
    }

    .app-container {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }

    .main-content {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        display: block !important;
    }

    .content-wrapper {
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        display: block !important;
    }
}

/* ============================================
   TANITIM SAYFASI — Pages/Landing.cshtml (Gece 11, 03.11.2026)
   ============================================
   Sunucuda hazır gelen ayrı sayfa (Blazor betiği yok). Onaylı taslak: 07-Proje-Yonetimi\Gece11_Masraf_Tanitim\Tasarim_03112026\
   taslak\Tanitim.dc.html; renk ve yazı tipi :root değerlerinden (Outfit, JetBrains Mono — eskiden Plus Jakarta Sans). Kuralların hepsi
   .landing-page (body) altında: uygulamada aynı adlı sınıflar var (2026-09-12: çıplak .nav-link kuralı telefonda mobil menüyü
   gizlemişti). Sayfa kendi kaydırma kutusunda (.landing-content-wrapper; yukarıdaki body.landing-page kuralı), üst menü bu kutuda
   yapışık kalır. Sınıf adları eski sayfadan korundu (.landing-nav, .feature-card-wide, .pricing-card …): tarayıcı testleri onları okur.
   Dokunma hedefleri en az 44 px; telefonda tek sütun (ızgaralar minmax(min(…, 100%), 1fr): 320 px'te de yatay kaydırma yok).
   Gece 13b (açık iş 316, patron kararı 11.11.2026, "Tanıtım maviye geçsin"): üst menü, kahraman, öne çıkan paket ve alt bilgi gece
   lacivertinden uygulamanın kurumsal mavisine (--brand-dark → --brand) geçti; turkuaz vurgu, nokta deseni ve parıltı kaldı; "EN
   POPÜLER" rozeti beyaz. Giriş sayfaları aynı geçişi ve dokuyu css/auth.css'ten alır. Onaylı çizim: 07-Proje-Yonetimi\
   Gece13_Kilit_Gunluk\Tasarim_10112026_RenkUyumu\taslak\YolBTanitim.dc.html (tasarım notu §3). */
.landing-page {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    background: var(--bg-app);
    color: var(--stone-900);
    font-family: var(--font-display);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: hidden;
}

.landing-page .landing-content-wrapper {
    flex: 1;
    width: 100%;
    min-width: 0;
    position: relative;
    scroll-behavior: smooth;
}

.landing-page .landing-content-wrapper::-webkit-scrollbar { width: 6px; }
.landing-page .landing-content-wrapper::-webkit-scrollbar-track { background: transparent; }
.landing-page .landing-content-wrapper::-webkit-scrollbar-thumb { background: var(--stone-300); border-radius: 6px; }

.landing-page .landing-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.landing-page a:focus-visible,
.landing-page button:focus-visible { outline: 3px solid var(--brand-mid); outline-offset: 2px; }

/* Gece 13b (açık iş 316, ekran denetimi O1): mavi alanlarda (menü, kahraman, öne çıkan paket, alt bilgi) mavi halka komşu zeminle
   1,91–2,82:1 kalıyordu; beyaz halka 7,0–10,4:1. Bu alanlarda odak alan öğe yalnız bağlantı (düğme yok). "Yukarı çık" düğmesi açık
   bölümlerin üstünde de durduğu için mavi halkasını korur. :is() kullanılmadı: Gece11_LandingSourceGuardTests seçicileri virgülden
   böler, her parça .landing-page ile başlamalı. */
.landing-page .landing-nav a:focus-visible,
.landing-page .hero-section a:focus-visible,
.landing-page .pricing-card-highlight a:focus-visible,
.landing-page .landing-footer a:focus-visible { outline-color: #ffffff; }

/* Bölüm bağlantısı yapışık üst menünün altına iner. */
.landing-page section[id] { scroll-margin-top: 72px; }

/* Ortalanmış başlık ve paragraflarda son satırda tek sözcük kalmasın (destekleyen tarayıcıda). */
.landing-page .hero-title,
.landing-page .hero-description,
.landing-page .section-header h2,
.landing-page .section-header p,
.landing-page .about-description,
.landing-page .pricing-note { text-wrap: balance; }

/* ── üst menü ── */
.landing-page .landing-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(30, 58, 138, 0.92);   /* --brand-dark, %92 */
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-page .nav-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.landing-page .logo-section {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.landing-page .logo-section:hover { color: #ffffff; }
.landing-page .logo-section img { width: 28px; height: 28px; display: block; flex-shrink: 0; }

.landing-page .nav-links { display: flex; align-items: center; gap: 22px; }

.landing-page .landing-nav .nav-link {
    display: none;
    align-items: center;
    min-height: 44px;
    padding: 0;
    color: var(--stone-200);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.landing-page .landing-nav .nav-link:hover { color: #ffffff; }

.landing-page .btn-login-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.landing-page .btn-login-nav:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); color: #ffffff; }

/* ── kahraman ── */
.landing-page .hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 100%);
    color: #ffffff;
}

.landing-page .hero-background { position: absolute; inset: 0; pointer-events: none; }

.landing-page .hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.landing-page .hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(45, 212, 191, 0.14) 0%, transparent 62%);
}

.landing-page .hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 0 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.landing-page .hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.landing-page .hero-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.landing-page .hero-accent { color: #5eead4; }

.landing-page .hero-description { margin: 0; max-width: 720px; color: var(--stone-300); font-size: 17px; line-height: 1.55; }

.landing-page .hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }

.landing-page .btn-hero-primary,
.landing-page .btn-hero-secondary,
.landing-page .btn-pricing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
}

.landing-page .btn-hero-primary,
.landing-page .btn-pricing-trial { background: var(--color-success); border: 1px solid var(--color-success); color: #ffffff; }

.landing-page .btn-hero-primary:hover,
.landing-page .btn-pricing-trial:hover {
    background: color-mix(in srgb, var(--color-success) 86%, #000000);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28);
}

.landing-page .btn-hero-secondary { border: 1px solid rgba(255, 255, 255, 0.4); color: #ffffff; }
.landing-page .btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); color: #ffffff; }

.landing-page .hero-marks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--stone-200);
    font-size: 15px;
    font-weight: 500;
}

.landing-page .hero-marks li { display: inline-flex; align-items: center; gap: 8px; }
.landing-page .hero-marks i { color: #2dd4bf; }

/* ── bölüm başlıkları ── */
.landing-page .section-header { max-width: 720px; margin: 0 auto 28px; text-align: center; }

.landing-page .section-header h2 {
    margin: 0;
    color: var(--stone-900);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.landing-page .section-header p { margin: 8px 0 0; color: var(--stone-600); font-size: 17px; line-height: 1.5; }

/* ── özellikler ── */
.landing-page .features-section { padding: 56px 0 24px; }

.landing-page .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 18px;
}

.landing-page .feature-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out),
        border-color var(--duration-normal) var(--ease-out);
}

.landing-page .feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--stone-300); }

.landing-page .feature-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.landing-page .feature-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--brand-glow);
    color: var(--brand);
    font-size: 20px;
}

.landing-page .feature-badge {
    display: inline-block;
    padding: 1px 10px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-full);
    background: #eff6ff;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.landing-page .feature-card h3 { margin: 0; color: var(--stone-900); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.landing-page .feature-card p { margin: 0; color: var(--stone-600); font-size: 15px; line-height: 1.55; }

/* AcikIsler 88 — öne çıkan geniş kart (Çok Şubeli Yapı): satırın tamamı; 768 px ve üstünde görsel solda, yazı sağda. */
.landing-page .feature-card-wide {
    grid-column: 1 / -1;
    border-color: var(--brand-light);
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.landing-page .feature-card-wide:hover { border-color: var(--brand-mid); }

/* Görsel kutusu görselin kendi oranında: dar sütunda "cover" kırpması üçüncü şubeyi kesiyordu. */
.landing-page .feature-image-wrapper {
    width: 100%;
    aspect-ratio: 2048 / 1170;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--stone-50);
}

.landing-page .feature-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-page .feature-wide-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.landing-page .feature-card-wide .feature-card-head { justify-content: flex-start; }
.landing-page .feature-card-wide h3 { font-size: 22px; }
.landing-page .feature-card-wide p { font-size: 16px; }

/* ── paketler ── */
.landing-page .pricing-section { padding: 48px 0 24px; }

.landing-page .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 18px;
    align-items: start;
}

.landing-page .pricing-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--stone-200);
    border-radius: 18px;
    color: var(--stone-900);
}

.landing-page .pricing-card-highlight {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #ffffff;
    box-shadow: 0 24px 48px -18px rgba(30, 58, 138, 0.45);
}

/* Mavi kartın üstünde mavi rozet seçilmez: beyaz zemin, koyu mavi yazı. */
.landing-page .pricing-badge {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.landing-page .pricing-name { margin: 0; color: inherit; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.landing-page .pricing-tagline { margin: 2px 0 0; color: var(--stone-600); font-size: 15px; }
.landing-page .pricing-card-highlight .pricing-tagline { color: var(--stone-300); }

.landing-page .btn-pricing-outline { border: 1px solid var(--brand); background: transparent; color: var(--brand); }
.landing-page .btn-pricing-outline:hover { background: var(--brand-glow); color: var(--brand-dark); }

.landing-page .pricing-features { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.landing-page .pricing-features li { display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; }
.landing-page .pricing-features li i { flex-shrink: 0; margin-top: 2px; color: var(--color-success); }
.landing-page .pricing-card-highlight .pricing-features li i { color: #2dd4bf; }
.landing-page .pricing-features .pricing-features-lead { color: var(--stone-600); }
.landing-page .pricing-card-highlight .pricing-features .pricing-features-lead { color: var(--stone-300); }

.landing-page .pricing-note { max-width: 1000px; margin: 20px auto 0; color: var(--stone-600); font-size: 15px; line-height: 1.55; text-align: center; }

/* ── hakkımızda ── */
.landing-page .about-section { padding: 48px 0 24px; }
.landing-page .about-section .landing-wrap { max-width: 880px; }
.landing-page .about-section .section-header { margin-bottom: 14px; }
.landing-page .about-description { margin: 0; color: var(--stone-700); font-size: 17px; line-height: 1.6; text-align: center; }

/* ── iletişim ── */
.landing-page .contact-section { padding: 48px 0 64px; }

.landing-page .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 18px;
}

.landing-page .contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
}

.landing-page .contact-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--brand-glow);
    color: var(--brand);
    font-size: 18px;
}

.landing-page .contact-card h3 { margin: 0 0 2px; color: var(--stone-900); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.landing-page .contact-card p { margin: 0; color: var(--stone-600); font-size: 15px; line-height: 1.55; }

.landing-page .contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.landing-page .contact-link:hover { color: var(--brand-dark); text-decoration: underline; }
.landing-page .contact-phone { font-family: var(--font-mono); font-size: 17px; letter-spacing: 0; }
.landing-page .contact-name { margin: 0; color: var(--stone-700); font-size: 15px; font-weight: 600; }

/* ── alt bilgi ── */
.landing-page .landing-footer { background: var(--brand-dark); color: var(--stone-300); }

/* Telefonda alttaki boşluk yukarı çık düğmesi bağlantıların üstüne binmesin diye. Yatay boşluk .landing-wrap'ten gelir. */
.landing-page .footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    padding-top: 14px;
    padding-bottom: 72px;
    font-size: 14px;
}

.landing-page .footer-copy { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.landing-page .footer-copy img { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.landing-page .footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; }

.landing-page .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--stone-200);
    text-decoration: none;
}

.landing-page .footer-links a:hover { color: #ffffff; text-decoration: underline; }

/* ── yukarı çık ── */
.landing-page .scroll-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: #ffffff;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out),
        visibility 0s linear var(--duration-normal);
}

.landing-page .scroll-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.landing-page .scroll-to-top:hover { background: var(--brand-dark); }

@media (min-width: 768px) {
    .landing-page .landing-wrap { padding: 0 24px; }
    .landing-page .landing-nav .nav-link { display: inline-flex; }
    .landing-page .hero-content { padding: 72px 0 88px; }
    .landing-page .hero-description { font-size: 19px; }
    .landing-page .section-header h2 { font-size: 32px; }
    .landing-page .features-section { padding-top: 72px; }
    .landing-page .pricing-section,
    .landing-page .about-section { padding-top: 64px; }
    .landing-page .contact-section { padding: 64px 0 72px; }
    .landing-page .feature-card-wide {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 28px;
        align-items: center;
        padding: 24px;
    }
    .landing-page .footer-content { padding-bottom: 14px; }
    .landing-page .scroll-to-top { right: 24px; bottom: 24px; width: 48px; height: 48px; }
}

/* Telefonda kahraman düğmeleri tam genişlik (başparmakla kolay). */
@media (max-width: 575px) {
    .landing-page .hero-cta > a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-page .landing-content-wrapper { scroll-behavior: auto; }
    .landing-page .feature-card,
    .landing-page .scroll-to-top { transition: none; }
    .landing-page .feature-card:hover { transform: none; }
}

/* Eski tanıtım sayfasından kalan üç çıplak kural: uygulamanın başka ekranları bu sınıfları kullanıyor (.stat-label: Panel, SuperAdmin;
   .section-title: teslim penceresi, plan kartları, SuperAdmin; .footer-text: yazdırma sayfaları). Bugünkü görünüşleri değişmesin diye
   olduğu gibi kaldı; tanıtım sayfası bu sınıfları kullanmaz. */
.stat-label { font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); }

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--stone-900);
    margin-bottom: 0.75rem;
}

.footer-text { color: rgba(255, 255, 255, 0.45); font-size: 0.8125rem; }

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */
.landing-page-admin {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border-bottom: 1px solid var(--stone-200);
    flex-shrink: 0;
}

.admin-header h3 { margin: 0; font-size: 1.1rem; }

.tab-content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    background: var(--stone-50);
    min-height: 0;
}

.tab-pane {
    background: white;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width { grid-column: 1 / -1; }

.section-divider { height: 1px; background: var(--stone-200); margin: 0.75rem 0; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.landing-page-admin .tab-pane.active .cards-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 100%;
    padding-right: 0.5rem;
    align-content: start;
}

.card-item {
    background: var(--stone-50);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-xs);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header-small {
    background: var(--stone-100);
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--stone-600);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-small .btn-sm { font-size: 0.65rem; padding: 0.15rem 0.35rem; line-height: 1.2; }
.card-header-small .btn-outline-danger { border-color: var(--color-error); color: var(--color-error); }
.card-header-small .btn-outline-danger:hover { background-color: var(--color-error); border-color: var(--color-error); color: white; }

.card-body-small { padding: 0.5rem; overflow: visible; flex: 1; }
.card-body-small .form-group { margin-bottom: 0.4rem; }
.card-body-small .form-label { font-size: 0.7rem; margin-bottom: 0.2rem; }
.card-body-small .form-control-sm { font-size: 0.8rem; padding: 0.25rem 0.4rem; }
.card-body-small textarea.form-control-sm { min-height: 45px; resize: vertical; }

.img-preview {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--stone-200);
    object-fit: contain;
    background: white;
    margin-top: 0.3rem;
}

.landing-page-admin .input-group { display: flex; gap: 0.25rem; }
.landing-page-admin .input-group .form-control { flex: 1; }
.landing-page-admin .input-group .btn { flex-shrink: 0; padding: 0.25rem 0.4rem; font-size: 0.75rem; border-radius: 4px; }
.landing-page-admin .input-group .btn:hover { background-color: var(--color-error); border-color: var(--color-error); color: white; }

.upload-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    color: #0066cc;
    font-size: 0.7rem;
    font-weight: 500;
}

.upload-status i { animation: spin 1s linear infinite; }

.upload-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: #ffe6e6;
    border: 1px solid #ffb3b3;
    border-radius: 4px;
    color: #cc0000;
    font-size: 0.7rem;
    font-weight: 500;
}

.gallery-section-header { margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--stone-200); }

.admin-footer {
    padding: 0.75rem 1rem;
    background: white;
    border-top: 1px solid var(--stone-200);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.icon-selector-wrapper { width: 100%; }
.icon-selector-wrapper .input-group-text { background: var(--stone-50); border-right: none; min-width: 35px; justify-content: center; font-size: 0.9rem; padding: 0.25rem 0.4rem; }
.icon-selector-wrapper .input-group .btn { padding: 0.25rem 0.4rem; font-size: 0.75rem; }
.icon-selector-wrapper small { font-size: 0.65rem; display: block; }

/* Admin grid — mobile-first: single column base, expand on larger */
.form-grid { grid-template-columns: 1fr; }
.cards-grid { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .form-grid { grid-template-columns: repeat(3, 1fr); }
}

.landing-page-admin .tab-pane.active .cards-grid::-webkit-scrollbar { width: 8px; }
.landing-page-admin .tab-pane.active .cards-grid::-webkit-scrollbar-track { background: var(--stone-50); border-radius: 4px; }
.landing-page-admin .tab-pane.active .cards-grid::-webkit-scrollbar-thumb { background: var(--stone-300); border-radius: 4px; }
.landing-page-admin .tab-pane.active .cards-grid::-webkit-scrollbar-thumb:hover { background: var(--stone-400); }

/* ============================================
   375px KÜCÜK TELEFON DESTEĞİ (iPhone SE/8)
   ============================================ */
@media (max-width: 480px) {
    /* Detail sayfa kompakt */
    .detail-page .info-card {
        margin-bottom: 0.5rem;
    }

    .detail-page .data-card > .card-body {
        padding: 0.5rem;
    }

    /* Page toolbar stack */
    .page-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    /* Fit page düzenleri: 31.10.2026 (AcikIsler 279, bağımsız denetim) — buradaki iki kural kaldırıldı. Satırı sütun yönüne çevirip her
       sütuna "flex: 0 0 100%" veriyordu; sütun satır kadar uzayıp ikincisi ekranın sağına taşıyordu (Sipariş İadesi'nde "İade Fişi
       Oluştur", İade Detayı'nda onay paneli görünmüyordu). Bootstrap'in sütunları 768 px altında zaten alt alta dizer; telefonda kaydırma
       "TELEFONDA SAYFA KAYAR" bölümünde. */

    /* Tablo genel responsive */
    .table thead th {
        font-size: 0.6875rem;
        padding: 0.375rem 0.25rem;
        white-space: nowrap;
    }

    .table tbody td {
        font-size: 0.6875rem;
        padding: 0.375rem 0.25rem;
    }

    /* Settings satır düzeni */
    .settings-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .settings-label {
        flex: none;
        width: 100%;
    }

    .settings-input {
        flex: none;
        width: 100%;
    }

    /* Form grid tek sütun */
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Genel metin taşma koruması */
    .text-truncate-mobile {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ============================================
   G1.5 — MOBILE NOTIFICATION BADGE (kenar menüsününki bilgisayar menüsü bloğunda)
   ============================================ */
.mobile-notif-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.mobile-notif-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

/* ============================================================
   G3 (2026-09-02) — MENÜDE ARAMA
   Patron şikâyeti: "hangi menünün nerede olduğu belirgin değil".
   Gruplar korundu; arama "nerede?" sorusunu tıklamadan çözüyor.
   ============================================================ */

/* Arama kutusu — sidebar */
.nav-search {
    position: relative;
    padding: 0 0.75rem 0.5rem;
}

.nav-search input {
    width: 100%;
    padding: 0.45rem 0.6rem 0.45rem 2rem;
    font-size: 0.85rem;
    color: inherit;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    outline: none;
}

.nav-search input::placeholder { color: rgba(255, 255, 255, 0.45); }

.nav-search input:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-search .nav-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -0.25rem;
    font-size: 0.85rem;
    opacity: 0.6;
    pointer-events: none;
}

/* Eşleşmeyen öğe/grup */
.nav-search-hidden { display: none !important; }

/* Arama sırasında eşleşen grup AÇILIR — kullanıcı ayrıca tıklamasın.
   Mevcut kural `:hover` istiyordu; arama halinde hover beklenmez. Gece 14c: 1fr = grubun gerçek boyu. */
.sidebar-nav .nav-group.nav-search-open .nav-group-items,
.mobile-menu-content .nav-group.nav-search-open .nav-group-items {
    grid-template-rows: 1fr;
}

/* Arama sırasında grup başlığı daha sönük — odak sonuçlarda kalsın. */
.nav-searching .nav-group-header { opacity: 0.65; }

/* Sonuç yok satırı */
.nav-search-empty {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
    font-style: italic;
}

/* Mobil menüde arama kutusu her zaman görünür (daraltma yok). */
.mobile-menu-content .nav-search input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

.mobile-menu-content .nav-search input::placeholder { color: rgba(0, 0, 0, 0.4); }

/* ============================================================
   G1 (2026-09-02) — DASHBOARD GRAFİKLERİ
   Panel görünümü mevcut .table-panel ile bilinçli olarak aynı:
   dashboard tek bir sistem gibi okunsun, grafikler yamalı durmasın.
   ============================================================ */

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.625rem;
    flex: 0 0 auto;
    margin-bottom: 0.625rem;
}

.chart-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

.chart-panel .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
    margin-bottom: 0;
}

.chart-panel .section-header h5 { margin: 0; font-size: 0.95rem; }
.chart-panel .section-header small { font-weight: 400; font-size: 0.75rem; }

/* Sabit yükseklik: Chart.js responsive modda kapsayıcıyı sonsuz büyütebiliyor. */
.chart-canvas-wrap {
    position: relative;
    height: 220px;
    padding: 0.75rem;
}

.chart-canvas-wrap canvas { max-height: 100%; }

/* ---- Kasa durumu kartı (Pro'ya özel) ---- */
.cash-status { padding: 0.75rem 1rem; }

.cash-status-closed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
    color: var(--text-muted, #6B7488);
}

.cash-status-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.cash-status-head .badge-open {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    background: #E8F5EF;
    color: #067647;
    font-weight: 600;
}

.cash-status-rows { margin: 0; }

.cash-status-rows > div {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.cash-status-rows > div:last-child { border-bottom: none; }
.cash-status-rows dt { font-weight: 400; color: var(--text-muted, #6B7488); }
.cash-status-rows dd { margin: 0; font-variant-numeric: tabular-nums; }

.cash-status-total { font-weight: 600; }
.cash-status-total dt { color: inherit !important; }

/* ============================================================
   G2 (2026-09-02) — MARKA İŞARETİ
   .brand-icon mavi gradyanlı bir kutu; içine artık Bootstrap ikonu değil
   marka işaretinin TERS (beyaz gövdeli) SVG'si giriyor.
   ============================================================ */
.brand-icon img {
    width: 68%;
    height: 68%;
    display: block;
    /* Gradyan kutunun içinde nefes payı bıraksın; işaret kenarlara yapışmasın. */
}

/* ============================================
   TOAST BİLDİRİMLERİ (NotificationHost.razor)
   ============================================
   2026-09-03 — .hp-toast* sınıfları için hiç CSS yoktu (muhtemelen bir refactor'da
   düşmüş); sonuç: her toast tam genişlikte, sağ-alt köşede değil sayfanın en altında,
   sıradan bir <div> satırı gibi görünüyordu. Aşağıdaki blok sabit sağ-alt yığın +
   kart görünümü + giriş/çıkış animasyonu ekliyor. Fare-üstünde-duraklat davranışı
   NotificationHost.razor'daki @@onmouseenter/@@onmouseleave → NotificationService.Pause/
   Resume üzerinden C# tarafında yönetiliyor (CSS animasyonu durdurmuyor, yalnız
   otomatik-kapanma sayacı duruyor); bu yüzden .hp-toast burada animation-play-state
   OYNAMIYOR — geri sayım tamamen sunucu tarafında.

   2026-09-03 (devam) — bu blok ilk eklendiğinde sağ-altta hâlâ tam genişlikte
   çıkıyordu. SEBEP: site.css:197'deki genel Blazor sıfırlaması
   (`body > div, body > component, #app, #blazor-error-ui { width: 100% !important; ... }`)
   — sidebar padding hatasıyla (bkz. satır ~4174) AYNI KÖK NEDEN. NotificationHost
   MainLayout'ta üst seviyede durduğu için `.hp-toast-stack` de `body`'nin doğrudan
   çocuğu oluyor ve bu genel kural ona da çarpıyor. Genel kurala DOKUNULMADI (aynı
   gerekçeyle); burada yalnız `.hp-toast-stack`ın kendi hakkı `!important` ile geri
   veriliyor.

   S22-1 (30.11.2026) — o `!important` telefon kuralını da eziyordu (390'da kutu 342 piksel, sola yaslı). Yığın artık `section`
   (NotificationHost.razor): `body > div` kuralı ona çarpmıyor, `!important` kalktı. Bilgisayardaki yer ve genişlik aynı. */
.hp-toast-stack {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 360px;
    max-width: calc(100vw - 2 * var(--space-lg));
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.hp-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-left: 4px solid var(--color-info);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    animation: hp-toast-in var(--duration-normal) var(--ease-out);
}

.hp-toast-exiting {
    animation: hp-toast-out var(--duration-slow) var(--ease-in-out) forwards;
}

.hp-toast-success { border-left-color: var(--color-success); }
.hp-toast-error   { border-left-color: var(--color-error); }
.hp-toast-warning { border-left-color: var(--color-warning); }
.hp-toast-info    { border-left-color: var(--color-info); }

.hp-toast-icon {
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.hp-toast-success .hp-toast-icon { color: var(--color-success); }
.hp-toast-error   .hp-toast-icon { color: var(--color-error); }
.hp-toast-warning .hp-toast-icon { color: var(--color-warning); }
.hp-toast-info    .hp-toast-icon { color: var(--color-info); }

.hp-toast-body { flex: 1; min-width: 0; }

.hp-toast-title {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.hp-toast-message {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
    word-break: break-word;
}

/* Gece 9 (D5, onaylı taslak "Stok yetmeyince — Sipariş ver") — bildirimin eylem düğmesi (bağlantı). Telefonda dokunma hedefi en az
   40 px; zemin marka mavisi, yazı beyaz (taslaktaki #1e40af / #ffffff). */
.hp-toast-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin-top: var(--space-sm);
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 10px;
    background: var(--brand);
    color: var(--brand-text-on-dark);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.hp-toast-action:hover,
.hp-toast-action:focus-visible {
    background: var(--brand-dark);
    color: var(--brand-text-on-dark);
    text-decoration: none;
}
.hp-toast-action:focus-visible {
    outline: 3px solid rgba(30, 64, 175, 0.35);
    outline-offset: 2px;
}

.hp-toast-close {
    background: none;
    border: none;
    padding: 3px;
    margin: -3px -3px -3px 0;
    color: var(--text-tertiary);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}
.hp-toast-close:hover {
    color: var(--text-primary);
    background: var(--bg-inset);
}

@keyframes hp-toast-in {
    from { opacity: 0; transform: translateX(24px) scale(0.98); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes hp-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(16px); }
}

@media (prefers-reduced-motion: reduce) {
    .hp-toast, .hp-toast-exiting { animation: none; }
}

/* S22-1 (patron kararı 30.11.2026, soru 2 "A"; çizim MenuKabuguTelefon) — telefonda (576 pikselin altı) bildirim iki kenara 12 piksel
   boşlukla tam genişlik; sayfanın alt sabit çubuğu varsa çubuğun 9 piksel üstünde, yoksa ekranın dibinde (güvenli alan dahil). Çubuğun
   yüksekliği tek yerden: dom-helpers.js bottomBar kökte --hs-bar-h'ye yazar (çubuk yoksa ya da betik çalışmadıysa 0: dip). Arka arkaya
   gelenler üst üste dizilir, en yenisi çubuğa en yakın; yığın üst çubuğun (60 px) altında kalır, sığmazsa kendi içinde kayar. Yığının boş
   yeri dokunuşu geçirir (pointer-events none), çubuktaki düğmeler basılır. Kapatma çarpısı 44 piksel. Eski 480 kuralı (hiç çalışmıyordu) ve
   Yeni Satış'a özgü 124 piksel kuralı telefonda bunun içine girdi; 576–991 arasında Yeni Satış kuralı aşağıda kalır. */
@media (max-width: 575.98px) {
    .hp-toast-stack {
        /* Bildirimin alt kenarı: çubuğun 9 px üstü ya da dipten 12 px (güvenli alan dahil), hangisi yüksekse. Yığın 12 px iç boşluklu (kayan
           kutuda gölge kesilmesin): kutu kenarlara 0'da, bildirimler 12 px içeride; üstte 60 px'lik üst çubuk + 12 px boşluk kalır. */
        --hp-toast-bottom: max(calc(var(--hs-bar-h, 0px) + 9px), calc(12px + env(safe-area-inset-bottom, 0px)));
        left: 0;
        right: 0;
        bottom: calc(var(--hp-toast-bottom) - 12px);
        width: auto;
        max-width: none;
        max-height: calc(100dvh - var(--hp-toast-bottom) - 48px);
        padding: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .hp-toast-close {
        width: 44px;
        height: 44px;
        margin: -10px -12px -10px 0;
        justify-content: center;
    }
}

/* DZ-TS (02.12.2026, tur sonu) — bilgisayarda (576 piksel ve üstü) kayıt çubuğu (SaveBar) ekranın dibine oturmuşken bildirim çubuğun 8 piksel
   üstünde çıkar: Firma Ayarları'nda (1280 × 720) "Ayarlar başarıyla kaydedildi." çubuğun "Kaydet"ini örtüyordu. Çubuğun yüksekliği
   dom-helpers.js bottomBar'dan (--hs-bar-h; bilgisayarda yalnız .hs-savebar ölçülür; örnek: çubuk 65 px + altında 23 px sayfa boşluğu = 88 px
   → bildirimin alt kenarı dipten 96 px). Çubuk yokken, dibe oturmamışken ya da betik çalışmadıysa değişken 0: yer bugünkü gibi 24 px.
   max() desteklenmeyen tarayıcıda kural düşer, yer yine 24 px. */
@media (min-width: 576px) {
    .hp-toast-stack {
        bottom: max(var(--space-lg), calc(var(--hs-bar-h, 0px) + var(--space-sm)));
    }
}

/* AcikIsler 220 (24.10.2026; 21.10 kullanım denetimi D10) — Yeni Satış'ın sabit "Satış Yap" çubuğu (.ns-mobilebar, 992 px altında görünür)
   varken bildirimler çubuğun üstünde açılır; 5–6 sn çubuğu ve "Satış Yap"ı örtüyordu. Çubuk sebepsiz ~83 px, bir satır sebeple 99 px (Pixel 7
   ölçümü), sebep en çok iki satır (~115 px; Create.razor.css). S22-1: telefonda (576 altı) ölçülen --hs-bar-h geçerli; bu kural 576–991. */
@media (min-width: 576px) and (max-width: 991.98px) {
    body:has(.ns-mobilebar) .hp-toast-stack {
        bottom: calc(124px + env(safe-area-inset-bottom, 0px));
    }
}

/* ============================================================
   Ş-8 (2026-09-23) — ŞUBELER ARASI TRANSFER
   Bootstrap 5.1'de -subtle / -emphasis / fw-semibold sınıfları YOK; transfer ekranlarının
   ihtiyaç duyduğu birkaç görsel burada, trf- önekiyle.
   ============================================================ */
.trf-yon {
    display: inline-block;
    padding: 0.2em 0.55em;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.trf-yon-gelen { background: #dbeafe; color: #1e3a8a; }
.trf-yon-giden { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }

.trf-yolda { font-weight: 600; color: #b45309; }
.trf-sifir { color: #94a3b8; }

.trf-akis { list-style: none; margin: 0; padding: 0; }
.trf-akis li {
    position: relative;
    padding: 0 0 0.9rem 1.4rem;
    border-left: 2px solid #e2e8f0;
    margin-left: 0.4rem;
}
.trf-akis li:last-child { border-left-color: transparent; padding-bottom: 0; }
.trf-akis li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand-mid, #3b82f6);
}
.trf-akis li.trf-akis-uyari::before { border-color: #dc2626; }
.trf-akis li.trf-akis-tamam::before { border-color: #16a34a; }

.trf-ozet-kutu {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    min-width: 120px;
}
.trf-ozet-kutu .trf-ozet-deger { font-size: 1.25rem; font-weight: 700; }

.trf-bekleyen-serit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.6rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #78350f;
    text-decoration: none;
}
.trf-bekleyen-serit:hover { background: #fef3c7; color: #78350f; }
.trf-bekleyen-serit .bi { font-size: 1.4rem; }

.trf-dagilim { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trf-dagilim-kutu {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    background: #fff;
}
.trf-dagilim-kutu.trf-dagilim-yolda { border-color: #fcd34d; background: #fffbeb; }
.trf-dagilim-kutu strong { font-size: 0.95rem; }

/* =====================================================================
   AcikIsler 153 (05.10.2026, patron kararı: Öneri A) — SOL MENÜ GÖRÜNÜŞÜ
   Tasarım: https://claude.ai/artifact/MvXsN8eNWbxqFqeUuqbCSQ · plan 07-Proje-Yonetimi\Menu_Duzenleme_Plani_05102026.md
   - Üst düzey satırlar ve grup başlıkları renkli ikon rozeti taşır (nav-chip); grup içi satırlar düz ikon (nav-icon).
   - Grup başlığı belirgin: büyük harf, kalın, sayfa sayısı (nav-group-count). Açık grubun satırları koyu bir zemin içinde.
   - Açık sayfanın grubu açık gelir (NavGroup) ve rozeti halkalanır (has-active); seçili satırda soldan mavi çizgi.
   - S22-2 (30.11.2026): kenar menüsünün (koyu) kuralları "BİLGİSAYAR MENÜSÜ" bloğunda; burada rozet renkleri, ortak rozet ve telefon
     çekmecesinin görünüşü kaldı.
   ===================================================================== */

/* Rozet renkleri — ikon rengi ve koyu zemin (kenar menü), koyu ikon ve açık zemin (telefon çekmecesi). */
.nav-hue-neutral   { --nav-hue: #93c5fd; --nav-hue-bg: rgba(147, 197, 253, 0.14); --nav-hue-ink: #1d4ed8; --nav-hue-soft: #dbeafe; }
.nav-hue-quick     { --nav-hue: #fbbf24; --nav-hue-bg: rgba(251, 191, 36, 0.18);  --nav-hue-ink: #b45309; --nav-hue-soft: #fef3c7; }
.nav-hue-sales     { --nav-hue: #4ade80; --nav-hue-bg: rgba(74, 222, 128, 0.15);  --nav-hue-ink: #15803d; --nav-hue-soft: #dcfce7; }
.nav-hue-purchases { --nav-hue: #fdba74; --nav-hue-bg: rgba(251, 146, 60, 0.18);  --nav-hue-ink: #c2410c; --nav-hue-soft: #ffedd5; }
.nav-hue-stock     { --nav-hue: #7dd3fc; --nav-hue-bg: rgba(56, 189, 248, 0.16);  --nav-hue-ink: #0369a1; --nav-hue-soft: #e0f2fe; }
.nav-hue-accounts  { --nav-hue: #c4b5fd; --nav-hue-bg: rgba(167, 139, 250, 0.19); --nav-hue-ink: #6d28d9; --nav-hue-soft: #ede9fe; }
.nav-hue-finance   { --nav-hue: #5eead4; --nav-hue-bg: rgba(45, 212, 191, 0.16);  --nav-hue-ink: #0f766e; --nav-hue-soft: #ccfbf1; }
.nav-hue-admin     { --nav-hue: #cbd5e1; --nav-hue-bg: rgba(203, 213, 225, 0.14); --nav-hue-ink: #475569; --nav-hue-soft: #f1f5f9; }

.nav-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 7px;
    background: var(--nav-hue-bg);
    color: var(--nav-hue);
}

.nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 18px;
    min-width: 18px;
}

.nav-spacer { height: 0.5rem; }

/* --- Telefon çekmecesi (açık zemin) --- */
.mobile-menu-content .nav-chip {
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin-right: 0;
    border-radius: 8px;
    background: var(--nav-hue-soft);
    color: var(--nav-hue-ink);
}

.mobile-menu-content .nav-link .nav-chip i,
.mobile-menu-content .nav-group-header .nav-chip i {
    width: auto;
    font-size: 0.95rem;
    color: inherit;
}

.mobile-menu-content .nav-icon { margin-right: 0; color: var(--text-tertiary); }
.mobile-menu-content .nav-link .nav-icon i { width: auto; font-size: 1rem; color: inherit; }

/* Üst düzey satır: dokunma alanı ≥ 44 px. */
.mobile-menu-content .nav-link.nav-top,
.mobile-menu-content .nav-link.nav-top:hover {
    min-height: 48px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}

.mobile-menu-content .nav-link.nav-top.mobile-quicksale { color: #b45309 !important; }

.mobile-menu-content .nav-group-header,
.mobile-menu-content .nav-group-header:hover {
    min-height: 48px;
    margin-top: 0;
    padding: 0.5rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.mobile-menu-content .nav-group.open > .nav-group-header { background: var(--stone-100); }
.mobile-menu-content .nav-group-label { text-align: left; }
.mobile-menu-content .nav-group.has-active > .nav-group-header .nav-chip { box-shadow: 0 0 0 1.5px var(--nav-hue-ink); }

.mobile-menu-content .nav-group-count {
    flex: none;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--stone-100);
    color: var(--stone-600);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
}

.mobile-menu-content .nav-group.open .nav-group-count { background: #fff; }
.mobile-menu-content .nav-group-items { background: var(--stone-50); }

/* Grup içi satırın ikonu başlık rozetinin hizasında (1,25 rem + 15 px merkez). */
.mobile-menu-content .nav-group-items .nav-link,
.mobile-menu-content .nav-group-items .nav-link:hover {
    min-height: 44px;
    padding: 0.5rem 1.25rem 0.5rem 1.625rem;
    font-weight: 500;
}

.mobile-menu-content .nav-group-items .nav-link.active .nav-icon { color: var(--brand); }

.nav-searching .nav-divider { display: none; }

.mobile-menu-content .nav-divider {
    height: 1px;
    margin: 0.25rem 1.25rem;
    background: var(--border-default);
}

/* =====================================================================
   S22-2 (30.11.2026; patron kararı; çizim taslak\MenuKabugu.dc.html) — BİLGİSAYAR MENÜSÜ (992 px ve üstü), TEK BLOK
   Eskiden üç katman üst üste yazılmıştı (992–1399 şeridi, §35.4 1200 üstü, G1.1 daraltma ve üstüne gelince açılma, sabitleme düzeltmeleri,
   AcikIsler 153 görünüşü); hepsi burada toplandı. Değişenler:
   • İki hâl, 992 piksel ve üstünde aynı: açık (--nav-w-open, 256 px; sayfa menünün yanında) ve daraltılmış şerit (--nav-w-rail, 88 px; her
     simgenin altında kısa ad). Kullanılan genişlik .app-container'daki --nav-w; menünün genişliği ve sayfa kabının sol boşluğu ondan okunur.
   • Menü fare üstüne gelince AÇILMAZ (üstüne gelince genişleme kuralları kalktı). Şeritte gruba basınca yanında o grubun panosu açılır
     (NavGroup; satırlar aynı öğeler, ekrana sabit konumlu: kayan listenin kırpmasına girmez). Yeri dom-helpers.js navRail.place ölçer.
   • İğne yerine "Daralt" (açık hâlde firma adının sağında, ada binmez) ve "Genişlet" (şeridin en altında). Durum sidebar-collapsed anahtarında.
   • Alt bölüm hep görünür, liste kendi içinde kayar: şube seçici ("Çalışılan şube" başlıklı, uzun ad iki satır), kullanıcı (ad ve rol) ve
     yanında "Çıkış". Şeritte alt alta, açılan listeler şeridin yanında.
   Katman: menü 1000 (sayfanın üstünde; pencereler 1055 ve bildirim yığını 2000 altında). Panolar ve listeler menünün katmanında.
   ===================================================================== */

/* Telefonda (992 altı) sol menü yok: üst çubuk ve çekmece (MOBILE MENU bloğu). */
.sidebar-nav { display: none; }

/* Grup satırlarının kutusu (Gece 14c): ızgara 0fr ↔ 1fr (grubun gerçek boyu); iç kutu 0'a iner ve taşanı kırpar. Açık grubun satırları
   koyu zeminde; üst ve alt pay iç kutuda (dış kutuda ayrı ızgara satırı olurdu, kapalı grup 0'a inmezdi). */
.sidebar-nav .nav-group-items {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.2s var(--ease-out), margin 0.2s var(--ease-out);
    border-radius: 10px;
    background: rgba(9, 20, 60, 0.40);
}

.sidebar-nav .nav-group-items-inner,
.mobile-menu-content .nav-group-items-inner {
    min-height: 0;
    overflow: hidden;
}

.sidebar-nav .nav-group-items-inner::before,
.sidebar-nav .nav-group-items-inner::after {
    content: '';
    display: block;
    height: 4px;
}

/* Rozet (Bildirimler, Şube Transferleri; şeritte grubun toplamı): simgenin köşesinde. */
.sidebar-notif-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-notif-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    letter-spacing: 0;
    box-shadow: 0 0 0 2px var(--brand-dark);
    pointer-events: none;
}

.sidebar-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-mid), var(--brand));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.nav-rail-label,
.nav-fly-head,
.nav-fly-backdrop { display: none; }

@media (min-width: 992px) {
    /* --- Genişlik: tek değişken. Sayfa kabının sol boşluğu menünün genişliği (genel "body > div" sıfırlamasının !important'ını yalnız burada
       ezer; eski iki sabitleme kuralının yerine). Hızlı Satış'ın 992–1023 arasındaki sabit alt çubuğu da menünün yanından başlar. --- */
    .app-container { --nav-w: var(--nav-w-rail); }
    .app-container:has(.sidebar-nav:not(.collapsed)) { --nav-w: var(--nav-w-open); }

    .app-container:has(.sidebar-nav) {
        padding-left: var(--nav-w) !important;
        transition: padding-left 180ms var(--ease-out);
    }

    .sidebar-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        width: var(--nav-w);
        background: var(--brand-dark);
        color: #fff;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        overflow: hidden;
        transition: width 180ms var(--ease-out);
    }

    /* --- Marka: işaret 36 px; açık hâlde firma adı iki satıra sarar, "Daralt" düğmesi adın yanında (üstüne binmez). --- */
    .sidebar-brand {
        flex: none;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 64px;
        padding: 14px 12px 12px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }

    .sidebar-brand a {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }

    .sidebar-brand a:hover { color: #fff; }

    .sidebar-nav .brand-icon {
        flex: none;
        width: 36px;
        height: 36px;
    }

    .sidebar-brand .sidebar-text {
        min-width: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: break-word;
    }

    .sidebar-brand .sidebar-collapse-toggle {
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.86);
        font-size: 1rem;
        cursor: pointer;
    }

    .sidebar-brand .sidebar-collapse-toggle:hover,
    .sidebar-brand .sidebar-collapse-toggle:focus-visible { background: rgba(255, 255, 255, 0.14); color: #fff; }

    /* --- Liste: kendi içinde kayar; alt bölüm hep görünür. --- */
    .sidebar-menu {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 8px 0 10px;
        scrollbar-width: thin;
    }

    .sidebar-menu::-webkit-scrollbar { width: 4px; }
    .sidebar-menu::-webkit-scrollbar-track { background: transparent; }
    .sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }

    .sidebar-nav .nav-search { padding: 2px 12px 8px; }

    /* --- Satırlar --- */
    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 8px 12px;
        border: 0;
        background: none;
        color: rgba(255, 255, 255, 0.84);
        font-size: 0.8125rem;
        font-weight: 500;
        text-align: left;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
    }

    .sidebar-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

    .sidebar-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-nav .nav-chip i {
        min-width: 0;
        font-size: 0.875rem;
        line-height: 1;
        color: inherit;
    }

    .sidebar-nav .nav-icon { color: rgba(255, 255, 255, 0.55); }

    .sidebar-nav .nav-icon i {
        min-width: 0;
        font-size: 0.95rem;
        line-height: 1;
    }

    /* Üst düzey satır (Panel, Hızlı Satış, Raporlar, Bildirimler). */
    .sidebar-nav .sidebar-link.nav-top {
        width: calc(100% - 16px);
        min-height: 40px;
        margin: 1px 8px;
        padding: 0 10px 0 12px;
        border-radius: 10px;
        font-size: 0.84rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
    }

    .sidebar-nav .sidebar-link.nav-top:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
    .sidebar-nav .sidebar-link.nav-top.active { background: rgba(96, 165, 250, 0.22); color: #fff; }
    .sidebar-nav .sidebar-link.nav-top.sidebar-quicksale { color: #fcd34d; }
    .sidebar-nav .sidebar-link.nav-top.sidebar-quicksale:hover { background: rgba(251, 191, 36, 0.10); }

    /* Grup başlığı: büyük harf, kalın, görünen sayfa sayısı; açık sayfanın grubunun rozeti halkalı. */
    .sidebar-nav .nav-group { margin: 2px 8px; }

    .sidebar-nav .nav-group-header {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 40px;
        padding: 0 10px 0 12px;
        border: 0;
        border-radius: 10px;
        background: none;
        color: rgba(255, 255, 255, 0.84);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
    }

    .sidebar-nav .nav-group-header:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
    .sidebar-nav .nav-group.open > .nav-group-header { background: rgba(255, 255, 255, 0.09); color: #fff; }
    .sidebar-nav .nav-group.has-active > .nav-group-header .nav-chip { box-shadow: 0 0 0 1.5px var(--nav-hue); }

    .sidebar-nav .nav-group-label {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-align: left;
        text-overflow: ellipsis;
    }

    .sidebar-nav .nav-group-count {
        flex: none;
        padding: 0.1875rem 0.4375rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.6875rem;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0;
    }

    .sidebar-nav .nav-group-chevron {
        flex: none;
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.7rem;
        transition: transform 0.25s var(--ease-out);
    }

    .sidebar-nav .nav-group.open .nav-group-chevron { transform: rotate(-180deg); }

    /* Açık menüde açık grup yerinde açılır. */
    .sidebar-nav:not(.collapsed) .nav-group.open .nav-group-items {
        grid-template-rows: 1fr;
        margin: 4px 0 6px;
    }

    .sidebar-nav .nav-group-items .sidebar-link {
        width: calc(100% - 8px);
        min-height: 34px;
        margin: 0 4px;
        padding: 0 10px;
        border-radius: 7px;
        font-size: 0.8125rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.84);
    }

    .sidebar-nav .nav-group-items .sidebar-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

    .sidebar-nav .nav-group-items .sidebar-link.active {
        background: rgba(59, 130, 246, 0.34);
        color: #fff;
        font-weight: 600;
        box-shadow: inset 3px 0 0 #60a5fa;
    }

    .sidebar-nav .nav-group-items .sidebar-link.active .nav-icon { color: #bfdbfe; }

    .sidebar-nav .nav-divider {
        height: 1px;
        margin: 4px 10px;
        background: rgba(255, 255, 255, 0.09);
    }

    /* --- Alt bölüm: ızgara. Seçiciler ve kilit tam satır; kullanıcı ve "Çıkış" yan yana. --- */
    .sidebar-footer {
        flex: none;
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 4px;
        padding: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }

    .sidebar-footer > * { grid-column: 1 / -1; }
    .sidebar-footer > .hp-lock-user,
    .sidebar-footer > .user-info { grid-column: 1; }
    .sidebar-footer > .logout { grid-column: 2; }

    .sidebar-footer .sidebar-link {
        min-height: 44px;
        padding: 4px 8px;
        border-radius: var(--radius-sm);
        color: rgba(255, 255, 255, 0.86);
    }

    .sidebar-footer .sidebar-link > i {
        flex: none;
        width: 28px;
        font-size: 1.05rem;
        text-align: center;
    }

    .sidebar-footer .logout {
        width: auto;
        padding: 4px 10px;
        color: #fecaca;
    }

    .sidebar-footer .logout:hover { background: rgba(220, 38, 38, 0.18); color: #fee2e2; }

    /* Kullanıcı: ad (uzun ad sözcükten sarar) ve altında rol. */
    .sidebar-footer .hp-lock-user-text {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        line-height: 1.25;
        white-space: normal;
    }

    .sidebar-footer .hp-lock-user-label {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        overflow-wrap: break-word;
    }

    .sidebar-footer .hp-lock-user-caption {
        overflow: hidden;
        color: rgba(255, 255, 255, 0.72);
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Firma ve şube seçici: açık hâlde tam genişlik; şubede "Çalışılan şube" başlığı ve iki satıra kadar ad. Liste yukarı açılır. */
    .branch-switcher-sidebar,
    .tenant-switcher-sidebar {
        width: 100%;
        margin: 0 0 4px;
        padding: 0;
    }

    .branch-switcher-sidebar .branch-switcher-btn,
    .tenant-switcher-sidebar .tenant-switcher-btn {
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
        padding: 4px 10px;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.18);
        text-align: left;
    }

    .branch-switcher-sidebar .branch-switcher-text { flex: 1 1 auto; }

    .branch-switcher-sidebar .branch-switcher-caption {
        display: block;
        color: rgba(255, 255, 255, 0.72);
        font-size: 12px;
        font-weight: 400;
        line-height: 1.2;
    }

    .branch-switcher-sidebar .branch-switcher-current {
        display: -webkit-box;
        max-width: none;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .tenant-switcher-sidebar .tenant-switcher-current {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .branch-switcher-sidebar .branch-switcher-dropdown,
    .tenant-switcher-sidebar .tenant-switcher-dropdown {
        top: auto;
        right: auto;
        bottom: calc(100% + 6px);
        left: 0;
    }

    /* ----------------------------------------------------------------
       Daraltılmış şerit (88 px). Simgenin altında kısa ad (12 px); etkin sayfa ve açık sayfanın grubu halkalı; rozet simgenin köşesinde.
       Şerit taşanı kırpmaz: kullanıcı menüsü ve seçicilerin listesi şeridin yanında açılır.
       ---------------------------------------------------------------- */
    .sidebar-nav.collapsed { overflow: visible; }

    .sidebar-nav.collapsed .sidebar-brand {
        justify-content: center;
        padding: 14px 0 12px;
    }

    .sidebar-nav.collapsed .sidebar-brand a { flex: none; }

    .sidebar-nav.collapsed .sidebar-text,
    .sidebar-nav.collapsed .nav-search,
    .sidebar-nav.collapsed .nav-search-empty,
    .sidebar-nav.collapsed .nav-group-label,
    .sidebar-nav.collapsed .nav-group-count,
    .sidebar-nav.collapsed .nav-group-chevron { display: none; }

    .sidebar-nav.collapsed .sidebar-menu { padding: 6px 0 10px; }
    .sidebar-nav.collapsed .nav-spacer { height: 6px; }
    .sidebar-nav.collapsed .nav-group { margin: 1px 6px; }

    .sidebar-nav.collapsed .sidebar-link.nav-top,
    .sidebar-nav.collapsed .nav-group-header,
    .sidebar-nav.collapsed .sidebar-footer .sidebar-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 48px;
        padding: 3px 2px;
        border-radius: var(--radius-sm);
        letter-spacing: 0;
        text-align: center;
        text-transform: none;
    }

    .sidebar-nav.collapsed .sidebar-link.nav-top {
        width: calc(100% - 12px);
        margin: 1px 6px;
    }

    .sidebar-nav.collapsed .nav-rail-label,
    .sidebar-nav.collapsed .sidebar-footer .sidebar-text {
        display: block;
        max-width: 100%;
        overflow: hidden;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-nav.collapsed .nav-chip {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .sidebar-nav.collapsed .sidebar-link.nav-top.active .nav-chip,
    .sidebar-nav.collapsed .nav-group.has-active > .nav-group-header .nav-chip { box-shadow: 0 0 0 2px var(--brand-dark), 0 0 0 4px var(--nav-hue); }

    .sidebar-nav.collapsed .nav-group.open > .nav-group-header { background: none; }
    .sidebar-nav.collapsed .nav-group-header:hover { background: rgba(255, 255, 255, 0.07); }
    .sidebar-nav.collapsed .nav-group.nav-fly-open > .nav-group-header { background: rgba(255, 255, 255, 0.12); color: #fff; }

    /* Şeritte grup yerinde açılmaz (açık menüde açık bırakılmış olsa da, menü araması işaretlemiş olsa da). */
    .sidebar-nav.collapsed .nav-group:not(.nav-fly-open) .nav-group-items { grid-template-rows: 0fr; }

    /* DZ-S22-2 — şeritte grup satırlarının geçişi yok: pano kapanırken satırlar 0,2 saniye şeridin içinde görünüp alttaki simgeleri itiyordu
       (ölçüm: Yönetim simgesi 496 → 562 → 496). Açık menüdeki aç-kapa geçişi değişmedi. */
    .sidebar-nav.collapsed .nav-group-items { transition: none; }

    /* Şeridin alt bölümü: alt alta, tek sütun. Şube (kısa ad), kilit, kullanıcı (baş harf ve kısa ad), Çıkış, Genişlet. */
    .sidebar-nav.collapsed .sidebar-footer {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        padding: 6px;
    }

    .sidebar-nav.collapsed .sidebar-footer > * { grid-column: 1; }
    .sidebar-nav.collapsed .sidebar-footer .logout { width: 100%; }
    .sidebar-nav.collapsed .sidebar-footer .hp-lock-sidebar-lock .sidebar-text,
    .sidebar-nav.collapsed .sidebar-footer .hp-lock-user-caption { display: none; }
    .sidebar-nav.collapsed .sidebar-footer .hp-lock-user-label { font-size: 12px; white-space: nowrap; }
    .sidebar-nav.collapsed .sidebar-avatar { width: 28px; height: 28px; font-size: 0.7rem; }

    .sidebar-nav.collapsed .branch-switcher-sidebar .branch-switcher-btn,
    .sidebar-nav.collapsed .tenant-switcher-sidebar .tenant-switcher-btn {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        min-height: 48px;
        padding: 3px 2px;
        background: transparent;
        border-color: transparent;
    }

    .sidebar-nav.collapsed .branch-switcher-sidebar .branch-switcher-btn:hover,
    .sidebar-nav.collapsed .tenant-switcher-sidebar .tenant-switcher-btn:hover { background: rgba(255, 255, 255, 0.07); }

    .sidebar-nav.collapsed .branch-switcher-sidebar .branch-switcher-caption,
    .sidebar-nav.collapsed .branch-switcher-sidebar .bi-chevron-down,
    .sidebar-nav.collapsed .tenant-switcher-sidebar .bi-chevron-down { display: none; }

    .sidebar-nav.collapsed .branch-switcher-sidebar .branch-switcher-text {
        width: 100%;
        align-items: center;
    }

    .sidebar-nav.collapsed .branch-switcher-sidebar .branch-switcher-current,
    .sidebar-nav.collapsed .tenant-switcher-sidebar .tenant-switcher-current {
        display: block;
        max-width: 100%;
        overflow: hidden;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-nav.collapsed .branch-switcher-sidebar .branch-switcher-dropdown,
    .sidebar-nav.collapsed .tenant-switcher-sidebar .tenant-switcher-dropdown {
        top: auto;
        right: auto;
        bottom: 0;
        left: calc(100% + 8px);
    }

    .sidebar-nav.collapsed .hp-lock-user-menu {
        right: auto;
        bottom: 0;
        left: calc(100% + 8px);
        width: 260px;
    }

    /* --- Şeritte grubun panosu: şeridin yanında, başlığın hizasında (dom-helpers.js navRail.place); ekranın altından taşmaz, sığmazsa kendi
       içinde kayar. Dışarı basınca (saydam örtü; şeridin kendisi tıklanabilir kalır), Escape ile ve bir satıra gidince kapanır. --- */
    .sidebar-nav.collapsed .nav-fly-backdrop {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: var(--nav-w-rail);
        z-index: 1;
        background: transparent;
    }

    .sidebar-nav.collapsed .nav-group.nav-fly-open > .nav-group-items {
        position: fixed;
        top: var(--nav-fly-top, 72px);
        left: calc(var(--nav-w-rail) + 8px);
        z-index: 2;
        width: 260px;
        max-block-size: var(--nav-fly-max, calc(100dvh - 16px));
        margin: 0;
        padding: 6px;
        overflow-y: auto;
        overscroll-behavior: contain;
        grid-template-rows: 1fr;
        background: var(--bg-card);
        color: var(--text-primary);
        border: 1px solid var(--border-default);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-xl);
        transition: none;
    }

    .sidebar-nav.collapsed .nav-fly-open .nav-group-items-inner { overflow: visible; }

    .sidebar-nav.collapsed .nav-fly-open .nav-group-items-inner::before,
    .sidebar-nav.collapsed .nav-fly-open .nav-group-items-inner::after { display: none; }

    .sidebar-nav.collapsed .nav-fly-open .nav-fly-head {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
        padding: 6px 8px 8px;
        border-bottom: 1px solid var(--border-subtle);
        color: var(--stone-700);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.06em;
    }

    .sidebar-nav.collapsed .nav-fly-head .nav-chip {
        width: 26px;
        height: 26px;
        min-width: 26px;
        background: var(--nav-hue-soft);
        color: var(--nav-hue-ink);
        box-shadow: none;
    }

    .sidebar-nav.collapsed .nav-fly-open .nav-group-items .sidebar-link {
        width: 100%;
        min-height: 40px;
        margin: 0;
        padding: 6px 10px;
        border-radius: var(--radius-sm);
        color: var(--text-primary);
        font-size: 14px;
        font-weight: 500;
        white-space: normal;
    }

    .sidebar-nav.collapsed .nav-fly-open .nav-group-items .sidebar-link:hover,
    .sidebar-nav.collapsed .nav-fly-open .nav-group-items .sidebar-link:focus-visible { background: var(--stone-100); color: var(--text-primary); }

    .sidebar-nav.collapsed .nav-fly-open .nav-group-items .sidebar-link.active {
        background: var(--brand-glow);
        color: var(--brand-dark);
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--brand);
    }

    .sidebar-nav.collapsed .nav-fly-open .sidebar-text {
        display: inline;
        overflow: visible;
    }

    .sidebar-nav.collapsed .nav-fly-open .nav-icon { color: var(--stone-400); }
    .sidebar-nav.collapsed .nav-fly-open .sidebar-link.active .nav-icon { color: var(--brand); }
    .sidebar-nav.collapsed .nav-fly-open .sidebar-notif-badge { box-shadow: 0 0 0 2px var(--bg-card); }

    .sidebar-nav.collapsed .nav-fly-open .nav-divider {
        margin: 4px 6px;
        background: var(--border-subtle);
    }
}

/* DZ-S22-2 — şeridin yükseklik basamakları. Tam yetkili Pro sahibinin şeridi (10 öğe + şube, kullanıcı, Çıkış, Genişlet) 768 piksel yükseklikte
   kaydırma çubuğu olmadan sığar: yükseklik kısaldıkça öğe, boşluk ve alt bölüm sıkışır; kısa ad 12 piksel kalır. Daha kısa ekranda (≈ 700 altı)
   liste kendi içinde ince çubukla kayar, alt bölüm yerinde kalır. Açık (256 px) menü değişmez. */
@media (min-width: 992px) and (max-height: 879.98px) {
    .sidebar-nav.collapsed .sidebar-brand { min-height: 56px; padding: 10px 0 8px; }
    .sidebar-nav.collapsed .sidebar-menu { padding: 4px 0 6px; }
    .sidebar-nav.collapsed .nav-spacer { height: 4px; }

    .sidebar-nav.collapsed .sidebar-link.nav-top,
    .sidebar-nav.collapsed .nav-group-header,
    .sidebar-nav.collapsed .sidebar-footer .sidebar-link,
    .sidebar-nav.collapsed .branch-switcher-sidebar .branch-switcher-btn,
    .sidebar-nav.collapsed .tenant-switcher-sidebar .tenant-switcher-btn { min-height: 44px; padding: 2px; gap: 1px; }

    .sidebar-nav.collapsed .sidebar-footer { padding: 4px 6px; gap: 1px; }
}

@media (min-width: 992px) and (max-height: 799.98px) {
    .sidebar-nav.collapsed .sidebar-brand { min-height: 52px; padding: 8px 0 6px; }
    .sidebar-nav.collapsed .brand-icon { width: 32px; height: 32px; }

    .sidebar-nav.collapsed .sidebar-link.nav-top,
    .sidebar-nav.collapsed .nav-group-header,
    .sidebar-nav.collapsed .sidebar-footer .sidebar-link,
    .sidebar-nav.collapsed .branch-switcher-sidebar .branch-switcher-btn,
    .sidebar-nav.collapsed .tenant-switcher-sidebar .tenant-switcher-btn { min-height: 42px; }

    .sidebar-nav.collapsed .nav-chip { width: 26px; height: 26px; min-width: 26px; }
    .sidebar-nav.collapsed .sidebar-avatar { width: 26px; height: 26px; }
    .sidebar-nav.collapsed .nav-rail-label,
    .sidebar-nav.collapsed .sidebar-footer .sidebar-text,
    .sidebar-nav.collapsed .branch-switcher-sidebar .branch-switcher-current,
    .sidebar-nav.collapsed .tenant-switcher-sidebar .tenant-switcher-current { line-height: 1.15; }
}

/* DZ-S22-2 — 992–1199 arasında menü hep şerit (NavMenu genişliği tarayıcıdan okur ve "Genişlet"i çizmez); betik yetişmeden önceki ilk çizimde
   de düğme görünmesin. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .sidebar-nav .sidebar-expand { display: none; }
}

/* Hızlı Satış 992–1023 arasında alt çubuğunu ekrana sabitliyor (QuickSale.razor.css, left: 0): menünün altında kalmasın. */
@media (min-width: 992px) and (max-width: 1023.98px) {
    body.quicksale-page .cart-actions { left: var(--nav-w); }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-nav,
    .app-container:has(.sidebar-nav) { transition: none; }
}

/* Gece 14c (13.11, açık iş 338): hareketin azaltılmasını isteyen kullanıcıda menü grubu geçişsiz açılır ve kapanır. */
@media (prefers-reduced-motion: reduce) {
    .sidebar-nav .nav-group-items,
    .mobile-menu-content .nav-group-items {
        transition: none;
    }
}
