﻿:root {
    /* Balmox mavi-turuncu tema */
    --brand: #0B4DB8;
    --brand-strong: #083D96;
    --brand-deep: #062E72;
    --brand-ink: #041E4D;
    --brand-soft: #EEF4FF;
    --brand-soft-2: #DCE8FF;
    --brand-line: #B8CFFA;
    --accent: #FF7A00;
    --accent-strong: #E56A00;
    --accent-soft: #FFF3E8;
    --accent-blue: #0B4DB8;
    --accent-red: #DC2626;
    --accent-teal: #0d9488;
    --page-bg: #F3F6FB;
    --card-border: #E4E9F2;
    --text-muted: #6b7280;
    --surface: #ffffff;
    --ink: #0F172A;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-md: 0 10px 28px rgba(11, 77, 184, .08);
    --radius: 14px;
}

* { box-sizing: border-box; }

::selection { background: rgba(11, 77, 184, .16); }

body.app-body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
    background:
        radial-gradient(1100px 460px at 8% -12%, rgba(11, 77, 184, .06), transparent 55%),
        radial-gradient(800px 380px at 100% 0%, rgba(11, 77, 184, .04), transparent 50%),
        var(--page-bg);
    color: var(--ink);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ============ Sidebar — beyaz, Balmox mavi vurgulu ============ */
.app-sidebar {
    width: 256px;
    background: #fff;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    border-right: 1px solid var(--card-border);
    box-shadow: 1px 0 0 rgba(23, 26, 33, .02);
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px 18px 16px;
    border-bottom: 1px solid #f1f2f5;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1A6FE0, #0B4DB8 55%, #083D96);
    box-shadow: 0 8px 18px rgba(11, 77, 184, .32), inset 0 1px 0 rgba(255, 255, 255, .3);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
}

.brand-text strong { display: block; font-size: 14.5px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.brand-text small { color: var(--text-muted); font-size: 11px; }

.sidebar-nav {
    padding: 6px 12px 12px;
    overflow-y: auto;
    flex: 1;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

.nav-section {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9aa1ad;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin: 18px 10px 8px;
}
.nav-section em {
    font-style: normal;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: 10px;
    color: #9aa1ad;
    background: #f3f4f6;
    padding: 2px 7px;
    border-radius: 999px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 11px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 3px;
    transition: background .15s, color .15s, transform .15s;
}

.nav-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #f5f6f8;
    border: 1px solid #eceef2;
    color: #6b7280;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
}

.sidebar-nav .nav-item:hover {
    background: #f7f7f9;
    color: var(--ink);
}
.sidebar-nav .nav-item:hover .nav-ico { background: #DCE8FF; border-color: #B8CFFA; color: var(--brand); }

.sidebar-nav .nav-item.active {
    background: linear-gradient(180deg, #EEF4FF 0%, #E8F0FF 100%);
    color: var(--brand-deep);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--brand-line), 0 4px 12px rgba(11, 77, 184, .08);
}
.sidebar-nav .nav-item.active .nav-ico {
    background: linear-gradient(135deg, #1A6FE0, #083D96);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 77, 184, .35);
}

.sidebar-nav .nav-item-ghost {
    opacity: .45;
    cursor: default;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid #f1f2f5;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8f9fb;
    border: 1px solid #eceef2;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1A6FE0, #083D96);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user-meta { min-width: 0; flex: 1; }
.sidebar-user-meta strong {
    display: block;
    font-size: 12.5px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-meta small { color: var(--text-muted); font-size: 10.5px; }

.sidebar-logout {
    background: none;
    border: none;
    color: #9aa1ad;
    font-size: 15px;
    padding: 6px;
    border-radius: 8px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.sidebar-logout:hover { background: var(--brand-soft-2); color: var(--brand-strong); }

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}
/* Marka çizgisi — üstte mavi → turuncu degrade */
.app-topbar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0B4DB8 0%, #1A6FE0 40%, #FF7A00 78%, transparent 100%);
}

.topbar-left, .topbar-right, .user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.office-name {
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--brand-ink);
}

.taxpayer-switcher {
    min-width: 360px;
    max-width: 520px;
    width: 100%;
    border: 1px solid #d5dceb;
    background: #f7f9fc;
    border-radius: 12px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.taxpayer-switcher:focus-within {
    border-color: #0B4DB8;
    box-shadow: 0 0 0 4px rgba(11, 77, 184, .12);
    background: #fff;
}
.taxpayer-switcher select {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-size: 13.5px;
    color: #334155;
    cursor: pointer;
    outline: none;
    appearance: none;
}

.user-meta {
    text-align: right;
    line-height: 1.15;
}

.user-meta strong { display: block; font-size: 13px; }
.user-meta small { color: var(--text-muted); font-size: 11px; }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fdeaea;
    color: #083D96;
    display: grid;
    place-items: center;
}

.app-content {
    padding: 20px 22px 40px;
}

.content-breadcrumb {
    font-size: 13px;
    color: #4b5568;
}

.stat-card {
    border: 0;
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(27, 42, 74, .12);
    min-height: 140px;
}

.stat-card .card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card .stat-label {
    opacity: .92;
    font-size: 14px;
    margin-top: 4px;
}

.stat-card .stat-meta {
    margin-top: 10px;
    font-size: 13px;
    opacity: .9;
}

.stat-card .stat-link {
    margin-top: auto;
    padding-top: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,.22);
}

.stat-blue { background: linear-gradient(135deg, #0B4DB8, #083D96); }
.stat-red { background: linear-gradient(135deg, #e04b4b, #c53a3a); }
.stat-teal { background: linear-gradient(135deg, #1f9d8a, #178072); }
.stat-slate { background: linear-gradient(135deg, #4b6288, #3a4d6d); }
.stat-amber { background: linear-gradient(135deg, #d99a2b, #b97f1a); }

.panel-card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.panel-card .panel-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-card .panel-body { padding: 16px 18px; }

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: #475569;
}
.btn-ghost:hover {
    background: #f1f5f9;
    color: var(--ink);
}

.btn-accent {
    background: linear-gradient(135deg, #1A6FE0, #0B4DB8);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 77, 184, .28);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #0B4DB8, #083D96);
    color: #fff;
}

/* ============ Mükellef detay başlığı & sekmeler ============ */
/* Mükellef sayfa başlığı — açık tema */
.tph {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
    margin-bottom: 14px;
}
.tph-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; flex-wrap: wrap;
}
.tph-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.tph-avatar {
    width: 62px; height: 62px; border-radius: 18px; flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 25px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #1A6FE0, #083D96);
    box-shadow: 0 10px 24px rgba(11, 77, 184, .26);
}
.tph-avatar.is-passive { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: none; }
.tph h1 {
    margin: 2px 0 7px; font-size: 25px; font-weight: 800;
    letter-spacing: -.02em; line-height: 1.1; color: var(--ink);
}
.tph-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tph-meta {
    display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
    font-size: 13px; color: var(--text-muted);
}
.tph-meta i { margin-right: 4px; opacity: .65; }
.tph-vkn {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; font-weight: 600; color: #334155;
    background: #f1f5f9; padding: 3px 9px; border-radius: 8px;
}
.tph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tph-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef2f7;
}
@media (max-width: 991.98px) {
    .tph-stats { grid-template-columns: repeat(2, 1fr); }
}
.tph-stat { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tph-stat .tpl-stat-ico { width: 42px; height: 42px; border-radius: 12px; font-size: 17px; }
.tph-stat-txt strong {
    display: block; font-size: 21px; font-weight: 800;
    letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.tph-stat-txt span { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }

/* Eski chip'ler açık temaya uyarlandı (genel kullanım) */
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
    background: #f1f5f9; color: #475569;
}
.chip-ok { background: #dcfce7; color: #15803d; }
.chip-danger { background: #DCE8FF; color: #083D96; }

.tp-tabs {
    display: flex; gap: 4px; overflow-x: auto;
    padding: 5px; margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.tp-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border-radius: 10px;
    color: #64748b; text-decoration: none; font-size: 13px; font-weight: 600;
    white-space: nowrap; transition: .15s ease;
}
.tp-tab i { font-size: 15px; opacity: .8; }
.tp-tab:hover { background: #f1f5f9; color: var(--ink); }
.tp-tab.active {
    background: linear-gradient(135deg, #1A6FE0, #083D96);
    color: #fff;
    box-shadow: 0 6px 16px rgba(11, 77, 184, .3);
}
.tp-tab.active i { opacity: 1; }

.tp-panel {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

/* Info cards (genel) */
.info-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 16px;
}
@media (max-width: 991.98px) {
    .info-grid { grid-template-columns: 1fr; }
}
.info-card {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: #fbfdff;
    padding: 18px;
}
.info-card-head {
    display: flex; gap: 12px; align-items: center; margin-bottom: 16px;
}
.info-card-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: #DCE8FF; color: var(--accent-blue);
    display: grid; place-items: center; font-size: 18px;
}
.info-card-icon.teal { background: #ccfbf1; color: var(--accent-teal); }
.info-card-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.info-card-head p { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.info-rows { display: flex; flex-direction: column; gap: 10px; }
.info-row {
    display: grid; grid-template-columns: 140px 1fr; gap: 10px;
    padding-bottom: 10px; border-bottom: 1px dashed #e2e8f0;
}
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row span { font-size: 12px; color: var(--text-muted); font-weight: 600; padding-top: 2px; }
.info-row strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.info-row .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px; color: #334155;
    background: #f1f5f9; padding: 2px 8px; border-radius: 7px;
    display: inline-block;
}
.info-note {
    margin-top: 14px; padding: 12px; border-radius: 10px; background: #fff;
    border: 1px solid var(--card-border);
}
.info-note span { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.info-note p { margin: 0; font-size: 13px; color: #334155; }
.info-card-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* Invoices */
.inv-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.inv-head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.inv-head p { margin: 0; color: var(--text-muted); font-size: 13px; max-width: 520px; }
.inv-head-actions { display: flex; gap: 8px; }

.inv-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
}
@media (max-width: 767.98px) { .inv-stats { grid-template-columns: 1fr; } }
.inv-stat {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px; border-radius: 12px;
    background: #f8fafc; border: 1px solid var(--card-border);
    text-decoration: none; color: inherit; transition: .15s ease;
}
.inv-stat:hover { border-color: #B8CFFA; background: #fef4f4; }
.inv-stat.active {
    border-color: #B8CFFA; background: linear-gradient(180deg, #EEF4FF, #fff);
    box-shadow: 0 0 0 3px rgba(11, 77, 184, .12);
}
.inv-stat.warn.active { border-color: #fdba74; box-shadow: 0 0 0 3px rgba(249, 115, 22, .12); background: linear-gradient(180deg, #fff7ed, #fff); }
.inv-stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.inv-stat strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }

.inv-filters {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px;
}
.inv-search {
    position: relative; flex: 1; min-width: 220px;
}
.inv-search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; pointer-events: none;
}
.inv-search input {
    width: 100%; height: 40px; padding: 0 12px 0 36px;
    border: 1px solid var(--card-border); border-radius: 10px;
    background: #fff; font-size: 13px;
}
.inv-search input:focus {
    outline: none; border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(11, 77, 184, .12);
}
.inv-filters .form-select { width: auto; min-width: 110px; height: 40px; border-radius: 10px; font-size: 13px; }

.inv-table-wrap {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.inv-table-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--card-border);
}
.inv-check-all {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #475569; margin: 0; cursor: pointer;
}
.inv-table thead th {
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    color: #64748b; background: #fff; border-bottom: 1px solid var(--card-border);
    padding: 10px 12px; white-space: nowrap;
}
.inv-table tbody td { padding: 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.inv-row:hover { background: #fdf8f8; }
.inv-file { display: flex; gap: 10px; align-items: center; min-width: 0; }
.inv-file-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: #EEF4FF; color: #0B4DB8; display: grid; place-items: center;
}
.inv-file-title { font-weight: 700; font-size: 13px; color: var(--ink); }
.inv-file-meta { font-size: 12px; color: var(--text-muted); }
.page-pill {
    display: inline-block; padding: 3px 8px; border-radius: 999px;
    background: #EEF4FF; color: #083D96; font-size: 11px; font-weight: 700;
}
.type-chip {
    font-size: 12px; color: #475569; background: #f1f5f9;
    padding: 4px 8px; border-radius: 8px; font-weight: 600;
}
.amount-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-empty {
    text-align: center; padding: 48px 20px; color: var(--text-muted);
}
.inv-empty i { font-size: 36px; opacity: .45; }
.inv-empty h3 { margin: 10px 0 4px; font-size: 16px; color: var(--ink); }
.inv-empty p { margin: 0 0 14px; font-size: 13px; }

.bulk-bar {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
    z-index: 40; width: min(560px, calc(100% - 32px));
}
.bulk-bar-inner {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 14px;
    background: #0f172a; color: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .35);
}
.bulk-bar-info { font-size: 13px; }
.bulk-bar-info strong { font-size: 15px; }
.bulk-bar-actions { display: flex; gap: 8px; }
.bulk-bar .btn-ghost { color: #cbd5e1; }
.bulk-bar .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.page-toolbar h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
}

.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge-soft {
    font-weight: 600;
    border-radius: 999px;
    padding: .35em .7em;
}
.badge-soft-success { background: #e7f7ee; color: #137a43; }
.badge-soft-danger { background: #fdecec; color: #b42318; }
.badge-soft-primary { background: #DCE8FF; color: #083D96; }
.badge-soft-secondary { background: #eef1f5; color: #475467; }
.badge-soft-warning { background: #fff7ed; color: #c2410c; }

.table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b778c;
    background: #f8fafc;
    border-bottom-width: 1px;
}

.taxpayer-tabs { display: none; } /* legacy */

/* ============ Mükellefler (tpl) ============ */
.tpl-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.tpl-head-text h1 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
}
.tpl-head-text p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

.tpl-head-side {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.tpl-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--card-border);
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    box-shadow: var(--shadow-sm);
}
.tpl-chip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-blue { background: #0B4DB8; } /* tema: mavi */
.dot-green { background: #22c55e; }
.dot-gray { background: #94a3b8; }

.tpl-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0B4DB8, #083D96);
    border: none;
    box-shadow: 0 6px 16px rgba(11, 77, 184, .32);
    transition: transform .15s, box-shadow .15s;
}
.tpl-new:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(11, 77, 184, .4);
}

/* Arama + filtre */
.tpl-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.tpl-search { position: relative; flex: 1; min-width: 260px; }
.tpl-search > i.bi-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}
.tpl-search input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 42px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: #fff;
    font-size: 13.5px;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s;
}
.tpl-search input:focus {
    outline: none;
    border-color: #0B4DB8;`n    box-shadow: 0 0 0 4px rgba(11, 77, 184, .12);
}
.tpl-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    padding: 6px;
    border-radius: 8px;
    font-size: 11px;
    text-decoration: none;
}
.tpl-search-clear:hover { background: #f1f5f9; color: #475569; }

.tpl-segment {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    box-shadow: var(--shadow-sm);
}
.tpl-segment button {
    border: none;
    background: none;
    padding: 7px 16px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    transition: background .15s, color .15s;
}
.tpl-segment button:hover { color: var(--ink); background: #f1f5f9; }
.tpl-segment button.active {
    background: linear-gradient(135deg, #1A6FE0, #083D96);
    color: #fff;
    box-shadow: 0 4px 10px rgba(11, 77, 184, .28);
}

/* Liste */
.tpl-list { display: flex; flex-direction: column; gap: 8px; }

.tpl-cols {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(170px, 1fr) minmax(190px, 1.1fr) 110px 210px;
    gap: 14px;
    padding: 4px 18px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
}
.tpl-cols .t-center { text-align: center; }

.tpl-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(170px, 1fr) minmax(190px, 1.1fr) 110px 210px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 13px 18px;
    box-shadow: var(--shadow-sm);
    transition: border-color .16s, box-shadow .16s, transform .16s;
}
.tpl-row:hover {
    border-color: #f2bcbc;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}
.tpl-row.is-passive { opacity: .68; }

.tpl-row-link { position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.tpl-cell { position: relative; z-index: 2; pointer-events: none; min-width: 0; }
.tpl-actions { pointer-events: auto; }

.tpl-who { display: flex; align-items: center; gap: 12px; }
.tpl-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 10px rgba(15, 23, 42, .16);
}
.tpl-c1 { background: linear-gradient(135deg, #1A6FE0, #083D96); }
.tpl-c2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tpl-c3 { background: linear-gradient(135deg, #0d9488, #0f766e); }
.tpl-c4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tpl-c5 { background: linear-gradient(135deg, #ec4899, #be185d); }
.tpl-c6 { background: linear-gradient(135deg, #06b6d4, #0e7490); }

.tpl-dot {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.tpl-dot.on { background: #22c55e; }
.tpl-dot.off { background: #94a3b8; }

.tpl-who-text { min-width: 0; }
.tpl-who-text h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tpl-who-text small { color: var(--text-muted); font-size: 11.5px; }

.tpl-tax { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: #475569; }
.tpl-tax .mono { font-variant-numeric: tabular-nums; font-weight: 600; }
.tpl-tax i { margin-right: 6px; color: #94a3b8; font-size: 11.5px; }
.tpl-tax small { color: #94a3b8; font-size: 11.5px; }

.tpl-progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 5px;
}
.tpl-progress-top b { color: var(--ink); font-weight: 700; }
.tpl-progress-top .pct { font-weight: 700; color: #15803d; }
.tpl-track {
    height: 6px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}
.tpl-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #34d399, #16a34a);
    transition: width .3s ease;
}

.tpl-pending.t-center { text-align: center; }
.tpl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.tpl-pill.warn { background: #fef3c7; color: #b45309; }
.tpl-pill.ok { background: #dcfce7; color: #15803d; }

.tpl-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.tpl-ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #64748b;
    background: #f1f5f9;
    text-decoration: none;
    font-size: 13.5px;
    transition: background .15s, color .15s;
}
.tpl-ico:hover { background: #e2e8f0; color: var(--ink); }
.tpl-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #1A6FE0, #083D96);
    box-shadow: 0 4px 10px rgba(11, 77, 184, .24);
    transition: background .15s, gap .15s, box-shadow .15s;
}
.tpl-open:hover { background: linear-gradient(135deg, #0B4DB8, #062E72); color: #fff; gap: 9px; box-shadow: 0 6px 14px rgba(11, 77, 184, .32); }

.tpl-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px dashed var(--card-border);
    border-radius: 16px;
}
.tpl-empty-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #64748b;
    background: #f1f5f9;
}
.tpl-empty h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.tpl-empty p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

/* Sağ tık menüsü */
.tpl-menu {
    position: fixed;
    z-index: 1080;
    min-width: 210px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .18), 0 4px 12px rgba(15, 23, 42, .08);
    padding: 6px;
    animation: tplMenuIn .12s ease;
}
@keyframes tplMenuIn {
    from { opacity: 0; transform: translateY(4px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.tpl-menu-head {
    padding: 8px 12px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}
.tpl-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: none;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    text-align: left;
    transition: background .12s, color .12s;
}
.tpl-menu-item i { width: 16px; text-align: center; color: #64748b; font-size: 13px; }
.tpl-menu-item:hover { background: #f1f5f9; color: var(--ink); }
.tpl-menu-item.danger { color: #0B4DB8; }
.tpl-menu-item.danger i { color: #0B4DB8; }
.tpl-menu-item.danger:hover { background: #DCE8FF; color: #083D96; }
.tpl-menu-sep { height: 1px; background: #eef2f7; margin: 5px 8px; }


/* ============ Tasarım sistemi — genel bileşenler ============ */
.tpl-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.tpl-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.tpl-stat-card:hover {
    border-color: #f2bcbc;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
    color: inherit;
}
.tpl-stat-ico {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 19px;
    flex-shrink: 0;
    color: #fff;
}
.tpl-stat-ico.blue { background: linear-gradient(135deg, #1A6FE0, #083D96); }
.tpl-stat-ico.green { background: linear-gradient(135deg, #34d399, #16a34a); }
.tpl-stat-ico.amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.tpl-stat-ico.red { background: linear-gradient(135deg, #f87171, #dc2626); }
.tpl-stat-ico.teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.tpl-stat-ico.slate { background: linear-gradient(135deg, #94a3b8, #475569); }
.tpl-stat-body { min-width: 0; }
.tpl-stat-body strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.tpl-stat-body span { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.tpl-stat-body small { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; }

.tpl-panel {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.tpl-panel + .tpl-panel { margin-top: 14px; }
.tpl-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f7;
}
.tpl-panel-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tpl-panel-head h2 i { color: #64748b; font-size: 13px; }
.tpl-panel-body { padding: 16px 18px; }
.tpl-panel-body.p-0 { padding: 0; }

.tpl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tpl-table thead th {
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    white-space: nowrap;
}
.tpl-table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.tpl-table tbody tr:last-child td { border-bottom: none; }
.tpl-table tbody tr { transition: background .12s; }
.tpl-table tbody tr:hover { background: #f8fafc; }

.tpl-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: none;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.tpl-link-btn:hover { background: #e2e8f0; color: var(--ink); }
.tpl-link-btn.warn:hover { background: #fef3c7; color: #b45309; }
.tpl-link-btn.danger { color: #0B4DB8; background: #EEF4FF; }
.tpl-link-btn.danger:hover { background: #DCE8FF; color: #083D96; }
.tpl-link-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Dönem kartları (modern) */
.tpl-period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.tpl-period {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tpl-period:hover {
    border-color: #f2bcbc;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}
.tpl-period-top { display: flex; justify-content: space-between; align-items: center; }
.tpl-period-top strong { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.tpl-period-nums { display: flex; gap: 12px; font-size: 12px; color: #64748b; }
.tpl-period-nums b { color: var(--ink); font-weight: 700; }
.tpl-period-actions { display: flex; gap: 6px; margin-top: 2px; }
.tpl-period-actions .tpl-open { flex: 1; justify-content: center; height: 36px; }
.tpl-period-actions .tpl-ico { width: 36px; height: 36px; }

@media (max-width: 1099.98px) {
    .tpl-cols { display: none; }
    .tpl-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }
    .tpl-who { grid-column: 1 / -1; }
    .tpl-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .tpl-pending.t-center { text-align: left; }
}
@media (max-width: 575.98px) {
    .tpl-row { grid-template-columns: 1fr; }
    .tpl-head-side { width: 100%; justify-content: space-between; }
}

/* =========================================================
   Login — Balmox split SaaS (premium / kurumsal)
   ========================================================= */
body.login-body-root {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
    color: #0F172A;
    background: #F4F6FA;
    -webkit-font-smoothing: antialiased;
}

.login-split {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 901px) {
    .login-split {
        display: grid;
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    }
}

/* ---- Sol marka alanı ---- */
.login-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(145deg, #041E4D 0%, #062E72 28%, #0B4DB8 68%, #1A6FE0 100%);
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 28px 22px 32px;
}

@media (min-width: 901px) {
    .login-hero {
        min-height: 100vh;
        padding: clamp(28px, 4vw, 48px);
    }
}

.login-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.login-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 25%, transparent 78%);
    opacity: .85;
}
.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
}
.login-orb-a {
    width: 460px; height: 460px;
    right: -100px; top: -100px;
    background: radial-gradient(circle, rgba(255, 122, 0, .4) 0%, transparent 68%);
    animation: loginGlow 9s ease-in-out infinite alternate;
}
.login-orb-b {
    width: 380px; height: 380px;
    left: -150px; bottom: 4%;
    background: radial-gradient(circle, rgba(26, 111, 224, .5) 0%, transparent 70%);
}
.login-orb-c {
    width: 260px; height: 260px;
    left: 50%; bottom: -80px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, .14) 0%, transparent 70%);
}

/* Dekoratif hesap makinesi */
.login-deco {
    position: absolute;
    pointer-events: none;
}
.login-deco-calc {
    width: 132px;
    padding: 12px;
    right: 8%;
    bottom: 16%;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 24px 50px rgba(4, 30, 77, .35);
    transform: rotate(10deg);
    backdrop-filter: blur(6px);
    animation: loginCalcFloat 7s ease-in-out infinite alternate;
}
.login-calc-screen {
    display: block;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(4, 30, 77, .45);
    color: #FFB86B;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    letter-spacing: .02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.login-calc-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.login-calc-keys i {
    display: block;
    height: 16px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .18);
}
.login-calc-keys i.accent {
    background: linear-gradient(135deg, #FF7A00, #FFB86B);
}

.login-deco-doc {
    width: 108px;
    height: 134px;
    left: 7%;
    top: 18%;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 20px 44px rgba(4, 30, 77, .3);
    transform: rotate(-8deg);
    padding: 22px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: loginDocFloat 8s ease-in-out infinite alternate;
}
.login-deco-doc span {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .28);
}
.login-deco-doc span:nth-child(2) { width: 72%; }
.login-deco-doc span:nth-child(3) { width: 48%; background: rgba(255, 122, 0, .55); }

.login-float {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .88);
    font-size: 20px;
    box-shadow: 0 12px 28px rgba(4, 30, 77, .25);
    backdrop-filter: blur(4px);
}
.login-float-1 { top: 12%; right: 18%; animation: loginIconFloat 6.5s ease-in-out infinite alternate; }
.login-float-2 { top: 42%; left: 8%; font-size: 18px; animation: loginIconFloat 7.5s ease-in-out infinite alternate-reverse; }
.login-float-3 { bottom: 28%; left: 16%; color: #FFB86B; animation: loginIconFloat 8s ease-in-out infinite alternate; }
.login-float-4 { top: 28%; left: 22%; width: 42px; height: 42px; font-size: 17px; opacity: .85; animation: loginIconFloat 7s ease-in-out infinite alternate; }
.login-float-5 {
    bottom: 22%; right: 24%;
    width: 40px; height: 40px;
    font-size: 16px; font-weight: 800;
    color: #FFB86B;
    animation: loginIconFloat 6s ease-in-out infinite alternate-reverse;
}
.login-float-6 {
    top: 55%; right: 12%;
    width: 44px; height: 44px;
    font-size: 18px; font-weight: 700;
    color: #fff;
    animation: loginIconFloat 9s ease-in-out infinite alternate;
}

.login-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: loginHeroIn .7s ease both;
}

.login-hero-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .88);
}
.login-hero-title {
    margin: 0 0 16px;
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #fff;
}
.login-hero-title span {
    background: linear-gradient(90deg, #fff 0%, #DCE8FF 55%, #FFB86B 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.login-hero-lead {
    margin: 0 auto 28px;
    max-width: 40ch;
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .78);
    font-weight: 450;
}

.login-features {
    list-style: none;
    margin: 0 auto 28px;
    padding: 0;
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 420px;
}
.login-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .92);
    font-weight: 500;
    text-align: left;
}
.login-feat-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #FFB86B;
    font-size: 15px;
}

.login-slogan {
    margin: 0 auto;
    padding: 16px 20px;
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(255, 122, 0, .18), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 122, 0, .35);
    backdrop-filter: blur(6px);
    position: relative;
    text-align: center;
}
.login-slogan-mark {
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #FF7A00, #FFB86B);
}
.login-slogan p {
    margin: 0;
    padding-left: 8px;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.01em;
    color: #fff;
}

.login-hero-foot {
    margin-top: auto;
    padding-top: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
}
.login-hero-foot-sep {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
}

/* ---- Sağ login paneli ---- */
.login-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background:
        radial-gradient(700px 420px at 100% 0%, rgba(11, 77, 184, .05), transparent 55%),
        #F3F5F9;
    min-height: auto;
    padding: 32px 20px 40px;
}

@media (min-width: 901px) {
    .login-panel {
        align-items: center;
        min-height: 100vh;
        padding: clamp(28px, 5vw, 48px) 24px;
    }
}

.login-panel-inner {
    width: 100%;
    max-width: 460px;
    animation: loginPanelIn .65s ease .08s both;
}

.login-panel-logo {
    display: block;
    width: min(200px, 62%);
    height: auto;
    margin: 0 auto 22px;
}

.login-panel-head {
    margin-bottom: 28px;
    text-align: center;
}
.login-panel-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.55rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: #041E4D;
}
.login-panel-head p {
    margin: 0;
    font-size: 14.5px;
    color: #64748B;
    line-height: 1.5;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-size: 13.5px;
    line-height: 1.45;
}
.login-alert i { margin-top: 1px; }

.login-form { display: grid; gap: 18px; }

.login-field { display: grid; gap: 8px; }
.login-label {
    font-size: 13px;
    font-weight: 650;
    color: #334155;
    margin: 0;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.login-input-ico {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}
.login-input {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    border: 1px solid #D7DEEA;
    background: #fff;
    padding: 0 48px 0 46px;
    font-size: 15px;
    color: #0F172A;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.login-input::placeholder { color: #94A3B8; }
.login-input:hover { border-color: #B8CFFA; }
.login-input:focus {
    border-color: #0B4DB8;
    box-shadow: 0 0 0 4px rgba(11, 77, 184, .14);
    background: #FBFDFF;
}
.login-input.is-invalid {
    border-color: #F87171;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, .15);
}

.login-toggle-pass {
    position: absolute;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748B;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.login-toggle-pass:hover { background: #EEF4FF; color: #0B4DB8; }

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -2px;
}
.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.login-remember input {
    width: 16px;
    height: 16px;
    accent-color: #0B4DB8;
    cursor: pointer;
}
.login-forgot {
    border: 0;
    background: none;
    padding: 0;
    font-size: 13.5px;
    font-weight: 650;
    color: #FF7A00;
    cursor: pointer;
    transition: color .15s;
}
.login-forgot:hover { color: #E56A00; text-decoration: underline; }

.login-forgot-hint {
    margin-top: -6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FFF7ED;
    border: 1px solid #FFEDD5;
    color: #9A3412;
    font-size: 12.5px;
    line-height: 1.45;
}

.login-submit {
    margin-top: 6px;
    height: 54px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15.5px;
    font-weight: 750;
    letter-spacing: .01em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #1A6FE0 0%, #0B4DB8 48%, #083D96 100%);
    box-shadow: 0 12px 28px rgba(11, 77, 184, .28);
    transition: transform .15s, box-shadow .2s, filter .15s;
}
.login-submit i {
    font-size: 16px;
    transition: transform .18s;
}
.login-submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(11, 77, 184, .34);
}
.login-submit:hover i { transform: translateX(3px); }
.login-submit:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px rgba(11, 77, 184, .24);
}

.login-panel-note {
    margin: 28px 0 0;
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
}

@keyframes loginHeroIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes loginPanelIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
@keyframes loginGlow {
    from { opacity: .75; transform: scale(1); }
    to { opacity: 1; transform: scale(1.08); }
}
@keyframes loginFloatA {
    from { transform: translateY(0) rotate(10deg); }
    to { transform: translateY(-10px) rotate(6deg); }
}
@keyframes loginFloatB {
    from { transform: translateY(0) rotate(-8deg); }
    to { transform: translateY(8px) rotate(-4deg); }
}
@keyframes loginCalcFloat {
    from { transform: translateY(0) rotate(10deg); }
    to { transform: translateY(-12px) rotate(7deg); }
}
@keyframes loginDocFloat {
    from { transform: translateY(0) rotate(-8deg); }
    to { transform: translateY(10px) rotate(-5deg); }
}
@keyframes loginIconFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .login-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .login-deco-calc,
    .login-float-4,
    .login-float-6 { display: none; }
}

@media (max-width: 900px) {
    .login-hero-inner { max-width: none; }
    .login-hero-title { font-size: 1.7rem; }
    .login-hero-lead { margin-bottom: 18px; font-size: 14.5px; }
    .login-features { margin-bottom: 18px; gap: 10px; }
    .login-slogan { margin-bottom: 8px; }
    .login-hero-foot { padding-top: 22px; }
    .login-orb-a { width: 260px; height: 260px; }
    .login-deco,
    .login-float { display: none; }
    .login-panel-logo { width: min(180px, 58%); margin: 0 auto 18px; }
}

@media (max-width: 480px) {
    .login-features li { font-size: 13.5px; }
    .login-row { flex-wrap: wrap; }
    .login-panel-inner { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .login-hero-inner,
    .login-panel-inner,
    .login-orb-a,
    .login-deco,
    .login-float { animation: none; }
}

/* Sidebar logo brand */
.sidebar-brand {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 14px;
    border-bottom: 1px solid #EEF1F6;
    text-decoration: none;
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand-logo {
    width: 100%;
    max-width: 178px;
    height: auto;
    display: block;
}
.brand-mark { display: none; }
.brand-text { display: none; }

.taxpayer-tabs {
    border-bottom: 1px solid var(--card-border);
    gap: 2px;
}

.taxpayer-tabs .nav-link {
    color: #4b5568;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 14px;
    padding: .7rem 1rem;
}

.taxpayer-tabs .nav-link.active {
    color: var(--accent-blue);
    background: transparent;
    border-bottom-color: var(--accent-blue);
    font-weight: 600;
}

.detail-dl dt {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 13px;
    padding-top: .35rem;
}

.detail-dl dd {
    margin-bottom: .55rem;
}

.period-card {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px;
    height: 100%;
}

.pdf-frame {
    width: 100%;
    height: 75vh;
    border: 0;
    background: #525659;
}

.pdf-frame-lg {
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 640px;
    border: 0;
    background: #4a4f55;
}

/* â”€â”€ Review Mode â”€â”€ */
.review-mode .taxpayer-switcher { display: none; }
.review-mode .app-shell { height: 100vh; overflow: hidden; }
.review-mode .app-topbar { height: 52px; padding: 0 14px; flex-shrink: 0; }
.review-mode .app-main { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

.review-fit-content {
    padding: 0 !important;
    height: calc(100vh - 52px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #e8ecf3;
}

.review-screen {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#review-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.review-screen-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 0;
    height: 100%;
    overflow: hidden;
}

.review-screen-grid > * {
    min-height: 0;
}

/* Kartlar — tam yükseklik */
.review-card {
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

.review-pdf-card {
    background: #1a1f2e;
    border-right: 1px solid #12151c;
}

.review-data-card {
    border-left: 1px solid var(--card-border);
    box-shadow: -8px 0 28px rgba(15, 23, 42, .06);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48px);
}

.review-data-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 8px;
}

.review-card-head {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: transparent;
    border-bottom: 1px solid #e8eef6;
}

.review-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    min-width: 0;
}
.review-doc-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #0B4DB8, #083D96);
    color: #fff; display: grid; place-items: center; font-size: 16px;
}
.review-doc-name { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.review-doc-sub { font-size: 11px; font-weight: 500; color: #64748b; margin-top: 1px; }

.review-conf-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 4px;
}
.review-conf-pill.ok  { background: #dcfce7; color: #15803d; }
.review-conf-pill.low { background: #fee2e2; color: #dc2626; }

.review-card-actions { display: flex; gap: 6px; }
.review-card-actions .btn {
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
}

/* PDF — tam panel, büyük varsayılan */
.review-pdf-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: auto;
    background: #252a38;
    cursor: grab;
}
.review-pdf-viewport:active { cursor: grabbing; }

.review-pdf-inner {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 8px;
    min-height: 100%;
}

#pdf-canvas {
    display: block;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    border-radius: 2px;
    background: #fff;
}

.review-pdf-status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    gap: 8px;
    pointer-events: none;
}

.review-pdf-float-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    pointer-events: none;
}

.review-zoom-group {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    background: rgba(15, 20, 30, .75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.review-zoom-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,.85);
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.review-zoom-btn:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.review-zoom-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    min-width: 42px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.review-pdf-page-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 5;
    background: linear-gradient(135deg, #0B4DB8, #083D96);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(11, 77, 184,.4);
    pointer-events: none;
}

.review-pdf-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
    font-size: 10px;
    color: rgba(255,255,255,.45);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-pdf-foot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    background: #12151c;
    border-top: 1px solid #0d1017;
    font-size: 11px;
    color: rgba(255,255,255,.55);
}
.review-pdf-foot b { color: rgba(255,255,255,.85); }

.review-progress-track {
    flex: 1;
    max-width: 160px;
    height: 4px;
    background: rgba(255,255,255,.1);
    border-radius: 999px;
    overflow: hidden;
}

.review-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #34d399, #10b981);
    border-radius: 999px;
    transition: width .3s;
}

.review-alerts {
    flex-shrink: 0;
    padding: 4px 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.review-alert {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}
.review-alert.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.review-alert.warn    { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.review-alert.danger  { background: #EEF4FF; color: #b91c1b; border: 1px solid #B8CFFA; }

.review-section {
    flex-shrink: 0;
    padding: 4px 14px 8px;
}

.review-section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #64748b;
    padding: 10px 2px 8px;
}

.review-section-journal {
    flex: none;
    padding: 0 10px 10px;
    min-width: 0;
}

.review-section-journal .journal-lines-wrap,
.review-section-journal .journal-grid {
    min-width: 0;
}

.review-fields-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.review-fields-compact label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.review-fields-compact label.span-2 { grid-column: span 2; }

.review-fields-compact label > span {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.review-fields-compact input,
.review-fields-compact select {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    width: 100%;
    height: 34px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.review-fields-compact input:focus,
.review-fields-compact select:focus {
    outline: none;
    border-color: #0B4DB8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 77, 184, .12);
}

.review-amt { background: transparent; }
.review-amt input { background: #f1f5f9; font-variant-numeric: tabular-nums; }
.review-amt-total input {
    font-weight: 800;
    color: #083D96;
    background: #EEF4FF !important;
    border-color: #B8CFFA !important;
}

.j-inp {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    width: 100%;
    background: #fff;
    min-height: 32px;
    transition: border-color .12s, box-shadow .12s;
}
.j-inp:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
}
.j-inp-sm { height: 22px; font-size: 10px; margin-top: 2px; color: #64748b; }
.j-inp.mono { font-family: ui-monospace, monospace; font-size: 10px; }
.j-inp.num { text-align: right; font-variant-numeric: tabular-nums; }
.j-desc { min-width: 0; }

.j-inp-warn {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
}
.j-row-review { background: #fffbeb; }

.review-hint-box {
    margin: 0 0 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
}
.review-hint-box.review-hint-warn {
    background: #fff7ed;
    border-color: #fed7aa;
}
.review-hint-title {
    font-weight: 700;
    font-size: 12px;
    color: #9a3412;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.review-hint-list {
    margin: 0;
    padding-left: 18px;
    color: #9a3412;
    line-height: 1.45;
}
.review-hint-row {
    padding: 8px 0;
    border-top: 1px dashed #e2e8f0;
}
.review-hint-row:first-child { border-top: 0; padding-top: 0; }
.review-hint-row.needs-review {
    background: #fff7ed;
    margin: 0 -8px;
    padding: 8px;
    border-radius: 8px;
    border-top: 0;
}
.review-hint-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.review-hint-code {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    color: #083D96;
}
.review-hint-code.is-empty { color: #c2410c; }
.review-hint-conf {
    margin-left: auto;
    font-weight: 800;
    color: #475569;
    font-size: 11px;
}
.review-hint-reason {
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

.review-classify-box {
    display: none;
}
    margin: 0 10px 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 11px;
}
.review-classify-title {
    font-weight: 700;
    font-size: 11px;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.review-classify-row {
    padding: 6px 0;
    border-top: 1px dashed #e2e8f0;
}
.review-classify-row:first-of-type { border-top: 0; }
.review-classify-row.needs-review { background: #fff7ed; margin: 0 -8px; padding: 6px 8px; border-radius: 6px; }
.review-classify-row .conf {
    margin-left: 6px;
    font-weight: 700;
    color: #083D96;
}
.review-classify-row .reason {
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
}

.review-action-panel {
    flex-shrink: 0;
    margin-top: auto;
    padding: 14px 12px 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.review-journal-body {
    overflow: hidden;
}

.review-action-totals {
    display: grid;
    grid-template-columns: 1fr 1fr 120px;
    gap: 10px;
    align-items: stretch;
}

.review-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.review-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
}

.review-stat-value {
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1e293b;
}

.review-stat-money {
    font-size: 18px;
    letter-spacing: -0.01em;
}

.review-balance-detail {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.review-stat-balance.is-unbalanced .review-balance-detail {
    color: #b45309;
}

.review-stat-balance {
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

.review-action-buttons {
    display: grid;
    grid-template-columns: minmax(110px, 0.85fr) minmax(0, 2fr);
    gap: 10px;
}

.btn-action-save,
.btn-action-approve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: transform .15s, box-shadow .15s, background .15s, opacity .15s;
    text-decoration: none;
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.btn-action-save {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.btn-action-save:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

.btn-action-approve {
    background: linear-gradient(135deg, #059669 0%, #047857 55%, #065f46 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(4, 120, 87, .32);
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
    isolation: isolate;
}
.btn-action-approve .approve-btn-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}
.btn-action-approve .approve-btn-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-action-approve .approve-btn-label { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.btn-action-approve small {
    font-size: 10px;
    font-weight: 600;
    opacity: .88;
}
.btn-action-approve .approve-progress {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}
.btn-action-approve .approve-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #34d399 0%, #22c55e 45%, #16a34a 100%);
    box-shadow: 0 0 18px rgba(74, 222, 128, .45);
    transition: width .12s linear;
    border-radius: 0 10px 10px 0;
}
.btn-action-approve.is-loading {
    cursor: wait;
    pointer-events: none;
    transform: none;
    box-shadow: 0 4px 20px rgba(22, 163, 74, .4);
}
.btn-action-approve.is-loading .approve-btn-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.btn-action-approve:hover:not(:disabled):not(.is-loading) {
    background: linear-gradient(135deg, #10b981 0%, #059669 55%, #047857 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(4, 120, 87, .4);
}
.btn-action-approve:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-action-approve.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
    flex-direction: row;
}

.review-balance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.2;
}
.review-balance-badge.is-balanced   { background: #dcfce7; color: #15803d; }
.review-balance-badge.is-unbalanced { background: #fee2e2; color: #dc2626; }

@media (max-width: 1199.98px) {
    .review-action-totals {
        grid-template-columns: 1fr 1fr;
    }
    .review-stat-balance {
        grid-column: span 2;
    }
    .review-action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .review-screen-grid {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(280px, 42vh) 1fr;
        overflow-y: auto;
    }
    .review-fields-compact { grid-template-columns: repeat(2, 1fr); }
}

/* Legacy review aliases */
.review-fit-grid { display: contents; }


.review-fields .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5568;
    margin-bottom: 4px;
}

.journal-table thead th {
    font-size: 12px;
}

.journal-totals {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-top: 1px solid var(--card-border);
    background: #f8fafc;
    font-size: 15px;
}

.sticky-actions {
    position: sticky;
    bottom: 12px;
    background: transparent;
}

.review-split .panel-card { min-height: 200px; }

@media (max-width: 1199.98px) {
    .review-workspace {
        grid-template-columns: 1fr;
    }
    .pdf-frame-lg {
        height: 55vh;
        min-height: 420px;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar { display: none; }
    .taxpayer-switcher { min-width: 0; }
    .pdf-frame { height: 50vh; }
}

/* ============ Bootstrap bileşenleri — Balmox tema override ============ */
.btn-primary {
    --bs-btn-bg: #0B4DB8;
    --bs-btn-border-color: #0B4DB8;
    --bs-btn-hover-bg: #083D96;
    --bs-btn-hover-border-color: #083D96;
    --bs-btn-active-bg: #062E72;
    --bs-btn-active-border-color: #062E72;
    --bs-btn-disabled-bg: #93B4E8;
    --bs-btn-disabled-border-color: #93B4E8;
    box-shadow: 0 4px 12px rgba(11, 77, 184, .22);
}
.btn-primary:hover { box-shadow: 0 6px 16px rgba(11, 77, 184, .3); }

.btn-outline-primary {
    --bs-btn-color: #0B4DB8;
    --bs-btn-border-color: #B8CFFA;
    --bs-btn-hover-bg: #0B4DB8;
    --bs-btn-hover-border-color: #0B4DB8;
    --bs-btn-active-bg: #083D96;
    --bs-btn-active-border-color: #083D96;
}

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: #FF7A00;
    --bs-btn-border-color: #FF7A00;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #E56A00;
    --bs-btn-hover-border-color: #E56A00;
    --bs-btn-active-bg: #CC5E00;
    --bs-btn-active-border-color: #CC5E00;
    box-shadow: 0 4px 12px rgba(255, 122, 0, .25);
}

.text-primary { color: #0B4DB8 !important; }
.bg-primary { background-color: #0B4DB8 !important; }
.badge.bg-primary { background-color: #0B4DB8 !important; }
.link-primary { color: #0B4DB8 !important; }
.link-primary:hover { color: #083D96 !important; }

/* Varsayılan link rengi — Balmox mavi */
:root {
    --bs-link-color: #083D96;
    --bs-link-color-rgb: 8, 61, 150;
    --bs-link-hover-color: #062E72;
    --bs-link-hover-color-rgb: 153, 27, 27;
}

.form-control:focus,
.form-select:focus {
    border-color: #B8CFFA;
    box-shadow: 0 0 0 .2rem rgba(11, 77, 184, .12);
}
.form-check-input:checked {
    background-color: #0B4DB8;
    border-color: #0B4DB8;
}
.form-check-input:focus {
    border-color: #B8CFFA;
    box-shadow: 0 0 0 .2rem rgba(11, 77, 184, .12);
}

.pagination {
    --bs-pagination-active-bg: #0B4DB8;
    --bs-pagination-active-border-color: #0B4DB8;
    --bs-pagination-color: #083D96;
    --bs-pagination-hover-color: #062E72;
    --bs-pagination-hover-bg: #EEF4FF;
    --bs-pagination-focus-color: #062E72;
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(11, 77, 184, .12);
}

.nav-pills {
    --bs-nav-pills-link-active-bg: #0B4DB8;
}

.progress-bar { background-color: #0B4DB8; }

.dropdown-item.active, .dropdown-item:active { background-color: #0B4DB8; }

/* ============ Genel cila ============ */
.app-content::-webkit-scrollbar,
body::-webkit-scrollbar { width: 10px; height: 10px; }
body::-webkit-scrollbar-thumb { background: #d6d9df; border-radius: 6px; border: 2px solid var(--page-bg); }
body::-webkit-scrollbar-thumb:hover { background: #c3c7cf; }
body::-webkit-scrollbar-track { background: transparent; }

.content-breadcrumb i { color: #cbd0d8; }

.panel-card, .tpl-panel, .tp-panel, .tph {
    transition: box-shadow .18s ease;
}

/* Kart üst şeridi — istenirse .brand-top ile ince mavi vurgu */
.brand-top { position: relative; overflow: hidden; }
.brand-top::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1A6FE0, #083D96 60%, transparent);
}

/* ============ Dashboard v2 ============ */
.dsh-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13.5px;
    margin-bottom: 16px;
}
.dsh-alert i { font-size: 18px; color: #d97706; margin-top: 1px; }
.dsh-alert code {
    background: #fef3c7;
    color: #92400e;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 12px;
}

/* Hero */
.dsh-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, #062E72 0%, #0B4DB8 42%, #1A6FE0 72%, #FF7A00 130%);
    border-radius: 22px;
    padding: 28px 30px;
    margin-bottom: 18px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(8, 61, 150, .28);
}
.dsh-hero::before {
    content: "";
    position: absolute;
    right: -70px; top: -110px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255, 122, 0, .18);
}
.dsh-hero::after {
    content: "";
    position: absolute;
    right: 150px; bottom: -130px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
.dsh-hero-main { position: relative; z-index: 1; min-width: 0; }
.dsh-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}
.dsh-hero-main h1 {
    margin: 0 0 6px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}
.dsh-hero-main p {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .82);
    max-width: 460px;
}
.dsh-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dsh-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    color: #083D96;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transition: transform .15s, box-shadow .15s;
}
.dsh-btn-light:hover { color: #062E72; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
.dsh-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background .15s;
}
.dsh-btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.dsh-hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.dsh-hero-stat {
    min-width: 120px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    text-decoration: none;
    color: #fff;
    transition: background .15s, transform .15s;
}
a.dsh-hero-stat:hover { background: rgba(255, 255, 255, .2); color: #fff; transform: translateY(-2px); }
.dsh-hero-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.dsh-hero-stat span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .78);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* KPI kartları */
.dsh-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 1199.98px) { .dsh-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .dsh-kpi-grid { grid-template-columns: 1fr; } }

.dsh-kpi {
    position: relative;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.dsh-kpi:hover {
    border-color: #f2bcbc;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .1);
    transform: translateY(-2px);
    color: inherit;
}
.dsh-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.dsh-kpi-top span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.dsh-kpi-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
    color: #fff;
}
.dsh-kpi-ico.red { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 6px 14px rgba(220, 38, 38, .3); }
.dsh-kpi-ico.teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); box-shadow: 0 6px 14px rgba(13, 148, 136, .3); }
.dsh-kpi-ico.green { background: linear-gradient(135deg, #4ade80, #16a34a); box-shadow: 0 6px 14px rgba(22, 163, 74, .3); }
.dsh-kpi-ico.indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); box-shadow: 0 6px 14px rgba(79, 70, 229, .3); }
.dsh-kpi-ico.amber { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 6px 14px rgba(217, 119, 6, .3); }

.dsh-kpi-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.dsh-kpi-value strong {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.dsh-kpi-foot { font-size: 12px; color: #94a3b8; margin-top: auto; }
.dsh-kpi-foot b { color: #475569; font-weight: 700; }

.dsh-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}
.dsh-delta.up { background: #dcfce7; color: #15803d; }
.dsh-delta.down { background: #DCE8FF; color: #083D96; }
.dsh-delta.flat { background: #f1f5f9; color: #64748b; }

.dsh-kpi-track {
    height: 7px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}
.dsh-kpi-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #34d399, #16a34a);
    transition: width .4s ease;
}

/* Kartlar */
.dsh-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dsh-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px;
}
.dsh-card-head h2 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: 9px;
}
.dsh-card-head h2 i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    background: #EEF4FF;
    color: var(--brand);
}
.dsh-card-head small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.dsh-card-body { padding: 8px 20px 20px; flex: 1; }
.dsh-card-body.flush { padding: 0; }

.dsh-chart-wrap { position: relative; height: 280px; }
.dsh-chart-wrap.sm { height: 220px; }

.dsh-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #DCE8FF;
    color: #083D96;
    font-size: 12px;
    font-weight: 800;
}

/* Liste satırları (kontrol kuyruğu) */
.dsh-queue { display: flex; flex-direction: column; }
.dsh-queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    border-top: 1px solid #f4f6f9;
    transition: background .12s;
}
.dsh-queue-item:hover { background: #fdf8f8; }
.dsh-q-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0;
    background: #fff7ed;
    color: #d97706;
}
.dsh-q-text { min-width: 0; flex: 1; }
.dsh-q-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dsh-q-text small { font-size: 11.5px; color: var(--text-muted); }
.dsh-q-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 10px rgba(217, 119, 6, .25);
    transition: box-shadow .15s, transform .15s;
}
.dsh-q-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(217, 119, 6, .35); }

/* Dönem ilerleme listesi */
.dsh-periods { display: flex; flex-direction: column; }
.dsh-period {
    padding: 12px 20px;
    border-top: 1px solid #f4f6f9;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.dsh-period:hover { background: #f8fafc; color: inherit; }
.dsh-period-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}
.dsh-period-row strong {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.dsh-period-row .pct { font-size: 12px; font-weight: 800; color: #15803d; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.dsh-period small { display: block; font-size: 11px; color: #94a3b8; margin-top: 5px; }

/* Aktivite akışı */
.dsh-timeline {
    list-style: none;
    margin: 0;
    padding: 6px 20px 16px;
    position: relative;
}
.dsh-tl-item {
    position: relative;
    display: flex;
    gap: 13px;
    padding: 0 0 16px 0;
}
.dsh-tl-item:last-child { padding-bottom: 4px; }
.dsh-tl-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: -2px;
    width: 2px;
    background: #eef2f7;
}
.dsh-tl-item:last-child::before { display: none; }
.dsh-tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
    position: relative;
    z-index: 1;
    background: currentColor;
}
.dsh-tl-dot.ok { color: #22c55e; }
.dsh-tl-dot.warn { color: #f59e0b; }
.dsh-tl-dot.err { color: #1A6FE0; }
.dsh-tl-dot.idle { color: #94a3b8; }
.dsh-tl-body { min-width: 0; flex: 1; }
.dsh-tl-body a {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dsh-tl-body a:hover { color: var(--brand); }
.dsh-tl-body small { font-size: 11px; color: #94a3b8; }

/* Boş durum */
.dsh-empty {
    text-align: center;
    padding: 34px 20px;
    color: var(--text-muted);
}
.dsh-empty i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 14px;
    font-size: 20px;
    background: #f1f5f9;
    color: #94a3b8;
}
.dsh-empty p { margin: 0; font-size: 12.5px; }
.dsh-empty.ok i { background: #dcfce7; color: #16a34a; }

/* Grafik özet çipleri */
.dsh-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 14px;
    justify-content: center;
}
.dsh-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}
.dsh-legend b { font-weight: 800; font-variant-numeric: tabular-nums; }
.dsh-legend .swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

@media (max-width: 767.98px) {
    .dsh-hero { padding: 22px; }
    .dsh-hero-stats { width: 100%; }
    .dsh-hero-stat { flex: 1; }
}

/* =========================================================
   İş Kuyruğu — modern control center
   ========================================================= */
.wq-page { max-width: 1280px; margin: 0 auto; padding-bottom: 88px; }

.wq-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.wq-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0B4DB8;
}
.wq-header h1 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: #041E4D;
}
.wq-header-text p:last-child {
    margin: 0;
    max-width: 52ch;
    color: #64748B;
    font-size: 14px;
    line-height: 1.5;
}
.wq-approve-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1A6FE0, #0B4DB8 55%, #083D96);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(11, 77, 184, .25);
    cursor: pointer;
    transition: filter .15s, box-shadow .15s, opacity .15s;
}
.wq-approve-btn:hover:not(:disabled) { filter: brightness(1.05); }
.wq-approve-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.wq-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.wq-kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #E4E9F2;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.wq-kpi strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #041E4D;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.wq-kpi span:last-child {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}
.wq-kpi-ico {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
}
.wq-kpi-ico.pending { background: #EEF4FF; color: #0B4DB8; }
.wq-kpi-ico.ok { background: #ECFDF5; color: #059669; }
.wq-kpi-ico.warn { background: #FFF7ED; color: #EA580C; }
.wq-kpi-ico.select { background: #F5F3FF; color: #6D28D9; }

.wq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #E4E9F2;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .03);
}
.wq-filter-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}
.wq-filter-search i {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
}
.wq-filter-search input {
    width: 100%;
    height: 40px;
    border: 1px solid #D7DEEA;
    border-radius: 10px;
    padding: 0 12px 0 36px;
    background: #FBFCFE;
    font-size: 13.5px;
    outline: none;
}
.wq-filter-search input:focus {
    border-color: #0B4DB8;
    box-shadow: 0 0 0 3px rgba(11, 77, 184, .12);
    background: #fff;
}
.wq-filter-input {
    height: 40px;
    border: 1px solid #D7DEEA;
    border-radius: 10px;
    padding: 0 12px;
    background: #FBFCFE;
    font-size: 13.5px;
    color: #334155;
    min-width: 130px;
}
.wq-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin: 0;
    cursor: pointer;
    user-select: none;
}
.wq-filter-check input { accent-color: #0B4DB8; }
.wq-filter-apply {
    height: 40px;
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    background: #0B4DB8;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wq-filter-clear {
    font-size: 13px;
    font-weight: 650;
    color: #64748B;
    text-decoration: none;
}
.wq-filter-clear:hover { color: #0B4DB8; }

.wq-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.wq-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #E4E9F2;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.wq-pill span {
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #64748B;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    font-variant-numeric: tabular-nums;
}
.wq-pill:hover { border-color: #B8CFFA; color: #0B4DB8; }
.wq-pill.active {
    background: #0B4DB8;
    border-color: #0B4DB8;
    color: #fff;
    box-shadow: 0 6px 16px rgba(11, 77, 184, .22);
}
.wq-pill.active span { background: rgba(255,255,255,.2); color: #fff; }

.wq-table-card {
    background: #fff;
    border: 1px solid #E4E9F2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    overflow: hidden;
}
.wq-table-wrap { overflow-x: auto; }
.wq-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 920px;
}
.wq-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #F8FAFC;
    border-bottom: 1px solid #E4E9F2;
    padding: 12px 14px;
    font-size: 11.5px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748B;
    white-space: nowrap;
}
.wq-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    font-size: 13.5px;
    color: #334155;
}
.wq-table tbody tr:last-child td { border-bottom: 0; }
.wq-table tbody tr:hover td { background: #F8FBFF; }
.wq-table tbody tr.is-selected td { background: #EEF4FF; }
.wq-table tbody tr.is-unbalanced td { background: #FFFBF5; }
.wq-table tbody tr.is-unbalanced:hover td { background: #FFF7ED; }
.wq-col-check { width: 44px; text-align: center; }
.wq-taxpayer {
    font-weight: 700;
    color: #0B4DB8;
    text-decoration: none;
}
.wq-taxpayer:hover { text-decoration: underline; }
.wq-date { white-space: nowrap; color: #64748B; font-variant-numeric: tabular-nums; }
.wq-party { font-weight: 650; color: #0F172A; line-height: 1.3; }
.wq-docno {
    margin-top: 3px;
    font-size: 12px;
    color: #94A3B8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.wq-amount {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    color: #0F172A;
    min-width: 118px;
}
.wq-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.wq-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 750;
    white-space: nowrap;
}
.wq-badge.ok { background: #ECFDF5; color: #047857; }
.wq-badge.bad { background: #FEF2F2; color: #B91C1C; }
.wq-badge.warn { background: #FFF7ED; color: #C2410C; }
.wq-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #B8CFFA;
    background: #fff;
    color: #0B4DB8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, box-shadow .15s;
}
.wq-review:hover { background: #EEF4FF; box-shadow: 0 4px 12px rgba(11, 77, 184, .12); }
.wq-review.muted { border-color: #E2E8F0; color: #475569; }
.wq-review.muted:hover { background: #F8FAFC; box-shadow: none; }

.wq-empty {
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 48px 20px;
    text-align: center;
    color: #64748B;
}
.wq-empty i { font-size: 28px; color: #94A3B8; }
.wq-empty strong { color: #334155; font-size: 15px; }

.wq-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid #EEF2F7;
    background: #FBFCFE;
}
.wq-footer-meta {
    font-size: 13px;
    font-weight: 650;
    color: #64748B;
    font-variant-numeric: tabular-nums;
}
.wq-pagination .pagination { margin: 0; }
.wq-pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border-color: #E4E9F2;
    color: #0B4DB8;
    font-weight: 650;
    font-size: 13px;
}
.wq-pagination .page-item.active .page-link {
    background: #0B4DB8;
    border-color: #0B4DB8;
}

.wq-sticky-bar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 40;
    width: min(720px, calc(100% - 32px));
}
.wq-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 14px;
    background: #041E4D;
    color: #fff;
    box-shadow: 0 16px 40px rgba(4, 30, 77, .35);
}
.wq-sticky-inner strong { font-size: 14px; }
.wq-sticky-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wq-sticky-clear {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.22);
    background: transparent;
    color: #fff;
    font-weight: 650;
    font-size: 13px;
}
.wq-sticky-approve {
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF7A00, #E56A00);
    color: #fff;
    font-weight: 750;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wq-sticky-approve:disabled { opacity: .5; }

@media (max-width: 991.98px) {
    .wq-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .wq-kpi-grid { grid-template-columns: 1fr; }
    .wq-approve-btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Notlarım — topbar panel + crop + lightbox
   ========================================================= */
.notes-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 12px;
    margin-right: 8px;
    border: 1px solid #D7DEEA;
    border-radius: 11px;
    background: #fff;
    color: #0B4DB8;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.notes-trigger:hover {
    background: #EEF4FF;
    border-color: #B8CFFA;
    box-shadow: 0 4px 12px rgba(11, 77, 184, .1);
}
.notes-trigger i { font-size: 15px; }
.notes-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #FF7A00;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    font-variant-numeric: tabular-nums;
}
.notes-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .35);
    z-index: 60;
}
.notes-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 100vw);
    height: 100vh;
    background: #fff;
    z-index: 70;
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(4, 30, 77, .18);
    animation: notesSlide .22s ease;
}
@keyframes notesSlide {
    from { transform: translateX(18px); opacity: .6; }
    to { transform: none; opacity: 1; }
}
.notes-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #EEF2F7;
}
.notes-panel-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #041E4D;
    letter-spacing: -.02em;
}
.notes-panel-head p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #64748B;
}
.notes-close {
    width: 34px; height: 34px;
    border: 0;
    border-radius: 9px;
    background: #F1F5F9;
    color: #475569;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.notes-close:hover { background: #E2E8F0; }

.notes-compose {
    padding: 14px 18px;
    border-bottom: 1px solid #EEF2F7;
    display: grid;
    gap: 10px;
    background: #FBFCFE;
}
.notes-compose textarea {
    width: 100%;
    border: 1px solid #D7DEEA;
    border-radius: 12px;
    padding: 12px;
    resize: vertical;
    min-height: 78px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #fff;
}
.notes-compose textarea:focus {
    border-color: #0B4DB8;
    box-shadow: 0 0 0 3px rgba(11, 77, 184, .12);
}
.notes-compose-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.notes-photo-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.notes-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid #D7DEEA;
    background: #fff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer;
}
.notes-tool-btn:hover { border-color: #B8CFFA; color: #0B4DB8; }
.notes-tool-btn.danger { color: #B91C1C; }
.notes-tool-btn.danger:hover { border-color: #FECACA; background: #FEF2F2; }
.notes-open-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    color: #475569;
    cursor: pointer;
    user-select: none;
}
.notes-open-toggle input { accent-color: #0B4DB8; }
.notes-preview {
    display: grid;
    gap: 8px;
}
.notes-preview img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #E4E9F2;
}
.notes-preview-actions { display: flex; gap: 6px; }
.notes-paste-hint {
    margin: 0;
    font-size: 11.5px;
    color: #94A3B8;
}
.notes-save-btn {
    height: 42px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #1A6FE0, #0B4DB8);
    color: #fff;
    font-weight: 750;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(11, 77, 184, .22);
}
.notes-save-btn:disabled { opacity: .55; cursor: not-allowed; }

.notes-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px 24px;
    display: grid;
    gap: 10px;
    align-content: start;
}
.notes-empty {
    text-align: center;
    color: #94A3B8;
    font-size: 13.5px;
    padding: 28px 8px;
}
.notes-filters {
    display: flex;
    gap: 6px;
    padding: 10px 18px 0;
    flex-wrap: wrap;
}
.notes-filter {
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #D7DEEA;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.notes-filter.is-active {
    background: #0B4DB8;
    border-color: #0B4DB8;
    color: #fff;
}
.notes-card-author {
    font-size: 12px;
    font-weight: 750;
    color: #0B4DB8;
    margin-bottom: 6px;
}
.notes-card {
    border: 1px solid #E4E9F2;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}
.notes-card.is-closed { opacity: .78; background: #F8FAFC; }
.notes-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.notes-status {
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
}
.notes-status.open { background: #ECFDF5; color: #047857; }
.notes-status.closed { background: #F1F5F9; color: #64748B; }
.notes-delete {
    width: 30px; height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
}
.notes-delete:hover { background: #FEF2F2; color: #B91C1C; }
.notes-card-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #0F172A;
    white-space: pre-wrap;
    word-break: break-word;
}
.notes-thumb {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 10px;
    overflow: hidden;
}
.notes-thumb img {
    display: block;
    width: 100%;
    max-height: 140px;
    object-fit: cover;
}
.notes-card-meta {
    margin-top: 8px;
    font-size: 11.5px;
    color: #94A3B8;
}

.notes-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, .55);
    display: grid;
    place-items: center;
    padding: 16px;
}
.notes-crop-dialog {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.notes-crop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #EEF2F7;
}
.notes-crop-stage {
    height: min(52vh, 420px);
    background: #111827;
}
.notes-crop-stage img { display: block; max-width: 100%; }
.notes-crop-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-top: 1px solid #EEF2F7;
}
.notes-crop-spacer { flex: 1; }

.notes-lightbox {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(15, 23, 42, .82);
    display: grid;
    place-items: center;
    padding: 24px;
}
.notes-lightbox img {
    max-width: min(960px, 100%);
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.notes-lightbox-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 40px; height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 575.98px) {
    .notes-trigger-label { display: none; }
    .notes-panel { width: 100vw; }
}
