/* ==========================================================================
   app_theme.css — 2EKSPER Kurumsal Tasarım Sistemi
   --------------------------------------------------------------------------
   Açık (light) kurumsal tema. Lacivert kimlik + kehribar vurgu; ekspertiz
   raporunun (rapor.php) ve rapor formunun (form.php) diliyle aynı ailede.

   Bu dosya SADECE sayfaların kendi <head> bloğundan yüklenir. Üst menü
   stilleri app_shell.css içindedir (dokunulmayan form.php'yi bozmamak için).

   İçindekiler
     01 Tasarım belirteçleri (tokens)
     02 Temel (reset / tipografi)
     03 Sayfa iskeleti
     04 Kartlar
     05 KPI / istatistik
     06 Butonlar
     07 Form denetimleri
     08 Tablolar
     09 Rozetler, plaka, durum
     10 Bildirim kutuları
     11 Boş durum / hata
     12 Sayfalama
     13 Modal
     14 Detay & finans blokları
     15 Galeri / fotoğraf
     16 Profil
     17 Kimlik sayfaları (giriş / kayıt)
     18 Duyarlılık (responsive) & yazdırma
   ========================================================================== */

/* Yazı tipi <link> ile yüklenir (partials/ust.php ve kimlik sayfaları).
   @import burada kullanılmaz: render'ı bloklar ve dinamik font seçimini engeller. */

/* ── 01 · Tasarım belirteçleri ─────────────────────────────────────────── */
/* Aşağıdakiler VARSAYILANLARDIR. Oturum açıldığında lib/tema.php bu
   değişkenleri firmanın kendi temasıyla ezer (bkz. tema.php sayfası). */
:root {
    /* Marka — ayarlar sayfasından gelen renklerle header.php tarafından ezilir */
    --brand:          #0b1d3a;
    --brand-600:      #14314f;
    --brand-050:      #eef2f8;
    --accent:         #f5a524;
    --accent-050:     #fff6e6;

    /* Anlamsal renkler */
    --primary:        #0b1d3a;
    --primary-hover:  #14314f;
    --primary-soft:   #eef2f8;
    --info:           #1d4ed8;
    --info-soft:      #eff4ff;
    --success:        #0f9d63;
    --success-soft:   #e8f7f0;
    --warning:        #c2790b;
    --warning-soft:   #fff5e3;
    --danger:         #d92d20;
    --danger-soft:    #fef1f0;

    /* Yüzeyler */
    --bg:             #f5f7fa;
    --surface:        #ffffff;
    --surface-2:      #f8fafc;
    --surface-3:      #f1f5f9;

    /* Metin */
    --text-dark:      #0f2038;
    --text-body:      #334155;
    --text-muted:     #6b7c93;
    --text-faint:     #94a3b8;

    /* Çizgiler */
    --border:         #e3e8f0;
    --border-strong:  #cfd8e6;

    /* Tipografi (tema.php sayfasından değiştirilebilir) */
    --font-govde: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-baslik: var(--font-govde);
    --font-boyut: 14px;
    --baslik-kalinlik: 800;
    --harf-araligi: 0em;

    /* Ölçüler */
    --r-sm: 8px;
    --r-md: 11px;
    --r-lg: 16px;
    --r-xl: 20px;

    /* Yoğunluk (ferah / normal / sık) */
    --pad-kart: 24px;
    --pad-kpi: 20px;
    --pad-hy: 14px;   /* tablo hücresi dikey */
    --pad-hx: 18px;   /* tablo hücresi yatay */
    --pad-iy: 11px;   /* form alanı dikey   */
    --pad-ix: 14px;   /* form alanı yatay   */
    --bosluk: 18px;

    --sh-xs: 0 1px 2px rgba(15, 32, 56, .05);
    --sh-sm: 0 1px 3px rgba(15, 32, 56, .06), 0 1px 2px rgba(15, 32, 56, .04);
    --sh-md: 0 4px 16px -4px rgba(15, 32, 56, .10), 0 1px 3px rgba(15, 32, 56, .05);
    --sh-lg: 0 18px 40px -12px rgba(15, 32, 56, .20);

    --ease: .18s cubic-bezier(.4, 0, .2, 1);
    --ring: 0 0 0 3.5px rgba(11, 29, 58, .12);

    --brand-fg: #ffffff;   /* marka rengi üzerindeki okunur metin */
    --accent-fg: #2a1a00;
}

/* ── 02 · Temel ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.app {
    margin: 0;
    background: var(--bg);
    color: var(--text-body);
    font-family: var(--font-govde);
    font-size: var(--font-boyut);
    letter-spacing: var(--harf-araligi);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* :where() özgüllüğü sıfırlar.
   `body.app a` yazsaydık özgüllüğü (0,1,1) olurdu ve `.btn-primary` (0,1,0)
   gibi TÜM sınıf tabanlı renk kurallarını ezerdi — bağlantı görünümündeki
   butonlar (a.btn) yanlış renkte kalırdı. :where(body.app) ile bu temel
   kurallar en düşük öncelikte kalır, sınıflar her zaman kazanır. */
:where(body.app) h1, :where(body.app) h2, :where(body.app) h3, :where(body.app) h4 {
    margin: 0;
    color: var(--text-dark);
    font-family: var(--font-baslik);
    font-weight: var(--baslik-kalinlik);
    letter-spacing: calc(var(--harf-araligi) - .02em);
    line-height: 1.25;
}
:where(body.app) p { margin: 0; }
:where(body.app) a { color: inherit; text-decoration: none; }
:where(body.app) img { max-width: 100%; display: block; }
body.app :focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 4px; }

.muted   { color: var(--text-muted); }
.faint   { color: var(--text-faint); }
.strong  { color: var(--text-dark); font-weight: 700; }
.nowrap  { white-space: nowrap; }
.mono    { font-variant-numeric: tabular-nums; }
.text-end{ text-align: right; }
.hide    { display: none !important; }

/* ── 03 · Sayfa iskeleti ───────────────────────────────────────────────── */
.dashboard-wrapper {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px clamp(16px, 3vw, 36px) 64px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}
.page-header h1,
.page-title {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: clamp(20px, 2.4vw, 25px);
    font-weight: var(--baslik-kalinlik);
    color: var(--text-dark);
}
.page-title i, .page-header h1 i { color: var(--accent); font-size: .92em; }
.page-subtitle { margin-top: 5px; color: var(--text-muted); font-size: 13.5px; font-weight: 500; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.breadcrumb {
    display: flex; align-items: center; gap: 7px;
    margin-bottom: 12px;
    font-size: 12.5px; font-weight: 600; color: var(--text-faint);
}
.breadcrumb a:hover { color: var(--info); }
.breadcrumb i { font-size: 9px; }

.section-title {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 14px;
    font-size: 12px; font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .09em;
}
.divider { height: 1px; background: var(--border); border: 0; margin: 22px 0; }

/* ── 04 · Kartlar ──────────────────────────────────────────────────────── */
.card, .data-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    margin-bottom: 20px;
}
.card { padding: var(--pad-kart); }
.data-card { padding: calc(var(--pad-kart) - 4px) var(--pad-kart) var(--pad-kart); }

.card-title {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 15px; font-weight: 800; color: var(--text-dark);
}
.card-title i { color: var(--accent); font-size: 14px; }
.card-title .card-title-extra { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.card-sub { margin: -10px 0 18px; font-size: 13px; color: var(--text-muted); }
.card-flush { padding: 0; overflow: hidden; }

.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px;
    margin-bottom: 18px;
}
.toolbar-title {
    display: flex; align-items: center; gap: 10px;
    margin: 0; font-size: 16px; font-weight: 800; color: var(--text-dark);
}
.toolbar-title i { color: var(--text-faint); font-size: 14px; }
.toolbar-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── 05 · KPI / istatistik ─────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--bosluk);
    margin-bottom: calc(var(--bosluk) + 4px);
}
.kpi-card {
    display: flex; align-items: center; gap: 16px;
    padding: var(--pad-kpi);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.kpi-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--border-strong); }
.kpi-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 18px;
}
.icon-blue, .icon-navy    { background: var(--primary-soft); color: var(--brand); }
.icon-sky,  .icon-info    { background: var(--info-soft);    color: var(--info); }
.icon-amber, .icon-warning{ background: var(--warning-soft); color: var(--warning); }
.icon-emerald, .icon-green{ background: var(--success-soft); color: var(--success); }
.icon-red, .icon-danger   { background: var(--danger-soft);  color: var(--danger); }

.kpi-info { min-width: 0; }
.kpi-info h4 {
    margin: 0; font-size: 11.5px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .06em;
}
.kpi-info span {
    display: block; margin-top: 3px;
    font-size: 23px; font-weight: 800; color: var(--text-dark);
    letter-spacing: -.03em; font-variant-numeric: tabular-nums;
    line-height: 1.2; white-space: nowrap;
}
.kpi-info small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--text-faint); }
.kpi-card.is-danger  .kpi-info span { color: var(--danger); }
.kpi-card.is-success .kpi-info span { color: var(--success); }

/* ── 06 · Butonlar ─────────────────────────────────────────────────────── */
.btn, .dash-btn, .btn-save, .btn-back {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text-dark);
    font-family: inherit; font-size: 13.5px; font-weight: 700;
    line-height: 1.4;
    text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: var(--ease);
}
.btn i, .dash-btn i, .btn-save i, .btn-back i { font-size: 13px; }
.btn:disabled, .dash-btn:disabled, .btn-save:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary, .dash-btn, .btn-save {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-fg);
    box-shadow: var(--sh-xs);
}
.btn-primary:hover, .dash-btn:hover, .btn-save:hover {
    background: var(--brand-600); border-color: var(--brand-600);
    box-shadow: 0 6px 16px -6px rgba(11, 29, 58, .6);
    transform: translateY(-1px);
}
.btn-accent {
    background: var(--accent); border-color: var(--accent); color: var(--accent-fg);
    box-shadow: var(--sh-xs);
}
.btn-accent:hover { background: #e79c15; transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(245, 165, 36, .8); }

.btn-secondary, .btn-light, .dash-btn-secondary {
    background: var(--surface); border-color: var(--border-strong); color: var(--text-dark);
    box-shadow: var(--sh-xs);
}
.btn-secondary:hover, .btn-light:hover, .dash-btn-secondary:hover { background: var(--surface-3); border-color: var(--text-faint); }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text-dark); }
.btn-outline:hover { background: var(--surface-3); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text-dark); }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b42318; transform: translateY(-1px); }
.btn-danger-soft { background: var(--danger-soft); border-color: #fbd5d1; color: var(--danger); }
.btn-danger-soft:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #0b7d4f; }

.btn-block { width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 14.5px; border-radius: var(--r-md); }

.btn-back {
    padding: 8px 15px;
    background: var(--surface); border-color: var(--border);
    color: var(--text-muted); font-size: 13px;
    box-shadow: var(--sh-xs);
}
.btn-back:hover { color: var(--text-dark); border-color: var(--border-strong); }

/* Tablo içi küçük eylemler */
.action-btns, .action-container { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.btn-sm, .btn-icon {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 11px;
    min-height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-muted);
    font-family: inherit; font-size: 12.5px; font-weight: 700;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: var(--ease);
}
.btn-icon { width: 32px; padding: 0; }
.btn-sm:hover, .btn-icon:hover { border-color: var(--border-strong); background: var(--surface-3); color: var(--text-dark); }

.btn-view, .btn-link { background: var(--primary-soft); border-color: #d9e2ef; color: var(--brand); }
.btn-view:hover, .btn-link:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.btn-edit  { background: var(--warning-soft); border-color: #fbe3bb; color: var(--warning); }
.btn-edit:hover  { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-copy  { background: var(--info-soft); border-color: #dbe6ff; color: var(--info); }
.btn-copy:hover  { background: var(--info); border-color: var(--info); color: #fff; }
.btn-ok    { background: var(--success-soft); border-color: #c7ecdb; color: var(--success); }
.btn-ok:hover    { background: var(--success); border-color: var(--success); color: #fff; }
.btn-cancel{ background: var(--surface-3); border-color: var(--border-strong); color: var(--text-muted); }
.btn-cancel:hover{ background: var(--text-muted); border-color: var(--text-muted); color: #fff; }
.btn-delete{ background: var(--danger-soft); border-color: #fbd5d1; color: var(--danger); }
.btn-delete:hover{ background: var(--danger); border-color: var(--danger); color: #fff; }

/* Satır içi form (GET yerine POST eylemleri için) */
.inline-form { display: inline-flex; margin: 0; }

/* ── 07 · Form denetimleri ─────────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--bosluk);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bosluk); }
.form-column { min-width: 0; }
.form-group { margin-bottom: 16px; min-width: 0; }
.form-group:last-child { margin-bottom: 0; }
.form-group.full, .col-full { grid-column: 1 / -1; }

.form-group label, .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em;
}
.required::after { content: ' *'; color: var(--danger); }

.form-control, .dash-input, .search-box input {
    width: 100%;
    padding: var(--pad-iy) var(--pad-ix);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text-dark);
    font-family: inherit; font-size: 13.5px; font-weight: 600;
    outline: none;
    transition: var(--ease);
}
.form-control::placeholder, .dash-input::placeholder, .search-box input::placeholder {
    color: var(--text-faint); font-weight: 500;
}
.form-control:hover, .dash-input:hover { border-color: var(--text-faint); }
.form-control:focus, .dash-input:focus, .search-box input:focus {
    border-color: var(--brand); box-shadow: var(--ring);
}
.form-control:disabled, .form-control[readonly] {
    background: var(--surface-3); color: var(--text-muted); cursor: default; border-color: var(--border);
}
textarea.form-control { min-height: 92px; resize: vertical; line-height: 1.6; }
select.form-control {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 15px;
    cursor: pointer;
}

.form-hint  { margin-top: 6px; font-size: 12px; color: var(--text-faint); font-weight: 500; line-height: 1.5; }
.form-error { margin-top: 6px; font-size: 12px; color: var(--danger); font-weight: 700; }
.has-error .form-control { border-color: var(--danger); background: var(--danger-soft); }

/* İkonlu alan */
.input-group { position: relative; display: block; }
.input-group > i {
    position: absolute; left: 13px; top: 13px;
    color: var(--text-faint); font-size: 13.5px; pointer-events: none;
    transition: var(--ease);
}
.input-group > .form-control { padding-left: 38px; }
.input-group > textarea.form-control { padding-top: 11px; }
.input-group:focus-within > i { color: var(--brand); }
.input-suffix {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    font-size: 12px; font-weight: 700; color: var(--text-faint);
}

/* Arama kutusu */
.search-box { position: relative; display: flex; width: min(340px, 100%); }
.search-box input { padding-left: 38px; }
.search-box > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-faint); font-size: 13px; pointer-events: none;
}
.filter-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-form .dash-input, .filter-form .form-control { width: auto; min-width: 150px; }

/* Dosya yükleme */
.file-upload { position: relative; }
.file-upload input[type="file"] {
    width: 100%;
    padding: 22px 16px;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--r-md);
    background: var(--surface-2);
    color: var(--text-muted);
    font-family: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
}
.file-upload input[type="file"]:hover { border-color: var(--brand); background: var(--primary-soft); color: var(--brand); }
.file-upload input[type="file"]::file-selector-button {
    margin-right: 14px; padding: 8px 15px;
    border: 0; border-radius: 7px;
    background: var(--brand); color: #fff;
    font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}

/* Renk seçici */
.color-picker-wrapper {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 13px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
}
.color-picker-wrapper input[type="color"] {
    width: 42px; height: 34px; padding: 0;
    border: 1px solid var(--border); border-radius: 7px;
    background: none; cursor: pointer;
}
.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.color-picker-wrapper input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.color-picker-wrapper .color-code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
}

/* Onay kutusu / anahtar */
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-body); }
.check-row input[type="checkbox"], .check-row input[type="radio"] {
    width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--brand); cursor: pointer; flex-shrink: 0;
}

/* Segment / sekme */
.tabs { display: inline-flex; gap: 3px; padding: 4px; border-radius: var(--r-md); background: var(--surface-3); border: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tab {
    padding: 7px 15px; border-radius: 8px;
    font-size: 13px; font-weight: 700; color: var(--text-muted);
    cursor: pointer; border: 0; background: transparent; font-family: inherit;
    transition: var(--ease);
}
.tab:hover { color: var(--text-dark); }
.tab.active { background: var(--surface); color: var(--brand); box-shadow: var(--sh-xs); }

.form-actions {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.form-actions .spacer { margin-right: auto; }

/* ── 08 · Tablolar ─────────────────────────────────────────────────────── */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    -webkit-overflow-scrolling: touch;
}
.dash-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 720px; }
.dash-table th {
    padding: calc(var(--pad-hy) - 2px) var(--pad-hx);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .07em;
    white-space: nowrap;
}
.dash-table td {
    padding: var(--pad-hy) var(--pad-hx);
    border-bottom: 1px solid var(--border);
    font-size: 13.5px; font-weight: 600; color: var(--text-body);
    vertical-align: middle;
}
.dash-table tbody tr { transition: background var(--ease); }
.dash-table tbody tr:hover { background: var(--surface-2); }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table .cell-strong { font-weight: 700; color: var(--text-dark); }
.dash-table .cell-sub { margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.dash-table .col-actions { text-align: right; white-space: nowrap; }
.dash-table tr.is-past td { background: var(--surface-2); color: var(--text-faint); }

.customer-flex { display: flex; align-items: center; gap: 11px; min-width: 0; }
.customer-avatar {
    width: 34px; height: 34px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft); color: var(--brand);
    font-size: 13px; font-weight: 800;
}
.badge-id {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 11.5px; font-weight: 700; white-space: nowrap;
}

/* ── 09 · Rozetler, plaka, durum ───────────────────────────────────────── */
.badge, .badge-soft, .badge-durum {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 11.5px; font-weight: 800; white-space: nowrap;
    line-height: 1.6;
}
.badge i, .badge-soft i, .badge-durum i { font-size: 10px; }
.badge-success, .durum-tamamlandi { background: var(--success-soft); color: var(--success); border-color: #c7ecdb; }
.badge-danger                     { background: var(--danger-soft);  color: var(--danger);  border-color: #fbd5d1; }
.badge-warning, .durum-bekliyor   { background: var(--warning-soft); color: var(--warning); border-color: #fbe3bb; }
.badge-info                       { background: var(--info-soft);    color: var(--info);    border-color: #dbe6ff; }
.badge-neutral, .durum-iptal      { background: var(--surface-3);    color: var(--text-muted); border-color: var(--border-strong); }
.durum-musait, .durum-stokta, .durum-teslim_edildi { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 28%, var(--border)); }
.durum-kirada, .durum-kontrolde, .durum-ekspertizde { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 28%, var(--border)); }
.durum-taslak, .durum-pasif { background: var(--surface-3); color: var(--text-muted); border-color: var(--border-strong); }
.durum-onay_bekliyor, .durum-serviste { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 28%, var(--border)); }
.durum-hasarli, .durum-satildi { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, var(--border)); }

/* Türk plakası */
.plaka-wrapper, .plaka-wrap, .plaka-box {
    display: inline-flex; align-items: stretch;
    height: 30px;
    border: 1.5px solid #0f2038;
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--sh-xs);
    vertical-align: middle;
}
.plaka-tr {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 5px;
    background: #003399; color: #fff;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 9px; font-weight: 700; line-height: 1;
}
.plaka-tr::before { content: '★'; font-size: 6px; margin-bottom: 2px; color: #ffcc00; }
.plaka-text, .plaka-num, .plaka-box {
    display: flex; align-items: center;
    padding: 0 10px;
    color: #0f2038;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 13.5px; font-weight: 800; letter-spacing: .5px;
    white-space: nowrap;
}
.plaka-box { padding: 0 11px; }

/* ── 10 · Bildirim kutuları ────────────────────────────────────────────── */
.alert, .alert-box {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    border-left-width: 3px;
    border-radius: var(--r-sm);
    font-size: 13.5px; font-weight: 600;
    line-height: 1.55;
}
.alert > i, .alert-box > i { margin-top: 2px; font-size: 14px; flex-shrink: 0; }
.alert strong { font-weight: 800; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-success { background: var(--success-soft); border-color: #c7ecdb; border-left-color: var(--success); color: #0a6b45; }
.alert-danger  { background: var(--danger-soft);  border-color: #fbd5d1; border-left-color: var(--danger);  color: #932018; }
.alert-warning { background: var(--warning-soft); border-color: #fbe3bb; border-left-color: var(--warning); color: #8a5606; }
.alert-info    { background: var(--info-soft);    border-color: #dbe6ff; border-left-color: var(--info);    color: #1e40af; }
.alert-box     { background: var(--info-soft);    border-color: #dbe6ff; border-left-color: var(--info);    color: #1e40af; }

/* ── 11 · Boş durum / hata ─────────────────────────────────────────────── */
.empty-state { padding: 54px 24px; text-align: center; }
.empty-state-img, .empty-state > i {
    display: flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--surface-3); color: var(--text-faint);
    font-size: 24px;
}
.empty-state h3 { margin: 0 0 7px; font-size: 16px; color: var(--text-dark); }
.empty-state p { max-width: 420px; margin: 0 auto; color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }
.empty-state .btn { margin-top: 18px; }

.error-shell { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.error-card {
    max-width: 460px; padding: 40px 34px; text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); box-shadow: var(--sh-lg);
}
.error-icon {
    width: 62px; height: 62px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--warning-soft); color: var(--warning);
    font-size: 25px;
}
.error-card h1 { font-size: 20px; margin-bottom: 9px; }
.error-card p { margin-bottom: 22px; color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }

/* ── 12 · Sayfalama ────────────────────────────────────────────────────── */
.pager {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    margin-top: 16px;
}
.pager-info { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.pager-btns { display: flex; align-items: center; gap: 5px; }
.pager-btn {
    min-width: 33px; height: 33px; padding: 0 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface); color: var(--text-muted);
    font-size: 12.5px; font-weight: 700; text-decoration: none;
    transition: var(--ease);
}
.pager-btn:hover { border-color: var(--border-strong); color: var(--text-dark); background: var(--surface-2); }
.pager-btn.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.pager-btn.is-off { opacity: .4; pointer-events: none; }

/* ── 13 · Modal ────────────────────────────────────────────────────────── */
.modal, #raporModal, #randevuModal, #odemeModal {
    display: none;
    position: fixed; inset: 0; z-index: 1200;
    padding: 20px;
    background: rgba(11, 29, 58, .55);
    backdrop-filter: blur(4px);
    justify-content: center; align-items: center;
    overflow-y: auto;
}
.modal.is-open, #raporModal.is-open, #randevuModal.is-open, #odemeModal.is-open { display: flex; }
.modal-content {
    width: 100%; max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px;
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    animation: modal-in .2s cubic-bezier(.4, 0, .2, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-content h3 {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--text-dark);
}
.modal-content h3 i { color: var(--accent); font-size: 15px; }
.modal-content > p { margin: 0 0 18px; font-size: 13px; color: var(--text-muted); }
.modal-content select:not(.form-control) {
    width: 100%; margin: 0 0 18px; padding: 11px 14px;
    border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    background: var(--surface); color: var(--text-dark);
    font-family: inherit; font-size: 13.5px; font-weight: 600; outline: none;
}
.modal-btns { display: flex; gap: 10px; margin-top: 20px; }
.modal-btns > * { flex: 1; justify-content: center; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── 14 · Detay & finans blokları ──────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--bosluk); align-items: start; }
.left-col, .right-col { min-width: 0; }
.right-col.is-sticky { position: sticky; top: 84px; }

.info-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border);
}
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row .label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.info-row .value { font-size: 13.5px; font-weight: 700; color: var(--text-dark); text-align: right; word-break: break-word; }

.finance-box {
    padding: 24px;
    margin-bottom: 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(150deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 78%, #ffffff) 100%);
    color: var(--brand-fg);
    box-shadow: var(--sh-md);
}
.finance-box .label { font-size: 11px; font-weight: 800; color: color-mix(in srgb, var(--brand-fg) 62%, transparent); text-transform: uppercase; letter-spacing: .07em; }
.finance-box .total { margin: 5px 0 20px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.finance-box .debt-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}
.finance-box .debt-val { margin-top: 3px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.finance-progress { height: 6px; margin: 16px 0 0; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.finance-progress > span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

/* Zaman çizelgesi / tahsilat listesi */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -21px; top: 5px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--surface); border: 2.5px solid var(--success);
}
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.timeline-amount { font-size: 14.5px; font-weight: 800; color: var(--text-dark); font-variant-numeric: tabular-nums; }
.timeline-meta { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* Gün başlığı (randevular) */
.day-header {
    display: flex; align-items: center; gap: 10px;
    margin: 26px 0 12px;
    font-size: 12.5px; font-weight: 800; color: var(--text-dark);
    text-transform: uppercase; letter-spacing: .06em;
}
.day-header:first-child { margin-top: 0; }
.day-header .day-count { padding: 2px 9px; border-radius: 20px; background: var(--surface-3); color: var(--text-muted); font-size: 11px; }
.day-header .day-line { flex: 1; height: 1px; background: var(--border); }
.day-header.is-today { color: var(--accent); }

/* ── 15 · Galeri / fotoğraf ────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 11px; }
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface-3);
    cursor: zoom-in;
    transition: var(--ease);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover { border-color: var(--brand); box-shadow: var(--sh-md); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-tag {
    position: absolute; left: 7px; bottom: 7px;
    padding: 3px 8px; border-radius: 5px;
    background: rgba(11, 29, 58, .82); color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: .03em;
}

/* Basit ışık kutusu */
.lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 1500;
    background: rgba(8, 15, 28, .93);
    align-items: center; justify-content: center;
    padding: 28px;
    cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lightbox-close {
    position: absolute; top: 20px; right: 22px;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff;
    font-size: 18px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

/* ── 16 · Profil ───────────────────────────────────────────────────────── */
.profile-header-card {
    display: flex; align-items: center; gap: 20px;
    padding: 26px;
    margin-bottom: 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(150deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 78%, #ffffff) 100%);
    color: var(--brand-fg);
    box-shadow: var(--sh-md);
}
.big-avatar {
    width: 68px; height: 68px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--accent), var(--accent));
    color: var(--accent-fg);
    font-size: 27px; font-weight: 800;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5);
}
.profile-info h2 { margin: 0 0 5px; font-size: 20px; color: var(--brand-fg); }
.profile-info p { display: flex; align-items: center; gap: 7px; font-size: 13px; color: color-mix(in srgb, var(--brand-fg) 72%, transparent); font-weight: 600; }
.profile-info p i { font-size: 11.5px; }

/* Ekip listesi */
.user-row { display: flex; align-items: center; gap: 12px; }
.role-pill {
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 800;
}
.role-admin { background: var(--primary-soft); color: var(--brand); }
.role-personel { background: var(--surface-3); color: var(--text-muted); }

/* ── 17 · Kimlik sayfaları ─────────────────────────────────────────────── */
.auth-layout { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

.auth-visual {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(32px, 5vw, 60px);
    background: linear-gradient(155deg, #0b1d3a 0%, #12294a 55%, #0a1830 100%);
    color: #fff;
    overflow: hidden;
}
.auth-visual::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 82% 12%, rgba(245, 165, 36, .18) 0%, transparent 45%),
        radial-gradient(circle at 8% 92%, rgba(29, 78, 216, .22) 0%, transparent 50%);
    pointer-events: none;
}
.auth-visual > * { position: relative; z-index: 1; }

.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.auth-brand .mark {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 13px;
    background: linear-gradient(140deg, var(--accent), #e08c07);
    color: #2a1a00; font-size: 21px;
    box-shadow: 0 8px 22px -8px rgba(245, 165, 36, .8);
}
.auth-brand .mark-text { color: var(--accent); }

.auth-headline { max-width: 480px; }
.auth-headline h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.18; color: #fff; letter-spacing: -.03em; }
.auth-headline h1 em { font-style: normal; color: var(--accent); }
.auth-headline p { margin-top: 16px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .68); font-weight: 500; }

.auth-features { display: flex; flex-direction: column; gap: 13px; margin-top: 30px; }
.auth-feature { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.auth-feature i {
    width: 30px; height: 30px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .09); color: var(--accent);
    font-size: 12.5px;
}
.auth-legal { font-size: 12px; color: rgba(255, 255, 255, .42); font-weight: 500; }

.auth-panel {
    display: flex; flex-direction: column;
    background: var(--surface);
    padding: clamp(24px, 4vw, 40px);
    overflow-y: auto;
}
.auth-panel-top { display: flex; justify-content: flex-end; }
.auth-form { width: 100%; max-width: 400px; margin: auto; padding: 24px 0; }
.auth-form.is-wide { max-width: 540px; }
.auth-form h2 { font-size: 24px; margin-bottom: 7px; }
.auth-form .lead { margin-bottom: 26px; color: var(--text-muted); font-size: 13.5px; }
.auth-panel-foot { text-align: center; font-size: 12px; color: var(--text-faint); font-weight: 500; padding-top: 18px; }

.auth-switch {
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center; font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.auth-switch a { color: var(--info); font-weight: 800; }
.auth-switch a:hover { text-decoration: underline; }

.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 7px; background: transparent;
    color: var(--text-faint); font-size: 13px; cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-3); color: var(--text-dark); }
.input-group.has-toggle > .form-control { padding-right: 42px; }

.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter span { flex: 1; height: 4px; border-radius: 3px; background: var(--surface-3); transition: var(--ease); }
.pw-meter.s1 span:nth-child(1) { background: var(--danger); }
.pw-meter.s2 span:nth-child(-n+2) { background: var(--warning); }
.pw-meter.s3 span:nth-child(-n+3) { background: #65a30d; }
.pw-meter.s4 span { background: var(--success); }

/* Kod giriş kutusu (dijital rapor) */
.code-input {
    width: 100%; padding: 16px;
    border: 1.5px solid var(--border-strong); border-radius: var(--r-md);
    background: var(--surface-2); color: var(--text-dark);
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 26px; font-weight: 800; letter-spacing: 12px; text-align: center;
    outline: none; transition: var(--ease);
}
.code-input::placeholder { font-size: 14px; letter-spacing: 2px; font-weight: 600; color: var(--text-faint); }
.code-input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3.5px rgba(245, 165, 36, .18); }

/* ── 18 · Duyarlılık & yazdırma ────────────────────────────────────────── */
@media (max-width: 1100px) {
    .detail-grid { grid-template-columns: 1fr; }
    .right-col.is-sticky { position: static; }
}
@media (max-width: 992px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .dashboard-wrapper { padding: 20px 16px 90px; }
}
@media (max-width: 640px) {
    html { font-size: 13.5px; }
    .card, .data-card { padding: 18px; border-radius: var(--r-md); }
    .page-header { align-items: stretch; }
    .page-actions, .toolbar-tools { width: 100%; }
    .page-actions > .btn, .page-actions > .dash-btn { flex: 1; }
    .search-box { width: 100%; }
    .filter-form { width: 100%; }
    .filter-form .dash-input, .filter-form .form-control { flex: 1 1 130px; min-width: 0; }
    .form-grid, .form-grid-2, .row-2, .finance-box .debt-row { grid-template-columns: 1fr; }
    .kpi-card { padding: 16px; gap: 13px; }
    .kpi-icon { width: 40px; height: 40px; font-size: 16px; }
    .kpi-info span { font-size: 20px; }
    .modal-content { padding: 20px; }
    .modal-btns { flex-direction: column-reverse; }
    .profile-header-card { flex-direction: column; text-align: center; padding: 22px; }
    .profile-info p { justify-content: center; }
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .form-actions > * { width: 100%; }
    .form-actions .spacer { margin: 0; }
}

@media print {
    body.app { background: #fff; }
    .page-actions, .toolbar-tools, .btn, .dash-btn, .btn-sm, .btn-icon, .pager, .no-print { display: none !important; }
    .card, .data-card, .kpi-card { box-shadow: none; break-inside: avoid; }
    .dashboard-wrapper { padding: 0; max-width: none; }
    .finance-box, .profile-header-card { background: var(--brand) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
