/* ===== Araç Talep — Premium UI ===== */
:root {
    --bg: #f1f5f9;
    --bg-soft: #f8fafc;
    --card: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --muted: #94a3b8;
    --line: #e2e8f0;
    --brand: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-soft: #eff6ff;
    --danger: #ef4444;
    --danger-soft: #fef2f2;
    --ok: #10b981;
    --amber: #f59e0b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
    --shadow-md: 0 10px 25px -5px rgba(15,23,42,.12), 0 8px 10px -6px rgba(15,23,42,.08);
    --shadow-lg: 0 25px 50px -12px rgba(15,23,42,.35);
    --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1120;
        --bg-soft: #0f172a;
        --card: #111c31;
        --ink: #e8eef7;
        --ink-soft: #a9b6c9;
        --muted: #6b7a90;
        --line: #23324a;
        --brand-soft: #172554;
        --danger-soft: #2a1417;
        --shadow-md: 0 10px 25px -5px rgba(0,0,0,.5);
        --shadow-lg: 0 25px 50px -12px rgba(0,0,0,.7);
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Butonlar ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    padding: 11px 18px; font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all .15s ease; white-space: nowrap;
    background: var(--card); color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
    color: #fff; box-shadow: 0 4px 12px -2px rgba(59,130,246,.5);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 6px 16px -2px rgba(59,130,246,.55); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent;
    background: transparent; color: var(--ink-soft); cursor: pointer; transition: all .15s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.icon-btn.del:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn.edit:hover { background: var(--brand-soft); color: var(--brand-600); }
.icon-btn.done:hover { background: rgba(16,185,129,.12); color: var(--ok); }
.icon-btn.done.is-on { color: var(--ok); }

/* ===== Auth ===== */
.auth-body {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(59,130,246,.18), transparent),
                var(--bg);
}
.auth-card {
    width: 100%; max-width: 400px; background: var(--card);
    border: 1px solid var(--line); border-radius: 22px; padding: 34px;
    box-shadow: var(--shadow-md);
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-logo {
    width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px;
    display: grid; place-items: center; font-size: 30px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-700) 100%);
    box-shadow: 0 8px 20px -6px rgba(59,130,246,.6);
}
.auth-brand h1 { font-size: 24px; }
.auth-brand p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.auth-form input {
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit; background: var(--bg-soft); color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(59,130,246,.18); background: var(--card);
}
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.alert {
    background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(239,68,68,.3);
    padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px;
}

/* ===== Topbar ===== */
.topbar {
    position: sticky; top: 0; z-index: 40; background: var(--card);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.topbar-in {
    max-width: 1800px; margin: 0 auto; padding: 12px 28px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand-logo {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-700) 100%);
}
.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
/* Bildirim (push) butonu — açık: yeşil zil, kapalı: üstü çizili zil */
.notify-btn .ico-on { display: none; }
.notify-btn .ico-off { display: inline-block; }
.notify-btn.is-on .ico-on { display: inline-block; }
.notify-btn.is-on .ico-off { display: none; }
.notify-btn.is-on { color: var(--ok); }
.notify-btn.is-on:hover { background: rgba(16,185,129,.14); color: var(--ok); }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.user-avatar {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-600); font-weight: 700; font-size: 13px;
}

/* ===== Container / Page head ===== */
.container { max-width: 1800px; margin: 0 auto; padding: 26px 28px 80px; }
.page-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.page-head h1 { font-size: 26px; }
.page-head .muted { margin: 4px 0 0; font-size: 14px; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.search-box {
    display: flex; align-items: center; gap: 8px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; color: var(--muted);
}
.search-box input {
    border: 0; background: transparent; padding: 10px 0; font-size: 14px; font-family: inherit;
    color: var(--ink); width: 210px; outline: none;
}

/* ===== Tablo ===== */
.table-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow-x: auto;
}
.talep-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 940px; }
.talep-table thead th {
    text-align: left; padding: 14px 16px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
    background: var(--bg-soft); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.talep-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.talep-table tbody tr:last-child td { border-bottom: 0; }
.talep-table tbody tr { transition: background .12s; }
.talep-table tbody tr:hover { background: var(--bg-soft); }
.cell-main { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cell-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Müşteri hücresi + avatar */
.musteri-cell { display: flex; align-items: center; gap: 11px; }
.cust-avatar {
    width: 38px; height: 38px; border-radius: 11px; flex: none;
    display: grid; place-items: center; font-weight: 800; font-size: 15px;
    background: linear-gradient(180deg, var(--brand-soft), rgba(59,130,246,.12));
    color: var(--brand-600); border: 1px solid rgba(59,130,246,.18);
}
.musteri-info { min-width: 0; }

/* Şoför sütunu */
.sofor-cell { line-height: 1.4; }
.sofor-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.sofor-name svg { color: var(--muted); flex: none; }
.sofor-tel { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.sofor-tel svg { flex: none; }
.sofor-tel:hover { color: var(--brand-600); text-decoration: none; }
.col-actions { width: 132px; text-align: right; }
.row-actions { display: inline-flex; gap: 4px; }
.plate {
    display: inline-block; font-weight: 700; letter-spacing: .04em; font-size: 13px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
    white-space: nowrap;
}
.prio-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
    box-shadow: 0 0 0 3px rgba(245,158,11,.2); flex: none;
}
/* Yapıldı durumu */
.badge-done {
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(16,185,129,.14); color: var(--ok); border: 1px solid rgba(16,185,129,.35);
    padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
    vertical-align: middle;
}
.talep-table tr.is-done { background: rgba(16,185,129,.045); }
.talep-table tr.is-done td:not(.col-actions) { color: var(--muted); }
.talep-table tr.is-done .cell-main { font-weight: 600; }
.talep-table tr.is-done .plate { opacity: .65; }
.tcard.is-done { background: rgba(16,185,129,.05); border-color: rgba(16,185,129,.3); }
.tcard.is-done .tcard-grid, .tcard.is-done .tcard-date { color: var(--muted); }
.view-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* Konum hücresi */
.konum-cell { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.konum-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konum-link { font-weight: 600; white-space: nowrap; }
.copy-btn { width: 30px; height: 30px; flex: none; }
.copy-btn:hover { background: var(--brand-soft); color: var(--brand-600); }
.tcard-konum { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tcard-konum > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-emoji { font-size: 44px; margin-bottom: 8px; }

/* ===== Sekme + görünüm çubuğu ===== */
.list-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.date-filter {
    display: inline-flex; align-items: center; gap: 4px; flex: none;
    background: var(--card); border: 1px solid var(--line); border-radius: 11px;
    padding: 0 6px 0 10px; color: var(--muted); height: 40px;
}
.date-filter input[type=date] {
    border: 0; background: transparent; color: var(--ink); font-family: inherit;
    font-size: 13px; outline: none; padding: 8px 2px; color-scheme: light dark; min-width: 0;
}
.date-filter .date-sep { color: var(--muted); font-weight: 700; }
.date-filter #dateReset {
    border: 0; background: transparent; color: var(--muted); cursor: pointer;
    font-size: 15px; width: 26px; height: 26px; border-radius: 7px; flex: none;
}
.date-filter #dateReset:hover { background: var(--brand-soft); color: var(--brand-600); }

.view-switch {
    display: inline-flex; gap: 3px; flex: none;
    background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 3px;
}
.view-switch button {
    display: grid; place-items: center; width: 36px; height: 34px;
    border: 0; background: transparent; color: var(--muted); border-radius: 8px;
    cursor: pointer; transition: all .15s;
}
.view-switch button:hover { color: var(--ink); background: var(--bg-soft); }
.view-switch button.is-active { background: var(--brand); color: #fff; }

/* ===== Sekmeler ===== */
.tabs {
    display: inline-flex; gap: 4px;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px;
    max-width: 100%; overflow-x: auto;
}
.tab {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    border: 0; background: transparent; color: var(--ink-soft);
    font-family: inherit; font-weight: 700; font-size: 14px;
    padding: 9px 16px; border-radius: 9px; cursor: pointer; transition: all .15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--brand); color: #fff; box-shadow: 0 3px 10px -3px rgba(59,130,246,.6); }
.tab-count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--bg-soft); color: var(--ink-soft);
    font-size: 11.5px; font-weight: 800;
}
.tab.is-active .tab-count { background: rgba(255,255,255,.25); color: #fff; }

/* ===== İş talebi kartları ===== */
.job-grid {
    columns: 360px;        /* sütun genişliği; sayı ekrana göre otomatik */
    column-gap: 16px;
}
.job-card {
    display: flex; flex-direction: column;
    break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
    margin-bottom: 16px;   /* dikey boşluk (sütunlarda row-gap yok) */
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .12s, border-color .15s;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-card.is-prio { border-color: rgba(245,158,11,.5); box-shadow: 0 0 0 1px rgba(245,158,11,.25), var(--shadow-sm); }
.job-card.is-done { background: rgba(16,185,129,.05); border-color: rgba(16,185,129,.3); }

.job-head {
    display: flex; align-items: flex-start; gap: 12px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.job-cust { flex: 1; min-width: 0; }
.job-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; word-break: break-word; }
.job-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.job-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }

.job-desc {
    margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--ink-soft);
    white-space: pre-wrap; word-break: break-word; min-height: 22px;
    user-select: text; -webkit-user-select: text;
}
.job-card.is-done .job-desc { color: var(--muted); }

.job-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.job-foot-left {
    display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0;
}
.job-owner, .job-doneby {
    display: inline-flex; align-items: center; gap: 5px; min-width: 0;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.job-owner { color: var(--muted); }
.job-owner svg { flex: none; opacity: .8; }
.job-doneby { color: var(--ok); }
.job-doneby svg { flex: none; }
.job-foot .row-actions { flex: none; }
.ek-badge {
    display: inline-flex; align-items: center; background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: 5px; padding: 0 6px; font-size: 11px; font-weight: 700; color: var(--ink-soft);
}

/* ===== Liste görünümü (satır) ===== */
.job-grid.list-view { columns: 1; }
.job-grid.list-view .job-card {
    flex-direction: row; align-items: center; flex-wrap: wrap;
    gap: 8px 16px; padding: 14px 18px;
}
.job-grid.list-view .job-head {
    flex: 0 1 260px; min-width: 0; align-items: center;
    border: 0; padding: 0;
}
.job-grid.list-view .job-name { font-size: 15px; }
.job-grid.list-view .job-badges { flex-direction: row; align-items: center; }
.job-grid.list-view .job-desc {
    flex: 1 1 260px; min-width: 0; margin: 0; min-height: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-grid.list-view .job-foot {
    flex: 0 0 auto; border: 0; padding: 0; margin: 0;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.55);
    backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center;
    padding: 24px; overflow-y: auto; animation: fade .18s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
    width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line);
    border-radius: 20px; box-shadow: var(--shadow-lg); margin: auto;
    animation: pop .2s cubic-bezier(.16,1,.3,1);
}
.modal-sm { max-width: 400px; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 19px; }
.modal-body { padding: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field { display: grid; gap: 7px; margin-bottom: 6px; }
.field > span, .field-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
/* Yalnızca doğrudan alanlar (Tarih, Müşteri, Şoför) — editör inputları hariç */
.field > input[type=date], .field > input[type=text], .field > input[type=tel] {
    padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit; background: var(--bg-soft); color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field > input:focus {
    outline: none; border-color: var(--brand); background: var(--card);
    box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

/* Büyük harf: müşteri + iş açıklaması (giriş ve gösterim) */
#musteri, #aciklama,
.job-name, .job-desc,
.view-musteri, .view-desc { text-transform: uppercase; }
#musteri::placeholder, #aciklama::placeholder { text-transform: none; }

/* İş Açıklaması alanı */
.field-desc { margin-bottom: 6px; }
.field-desc textarea {
    width: 100%; min-height: 150px; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 14.5px; line-height: 1.55;
    background: var(--bg-soft); color: var(--ink); resize: vertical; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field-desc textarea:focus {
    border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

/* Görüntüle: iş açıklaması */
.view-desc {
    padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink);
    white-space: pre-wrap; word-break: break-word;
}

/* ===== Yapısal Editör ===== */
.talep-editor {
    border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft);
    padding: 8px; margin-top: 4px; transition: border-color .15s, box-shadow .15s;
}
.talep-editor:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.te-row {
    display: grid; grid-template-columns: 130px 1fr; align-items: start;
    border-radius: 8px; transition: background .12s;
}
.te-row:focus-within { background: var(--brand-soft); }
.te-label {
    text-align: right; padding: 9px 12px 0 0; font-size: 12.5px; font-weight: 700;
    color: var(--muted); letter-spacing: .02em; user-select: none; cursor: text;
    white-space: nowrap;
}
.te-row:focus-within .te-label { color: var(--brand-600); }
.te-input {
    border: 0; background: transparent; padding: 8px 10px; font-size: 14.5px;
    font-family: inherit; color: var(--ink); outline: none; width: 100%; font-weight: 600;
    resize: none; overflow: hidden; display: block; line-height: 1.45;
    white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word;
}
.te-input::placeholder { color: var(--muted); font-weight: 400; }

.hint { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
kbd {
    font-family: var(--font); font-size: 11px; font-weight: 700; padding: 1px 6px;
    border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
    background: var(--card); color: var(--ink-soft);
}

/* ===== Görüntüle (detay) modalı ===== */
.view-head-actions { display: flex; align-items: center; gap: 8px; }
.view-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.view-musteri { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.view-date { font-size: 13px; color: var(--muted); margin-top: 2px; }
.badge-prio {
    background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid rgba(245,158,11,.35);
    padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.view-section-title {
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    color: var(--brand-600); margin: 18px 0 8px;
}
.view-grid { display: flex; flex-direction: column; }
.view-row {
    display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: start;
    padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.view-row:last-child { border-bottom: 0; }
.view-lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 1px; }
.view-val { font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-word; white-space: pre-wrap; }

/* ===== Hızlı Talep ===== */
.quick-box {
    border: 1px solid var(--brand); border-radius: 14px; padding: 14px;
    background: var(--brand-soft); margin-bottom: 18px;
}
.quick-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.quick-title { font-size: 13.5px; font-weight: 800; color: var(--brand-600); }
.quick-hint { font-size: 12px; color: var(--muted); }
.quick-box textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
    font-family: inherit; font-size: 13.5px; line-height: 1.5; color: var(--ink);
    background: var(--card); resize: vertical; outline: none;
}
.quick-box textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

/* ===== Görsel ekleri ===== */
.ek-section { margin-top: 18px; }
.ek-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.ek-title { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.ek-hint { font-size: 11.5px; color: var(--muted); }
.ek-drop {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px;
    background: var(--bg-soft); transition: all .15s;
}
.ek-drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.ek-drop-text { font-size: 12.5px; color: var(--muted); }
.ek-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ek-item {
    position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--line); background: var(--bg-soft); display: block;
}
.ek-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ek-item.is-new { border-color: var(--brand); }
/* Üzerine gelince çıkan büyüteç katmanı */
.ek-zoom {
    position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
    background: rgba(15,23,42,.55); color: #fff;
    opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
.ek-item:hover .ek-zoom { opacity: 1; }
.ek-item:hover { border-color: var(--brand); }
.ek-new-tag {
    position: absolute; left: 4px; bottom: 4px; z-index: 2; background: var(--brand); color: #fff;
    font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px;
}
.ek-del {
    position: absolute; top: 4px; right: 4px; z-index: 2; width: 22px; height: 22px; border: 0;
    border-radius: 6px; background: rgba(15,23,42,.75); color: #fff; cursor: pointer;
    font-size: 12px; line-height: 1; display: grid; place-items: center;
}
.ek-del:hover { background: var(--danger); }
.view-ek-grid .ek-item { width: 108px; height: 108px; cursor: zoom-in; }
.view-ek-grid .ek-item:hover { border-color: var(--brand); }
.view-ham {
    margin: 0; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: 10px; font-family: inherit; font-size: 13px; line-height: 1.55;
    color: var(--ink-soft); white-space: pre-wrap; word-break: break-word;
}

/* ===== Şoför açılır bölümü ===== */
.sofor-section {
    margin-top: 18px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--bg-soft); overflow: hidden;
}
.sofor-section > summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px; cursor: pointer; list-style: none; user-select: none;
    font-weight: 700; font-size: 14px; color: var(--ink-soft);
}
.sofor-section > summary::-webkit-details-marker { display: none; }
.sofor-section > summary:hover { background: var(--brand-soft); }
.sofor-sum-left { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.sofor-sum-right { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sofor-section .chev { transition: transform .2s; }
.sofor-section[open] .chev { transform: rotate(180deg); }
.sofor-grid { padding: 4px 16px 16px; margin-bottom: 0; }
.sofor-grid .field { margin-bottom: 0; }

/* Listede şoför satırı */
.cell-sofor { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.cell-sofor a { color: var(--ink-soft); }
.cell-sofor a:hover { color: var(--brand-600); }
.tcard-sofor { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tcard-sofor > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.tcard-sofor .cell-sofor { margin-top: 0; font-size: 14px; font-weight: 600; }

/* ===== Modal foot / switch ===== */
.modal-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.foot-btns { display: flex; gap: 10px; }
.switch-wrap { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.switch { position: relative; display: inline-block; width: 52px; height: 30px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute; inset: 0; cursor: pointer; background: var(--line);
    border-radius: 999px; transition: .2s;
}
.switch-slider::before {
    content: ""; position: absolute; height: 24px; width: 24px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.25);
}
.switch input:checked + .switch-slider { background: var(--brand); }
.switch input:checked + .switch-slider::before { transform: translateX(22px); }

/* ===== Lightbox ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 80; background: rgba(8,12,22,.92);
    display: flex; align-items: center; justify-content: center; padding: 56px 68px;
    animation: fade .15s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0,0,0,.6); cursor: zoom-out; background: #0b1120;
}
.lb-btn {
    position: absolute; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08);
    color: #fff; border-radius: 12px; cursor: pointer; display: grid; place-items: center;
    backdrop-filter: blur(6px); transition: background .15s, transform .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn:active { transform: scale(.94); }
.lb-close { top: 16px; right: 16px; width: 44px; height: 44px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 60px; }
.lb-nav:active { transform: translateY(-50%) scale(.94); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-nav[hidden] { display: none; }
.lb-counter {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700;
    background: rgba(255,255,255,.1); padding: 5px 14px; border-radius: 999px;
    backdrop-filter: blur(6px);
}
/* küçük resim butonları */
button.ek-item { padding: 0; cursor: zoom-in; font: inherit; }

@media (max-width: 720px) {
    .lightbox { padding: 56px 12px; }
    .lb-nav { width: 40px; height: 52px; }
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
}

/* ===== Tooltip (uzun metin önizleme) ===== */
.tooltip {
    position: fixed; z-index: 95; max-width: 460px;
    background: #111c31; color: #e8eef7; border: 1px solid #2a3a55;
    padding: 11px 14px; border-radius: 11px;
    font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
    box-shadow: 0 18px 40px rgba(0,0,0,.45); pointer-events: none;
    animation: fade .12s ease;
}
.tooltip[hidden] { display: none; }
.aciklama-cell[data-full] { cursor: help; }
.aciklama-cell[data-full]:hover { color: var(--ink); }

/* ===== Toast ===== */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90;
    background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px;
    font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastUp .25s ease;
    max-width: 90vw;
}
.toast-err { background: var(--danger); }
.toast-ok { background: #0f172a; }
@keyframes toastUp { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

body.modal-open { overflow: hidden; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .job-grid { columns: 1; }
    .page-actions { width: 100%; }
    .search-box { flex: 1; }
    .search-box input { width: 100%; }
    .field-grid { grid-template-columns: 1fr; }
    .user-chip { display: none; }
    .modal-overlay { padding: 0; }
    .modal { max-width: 100%; min-height: 100%; border-radius: 0; margin: 0; }
    .modal-sm { min-height: auto; border-radius: 20px; margin: auto; }

    /* Araç çubuğu: dikey diz, yatay taşma/scroll olmasın */
    .list-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .tabs { width: 100%; overflow-x: visible; }
    .tabs .tab { flex: 1; justify-content: center; padding: 9px 8px; }
    .toolbar-right { width: 100%; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
    .date-filter { flex: 1 1 auto; min-width: 0; gap: 2px; padding: 0 4px 0 8px; }
    .date-filter input[type=date] { flex: 1 1 0; width: 100%; min-width: 0; }
    .view-switch { flex: none; }

    /* Üst çubuk: mobilde ikon-only, taşma yok */
    .topbar-in { padding: 10px 12px; }
    .topbar-right { gap: 4px; }
    .topbar-btn .btn-lbl { display: none; }   /* Kullanıcılar / Çıkış → yalnız ikon */
    .topbar-btn { padding: 8px; }
    .brand-name { font-size: 15px; }
    .brand-logo { width: 32px; height: 32px; font-size: 17px; }
}

/* Sayfanın hiçbir koşulda yatay kaymaması için güvenlik */
html, body { max-width: 100%; overflow-x: hidden; }

/* iOS safe area */
@supports (padding: max(0px)) {
    .topbar-in { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
}
