:root {
    --bg: #f3f5f9;
    --panel: #ffffff;
    --line: #d7dde7;
    --line-dark: #c4ccd9;
    --text: #162132;
    --muted: #6b7789;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #15803d;
    --danger: #b91c1c;
    --shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.screen { min-height: 100vh; }
h1, h2, h3, h4, h5, p { margin: 0; }

.login-screen {
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(180deg, #f5f7fb 0%, #eef3f9 100%);
}
.login-card {
    width: min(100%, 420px);
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
}
.brand-lockup { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.brand-logo { width: 64px; height: auto; }
.eyebrow { color: var(--primary-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.brand-lockup h1 { margin-top: 3px; font-size: 20px; letter-spacing: -0.02em; }
.brand-lockup p { margin-top: 6px; color: var(--muted); line-height: 1.45; font-size: 13px; }

.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    padding: 18px 14px;
}
.brand-stack { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.brand-stack-text { display: grid; gap: 2px; min-width: 0; }
.system-label { display: block; font-size: 14px; line-height: 1.1; }
.sidebar-logo { width: 38px; }
.brand-stack span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.side-nav { display: grid; gap: 4px; }
.nav-item {
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
}
.nav-item:hover { background: #f6f8fb; }
.nav-item.active { background: #eef4ff; border-color: #d7e6ff; color: var(--primary-dark); }

.main-layout { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; position: relative; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 18px;
    background: rgba(243,245,249,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right { margin-left: auto; }
.topbar-ataturk { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 2px; flex: 0 0 38px; }
.topbar h2 { font-size: 18px; letter-spacing: -0.02em; }
.welcome-text { color: var(--muted); font-size: 12px; }

.content { padding: 16px 18px 88px; }

.global-search-wrap { position: relative; width: min(320px, 42vw); }
.global-search-input {
    min-height: 36px;
    border-radius: 10px;
    background: #fff;
}
.global-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: grid;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
}
.search-group { display: grid; gap: 4px; }
.search-group-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 4px;
}
.search-item {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    text-align: left;
    display: grid;
    gap: 2px;
}
.search-item:hover { background: #f8fafc; }
.search-item strong { font-size: 12px; font-weight: 600; color: var(--text); }
.search-item small, .search-empty { font-size: 11px; color: var(--muted); }
.search-empty { padding: 6px 4px; }
.company-form textarea { min-height: 64px; }
.detail-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.shell-width { max-width: 1480px; width: 100%; }
.view-panel { display: grid; gap: 12px; }
.section-head, .list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.tight-head { align-items: center; }
.section-head h3, .list-head h4 { font-size: 18px; letter-spacing: -0.02em; }
.slim-list-head { margin-bottom: 10px; }

.panel-grid { display: grid; gap: 10px; }
.dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-dashboard { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card, .card, .placeholder-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat-card { padding: 12px 14px; }
.stat-card span { display: block; color: var(--muted); margin-bottom: 6px; font-size: 12px; }
.stat-card strong { font-size: 18px; letter-spacing: -0.02em; }
.card { padding: 14px; }
.empty-panel { padding: 16px; color: var(--muted); }

.form-grid { display: grid; gap: 10px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.single-column { grid-template-columns: 1fr; }
.form-grid label, .inline-field { display: grid; gap: 5px; }
.form-grid span, .inline-field span, .muted-label {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}
.checkbox-field { display: flex !important; align-items: center; gap: 8px; }
.checkbox-field input { width: auto; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 9px 10px;
    min-height: 38px;
    outline: none;
}
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus {
    border-color: #97b8ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 9px 12px;
    min-height: 38px;
    font-weight: 600;
}
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: #f8fafc; }
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; }
.hint, .form-message { font-size: 12px; color: var(--muted); }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }
.full-width { grid-column: 1 / -1; }
.actions { display: flex; gap: 8px; }
.compact-actions { gap: 8px; flex-wrap: wrap; }
.compact-actions-row { justify-content: flex-start; }
.compact-date-filter { min-width: 180px; }
.compact input, .compact select { min-width: 150px; }
.compact-form textarea { min-height: 60px; }

.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.purchase-grid, .cash-grid, .accounts-grid, .stock-grid { display: grid; gap: 12px; align-items: start; }
.purchase-grid { grid-template-columns: minmax(320px, 360px) minmax(0, 1fr); }
.stock-grid { grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); }
.cash-grid { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); }
.accounts-grid { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); }
.purchase-left, .purchase-right, .accounts-left, .accounts-right, .stock-left, .stock-right { display: grid; gap: 12px; }

.compact-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.summary-cell { padding: 10px 12px; border-right: 1px solid var(--line); display: grid; gap: 4px; }
.summary-cell:last-child { border-right: 0; }
.summary-cell span { color: var(--muted); font-size: 12px; }
.summary-cell strong { font-size: 16px; letter-spacing: -0.02em; }

.cash-kpi-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 12px; }
.cash-report-grid { margin-top: 12px; }
.cash-mini-table small { color: var(--muted); font-size: 11px; }
.cash-mini-table small.positive { color: var(--success); }
.cash-mini-table small.negative { color: var(--danger); }
.summary-cell strong.positive { color: var(--success); }
.summary-cell strong.negative { color: var(--danger); }

.summary-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f7f9fc;
    color: var(--text);
    border: 1px solid var(--line);
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 600;
}
.summary-badge.positive { color: var(--success); border-color: #cae8d0; background: #f7fcf8; }
.summary-badge.negative { color: var(--danger); border-color: #f0cccc; background: #fdf8f8; }
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--text);
}
.badge.expense { color: var(--danger); border-color: #f0cccc; background: #fdf8f8; }
.badge.income { color: var(--success); border-color: #cae8d0; background: #f7fcf8; }

.fold-card { padding: 0; overflow: hidden; }
.fold-card summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
}
.fold-card summary::-webkit-details-marker { display: none; }
.fold-card summary small { color: var(--muted); font-size: 11px; font-weight: 500; }
.fold-card[open] summary { border-bottom: 1px solid var(--line); }
.fold-body { padding: 12px 14px 14px; }

.list-stack { display: grid; gap: 8px; }
.row-view { gap: 0; }
.row-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.row-head, .data-row {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}
.row-head {
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.data-row {
    font-size: 13px;
    border-top: 1px solid #edf1f5;
    background: #fff;
}
.data-row:hover { background: #fafcff; }
.data-row.selected { background: #f3f7ff; }
.cash-row { grid-template-columns: 110px minmax(150px, 1.4fr) 120px 110px 96px; }
.account-row { grid-template-columns: minmax(190px, 1.6fr) 92px 110px 110px 110px 92px 96px; }
.purchase-row { grid-template-columns: minmax(180px, 1.7fr) 96px 96px 110px 110px 88px 96px; }
.stock-row { grid-template-columns: minmax(220px, 2fr) 100px 120px 86px 74px 110px 86px; }
.cash-head { grid-template-columns: 110px minmax(150px, 1.4fr) 120px 110px 96px; }
.account-head { grid-template-columns: minmax(190px, 1.6fr) 92px 110px 110px 110px 92px 96px; }
.purchase-head { grid-template-columns: minmax(180px, 1.7fr) 96px 96px 110px 110px 88px 96px; }
.stock-head { grid-template-columns: minmax(220px, 2fr) 100px 120px 86px 74px 110px 86px; }
.cell { min-width: 0; }
.cell strong, .cell b { display: block; font-size: 13px; font-weight: 600; }
.cell small, .cell p { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; margin: 2px 0 0; }
.cell.mono { font-variant-numeric: tabular-nums; }
.cell.align-right, .align-right { text-align: right; }
.item-actions { display: flex; gap: 6px; justify-content: flex-end; }
.text-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.text-btn:hover { background: #f8fafc; }
.text-btn.danger { color: var(--danger); }
.empty-state { color: var(--muted); padding: 12px 0; font-size: 13px; }

.list-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 10px; }
.list-item-head, .list-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.list-item p, .detail-note { color: var(--muted); line-height: 1.45; font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.detail-grid div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fbfcfe; display: grid; gap: 5px; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }

.report-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.report-columns { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.report-column h5 { margin: 0 0 8px; font-size: 13px; }
.report-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fbfcfe; display: grid; gap: 6px; }
.report-box strong { font-size: 16px; }
.progress-track { height: 8px; border-radius: 999px; background: #e8edf5; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: #8bb4ff; }
.progress-fill.success { background: #7ccb98; }
.progress-fill.danger { background: #f1a4a4; }
.trend-bars { display: grid; gap: 8px; }
.trend-row { display: grid; gap: 8px; grid-template-columns: 76px minmax(0, 1fr) 90px; align-items: center; }
.trend-row span, .trend-row strong { font-size: 12px; }
.trend-bar-track { height: 8px; border-radius: 999px; background: #e8edf5; overflow: hidden; }
.trend-bar-track.alt { background: #eceff5; }
.trend-bar-fill { height: 100%; border-radius: 999px; background: #a6c3ff; }
.trend-bar-fill.alt { background: #b9b7ff; }


.report-screen { display: grid; gap: 10px; }
.report-shell { display: grid; gap: 10px; }
.report-box.compact { padding: 10px 11px; gap: 4px; }
.report-box.compact strong { font-size: 15px; }
.report-columns-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-card { padding: 12px; }
.compact-bars { gap: 7px; }
.trend-row-compact { grid-template-columns: 92px minmax(0, 1fr) 112px; }
.compact-four { grid-template-columns: 120px minmax(0, 1fr) 108px 48px; }
.compact-four small { text-align: right; color: var(--muted); font-size: 11px; }
.report-mini-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.report-mini-table div { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #fbfcfe; display: grid; gap: 4px; }
.report-mini-table span { color: var(--muted); font-size: 11px; }
.report-mini-table strong { font-size: 14px; letter-spacing: -0.01em; }
.report-list { display: grid; gap: 6px; }
.report-list-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 46px; gap: 8px; align-items: center; border-top: 1px solid #eef2f7; padding-top: 7px; }
.report-list-row:first-child { border-top: 0; padding-top: 0; }
.report-list-row span { min-width: 0; font-size: 12px; font-weight: 600; }
.report-list-row strong { text-align: right; font-size: 12px; }
.report-list-row small { text-align: right; color: var(--muted); font-size: 11px; }

.module-drawer { position: absolute; top: 58px; left: 14px; right: 14px; z-index: 30; }
.drawer-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; gap: 4px; }
.drawer-link { border: 0; background: #fff; border-radius: 8px; padding: 10px 12px; text-align: left; color: var(--text); }
.drawer-link:hover { background: #f8fafc; }

.mobile-primary-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 25;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--shadow);
}
.mobile-nav-item {
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 9px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.mobile-nav-item.active { background: #eef4ff; color: var(--primary-dark); }
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 1280px) {
    .compact-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .purchase-head, .purchase-row { grid-template-columns: minmax(180px, 1.6fr) 92px 92px 104px 104px 84px 92px; }
}

@media (max-width: 1024px) {
    .app-shell { grid-template-columns: 1fr; }
    .global-search-wrap { width: min(260px, 100%); }
    .desktop-only { display: none !important; }
    .mobile-only { display: inline-flex; }
    .mobile-primary-nav { display: grid; }
    .content { padding: 14px 14px 88px; }
    .topbar { padding: 10px 14px; align-items: center; }
    .compact-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .purchase-grid, .cash-grid, .accounts-grid, .report-grid, .report-columns, .report-columns-compact { grid-template-columns: 1fr; }
    .compact-summary-strip, .report-mini-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cash-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trend-row-compact, .compact-four, .report-list-row { grid-template-columns: 1fr; }
}


@media (max-width: 760px) {
    .brand-lockup { align-items: flex-start; }
    .topbar-right { width: 100%; flex-wrap: wrap; }
    .global-search-wrap { width: 100%; }
    .two-column, .compact-summary-strip, .dashboard-grid, .compact-dashboard { grid-template-columns: 1fr; }
    .section-head, .list-head, .topbar { flex-direction: column; align-items: flex-start; }
    .topbar-right { width: 100%; justify-content: space-between; }
    .actions { flex-direction: column; }
    .compact input, .compact select { min-width: 100%; }
    .row-head { display: none; }
    .cash-row, .account-row, .purchase-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .data-row { padding: 10px; }
    .item-actions { justify-content: flex-start; }
    .detail-grid, .report-grid, .report-columns { grid-template-columns: 1fr; }
}


.purchase-filter-bar { align-items: end; }
.slim-btn { height: 38px; white-space: nowrap; }
.report-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.report-year-field { min-width: 120px; }
.compact-report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trend-row-four { grid-template-columns: minmax(110px, 1.2fr) minmax(0, 2fr) auto auto; }
.trend-row-four small { color: var(--muted); font-size: 11px; min-width: 52px; text-align: right; }
@media (max-width: 900px) {
  .purchase-filter-bar { grid-template-columns: 1fr 1fr; display: grid; }
  .report-toolbar { justify-content: flex-start; }
}

.quotes-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.9fr); gap: 12px; align-items: start; }
.quotes-left, .quotes-right { display: grid; gap: 12px; }
.quote-form-layout { gap: 12px; }
.quote-top-grid, .quote-second-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quote-second-grid { grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr); }
.quote-inline-actions { display: flex; justify-content: flex-start; margin-top: -2px; }
.quote-lines-head, .quote-item-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.8fr) 110px 140px 120px 72px;
    gap: 10px;
    align-items: center;
}
.quote-lines-head {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.quote-items-body {
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: #fff;
}
.quote-item-row {
    padding: 10px 12px;
    border-top: 1px solid #edf1f5;
}
.quote-item-row:first-child { border-top: 0; }
.quote-item-row .quote-line-total {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.quote-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    align-items: end;
}
.quote-controls { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.quote-tax-field { min-width: 150px; }
.quote-totals-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
    overflow: hidden;
}
.quote-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid #edf1f5;
}
.quote-total-row:first-child { border-top: 0; }
.quote-total-row span { color: var(--muted); font-size: 12px; }
.quote-total-row strong { font-size: 15px; letter-spacing: -0.02em; }
.quote-total-row.total { background: #f2f6ff; }
.quote-total-row.total span, .quote-total-row.total strong { color: var(--primary-dark); font-weight: 700; }
.quote-head, .quote-row { grid-template-columns: minmax(180px, 1.55fr) 92px 92px 96px 112px 192px; }
.quote-detail-card .list-item { background: #fff; }

@media (max-width: 1180px) {
  .quotes-grid, .quote-bottom-grid, .quote-top-grid, .quote-second-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .quote-lines-head { display: none; }
  .quote-item-row, .quote-head, .quote-row { grid-template-columns: 1fr; }
  .quote-item-row { gap: 8px; }
}


.quote-layout-v9 { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr); }
.quote-form-card.v9 { padding: 18px 20px; }
.quote-form-layout.v9 { gap: 14px; }
.quote-form-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.quote-form-brand { display:flex; gap:12px; align-items:flex-start; }
.quote-form-icon { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:#f4f7fb; border:1px solid var(--line); font-size:16px; }
.quote-form-brand h4 { margin:0 0 4px; font-size:18px; }
.quote-form-brand p { margin:0; color:var(--muted); font-size:12px; }
.quote-top-grid.v9 { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; }
.quote-second-grid.v9 { display:grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr); gap:12px; }
.quote-lines-card { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; }
.quote-lines-head.v9, .quote-items-body.v9 .quote-item-row { display:grid; grid-template-columns: minmax(280px, 1.85fr) 120px 160px 132px 64px; gap:10px; align-items:center; }
.quote-lines-head.v9 { background:#f8fafc; border-bottom:1px solid var(--line); padding:12px 14px; color:#455265; font-size:12px; font-weight:700; }
.quote-items-body.v9 { border:0; border-radius:0; }
.quote-items-body.v9 .quote-item-row { padding:12px 14px; border-top:1px solid #edf1f5; }
.quote-items-body.v9 .quote-item-row:first-child { border-top:0; }
.quote-items-body.v9 input { min-height:42px; }
.quote-bottom-grid.v9 { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:12px; align-items:end; }
.quote-controls.v9 { display:flex; align-items:end; gap:12px; }
.quote-totals-box.v9 { border-radius:16px; }
.quote-fixed-notes { display:flex; gap:10px; flex-wrap:wrap; }
.quote-fixed-notes .chip { border:1px solid #d9e2f2; background:#fff; color:#2952a3; border-radius:999px; padding:7px 12px; font-size:12px; font-weight:700; }
.quote-head, .quote-row { grid-template-columns: minmax(180px, 1.55fr) 92px 92px 110px 112px 192px; }
@media (max-width: 1180px) {
  .quote-layout-v9, .quote-top-grid.v9, .quote-second-grid.v9, .quote-bottom-grid.v9 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .quote-lines-head.v9 { display:none; }
  .quote-items-body.v9 .quote-item-row, .quote-head, .quote-row { grid-template-columns: 1fr; }
  .quote-fixed-notes { gap:8px; }
}


.ai-grid { display:grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap:12px; align-items:start; }
.ai-card { display:grid; gap:12px; }
.ai-note {
    display:grid;
    gap:4px;
    padding:12px 13px;
    background:#f8fafc;
    border:1px solid var(--line);
    border-radius:12px;
    font-size:13px;
    line-height:1.5;
}
.ai-note strong { color: var(--text); }
.ai-note span { color: var(--muted); font-size:12px; }
.ai-form-grid { gap:12px; }
.ai-inline-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px; }
.ai-actions .btn { min-width: 112px; }
.ai-output-card { min-height: 100%; }
.ai-output-card h4 { font-size:18px; margin:0; letter-spacing:-0.02em; }
.ai-prompt-output {
    min-height: 498px;
    resize: vertical;
    font-family: Inter, Arial, sans-serif;
    line-height: 1.55;
}
.ai-history-card { box-shadow:none; }
.ai-history-list { display:grid; gap:8px; }
.ai-history-item {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 0;
    border-bottom:1px solid #edf1f5;
}
.ai-history-item:last-child { border-bottom:0; padding-bottom:0; }
.ai-history-main { display:grid; gap:2px; min-width:0; }
.ai-history-main strong {
    font-size:13px;
    letter-spacing:-0.01em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.ai-history-main span {
    color:var(--muted);
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.ai-history-meta { display:grid; gap:6px; justify-items:end; }
.ai-history-meta small { color:var(--muted); font-size:11px; }
.btn-xs {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
}
@media (max-width: 1120px) {
    .ai-grid { grid-template-columns: 1fr; }
    .ai-prompt-output { min-height: 340px; }
}
@media (max-width: 720px) {
    .ai-inline-grid { grid-template-columns: 1fr; }
    .ai-actions { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.user-head, .user-row { grid-template-columns: minmax(180px, 1.5fr) 90px 90px minmax(180px, 1.4fr) 180px; }
.permission-fieldset {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px 12px;
    background: #fbfcfe;
}
.permission-fieldset legend {
    padding: 0 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}
.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
}
.permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
}
.permission-grid input[type="checkbox"] {
    width: 15px;
    height: 15px;
}
@media (max-width: 960px) {
    .permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-head, .user-row { grid-template-columns: minmax(140px, 1.4fr) 80px 80px minmax(120px, 1fr) 140px; }
}
@media (max-width: 720px) {
    .permission-grid { grid-template-columns: minmax(0, 1fr); }
    .user-head { display: none; }
    .user-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .user-row .item-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


.stack-gap { display: grid; gap: 12px; }
.audit-filter-form { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.audit-head, .audit-row { grid-template-columns: 150px 140px 120px 160px minmax(220px, 1fr); }
.audit-table .data-row { align-items: start; }
.audit-table small { display: block; line-height: 1.35; }
@media (max-width: 960px) {
    .audit-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audit-head, .audit-row { grid-template-columns: 130px 120px 110px 130px minmax(160px, 1fr); }
}
@media (max-width: 720px) {
    .audit-filter-form { grid-template-columns: minmax(0, 1fr); }
    .audit-head { display: none; }
    .audit-row { grid-template-columns: 1fr; gap: 8px; }
}

.topbar-right .btn[data-view="management"] { white-space: nowrap; }


.management-intro-card { padding: 14px 16px; }
.management-intro-text { color: var(--muted); font-size: 13px; line-height: 1.5; }
#managementView { gap: 10px; }
.cash-report-block > .fold-body { display: grid; gap: 10px; }
#reportsView .fold-body, #managementView .fold-body { padding-top: 12px; }



.market-shell {
    display: grid;
    gap: 10px;
    grid-template-columns: 1.1fr 1.1fr 1fr;
    margin-top: 10px;
}
.market-card { padding: 12px; }
.market-table { display: grid; gap: 6px; }
.market-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px 86px 78px;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}
.market-row strong, .market-row span { white-space: nowrap; }
.market-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.market-row .positive { color: var(--success); }
.market-row .negative { color: var(--danger); }
.align-right { text-align: right; }

.converter-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.converter-amount-field { grid-column: span 2; }
.converter-result-block {
    grid-column: span 2;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: #fbfcfe;
    display: grid;
    gap: 3px;
}
.converter-result-block strong { font-size: 18px; letter-spacing: -0.02em; }
.converter-result-block small { color: var(--muted); font-size: 12px; }
.compact-market-shell .summary-badge { white-space: nowrap; }

@media (max-width: 1180px) {
    .market-shell { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .compact-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-row { grid-template-columns: minmax(0, 1fr) 72px 72px 64px; font-size: 11px; }
    .converter-grid { grid-template-columns: 1fr; }
    .converter-amount-field, .converter-result-block { grid-column: auto; }
}

.system-health-body { display: grid; gap: 12px; }
.system-health-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.system-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.system-admin-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
    padding: 12px;
    display: grid;
    gap: 10px;
}
.system-check-list { display: grid; gap: 8px; }
.system-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #edf1f5;
    border-radius: 10px;
    background: #fff;
    padding: 9px 10px;
}
.system-check-row strong { font-size: 13px; }
.system-check-row small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 2px; }
.compact-info-row { align-items: flex-start; }
.compact-info-row small { text-align: right; margin-top: 0; }
.system-button-row { flex-wrap: wrap; }
.summary-badge.warning { color: #92400e; border-color: #f5d59b; background: #fffbeb; }
.positive-text { color: var(--success); }
.negative-text { color: var(--danger); }
button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 1024px) {
    .system-health-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .system-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .system-health-summary { grid-template-columns: 1fr; }
    .system-check-row { align-items: flex-start; flex-direction: column; }
    .compact-info-row small { text-align: left; }
}

/* v17.6.0 - reports export / print */
@media print {
  body {
    background: #fff;
  }
  .sidebar,
  .topbar,
  .module-drawer,
  .section-head .inline-actions,
  .management-intro-card,
  #loginScreen,
  #dashboardView,
  #managementView,
  #stockView,
  #purchaseView,
  #cashView,
  #accountsView,
  #quotesView,
  #aiView {
    display: none !important;
  }
  #appShell,
  .main-layout,
  .content,
  #reportsView,
  #reportsView .fold-card,
  #reportsView .fold-body {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  #reportsView .section-head {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
  }
  #reportsView details > summary {
    display: none !important;
  }
  .report-card,
  .report-box,
  .card {
    break-inside: avoid;
    box-shadow: none !important;
  }
  .trend-bar-track,
  .trend-bar-fill {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}


/* v17.7.0 - due tracking */
.dashboard-due-card { margin-top: 10px; }
.due-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.due-kpi.critical { border-color: #f0cccc; background: #fffafa; }
.due-kpi.warning { border-color: #f5d59b; background: #fffdf5; }
.due-list { display: grid; gap: 8px; }
.due-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #edf1f5;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
}
.due-row strong { font-size: 13px; }
.due-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.due-row-right { display: grid; gap: 4px; justify-items: end; white-space: nowrap; }
.due-pill,
.due-mini-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid #d8e3f0;
  background: #f8fbff;
  color: var(--muted);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
}
.due-mini-badge { margin-top: 4px; }
.due-pill.warning,
.due-mini-badge.warning { color: #92400e; border-color: #f5d59b; background: #fffbeb; }
.due-pill.danger,
.due-mini-badge.danger { color: var(--danger); border-color: #f0cccc; background: #fdf8f8; }
@media (max-width: 900px) {
  .due-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .due-kpi-grid { grid-template-columns: 1fr; }
  .due-row { align-items: flex-start; flex-direction: column; }
  .due-row-right { justify-items: start; }
}

/* v17.8.0 - dashboard warning boxes */
.stat-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.alert-card {
  position: relative;
  overflow: hidden;
}
.alert-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}
.alert-card.is-critical { border-color: #f0cccc; background: #fffafa; }
.alert-card.is-critical::before { background: var(--danger); }
.alert-card.is-critical strong { color: var(--danger); }
.alert-card.is-warning { border-color: #f5d59b; background: #fffdf5; }
.alert-card.is-warning::before { background: #b7791f; }
.alert-card.is-warning strong { color: #92400e; }
.alert-card.is-ok { border-color: #cae8d0; background: #f7fcf8; }
.alert-card.is-ok::before { background: var(--success); }
.alert-card.is-ok strong { color: var(--success); }
.alert-card.is-neutral { border-color: #d8e3f0; background: #f8fbff; }
.alert-card.is-neutral::before { background: #8aa4c4; }


/* v17.9.0 - stock module */
.stock-summary-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 12px; }
.stock-filter-bar { align-items: end; }
.stock-detail-card { display: grid; gap: 10px; }
.stock-row .cell strong.negative-text { color: var(--danger); }
@media (max-width: 1200px) {
  .stock-summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stock-row,
  .stock-head { grid-template-columns: minmax(220px, 2fr) 90px 96px 74px 74px 100px 80px; }
}
@media (max-width: 900px) {
  .stock-grid { grid-template-columns: 1fr; }
  .stock-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .stock-row,
  .stock-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .stock-head { display: none; }
  .stock-row .align-right { text-align: left; }
  .stock-row .item-actions { justify-content: flex-start; }
  .stock-filter-bar { width: 100%; }
}

/* v17.9.1 - stock typeahead and colored detail tags */
.stock-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.stock-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; line-height: 1.2; border: 1px solid transparent; }
.stock-tag em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .76; }
.stock-tag-sku { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.stock-tag-brand { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.stock-tag-category { color: #b45309; background: #fffbeb; border-color: #fde68a; }

/* v17.10.1 - menu label polish */
.suppliers-grid { display: grid; gap: 12px; align-items: start; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); }
.supplier-summary-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; }
.supplier-filter-bar { align-items: end; }
.supplier-head,
.supplier-row { grid-template-columns: minmax(220px, 1.9fr) 90px 125px 120px 120px 86px; }
.supplier-code-pill { display: inline-flex; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 800; line-height: 1.1; }
.supplier-detail-card { display: grid; gap: 10px; }
.supplier-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.supplier-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; line-height: 1.2; border: 1px solid transparent; }
.supplier-tag em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .76; }
.supplier-tag-code { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.supplier-tag-tax { color: #7c3aed; background: #f5f3ff; border-color: #ddd6fe; }
.supplier-tag-city { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.supplier-note { margin-top: -4px; }
.positive-text { color: var(--success); }
.negative-text { color: var(--danger); }
@media (max-width: 1200px) {
  .supplier-summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .supplier-head,
  .supplier-row { grid-template-columns: minmax(220px, 1.9fr) 86px 105px 110px 110px 80px; }
}
@media (max-width: 900px) {
  .suppliers-grid { grid-template-columns: 1fr; }
  .supplier-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .supplier-head { display: none; }
  .supplier-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .supplier-row .align-right { text-align: left; }
  .supplier-row .item-actions { justify-content: flex-start; }
  .supplier-filter-bar { width: 100%; }
}


/* v17.10.3 - cari birlestirme ve eslesme etiketleri */
.supplier-alias-box { margin-top: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.supplier-alias-box > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.supplier-alias-list { display: flex; flex-wrap: wrap; gap: 6px; }
.supplier-alias-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; font-size: 11px; line-height: 1.2; background: #eef2ff; color: #3730a3; border: 1px solid rgba(79,70,229,.18); }
.supplier-alias-chip.code, .supplier-alias-chip.old_code { background: #ecfeff; color: #0e7490; border-color: rgba(14,116,144,.18); }
.supplier-alias-chip.legal_name, .supplier-alias-chip.name { background: #fff7ed; color: #c2410c; border-color: rgba(194,65,12,.18); }

/* v17.11.0 E-Fatura */
.e-invoice-grid {
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, .95fr);
}
.e-invoice-upload-form {
  align-items: end;
}
.e-invoice-file-field {
  min-width: min(520px, 100%);
}
.e-invoice-row .badge.success,
.badge.success {
  background: rgba(21, 128, 61, .10);
  color: #166534;
}
.e-invoice-row .badge.warning,
.badge.warning {
  background: rgba(217, 119, 6, .12);
  color: #92400e;
}
.e-invoice-row .badge.danger,
.badge.danger {
  background: rgba(185, 28, 28, .10);
  color: #991b1b;
}
.e-invoice-row .badge.neutral,
.badge.neutral {
  background: rgba(51, 65, 85, .10);
  color: #334155;
}
.e-invoice-row .badge.muted,
.badge.muted {
  background: rgba(100, 116, 139, .10);
  color: #64748b;
}
.e-invoice-detail-actions,
.e-invoice-supplier-match {
  margin: .65rem 0;
}
.line-match-list {
  display: grid;
  gap: .55rem;
  margin-top: .75rem;
}
.line-match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: .75rem;
  align-items: center;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  padding: .7rem .8rem;
  background: #fff;
}
.line-match-card.matched {
  border-color: rgba(21, 128, 61, .24);
}
.line-match-card.missing {
  border-color: rgba(217, 119, 6, .28);
}
.line-match-card strong,
.line-match-card small {
  display: block;
}
.line-match-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem;
  align-items: center;
}
.line-match-actions select {
  min-width: 0;
}
.success-text { color: #166534; }
.warning-text { color: #92400e; }
@media (max-width: 900px) {
  .e-invoice-grid,
  .line-match-card {
    grid-template-columns: 1fr;
  }
  .line-match-actions {
    grid-template-columns: 1fr;
  }
}


.line-product-search {
  min-width: 180px;
}

/* v17.12.1 - E-Fatura tablo gorunumu ve stok aktarimi */
.e-invoice-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  background: #fff;
  max-height: 560px;
}
.e-invoice-table-row {
  display: grid;
  grid-template-columns: 34px 142px minmax(150px, 1.1fr) minmax(180px, 1.45fr) 86px 104px 122px 132px 88px 126px;
  align-items: center;
  min-width: 1180px;
  gap: 0;
}
.e-invoice-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--line);
}
.e-invoice-table-row > div {
  min-height: 38px;
  padding: 8px 9px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.e-invoice-table-row > div:last-child { border-right: 0; }
.e-invoice-data-row {
  cursor: pointer;
  border-bottom: 1px solid #eef2f7;
  font-size: 12.5px;
  color: #23364f;
}
.e-invoice-data-row:hover { background: #f8fbff; }
.e-invoice-data-row.selected { background: #eef4ff; }
.e-invoice-data-row small {
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.e-invoice-actions-cell {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 5px;
  flex-wrap: nowrap;
}
.icon-btn {
  min-width: 32px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.icon-btn:hover { background: #f1f5f9; }
.icon-btn.danger { color: var(--danger); border-color: #f0cccc; }
.icon-btn.danger:hover { background: #fdf8f8; }
.icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.truncate-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}
.mini-pill.ok { background: rgba(21,128,61,.10); color: #166534; }
.mini-pill.wait { background: rgba(245,158,11,.16); color: #92400e; }
.align-right { text-align: right; align-items: flex-end; }
@media (max-width: 900px) {
  .e-invoice-table-wrap { max-height: 480px; }
}.btn-success { color: #fff; background: #10b981; border-color: #10b981; }
.btn-success:hover { background: #059669; border-color: #059669; }

/* v17.12.2 - E-Fatura stok eslestirme guclendirme */
.e-invoice-summary-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.e-invoice-unmatched-list {
  display: grid;
  gap: .55rem;
}
.unmatched-line-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: .65rem;
  align-items: center;
  border: 1px solid rgba(217, 119, 6, .22);
  border-radius: 13px;
  padding: .65rem .75rem;
  background: #fffaf0;
}
.unmatched-line-main strong,
.unmatched-line-main small {
  display: block;
}
.unmatched-line-main small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.unmatched-line-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem;
  align-items: center;
}
.unmatched-line-actions input,
.unmatched-line-actions select {
  min-width: 0;
}
.unmatched-line-actions select {
  grid-column: 1 / 2;
}
.unmatched-line-actions button {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}
@media (max-width: 900px) {
  .e-invoice-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .unmatched-line-card,
  .unmatched-line-actions {
    grid-template-columns: 1fr;
  }
  .unmatched-line-actions select,
  .unmatched-line-actions button {
    grid-column: auto;
    grid-row: auto;
  }
}

/* v17.13.0 - Giden Fatura */
.outgoing-e-invoice-table-row {
  display: grid;
  grid-template-columns: 34px 92px minmax(150px, 1.1fr) minmax(180px, 1.45fr) 86px 104px 122px 82px 112px 126px;
  align-items: center;
  min-width: 1120px;
  gap: 0;
}
.outgoing-e-invoice-table-row > div {
  min-height: 38px;
  padding: 8px 9px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.outgoing-e-invoice-table-row > div:last-child { border-right: 0; }
.outgoing-e-invoice-summary-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.outgoing-e-invoice-upload-card .summary-badge { white-space: nowrap; }
.mini-pill.danger { background: rgba(220,38,38,.12); color: #991b1b; }
@media (max-width: 900px) {
  .outgoing-e-invoice-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dashboard-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.mini-panel {
    border: 1px solid #edf1f5;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
}
.mini-panel h4 { margin: 0 0 8px; font-size: 13px; }
.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
}
.mini-row:first-of-type { border-top: 0; }
.statement-filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr)) auto auto auto auto;
    gap: 8px;
    align-items: end;
    margin: 12px 0;
}
.statement-filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.statement-head,
.statement-row {
    grid-template-columns: 110px 130px minmax(200px, 1.8fr) 110px 110px 110px 90px;
}
.account-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.positive { color: #047857; }
.negative { color: #b91c1c; }
@media (max-width: 900px) {
    .dashboard-two-col,
    .statement-filter-bar,
    .account-summary-grid { grid-template-columns: 1fr; }
    .statement-row { grid-template-columns: 1fr; }
}
/* v17.14.0 - Cari Hareketler + Cari Ekstre */


/* v17.16.1 - Günlük Kasa Defteri kategori uyarlaması */
.cash-ledger-head { align-items: stretch; }
.section-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.cash-devir-card {
    min-width: 190px;
    display: grid;
    gap: 4px;
    align-content: center;
    justify-items: end;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
}
.cash-devir-card span { color: var(--muted); font-size: 12px; font-weight: 600; }
.cash-devir-card strong { font-size: 18px; font-variant-numeric: tabular-nums; color: #1d4ed8; }
.cash-devir-card strong.negative { color: var(--danger); }
.cash-devir-card strong.positive { color: #1d4ed8; }
.cash-filter-card { padding: 12px; margin-bottom: 12px; }
.cash-filter-grid {
    display: grid;
    grid-template-columns: 150px 150px minmax(220px, 1fr) 170px auto;
    gap: 10px;
    align-items: end;
}
.cash-filter-grid label { display: grid; gap: 5px; }
.cash-filter-grid label span { color: var(--muted); font-size: 11px; font-weight: 700; }
.cash-filter-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: end; }
.cash-ledger-grid { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
.cash-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cash-ledger-list-card .fold-body { padding: 10px; }
.cash-ledger-table { border-radius: 10px; }
.cash-ledger-head-row, .cash-ledger-row { grid-template-columns: 95px 82px 82px minmax(180px, 1fr) 130px 130px 92px; }
.cash-ledger-row { min-height: 44px; }
.cash-in-amount strong { color: #1d4ed8; }
.cash-out-amount strong { color: var(--danger); }
.cash-in-row .badge.income { background: #f7fcf8; }
.cash-out-row .badge.expense { background: #fdf8f8; }

@media (max-width: 1180px) {
    .cash-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cash-filter-actions { grid-column: 1 / -1; }
    .cash-ledger-head-row, .cash-ledger-row { grid-template-columns: 90px 76px 80px minmax(150px, 1fr) 112px 112px 86px; }
}

@media (max-width: 760px) {
    .cash-devir-card { width: 100%; justify-items: start; }
    .cash-filter-grid { grid-template-columns: 1fr; }
    .cash-filter-actions { display: grid; grid-template-columns: repeat(2, 1fr); }
    .cash-ledger-head-row { display: none; }
    .cash-ledger-row { grid-template-columns: 1fr; }
}


/* v17.16.2 - Günlük Kasa kompakt filtre + giriş/çıkış akışı */
.cash-top-metrics {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 8px 0 12px;
}
.cash-top-metrics .summary-cell strong { font-size: 15px; }
.cash-top-metrics .summary-cell strong.positive { color: var(--success); }
.cash-top-metrics .summary-cell strong.negative { color: var(--danger); }
.summary-cell strong.negative-soft { color: var(--danger); }
.cash-filter-fold { margin: 12px 0; }
.cash-filter-fold[open] > summary { border-bottom: 1px solid var(--line); }
.cash-filter-fold .fold-body { padding: 10px; }
.cash-filter-grid {
    display: grid;
    grid-template-columns: 135px 135px minmax(180px, 1fr) 140px auto;
    gap: 8px;
    align-items: end;
}
.cash-filter-card { padding: 0; margin-bottom: 12px; }
.cash-filter-grid label { gap: 4px; }
.cash-filter-grid input, .cash-filter-grid select { min-height: 36px; padding: 7px 10px; }
.cash-filter-actions .btn { min-height: 36px; padding: 7px 10px; }
.cash-ledger-grid { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
.cash-ledger-head-row, .cash-ledger-row { grid-template-columns: 95px 82px minmax(180px, 1fr) 130px 130px 92px; }
.cash-flow-table { display: grid; gap: 8px; }
.cash-flow-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.cash-flow-row:last-child { border-bottom: 0; }
.cash-flow-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.cash-flow-pair { display: grid; gap: 5px; }
.cash-flow-line {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 112px;
    gap: 8px;
    align-items: center;
}
.cash-flow-line small { color: var(--muted); font-size: 11px; font-weight: 700; }
.cash-flow-line strong { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.cash-flow-line.in strong { color: #1d4ed8; }
.cash-flow-line.out strong { color: var(--danger); }

@media (max-width: 1180px) {
    .cash-top-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cash-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cash-filter-actions { grid-column: 1 / -1; }
    .cash-ledger-head-row, .cash-ledger-row { grid-template-columns: 90px 80px minmax(150px, 1fr) 112px 112px 86px; }
}

@media (max-width: 760px) {
    .cash-top-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cash-filter-grid { grid-template-columns: 1fr; }
    .cash-filter-actions { display: grid; grid-template-columns: repeat(2, 1fr); }
    .cash-ledger-head-row { display: none; }
    .cash-ledger-row { grid-template-columns: 1fr; }
    .cash-flow-row, .cash-flow-line { grid-template-columns: 1fr; }
    .cash-flow-line strong { text-align: left; }
}


/* v17.16.3 - Günlük Kasa kapanış ve kategori özeti */
.dashboard-cash-devir-card {
    border-color: #c7d9ff;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}
.cash-closing-table {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.cash-closing-head {
    display: grid;
    grid-template-columns: 110px repeat(4, minmax(110px, 1fr));
    gap: 8px;
    padding: 9px 10px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.cash-closing-head span:not(:first-child) { text-align: right; }
.cash-closing-row {
    display: grid;
    grid-template-columns: 110px repeat(4, minmax(110px, 1fr));
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-top: 1px solid #edf1f5;
    font-size: 12px;
}
.cash-closing-row span { color: var(--muted); font-weight: 700; }
.cash-closing-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.cash-category-row strong { font-size: 12px; }
@media (max-width: 760px) {
    .cash-closing-head { display: none; }
    .cash-closing-row { grid-template-columns: 1fr; gap: 4px; }
    .cash-closing-row strong { text-align: left; }
}

/* v17.17.0 - Cari Mutabakat */
.account-reconciliation-card {
    border-left: 4px solid rgba(14, 165, 233, 0.35);
    display: grid;
    gap: 12px;
}
.account-reconciliation-card .list-head small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}
.reconciliation-form-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe7f5;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.reconciliation-form-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.reconciliation-form-copy strong {
    font-size: 13px;
    letter-spacing: -0.01em;
}
.reconciliation-form-copy span {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}
.reconciliation-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(180px, 1.2fr) auto;
    gap: 8px;
    align-items: end;
}
.reconciliation-fields label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.reconciliation-message {
    margin: 0;
}
.reconciliation-head,
.reconciliation-row {
    grid-template-columns: 100px minmax(170px, 1.35fr) 110px 110px 110px 90px minmax(180px, 1.2fr);
}
.reconciliation-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}
.badge.neutral {
    background: #eef2ff;
    color: #3730a3;
}
.badge.danger {
    background: #fee2e2;
    color: #991b1b;
}
@media (max-width: 900px) {
    .reconciliation-row,
    .reconciliation-fields {
        grid-template-columns: 1fr;
    }
    .reconciliation-form-copy {
        align-items: flex-start;
        flex-direction: column;
    }
    .reconciliation-form-copy span {
        text-align: left;
    }
}

/* v17.18.1 - soft visual comfort and closed-by-default module rhythm */
:root {
    --soft-blue: #f4f7ff;
    --soft-green: #f3faf6;
    --soft-amber: #fff8eb;
    --soft-rose: #fff5f5;
    --soft-lilac: #f7f5ff;
    --soft-cyan: #f1fbfd;
    --soft-panel: #fbfcff;
}

.card,
.stat-card,
.placeholder-card,
.report-box,
.mini-panel,
.system-admin-panel,
.quote-totals-box,
.detail-grid div,
.report-mini-table div,
.row-table,
.list-item,
.search-item {
    background: linear-gradient(180deg, var(--soft-panel) 0%, #ffffff 100%);
}

.view-panel > .card:nth-of-type(6n+1),
.fold-card:nth-of-type(6n+1),
.stat-card:nth-child(6n+1),
.report-box:nth-child(6n+1),
.mini-panel:nth-child(6n+1) {
    background: linear-gradient(180deg, var(--soft-blue) 0%, #ffffff 100%);
    border-color: #dbe7ff;
}
.view-panel > .card:nth-of-type(6n+2),
.fold-card:nth-of-type(6n+2),
.stat-card:nth-child(6n+2),
.report-box:nth-child(6n+2),
.mini-panel:nth-child(6n+2) {
    background: linear-gradient(180deg, var(--soft-green) 0%, #ffffff 100%);
    border-color: #d7eadf;
}
.view-panel > .card:nth-of-type(6n+3),
.fold-card:nth-of-type(6n+3),
.stat-card:nth-child(6n+3),
.report-box:nth-child(6n+3),
.mini-panel:nth-child(6n+3) {
    background: linear-gradient(180deg, var(--soft-amber) 0%, #ffffff 100%);
    border-color: #f2e4c9;
}
.view-panel > .card:nth-of-type(6n+4),
.fold-card:nth-of-type(6n+4),
.stat-card:nth-child(6n+4),
.report-box:nth-child(6n+4),
.mini-panel:nth-child(6n+4) {
    background: linear-gradient(180deg, var(--soft-cyan) 0%, #ffffff 100%);
    border-color: #cfeaf0;
}
.view-panel > .card:nth-of-type(6n+5),
.fold-card:nth-of-type(6n+5),
.stat-card:nth-child(6n+5),
.report-box:nth-child(6n+5),
.mini-panel:nth-child(6n+5) {
    background: linear-gradient(180deg, var(--soft-lilac) 0%, #ffffff 100%);
    border-color: #e4def8;
}
.view-panel > .card:nth-of-type(6n+6),
.fold-card:nth-of-type(6n+6),
.stat-card:nth-child(6n+6),
.report-box:nth-child(6n+6),
.mini-panel:nth-child(6n+6) {
    background: linear-gradient(180deg, var(--soft-rose) 0%, #ffffff 100%);
    border-color: #f1d8d8;
}

.fold-card summary {
    background: rgba(255, 255, 255, 0.46);
}
.fold-card summary::before {
    content: '+';
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
    margin-right: 2px;
    flex: 0 0 22px;
}
.fold-card[open] summary::before { content: '-'; }

.finance-visible-card {
    border-color: #bcd3ff !important;
    background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%) !important;
}
.finance-visible-card summary span {
    color: var(--primary-dark);
}

.module-drawer.hidden { display: none !important; }
.module-drawer .drawer-card {
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

@media (max-width: 1024px) {
    .module-drawer {
        position: fixed;
        top: 62px;
        left: 10px;
        right: 10px;
    }
    .drawer-card {
        max-height: 72vh;
        overflow: auto;
    }
    .view-panel > details:not(.finance-visible-card),
    .purchase-left > details,
    .purchase-right > details,
    .accounts-left > details,
    .accounts-right > details,
    .stock-left > details,
    .stock-right > details,
    .cash-grid details,
    .quotes-left > details,
    .quotes-right > details {
        margin-bottom: 2px;
    }
}

/* v17.19.0 - advanced report panel soft accents */
.report-soft-income { background: linear-gradient(135deg, rgba(232, 248, 240, .92), rgba(255,255,255,.98)); }
.report-soft-expense { background: linear-gradient(135deg, rgba(255, 244, 232, .92), rgba(255,255,255,.98)); }
.report-screen .report-card { border-color: rgba(30, 41, 59, .08); }
.report-screen .report-mini-table div { background: rgba(255,255,255,.58); }
@media (max-width: 760px) {
  #reportsView .report-columns { grid-template-columns: 1fr; }
  #reportsView .trend-row-four,
  #reportsView .compact-four { grid-template-columns: minmax(88px, 1fr) 1.2fr auto; }
  #reportsView .trend-row-four small,
  #reportsView .compact-four small { display: none; }
}

/* v17.20.0 - işlem güvenliği yetkileri */
.permission-divider {
  grid-column: 1 / -1;
  height: 1px;
  margin: .35rem 0;
  background: linear-gradient(90deg, rgba(15,23,42,.08), rgba(15,23,42,.18), rgba(15,23,42,.08));
}
.permission-fieldset .sub-legend {
  display: block;
  grid-column: 1 / -1;
  margin: .25rem 0 .15rem;
  font-size: .82rem;
  font-weight: 700;
  color: #475569;
}
.permission-action-grid {
  background: rgba(255, 247, 237, .66);
  border: 1px solid rgba(251, 146, 60, .18);
  border-radius: 16px;
  padding: .65rem;
}

/* v17.21.0 - Audit Log / Islem Gecmisi */
.audit-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.audit-summary-grid .mini-stat,
.audit-mini-list {
    border: 1px solid var(--border-color, #dbe4ef);
    border-radius: 14px;
    padding: 10px 12px;
    background: #f8fbff;
    min-height: 72px;
}
.audit-summary-grid .mini-stat strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.1;
}
.audit-summary-grid .mini-stat span,
.audit-mini-list small {
    color: var(--muted-color, #64748b);
    font-size: .85rem;
}
.audit-mini-list {
    grid-column: span 2;
}
.audit-mini-list strong,
.audit-mini-list small {
    display: block;
}
.audit-payload {
    margin-top: 6px;
}
.audit-payload summary {
    cursor: pointer;
    color: var(--primary-color, #2563eb);
    font-size: .82rem;
    font-weight: 700;
}
.audit-payload pre {
    margin: 6px 0 0;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    font-size: .78rem;
}
@media (max-width: 900px) {
    .audit-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audit-mini-list { grid-column: span 2; }
}
@media (max-width: 560px) {
    .audit-summary-grid { grid-template-columns: minmax(0, 1fr); }
    .audit-mini-list { grid-column: auto; }
}


/* v17.22.0 data health */
.system-data-health-panel {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.78), rgba(239, 246, 255, 0.72));
  border-color: rgba(20, 184, 166, 0.18);
}
.data-health-row {
  background: rgba(255, 255, 255, 0.72);
}
.data-health-row small {
  max-width: 760px;
}

/* v17.23.0 - search/filter usability and clearer module labels */
.nav-item,
.drawer-link,
.mobile-nav-item {
    color: #0f2f5f;
    font-size: calc(1em + 1px);
    font-weight: 750;
}
.nav-item.active,
.drawer-link.active,
.mobile-nav-item.active {
    color: #0b2a55;
}
.topbar h2 {
    color: #0b2a55;
    font-size: 19px;
    font-weight: 800;
}
.dashboard-search-card {
    border-color: #c9daf8 !important;
    background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%) !important;
    padding: 12px 14px;
}
.dashboard-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.dashboard-search-head strong {
    display: block;
    color: #0b2a55;
    font-size: 15px;
}
.dashboard-search-head small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
    font-size: 12px;
}
.dashboard-search-wrap {
    position: relative;
    width: 100%;
}
.dashboard-search-input {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #c9daf8;
    background: rgba(255,255,255,0.92);
    padding: 8px 12px;
    outline: none;
}
.dashboard-search-input:focus {
    border-color: #93b4ea;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}
.dashboard-search-results {
    position: absolute;
    z-index: 18;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
}
@media (max-width: 760px) {
    .dashboard-search-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .dashboard-search-results {
        position: static;
        margin-top: 8px;
        max-height: 420px;
    }
}

/* v17.23.1 - hazır filtre kısayolları */
.date-preset-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
}
.date-preset-row.full-width {
  grid-column: 1 / -1;
}
.preset-chip {
  border: 1px solid rgba(15, 42, 77, 0.16);
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(233, 240, 252, 0.95));
  color: #102a4c;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 43, 78, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.preset-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 42, 77, 0.32);
  background: linear-gradient(180deg, rgba(241, 247, 255, 1), rgba(225, 236, 250, 1));
}
.preset-chip.active-soft {
  background: linear-gradient(180deg, rgba(222, 237, 255, 1), rgba(201, 222, 247, 1));
  border-color: rgba(15, 42, 77, 0.38);
  color: #061b34;
}
@media (max-width: 760px) {
  .date-preset-row {
    width: 100%;
  }
  .preset-chip {
    padding: 7px 10px;
    font-size: 11px;
  }
}

/* v17.24.0 - hızlı işlem ve son kayıtlar */
.dashboard-quickops-card {
    border-color: rgba(15, 23, 42, 0.10);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(248, 250, 252, 0.98));
}

.dashboard-quickops-body {
    display: grid;
    gap: 14px;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-action-card {
    border: 1px solid rgba(30, 64, 175, 0.14);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.78);
    text-align: left;
    cursor: pointer;
    color: var(--navy, #0f2f5f);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.quick-action-card:hover,
.quick-action-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(30, 64, 175, 0.32);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    outline: none;
}

.quick-action-card strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.quick-action-card small {
    display: block;
    color: var(--muted, #64748b);
    line-height: 1.35;
}

.recent-activity-shell {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    padding: 12px;
}

.recent-activity-list {
    display: grid;
    gap: 8px;
}

.recent-activity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.recent-activity-row strong,
.recent-activity-row small,
.recent-activity-meta span,
.recent-activity-meta small {
    display: block;
}

.recent-activity-row small,
.recent-activity-meta small {
    color: var(--muted, #64748b);
}

.recent-activity-meta {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .recent-activity-row {
        grid-template-columns: 1fr;
    }

    .recent-activity-meta {
        text-align: left;
        white-space: normal;
    }
}

/* v17.24.1 - ana ekranda döviz/maden paneli üst özet boxlarının hemen altına taşındı */
.dashboard-grid + .market-shell {
    margin-top: 12px;
}


/* v17.24.9 - Cari ekstre aktif filtre bilgisi */
.statement-filter-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: -4px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.72);
  color: #475569;
  font-size: 12px;
}
.statement-filter-meta strong {
  color: #0f172a;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .statement-filter-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v17.25.19 - genel UI duzeltmeleri */
.app-shell input[type="text"],
.app-shell input[type="search"],
.app-shell textarea {
    text-transform: uppercase;
}

.nav-item,
.drawer-link,
.mobile-nav-item {
    text-align: left !important;
    justify-content: flex-start;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
}

.dashboard-quickops-card {
    margin-top: 2px;
}

/* v17.25.20 - sistem genelinde acilir bolum/menu basliklari sola yaslama */
.fold-card summary,
details.fold-card > summary,
.view-panel details > summary {
    justify-content: flex-start !important;
    text-align: left !important;
}

.fold-card summary > span,
details.fold-card > summary > span,
.view-panel details > summary > span {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left !important;
    margin-right: auto;
}

.fold-card summary > small,
.fold-card summary > .summary-badge,
details.fold-card > summary > small,
details.fold-card > summary > .summary-badge,
.view-panel details > summary > small,
.view-panel details > summary > .summary-badge {
    margin-left: auto;
    text-align: right;
}

.nav-item,
.drawer-link,
.mobile-nav-item {
    width: 100%;
    text-align: left !important;
    justify-content: flex-start !important;
}

/* v17.25.21 AI Sasi / Parca guclendirme */
.field-help {
    display:block;
    margin-top:6px;
    color:var(--muted);
    font-size:11px;
    line-height:1.35;
}
.field-help.success { color:#15803d; font-weight:700; }
.field-help.error { color:#b91c1c; font-weight:700; }
.ai-suggestions {
    display:grid;
    gap:10px;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid var(--line);
}
.ai-suggestions-head { display:grid; gap:3px; }
.ai-suggestions-head strong { font-size:14px; color:var(--text); }
.ai-suggestions-head span { font-size:12px; color:var(--muted); }
.ai-suggestion-list { display:grid; gap:8px; }
.ai-suggestion-card {
    display:grid;
    gap:3px;
    padding:10px 11px;
    border:1px solid #dbe5f3;
    border-radius:12px;
    background:#fbfdff;
}
.ai-suggestion-card strong { color:#1d4ed8; font-size:12px; }
.ai-suggestion-card span { color:var(--text); font-size:13px; font-weight:700; }
.ai-suggestion-card small { color:var(--muted); font-size:11px; }

/* v17.25.22 - E-Fatura icinden stok karti acma + AI gecmis silme */
.quick-stock-create {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 10px;
  border: 1px dashed rgba(37, 99, 235, .32);
  border-radius: 12px;
  background: #f8fbff;
}
.quick-stock-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.quick-stock-title strong {
  color: var(--text);
  font-size: 13px;
}
.quick-stock-title small {
  color: var(--muted);
  font-size: 11px;
}
.quick-stock-grid {
  display: grid;
  grid-template-columns: minmax(105px, .85fr) minmax(260px, 1.8fr) minmax(150px, 1fr) minmax(90px, .7fr) minmax(84px, .65fr) minmax(120px, .8fr);
  gap: 8px;
  align-items: end;
}
.quick-stock-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.quick-stock-grid input {
  min-width: 0;
}
.quick-stock-create > .slim-btn {
  justify-self: end;
  min-width: 190px;
}
.unmatched-line-card > .quick-stock-create,
.line-match-card > .quick-stock-create {
  grid-column: 1 / -1;
  margin-top: 2px;
}
.ai-history-buttons {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .quick-stock-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .quick-stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .quick-stock-title {
    display: grid;
  }
  .quick-stock-grid {
    grid-template-columns: 1fr;
  }
  .quick-stock-create > .slim-btn {
    justify-self: stretch;
    width: 100%;
  }
}

.elogo-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-color: var(--line);
    padding: 5px 10px;
    min-width: 104px;
}
.elogo-portal-btn:hover { background: #f8fafc; }
.elogo-portal-btn img {
    display: block;
    width: 78px;
    max-width: 100%;
    height: auto;
}

/* v17.26.4 - E-Fatura yeni stok karti ac alani sol alttan baslar */
.unmatched-line-card,
.line-match-card {
  grid-template-areas:
    "main actions"
    "quick quick";
  align-items: start;
}
.unmatched-line-main,
.line-match-main {
  grid-area: main;
  min-width: 0;
}
.unmatched-line-actions,
.line-match-actions {
  grid-area: actions;
  min-width: 0;
}
.unmatched-line-card > .quick-stock-create,
.line-match-card > .quick-stock-create {
  grid-area: quick;
  grid-column: 1 / -1;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin: 4px 0 0 0;
  box-sizing: border-box;
}
.quick-stock-create {
  box-sizing: border-box;
}
.quick-stock-grid {
  grid-template-columns: minmax(120px, .75fr) minmax(320px, 2.1fr) minmax(150px, .9fr) minmax(100px, .65fr) minmax(90px, .6fr) minmax(130px, .75fr);
}
@media (max-width: 900px) {
  .unmatched-line-card,
  .line-match-card {
    grid-template-areas:
      "main"
      "actions"
      "quick";
  }
  .unmatched-line-actions,
  .line-match-actions {
    width: 100%;
  }
}

/* v17.26.5 - E-Fatura satir eslestirme sag kolon hizalama duzeltmesi */
.unmatched-line-card,
.line-match-card {
  grid-template-columns: minmax(0, 1fr) minmax(430px, 34%);
  gap: .75rem 1rem;
}
.unmatched-line-actions,
.line-match-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
  grid-template-areas:
    "search search"
    "select button";
  gap: 8px;
  align-items: stretch;
  align-self: start;
  width: 100%;
  min-width: 0;
}
.unmatched-line-actions .line-product-search,
.line-match-actions .line-product-search {
  grid-area: search;
  width: 100%;
  min-width: 0;
}
.unmatched-line-actions select,
.line-match-actions select {
  grid-area: select;
  width: 100%;
  min-width: 0;
}
.unmatched-line-actions button,
.line-match-actions button {
  grid-area: button;
  grid-column: auto;
  grid-row: auto;
  justify-self: stretch;
  align-self: stretch;
  min-width: 104px;
  white-space: nowrap;
}
.line-match-card.matched .line-match-actions,
.line-match-card:not(.missing) .line-match-actions {
  align-content: start;
}
@media (max-width: 1100px) {
  .unmatched-line-card,
  .line-match-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "actions"
      "quick";
  }
  .unmatched-line-actions,
  .line-match-actions {
    grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
  }
}
@media (max-width: 640px) {
  .unmatched-line-actions,
  .line-match-actions {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "select"
      "button";
  }
}


/* v17.26.6 - Cari Hareketler tekli satir duzeni */
#accountsView .accounts-grid.compact-layout {
    grid-template-columns: 1fr;
    gap: 10px;
}
#accountsView .accounts-left,
#accountsView .accounts-right {
    display: contents;
}
#accountsView .accounts-left > details,
#accountsView .accounts-right > details {
    width: 100%;
    min-width: 0;
    margin: 0;
}
#accountsView .accounts-left > details:nth-of-type(2) { order: 1; }
#accountsView .accounts-left > details:nth-of-type(1) { order: 2; }
#accountsView #accountTxnCard { order: 3; }
#accountsView #accountDetailCard { order: 4; }
#accountsView .fold-card > summary {
    min-height: 48px;
}
@media (min-width: 901px) {
    #accountsView .accounts-grid.compact-layout {
        max-width: none;
    }
}

/* v17.26.8 - Veresiye Defteri */
.credit-ledger-shell {
  display: grid;
  gap: 18px;
}
.credit-ledger-receipt-card {
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px;
}
.credit-ledger-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.credit-ledger-title-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color, #d7e1f0);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(18, 38, 63, .08);
}
.credit-ledger-form label span,
.credit-ledger-filter-grid label span {
  display: block;
  margin-bottom: 7px;
  color: #3c4a5f;
  font-size: 12px;
  font-weight: 700;
}
.credit-ledger-form input,
.credit-ledger-form select,
.credit-ledger-filter-grid input,
.credit-ledger-filter-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 700;
  background: #fff;
}
.credit-ledger-top-grid {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}
.credit-ledger-customer-action-row {
  margin: 12px 0 14px 258px;
}
.credit-ledger-lines-card {
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.credit-ledger-line-head,
.credit-ledger-line {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 122px 164px 1fr 72px;
  gap: 20px;
  align-items: center;
}
.credit-ledger-line-head {
  background: #f5f8fc;
  padding: 14px 10px;
  color: #3c4a5f;
  font-size: 12px;
  font-weight: 800;
}
.credit-ledger-line {
  padding: 12px 10px;
  border-top: 1px solid #edf2f8;
}
.credit-ledger-line:nth-child(even) {
  background: #f8fbff;
}
.credit-ledger-line-total {
  text-align: right;
  white-space: nowrap;
}
.btn-danger-soft {
  border-color: #ffb8b8 !important;
  color: #d52626 !important;
  background: #fff6f6 !important;
}
.credit-ledger-bottom-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 320px;
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}
.credit-ledger-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.credit-ledger-vat-field {
  width: 170px;
}
.credit-ledger-total-box {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(18, 38, 63, .08);
  background: #fff;
}
.credit-ledger-total-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid #d8e2ef;
}
.credit-ledger-total-box div:last-child {
  border-bottom: 0;
}
.credit-ledger-total-box span {
  font-size: 12px;
  font-weight: 800;
  color: #3c4a5f;
}
.credit-ledger-total-box strong {
  font-size: 18px;
  color: #0d1b35;
}
.credit-ledger-total-box .grand {
  background: #eaf2ff;
}
.credit-ledger-total-box .grand strong,
.credit-ledger-total-box .grand span {
  color: #153d91;
}
.credit-ledger-save-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.credit-ledger-summary {
  margin: 10px 0 14px;
}
.credit-ledger-summary .mini-stat {
  min-width: 160px;
}
.credit-ledger-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(190px, 1fr) 140px 150px 150px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.credit-ledger-filter-actions {
  display: flex;
  gap: 8px;
}
.credit-ledger-head,
.credit-ledger-row {
  grid-template-columns: 150px minmax(180px, 1fr) minmax(190px, 1fr) 150px 110px 160px;
}
@media (max-width: 1100px) {
  .credit-ledger-top-grid,
  .credit-ledger-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .credit-ledger-customer-action-row {
    margin-left: 0;
  }
  .credit-ledger-line-head,
  .credit-ledger-line,
  .credit-ledger-head,
  .credit-ledger-row {
    grid-template-columns: 1fr;
  }
  .credit-ledger-line-total {
    text-align: left;
  }
}
@media (max-width: 720px) {
  .credit-ledger-top-grid,
  .credit-ledger-filter-grid,
  .credit-ledger-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* v17.26.12 - Veresiye Defteri liste/ozet alan duzeltmesi */
.credit-ledger-list-card {
  padding: 16px;
  overflow: visible;
}
.credit-ledger-list-card .list-head {
  align-items: flex-start;
  margin-bottom: 12px;
}
.credit-ledger-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.credit-ledger-stat {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 38, 63, .04);
}
.credit-ledger-stat span {
  display: block;
  color: #5b6a80;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.credit-ledger-stat strong {
  display: block;
  color: #0d1b35;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.credit-ledger-stat.strong {
  border-color: #bcd3ff;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.credit-ledger-stat.strong strong { color: #153d91; }
.credit-ledger-filter-grid {
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 1.1fr) minmax(140px, .7fr) minmax(150px, .75fr) minmax(150px, .75fr) auto;
  gap: 12px;
  margin-bottom: 14px;
}
.credit-ledger-filter-actions {
  align-items: end;
  justify-content: flex-end;
}
.credit-ledger-table {
  border-radius: 14px;
  overflow: hidden;
}
.credit-ledger-head,
.credit-ledger-row {
  grid-template-columns: minmax(130px, .9fr) minmax(230px, 1.25fr) minmax(220px, 1.35fr) minmax(140px, .8fr) minmax(100px, .6fr) minmax(150px, .75fr);
  gap: 14px;
  padding-left: 14px;
  padding-right: 14px;
}
.credit-ledger-head { min-height: 46px; }
.credit-ledger-row { min-height: 62px; }
.credit-ledger-row .cell:nth-child(3) span {
  display: block;
  font-weight: 600;
  color: #0d1b35;
}
.credit-ledger-row .cell:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.credit-ledger-row .cell:nth-child(4) strong {
  font-size: 14px;
  font-weight: 900;
}
.credit-ledger-row .cell:nth-child(5) {
  display: flex;
  align-items: center;
}
.credit-ledger-row .item-actions {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}
.credit-ledger-row .item-actions .text-btn {
  min-width: 0;
  white-space: nowrap;
}
@media (max-width: 1280px) {
  .credit-ledger-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .credit-ledger-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .credit-ledger-filter-actions { justify-content: flex-start; }
  .credit-ledger-head,
  .credit-ledger-row {
    grid-template-columns: minmax(120px, .85fr) minmax(210px, 1.2fr) minmax(180px, 1fr) minmax(130px, .8fr) 95px 145px;
  }
}
@media (max-width: 900px) {
  .credit-ledger-summary,
  .credit-ledger-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credit-ledger-head { display: none; }
  .credit-ledger-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }
  .credit-ledger-row .cell:nth-child(4) { text-align: left; }
  .credit-ledger-row .item-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 620px) {
  .credit-ledger-summary,
  .credit-ledger-filter-grid { grid-template-columns: 1fr; }
}


/* v17.26.13 - Veresiye Defteri iki kolon ve fiş düzenleme */
.credit-ledger-shell {
  grid-template-columns: minmax(720px, 1fr) minmax(300px, 360px);
  align-items: start;
}
.credit-ledger-receipt-card {
  max-width: none;
  margin: 0;
  justify-self: stretch;
}
.credit-ledger-customer-card {
  padding: 16px;
  position: sticky;
  top: 82px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.credit-ledger-customer-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}
.credit-ledger-customer-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 38, 63, .035);
}
.credit-ledger-customer-row.active {
  border-color: #9ec2ff;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.credit-ledger-customer-main {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.credit-ledger-customer-main strong,
.credit-ledger-customer-main small {
  display: block;
}
.credit-ledger-customer-main strong {
  color: #0d2a57;
  font-weight: 900;
  line-height: 1.25;
}
.credit-ledger-customer-main small {
  margin-top: 3px;
  color: #60728a;
  font-size: 12px;
}
.credit-ledger-customer-balance {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f6f9fd;
  border: 1px solid #e4ebf5;
}
.credit-ledger-customer-balance span,
.credit-ledger-customer-balance small {
  color: #60728a;
  font-size: 11px;
  font-weight: 700;
}
.credit-ledger-customer-balance strong {
  color: #153d91;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}
.credit-ledger-book-card {
  grid-column: 1 / -1;
}
.credit-ledger-edit-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #bcd3ff;
  border-radius: 12px;
  background: #eef5ff;
  color: #153d91;
  font-size: 13px;
  font-weight: 800;
}
.credit-ledger-row .item-actions {
  gap: 6px;
}
.credit-ledger-row .item-actions .text-btn {
  padding-left: 9px;
  padding-right: 9px;
}
#creditLedgerFormTitle {
  transition: color .15s ease;
}
@media (max-width: 1180px) {
  .credit-ledger-shell {
    grid-template-columns: 1fr;
  }
  .credit-ledger-customer-card {
    position: static;
    max-height: none;
  }
  .credit-ledger-customer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}
@media (max-width: 760px) {
  .credit-ledger-customer-list {
    grid-template-columns: 1fr;
  }
}


/* v17.26.14 - Veresiye Defteri fold-card ve sabit olmayan usta listesi */
.credit-ledger-shell {
  align-items: start;
}
.credit-ledger-receipt-card,
.credit-ledger-customer-card,
.credit-ledger-book-card {
  overflow: visible;
}
.credit-ledger-receipt-card > summary,
.credit-ledger-customer-card > summary,
.credit-ledger-book-card > summary {
  min-height: 58px;
}
.credit-ledger-receipt-card > summary .credit-ledger-title-row {
  margin-bottom: 0;
}
.credit-ledger-customer-card {
  position: static !important;
  top: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
}
.credit-ledger-customer-card .fold-body,
.credit-ledger-book-card .fold-body,
.credit-ledger-receipt-card .fold-body {
  padding-top: 12px;
}
.credit-ledger-customer-list {
  overflow: visible;
  max-height: none;
  padding-right: 0;
}
.credit-ledger-customer-toolbar,
.credit-ledger-book-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.credit-ledger-book-card {
  grid-column: 1 / -1;
}
.credit-ledger-book-card[open] {
  align-self: stretch;
}
.credit-ledger-receipt-card:not([open]),
.credit-ledger-customer-card:not([open]),
.credit-ledger-book-card:not([open]) {
  min-height: 0;
}
@media (max-width: 1180px) {
  .credit-ledger-customer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .credit-ledger-customer-list {
    grid-template-columns: 1fr;
  }
}

/* v17.26.15 - Veresiye Defteri usta kart aksiyonlari ve gecikme isareti */
.credit-ledger-customer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.credit-ledger-customer-actions .text-btn {
  justify-content: center;
  min-height: 34px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
}
.credit-ledger-customer-actions .text-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.credit-overdue-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #ffc9c9;
  font-size: 11px;
  font-weight: 800;
}
.credit-ledger-row .badge.expense + small {
  display: block;
  margin-top: 5px;
  color: #b42318;
  font-weight: 700;
}
@media (max-width: 720px) {
  .credit-ledger-customer-actions {
    grid-template-columns: 1fr;
  }
}

/* v17.26.16 - Veresiye Defteri satir duzeni: Usta Listesi -> Veresiye Fisi -> Defter */
.credit-ledger-shell {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  align-items: stretch !important;
}
#creditLedgerCustomerCard {
  order: 1;
  width: 100%;
  position: static !important;
  top: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
  grid-column: 1 / -1 !important;
}
#creditLedgerReceiptCard {
  order: 2;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  justify-self: stretch !important;
  grid-column: 1 / -1 !important;
}
#creditLedgerBookCard {
  order: 3;
  width: 100%;
  grid-column: 1 / -1 !important;
}
#creditLedgerCustomerCard .fold-body,
#creditLedgerReceiptCard .fold-body,
#creditLedgerBookCard .fold-body {
  width: 100%;
}
#creditLedgerCustomerList.credit-ledger-customer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  overflow: visible !important;
  max-height: none !important;
  padding-right: 0 !important;
}
.credit-ledger-customer-toolbar,
.credit-ledger-book-toolbar {
  justify-content: flex-start;
}
@media (max-width: 720px) {
  #creditLedgerCustomerList.credit-ledger-customer-list {
    grid-template-columns: 1fr;
  }
}

/* v17.26.17 - Veresiye Defteri gercek satir sirasi duzeltmesi
   DOM sirasi artik: Usta Listesi -> Veresiye Fisi -> Defter.
   Eski iki kolon / order / sticky kalintilarini tamamen ezer. */
#credit_ledgerView .credit-ledger-shell {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 12px !important;
  align-items: stretch !important;
}
#creditLedgerCustomerCard,
#creditLedgerReceiptCard,
#creditLedgerBookCard {
  order: unset !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  grid-column: auto !important;
  justify-self: stretch !important;
  position: static !important;
  top: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
}
#creditLedgerCustomerList.credit-ledger-customer-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 10px !important;
  overflow: visible !important;
  max-height: none !important;
  padding-right: 0 !important;
}
#creditLedgerCustomerCard .fold-body,
#creditLedgerReceiptCard .fold-body,
#creditLedgerBookCard .fold-body {
  width: 100% !important;
}
#creditLedgerCustomerCard > summary,
#creditLedgerReceiptCard > summary,
#creditLedgerBookCard > summary {
  cursor: pointer;
}
@media (max-width: 720px) {
  #creditLedgerCustomerList.credit-ledger-customer-list {
    grid-template-columns: 1fr !important;
  }
}

/* v17.26.18 - Veresiye Defteri kesin tek kolon / satir duzeni
   Hedef siralama: 1) Usta Listesi, 2) Veresiye Fisi, 3) Defter.
   Bu blok dosyanin en sonunda oldugu icin eski iki kolon, grid, sticky ve order kalintilarini ezer. */
#credit_ledgerView .credit-ledger-shell,
#credit_ledgerView .credit-ledger-shell.credit-ledger-single-column-final {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-auto-flow: row !important;
  gap: 12px !important;
  align-items: stretch !important;
  width: 100% !important;
}
#credit_ledgerView .credit-ledger-shell > #creditLedgerCustomerCard,
#credit_ledgerView .credit-ledger-shell > #creditLedgerReceiptCard,
#credit_ledgerView .credit-ledger-shell > #creditLedgerBookCard {
  display: block !important;
  float: none !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  overflow: visible !important;
}
#credit_ledgerView .credit-ledger-shell > #creditLedgerCustomerCard { order: 1 !important; }
#credit_ledgerView .credit-ledger-shell > #creditLedgerReceiptCard { order: 2 !important; }
#credit_ledgerView .credit-ledger-shell > #creditLedgerBookCard { order: 3 !important; }
#credit_ledgerView #creditLedgerCustomerCard .fold-body,
#credit_ledgerView #creditLedgerReceiptCard .fold-body,
#credit_ledgerView #creditLedgerBookCard .fold-body {
  width: 100% !important;
}
#credit_ledgerView #creditLedgerCustomerList.credit-ledger-customer-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  overflow: visible !important;
  max-height: none !important;
  padding-right: 0 !important;
}
#credit_ledgerView #creditLedgerCustomerCard[open],
#credit_ledgerView #creditLedgerReceiptCard[open],
#credit_ledgerView #creditLedgerBookCard[open] {
  display: block !important;
}
@media (max-width: 720px) {
  #credit_ledgerView #creditLedgerCustomerList.credit-ledger-customer-list {
    grid-template-columns: 1fr !important;
  }
}


/* v17.26.19 - Veresiye Defteri kesin satir kilidi: Usta Listesi -> Veresiye Fisi -> Defter */
#credit_ledgerView .credit-ledger-shell {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-auto-flow: row !important;
  gap: 12px !important;
  align-items: stretch !important;
  width: 100% !important;
}
#credit_ledgerView .credit-ledger-shell > details,
#credit_ledgerView #creditLedgerCustomerCard,
#credit_ledgerView #creditLedgerReceiptCard,
#credit_ledgerView #creditLedgerBookCard {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  grid-column: 1 / -1 !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  overflow: visible !important;
}
#credit_ledgerView #creditLedgerCustomerCard { order: 1 !important; }
#credit_ledgerView #creditLedgerReceiptCard { order: 2 !important; }
#credit_ledgerView #creditLedgerBookCard { order: 3 !important; }


/* v17.26.20 - Veresiye Defteri usta durum yonetimi */
#credit_ledgerView .credit-ledger-customer-toolbar {
  display: flex !important;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#credit_ledgerView .credit-ledger-mode-field {
  min-width: 220px;
  flex: 1 1 260px;
}
#credit_ledgerView .credit-ledger-mode-field span {
  display: block;
  font-size: 12px;
  color: var(--muted, #64748b);
  margin-bottom: 4px;
}
#credit_ledgerView .credit-ledger-mode-field select {
  width: 100%;
}
#credit_ledgerView .credit-ledger-customer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
#credit_ledgerView .credit-active-chip,
#credit_ledgerView .credit-passive-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
#credit_ledgerView .credit-active-chip {
  background: #dcfce7;
  color: #166534;
}
#credit_ledgerView .credit-passive-chip {
  background: #e5e7eb;
  color: #475569;
}
#credit_ledgerView .credit-ledger-customer-row.passive {
  opacity: .76;
  background: #f8fafc;
}
#credit_ledgerView .credit-ledger-customer-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* v17.26.22 - Veresiye Defteri rapor, modern modal ve bilgilendirme boxlari */
.info-box-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.info-box {
  border: 1px solid #d7e3f4;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  min-height: 84px;
}
.info-box span { display: block; color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.info-box strong { display: block; margin-top: 7px; color: #0f2e66; font-size: 22px; font-weight: 900; }
.info-box small { display: block; margin-top: 4px; color: #64748b; font-weight: 600; }
.info-box.warning { border-color: #fecaca; background: linear-gradient(135deg, #fff 0%, #fff7ed 100%); }
.info-box.warning strong { color: #b42318; }
.info-box.muted { border-color: #dbe4f0; background: linear-gradient(135deg, #fff 0%, #f5f7fb 100%); }
.dashboard-credit-ledger-boxes { margin: 14px 0 18px; }
.credit-ledger-info-boxes { order: 0; }
#credit_ledgerView .credit-ledger-shell > #creditLedgerCustomerCard { order: 1 !important; }
#credit_ledgerView .credit-ledger-shell > #creditLedgerReceiptCard { order: 2 !important; }
#credit_ledgerView .credit-ledger-shell > #creditLedgerBookCard { order: 3 !important; }
#credit_ledgerView .credit-ledger-shell > #creditLedgerReportCard { order: 4 !important; }
#credit_ledgerView .credit-ledger-shell > details { width: 100% !important; max-width: none !important; }
.credit-ledger-customer-toolbar-v22 {
  display: grid !important;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.credit-ledger-add-customer-btn {
  font-weight: 900;
  letter-spacing: .03em;
  min-height: 42px;
  padding-inline: 18px;
}
.credit-ledger-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.credit-ledger-report-summary { margin-top: 4px; }
.credit-ledger-report-table { margin-top: 10px; }
.credit-ledger-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.credit-ledger-modal {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid #d7e3f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  overflow: hidden;
}
.credit-ledger-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  border-bottom: 1px solid #e2eaf6;
}
.credit-ledger-modal-head strong { display: block; font-size: 17px; color: #0b2a5b; }
.credit-ledger-modal-head small { color: #64748b; font-weight: 700; }
.credit-ledger-modal-close {
  border: 1px solid #d7e3f4;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.credit-ledger-modal-body { display: grid; gap: 12px; padding: 18px; }
.credit-ledger-modal-body label span { display: block; margin-bottom: 6px; color: #475569; font-size: 12px; font-weight: 800; }
.credit-ledger-modal-body input,
.credit-ledger-modal-body textarea {
  width: 100%;
  border: 1px solid #cbd8ea;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
  background: #fff;
}
.credit-ledger-modal-body input:focus,
.credit-ledger-modal-body textarea:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, .14); }
.credit-ledger-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px 18px; background: #fbfdff; }
@media (max-width: 900px) {
  .info-box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credit-ledger-customer-toolbar-v22 { grid-template-columns: 1fr; }
  .credit-ledger-report-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .info-box-grid { grid-template-columns: 1fr; }
  .credit-ledger-modal-backdrop { align-items: flex-start; overflow: auto; }
}


/* v17.26.23 - Veresiye Defteri yazdirma aksiyonlari */
.credit-ledger-book-toolbar,
.credit-ledger-customer-toolbar {
  flex-wrap: wrap;
  gap: 8px;
}
.credit-ledger-customer-actions .text-btn[data-action="credit-customer-print"],
.credit-ledger-row .text-btn[data-action="credit-print"] {
  color: #075985;
}
@media print {
  #sidebar,
  .sidebar,
  .topbar,
  .header,
  .app-header,
  .nav,
  .btn,
  button,
  input,
  select,
  textarea {
    display: none !important;
  }
  #credit_ledgerView,
  #creditLedgerBookCard,
  #creditLedgerReportCard,
  #creditLedgerCustomerCard {
    display: block !important;
  }
}

/* v17.26.26 - Veresiye Defteri kart baslik hizalama ve fis ikonu kaldirma */
#credit_ledgerView .fold-card > summary {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 58px;
  padding: 14px 18px !important;
}
#credit_ledgerView .fold-card > summary::before {
  flex: 0 0 auto !important;
  margin: 0 !important;
}
#credit_ledgerView .fold-card > summary > div,
#credit_ledgerView .fold-card > summary > .credit-ledger-summary-title,
#credit_ledgerView .fold-card > summary > .credit-ledger-title-row {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}
#credit_ledgerView .fold-card > summary h3,
#credit_ledgerView .fold-card > summary h4 {
  margin: 0 0 3px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  color: #071f4d !important;
}
#credit_ledgerView .fold-card > summary .section-subtitle {
  margin: 0 !important;
  line-height: 1.25 !important;
}
#credit_ledgerView .fold-card > summary > .summary-badge {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  white-space: nowrap !important;
  align-self: center !important;
}
#credit_ledgerView .credit-ledger-title-icon {
  display: none !important;
}
#credit_ledgerView .credit-ledger-title-row {
  display: block !important;
  padding: 0 !important;
  gap: 0 !important;
}
#creditLedgerReceiptCard > summary .credit-ledger-summary-title {
  padding-left: 0 !important;
}
@media (max-width: 720px) {
  #credit_ledgerView .fold-card > summary {
    align-items: flex-start !important;
  }
  #credit_ledgerView .fold-card > summary > .summary-badge {
    margin-top: 2px !important;
  }
}



/* v17.26.27 - Genel Durum alt Veresiye kutularini ust KPI tasarimina uydur */
#dashboardCreditLedgerBoxes.dashboard-credit-ledger-boxes {
    margin: 14px 0 18px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
#dashboardCreditLedgerBoxes .credit-info-box {
    min-height: 84px;
    padding: 12px 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}
#dashboardCreditLedgerBoxes .credit-info-box span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}
#dashboardCreditLedgerBoxes .credit-info-box strong {
    display: block;
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: 800;
}
#dashboardCreditLedgerBoxes .credit-info-box small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
#dashboardCreditLedgerBoxes .credit-info-box.warning {
    border-left: 3px solid #dc2626;
}
#dashboardCreditLedgerBoxes .credit-info-box.warning strong {
    color: #b42318;
}
#dashboardCreditLedgerBoxes .credit-info-box.muted strong {
    color: #0f2e66;
}
@media (max-width: 1280px) {
    #dashboardCreditLedgerBoxes.dashboard-credit-ledger-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    #dashboardCreditLedgerBoxes.dashboard-credit-ledger-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    #dashboardCreditLedgerBoxes.dashboard-credit-ledger-boxes { grid-template-columns: 1fr; }
}

/* v17.26.28 - Veresiye Defteri hizalama: bilgi kutulari ve acilir kartlari ayni aksa al */
#credit_ledgerView {
  box-sizing: border-box !important;
}
#credit_ledgerView .credit-ledger-info-boxes {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}
#credit_ledgerView .credit-ledger-info-boxes .info-box {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 96px !important;
  box-sizing: border-box !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
#credit_ledgerView .credit-ledger-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}
#credit_ledgerView .credit-ledger-shell > details,
#credit_ledgerView #creditLedgerCustomerCard,
#credit_ledgerView #creditLedgerReceiptCard,
#credit_ledgerView #creditLedgerBookCard,
#credit_ledgerView #creditLedgerReportCard {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
#credit_ledgerView .fold-card > summary {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 14px !important;
  min-height: 74px !important;
  padding: 18px 28px !important;
  box-sizing: border-box !important;
}
#credit_ledgerView .fold-card > summary::before {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  justify-self: center !important;
  align-self: center !important;
}
#credit_ledgerView .fold-card > summary > div,
#credit_ledgerView .fold-card > summary > .credit-ledger-summary-title,
#credit_ledgerView .fold-card > summary > .credit-ledger-title-row {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}
#credit_ledgerView .fold-card > summary > .summary-badge {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: center !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
#credit_ledgerView .fold-card > .fold-body,
#credit_ledgerView .credit-ledger-customer-card .fold-body,
#credit_ledgerView .credit-ledger-receipt-card .fold-body,
#credit_ledgerView .credit-ledger-book-card .fold-body,
#credit_ledgerView .credit-ledger-report-card .fold-body {
  padding: 16px 28px 22px !important;
  box-sizing: border-box !important;
}
@media (max-width: 1180px) {
  #credit_ledgerView .credit-ledger-info-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  #credit_ledgerView .credit-ledger-info-boxes {
    grid-template-columns: 1fr !important;
  }
  #credit_ledgerView .fold-card > summary {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    row-gap: 8px !important;
    padding: 16px 18px !important;
  }
  #credit_ledgerView .fold-card > summary > .summary-badge {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
  }
  #credit_ledgerView .fold-card > .fold-body,
  #credit_ledgerView .credit-ledger-customer-card .fold-body,
  #credit_ledgerView .credit-ledger-receipt-card .fold-body,
  #credit_ledgerView .credit-ledger-book-card .fold-body,
  #credit_ledgerView .credit-ledger-report-card .fold-body {
    padding: 14px 18px 18px !important;
  }
}

/* v17.27.0 - Raporlar ve yazdirma hatti baslangici */
.reports-print-header {
  display: none;
}
#reportsView .fold-card[open] > .fold-body {
  padding-top: 16px;
}
#reportsView .report-shell {
  gap: 14px;
}
#reportsView .report-card,
#reportsView .report-box {
  border-color: #d9e4f2;
}
@media print {
  @page {
    margin: 12mm;
  }
  body {
    background: #fff !important;
    color: #0f172a !important;
  }
  .reports-print-header {
    display: flex !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #fff;
    break-inside: avoid;
  }
  .reports-print-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .reports-print-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
  }
  .reports-print-brand strong {
    display: block;
    font-size: 15px;
    letter-spacing: .01em;
  }
  .reports-print-brand span {
    display: block;
    margin-top: 3px;
    color: #475569;
    font-size: 11px;
  }
  .reports-print-brand small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
  }
  .reports-print-meta {
    min-width: 175px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    padding: 9px 12px;
    text-align: right;
    background: #f8fafc;
  }
  .reports-print-meta span,
  .reports-print-meta small {
    display: block;
    color: #64748b;
    font-size: 10px;
  }
  .reports-print-meta strong {
    display: block;
    margin: 2px 0 4px;
    font-size: 14px;
  }
  #reportsView {
    font-size: 10.5px !important;
  }
  #reportsView .section-head {
    display: none !important;
  }
  #reportsView .report-grid,
  #reportsView .compact-report-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  #reportsView .report-columns,
  #reportsView .report-columns-compact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }
  #reportsView .card,
  #reportsView .report-card,
  #reportsView .report-box {
    border: 1px solid #d7e1ee !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 10px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  #reportsView .report-box strong {
    font-size: 16px !important;
  }
  #reportsView .list-head,
  #reportsView .slim-list-head {
    margin-bottom: 8px !important;
  }
  #reportsView .trend-row,
  #reportsView .report-list-row,
  #reportsView .report-mini-table > div {
    min-height: 24px !important;
  }
  #reportsView .summary-badge {
    border-color: #d7e1ee !important;
    background: #f8fafc !important;
  }
  #reportsView .trend-bar-track {
    background: #e7eef7 !important;
  }
  #reportsView .trend-bar-fill {
    background: #0f3b82 !important;
  }
  #reportsView .trend-bar-fill.alt {
    background: #1f7665 !important;
  }
}

/* v17.27.1 - A4 kurumsal rapor tasarimi */
#reportsView .reports-print-header {
  border-color: #d8e2ef;
}
#reportsView .report-shell {
  max-width: 1180px;
  margin: 0 auto;
  gap: 18px;
}
#reportsView .report-grid.compact-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
#reportsView .report-columns.report-columns-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
#reportsView .report-box,
#reportsView .report-card {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}
#reportsView .report-box.compact {
  min-height: 104px;
  padding: 16px 18px;
  display: grid;
  align-content: center;
  gap: 5px;
}
#reportsView .report-box .muted-label,
#reportsView .report-box.compact .muted-label {
  color: #53657e;
  font-weight: 700;
  letter-spacing: .01em;
}
#reportsView .report-box strong {
  color: #082a5c;
  font-size: 22px;
  letter-spacing: -.02em;
}
#reportsView .report-card {
  padding: 18px;
}
#reportsView .report-card h4 {
  color: #0b234b;
  font-size: 18px;
  margin: 0;
}
#reportsView .trend-row,
#reportsView .report-list-row {
  gap: 10px;
}
#reportsView .trend-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #eaf0f8;
  overflow: hidden;
}
#reportsView .trend-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f3b82, #255faf);
}
#reportsView .trend-bar-fill.alt {
  background: linear-gradient(90deg, #16725f, #2aa083);
}
#reportsView .report-mini-table > div {
  border-color: #dbe5f2;
  border-radius: 12px;
  background: #fff;
}
@media (max-width: 980px) {
  #reportsView .report-grid.compact-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #reportsView .report-columns.report-columns-compact { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  #reportsView .report-grid.compact-report-grid { grid-template-columns: 1fr; }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 9mm 9mm 10mm;
  }
  html,
  body {
    width: 210mm;
    min-height: 297mm;
    background: #fff !important;
    color: #0f172a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.print-reports-mode * {
    visibility: hidden !important;
  }
  body.print-reports-mode #appShell,
  body.print-reports-mode #appShell *,
  body.print-reports-mode #reportsView,
  body.print-reports-mode #reportsView * {
    visibility: visible !important;
  }
  body.print-reports-mode .sidebar,
  body.print-reports-mode .topbar,
  body.print-reports-mode .module-drawer,
  body.print-reports-mode #dashboardView,
  body.print-reports-mode #managementView,
  body.print-reports-mode #stockView,
  body.print-reports-mode #suppliersView,
  body.print-reports-mode #e_invoiceView,
  body.print-reports-mode #outgoing_e_invoiceView,
  body.print-reports-mode #purchaseView,
  body.print-reports-mode #cashView,
  body.print-reports-mode #credit_ledgerView,
  body.print-reports-mode #accountsView,
  body.print-reports-mode #quotesView,
  body.print-reports-mode #aiView,
  body.print-reports-mode .mobile-primary-nav,
  body.print-reports-mode .section-head,
  body.print-reports-mode #reportsView details > summary,
  body.print-reports-mode #reportsView .section-head,
  body.print-reports-mode #reportsView .inline-actions,
  body.print-reports-mode #reportsView button,
  body.print-reports-mode #reportsView input,
  body.print-reports-mode #reportsView select {
    display: none !important;
  }
  body.print-reports-mode #appShell,
  body.print-reports-mode .main-layout,
  body.print-reports-mode .content,
  body.print-reports-mode #reportsView,
  body.print-reports-mode #reportsView .fold-card,
  body.print-reports-mode #reportsView .fold-body,
  body.print-reports-mode #reportsView .report-screen {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  body.print-reports-mode .reports-print-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 55mm;
    align-items: stretch;
    gap: 8mm;
    border: 1px solid #cbd7e6;
    border-radius: 6mm;
    padding: 7mm;
    margin: 0 0 6mm !important;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%) !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-reports-mode .reports-print-brand {
    display: grid !important;
    grid-template-columns: 18mm minmax(0, 1fr);
    align-items: center;
    gap: 5mm;
    min-width: 0;
  }
  body.print-reports-mode .reports-print-brand img {
    width: 18mm !important;
    height: 18mm !important;
    object-fit: contain;
  }
  body.print-reports-mode .reports-print-brand strong {
    display: block;
    color: #092754;
    font-size: 14pt;
    line-height: 1.15;
    letter-spacing: -.01em;
  }
  body.print-reports-mode .reports-print-brand span {
    display: block;
    margin-top: 2mm;
    color: #56677e;
    font-size: 8.5pt;
  }
  body.print-reports-mode .reports-print-brand small {
    display: block;
    margin-top: 1mm;
    color: #64748b;
    font-size: 7.5pt;
    line-height: 1.25;
  }
  body.print-reports-mode .reports-print-meta {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 1.2mm;
    min-width: 0;
    border: 1px solid #d9e3ef;
    border-radius: 4mm;
    padding: 4mm;
    text-align: right;
    background: #ffffff !important;
  }
  body.print-reports-mode .reports-print-meta span,
  body.print-reports-mode .reports-print-meta small {
    display: block;
    color: #64748b;
    font-size: 7.5pt;
  }
  body.print-reports-mode .reports-print-meta strong {
    display: block;
    color: #0b234b;
    font-size: 13pt;
    letter-spacing: .02em;
  }
  body.print-reports-mode #reportsView .report-shell {
    display: grid !important;
    gap: 5mm !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: 8pt !important;
  }
  body.print-reports-mode #reportsView .report-grid.compact-report-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3mm !important;
    margin: 0 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-reports-mode #reportsView .report-columns.report-columns-compact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4mm !important;
    margin: 0 !important;
    align-items: start;
  }
  body.print-reports-mode #reportsView .report-box,
  body.print-reports-mode #reportsView .report-card {
    border: 1px solid #d7e1ee !important;
    border-radius: 4mm !important;
    background: #ffffff !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-reports-mode #reportsView .report-box.compact {
    min-height: 20mm !important;
    padding: 4mm !important;
    gap: 1mm !important;
  }
  body.print-reports-mode #reportsView .report-box strong {
    font-size: 12.5pt !important;
    color: #082a5c !important;
  }
  body.print-reports-mode #reportsView .report-box small,
  body.print-reports-mode #reportsView .muted-label,
  body.print-reports-mode #reportsView .summary-badge {
    font-size: 7.2pt !important;
  }
  body.print-reports-mode #reportsView .report-card {
    padding: 4mm !important;
  }
  body.print-reports-mode #reportsView .list-head,
  body.print-reports-mode #reportsView .slim-list-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 3mm;
    margin-bottom: 3mm !important;
  }
  body.print-reports-mode #reportsView .report-card h4 {
    color: #092754 !important;
    font-size: 11pt !important;
    margin: 0 !important;
  }
  body.print-reports-mode #reportsView .summary-badge {
    border: 1px solid #d7e1ee !important;
    background: #f8fafc !important;
    color: #334155 !important;
    padding: 1mm 2.4mm !important;
    border-radius: 99px !important;
  }
  body.print-reports-mode #reportsView .trend-bars,
  body.print-reports-mode #reportsView .compact-bars {
    display: grid !important;
    gap: 2.2mm !important;
  }
  body.print-reports-mode #reportsView .trend-row,
  body.print-reports-mode #reportsView .report-list-row {
    display: grid !important;
    align-items: center;
    min-height: auto !important;
    gap: 2mm !important;
    font-size: 7.6pt !important;
  }
  body.print-reports-mode #reportsView .trend-row-compact {
    grid-template-columns: 20mm minmax(0, 1fr) 26mm !important;
  }
  body.print-reports-mode #reportsView .trend-row-four,
  body.print-reports-mode #reportsView .compact-four {
    grid-template-columns: 34mm minmax(0, 1fr) 28mm 12mm !important;
  }
  body.print-reports-mode #reportsView .trend-row span,
  body.print-reports-mode #reportsView .report-list-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.print-reports-mode #reportsView .trend-row strong,
  body.print-reports-mode #reportsView .report-list-row strong {
    text-align: right;
    color: #0f172a !important;
    font-size: 7.5pt !important;
  }
  body.print-reports-mode #reportsView .trend-row small,
  body.print-reports-mode #reportsView .report-list-row small {
    text-align: right;
    color: #64748b !important;
    font-size: 6.8pt !important;
  }
  body.print-reports-mode #reportsView .trend-bar-track {
    height: 2mm !important;
    background: #e7edf6 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }
  body.print-reports-mode #reportsView .trend-bar-fill {
    height: 100% !important;
    border-radius: 999px !important;
    background: #0f3b82 !important;
  }
  body.print-reports-mode #reportsView .trend-bar-fill.alt {
    background: #1f7665 !important;
  }
  body.print-reports-mode #reportsView .report-mini-table {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2.5mm !important;
  }
  body.print-reports-mode #reportsView .report-mini-table > div {
    border: 1px solid #e0e8f3 !important;
    border-radius: 3mm !important;
    background: #fbfdff !important;
    padding: 2.4mm !important;
    min-height: 13mm !important;
  }
  body.print-reports-mode #reportsView .report-mini-table span {
    display: block;
    color: #64748b !important;
    font-size: 7pt !important;
  }
  body.print-reports-mode #reportsView .report-mini-table strong {
    display: block;
    margin-top: 1mm;
    color: #0f172a !important;
    font-size: 9pt !important;
  }
  body.print-reports-mode #reportsView .empty-state {
    color: #64748b !important;
    font-size: 8pt !important;
    margin: 0 !important;
  }
  body.print-reports-mode #reportsView .report-columns.report-columns-compact:nth-of-type(2n+1) {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* v17.27.2 - Rapor icerik iyilestirme ve bolumlu A4 akis */
#reportsView .report-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .045);
}
#reportsView .report-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3ebf5;
}
#reportsView .report-section-title > div {
  min-width: 0;
}
#reportsView .report-section-title h4 {
  margin: 3px 0 4px;
  color: #0b234b;
  font-size: 20px;
  letter-spacing: -.02em;
}
#reportsView .report-section-title p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
#reportsView .report-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  border-radius: 999px;
  background: #eef5ff;
  color: #0f3b82;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
#reportsView .report-section-title > strong {
  flex: 0 0 auto;
  border: 1px solid #d7e1ee;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  color: #082a5c;
  font-size: 13px;
  white-space: nowrap;
}
#reportsView .report-note-card .report-mini-table strong,
#reportsView .report-credit-card .report-mini-table strong {
  font-size: 13px;
}
#reportsView .report-final-row {
  align-items: start;
}
@media (max-width: 720px) {
  #reportsView .report-section {
    padding: 14px;
    border-radius: 18px;
  }
  #reportsView .report-section-title {
    display: grid;
  }
  #reportsView .report-section-title > strong {
    justify-self: start;
  }
}

@media print {
  body.print-reports-mode #reportsView .report-shell {
    gap: 0 !important;
  }
  body.print-reports-mode #reportsView .report-section {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }
  body.print-reports-mode #reportsView .report-section + .report-section {
    break-before: page;
    page-break-before: always;
  }
  body.print-reports-mode #reportsView .report-section-title {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 4mm;
    margin: 0 0 4mm !important;
    padding: 0 0 2.5mm !important;
    border-bottom: 1px solid #d7e1ee !important;
  }
  body.print-reports-mode #reportsView .report-section-title h4 {
    margin: 1mm 0 .8mm !important;
    color: #092754 !important;
    font-size: 13pt !important;
    line-height: 1.1 !important;
  }
  body.print-reports-mode #reportsView .report-section-title p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 7.5pt !important;
    line-height: 1.35 !important;
  }
  body.print-reports-mode #reportsView .report-section-index {
    min-width: 10mm !important;
    height: 5mm !important;
    border-radius: 99px !important;
    background: #eef5ff !important;
    color: #0f3b82 !important;
    font-size: 7pt !important;
  }
  body.print-reports-mode #reportsView .report-section-title > strong {
    border: 1px solid #d7e1ee !important;
    border-radius: 99px !important;
    padding: 1.3mm 2.5mm !important;
    background: #ffffff !important;
    color: #082a5c !important;
    font-size: 8pt !important;
  }
  body.print-reports-mode #reportsView .report-section .report-grid,
  body.print-reports-mode #reportsView .report-section .report-columns {
    margin-bottom: 4mm !important;
  }
  body.print-reports-mode #reportsView .report-section .report-grid:last-child,
  body.print-reports-mode #reportsView .report-section .report-columns:last-child {
    margin-bottom: 0 !important;
  }
}

/* v17.28.0 - Sistem ayarlari / firma bilgileri baslangici */
.system-settings-body { display: grid; gap: 14px; }
.system-settings-note {
    border: 1px solid var(--line);
    background: #fbfcfe;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.system-settings-note strong { font-size: 14px; color: var(--text); }
.system-settings-note p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.system-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: 14px;
    align-items: start;
}
.company-settings-preview {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    gap: 8px;
}
.company-settings-preview strong { font-size: 17px; letter-spacing: -.02em; line-height: 1.2; }
.company-settings-preview small { color: var(--muted); font-weight: 600; }
.company-preview-lines { display: grid; gap: 5px; margin-top: 4px; }
.company-preview-lines span { color: #334155; font-size: 12px; line-height: 1.4; }
.company-settings-preview p {
    border-top: 1px solid var(--line);
    padding-top: 8px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
@media (max-width: 980px) {
    .system-settings-layout { grid-template-columns: 1fr; }
    .system-settings-note { flex-direction: column; }
}

/* v17.28.1 - Firma bilgileri rapor/teklif/veresiye yazdirma basliklarina baglandi */

/* v17.29.0 - PARA kapali devre modul */
/* v17.29.1 - PARA rapor/gorsel iyilestirme ve kayit duzenleme */
/* v17.29.3 - PARA yazdirma raporu ekran goruntusunden ayrildi */
/* v17.29.5 - PARA hisse senedi yatirim alani */
.money-shell { display: flex; flex-direction: column; gap: 12px; }
.money-form-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); margin: 12px 0; }
.money-market-grid, .money-analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.money-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.money-market-card { border: 1px solid var(--border-color, #d7dee8); border-radius: 14px; padding: 12px; background: #fff; }
.money-market-card h4 { margin: 0 0 2px; }
.money-market-card > small { display: block; color: #64748b; margin-bottom: 8px; }
.money-market-row { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid #eef2f7; font-size: 13px; }
.money-market-row strong, .money-market-row small { text-align: right; font-variant-numeric: tabular-nums; }
.money-asset-card em { display: block; margin-top: 5px; font-style: normal; color: #475569; font-size: 11px; }
.money-total-card { grid-column: 1 / -1; }
.negative-card strong, .negative-card em { color: #b91c1c; }
.money-row-table .money-head, .money-row-table .money-row { grid-template-columns: 1fr 1.15fr .85fr .85fr .9fr; }
.money-report-section { margin: 10px 0 12px; }
.money-report-grid { margin-bottom: 12px; }
.money-report-split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin-bottom: 12px; }
.money-main-category-list { display: flex; flex-direction: column; gap: 8px; }
.money-main-category-row { display: grid; grid-template-columns: 1fr 90px 58px; gap: 8px; align-items: center; font-size: 12px; padding-bottom: 7px; border-bottom: 1px solid #eef2f7; }
.money-main-category-row strong, .money-main-category-row b { font-variant-numeric: tabular-nums; }
.money-main-category-row b { text-align: right; }
.money-main-category-row small { color: #64748b; text-align: right; }
.money-chart-list, .money-month-bars { display: flex; flex-direction: column; gap: 8px; }
.money-chart-row { display: grid; grid-template-columns: 1.1fr 1.5fr .75fr; gap: 10px; align-items: center; font-size: 12px; }
.money-chart-row b { text-align: right; font-variant-numeric: tabular-nums; }
.money-chart-row small { display: block; color: #64748b; }
.money-month-row { display: grid; grid-template-columns: 72px 1fr 110px; gap: 10px; align-items: center; font-size: 12px; }
.money-month-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.money-bar { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.money-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #22c55e); min-width: 0; }
.print-money-mode .app-sidebar, .print-money-mode .topbar, .print-money-mode .mobile-primary-nav, .print-money-mode .no-print { display: none !important; }
.print-money-mode .app-shell, .print-money-mode .content { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.print-money-mode .view-panel { display: none !important; }
.print-money-mode #moneyView { display: block !important; }
.print-money-mode #moneyView .fold-card { break-inside: avoid; page-break-inside: avoid; box-shadow: none; border: 1px solid #d7dee8; }
@media (max-width: 900px) {
  .money-form-grid, .money-market-grid, .money-analytics-grid, .money-report-split { grid-template-columns: 1fr; }
  .money-row-table .money-head, .money-row-table .money-row, .money-main-category-row { grid-template-columns: 1fr; }
  .money-chart-row, .money-month-row { grid-template-columns: 1fr; }
}

.money-print-report { display: none; }

@media print {
  body.print-money-mode {
    width: auto !important;
    min-height: auto !important;
    background: #fff !important;
  }
  body.print-money-mode * {
    visibility: hidden !important;
  }
  body.print-money-mode .money-print-report,
  body.print-money-mode .money-print-report * {
    visibility: visible !important;
  }
  body.print-money-mode .sidebar,
  body.print-money-mode .topbar,
  body.print-money-mode .module-drawer,
  body.print-money-mode .mobile-primary-nav,
  body.print-money-mode .section-head,
  body.print-money-mode .money-shell,
  body.print-money-mode #dashboardView,
  body.print-money-mode #managementView,
  body.print-money-mode #stockView,
  body.print-money-mode #suppliersView,
  body.print-money-mode #e_invoiceView,
  body.print-money-mode #outgoing_e_invoiceView,
  body.print-money-mode #purchaseView,
  body.print-money-mode #cashView,
  body.print-money-mode #credit_ledgerView,
  body.print-money-mode #accountsView,
  body.print-money-mode #quotesView,
  body.print-money-mode #reportsView,
  body.print-money-mode #aiView {
    display: none !important;
  }
  body.print-money-mode #appShell,
  body.print-money-mode .main-layout,
  body.print-money-mode .content,
  body.print-money-mode #moneyView,
  body.print-money-mode .money-print-report {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  body.print-money-mode .money-print-sheet {
    display: block !important;
    color: #0f172a !important;
    font-size: 8pt !important;
    line-height: 1.35 !important;
  }
  body.print-money-mode .money-print-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 55mm;
    gap: 8mm;
    align-items: stretch;
    border: 1px solid #cbd7e6;
    border-radius: 6mm;
    padding: 7mm;
    margin: 0 0 6mm !important;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%) !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-money-mode .money-print-brand {
    display: grid !important;
    grid-template-columns: 18mm minmax(0, 1fr);
    align-items: center;
    gap: 5mm;
    min-width: 0;
  }
  body.print-money-mode .money-print-brand img {
    width: 18mm !important;
    height: 18mm !important;
    object-fit: contain;
  }
  body.print-money-mode .money-print-brand strong {
    display: block;
    color: #092754 !important;
    font-size: 14pt !important;
    line-height: 1.15 !important;
    letter-spacing: -.01em;
  }
  body.print-money-mode .money-print-brand span,
  body.print-money-mode .money-print-brand small {
    display: block;
    margin-top: 1.4mm;
    color: #64748b !important;
    font-size: 7.6pt !important;
  }
  body.print-money-mode .money-print-meta {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 1.2mm;
    border: 1px solid #d9e3ef;
    border-radius: 4mm;
    padding: 4mm;
    text-align: right;
    background: #fff !important;
  }
  body.print-money-mode .money-print-meta span,
  body.print-money-mode .money-print-meta small {
    display: block;
    color: #64748b !important;
    font-size: 7.5pt !important;
  }
  body.print-money-mode .money-print-meta strong {
    display: block;
    color: #0b234b !important;
    font-size: 13pt !important;
    letter-spacing: .02em;
  }
  body.print-money-mode .money-print-section {
    display: block !important;
    margin: 0 0 5mm !important;
    padding: 0 !important;
    break-inside: auto;
    page-break-inside: auto;
  }
  body.print-money-mode .money-print-expense-section {
    break-before: page;
    page-break-before: always;
  }
  body.print-money-mode .money-print-section-title {
    display: grid !important;
    grid-template-columns: 10mm minmax(0, 1fr);
    gap: 3mm;
    align-items: start;
    margin: 0 0 3mm !important;
    padding: 0 0 2mm !important;
    border-bottom: 1px solid #d7e1ee !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-money-mode .money-print-section-title b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9mm;
    height: 5mm;
    border-radius: 99px;
    background: #eef5ff !important;
    color: #0f3b82 !important;
    font-size: 7pt !important;
  }
  body.print-money-mode .money-print-section-title h2 {
    margin: .4mm 0 .6mm !important;
    color: #092754 !important;
    font-size: 12pt !important;
    line-height: 1.1 !important;
  }
  body.print-money-mode .money-print-section-title p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 7.4pt !important;
  }
  body.print-money-mode .money-print-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3mm;
    margin: 0 0 4mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-money-mode .money-print-kpis article {
    border: 1px solid #d7e1ee;
    border-radius: 4mm;
    padding: 4mm;
    background: #fff !important;
    min-height: 20mm;
  }
  body.print-money-mode .money-print-kpis span,
  body.print-money-mode .money-print-kpis small {
    display: block;
    color: #64748b !important;
    font-size: 7pt !important;
  }
  body.print-money-mode .money-print-kpis strong {
    display: block;
    margin: 1.4mm 0 1mm;
    color: #082a5c !important;
    font-size: 12pt !important;
    font-variant-numeric: tabular-nums;
  }
  body.print-money-mode .money-print-kpis .negative strong { color: #b91c1c !important; }
  body.print-money-mode .money-print-kpis .positive strong { color: #047857 !important; }
  body.print-money-mode .money-print-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 0 4mm !important;
    font-size: 7.2pt !important;
    break-inside: auto;
    page-break-inside: auto;
  }
  body.print-money-mode .money-print-table th,
  body.print-money-mode .money-print-table td {
    border: 1px solid #dbe5f2 !important;
    padding: 1.8mm 2mm !important;
    vertical-align: top !important;
  }
  body.print-money-mode .money-print-table th {
    background: #eef5ff !important;
    color: #0b234b !important;
    text-align: left !important;
    font-weight: 800 !important;
  }
  body.print-money-mode .money-print-table .num {
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
  }
  body.print-money-mode .money-print-table .pos { color: #047857 !important; }
  body.print-money-mode .money-print-table .neg { color: #b91c1c !important; }
  body.print-money-mode .money-print-table .empty-cell {
    text-align: center !important;
    color: #64748b !important;
  }
  body.print-money-mode .money-print-columns {
    display: grid !important;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 4mm;
    align-items: start;
  }
  body.print-money-mode .money-print-month-chart {
    display: grid !important;
    gap: 1.8mm;
    border: 1px solid #dbe5f2;
    border-radius: 4mm;
    padding: 3mm;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.print-money-mode .money-print-month-row {
    display: grid !important;
    grid-template-columns: 18mm minmax(0, 1fr) 24mm;
    gap: 2mm;
    align-items: center;
    font-size: 7pt !important;
  }
  body.print-money-mode .money-print-month-row i {
    display: block;
    height: 2mm;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf6 !important;
  }
  body.print-money-mode .money-print-month-row b {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #0f766e !important;
  }
  body.print-money-mode .money-print-month-row strong {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
}
/* v17.29.6 - PARA hisse kayit ve canli veri offline-first hotfix */
.money-market-card .empty-state { margin: 4px 0 8px; }

/* v17.29.8 - PARA borsa veri kaynagi ve sayfa duzeni */
.money-top-summary { margin: 12px 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.money-top-box strong { font-size: 24px; }
.money-record-fold { margin-top: 12px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden; }
.money-record-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-weight: 800; color: #0f172a; background: linear-gradient(180deg, #f8fafc, #fff); }
.money-record-fold > summary::-webkit-details-marker { display: none; }
.money-record-fold > summary::before { content: '+'; width: 24px; height: 24px; border-radius: 999px; border: 1px solid #dbe3ef; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; color: #64748b; background: #fff; }
.money-record-fold[open] > summary::before { content: '-'; }
.money-record-fold > summary span { margin-right: auto; }
.money-record-fold > summary small { color: #64748b; font-size: 11px; font-weight: 600; }
.money-record-fold > .list-stack { padding: 12px; }
.money-market-fold { order: 99; }
@media (max-width: 900px) { .money-top-summary { grid-template-columns: 1fr; } }
/* v17.29.8 - PARA BIST kaynak durumu */
.money-market-source { margin: 8px 0 0; font-size: 11px; color: var(--muted); }


/* v17.29.11 - Kasa mevcut bakiye kutusu */
.cash-current-balance-grid {
    margin-bottom: 12px;
}
.cash-current-balance-grid .cash-current-balance-box {
    border-left: 5px solid #0f766e;
}
.cash-current-balance-box strong {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

/* v17.30.6 - ortak UI ve fatura havuzu duzeltmeleri */
.top-refresh-btn { white-space: nowrap; }
.cash-current-balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cash-current-balance-grid .cash-today-balance-box { border-left: 5px solid #2563eb; }
.cash-today-balance-box strong { font-size: clamp(1.35rem, 1.9vw, 1.9rem); }
.table-sort-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 800;
    text-align: inherit;
    cursor: pointer;
}
.table-sort-button:hover { color: var(--primary); }
.credit-ledger-customer-toolbar-v22 { grid-template-columns: auto minmax(180px, .75fr) minmax(220px, 1fr) auto auto !important; }
.credit-ledger-mode-field input[type="search"] { min-height: 36px; }
.credit-ledger-quick-entry-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.4fr) minmax(140px, .7fr) auto;
    gap: 10px;
    align-items: end;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}
.credit-ledger-quick-entry-grid label span {
    display: block;
    margin-bottom: 5px;
    color: #52637a;
    font-size: 12px;
    font-weight: 800;
}
.credit-ledger-quick-entry-grid input,
.credit-ledger-quick-entry-grid select {
    width: 100%;
    min-height: 36px;
}
.outgoing-create-form {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}
.outgoing-create-form label { min-width: 0; }
.outgoing-create-form .full-width { grid-column: 1 / -1; }
.outgoing-line-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.2fr) minmax(190px, 1.5fr) 92px 88px 120px 88px auto;
    gap: 10px;
    align-items: end;
}
.outgoing-e-invoice-table-row {
    grid-template-columns: 92px minmax(150px, 1.05fr) minmax(180px, 1.35fr) 104px 104px 118px 102px 124px;
}
.outgoing-e-invoice-table-row > div { min-width: 0; }
.outgoing-e-invoice-table-head { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 800; }
.outgoing-e-invoice-data-row { cursor: pointer; border-bottom: 1px solid #eef2f7; background: #fff; }
.outgoing-e-invoice-data-row:hover, .outgoing-e-invoice-data-row.selected { background: #eef6ff; }
.outgoing-e-invoice-table-wrap { max-height: 520px; }
.outgoing-row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.outgoing-row-actions .text-btn { font-size: 12px; }
@media (max-width: 1100px) {
    .outgoing-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .outgoing-line-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .credit-ledger-customer-toolbar-v22 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 720px) {
    .cash-current-balance-grid, .outgoing-create-form, .outgoing-line-row { grid-template-columns: 1fr; }
    .credit-ledger-customer-toolbar-v22 { grid-template-columns: 1fr !important; }
    .credit-ledger-quick-entry-grid { grid-template-columns: 1fr; }
}

/* v17.30.7 - giden fatura minimal tasarim ve KDV dahil satir ozetleri */
#outgoing_e_invoiceView .card,
#outgoing_e_invoiceView .detail-card {
    border-radius: 8px;
    box-shadow: none;
}
#outgoing_e_invoiceView .section-head {
    margin-bottom: 10px;
}
#outgoing_e_invoiceView .outgoing-create-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px;
    background: #f8fafc;
}
#outgoing_e_invoiceView .outgoing-create-form label span {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
#outgoing_e_invoiceView .outgoing-create-form input,
#outgoing_e_invoiceView .outgoing-create-form select,
#outgoing_e_invoiceView .outgoing-create-form textarea {
    min-height: 38px;
    border-radius: 8px;
    border-color: #d5dfec;
    background: #fff;
    font-size: 14px;
}
#outgoing_e_invoiceView .outgoing-create-form textarea {
    min-height: 58px;
}
#outgoing_e_invoiceView .outgoing-line-row {
    grid-template-columns: minmax(210px, 1.35fr) minmax(260px, 1.75fr) 92px 88px 128px 88px 54px;
    gap: 8px 10px;
    padding: 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}
#outgoing_e_invoiceView .outgoing-line-row .btn {
    min-height: 38px;
    padding-inline: 12px;
}
.outgoing-line-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 2px;
}
.outgoing-line-totals > div {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}
.outgoing-line-totals span,
.outgoing-line-totals small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
.outgoing-line-totals strong {
    display: block;
    margin: 3px 0 1px;
    color: #082344;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-wrap {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    overflow: auto;
    background: #fff;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row {
    display: grid;
    grid-template-columns: 220px minmax(220px, 1.1fr) minmax(170px, .85fr) minmax(170px, 1fr) 108px 122px 128px 88px 126px;
    align-items: center;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div {
    min-height: 52px;
    padding: 10px 10px;
    border-right: 1px solid #e6edf6;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div:last-child {
    border-right: 0;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-head > div {
    min-height: 42px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    background: #f8fafc;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row {
    border-bottom: 1px solid #edf2f7;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row:last-child {
    border-bottom: 0;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row strong {
    color: #0b2a52;
    font-size: 13px;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}
#outgoing_e_invoiceView .outgoing-row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    white-space: nowrap;
}
#outgoing_e_invoiceView .outgoing-row-actions .text-btn {
    min-height: 30px;
    padding: 4px 7px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    background: #fff;
    color: #0b2a52;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
#outgoing_e_invoiceView .outgoing-row-actions .text-btn:hover {
    background: #eef6ff;
}
#outgoing_e_invoiceView .outgoing-row-actions .text-btn.danger {
    color: #b91c1c;
}
@media (max-width: 1100px) {
    #outgoing_e_invoiceView .outgoing-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #outgoing_e_invoiceView .outgoing-line-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    #outgoing_e_invoiceView .outgoing-create-form,
    #outgoing_e_invoiceView .outgoing-line-row,
    .outgoing-line-totals { grid-template-columns: 1fr; }
}


/* v17.30.24 - UI gerçek dosya eşitleme, giden havuz gelen havuz iskeleti, buton taşma düzeltmesi */
:root {
  --km-logo-navy: #07152c;
  --km-logo-blue: #2f6df6;
  --km-logo-cyan: #24b7ff;
  --km-soft-blue: #eef6ff;
}
body { background: #f4f7fb; color: #07152c; }
.card, .detail-card, .fold-card, .view-panel { border-color: #d8e3f2; border-radius: 14px; box-shadow: none; }
.btn, .icon-btn, .text-btn, button { max-width: 100%; }
.inline-actions, .compact-actions, .compact-actions-row, .row-actions, .customer-actions, .table-actions, .e-invoice-actions-cell, .outgoing-row-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-wrap {
  border: 1px solid #d8e3f2 !important;
  border-radius: 12px !important;
  overflow: auto !important;
  background: #fff !important;
  max-height: 560px !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row {
  display: grid !important;
  grid-template-columns: 34px minmax(150px, 1.1fr) minmax(180px, 1.45fr) 86px 104px 122px 132px 88px 126px 160px !important;
  align-items: center !important;
  min-width: 1180px !important;
  gap: 0 !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div {
  min-height: 38px !important;
  padding: 8px 9px !important;
  border-right: 1px solid #e6edf6 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div:last-child { border-right: 0 !important; }
#outgoing_e_invoiceView .outgoing-e-invoice-table-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #f8fafc !important;
  color: #5c6f88 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  border-bottom: 1px solid #d8e3f2 !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row {
  cursor: pointer !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: #fff !important;
  font-size: 12.5px !important;
  color: #0b2447 !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row:hover,
#outgoing_e_invoiceView .outgoing-e-invoice-data-row.selected { background: #eef6ff !important; }
#outgoing_e_invoiceView .outgoing-row-actions,
#outgoing_e_invoiceView .e-invoice-actions-cell {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
}
#outgoing_e_invoiceView .icon-btn {
  min-width: 32px !important;
  width: auto !important;
  height: 25px !important;
  padding: 3px 7px !important;
  border: 1px solid #d8e3f2 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #0b2a52 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
#outgoing_e_invoiceView .icon-btn:hover { background: #eef6ff !important; }
#outgoing_e_invoiceView .icon-btn.danger { color: #b91c1c !important; border-color: #efcaca !important; }
#outgoing_e_invoiceView .badge.status-transferred,
#outgoing_e_invoiceView .badge.status-ready,
#outgoing_e_invoiceView .mini-pill.ok { background: #dff5e8 !important; color: #126b3a !important; }
#outgoing_e_invoiceView .badge.status-error,
#outgoing_e_invoiceView .mini-pill.danger { background: #fde2e2 !important; color: #991b1b !important; }
#outgoing_e_invoiceView .badge.status-waiting,
#outgoing_e_invoiceView .mini-pill.wait { background: #fff4d6 !important; color: #8a5a00 !important; }
#customersView .table-wrap, #customersView .data-table { overflow-x: auto; }
#customersView .data-table td:last-child,
#customersView .data-table th:last-child { min-width: 230px; white-space: normal; }
#customersView .data-table td:last-child .btn,
#customersView .data-table td:last-child button { margin: 2px; white-space: nowrap; }


/* v17.30.27 - gerçek render noktası + güvenli giden havuz final override */
#outgoing_e_invoiceView #outgoingEInvoiceList[data-km03-ui-proof],
#outgoing_e_invoiceView .outgoing-e-invoice-table-wrap[data-km03-ui-proof="v17.30.27-outgoing-table"] {
  width: 100%;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-wrap {
  border: 1px solid #d8e3f2 !important;
  border-radius: 12px !important;
  overflow: auto !important;
  background: #fff !important;
  max-height: 560px !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row {
  display: grid !important;
  grid-template-columns: 34px minmax(150px, 1.1fr) minmax(180px, 1.45fr) 86px 104px 122px 132px 88px 126px 160px !important;
  align-items: center !important;
  min-width: 1180px !important;
  gap: 0 !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div {
  min-height: 38px !important;
  padding: 8px 9px !important;
  border-right: 1px solid #e6edf6 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div:last-child { border-right: 0 !important; }
#outgoing_e_invoiceView .outgoing-e-invoice-table-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #f8fafc !important;
  color: #5c6f88 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  border-bottom: 1px solid #d8e3f2 !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row {
  cursor: pointer !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: #fff !important;
  font-size: 12.5px !important;
  color: #0b2447 !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row:hover,
#outgoing_e_invoiceView .outgoing-e-invoice-data-row.selected { background: #eef6ff !important; }
#outgoing_e_invoiceView .outgoing-row-actions,
#outgoing_e_invoiceView .e-invoice-actions-cell {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  white-space: normal !important;
}
#outgoing_e_invoiceView .icon-btn {
  min-width: 32px !important;
  width: auto !important;
  height: 25px !important;
  padding: 3px 7px !important;
  border: 1px solid #d8e3f2 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #0b2a52 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
#outgoing_e_invoiceView .icon-btn:hover { background: #eef6ff !important; }
#outgoing_e_invoiceView .icon-btn.danger { color: #b91c1c !important; border-color: #efcaca !important; }
#outgoing_e_invoiceView .compact-actions { flex-wrap: wrap !important; }
#outgoing_e_invoiceView .slim-list-head { gap: 10px; align-items: flex-start; }
#customersView .data-table td:last-child,
#customersView .data-table th:last-child { min-width: 250px; white-space: normal !important; }
#customersView .data-table td:last-child .btn,
#customersView .data-table td:last-child button,
#customersView .table-actions .btn,
#customersView .table-actions button { margin: 2px; white-space: nowrap; }

/* v17.30.29 - menu/cari hareket butonlari ve net bakiye gorunumu */
#accountsView .row-table {
  overflow-x: auto !important;
}
#accountsView .account-head,
#accountsView .account-row {
  grid-template-columns: minmax(220px, 2fr) 100px 120px 120px 120px 110px minmax(280px, max-content) !important;
  min-width: 1080px;
}
#accountsView .statement-head,
#accountsView .statement-row {
  grid-template-columns: 110px 130px minmax(220px, 1.8fr) 120px 120px 120px minmax(110px, max-content) !important;
  min-width: 930px;
}
#accountsView .reconciliation-head,
#accountsView .reconciliation-row {
  grid-template-columns: 100px minmax(170px, 1.35fr) 120px 120px 120px 90px minmax(240px, max-content) !important;
  min-width: 1040px;
}
#accountsView .account-row .item-actions,
#accountsView .statement-row .item-actions,
#accountsView .detail-actions,
#accountsView .reconciliation-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  white-space: normal !important;
}
#accountsView .item-actions .text-btn,
#accountsView .detail-actions .text-btn,
#accountsView .reconciliation-actions .text-btn {
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  min-width: auto !important;
}
#accountsView .summary-badge.positive,
#accountsView .cell strong.positive {
  color: #047857 !important;
}
#accountsView .summary-badge.negative,
#accountsView .cell strong.negative {
  color: #b91c1c !important;
}
@media (max-width: 900px) {
  #accountsView .account-head,
  #accountsView .statement-head,
  #accountsView .reconciliation-head {
    display: none !important;
  }
  #accountsView .account-row,
  #accountsView .statement-row,
  #accountsView .reconciliation-row {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }
  #accountsView .account-row .item-actions,
  #accountsView .statement-row .item-actions,
  #accountsView .detail-actions,
  #accountsView .reconciliation-actions {
    justify-content: flex-start !important;
  }
}

/* v17.30.30 - Gelen E-Fatura aksiyon alanı kurumsal buton düzeni */
.e-invoice-head {
  align-items: flex-start;
  gap: 14px;
}
.e-invoice-head-copy {
  display: grid;
  gap: 4px;
}
.e-invoice-toolbar {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.e-invoice-toolbar .btn,
.e-invoice-upload-layout .btn,
.e-invoice-elogo-fetch-row .btn {
  min-height: 40px;
  border-radius: 12px;
  padding: 9px 14px;
}
.e-invoice-toolbar .btn-toolbar,
.e-invoice-upload-layout .btn,
.e-invoice-elogo-fetch-row .btn {
  box-shadow: none;
}
.e-invoice-toolbar .btn-secondary,
.e-invoice-upload-layout .btn-secondary,
.e-invoice-elogo-fetch-row .btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line-dark);
}
.e-invoice-toolbar .btn-secondary:hover,
.e-invoice-upload-layout .btn-secondary:hover,
.e-invoice-elogo-fetch-row .btn-secondary:hover {
  background: #f8fafc;
}
.e-invoice-toolbar .btn-primary,
.e-invoice-upload-layout .btn-primary,
.e-invoice-elogo-fetch-row .btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
  color: #fff;
}
.e-invoice-toolbar .btn-primary:hover,
.e-invoice-upload-layout .btn-primary:hover,
.e-invoice-elogo-fetch-row .btn-primary:hover {
  background: var(--primary-dark);
}
.e-invoice-toolbar .btn-danger {
  color: #fff;
}
.e-invoice-toolbar-brand {
  min-width: 112px;
}
.e-invoice-upload-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) auto minmax(180px, 0.75fr) minmax(180px, 0.75fr) auto;
  gap: 12px;
  align-items: end;
}
.e-invoice-upload-layout .inline-field,
.e-invoice-upload-layout .compact-date-filter {
  margin: 0;
}
.e-invoice-upload-layout .e-invoice-file-field {
  min-width: 0;
}
.e-invoice-upload-layout .e-invoice-file-field input,
.e-invoice-upload-layout .compact-date-filter input {
  width: 100%;
}
.e-invoice-elogo-fetch-row {
  display: contents;
}
.e-invoice-elogo-fetch-row .compact-date-filter {
  min-width: 0;
}
.e-invoice-upload-submit,
#eInvoiceFetchElogoButton {
  justify-self: start;
}
@media (max-width: 1200px) {
  .e-invoice-head {
    flex-direction: column;
    align-items: stretch;
  }
  .e-invoice-toolbar {
    justify-content: flex-start;
  }
  .e-invoice-upload-layout {
    grid-template-columns: minmax(240px, 1fr) auto minmax(170px, 1fr) minmax(170px, 1fr) auto;
  }
}
@media (max-width: 900px) {
  .e-invoice-upload-layout {
    grid-template-columns: 1fr 1fr;
  }
  .e-invoice-upload-layout .e-invoice-file-field {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .e-invoice-upload-layout {
    grid-template-columns: 1fr;
  }
  .e-invoice-upload-submit,
  #eInvoiceFetchElogoButton {
    width: 100%;
  }
}

/* v17.30.31 - giden fatura sekmeli form, KDV modu ve kurumsal toolbar */
#outgoing_e_invoiceView .outgoing-module-shell {
  display: grid;
  gap: 14px;
}
#outgoing_e_invoiceView .outgoing-einvoice-head {
  align-items: flex-start;
  gap: 12px;
}
#outgoing_e_invoiceView .outgoing-einvoice-toolbar {
  justify-content: flex-end;
  align-items: center;
}
#outgoing_e_invoiceView .outgoing-module-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #d8e3f2;
  padding-bottom: 6px;
}
#outgoing_e_invoiceView .module-tab-btn {
  border: 1px solid #d8e3f2;
  border-radius: 12px;
  background: #fff;
  color: #0b2447;
  padding: 10px 14px;
  font-weight: 700;
}
#outgoing_e_invoiceView .module-tab-btn.active {
  background: #eef6ff;
  border-color: #bfd7ff;
  color: var(--primary-dark);
}
#outgoing_e_invoiceView .outgoing-module-panel {
  display: grid;
  gap: 14px;
}
#outgoing_e_invoiceView .outgoing-search-card {
  padding: 14px;
}
#outgoing_e_invoiceView .outgoing-search-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
#outgoing_e_invoiceView .outgoing-search-head h5 {
  font-size: 15px;
}
#outgoing_e_invoiceView .outgoing-search-head small {
  color: var(--muted);
}
#outgoing_e_invoiceView .outgoing-search-filter-bar {
  align-items: end;
}
#outgoing_e_invoiceView .outgoing-search-filter-bar .inline-field {
  min-width: 150px;
}
#outgoing_e_invoiceView .outgoing-search-filter-bar .inline-field:first-child {
  min-width: 220px;
}
#outgoing_e_invoiceView .outgoing-invoice-form {
  display: grid !important;
  gap: 14px !important;
}
#outgoing_e_invoiceView .outgoing-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
  gap: 14px;
}
#outgoing_e_invoiceView .outgoing-form-card {
  background: #fff;
  border: 1px solid #d8e3f2;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
}
#outgoing_e_invoiceView .outgoing-form-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 10px;
}
#outgoing_e_invoiceView .outgoing-form-card-head h5 {
  font-size: 15px;
  margin: 0;
}
#outgoing_e_invoiceView .outgoing-form-card-head small {
  color: var(--muted);
}
#outgoing_e_invoiceView .outgoing-form-fields {
  display: grid;
  gap: 12px;
}
#outgoing_e_invoiceView .outgoing-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#outgoing_e_invoiceView .outgoing-two-col label,
#outgoing_e_invoiceView .outgoing-note-card label {
  display: grid;
  gap: 6px;
}
#outgoing_e_invoiceView .outgoing-two-col label span,
#outgoing_e_invoiceView .outgoing-note-card label span {
  color: #607086;
  font-size: 12px;
  font-weight: 700;
}
#outgoing_e_invoiceView .outgoing-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#outgoing_e_invoiceView .outgoing-lines-card {
  grid-column: 1 / -1;
}
#outgoing_e_invoiceView .outgoing-note-card {
  grid-column: 1 / 2;
}
#outgoing_e_invoiceView .outgoing-totals-card {
  grid-column: 2 / 3;
  align-self: start;
}
#outgoing_e_invoiceView .outgoing-line-board {
  border: 1px solid #d8e3f2;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}
#outgoing_e_invoiceView .outgoing-line-head,
#outgoing_e_invoiceView .outgoing-line-row {
  display: grid;
  grid-template-columns: 48px minmax(220px, 1.15fr) minmax(240px, 1.3fr) 96px 96px 138px 92px 140px 88px;
  min-width: 1180px;
  align-items: center;
}
#outgoing_e_invoiceView .outgoing-line-head {
  background: #f8fafc;
  color: #607086;
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid #d8e3f2;
}
#outgoing_e_invoiceView .outgoing-line-head > div,
#outgoing_e_invoiceView .outgoing-line-row > * {
  padding: 10px 10px;
  border-right: 1px solid #edf2f7;
  min-width: 0;
}
#outgoing_e_invoiceView .outgoing-line-head > div:last-child,
#outgoing_e_invoiceView .outgoing-line-row > *:last-child {
  border-right: 0;
}
#outgoing_e_invoiceView .outgoing-line-head small {
  display: inline;
  color: #607086;
  font-weight: 700;
}
#outgoing_e_invoiceView .outgoing-line-list {
  display: grid;
}
#outgoing_e_invoiceView .outgoing-line-row {
  border-bottom: 1px solid #edf2f7;
}
#outgoing_e_invoiceView .outgoing-line-row:last-child {
  border-bottom: 0;
}
#outgoing_e_invoiceView .outgoing-line-row label {
  display: block;
}
#outgoing_e_invoiceView .outgoing-line-row input {
  width: 100%;
}
#outgoing_e_invoiceView .outgoing-line-index {
  font-weight: 800;
  text-align: center;
  color: #0b2447;
}
#outgoing_e_invoiceView .outgoing-line-preview {
  display: grid;
  gap: 4px;
  align-items: center;
}
#outgoing_e_invoiceView .outgoing-line-preview strong {
  color: #0b2a52;
  font-size: 14px;
}
#outgoing_e_invoiceView .outgoing-line-preview small {
  color: var(--muted);
  font-size: 11px;
}
#outgoing_e_invoiceView .outgoing-line-action-cell {
  display: flex;
  justify-content: center;
}
#outgoing_e_invoiceView .outgoing-line-footer,
#outgoing_e_invoiceView .outgoing-submit-row {
  justify-content: flex-end;
}
#outgoing_e_invoiceView .outgoing-note-card textarea {
  min-height: 220px;
}
#outgoing_e_invoiceView .outgoing-line-totals {
  grid-template-columns: 1fr;
}
#outgoing_e_invoiceView .outgoing-line-totals > div {
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}
#outgoing_e_invoiceView .outgoing-line-totals > div:last-child {
  border-bottom: 0;
}
#outgoing_e_invoiceView .outgoing-line-totals strong {
  font-size: 20px;
}
#outgoing_e_invoiceView .outgoing-submit-row .btn,
#outgoing_e_invoiceView .outgoing-line-footer .btn,
#outgoing_e_invoiceView .outgoing-einvoice-toolbar .btn {
  min-height: 40px;
  border-radius: 12px;
  padding: 9px 14px;
}
#outgoing_e_invoiceView .outgoing-einvoice-toolbar .btn-secondary {
  background: #fff;
  border-color: var(--line-dark);
}
#outgoing_e_invoiceView .outgoing-einvoice-toolbar .btn-primary,
#outgoing_e_invoiceView .outgoing-submit-row .btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
  color: #fff;
}
#outgoing_e_invoiceView .outgoing-einvoice-toolbar .btn-primary:hover,
#outgoing_e_invoiceView .outgoing-submit-row .btn-primary:hover {
  background: var(--primary-dark);
}
#outgoing_e_invoiceView .outgoing-e-invoice-grid {
  align-items: start;
}
@media (max-width: 1180px) {
  #outgoing_e_invoiceView .outgoing-form-grid {
    grid-template-columns: 1fr;
  }
  #outgoing_e_invoiceView .outgoing-lines-card,
  #outgoing_e_invoiceView .outgoing-note-card,
  #outgoing_e_invoiceView .outgoing-totals-card {
    grid-column: auto;
  }
}
@media (max-width: 900px) {
  #outgoing_e_invoiceView .outgoing-einvoice-head {
    flex-direction: column;
  }
  #outgoing_e_invoiceView .outgoing-einvoice-toolbar {
    justify-content: flex-start;
  }
  #outgoing_e_invoiceView .outgoing-two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  #outgoing_e_invoiceView .outgoing-module-tabs {
    flex-wrap: wrap;
  }
  #outgoing_e_invoiceView .module-tab-btn {
    width: 100%;
  }
}


/* v17.30.32 - satir tablosu tam genislik */
#outgoing_e_invoiceView .outgoing-lines-card {
  grid-column: 1 / -1;
}


/* v17.30.33 - giden havuz islem kolonu sonda */
#outgoing_e_invoiceView .outgoing-row-actions-inline {
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
#outgoing_e_invoiceView .outgoing-row-actions-inline .icon-btn {
  flex: 0 0 auto !important;
}

/* v17.30.34 - giden havuz kompakt hizalama ve yatay islem grubu */
#outgoing_e_invoiceView .outgoing-e-invoice-table-row {
  grid-template-columns: 34px minmax(150px, 1.05fr) minmax(180px, 1.35fr) 96px 104px 122px 132px 88px 126px 210px !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div {
  padding: 7px 9px !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-head > div:last-child,
#outgoing_e_invoiceView .outgoing-e-invoice-data-row > div:last-child {
  align-items: center !important;
}
#outgoing_e_invoiceView .outgoing-row-actions,
#outgoing_e_invoiceView .e-invoice-actions-cell.outgoing-row-actions,
#outgoing_e_invoiceView .outgoing-row-actions-inline {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  overflow: visible !important;
}
#outgoing_e_invoiceView .outgoing-row-actions .icon-btn,
#outgoing_e_invoiceView .outgoing-row-actions-inline .icon-btn {
  flex: 0 0 auto !important;
  min-width: 40px !important;
  height: 28px !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row > div strong {
  line-height: 1.2 !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row > div small {
  line-height: 1.15 !important;
}

/* v17.30.35 - giden havuz ortali, tasmasiz ve daha kucuk punto */
#outgoing_e_invoiceView .outgoing-e-invoice-table-head {
  font-size: 10px !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row {
  font-size: 11.5px !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div {
  align-items: center !important;
  text-align: center !important;
  overflow: hidden !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div strong,
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div small,
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div span {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div strong,
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div span {
  white-space: nowrap !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-row > div small {
  white-space: nowrap !important;
  font-size: 10.5px !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-table-head > div {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row > div {
  justify-content: center !important;
}
#outgoing_e_invoiceView .outgoing-e-invoice-data-row .badge,
#outgoing_e_invoiceView .outgoing-e-invoice-data-row .mini-pill {
  align-self: center !important;
  max-width: 100% !important;
}
#outgoing_e_invoiceView .align-right {
  text-align: center !important;
  align-items: center !important;
}
#outgoing_e_invoiceView .truncate-text {
  display: inline-block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#outgoing_e_invoiceView .outgoing-row-actions,
#outgoing_e_invoiceView .e-invoice-actions-cell.outgoing-row-actions,
#outgoing_e_invoiceView .outgoing-row-actions-inline {
  justify-content: center !important;
}

/* v17.30.41 - AI Gemini / ChatGPT API entegrasyonu */
.ai-provider-status {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:8px;
}
.ai-provider-chip {
    display:inline-grid;
    gap:2px;
    min-width:150px;
    padding:8px 10px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    font-size:12px;
}
.ai-provider-chip strong { color:var(--text); font-size:12px; }
.ai-provider-chip small { color:var(--muted); font-size:11px; }
.ai-provider-chip.ready { border-color:#bbf7d0; background:#f0fdf4; }
.ai-provider-chip.ready strong { color:#166534; }
.ai-provider-chip.missing { border-color:#fed7aa; background:#fff7ed; }
.ai-provider-chip.missing strong { color:#9a3412; }
.ai-provider-chip.muted { color:var(--muted); }
.ai-provider-output {
    display:grid;
    gap:8px;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid var(--line);
}
.ai-provider-result-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.ai-provider-result-head strong { font-size:14px; color:var(--text); }
.ai-provider-result-head small { color:var(--muted); font-size:12px; }
.ai-provider-result-head.error strong { color:#b91c1c; }
.ai-provider-answer {
    white-space:pre-wrap;
    overflow:auto;
    max-height:420px;
    margin:0;
    padding:12px;
    border:1px solid #dbe5f3;
    border-radius:12px;
    background:#fbfdff;
    color:var(--text);
    font-family:Inter, Arial, sans-serif;
    font-size:13px;
    line-height:1.55;
}
@media (max-width: 720px) {
    .ai-provider-result-head { align-items:flex-start; flex-direction:column; }
    .ai-provider-chip { width:100%; }
}

/* v17.30.42 - AI hazir sorgu metni daraltma hotfix */
#aiView .ai-grid {
    grid-template-columns: minmax(360px, 520px) minmax(320px, 540px);
    justify-content: start;
    align-items: start;
    gap: 12px;
}
#aiView .ai-output-card {
    width: 100%;
    max-width: 540px;
    min-height: auto;
}
#aiView .ai-prompt-output {
    min-height: 260px;
    max-height: 42vh;
}
#aiView .ai-actions,
#aiView .compact-actions.ai-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow: visible !important;
}
#aiView .ai-actions .btn {
    min-width: 112px;
    flex: 0 1 auto;
}
@media (max-width: 1180px) {
    #aiView .ai-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
    }
    #aiView .ai-output-card {
        max-width: 100%;
    }
    #aiView .ai-prompt-output {
        min-height: 220px;
        max-height: none;
    }
}
@media (max-width: 720px) {
    #aiView .ai-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    #aiView .ai-actions .btn {
        width: 100%;
        min-width: 0;
    }
}


/* v17.30.43 - Gelen E-Fatura havuzu ust siraya alma ve UI hizalama */
#e_invoiceView:not(.hidden) {
  display: grid;
  gap: 14px;
}
#e_invoiceView .e-invoice-upload-card {
  margin-bottom: 0;
}
#e_invoiceView .e-invoice-head {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
#e_invoiceView .e-invoice-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
#e_invoiceView .e-invoice-toolbar .btn,
#e_invoiceView .e-invoice-toolbar-brand {
  min-height: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
#e_invoiceView .e-invoice-toolbar-brand img {
  max-height: 24px;
  width: auto;
}
#e_invoiceView .e-invoice-filter-bar {
  display: grid !important;
  grid-template-columns: minmax(210px, 1.2fr) minmax(120px, .55fr) minmax(220px, 1fr) minmax(140px, .65fr) minmax(140px, .62fr) minmax(140px, .62fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5f3;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 28px rgba(15,23,42,.04);
}
#e_invoiceView .e-invoice-filter-bar .inline-field,
#e_invoiceView .e-invoice-filter-bar .compact-date-filter {
  margin: 0;
  min-width: 0;
}
#e_invoiceView .e-invoice-filter-bar input,
#e_invoiceView .e-invoice-filter-bar select {
  width: 100%;
}
#e_invoiceView .e-invoice-date-presets {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
}
#e_invoiceView .e-invoice-date-presets .preset-chip {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 12px;
  white-space: nowrap;
}
#e_invoiceView .e-invoice-filter-reset {
  min-height: 36px;
  align-self: end;
  white-space: nowrap;
}
#e_invoiceView .e-invoice-pool-card {
  margin: 0;
  border-color: #dbe5f3;
  box-shadow: 0 12px 32px rgba(15,23,42,.05);
}
#e_invoiceView .e-invoice-pool-card > summary {
  align-items: center;
}
#e_invoiceView .e-invoice-pool-card .fold-body {
  padding-top: 10px;
}
#e_invoiceView .e-invoice-pool-card .e-invoice-table-wrap {
  max-height: 720px;
}
#e_invoiceView .e-invoice-grid {
  align-items: start;
}
@media (max-width: 1380px) {
  #e_invoiceView .e-invoice-filter-bar {
    grid-template-columns: minmax(220px, 1fr) minmax(120px, .6fr) minmax(220px, 1fr) minmax(140px, .7fr);
  }
  #e_invoiceView .e-invoice-date-presets,
  #e_invoiceView .e-invoice-filter-reset {
    justify-content: flex-start;
  }
}
@media (max-width: 980px) {
  #e_invoiceView .e-invoice-head {
    align-items: flex-start;
  }
  #e_invoiceView .e-invoice-toolbar {
    justify-content: flex-start;
    margin-left: 0;
  }
  #e_invoiceView .e-invoice-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  #e_invoiceView .e-invoice-search-field,
  #e_invoiceView .e-invoice-supplier-filter,
  #e_invoiceView .e-invoice-date-presets {
    grid-column: 1 / -1;
  }
  #e_invoiceView .e-invoice-filter-reset {
    justify-self: start;
  }
}
@media (max-width: 640px) {
  #e_invoiceView .e-invoice-filter-bar {
    grid-template-columns: 1fr;
  }
  #e_invoiceView .e-invoice-date-presets {
    flex-wrap: wrap;
  }
  #e_invoiceView .e-invoice-filter-reset {
    width: 100%;
  }
}

/* v17.30.44 - Hareketler cari listesi ust sira ve siralama */
#accountsView .account-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
  margin: 0 0 10px;
  padding: 10px;
  background: #f8fbff;
  border: 1px solid #dbe7f6;
  border-radius: 12px;
}
#accountsView .account-list-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 150px;
}
#accountsView .account-list-toolbar label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
#accountsView .account-list-toolbar select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  padding: 7px 10px;
}
@media (max-width: 640px) {
  #accountsView .account-list-toolbar {
    justify-content: stretch;
  }
  #accountsView .account-list-toolbar label {
    min-width: 0;
    flex: 1 1 140px;
  }
}
