/* ===== Yakıt SMS - Tema ===== */
:root {
    --sidebar: #1f2b38;
    --sidebar-2: #2a3846;
    --sidebar-text: #e6ebf1;
    --orange: #f07c1b;
    --orange-2: #e06a0a;
    --orange-soft: #fff3e8;
    --bg: #f3f5f8;
    --card: #ffffff;
    --border: #dfe3e8;
    --border-2: #e9ecf0;
    --text: #1f2933;
    --muted: #6b7682;
    --green: #1a8a3a;
    --green-soft: #e7f6ea;
    --red: #d64545;
    --red-soft: #fdecec;
    --amber: #d98a00;
    --amber-soft: #fff6e0;
    --blue: #2563eb;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3 { margin: 0 0 12px; }
hr { border: 0; border-top: 1px solid var(--border-2); margin: 18px 0; }

/* ===== Layout ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 215px; flex-shrink: 0; background: var(--sidebar); color: var(--sidebar-text);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 22px; font-size: 23px; font-weight: 700; color: #fff; }
.brand-icon { color: var(--orange); display: inline-flex; }
.brand-icon .ic { fill: var(--orange); stroke: var(--orange); }
.sidebar-close { display: none; margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; }
.nav { display: flex; flex-direction: column; gap: 4px; padding: 0 10px; }
.nav a {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 6px;
    color: var(--sidebar-text); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--sidebar-2); text-decoration: none; }
.nav a.active { background: var(--orange); color: #fff; box-shadow: 0 2px 6px rgba(240, 124, 27, .35); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin: -2px 0 4px 26px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .15); }
.nav-sub a { padding: 8px 12px; gap: 10px; font-size: 13.5px; font-weight: 500; color: rgba(230, 235, 241, .8); }
.nav-sub a.active { background: rgba(240, 124, 27, .18); color: #fff; box-shadow: none; }
.nav-sub a.active .ic { color: var(--orange); }
/* Sayfa içi alt başlık sekmeleri */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--border); }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; text-decoration: none; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.active { color: var(--orange); border-bottom-color: var(--orange); }
.station { margin-top: auto; padding: 14px 10px 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.station-label { font-size: 12px; color: #c4ccd5; margin: 0 4px 8px; }
.station-box { background: #fff; border-radius: 8px; min-height: 86px; display: flex; align-items: center; justify-content: center; padding: 8px; }
.station-box img { max-width: 100%; max-height: 80px; object-fit: contain; }
.station-name { color: var(--sidebar); font-weight: 700; text-align: center; font-size: 15px; }
.sidebar-backdrop { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: 64px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center;
    padding: 0 22px; gap: 14px; position: sticky; top: 0; z-index: 30;
}
.menu-btn { display: none; background: none; border: 0; cursor: pointer; color: var(--text); padding: 4px; }
.page-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar-date { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; color: var(--text); padding: 6px 4px; }
.user-ic { color: var(--orange); display: inline-flex; }
.user-ic .ic { fill: var(--orange); }
.dropdown {
    display: none; position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--border);
    border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); min-width: 200px; padding: 6px; z-index: 50;
}
.dropdown.open { display: block; }
.dropdown-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border-2); margin-bottom: 4px; }
.dropdown-head b, .dropdown-head small { display: block; }
.dropdown-head small { color: var(--muted); }
.dropdown a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; color: var(--text); }
.dropdown a:hover { background: var(--bg); text-decoration: none; }
.icon-btn { color: var(--text); display: inline-flex; padding: 4px; }
.content { padding: 16px 18px 28px; display: flex; flex-direction: column; gap: 16px; }

/* ===== Cards ===== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card.narrow { max-width: 520px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head .card-title { margin-bottom: 0; }
.card-title { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; padding-bottom: 8px; border-bottom: 3px solid var(--orange); margin-bottom: 16px; }
.card-title .count { background: var(--bg); color: var(--muted); font-size: 12px; border-radius: 20px; padding: 2px 8px; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 22px; box-shadow: var(--shadow); min-width: 0; }
.stat-ic { color: var(--orange); display: inline-flex; }
.stat small { display: block; color: var(--text); font-size: 13px; margin-bottom: 4px; }
.stat b { font-size: 25px; font-weight: 700; white-space: nowrap; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ===== Forms ===== */
label { display: block; font-size: 13px; color: var(--text); margin-bottom: 12px; }
label > input, label > select, label > textarea, .input-suffix { margin-top: 5px; }
input, select, textarea {
    width: 100%; font: inherit; font-size: 14px; color: var(--text); background: #fff;
    border: 1px solid #cfd5dc; border-radius: 6px; padding: 9px 11px; outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 124, 27, .15); }
input[readonly] { background: #f6f7f9; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0; accent-color: var(--orange); }
input[type=file] { padding: 7px; }
textarea { resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.hint { display: block; font-size: 12px; color: var(--muted); font-style: italic; margin-top: 4px; }
.input-suffix { display: flex; align-items: center; border: 1px solid #cfd5dc; border-radius: 6px; background: #fff; }
.input-suffix input { border: 0; box-shadow: none; margin: 0; }
.input-suffix em { font-style: normal; color: var(--muted); padding: 0 12px; font-size: 13px; }
.input-suffix:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 124, 27, .15); }
.total-input { background: #f6f7f9 !important; text-align: center; font-weight: 600; font-size: 16px !important; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.field { margin-bottom: 12px; }
.field-label { display: block; font-size: 13px; margin-bottom: 6px; }
.radios { display: flex; flex-direction: column; gap: 7px; }
.radio { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-size: 14px; }
.sale-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .check { align-self: center; }
.form-stack { display: flex; flex-direction: column; }
.form-stack > .btn { align-self: flex-start; }
.form-actions { display: flex; gap: 8px; margin-top: 4px; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; align-items: end; }
.filter-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; grid-column: 1 / -1; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar input[type=date] { width: auto; }
.spacer { flex: 1; }
.search-box { position: relative; max-width: 260px; margin-bottom: 12px; }
.card-head .search-box, .btn-group .search-box { margin-bottom: 0; }
.search-box input { padding-right: 34px; }
.search-box .ic { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text); pointer-events: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.tag { border: 1px dashed #c3cad2; background: #fafbfc; border-radius: 5px; padding: 3px 7px; font-size: 12px; cursor: pointer; font-family: monospace; }
.tag:hover { border-color: var(--orange); color: var(--orange); }
.logo-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.logo-preview img { max-height: 60px; max-width: 180px; border: 1px solid var(--border); border-radius: 6px; padding: 4px; }
.logo-preview label { margin: 0; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600;
    padding: 9px 16px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; line-height: 1.2;
    text-decoration: none !important; transition: background .15s, border .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--orange-2); }
.btn-outline { background: #fff; color: var(--blue); border-color: #9ab6e8; }
.btn-outline:hover { background: #f1f6ff; }
.btn-outline-red { background: #fff; color: var(--red); border-color: #ef9a9a; }
.btn-outline-red:hover { background: var(--red-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 18px; font-size: 15px; margin-top: 4px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; font-weight: 600; }
.btn-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.resend-form input { width: 200px; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-2); border-radius: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { background: #fafbfc; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfd; }
.table tfoot td { background: #fafbfc; border-top: 1px solid var(--border); }
.table-report th, .table-report td { text-align: center; }
.table-report th.r, .table-report td.r { text-align: right; }
.table tr.hl td { background: var(--orange-soft); }
.table tr.cancelled td { color: #a0a8b1; text-decoration: line-through; }
.table tr.cancelled td:last-child { text-decoration: none; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.empty { text-align: center !important; color: var(--muted); padding: 24px !important; }
.msg-cell { max-width: 380px; font-size: 13px; }
.summary-pill { background: var(--orange-soft); color: var(--text); padding: 6px 12px; border-radius: 20px; font-size: 13px; }

/* ===== Badges ===== */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green); border-color: #b7e2c1; }
.badge-red { background: var(--red-soft); color: var(--red); border-color: #f3c0c0; }
.badge-amber { background: var(--amber-soft); color: var(--amber); border-color: #f2d899; }
.badge-gray { background: #f1f3f5; color: #6b7682; border-color: #e1e5ea; }

/* ===== SMS status ===== */
.sms-status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.sms-big { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.sms-big.ok { color: var(--green); }
.sms-big.ok .ic { fill: var(--green); stroke: #fff; }
.sms-big.err { color: var(--red); }
.sms-big.err .ic { fill: var(--red); stroke: #fff; }
.sms-big.muted { color: var(--muted); }
.sms-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; font-size: 13px; }
.sms-meta dt { color: var(--text); }
.sms-meta dd { margin: 0; }
.sms-msg { background: var(--green-soft); border: 1px solid #b7e2c1; border-radius: 8px; padding: 12px 16px; }
.sms-msg small { display: block; color: var(--muted); margin-bottom: 4px; font-size: 12px; }
.sms-msg p { margin: 0; line-height: 1.65; font-size: 14px; }
.pending-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--amber); font: inherit; font-size: 14px; cursor: pointer; padding: 0; font-weight: 600; }
.pending-btn:hover span { text-decoration: underline; }
.pending-btn.loading { opacity: .6; pointer-events: none; }
.delivered { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.proof { display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 24px; align-items: start; }
.proof-status { border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; }
.proof-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.proof-meta dt { color: var(--muted); }
.proof-meta dd { margin: 0; }

/* ===== Alerts ===== */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--green-soft); color: #13652b; border-color: #b7e2c1; }
.alert-error { background: var(--red-soft); color: #a32b2b; border-color: #f3c0c0; }
.alert-warning { background: var(--amber-soft); color: #8a5a00; border-color: #f2d899; }
.content > .alert { margin: 0; }

/* ===== Misc ===== */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.link { color: var(--blue); text-decoration: underline; }
.mt0 { margin-top: 0; }
.mt8 { margin-top: 8px; }
.mb12 { margin-bottom: 12px; }
.table td.desc { min-width: 220px; text-align: left; white-space: normal; }
.mt16 { margin-top: 16px; }
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 34px; text-align: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: #fff; }
.pagination a.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination span { border: 0; background: none; }

/* ===== Auth ===== */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px 16px; background: linear-gradient(135deg, #1f2b38 0%, #2c3e50 100%); }
.auth-card { background: #fff; width: 100%; max-width: 400px; border-radius: 14px; padding: 30px 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.install-card { max-width: 620px; }
.auth-logo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; margin-bottom: 18px; color: var(--sidebar); }
.auth-logo small { font-size: 15px; color: var(--muted); font-weight: 500; }
.auth-station { text-align: center; margin-bottom: 18px; }
.auth-station img { max-height: 80px; max-width: 100%; }
.auth-station-name { font-weight: 600; color: var(--muted); margin: -8px 0 18px; }
.auth-card .alert { margin-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.checklist li.ok { color: var(--green); }
.checklist li.fail { color: var(--red); }
.auth-card h3 { font-size: 16px; margin-top: 18px; }

/* ===== Print ===== */
.print-body { background: #fff; }
.print-toolbar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 20px; background: #f6f7f9; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.print-toolbar span { margin-right: auto; color: var(--muted); }
.print-page { max-width: 1050px; margin: 0 auto; padding: 24px; }
.print-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--orange); padding-bottom: 12px; margin-bottom: 16px; }
.print-head h1 { font-size: 24px; margin: 0 0 4px; }
.print-h2 { font-size: 16px; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--orange); }
.print-h2 small { color: var(--muted); font-weight: 500; }
.print-page.print-wide { max-width: 1250px; }
.print-table tfoot td { background: #f8f9fb; }
.print-logo { max-height: 56px; max-width: 200px; }
.print-sum { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.print-sum td { border: 1px solid var(--border); padding: 8px 10px; }
.print-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.print-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 12.5px; }
.print-table th, .print-table td { border: 1px solid #cfd5dc; padding: 6px 8px; text-align: left; }
.print-table th { background: #f3f5f8; }
.print-table .r { text-align: right; }
.print-sign { display: flex; justify-content: space-around; margin-top: 50px; }
.print-sign div { border-top: 1px solid #333; width: 200px; text-align: center; padding-top: 6px; }

/* Cari hesap */
.mt16 { margin-top: 16px; }
.stats.stats-6 { grid-template-columns: repeat(3, 1fr); }
.stat small.muted { display: block; font-size: 11.5px; margin-top: 2px; }
.stat > div { min-width: 0; }
.stat b.stat-text { font-size: 17px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.sub-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; margin: 4px 0 10px; }
.alloc-in { width: 110px; text-align: right; padding: 6px 8px; }
.alloc-in[readonly] { background: #f6f7f9; }
input.is-auto { background: var(--orange-soft); font-weight: 700; }
.alloc-summary { margin: 8px 0 12px; }
.pay-preview { border: 1px solid var(--border); border-radius: 10px; background: #f8f9fb; padding: 12px 14px; }
.pay-preview-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.pay-preview-result { margin: 8px 0 0; font-size: 14px; }
.pay-preview-result:empty { display: none; }
.pay-preview-list { margin-top: 8px; }
.pay-preview-list > summary { cursor: pointer; color: var(--blue); font-size: 13px; }
.form-grid > *, .grid-2col > *, .alloc { min-width: 0; }
.quick-pay { display: inline-flex; gap: 6px; margin-top: 6px; }
.pay-status { min-height: 38px; display: flex; align-items: center; }

/* İşlem kartları */
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.action-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.action-tile:hover { border-color: var(--orange); box-shadow: 0 4px 14px rgba(240, 124, 27, .14); transform: translateY(-1px); }
.action-tile.is-active { border-color: var(--orange); background: var(--orange-soft); }
.action-tile b { display: block; font-size: 14px; }
.action-tile small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.islem-form { border-top: 1px dashed var(--border); padding-top: 16px; }
.tl-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--orange-soft); color: var(--orange); }
.tl-ic .ic { fill: none; stroke: currentColor; }
.tl-ic.green { background: var(--green-soft); color: var(--green); }
.tl-ic.red { background: var(--red-soft); color: var(--red); }
.tl-ic.blue { background: #e8f0fe; color: var(--blue); }
.tl-ic.gray { background: #f1f3f5; color: #6b7682; }

/* İşlem geçmişi (zaman çizelgesi) */
.tl { list-style: none; margin: 8px 0 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border-2); }
.tl-item:last-child { border-bottom: 0; }
.tl-body { min-width: 0; overflow-wrap: anywhere; }
.tl-item.is-cancelled .tl-body, .tl-item.is-cancelled .tl-amount b { opacity: .6; }
.tl-item.is-cancelled .tl-amount b { text-decoration: line-through; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.tl-date { color: var(--muted); font-size: 12.5px; margin: 2px 0 6px; }
.tl-lines { display: grid; gap: 4px; font-size: 13.5px; }
.tl-amount { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.tl-amount b { font-size: 17px; }
.tl-amount small { color: var(--muted); font-size: 11.5px; }
.tl .empty { list-style: none; }

/* Ödeme ilerlemesi */
.prog { height: 6px; background: #eceff3; border-radius: 4px; overflow: hidden; max-width: 260px; margin: 4px 0; }
.prog span { display: block; height: 100%; background: var(--amber); border-radius: 4px; }
.prog.done span { background: var(--green); }
.pay-sum { font-size: 13px; }
.pay-lines { list-style: none; margin: 2px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.pay-lines li { padding: 1px 0; white-space: nowrap; }
.pay-lines li::before { content: "• "; color: var(--green); }
.pay-lines b { color: var(--text); font-weight: 600; }
.paid-cell { min-width: 190px; }
.firm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; background: var(--orange-soft); color: var(--orange-2); font-weight: 700; font-size: 13.5px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.pay-row td { background: var(--orange-soft) !important; padding: 12px 14px !important; }
.pay-row-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; margin-bottom: 8px; color: var(--text); }
.pay-row-head .ic { color: var(--orange); }
.pay-row-fields { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 0 12px; }
.pay-row td { white-space: normal; }
.pay-row-fields label { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 8px; font-size: 12.5px; white-space: normal; text-align: left; }
.pay-row-fields input, .pay-row-fields select { width: 100%; }
.pay-row-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sum-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; background: #f8f9fb; border: 1px solid var(--border-2); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
@media print {
    .no-print { display: none !important; }
    .print-page { padding: 0; max-width: none; }
    @page { size: A4; margin: 12mm; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
    .grid-main { grid-template-columns: 1fr; }
    .stat b { font-size: 22px; }
}
@media (max-width: 1024px) {
    .stats, .stats.stats-6 { grid-template-columns: repeat(2, 1fr); }
    .proof { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 35; }
    .sidebar-close, .menu-btn { display: inline-flex; }
    .topbar { padding: 0 16px; }
    .content { padding: 16px; }
    .grid-2col { grid-template-columns: 1fr; }
    .hide-sm { display: none; }
}
@media (max-width: 640px) {
    .tl-item { grid-template-columns: 36px 1fr; }
    .pay-row-fields { grid-template-columns: 1fr; }
    .pay-lines li { white-space: normal; }
    .tl-amount { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: 10px; }
    .action-grid { grid-template-columns: 1fr 1fr; }
    .action-tile { padding: 10px; gap: 8px; }
    .action-tile small { display: none; }
    .stats { gap: 10px; }
    .stat { padding: 12px; gap: 10px; }
    .stat-ic .ic { width: 26px; height: 26px; }
    .stat b { font-size: 18px; }
    .sale-cols, .form-grid, .grid-2, .sms-status, .print-2col { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .page-title { font-size: 18px; }
    .topbar-date { display: none; }
    .card { padding: 14px; }
    .resend-form input { width: 100%; }
    .search-box { max-width: none; width: 100%; }
}

/* Kompakt tablo (satış ekranındaki ürün listesi) */
.table-compact th, .table-compact td { padding: 8px 8px; font-size: 13px; }
.table-compact th { white-space: normal; line-height: 1.25; }
.table-compact td:first-child { white-space: nowrap; }
