﻿/* HesapPaket - Yönetim paneli (müşteri ve taşıyıcı uygulamalarıyla aynı tasarım dili)
   Kimlik: lacivert (#0E509B) yapı ve gezinme rengi; kargo turuncusu yalnızca "taahhüt" anlarında
   (yeni talep, ödeme, kodlar, aktif adım). Paketler kargo etiketi diliyle gösterilir. */

:root {
    --brand: #0E509B;          /* ana renk */
    --brand-dark: #08305E;     /* derin lacivert: başlık ve vurgu metni */
    --brand-soft: #EAF1FA;     /* buz mavisi: seçili zeminler */
    --accent: #F7941D;         /* kargo turuncusu: CTA zemini (üzerinde lacivert metin, 5.8:1) */
    --accent-dark: #E07F0B;
    --accent-ink: #C2560A;     /* beyaz zeminde turuncu metin (4.5:1) */
    --accent-soft: #FFF3E3;
    --ink: #14202E;
    --muted: #5B6878;
    --line: #DCE4EE;
    --bg: #F4F7FB;
    --radius: 10px;
    --map-route: #0E509B;
    --bs-body-font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--bg);
    --bs-link-color-rgb: 14, 80, 155;
    --bs-link-hover-color-rgb: 8, 48, 94;
    --bs-primary-rgb: 14, 80, 155;
}

body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-variation-settings: "wdth" 100; }
body.has-bottom-nav { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body.has-bottom-nav { padding-bottom: 0; } }

h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .h6, .display-6, .navbar-brand { font-variation-settings: "wdth" 115; letter-spacing: -.01em; color: var(--brand-dark); }
.h4 { font-weight: 800; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.text-brand { color: var(--brand) !important; }
.text-accent { color: var(--accent-ink) !important; }
.bg-brand { background-color: var(--brand) !important; }
.letter-space { letter-spacing: .3em; }
.tabular, .price-table td:last-child, .vc-price, .code-big, .cv-number { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- butonlar ---------- */
.btn { font-weight: 600; border-radius: var(--radius); }
.btn-lg { border-radius: 12px; font-weight: 700; }
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); --bs-btn-disabled-color: #fff; }
.btn-accent { --bs-btn-color: var(--brand-dark); --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-color: var(--brand-dark); --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark); --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-color: var(--brand-dark); --bs-btn-disabled-bg: #F9C27F; --bs-btn-disabled-border-color: #F9C27F; --bs-btn-disabled-color: var(--brand-dark); box-shadow: inset 0 -3px 0 rgba(8, 48, 94, .18); }
.btn-outline-secondary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-color: var(--brand-dark); --bs-btn-hover-border-color: #C3D3E8; }

/* ---------- durum rozetleri (marka renklerine uyarlanmış) ---------- */
.badge { font-weight: 700; border-radius: 6px; }
.badge.text-bg-warning { background-color: var(--accent-soft) !important; color: var(--accent-ink) !important; box-shadow: inset 0 0 0 1px #F9C98A; }
.badge.text-bg-info { background-color: var(--brand-soft) !important; color: var(--brand) !important; box-shadow: inset 0 0 0 1px #C3D3E8; }
.badge.text-bg-primary { background-color: var(--brand) !important; color: #fff !important; }
.badge.text-bg-secondary { background-color: #E6ECF4 !important; color: #334155 !important; }

/* ---------- kart ve form ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.form-control, .form-select { border-radius: 8px; border-color: #CBD5E1; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(14, 80, 155, .15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .3rem; color: var(--brand-dark); }
.section-title { font-size: 1.05rem; font-weight: 800; margin: .75rem 0; color: var(--brand-dark); font-variation-settings: "wdth" 115; }
.alert-light { background: #fff; }

/* ---------- üst kısım ---------- */
.demo-strip { background: var(--brand-dark); color: #C9D8EC; font-size: .72rem; text-align: center; padding: 3px; }
.bk-navbar { background: var(--brand); border-bottom: 4px solid var(--accent); }
.bk-navbar .navbar-brand { color: #fff; font-weight: 500; font-size: 1.35rem; display: flex; align-items: center; gap: .55rem; }
.bk-navbar .navbar-brand b { color: var(--accent); font-weight: 800; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; transform: rotate(-6deg); }
.bk-navbar .nav-link, .bk-navbar .btn-link { font-weight: 500; font-size: .92rem; color: #DCE8F7; text-decoration: none; }
.bk-navbar .nav-link:hover { color: #fff; }
.bk-navbar .nav-link.active { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.bk-navbar .navbar-toggler { color: #fff; }
.bk-navbar .btn-brand { --bs-btn-bg: #fff; --bs-btn-color: var(--brand); --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-color: var(--brand-dark); }
@media (max-width: 991.98px) { .bk-navbar .navbar-collapse { padding: .5rem 0 .75rem; } }

/* ---------- alt menü (mobil) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; justify-content: space-around; align-items: flex-end; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottom-nav a { flex: 1; text-align: center; color: var(--muted); text-decoration: none; font-size: .7rem; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bottom-nav a i { font-size: 1.35rem; }
.bottom-nav a.active { color: var(--brand); font-weight: 700; }
.bottom-nav .bottom-nav-cta { color: var(--brand-dark); font-weight: 700; }
.bottom-nav .bottom-nav-cta i { background: var(--accent); color: var(--brand-dark); width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-top: -26px; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(8, 48, 94, .18); }

/* ---------- giriş ---------- */
.auth-wrap { min-height: 65vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; border-top: 4px solid var(--brand); }
.auth-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 1rem; }
.code-input { letter-spacing: .5em; font-weight: 700; font-size: 1.6rem; }

/* ---------- landing: lacivert bant + kargo etiketi ---------- */
.hero { background: var(--brand); color: #fff; border-radius: 14px; padding: 2rem 1.25rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--brand-dark) 14px 28px); }
.hero h1 { color: #fff; font-weight: 800; font-variation-settings: "wdth" 120; line-height: 1.05; font-size: clamp(2rem, 5vw, 3.1rem); max-width: 14ch; }
.hero .lead { color: #D2E0F2; max-width: 46ch; }
.hero .btn-outline-light { border-radius: 12px; }
@media (min-width: 992px) { .hero { padding: 3rem 2.5rem 3.25rem; } }

/* Kargo etiketi: süreç adımları etiketin satırları olarak */
.hero-card { background: #fff; color: var(--ink); border-radius: 6px; padding: 0; transform: rotate(1.5deg); box-shadow: 0 18px 40px rgba(8, 48, 94, .35); max-width: 440px; margin-left: auto; }
.label-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 2px dashed var(--line); }
.label-head b { font-variation-settings: "wdth" 120; color: var(--brand-dark); }
.label-barcode { height: 28px; width: 110px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }
.label-body { padding: .5rem 1rem 1rem; }
.step-row { display: flex; gap: .85rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid #EEF2F7; }
.step-row:last-child { border-bottom: 0; }
.step-dot { width: 30px; height: 30px; flex: none; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.step-row b { color: var(--brand-dark); }

/* ---------- sihirbaz ---------- */
.stepper { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: 4px; }
.stepper li { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); cursor: default; position: relative; padding-top: 4px; }
.stepper li::before { content: ""; position: absolute; top: 19px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.active::before { background: var(--brand); }
.stepper li span { position: relative; z-index: 1; display: flex; margin: 0 auto 4px; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--line); font-weight: 700; color: var(--muted); transition: background-color .2s, border-color .2s; }
.stepper li em { font-style: normal; display: block; }
.stepper li.reachable { cursor: pointer; }
.stepper li.active span { background: var(--accent); border-color: var(--accent); color: var(--brand-dark); }
.stepper li.active { color: var(--brand-dark); font-weight: 700; }
.stepper li.done span { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; color: var(--brand-dark); font-variation-settings: "wdth" 115; }
.step-title i { color: var(--brand); }
.wizard-step.card { margin-bottom: 1rem; }
.wizard-nav { position: sticky; bottom: 0; display: flex; gap: .5rem; padding: .75rem 0; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 5; }
body.has-bottom-nav .wizard-nav { bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { body.has-bottom-nav .wizard-nav { bottom: 0; } }

/* ---------- harita ---------- */
.map-box { position: relative; height: 260px; border-radius: 8px; overflow: hidden; background: #E9EFF6; background-image: linear-gradient(#DCE4EE 1px, transparent 1px), linear-gradient(90deg, #DCE4EE 1px, transparent 1px); background-size: 28px 28px; }
.map-route { border-radius: 0; height: 300px; }
@media (min-width: 992px) { .map-box { height: 320px; } .map-route { height: 340px; } }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 1rem; gap: .25rem; font-size: .9rem; }
.map-placeholder i { font-size: 2rem; color: var(--brand); }
.map-placeholder small { display: block; font-size: .78rem; }
.map-error { position: absolute; left: 8px; right: 8px; bottom: 8px; background: #fee2e2; color: #991b1b; font-size: .8rem; padding: 6px 10px; border-radius: 8px; z-index: 5; }
.map-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ac-holder { min-width: 220px; }
.ac-holder gmp-place-autocomplete { width: 100%; }
.address-picker.needs-location .map-box { outline: 3px solid #dc3545; }

/* ---------- fotoğraf ---------- */
.photo-drop { display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-previews { display: contents; }
.photo-thumb, .photo-add { width: 96px; height: 96px; border-radius: 8px; overflow: hidden; position: relative; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .btn-close { position: absolute; top: 4px; right: 4px; background-color: rgba(8, 48, 94, .7); border-radius: 50%; padding: 6px; }
.photo-add { border: 2px dashed #B8C7DA; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; font-size: .75rem; background: #fff; }
.photo-add i { font-size: 1.5rem; color: var(--brand); }
.photo-sm { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

/* ---------- seçim kartları ---------- */
.chip-check { display: block; height: 100%; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: flex; flex-direction: column; gap: 2px; height: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: .6rem .7rem; background: #fff; transition: border-color .15s, background-color .15s; }
.chip-check b { color: var(--brand-dark); }
.chip-check small { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.chip-check input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 4px 0 0 var(--brand); }
.chip-check input:focus-visible + span { outline: 3px solid var(--accent); }

.vehicle-card { display: block; cursor: pointer; height: 100%; }
.vehicle-card input { position: absolute; opacity: 0; }
.vc-body { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; height: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 1rem .5rem .9rem; background: #fff; transition: border-color .15s, background-color .15s; }
.vc-body > i { font-size: 2rem; color: var(--brand); }
.vc-body b { color: var(--brand-dark); }
.vc-body small { font-size: .72rem; line-height: 1.25; }
.vc-price { font-weight: 800; color: var(--accent-ink); margin-top: 4px; }
.vc-badge { position: absolute; top: 6px; right: 6px; font-size: .6rem; }
.vehicle-card input:checked + .vc-body { border-color: var(--brand); background: var(--brand-soft); }
.vehicle-card.disabled { cursor: not-allowed; }
.vehicle-card.disabled .vc-body { opacity: .55; background: #F8FAFC; }
.vc-check { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #B8C7DA; background: #fff; display: flex; align-items: center; justify-content: center; }
.vc-check i { font-size: .85rem; color: #fff; display: none; }
.vehicle-card input:checked + .vc-body .vc-check { background: var(--brand); border-color: var(--brand); }
.vehicle-card input:checked + .vc-body .vc-check i { display: inline; }
.vehicle-card input:focus-visible + .vc-body { outline: 3px solid var(--accent); }

/* ---------- özet & fiyat ---------- */
.summary-list { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .875rem; }
.summary-list dt { color: var(--muted); font-weight: 500; }
.summary-list dd { margin: 0; word-break: break-word; }
.route-summary { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-weight: 600; margin-bottom: .75rem; font-size: .9rem; color: var(--brand-dark); }
.route-summary i { color: var(--brand); }
.price-card { position: sticky; top: 90px; border-top: 4px solid var(--brand); }
.price-table td { padding: .45rem .25rem; font-size: .875rem; border-color: #EEF2F7; }
.price-table td small { display: block; color: var(--muted); font-size: .72rem; }
.price-table .pl-subtotal td { font-weight: 700; background: #F6F9FD; color: var(--brand-dark); }
.price-table .pl-vat td { font-weight: 600; }
.price-table .pl-extra td { color: #334155; }
.price-table .pl-total td { font-weight: 800; font-size: 1.15rem; border-bottom: 0; color: var(--brand-dark); background: var(--accent-soft); box-shadow: inset 0 3px 0 var(--accent); }
.price-table .pl-total td small { color: #7A5420; }
.vehicle-quotes .accordion-button { padding: .6rem .75rem; font-size: .9rem; gap: .25rem; color: var(--brand-dark); }
.vehicle-quotes .accordion-button b { font-variant-numeric: tabular-nums; }
.vehicle-quotes .accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
.vehicle-quotes .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(14, 80, 155, .15); }
.vehicle-quotes .accordion-button small { font-weight: 400; font-size: .72rem; }
.vehicle-quotes .accordion-item { border-color: var(--line); }
.option-list { list-style: none; padding: 0; margin: 0; }
.option-list li { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid #EEF2F7; font-size: .875rem; }
.option-list li:last-child { border-bottom: 0; }
.option-list li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.option-list li.chosen { font-weight: 700; color: var(--brand-dark); }

/* ---------- liste / takip ---------- */
.shipment-card { color: inherit; border-left: 4px solid var(--brand); transition: border-color .15s; }
.shipment-card:hover { border-left-color: var(--accent); }
.track-no { font-variation-settings: "wdth" 120; font-weight: 700; color: var(--brand); font-size: .8rem; letter-spacing: .04em; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.route-mini { font-size: .85rem; color: #334155; display: flex; flex-direction: column; gap: 2px; }
.route-mini i { font-size: .6rem; vertical-align: middle; margin-right: 4px; }
.route-mini .bi-geo-alt-fill { font-size: .8rem; }
.progress { background: #E6ECF4; }
.empty-state { border-style: dashed; border-width: 2px; background: transparent; }

.track-steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.track-steps::before { content: ""; position: absolute; top: 20px; left: 10%; right: 10%; height: 3px; background: var(--line); }
.track-steps li { flex: 1; text-align: center; position: relative; font-size: .75rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ts-icon { width: 42px; height: 42px; border-radius: 50%; background: #E6ECF4; color: #6B7A8C; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; position: relative; z-index: 1; border: 3px solid #fff; }
.track-steps li.done .ts-icon { background: var(--brand); color: #fff; }
.track-steps li.current .ts-icon { background: var(--accent); color: var(--brand-dark); box-shadow: 0 0 0 5px var(--accent-soft); animation: pulse 2s infinite; }
.track-steps li.done, .track-steps li.current { color: var(--brand-dark); font-weight: 600; }
.ts-text { line-height: 1.15; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 5px var(--accent-soft); } 50% { box-shadow: 0 0 0 9px var(--accent-soft); } }

.addr-block { display: flex; gap: .75rem; margin-bottom: .75rem; font-size: .9rem; }
.addr-block > i { margin-top: 4px; }
.event-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.event-list li { border-left: 2px solid var(--line); padding: 0 0 .7rem .85rem; position: relative; }
.event-list li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.event-list li:first-child::before { background: var(--accent); }
.event-list small { display: block; color: var(--muted); font-size: .72rem; }

/* Alım kodu: kargo etiketi */
.code-card { background: #fff; border: 2px solid var(--brand-dark); border-radius: 6px; overflow: hidden; }
.code-card .card-body { padding: 0; }
.code-card .code-head { background: var(--accent); color: var(--brand-dark); font-weight: 800; padding: .5rem 1rem; display: flex; justify-content: space-between; align-items: center; font-variation-settings: "wdth" 115; }
.code-big { font-size: 3rem; font-weight: 800; letter-spacing: .3em; padding: .75rem 0 .25rem .3em; color: var(--brand-dark); font-variation-settings: "wdth" 125; }
.code-card .code-foot { border-top: 2px dashed var(--line); padding: .6rem 1rem .8rem; font-size: .85rem; color: #334155; }
.avatar { width: 48px; height: 48px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex: none; }
.sms-bubble { background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: .6rem .8rem; font-size: .875rem; }
.sms-bubble small { display: block; color: var(--muted); font-size: .72rem; margin-bottom: 2px; }

/* ---------- ödeme kartı ---------- */
.card-visual { background: var(--brand); color: #fff; border-radius: 14px; padding: 1.2rem 1.4rem; max-width: 380px; aspect-ratio: 1.586; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; box-shadow: 0 16px 32px rgba(8, 48, 94, .25); }
.card-visual::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--accent); opacity: .9; }
.card-visual > * { position: relative; }
.cv-number { font-size: 1.3rem; letter-spacing: .12em; font-family: ui-monospace, Consolas, monospace; }

@media (max-width: 575.98px) {
    .stepper li em { font-size: .64rem; }
    .code-big { font-size: 2.4rem; }
    .summary-list { grid-template-columns: 1fr; gap: 0; }
    .summary-list dd { margin-bottom: .4rem; }
    .price-card { position: static; }
    .hero-card { transform: none; margin-top: .5rem; }
}

/* ---------- taşıyıcıya özel ---------- */
.bk-navbar .navbar-brand small.text-muted { color: #C9D8EC !important; font-weight: 500; font-variation-settings: "wdth" 100; }
.job-card { color: inherit; border-left: 4px solid var(--brand); transition: border-color .15s; }
.job-card:hover { border-left-color: var(--accent); }
.job-earning { font-size: 1.45rem; font-weight: 800; color: var(--brand-dark); line-height: 1; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 112; }
.job-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .78rem; color: var(--muted); }
.job-meta i { color: var(--brand); }
.loc-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.loc-card { border-left: 4px solid var(--accent); }
.stat-tile { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 1rem; }
.stat-tile.highlight { border-top-color: var(--accent); background: var(--accent-soft); }
.stat-tile .v { font-size: 1.5rem; font-weight: 800; color: var(--brand-dark); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 112; }
.stat-tile .l { font-size: .78rem; color: var(--muted); }
.action-card { border: 2px solid var(--brand-dark); border-top: 6px solid var(--accent); border-radius: 6px; }
.code-entry { letter-spacing: .5em; font-weight: 800; font-size: 2rem; text-align: center; color: var(--brand-dark); border: 2px dashed #9FB6D3; background: var(--brand-soft); }
.code-entry:focus { background: #fff; }
.radius-pills .btn { border-radius: 999px; }

/* ---------- yönetim paneli: yerleşim ---------- */
.adm-body { background: var(--bg); }
.adm-shell { display: flex; min-height: 100vh; }
.adm-side { width: 248px; flex: none; background: var(--brand-dark); color: #C9D8EC; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 1.1rem .8rem; border-right: 4px solid var(--accent); z-index: 1040; }
.adm-brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-size: 1.25rem; font-weight: 500; font-variation-settings: "wdth" 115; padding: 0 .4rem; }
.adm-brand b { color: var(--accent); font-weight: 800; }
.adm-brand:hover { color: #fff; }
.adm-brand-sub { font-size: .75rem; color: #8FA9CC; padding: .15rem .4rem 0 3.1rem; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 1.2rem; flex: 1; }
.adm-nav .grp { font-size: .72rem; color: #7F9BBF; margin: .9rem .75rem .3rem; font-weight: 600; }
.adm-nav a { display: flex; gap: .65rem; align-items: center; padding: .5rem .75rem; border-radius: 8px; color: #C9D8EC; text-decoration: none; font-weight: 500; font-size: .92rem; }
.adm-nav a i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.adm-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-nav a.active { background: var(--brand); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.adm-user { border-top: 1px solid rgba(255, 255, 255, .12); padding: .9rem .4rem 0; color: #DCE8F7; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top { display: none; }
.adm-content { padding: 1.5rem 1.75rem 2.5rem; max-width: 1480px; width: 100%; }
.adm-backdrop { display: none; }
@media (max-width: 991.98px) {
    .adm-side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; }
    body.adm-open .adm-side { transform: none; }
    body.adm-open .adm-backdrop { display: block; position: fixed; inset: 0; background: rgba(8, 48, 94, .45); z-index: 1035; }
    .adm-top { display: flex; align-items: center; gap: .75rem; background: var(--brand); color: #fff; padding: .55rem 1rem; border-bottom: 4px solid var(--accent); position: sticky; top: 0; z-index: 1030; }
    .adm-top-title { font-weight: 500; font-variation-settings: "wdth" 115; }
    .adm-top-title b { color: var(--accent); }
    .adm-content { padding: 1rem; }
}

/* giriş ekranı */
.adm-guest { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--brand-dark); background-image: repeating-linear-gradient(-45deg, rgba(247, 148, 29, .06) 0 18px, transparent 18px 36px); }
.adm-guest > .alert { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 10; }
.adm-login { width: 100%; max-width: 420px; }
.adm-login-brand { display: flex; align-items: center; justify-content: center; gap: .55rem; color: #fff; font-size: 1.6rem; font-variation-settings: "wdth" 118; margin-bottom: 1rem; }
.adm-login-brand b { color: var(--accent); }
.adm-login .auth-card { border-top: 4px solid var(--accent); }

/* ---------- yönetim paneli: içerik ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.1rem; }
.page-head h1 { font-weight: 800; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.filter-pills .btn { border-radius: 999px; }
.filter-pills .cnt { font-variant-numeric: tabular-nums; opacity: .7; margin-left: .2rem; }
.data-table { --bs-table-bg: transparent; }
.data-table thead th { font-size: .75rem; color: var(--muted); font-weight: 600; background: #F6F9FD; border-bottom: 1px solid var(--line); white-space: nowrap; padding: .55rem .6rem; }
.data-table td { padding: .55rem .6rem; border-color: #EEF2F7; }
.data-table tfoot th { background: var(--accent-soft); color: var(--brand-dark); }
.row-link { cursor: pointer; }
.stat-tile { color: inherit; height: 100%; }
.stat-tile .v { font-size: 1.3rem; white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1499.98px) { .stat-tile .v { font-size: 1.12rem; } }
a.stat-tile:hover { border-color: #C3D3E8; }
.status-strip { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.status-strip a { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); text-decoration: none; font-size: .88rem; padding: .25rem 0; }
.status-strip a b { font-variant-numeric: tabular-nums; color: var(--brand-dark); }
.status-strip a:hover { color: var(--brand); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #94A3B8; }
.dot-warning { background: var(--accent); }
.dot-info { background: #7FA6D6; }
.dot-primary { background: var(--brand); }
.dot-success { background: #198754; }
.dot-danger { background: #dc3545; }
.wait-list { list-style: none; padding: 0; margin: 0; }
.wait-list li a { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .6rem .5rem; border-bottom: 1px solid #EEF2F7; color: inherit; text-decoration: none; border-radius: 6px; }
.wait-list li:last-child a { border-bottom: 0; }
.wait-list li a:hover { background: #F6F9FD; }
.map-admin { height: 640px; border-radius: 0; }
@media (max-width: 991.98px) { .map-admin { height: 420px; } }
.map-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); }
.map-legend .lg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 3px; border: 2px solid #fff; box-shadow: 0 0 0 1px #CBD5E1; }
.lg-wait { background: #F7941D; } .lg-assigned { background: #0E509B; } .lg-onway { background: #198754; }
.map-legend .lg-carrier { background: #08305E; border-radius: 2px; }
.param-group { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; height: 100%; background: #FBFCFE; }
.param-group h3 { color: var(--brand-dark); margin-bottom: .6rem; }
.param-group h3 i { color: var(--brand); }
.param-row { display: grid; grid-template-columns: 1fr 120px; gap: .5rem; align-items: center; padding: .3rem 0; border-bottom: 1px dashed #E6ECF4; }
.param-row:last-child { border-bottom: 0; }
.param-row label { font-size: .8rem; color: #334155; line-height: 1.25; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.edit-table input.form-control, .edit-table .form-select { min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.edit-table .form-select { text-align: left; min-width: 110px; }
.edit-table .sticky-col { position: sticky; left: 0; background: #fff; z-index: 1; }
.edit-table thead .sticky-col { background: #F6F9FD; }
.code-attempts { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .75rem; background: #F6F9FD; border-radius: 8px; }
.code-mini { flex: 1; border: 2px dashed #9FB6D3; border-radius: 8px; padding: .4rem .6rem; text-align: center; }
.code-mini small { display: block; color: var(--muted); font-size: .72rem; }
.code-mini b { font-size: 1.4rem; letter-spacing: .25em; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.pay-row { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid #EEF2F7; }
.split-box { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.split-box > div { background: #F6F9FD; border-radius: 8px; padding: .5rem .6rem; display: flex; flex-direction: column; }
.split-box span { color: var(--muted); font-size: .72rem; }
.split-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem; }
.split-flow > div { border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; display: flex; flex-direction: column; gap: 2px; }
.split-flow > div.hl { background: var(--accent-soft); border-color: #F9C98A; }
.split-flow span { font-size: .75rem; color: var(--muted); }
.split-flow b { font-size: 1.1rem; color: var(--brand-dark); font-variant-numeric: tabular-nums; }

/* ---------- özel araç ikonları (Bootstrap Icons'ta bulunmayanlar): motosiklet, kamyonet (pikap), tır (dorse) ---------- */
.bi-motosiklet::before, .bi-kamyonet::before, .bi-tir::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; background-color: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.bi-motosiklet::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='3.4' cy='11.2' r='2.3'/%3E%3Ccircle cx='12.6' cy='11.2' r='2.3'/%3E%3Cpath d='M3.4 11.2 5.6 8.2h4.6l2.4 3M9.8 5.2h1.6l1.2 3'/%3E%3Cpath d='M6.4 11.2h3.2l1-3'/%3E%3C/g%3E%3Cpath d='M5.2 8.4 6.6 6.3h3.6l.4 1.9z' fill='%23000'/%3E%3Cpath d='M2.2 7.6h3.1' stroke='%23000' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='3.4' cy='11.2' r='2.3'/%3E%3Ccircle cx='12.6' cy='11.2' r='2.3'/%3E%3Cpath d='M3.4 11.2 5.6 8.2h4.6l2.4 3M9.8 5.2h1.6l1.2 3'/%3E%3Cpath d='M6.4 11.2h3.2l1-3'/%3E%3C/g%3E%3Cpath d='M5.2 8.4 6.6 6.3h3.6l.4 1.9z' fill='%23000'/%3E%3Cpath d='M2.2 7.6h3.1' stroke='%23000' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E"); }
.bi-kamyonet::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M2.3 11.3H1.2V8.2h6.9V4.9h3.5l2 3h.7c.6 0 1.1.5 1.1 1.1v2.3h-1.2M5.6 11.3h4.8'/%3E%3Cpath d='M9.2 5.9v2h3.2'/%3E%3Ccircle cx='3.95' cy='11.3' r='1.6'/%3E%3Ccircle cx='12' cy='11.3' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M2.3 11.3H1.2V8.2h6.9V4.9h3.5l2 3h.7c.6 0 1.1.5 1.1 1.1v2.3h-1.2M5.6 11.3h4.8'/%3E%3Cpath d='M9.2 5.9v2h3.2'/%3E%3Ccircle cx='3.95' cy='11.3' r='1.6'/%3E%3Ccircle cx='12' cy='11.3' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); }
.bi-tir::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M.9 3.2h14.2v6.6H.9z'/%3E%3Cpath d='M12.4 9.8v2.3M11.6 12.1h1.6M5.6 3.2v6.6M10.3 3.2v6.6'/%3E%3Ccircle cx='2.8' cy='11.3' r='1.25'/%3E%3Ccircle cx='5.6' cy='11.3' r='1.25'/%3E%3C/g%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.1' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M.9 3.2h14.2v6.6H.9z'/%3E%3Cpath d='M12.4 9.8v2.3M11.6 12.1h1.6M5.6 3.2v6.6M10.3 3.2v6.6'/%3E%3Ccircle cx='2.8' cy='11.3' r='1.25'/%3E%3Ccircle cx='5.6' cy='11.3' r='1.25'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---------- hesaplama rehberi ---------- */
.guide-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--brand-soft); border: 1px solid #C3D3E8; border-radius: var(--radius); padding: .8rem 1rem; color: var(--brand-dark); font-size: .9rem; margin-bottom: .75rem; }
.guide-note > i { font-size: 1.15rem; color: var(--brand); line-height: 1.3; }
.guide-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: .35rem; overflow-x: auto; padding: .6rem 0; background: var(--bg); scrollbar-width: none; }
.guide-nav::-webkit-scrollbar { display: none; }
.guide-nav a { flex: none; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.guide-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
@media (max-width: 991.98px) { .guide-nav { position: static; } }
.guide-sec { padding-top: 1.25rem; scroll-margin-top: 3.5rem; }
.guide-sec + .guide-sec { border-top: 1px solid var(--line); margin-top: 1.75rem; }
.guide-sec > h2 { font-weight: 800; margin-bottom: .35rem; }
[id^="alan-"], [id^="par-"], .ex-card { scroll-margin-top: 4rem; }

/* fiyat fişi: adımlar */
.receipt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rc-row { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .75rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid #EEF2F7; }
.rc-row:last-child { border-bottom: 0; }
.rc-row b { display: block; color: var(--brand-dark); }
.rc-row span { color: #3B4A5C; font-size: .88rem; }
.rc-row > a { font-size: .8rem; white-space: nowrap; }
.rc-n { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: inline-flex !important; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand) !important; font-weight: 800; font-size: .9rem !important; }
.rc-sum { background: #F6F9FD; border-top: 2px dashed #C3D3E8; }
.rc-sum .rc-n { background: var(--brand); color: #fff !important; }
.rc-total { background: var(--accent-soft); }
.rc-total .rc-n { background: var(--accent); color: var(--brand-dark) !important; }
@media (max-width: 575.98px) { .rc-row { grid-template-columns: 2.2rem 1fr; } .rc-row > a, .rc-row > span:last-child:empty { grid-column: 2; } }
.split-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: .85rem 1rem; height: 100%; }
.split-card .lbl { font-weight: 700; color: var(--brand-dark); }
.split-card .lbl i { color: var(--brand); }
.split-card .frm { font-weight: 600; margin: .2rem 0 .35rem; color: var(--ink); }

/* genel toplamın paylaşımı */
.money-split { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.ms-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; background: #fff; }
.ms-bar span { display: block; min-width: 3px; }
.ms-legend { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .82rem; }
.ms-legend b { font-variant-numeric: tabular-nums; margin-left: .25rem; color: var(--brand-dark); }
.ms-legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.seg-carrier { background: var(--brand); }
.seg-toll { background: #7FA6D6; }
.seg-comm { background: var(--accent); }
.seg-vat { background: #94A3B8; }
.seg-ins { background: #2F8F6B; }

/* alan kartları */
.field-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; height: 100%; font-size: .9rem; }
.field-card p { margin-bottom: .6rem; color: #2B3A4C; }
.field-card.field-wide { height: auto; }
.field-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .55rem; }
.field-chip { display: inline-block; background: var(--brand-dark); color: #fff; font-weight: 700; font-size: .8rem; padding: .18rem .55rem; border-radius: 6px; font-variation-settings: "wdth" 110; }
.field-unit { font-size: .78rem; color: var(--muted); }
.field-calc, .field-ex { border-radius: 8px; padding: .5rem .65rem; font-size: .85rem; line-height: 1.45; }
.field-calc { background: #F6F9FD; margin-bottom: .45rem; }
.field-ex { background: var(--accent-soft); }
.field-calc > span, .field-ex > span { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: .1rem; }
.field-ex > span { color: var(--accent-ink); }
.field-ex b, .field-calc b { color: var(--brand-dark); font-variant-numeric: tabular-nums; }
:target.field-card, :target.param-group { box-shadow: 0 0 0 3px var(--accent); }

.formula-box { border: 2px dashed #9FB6D3; border-radius: var(--radius); padding: .75rem 1rem; background: #fff; }
.formula-box .fb-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.formula-box .fb-eq { font-weight: 700; color: var(--brand-dark); font-size: .95rem; }
.formula-box .fb-ex { font-size: .86rem; margin-top: .35rem; color: #2B3A4C; }
.par-list { margin: 0; font-size: .86rem; }
.par-list dt { font-weight: 600; color: var(--ink); margin-top: .55rem; }
.par-list dt:first-child { margin-top: 0; }
.par-list dt b { color: var(--brand); font-variant-numeric: tabular-nums; margin-left: .3rem; white-space: nowrap; }
.par-list dd { margin: .1rem 0 0; color: #3B4A5C; }
.par-list dd b { color: var(--brand-dark); }

/* örnekler */
.ex-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.ex-index a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: .88rem; }
.ex-index a:hover { border-color: #C3D3E8; background: #FBFCFE; }
.ex-index b { color: var(--brand-dark); font-size: .85rem; }
.ex-no { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--brand); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.ex-no.lg { width: 2.4rem; height: 2.4rem; font-size: 1.15rem; background: var(--accent); color: var(--brand-dark); border-radius: 8px; }
.ex-card { margin-bottom: 1.25rem; border-top: 4px solid var(--brand); }
.ex-head { display: flex; gap: .85rem; align-items: flex-start; }
@media (min-width: 1200px) { .ex-side { position: sticky; top: 4.25rem; } }
.ex-box { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; background: #FBFCFE; }
.ex-box-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: .4rem; }
.ex-inputs { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .8rem; margin: 0; font-size: .85rem; }
.ex-inputs dt { color: var(--muted); font-weight: 500; }
.ex-inputs dd { margin: 0; }
.ex-learn { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.ex-learn li { position: relative; padding-left: 1.35rem; margin-bottom: .35rem; }
.ex-learn li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--accent-ink); font-weight: 700; }
.compare-table .col-max { background: var(--accent-soft); }
.compare-table .row-sum td { font-weight: 700; background: #F6F9FD; }
.compare-table .row-sum td.col-max { background: #FDE9CF; }
.compare-table .row-total td { font-weight: 800; color: var(--brand-dark); border-top: 2px solid var(--brand); }
.compare-table .row-split td { color: var(--muted); font-size: .85rem; }
.prov-box { background: var(--brand-soft); border: 1px solid #C3D3E8; border-radius: var(--radius); padding: .75rem .9rem; color: var(--brand-dark); }
.prov-box ul { padding-left: 1.1rem; }

/* adım adım hesap */
.calc-details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .6rem; }
.calc-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem; font-weight: 700; color: var(--brand-dark); }
.calc-details > summary::-webkit-details-marker { display: none; }
.calc-details > summary::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .8rem; color: var(--brand); transition: transform .15s; }
.calc-details[open] > summary::before { transform: rotate(90deg); }
.calc-details[open] > summary { border-bottom: 1px solid var(--line); }
.calc-group-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); background: #F6F9FD; padding: .4rem .85rem; border-bottom: 1px solid #EEF2F7; }
.calc-row { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: .5rem .85rem; border-bottom: 1px solid #EEF2F7; }
.calc-group:last-child .calc-row:last-child { border-bottom: 0; }
.calc-title { font-weight: 600; font-size: .9rem; }
.calc-formula { font-size: .85rem; color: var(--brand-dark); font-variant-numeric: tabular-nums; word-break: break-word; }
.calc-note { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.calc-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; color: var(--ink); }
.calc-amount.neg { color: #198754; }
.calc-row.k-info .calc-title { font-weight: 500; color: #3B4A5C; }
.calc-row.k-sum { background: #F6F9FD; }
.calc-row.k-sum .calc-title, .calc-row.k-sum .calc-amount { color: var(--brand-dark); font-weight: 800; }
.calc-row.k-total { background: var(--accent-soft); }
.calc-row.k-total .calc-title, .calc-row.k-total .calc-amount { color: var(--brand-dark); font-weight: 800; font-size: 1rem; }
.calc-row.k-split .calc-amount { color: var(--brand); }
.calc-row.off .calc-title, .calc-row.off .calc-formula { color: #8392A5; }
.calc-row.off .calc-amount { color: #A3AFBF; font-weight: 500; }
.calc-tag { display: inline-block; font-size: .68rem; font-weight: 600; color: #6B7A8C; background: #EEF2F7; border-radius: 4px; padding: 0 .35rem; margin-left: .3rem; vertical-align: 1px; }
@media (max-width: 575.98px) { .calc-row { gap: .25rem .6rem; padding: .5rem .7rem; } .calc-amount { font-size: .86rem; } }

/* kendin hesapla */
.chip-checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; }
.chip-check span { display: inline-block; border: 1px solid #CBD5E1; background: #fff; border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; cursor: pointer; }
.chip-check span small { color: var(--muted); }
.chip-check input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-check input:checked + span small { color: #D6E4F5; }
.chip-check input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.th-help { color: #9FB6D3; margin-left: .2rem; text-decoration: none; }
.th-help:hover { color: var(--brand); }
