/* ============================================================
   SmartLC Antrepo Raporları — tema
   Rafine / endüstriyel-resmi · sıcak kağıt zemin · derin petrol vurgu
   ============================================================ */

:root {
    --paper:      #f4f1ea;
    --panel:      #ffffff;
    --ink:        #15201f;
    --muted:      #5f6b69;
    --line:       #e3ddd0;
    --line-soft:  #efeae0;
    --accent:     #0f6b66;   /* derin petrol */
    --accent-ink: #0a4f4b;
    --copper:     #c2703a;   /* bakır vurgu */
    --pos:        #2f7d4f;   /* giriş yeşili */
    --neg:        #b1492f;   /* çıkış kızılı */
    --shadow:     0 1px 2px rgba(21,32,31,.05), 0 8px 28px -16px rgba(21,32,31,.28);

    --font-display: "Bricolage Grotesque", Georgia, serif;
    --font-body:    "IBM Plex Sans", system-ui, sans-serif;
    --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

    --radius: 14px;
    --radius-sm: 9px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* subtle paper grain via layered gradients */
body {
    background-image:
        radial-gradient(circle at 12% 10%, rgba(15,107,102,.04), transparent 42%),
        radial-gradient(circle at 88% 0%, rgba(194,112,58,.045), transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0;
}

a { color: var(--accent); }
button { font-family: var(--font-body); cursor: pointer; }
code { font-family: var(--font-mono); }

/* ---------- Shell / topbar ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px clamp(14px, 4vw, 34px);
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
    transform: translateY(1px);
}
.brand-mark.big { font-size: 34px; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.02em;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand-sub {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .02em;
}

.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-pill {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    transition: all .15s ease;
    white-space: nowrap;
}
.nav-pill:hover { color: var(--ink); background: var(--line-soft); }
.nav-pill.active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 2px 8px -3px var(--accent);
}

.user-box { display: flex; align-items: center; gap: 10px; }
.user-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.logout-form { margin: 0; }
.btn-logout {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s ease;
}
.btn-logout:hover { color: var(--neg); border-color: var(--neg); }

/* ---------- Content ---------- */
.content { padding: clamp(16px, 4vw, 34px); max-width: 1280px; width: 100%; margin: 0 auto; }

.page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.page-head h1 { font-size: clamp(26px, 5vw, 34px); }
.page-date { color: var(--muted); font-size: 14px; font-weight: 500; }

.section-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin: 34px 0 14px;
    font-family: var(--font-body);
    font-weight: 700;
}

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--line);
}
.card--pos::before { background: var(--pos); }
.card--neg::before { background: var(--neg); }
.card--accent::before { background: var(--accent); }
.card-label { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.card-value {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.02em;
    margin-top: 4px;
}
.card-unit { font-size: 12px; color: var(--muted); }

/* ---------- Tiles ---------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.tile {
    text-align: left;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all .16s ease;
    box-shadow: var(--shadow);
}
.tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}
.tile-ico {
    font-size: 24px;
    color: var(--accent);
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--line-soft);
    border-radius: 11px;
    margin-bottom: 4px;
}
.tile-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.tile-desc { font-size: 13px; color: var(--muted); }

/* ---------- Filter bar ---------- */
.filterbar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input[type="date"] {
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
}
.field input[type="date"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding-bottom: 9px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: all .15s ease;
    box-shadow: 0 2px 10px -4px var(--accent);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-ink); }
.btn-primary:disabled { opacity: .6; cursor: progress; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 12px;
}

/* ---------- Result summary ---------- */
.result-summary {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    padding: 12px 4px;
    color: var(--muted);
    font-size: 14px;
}
.result-summary b { color: var(--ink); font-family: var(--font-mono); }

/* ---------- Tables ---------- */
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
}
table.data {
    border-collapse: collapse;
    width: 100%;
    font-size: 13.5px;
    white-space: nowrap;
}
table.data thead th {
    position: sticky;
    top: 0;
    background: var(--ink);
    color: #f4f1ea;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .02em;
    text-align: left;
    padding: 11px 14px;
    z-index: 1;
}
table.data thead th.num { text-align: right; }
table.data tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
}
table.data tbody tr:nth-child(even) { background: #faf8f3; }
table.data tbody tr:hover { background: #eef5f4; }
table.data td.num { text-align: right; }
table.data td.mono { font-family: var(--font-mono); font-size: 13px; }
table.data td.strong { font-weight: 600; color: var(--accent-ink); }
table.data td.muted { color: var(--muted); }

/* ---------- States ---------- */
.loading, .auth-loading {
    padding: 40px;
    text-align: center;
    color: var(--muted);
    font-style: italic;
}
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}
.empty-state h1 { margin-bottom: 8px; }

/* ---------- Login ---------- */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-wrap { width: 100%; display: grid; place-items: center; min-height: 100vh; }
.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px 30px 26px;
    box-shadow: 0 20px 60px -28px rgba(21,32,31,.45);
}
.login-head { text-align: center; margin-bottom: 22px; }
.login-head h1 { font-size: 30px; margin-top: 6px; letter-spacing: -.02em; }
.login-sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; }
.login-form label span { font-size: 13px; font-weight: 600; color: var(--muted); }
.login-form input {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
}
.login-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.login-form .btn-primary { margin-top: 6px; padding: 13px; font-size: 15px; }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 20px 0 0; }
.alert {
    background: #fbe9e4;
    border: 1px solid #f0c4b8;
    color: var(--neg);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 16px;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
    .topbar { gap: 10px; padding: 10px 14px; }
    .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
    .user-box { margin-left: auto; }
    .brand-sub { display: none; }
    .card-value { font-size: 24px; }
    .filterbar { padding: 14px; }
    .field, .field input[type="date"] { width: 100%; }
    .btn-primary { width: 100%; }
}

/* ---------- AN Arama: sonuç listesi ---------- */
.field.grow { flex: 1; min-width: 220px; }
.field.grow input[type="text"] {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    width: 100%;
}
.field.grow input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.an-list { display: flex; flex-direction: column; gap: 8px; }
.an-row {
    display: grid;
    grid-template-columns: 150px 1.4fr 1.4fr 130px 20px;
    align-items: center;
    gap: 14px;
    text-align: left;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    transition: all .14s ease;
    box-shadow: var(--shadow);
    width: 100%;
}
.an-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.an-no { font-weight: 600; color: var(--accent-ink); font-size: 14px; }
.an-firma { font-weight: 600; }
.an-esya, .an-net { color: var(--muted); font-size: 13.5px; }
.an-net { text-align: right; }
.an-ok { color: var(--accent); font-size: 22px; text-align: center; }

@media (max-width: 720px) {
    .an-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "no net" "firma firma" "esya esya";
        gap: 4px 12px;
        row-gap: 4px;
    }
    .an-no { grid-area: no; }
    .an-net { grid-area: net; }
    .an-firma { grid-area: firma; }
    .an-esya { grid-area: esya; }
    .an-ok { display: none; }
}

/* ---------- Detay katmanı (drawer) ---------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(21,32,31,.42);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: flex-end;
    z-index: 50;
    animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
    background: var(--paper);
    width: min(960px, 100%);
    height: 100%;
    overflow-y: auto;
    padding: 22px clamp(16px, 3vw, 30px) 40px;
    box-shadow: -18px 0 50px -24px rgba(21,32,31,.5);
    animation: slidein .2s ease;
}
@keyframes slidein { from { transform: translateX(28px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    position: sticky;
    top: -22px;
    background: var(--paper);
    padding-top: 4px;
    z-index: 2;
}
.drawer-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.drawer-head h2 { font-size: 24px; margin-top: 2px; }
.drawer-close {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    width: 38px; height: 38px;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
    transition: all .14s ease;
}
.drawer-close:hover { color: var(--neg); border-color: var(--neg); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 26px;
}
.info-item { background: var(--panel); padding: 11px 15px; display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.info-value { font-size: 14.5px; font-weight: 500; }

.drawer-sec {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin: 0 0 12px;
    font-family: var(--font-body);
    font-weight: 700;
}
.hint { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }

/* hareket yön renkleri */
table.data tfoot td { padding: 11px 14px; border-top: 2px solid var(--ink); font-weight: 600; background: #faf8f3; }
table.data tbody tr.row-cikis td.strong { color: var(--neg); }
table.data tbody tr.row-giris td.strong { color: var(--pos); }

@media (max-width: 720px) {
    .overlay { justify-content: stretch; }
    .drawer { width: 100%; padding: 18px 14px 36px; }
}

/* ---------- Grid araçları: filtre + sıralanabilir başlık ---------- */
.grid-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 10px;
    flex-wrap: wrap;
}
.grid-filter {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--ink);
    min-width: 240px;
    flex: 0 1 320px;
}
.grid-filter:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.grid-count { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }

/* sıralanabilir kolon başlığı: th içindeki buton */
table.data thead th .th-sort,
table.data thead th button.th-sort {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    color: inherit;
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
}
table.data thead th.num .th-sort { justify-content: flex-end; }
table.data thead th .th-sort:hover { color: #ffffff; text-decoration: underline; }

/* ---------- Fatura: tıklanır satır + kalem detayı ---------- */
.exp-col { width: 26px; text-align: center; color: var(--accent); user-select: none; }
table.data tbody tr.row-click { cursor: pointer; }
table.data tbody tr.row-acik { background: #eef5f4 !important; }
table.data tbody tr.row-acik td { font-weight: 600; }

tr.detay-row > td { background: #faf8f3; padding: 10px 14px 14px 40px; }
.detay-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12.5px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.detay-table thead th {
    background: var(--line-soft);
    color: var(--muted);
    text-align: left;
    font-weight: 600;
    padding: 7px 10px;
    white-space: nowrap;
}
.detay-table thead th.num { text-align: right; }
.detay-table tbody td { padding: 7px 10px; border-top: 1px solid var(--line-soft); }
.detay-table td.num { text-align: right; }
.detay-table td.mono { font-family: var(--font-mono); }

/* alt toplam (tfoot) – tüm gridler için ortak görünüm zaten table.data tfoot ile geliyor */

/* ---------- Excel butonu ---------- */
.btn-excel {
    border: 1px solid var(--accent);
    background: var(--panel);
    color: var(--accent-ink);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13.5px;
    transition: all .15s ease;
}
.btn-excel:hover:not(:disabled) { background: var(--accent); color: #fff; }
.btn-excel:disabled { opacity: .45; cursor: default; }

/* ---------- Stok: süresi geçen satır ---------- */
table.data tbody tr.row-uyari { background: #fbeee6 !important; }
table.data tbody tr.row-uyari:hover { background: #f7e2d4 !important; }
table.data tbody tr.row-uyari td.strong { color: var(--copper); }

/* genel sayısal işaret renkleri */
table.data td.pos { color: var(--pos); }
table.data td.neg { color: var(--neg); }

/* ---------- Balans ---------- */
.balans-ok {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #e8f3ee;
    border: 1px solid #b9ddca;
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-top: 8px;
}
.balans-ok-ico {
    font-size: 30px;
    color: #fff;
    background: var(--pos);
    width: 52px; height: 52px;
    border-radius: 50%;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.balans-ok strong { font-size: 18px; }
.balans-ok p { margin: 2px 0 0; color: var(--muted); }
.balans-uyari {
    background: #fbeee6;
    border: 1px solid #f0c4b8;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 14px;
}
.rozet {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--line-soft);
    color: var(--muted);
}
.rozet-kirmizi { background: #fbe0d7; color: var(--neg); }

/* ---------- Kullanıcı formu ---------- */
.form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.form-grid .field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.form-grid input, .form-grid select {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    width: 100%;
}
.form-grid input:focus, .form-grid select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn-ghost {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all .15s ease;
}
.btn-ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--muted); }
.alert-ok {
    background: #e8f3ee;
    border: 1px solid #b9ddca;
    color: var(--accent-ink);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 14px;
}
table.data tbody tr.row-pasif { opacity: .55; }
table.data tbody tr.row-pasif td:last-child { color: var(--neg); font-weight: 600; }

/* ---------- Kullanıcı listesi: satır işlem butonları ---------- */
.islem-col { white-space: nowrap; width: 1%; text-align: right; }
.btn-mini {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--accent-ink);
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    margin-left: 6px;
    transition: all .15s ease;
}
.btn-mini:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-mini-sil { color: var(--neg); border-color: #f0c4b8; }
.btn-mini-sil:hover:not(:disabled) { background: var(--neg); color: #fff; border-color: var(--neg); }
.btn-mini:disabled { opacity: .4; cursor: default; }

/* ---------- Giriş kayıt ekranı (Parça 1) ---------- */
.giris-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .giris-grid { grid-template-columns: 1fr; } }
.giris-kol {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}
.gf { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.gf > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.gf input, .gf select, .gf textarea {
    font-family: var(--font-body);
    font-size: 13.5px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
}
.gf input:focus, .gf select:focus, .gf textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gf input[readonly] { background: #efece4; color: var(--muted); }
.gf .secalan { width: 100%; }
.gf-ikili { display: flex; gap: 8px; align-items: flex-end; }
.gf-ikili .gf { flex: 1; margin-bottom: 10px; }
.gf-ikili .gf-dar { flex: 0 0 92px; }

/* autocomplete "Seç" alanı */
.secalan { position: relative; }
.secalan input {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 13.5px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
}
.secalan input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.secalan-liste {
    position: absolute;
    z-index: 40;
    left: 0; right: 0;
    top: calc(100% + 2px);
    max-height: 240px;
    overflow: auto;
    margin: 0; padding: 4px;
    list-style: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.secalan-liste li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.secalan-liste li:hover { background: #eef5f4; }
.secalan-kod { color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; }
.secalan-bos { color: var(--muted); cursor: default; font-size: 12.5px; }
.secalan-bos:hover { background: transparent; }

/* tehlikeli işlem butonu (Sil) */
.btn-danger {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--neg);
    border-radius: var(--radius-sm);
    background: var(--neg);
    color: #fff;
    cursor: pointer;
}
.btn-danger:hover:not(:disabled) { filter: brightness(0.94); }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Çıkış ekranı (Parça 1) ---------- */
.cikis-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .cikis-grid { grid-template-columns: 1fr; } }

.parti-ozet {
    display: flex; flex-wrap: wrap; gap: 16px;
    margin-top: 12px; padding: 10px 12px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 13px;
}
.parti-ozet strong { color: var(--muted); font-weight: 600; }

.miktar-tablo th, .miktar-tablo td { vertical-align: middle; }
.miktar-tablo td:first-child, .miktar-tablo th:first-child { font-weight: 600; color: var(--muted); white-space: nowrap; }
.hucre-input {
    width: 100%; box-sizing: border-box;
    font-family: var(--font-mono); font-size: 13px; text-align: right;
    padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--paper); color: var(--ink);
}
.miktar-tablo td:last-child .hucre-input, .miktar-tablo select.hucre-input { text-align: left; font-family: var(--font-body); }
.hucre-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
