﻿: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;
}

::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: #F4F7FB;
    color: var(--ink);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ============ Sidebar — beyaz, Balmox mavi vurgulu ============ */
.app-sidebar {
    width: 232px;
    background: #fff;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    border-right: 1px solid #EEF2F7;
}

.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: #64748b;
    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: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    color: #1e293b;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 650;
    margin: 0 10px 4px;
    transition: background .15s, color .15s;
}
.sidebar-nav .nav-item:hover {
    background: #F5F8FC;
    color: #0f172a;
}
.sidebar-nav .nav-item:hover .nav-ico { color: #0B4DB8; background: transparent; border: 0; }
.sidebar-nav .nav-item.active {
    background: #E8F1FF;
    color: #0B4DB8;
    font-weight: 700;
    box-shadow: none;
}
.sidebar-nav .nav-item.active .nav-ico {
    background: transparent;
    border: 0;
    color: #0B4DB8;
    box-shadow: none;
}
.nav-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
}

.nav-ico {
    width: 22px;
    height: 22px;
    border-radius: 0;
    display: grid; place-items: center;
    background: transparent;
    border: 0;
    color: #64748b;
    font-size: 16px;
    flex-shrink: 0;
}

.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: 14px;
    background: #F8FAFC;
    border: 0;
}
.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0B4DB8;
    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: #F4F7FB;
    border-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 24px 0;
    position: sticky;
    top: 0;
    z-index: 20;
}
.app-topbar::before { display: none; }

.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: 12px 24px 32px;
}

.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.is-switching { opacity: .55; pointer-events: none; transition: opacity .08s linear; }

.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; align-items: center; flex-wrap: wrap; }

.inv-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
}

.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: row; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 14px;
    background: #fff; border: 1px solid var(--card-border);
    text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s, transform .12s;
    box-shadow: var(--shadow-sm);
}
.inv-stat-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-stat:hover { border-color: #B8CFFA; background: #f8fbff; color: inherit; transform: translateY(-1px); }
.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-ico {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; color: #fff; font-size: 15px;
}
.inv-stat-ico.blue { background: linear-gradient(135deg, #1A6FE0, #0B4DB8); }
.inv-stat-ico.teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.inv-stat-ico.amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.inv-stat-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.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;
    padding: 10px; background: #fff; border: 1px solid var(--card-border); border-radius: 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-year-step {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 44px;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6edf7;
    box-shadow: none;
    flex-shrink: 0;
}
.inv-year-nav {
    width: 34px; height: 34px;
    border: 0; background: transparent;
    border-radius: 9px;
    color: #0B4DB8;
    display: grid; place-items: center;
    cursor: pointer;
}
.inv-year-nav:hover:not(:disabled) { background: #EEF4FF; }
.inv-year-nav:disabled { opacity: .35; cursor: default; }
.inv-year-now {
    min-width: 56px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
}

.inv-dock {
    position: sticky;
    top: 72px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.inv-dock-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.inv-dock-search {
    position: relative;
    flex: 1;
    min-width: 0;
}
.inv-dock-search i.bi-search {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; pointer-events: none;
}
.inv-dock-search input {
    width: 100%;
    height: 44px;
    padding: 0 42px 0 40px;
    border: 1px solid #e6edf7;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
}
.inv-dock-search input:focus {
    outline: none;
    background: #fff;
    border-color: #0B4DB8;
    box-shadow: 0 0 0 4px rgba(11, 77, 184, .12);
}
.inv-search-clear {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px;
    border: 0; border-radius: 8px;
    background: #e2e8f0; color: #475569;
    display: none;
    place-items: center;
    cursor: pointer;
}
.inv-dock-search:has(input:not(:placeholder-shown)) .inv-search-clear { display: grid; }
.inv-search-clear:hover { background: #cbd5e1; }
.inv-months {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: #dbe4f0 transparent;
}
.inv-months::-webkit-scrollbar { height: 4px; }
.inv-months::-webkit-scrollbar-thumb { background: #dbe4f0; border-radius: 4px; }
.inv-chip {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e6edf7;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.inv-chip:hover { border-color: #B8CFFA; color: #0B4DB8; background: #f8fbff; }
.inv-chip.is-on {
    background: #0B4DB8;
    border-color: #0B4DB8;
    color: #fff;
    box-shadow: 0 6px 14px rgba(11, 77, 184, .28);
}
.inv-chip-short { display: none; }
@media (max-width: 991.98px) {
    .inv-chip-full { display: none; }
    .inv-chip-short { display: inline; }
    .inv-dock { top: 8px; }
    .inv-dock-top { flex-wrap: wrap; }
    .inv-year-step { width: 100%; justify-content: center; }
}

.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: 11px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.inv-row:hover { background: #f8fbff; }
.inv-row.is-done { box-shadow: inset 3px 0 0 #22c55e; }
.inv-row.is-open { box-shadow: inset 3px 0 0 #ef4444; }
.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-icon.done { background: #dcfce7; color: #15803d; }
.inv-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
}
.inv-status.done { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.inv-status.open { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.inv-status i { font-size: 13px; }
#inv-shell.is-loading { opacity: .55; pointer-events: none; transition: opacity .08s linear; }
.inv-file-title { font-weight: 700; font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.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;
}
.inv-seq { font-variant-numeric: tabular-nums; min-width: 28px; text-align: center; }
.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;
    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.tpl-cols-owner,
.tpl-row.tpl-row-owner {
    grid-template-columns: minmax(210px, 1.45fr) minmax(160px, .95fr) minmax(150px, .9fr) minmax(180px, 1.05fr) 220px;
}
.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: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    transition: border-color .16s, box-shadow .16s, transform .16s;
}
.tpl-row:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    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-ico.danger { color: #b42318; background: #fef2f2; }
.tpl-ico.danger:hover { background: #fee2e2; color: #991b1b; }
button.tpl-ico { border: none; cursor: pointer; }
.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: #b42318; }
.tpl-menu-item.danger i { color: #b42318; }
.tpl-menu-item.danger:hover { background: #fef2f2; color: #991b1b; }
.tpl-menu-sep { height: 1px; background: #eef2f7; margin: 5px 8px; }

.tpl-owner-select {
    height: 44px;
    max-width: 240px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: #fff;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    box-shadow: var(--shadow-sm);
}
.tpl-owner-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    pointer-events: none;
}
.tpl-owner-av {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #eef2ff;
    color: #3730a3;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}
.tpl-owner-chip b {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tpl-owner-chip small { display: block; font-size: 11px; color: #94a3b8; }
.tpl-progress-foot { margin-top: 8px; }

.tph-owner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 700;
    font-size: 12px;
}

body.tpl-del-open { overflow: hidden; }
.tpl-del {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}
.tpl-del[hidden] { display: none !important; }
.tpl-del-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(4px);
}
.tpl-del-sheet {
    position: relative;
    width: min(460px, 100%);
    background: #fff;
    border-radius: 20px;
    padding: 26px 24px 20px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    animation: tplMenuIn .16s ease;
}
.tpl-del-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fef2f2;
    color: #dc2626;
    font-size: 22px;
    margin-bottom: 14px;
}
.tpl-del-sheet h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.tpl-del-lead { margin: 0 0 14px; color: #64748b; font-size: 13.5px; }
.tpl-del-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}
.tpl-del-card strong { font-size: 14.5px; }
.tpl-del-card span { font-size: 12px; color: #64748b; }
.tpl-del-owner { font-weight: 700; color: #3730a3 !important; }
.tpl-del-lost {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 6px;
}
.tpl-del-lost li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}
.tpl-del-lost i { color: #dc2626; }
.tpl-del-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;
}
.tpl-del-hint { font-weight: 600; color: #0B4DB8; margin-left: 4px; }
.tpl-del-input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0 12px;
    font-size: 14px;
    margin-bottom: 12px;
}
.tpl-del-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}
.tpl-del-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #334155;
    margin-bottom: 16px;
    cursor: pointer;
}
.tpl-del-check input { margin-top: 3px; }
.tpl-del-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tpl-del-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
}
.tpl-del-submit:hover { background: #b91c1c; color: #fff; }
.tpl-del-submit:disabled { opacity: .4; cursor: not-allowed; background: #dc2626; }


/* ============ 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; }
.tpl-close-line {
    font-size: 12px;
    font-weight: 650;
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 4px 8px;
}
.tpl-close-line.ok {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

@media (max-width: 1099.98px) {
    .tpl-cols { display: none; }
    .tpl-row,
    .tpl-row.tpl-row-owner {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }
    .tpl-who { grid-column: 1 / -1; }
    .tpl-owner { 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) {
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(15, 23, 42, .45);
    }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .app-sidebar {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1040;
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 12px 0 40px rgba(15, 23, 42, .18);
    }
    body.sidebar-open .app-sidebar { transform: translateX(0); }
    .taxpayer-switcher { min-width: 0; }
    .pdf-frame { height: 50vh; }
    .inv-head, .inv-head-actions, .tph-actions, .page-toolbar {
        flex-wrap: wrap;
    }
    .inv-table-wrap, .table-responsive, .luca-table-wrap, .wq-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .inv-table th:last-child,
    .inv-table td.inv-actions,
    .fee-table th:last-child,
    .fee-table td:last-child {
        position: sticky;
        right: 0;
        background: #fff;
        box-shadow: -8px 0 12px rgba(15, 23, 42, .04);
    }
    .review-fields-compact label,
    .review-fields-compact .review-amt,
    .journal-table input,
    .journal-table select {
        min-width: 0;
        width: 100%;
    }
    .modal-dialog { margin: .5rem; max-width: calc(100% - 1rem); }
    .inv-export-menu .dropdown-menu { max-width: min(280px, 92vw); }
}

/* ============ 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;
}

/* Compact home header */
.dsh-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 2px 0 12px;
    border-bottom: 1px solid #e8eef6;
}
.dsh-top-date {
    margin: 0 0 3px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #64748b;
}
.dsh-top h1 {
    margin: 0 0 4px;
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: #0f172a;
}
.dsh-top-summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
    max-width: 640px;
}
.dsh-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.dsh-top-secondary { display: flex; flex-wrap: wrap; gap: 8px; }
.dsh-act {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.dsh-act:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; transform: translateY(-1px); }
.dsh-act-primary {
    height: 38px;
    padding: 0 16px;
    border-color: transparent;
    background: #0B4DB8;
    color: #fff;
    font-size: 13.5px;
    box-shadow: 0 1px 2px rgba(11, 77, 184, .18), 0 8px 16px rgba(11, 77, 184, .22);
}
.dsh-act-primary:hover { background: #083D96; color: #fff; border-color: transparent; }
.dsh-home {
    display: grid;
    grid-template-columns: minmax(280px, .88fr) minmax(0, 1.42fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 8px;
}
.dsh-resume {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 16px;
    padding: 14px 16px 13px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.dsh-resume-kicker {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}
.dsh-resume-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dsh-resume-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dsh-resume-ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: #eef4ff;
    color: #0B4DB8;
    font-size: 16px;
    flex: 0 0 auto;
}
.dsh-resume-body h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
}
.dsh-resume-body p { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.dsh-resume.is-empty .dsh-resume-ico { background: #f1f5f9; color: #64748b; }
.dsh-resume-bar { margin-top: 12px; }
.dsh-resume-track {
    display: block;
    height: 6px;
    border-radius: 99px;
    background: #eef2f7;
    overflow: hidden;
}
.dsh-resume-track i {
    display: block;
    height: 100%;
    background: #0B4DB8;
    border-radius: 99px;
}
.dsh-resume-bar small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 650;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

/* 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: 991.98px) {
    .dsh-home { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .dsh-top { padding-bottom: 12px; }
    .dsh-top-actions, .dsh-top-secondary { width: 100%; }
    .dsh-act { justify-content: center; }
    .dsh-act-primary { flex: 1 1 100%; }
    .dsh-top-secondary .dsh-act { flex: 1; }
    .dsh-resume-body { flex-wrap: wrap; }
    .dsh-resume-body .dsh-act { width: 100%; justify-content: center; }
}

/* =========================================================
   İş Kuyruğu — modern control center
   ========================================================= */
.wq-page { max-width: 1360px; margin: 0 auto; padding-bottom: 88px; }


.wq-header { margin-bottom: 18px; }
.wq-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
}
.wq-crumb a {
    display: inline-flex; align-items: center; gap: 6px;
    color: #64748B; text-decoration: none;
}
.wq-crumb a:hover { color: #0B4DB8; }
.wq-crumb a i { font-size: 14px; }
.wq-crumb > i { font-size: 11px; }
.wq-crumb strong { color: #475569; font-weight: 700; }
.wq-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.wq-head-brand { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.wq-hero-mark {
    width: 56px; height: 56px; border-radius: 18px;
    background: #fff;
    border: 1px solid #E8EEF6;
    box-shadow: 0 10px 24px rgba(47, 107, 255, .10);
    display: grid; place-items: center; flex: 0 0 auto;
}
.wq-header-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wq-btn-ico {
    width: 26px; height: 26px; border-radius: 999px;
    display: grid; place-items: center; background: #EEF4FF; color: #2F6BFF; font-size: 13px;
}
.wq-btn-ico.on { background: rgba(255,255,255,.22); color: #fff; }
.wq-settings-btn,
.wq-ghost-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 14px 0 8px; border-radius: 999px;
    border: 1px solid #E4ECF8; background: #fff; color: #334155;
    font-weight: 750; font-size: 13.5px; text-decoration: none;
    cursor: pointer; box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}
.wq-settings-btn:hover, .wq-ghost-btn:hover { background: #F8FAFF; color: #0B4DB8; }
.wq-ghost-btn { padding: 0 16px; border-radius: 14px; color: #2F6BFF; }
.wq-ghost-btn.sm { height: 36px; padding: 0 12px; font-size: 12.5px; box-shadow: none; }
.wq-icon-btn {
    width: 38px; height: 38px; border-radius: 999px;
    border: 1px solid #E2E8F0; background: #fff; color: #64748b;
    display: grid; place-items: center; text-decoration: none;
}
.wq-icon-btn:hover { color: #0B4DB8; border-color: #C7D7F5; }
.wq-header h1 {
    margin: 0 0 6px;
    font-size: clamp(1.55rem, 2.1vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0B1B3A;
    line-height: 1.1;
}
.wq-lead {
    margin: 0;
    max-width: 62ch;
    color: #64748B;
    font-size: 14px;
    line-height: 1.55;
}
.wq-approve-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px 0 8px;
    border: 0;
    border-radius: 999px;
    background: #2F6BFF;
    color: #fff;
    font-weight: 750;
    font-size: 13.5px;
    box-shadow: 0 12px 24px rgba(47, 107, 255, .28);
    cursor: pointer;
    transition: filter .15s, box-shadow .15s, transform .15s;
}
.wq-approve-btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.wq-approve-btn:disabled {
    opacity: 1;
    background: #2F6BFF;
    box-shadow: 0 12px 24px rgba(47, 107, 255, .18);
    cursor: not-allowed;
}

.wq-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr minmax(260px, 1.2fr);
    gap: 12px;
    margin-bottom: 14px;
}
.wq-kpi {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    padding: 14px 14px 12px;
    background: #fff;
    border: 1px solid #E8EEF6;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    position: relative;
    overflow: hidden;
    min-height: 112px;
}
.wq-kpi-label {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 13px;
    font-weight: 650;
    color: #64748B;
}
.wq-kpi strong {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    margin-top: 8px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0B1B3A;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.wq-delta {
    font-size: 12px; font-weight: 800; font-style: normal;
    display: inline-flex; align-items: center; gap: 3px; width: max-content;
}
.wq-kpi .wq-delta {
    grid-column: 1 / -1;
    grid-row: 3;
    position: static;
    margin-top: 8px;
}
.wq-delta.hot { color: #EF4444; }
.wq-delta.good { color: #16A34A; }
.wq-delta.amber { color: #F59E0B; }
.wq-kpi-wave {
    position: absolute; right: 6px; bottom: 0;
    width: 96px; height: 40px; pointer-events: none;
}
.wq-kpi.is-pending .wq-kpi-wave path { fill: #DBEAFE; }
.wq-kpi.is-ok .wq-kpi-wave path { fill: #D1FAE5; }
.wq-kpi.is-warn .wq-kpi-wave path { fill: #FFEDD5; }
.wq-kpi.is-select .wq-kpi-wave path { fill: #EDE9FE; }
.wq-kpi-ring {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    background: #fff;
    min-height: 112px;
}
.wq-ring {
    --p: 0;
    width: 78px; height: 78px;
    position: relative;
    flex: 0 0 auto;
}
.wq-ring svg {
    width: 78px; height: 78px;
    display: block;
    transform: rotate(-90deg);
}
.wq-ring-track, .wq-ring-bar {
    fill: none;
    stroke-width: 9;
}
.wq-ring-track { stroke: #E8EEF8; }
.wq-ring-bar {
    stroke: url(#wqRingGrad);
    stroke-linecap: round;
    stroke-dasharray: var(--p) 100;
}
.wq-ring.is-full .wq-ring-bar { stroke-linecap: butt; }
.wq-ring-hole { fill: #fff; }
.wq-ring[style*="--p: 0"] .wq-ring-bar { opacity: 0; }
.wq-ring-pct {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; color: #0B1220;
    letter-spacing: -.04em; line-height: 1;
}
.wq-ring-copy { min-width: 0; }
.wq-ring-copy small {
    display: block; font-size: 12px; color: #94A3B8; font-weight: 650;
}
.wq-ring-copy b {
    display: block; margin-top: 2px;
    font-size: 17px; font-weight: 800; letter-spacing: -.03em;
    color: #0B1220; font-variant-numeric: tabular-nums; line-height: 1.2;
}
.wq-ring-copy em {
    display: block; margin-top: 1px;
    font-size: 12.5px; font-style: normal; font-weight: 600; color: #64748B;
}
.wq-ring-bars {
    margin-left: auto;
    display: flex; align-items: flex-end; gap: 3px;
    height: 46px; width: 52px; flex: 0 0 auto;
}
.wq-ring-bars i {
    flex: 1; background: #93C5FD; border-radius: 3px 3px 1px 1px; display: block; min-height: 10px;
}
.wq-kpi-ico {
    grid-column: 1; grid-row: 1;
    width: 36px; height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}
.wq-kpi-ico.pending { background: #EEF4FF; color: #2F6BFF; }
.wq-kpi-ico.ok { background: #ECFDF5; color: #059669; }
.wq-kpi-ico.warn { background: #FFF7ED; color: #EA580C; }
.wq-kpi-ico.select { background: #F5F3FF; color: #7C3AED; }

.wq-date-wrap { position: relative; }
.wq-date-wrap i {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    color: #94A3B8; pointer-events: none;
}
.wq-date-wrap input { padding-right: 32px; min-width: 148px; }
.wq-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.wq-toolbar-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.wq-export-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 12px; border: 0; background: transparent;
    color: #334155; font-weight: 750; font-size: 13.5px; cursor: pointer;
}
.wq-export-btn:hover { color: #0B4DB8; }
.wq-row-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.wq-more {
    width: 30px; height: 30px; border: 0; background: transparent; color: #94A3B8;
    border-radius: 8px; display: grid; place-items: center;
}
.wq-more:hover { background: #F1F5F9; color: #334155; }
.wq-pager { display: flex; gap: 4px; align-items: center; }
.wq-page-btn {
    min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px;
    display: grid; place-items: center; text-decoration: none;
    color: #475569; font-size: 13px; font-weight: 700; border: 0; background: transparent;
}
.wq-page-btn.active { background: #2F6BFF; color: #fff; }
.wq-page-btn.is-off { opacity: .35; pointer-events: none; }
.wq-page-size {
    height: 34px; border: 1px solid #E2E8F0; border-radius: 10px;
    padding: 0 10px; background: #fff; font-size: 12.5px; font-weight: 650; color: #334155;
}
.wq-insights {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}
.wq-ins {
    background: #fff; border: 1px solid #E8EEF6; border-radius: 16px;
    padding: 14px 16px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.wq-ins-green { background: #F0FDF4; border-color: #BBF7D0; }
.wq-ins h3 { margin: 0; font-size: 13.5px; font-weight: 800; }
.wq-ins p { margin: 4px 0 0; font-size: 12.5px; color: #64748b; }
.wq-ins p b { color: #0f172a; }
.wq-ins-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; position: relative; }
.wq-ins-ico {
    width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; flex: 0 0 auto;
}
.wq-ins-ico.blue { background: #DBEAFE; color: #2563EB; }
.wq-ins-ico.teal { background: #CCFBF1; color: #0D9488; }
.wq-ins-ico.slate { background: #E2E8F0; color: #475569; }
.wq-ins-metric { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.wq-bars { display: flex; align-items: flex-end; gap: 4px; height: 46px; }
.wq-bars i { flex: 1; background: #93C5FD; border-radius: 99px 99px 4px 4px; display: block; min-height: 8px; }
.wq-bars.teal i { background: #5EEAD4; }
.wq-rank { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wq-rank li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.wq-rank em { font-style: normal; color: #94A3B8; font-weight: 700; }
.wq-rank b { font-variant-numeric: tabular-nums; }
.wq-sparkline { width: 100%; height: 40px; display: block; }
.wq-muted { color: #94A3B8; }

.wq-filter-card {
    background: #fff;
    border: 1px solid #E8EEF6;
    border-radius: 22px;
    padding: 14px 16px 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    margin-bottom: 14px;
}
.wq-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
}
.wq-filter-row.is-actions { margin-top: 10px; }
.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;
}
.wq-filter-search {
    position: relative;
    flex: 1 1 210px;
    min-width: 180px;
}
.wq-filter-search i {
    position: absolute;
    left: 4px; top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
}
.wq-filter-search input {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 0 12px 0 28px;
    background: transparent;
    font-size: 13.5px;
    outline: none;
    color: #334155;
}
.wq-filter-search input:focus { box-shadow: none; }
.wq-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #E6EAF2;
    border-radius: 12px;
    background: #fff;
    color: #64748B;
    margin: 0;
    min-width: 0;
}
.wq-field i { color: #94A3B8; font-size: 15px; flex: 0 0 auto; }
.wq-field select,
.wq-field input[type="date"] {
    border: 0;
    background: transparent;
    height: 40px;
    outline: none;
    min-width: 108px;
    font-size: 13.5px;
    color: #334155;
    font-weight: 600;
}
.wq-field input[type="date"] { min-width: 138px; color: #94A3B8; }
.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 4px 0 auto;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.wq-filter-check input { accent-color: #2F6BFF; }
.wq-filter-apply {
    height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    background: #2F6BFF;
    color: #fff;
    font-weight: 750;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wq-filter-clear {
    height: 40px;
    padding: 0 14px;
    border: 1px solid #E6EAF2;
    border-radius: 999px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 750;
    color: #334155;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wq-filter-clear:hover { color: #0B4DB8; border-color: #C7D7F5; }
.wq-more-filters {
    height: 40px;
    border: 0;
    background: transparent;
    color: #64748B;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.wq-more-filters:hover { color: #0B4DB8; }

.wq-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.wq-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #E4E9F2;
    background: #fff;
    color: #334155;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}
.wq-pill span {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #EEF2F7;
    color: #64748B;
    font-size: 12px;
    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: #2F6BFF;
    border-color: #2F6BFF;
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 107, 255, .28);
}
.wq-pill.active span { background: rgba(255,255,255,.22); 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;
    background: #F1F5F9;
    color: #475569;
}
.wq-badge.ok { background: #ECFDF5; color: #047857; }
.wq-badge.bad { background: #FEF2F2; color: #B91C1C; }
.wq-badge.warn { background: #FFF7ED; color: #C2410C; }
.wq-badge.muted { background: #F1F5F9; color: #64748B; }
.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;
    font-family: inherit;
    cursor: pointer;
    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; }

.wq-export-sheet { border: 0; border-radius: 20px; overflow: hidden; }
.wq-export-sheet .modal-header {
    align-items: flex-start; border-bottom: 0; padding: 20px 22px 0;
}
.wq-export-sheet .modal-header p {
    margin: 4px 0 0; font-size: 13px; color: #64748B;
}
.wq-export-sheet .modal-body { padding: 16px 22px 8px; }
.wq-export-sheet .modal-footer { border-top: 0; padding: 8px 22px 20px; }
.wq-export-label {
    margin: 0 0 8px; font-size: 11px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; color: #94A3B8;
}
.wq-export-scope { display: grid; gap: 8px; margin-bottom: 16px; }
.wq-export-scope label {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 14px;
    cursor: pointer; background: #fff;
}
.wq-export-scope label.is-on { border-color: #2F6BFF; background: #F5F8FF; }
.wq-export-scope label.is-disabled { opacity: .45; pointer-events: none; }
.wq-export-scope strong { display: block; font-size: 13.5px; color: #0B1220; }
.wq-export-scope em { display: block; font-style: normal; font-size: 12px; color: #64748B; margin-top: 2px; }
.wq-export-formats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.wq-export-formats button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 14px 8px 12px; border: 1px solid #E2E8F0; border-radius: 14px;
    background: #fff; cursor: pointer; color: #334155;
}
.wq-export-formats button i { font-size: 22px; margin-bottom: 4px; }
.wq-export-formats button[data-wq-format="xlsx"] i { color: #059669; }
.wq-export-formats button[data-wq-format="pdf"] i { color: #DC2626; }
.wq-export-formats button[data-wq-format="csv"] i { color: #475569; }
.wq-export-formats button strong { font-size: 13px; }
.wq-export-formats button span { font-size: 11px; color: #94A3B8; }
.wq-export-formats button.is-on { border-color: #2F6BFF; background: #F5F8FF; box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.wq-export-error { margin: 12px 0 0; font-size: 13px; color: #DC2626; font-weight: 650; }
.wq-approve-btn.is-busy { opacity: .7; pointer-events: none; }

@media (max-width: 1199.98px) {
    .wq-kpi-grid { grid-template-columns: 1fr 1fr 1fr; }
    .wq-insights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) {
    .wq-kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .wq-kpi-grid, .wq-insights { grid-template-columns: 1fr; }
    .wq-approve-btn,
    .wq-settings-btn { width: 100%; justify-content: center; }
    .wq-lead { margin-left: 0; }
    .wq-filter-check { margin-left: 0; }
}

/* =========================================================
   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; }
}

/* Dönem kapanış checklist */
.pcl { padding: 20px 22px 24px; }
.pcl-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.pcl-score {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}
.pcl-score.ok { color: #047857; }
.pcl-score.wait { color: #b45309; }
.pcl-reviewed {
    font-size: 13px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 8px 12px;
}
.pcl-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pcl-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}
.pcl-item.ok { border-color: #a7f3d0; background: #f8fefb; }
.pcl-item.fail { border-color: #fecaca; background: #fff8f8; }
.pcl-item.skip { opacity: .72; }
.pcl-mark { font-size: 18px; }
.pcl-item.ok .pcl-mark { color: #059669; }
.pcl-item.fail .pcl-mark { color: #dc2626; }
.pcl-item.skip .pcl-mark { color: #94a3b8; }
.pcl-body { display: flex; flex-direction: column; gap: 2px; }
.pcl-body strong { font-size: 14px; }
.pcl-body span { font-size: 12.5px; color: #64748b; }
.pcl-go { font-size: 13px; font-weight: 650; white-space: nowrap; }
.pcl-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Öğrenme paneli */
.learn-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.learn-stats { display: flex; gap: 14px; font-size: 13px; color: #64748b; }
.learn-stats b { color: var(--ink); }
.learn-filters { display: flex; gap: 6px; }
.learn-filters a {
    font-size: 13px;
    font-weight: 650;
    padding: 6px 10px;
    border-radius: 8px;
    color: #475569;
    background: #f1f5f9;
    text-decoration: none;
}
.learn-filters a.active { background: #0f172a; color: #fff; }
.learn-card {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
}
.learn-card.is-close { border-color: #fdba74; background: #fffbeb; }
.learn-card.is-conflict { border-color: #fca5a5; }
.learn-card header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.learn-card header strong { display: block; }
.learn-card header code { font-size: 11px; color: #64748b; }
.learn-pill {
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 8px;
    background: #e2e8f0;
    color: #334155;
    white-space: nowrap;
}
.learn-pill.warn { background: #ffedd5; color: #9a3412; }
.learn-pill.ok { background: #d1fae5; color: #047857; }
.learn-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.learn-card li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
}
.learn-card li:first-child { border-top: 0; padding-top: 0; }
.learn-card li b { margin-right: 8px; }
.learn-card li small { display: block; color: #64748b; font-size: 12px; }
.learn-row-actions { display: flex; gap: 6px; }

/* ============ LUCA Fiş Aktarım ============ */
.luca-page { padding-bottom: 28px; }
.luca-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 13.5px;
}
.luca-banner p { margin: 2px 0 0; color: inherit; opacity: .88; }
.luca-banner .btn-close { margin-left: auto; }
.luca-banner-ico {
    width: 36px; height: 36px; border-radius: 11px;
    display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.luca-banner-ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.luca-banner-ok .luca-banner-ico { background: #d1fae5; color: #047857; }
.luca-banner-err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.luca-banner-err .luca-banner-ico { background: #fee2e2; color: #dc2626; }

.luca-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 28px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, #062E72 0%, #0B4DB8 48%, #1A6FE0 78%, #FF7A00 140%);
    border-radius: 22px;
    padding: 26px 28px;
    margin-bottom: 18px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(8, 61, 150, .28);
}
.luca-hero::before {
    content: "";
    position: absolute;
    right: -80px; top: -120px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255, 122, 0, .2);
}
.luca-hero::after {
    content: "";
    position: absolute;
    right: 120px; bottom: -140px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.luca-hero-main, .luca-hero-aside { position: relative; z-index: 1; }
.luca-hero-main { min-width: 0; flex: 1; }
.luca-hero-pills {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.luca-hero-pills span {
    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; backdrop-filter: blur(4px);
}
.luca-hero-pills span.is-accent {
    background: rgba(255, 122, 0, .28);
    border-color: rgba(255, 255, 255, .28);
}
.luca-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
}
.luca-hero p {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .82);
    max-width: 560px;
}
.luca-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.luca-hero-actions form { margin: 0; }
.luca-btn-light {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px; border-radius: 12px; border: 0;
    font-size: 13.5px; font-weight: 700; color: #083D96; background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    transition: transform .15s, box-shadow .15s;
}
.luca-btn-light:hover:not(:disabled) {
    color: #062E72; transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}
.luca-btn-light:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.luca-btn-glass {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px; border-radius: 12px;
    font-size: 13.5px; 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);
}
.luca-btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.luca-hero-aside {
    display: flex; flex-direction: column; gap: 10px;
    min-width: 240px;
}
.luca-hero-chip {
    display: flex; gap: 12px; align-items: center;
    padding: 12px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
}
.luca-hero-chip i {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .16); font-size: 16px;
}
.luca-hero-chip strong { display: block; font-size: 13px; }
.luca-hero-chip span { font-size: 12px; color: rgba(255, 255, 255, .75); }

.luca-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 1199.98px) { .luca-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .luca-kpi-grid { grid-template-columns: 1fr; } }
.luca-kpi {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 10px;
}
.luca-kpi.is-ok { border-color: #a7f3d0; background: linear-gradient(180deg, #f0fdf4, #fff); }
.luca-kpi.is-warn { border-color: #fdba74; background: linear-gradient(180deg, #fff7ed, #fff); }
.luca-kpi-top {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.luca-kpi-top span:first-child {
    font-size: 12px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em;
}
.luca-kpi-ico {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; font-size: 17px; color: #fff;
}
.luca-kpi-ico.blue { background: linear-gradient(135deg, #1A6FE0, #0B4DB8); box-shadow: 0 6px 14px rgba(11, 77, 184, .3); }
.luca-kpi-ico.amber { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 6px 14px rgba(217, 119, 6, .3); }
.luca-kpi-ico.teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); box-shadow: 0 6px 14px rgba(13, 148, 136, .3); }
.luca-kpi-ico.green { background: linear-gradient(135deg, #4ade80, #16a34a); box-shadow: 0 6px 14px rgba(22, 163, 74, .3); }
.luca-kpi-ico.red { background: linear-gradient(135deg, #f87171, #dc2626); box-shadow: 0 6px 14px rgba(220, 38, 38, .3); }
.luca-kpi-value {
    font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.luca-kpi-amount { font-size: 22px; }
.luca-kpi-foot { font-size: 12px; color: #94a3b8; margin-top: auto; }
.luca-kpi-foot b { color: #475569; }

.luca-skip {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
    color: #92400e;
}
.luca-skip-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.luca-skip-head i { font-size: 20px; color: #d97706; }
.luca-skip-head strong { display: block; font-size: 14px; }
.luca-skip-head span { font-size: 12.5px; color: #a16207; }
.luca-skip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.luca-skip li {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
    font-size: 13px; padding: 8px 10px; border-radius: 10px; background: #fff;
    border: 1px solid #fde68a;
}
.luca-skip code {
    font-size: 12px; font-weight: 700; color: #9a3412;
    background: #ffedd5; padding: 2px 8px; border-radius: 6px;
}

.luca-panel {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}
.luca-panel-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 12px; flex-wrap: wrap;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(180deg, #f8fafc, #fff);
}
.luca-panel-head h2 { margin: 0 0 2px; font-size: 16px; font-weight: 800; }
.luca-panel-head p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.luca-count {
    font-size: 12px; font-weight: 700; color: #083D96;
    background: #EEF4FF; border: 1px solid #B8CFFA;
    padding: 5px 10px; border-radius: 999px;
}

.luca-empty {
    text-align: center; padding: 52px 20px; color: var(--text-muted);
}
.luca-empty i { font-size: 36px; color: #93c5fd; }
.luca-empty h3 { margin: 10px 0 4px; font-size: 16px; color: var(--ink); }
.luca-empty p { margin: 0; font-size: 13px; }

.luca-table-wrap { overflow-x: auto; }
.luca-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.luca-table thead th {
    position: sticky; top: 0; z-index: 1;
    font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
    color: #64748b; background: #f8fafc;
    border-bottom: 1px solid var(--card-border);
    padding: 11px 14px; white-space: nowrap; font-weight: 700;
}
.luca-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.luca-row.odd { background: #fff; }
.luca-row.even { background: #f8fbff; }
.luca-row.is-start td { border-top: 1px solid #e8eef8; }
.luca-row:not(.is-start) td { padding-top: 7px; padding-bottom: 7px; }
.luca-row:hover { background: #EEF4FF; }
.luca-fis {
    display: inline-grid; place-items: center;
    min-width: 28px; height: 28px; padding: 0 8px;
    border-radius: 8px; font-weight: 800; font-size: 12.5px;
    color: #083D96; background: #EEF4FF; border: 1px solid #B8CFFA;
}
.luca-fis-dot {
    display: block; width: 7px; height: 7px; margin-left: 10px;
    border-radius: 50%; background: #c7d7f5;
}
.luca-date { color: #475569; font-variant-numeric: tabular-nums; white-space: nowrap; }
.luca-evrak {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; font-weight: 650; color: #334155;
    background: #f1f5f9; padding: 3px 8px; border-radius: 7px;
}
.luca-acc {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; font-weight: 700; color: #0B4DB8;
    background: #EEF4FF; border: 1px solid #DCE8FF;
    padding: 3px 8px; border-radius: 7px; white-space: nowrap;
}
.luca-desc { color: #334155; max-width: 280px; }
.luca-amt {
    font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650;
}
.luca-amt.is-debit { color: #0f766e; }
.luca-amt.is-credit { color: #b45309; }

.luca-exports { list-style: none; padding: 8px 12px 12px; margin: 0; }
.luca-exports li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 10px; border-radius: 12px;
}
.luca-exports li + li { border-top: 1px solid #f1f5f9; }
.luca-exports li:hover { background: #f8fafc; }
.luca-export-ico {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center;
    background: #ecfdf5; color: #047857; font-size: 18px;
    border: 1px solid #a7f3d0;
}
.luca-exports strong { display: block; font-size: 13.5px; }
.luca-exports span { font-size: 12px; color: #64748b; }
.luca-exports div { flex: 1; min-width: 0; }
.luca-dl {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 10px;
    font-size: 13px; font-weight: 700; text-decoration: none;
    color: #0B4DB8; background: #EEF4FF; border: 1px solid #B8CFFA;
}
.luca-dl:hover { background: #0B4DB8; color: #fff; border-color: #0B4DB8; }

@media (max-width: 767.98px) {
    .luca-hero { padding: 20px 18px; }
    .luca-hero h1 { font-size: 22px; }
    .luca-hero-aside { width: 100%; }
}

/* ============ Dashboard shortcuts + FX ticker ============ */
.dsh-kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991.98px) { .dsh-kpi-grid-3 { grid-template-columns: 1fr; } }

.dsh-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.dsh-short {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e8eef7;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dsh-short:hover {
    transform: translateY(-2px);
    border-color: var(--brand-line);
    box-shadow: 0 10px 24px rgba(11, 77, 184, .08);
    color: inherit;
}
.dsh-short-ico {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #1A6FE0, #0B4DB8);
    color: #fff;
    font-size: 18px;
    margin-bottom: 4px;
}
.dsh-short-ico.teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.dsh-short-ico.amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.dsh-short-ico.indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.dsh-short strong { font-size: 14.5px; font-weight: 800; color: #0f172a; }
.dsh-short small { font-size: 12px; color: #64748b; }

.fx-ticker {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.fx-ticker-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 118px;
    padding: 10px 14px;
    background: #f8fafc;
    border-right: 1px solid #eef2f7;
}
.fx-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #0B4DB8;
    background: #EEF4FF;
    border: 1px solid #B8CFFA;
}
.fx-date { font-size: 11px; color: #64748b; font-weight: 650; line-height: 1.3; }
.fx-hint { font-size: 10px; color: #94a3b8; font-weight: 600; }
.fx-nav {
    flex: 0 0 auto;
    width: 34px;
    border: 0;
    background: #fff;
    color: #334155;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.fx-nav:hover { background: #f8fafc; color: #0B4DB8; }
.fx-ticker-view {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: thin;
    touch-action: pan-x;
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.fx-ticker-view.is-dragging { cursor: grabbing; }
.fx-ticker-view::-webkit-scrollbar { height: 6px; }
.fx-ticker-view::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.fx-ticker-track {
    display: flex;
    width: max-content;
    user-select: none;
}
.fx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-right: 1px solid #eef2f7;
    white-space: nowrap;
}
.fx-flag {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #0B4DB8;
}
.fx-flag.eur { background: #1d4ed8; }
.fx-flag.gbp { background: #0f766e; }
.fx-flag.jpy { background: #dc2626; }
.fx-flag.xau { background: #b45309; }
.inv-status.cancel { background: #fee2e2; color: #b91c1c; }
.staff-tp-list {
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 8px;
}
.staff-tp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
}
.staff-tp-item:hover { background: #f8fafc; }
.staff-tp-item small { margin-left: auto; color: var(--text-muted); }
.fx-meta { display: flex; flex-direction: column; gap: 1px; }
.fx-pair { font-size: 12.5px; font-weight: 800; color: #0f172a; }
.fx-price { font-size: 13px; font-variant-numeric: tabular-nums; color: #334155; }
.fx-chg { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-chg.up { color: #15803d; }
.fx-chg.down { color: #b91c1c; }
.fx-chg.flat { color: #64748b; }

/* ============ Balmox page loader ============ */
.bx-loader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    background: radial-gradient(1200px 600px at 50% 20%, #0B4DB8 0%, #062E72 46%, #041E4D 100%);
    transition: transform .62s cubic-bezier(.22, 1, .36, 1), opacity .45s ease;
}
.bx-loader.is-out {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}
.bx-loader-card {
    width: min(420px, calc(100vw - 40px));
    padding: 36px 28px 28px;
    border-radius: 28px;
    background: rgba(8, 20, 48, .55);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    text-align: center;
    animation: bx-card-in .5s cubic-bezier(.22, 1, .36, 1) both;
}
.bx-loader-mark {
    width: 86px; height: 86px;
    margin: 0 auto 16px;
    border-radius: 22px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.bx-loader-mark img { width: 64px; height: auto; display: block; }
.bx-loader-word {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
}
.bx-loader-msg {
    margin-top: 8px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .78);
}
.bx-loader-bar {
    margin: 18px auto 0;
    width: 140px;
    height: 3px;
    border-radius: 99px;
    overflow: hidden;
    background: rgba(255, 255, 255, .16);
}
.bx-loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: inherit;
    background: #fff;
    animation: bx-bar 1.1s ease-in-out infinite;
}
@keyframes bx-card-in {
    from { opacity: 0; transform: translateY(28px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@keyframes bx-bar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

/* =========================================================
   Cari Takip + Çalışan formu — iş kuyruğu dili
   ========================================================= */
.ct-page { padding-bottom: 36px; }
.ct-filter-meta {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
    font-variant-numeric: tabular-nums;
}
.ct-table { min-width: 980px; }
.ct-party { display: flex; align-items: center; gap: 12px; }
.ct-avatar {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(160deg, #EEF4FF, #DBE7FF);
    color: #0B4DB8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}
.ct-avatar.lg {
    width: 56px; height: 56px;
    border-radius: 16px;
    font-size: 18px;
}
.ct-avatar.sm {
    width: 32px; height: 32px;
    border-radius: 9px;
    font-size: 12px;
}
.ct-amt-due { color: #C2410C; font-weight: 800; }
.ct-amt-ok { color: #047857; font-weight: 800; }
.ct-bar {
    margin-top: 6px;
    height: 5px;
    border-radius: 99px;
    background: #EEF2F7;
    overflow: hidden;
    width: 92px;
    margin-left: auto;
}
.ct-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1A6FE0, #0B4DB8);
}
.ct-hero { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.ct-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.ct-side { display: grid; gap: 16px; }
.ct-card {
    background: #fff;
    border: 1px solid #E4E9F2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    padding: 18px;
}
.ct-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.ct-card-head h2 {
    margin: 0 0 3px;
    font-size: 15.5px;
    font-weight: 800;
    color: #041E4D;
    letter-spacing: -.02em;
}
.ct-card-head p {
    margin: 0;
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.4;
}
.ct-form { display: grid; gap: 12px; }
.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ct-field { display: grid; gap: 6px; margin: 0; }
.ct-field > span {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .02em;
    color: #475569;
}
.ct-field input,
.ct-field select,
.st-pass input {
    height: 42px;
    width: 100%;
    border: 1px solid #D7DEEA;
    border-radius: 11px;
    padding: 0 12px;
    background: #FBFCFE;
    font-size: 14px;
    color: #0F172A;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ct-field input:focus,
.ct-field select:focus,
.st-pass input:focus {
    border-color: #0B4DB8;
    box-shadow: 0 0 0 3px rgba(11, 77, 184, .12);
    background: #fff;
}
.ct-input-wrap { position: relative; }
.ct-input-wrap em {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    font-weight: 800;
    color: #94A3B8;
}
.ct-input-wrap input { padding-left: 30px; }
.ct-submit { width: 100%; justify-content: center; height: 44px; }
.ct-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF7A00, #E56A00);
    color: #fff;
    font-weight: 750;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(229, 106, 0, .22);
}
.ct-ledger { padding: 18px 18px 8px; }
.ct-move {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid #F1F5F9;
}
.ct-move-ico {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 16px;
}
.ct-move.is-fee .ct-move-ico { background: #FFF7ED; color: #EA580C; }
.ct-move.is-pay .ct-move-ico { background: #ECFDF5; color: #059669; }
.ct-move-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.ct-move-top strong { color: #0F172A; font-size: 14px; }
.ct-move-top time { color: #94A3B8; font-size: 12px; font-variant-numeric: tabular-nums; }
.ct-move-body p {
    margin: 3px 0 8px;
    color: #64748B;
    font-size: 13px;
}
.ct-move-amt {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 14.5px;
}
.ct-move-amt.due { color: #C2410C; }
.ct-move-amt.ok { color: #047857; }

.st-page { max-width: 880px; padding-bottom: 48px; }
.st-form { display: grid; gap: 16px; }
.st-card {
    background: #fff;
    border: 1px solid #E4E9F2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    padding: 18px;
}
.st-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.st-card-head h2 {
    margin: 0 0 3px;
    font-size: 15.5px;
    font-weight: 800;
    color: #041E4D;
    letter-spacing: -.02em;
}
.st-card-head p {
    margin: 0;
    font-size: 12.5px;
    color: #64748B;
}
.st-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.st-pass { position: relative; }
.st-pass input { padding-right: 44px; }
.st-pass-toggle {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748B;
}
.st-pass-toggle:hover { background: #EEF4FF; color: #0B4DB8; }
.st-perms { display: grid; gap: 10px; }
.st-perm {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #E4E9F2;
    border-radius: 14px;
    background: #FBFCFE;
    cursor: pointer;
    position: relative;
}
.st-perm:hover { border-color: #B8CFFA; background: #F8FBFF; }
.st-perm:has(.st-perm-input:checked) {
    border-color: #0B4DB8;
    background: #EEF4FF;
    box-shadow: 0 0 0 3px rgba(11, 77, 184, .08);
}
.st-perm-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.st-perm-ico {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #0B4DB8;
    font-size: 17px;
    border: 1px solid #E4E9F2;
}
.st-perm-text { display: grid; gap: 2px; }
.st-perm-text strong { font-size: 14px; color: #041E4D; }
.st-perm-text small { color: #64748B; font-size: 12px; line-height: 1.35; }
.st-switch {
    width: 42px; height: 24px;
    border-radius: 999px;
    background: #D7DEEA;
    position: relative;
    flex-shrink: 0;
    transition: background .15s;
}
.st-switch::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .2);
    transition: transform .15s;
}
.st-perm-input:checked + .st-perm-ico + .st-perm-text + .st-switch { background: #0B4DB8; }
.st-perm-input:checked + .st-perm-ico + .st-perm-text + .st-switch::after { transform: translateX(18px); }
.st-assign-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.st-assign-tools .wq-filter-search { flex: 1 1 220px; }
.st-tp-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding: 2px;
}
.st-tp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #E4E9F2;
    border-radius: 12px;
    background: #FBFCFE;
    cursor: pointer;
    position: relative;
}
.st-tp-item:hover { border-color: #B8CFFA; background: #F8FBFF; }
.st-tp-item:has(input:checked) {
    border-color: #0B4DB8;
    background: #EEF4FF;
}
.st-tp-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.st-tp-meta { min-width: 0; display: grid; gap: 1px; }
.st-tp-meta strong {
    font-size: 13.5px;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-tp-meta small { color: #94A3B8; font-size: 12px; }
.st-tp-check { margin-left: auto; color: #94A3B8; }
.st-tp-item:has(input:checked) .st-tp-check { color: #0B4DB8; }
.st-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.st-danger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px dashed #FECACA;
    border-radius: 14px;
    background: #FFF7F7;
}
.st-danger strong { display: block; color: #991B1B; font-size: 14px; }
.st-danger p { margin: 2px 0 0; color: #B91C1C; font-size: 12.5px; }
.st-danger-btn {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #FECACA;
    border-radius: 10px;
    background: #fff;
    color: #B91C1C;
    font-weight: 700;
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .ct-grid { grid-template-columns: 1fr; }
    .st-tp-list { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .ct-form-row,
    .st-fields { grid-template-columns: 1fr; }
    .ct-hero { flex-direction: column; }
    .ct-hero-actions { width: 100%; }
    .ct-hero-actions .wq-review { flex: 1; justify-content: center; }
    .st-footer { flex-direction: column-reverse; }
    .st-footer .wq-approve-btn,
    .st-footer .wq-review { width: 100%; justify-content: center; }
}

/* Hızlı erişim — compact launcher */
body.qa-lock { overflow: hidden; }
.qa-panel {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 16px;
    padding: 12px 12px 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    min-width: 0;
}
.qa-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    padding: 2px 4px 8px;
    border-bottom: 1px solid #f1f5f9;
}
.qa-head h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: #0f172a; }
.qa-head p { margin: 2px 0 0; font-size: 12px; color: #94a3b8; font-weight: 600; }
.qa-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0B4DB8;
    font-size: 16px;
    font-weight: 750;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.qa-plus:hover { background: #eef4ff; color: #083D96; border-color: #c7d7f5; }
.qa-plus i { margin: 0; }
.qa-grid { display: flex; flex-direction: column; gap: 6px; }
.qa-tile {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #e8eef6;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
a.qa-tile:hover { background: #f8fbff; border-color: #c7d7f5; box-shadow: 0 6px 14px rgba(15, 23, 42, .05); color: #0f172a; transform: translateY(-1px); }
a.qa-tile:hover .qa-go { color: #0B4DB8; }
.qa-tile strong { font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.qa-tile small { display: block; font-size: 12px; color: #0B4DB8; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.qa-tile .qa-copy { flex: 1; min-width: 0; }
.qa-go { color: #94a3b8; font-size: 14px; flex: 0 0 auto; transition: color .15s; }
.qa-ico {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: grid; place-items: center;
    margin: 0;
    font-size: 14px;
    color: #fff;
    background: #0B4DB8;
    flex: 0 0 auto;
}
.qa-tile.tone-teal .qa-ico, .qa-ico.tone-teal { background: #0d9488; }
.qa-tile.tone-amber .qa-ico, .qa-ico.tone-amber { background: #d97706; }
.qa-tile.tone-indigo .qa-ico, .qa-ico.tone-indigo { background: #4f46e5; }
.qa-tile.tone-green .qa-ico, .qa-ico.tone-green { background: #15803d; }
.qa-tile.tone-red .qa-ico, .qa-ico.tone-red { background: #dc2626; }
.qa-tile.tone-slate .qa-ico, .qa-ico.tone-slate { background: #475569; }
.qa-unpin {
    position: static;
    width: 22px; height: 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    display: grid;
    place-items: center;
    font-size: 13px;
    opacity: 0;
    cursor: pointer;
    flex: 0 0 auto;
}
.qa-unpin:hover { background: #fee2e2; color: #b91c1c; }
.qa-tile:hover .qa-unpin { opacity: 1; }
@media (hover: none) { .qa-unpin { opacity: .7; } }
.qa-add {
    border-style: dashed;
    background: #fafbfc;
    cursor: pointer;
    color: #64748b;
    min-height: 44px;
    box-shadow: none;
}
.qa-add .qa-copy small { color: #94a3b8; }
.qa-add .qa-ico { background: #e2e8f0; color: #334155; }
.qa-add:hover { border-color: #0B4DB8; color: #0B4DB8; background: #fff; }
.qa-overlay {
    position: fixed; inset: 0; z-index: 4200;
    background: rgba(15, 23, 42, .42);
    display: grid; place-items: center;
    padding: 18px;
}
.qa-modal {
    width: min(640px, 100%);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
    overflow: hidden;
}
.qa-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 8px;
}
.qa-modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.qa-modal-head p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.qa-x {
    width: 36px; height: 36px; border: 0; border-radius: 10px;
    background: #f1f5f9; color: #334155;
    cursor: pointer;
}
.qa-search {
    display: block;
    width: calc(100% - 40px);
    margin: 8px 20px 12px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
}
.qa-picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding: 0 20px 8px;
}
.qa-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #e8eef6;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.qa-pick:hover { border-color: #c7d7f5; background: #f8fbff; }
.qa-pick small { display: block; color: #64748b; font-size: 11.5px; }
.qa-pick .qa-ico { width: 32px; height: 32px; margin: 0; font-size: 14px; }
.qa-pick > i { margin-left: auto; color: #cbd5e1; font-size: 18px; }
.qa-pick.is-on { border-color: #0B4DB8; background: #f5f8ff; }
.qa-pick.is-on > i { color: #0B4DB8; }
.qa-modal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 18px;
    border-top: 1px solid #eef2f7;
}
.qa-count { font-size: 12.5px; color: #64748b; font-weight: 650; }
.qa-modal-actions { display: flex; gap: 8px; }
.qa-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 11px;
    font-weight: 750;
    font-size: 13px;
}
.qa-btn.ghost { border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.qa-btn.primary { border: 0; background: #0B4DB8; color: #fff; }
@media (max-width: 640px) {
    .qa-picks { grid-template-columns: 1fr; }
}

/* =========================================================
   Referans dashboard 2026
   ========================================================= */
.topbar-left { flex: 1; min-width: 0; }
.topbar-search {
    position: relative;
    flex: 1;
    max-width: 640px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #E6EDF5;
    border-radius: 999px;
    color: #94a3b8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.topbar-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13.5px;
    color: #0f172a;
}
.topbar-search-drop {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #E8EEF6;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    padding: 8px;
    z-index: 40;
}
.topbar-search-drop a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}
.topbar-search-drop a small { display: block; font-weight: 600; color: #64748b; }
.topbar-search-drop a:hover { background: #F5F8FF; }
.topbar-icon-btn {
    width: 38px; height: 38px;
    border: 1px solid #E6EDF5;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    display: grid; place-items: center;
}
.topbar-icon-btn:hover { color: #0B4DB8; border-color: #C7D7F5; }
.topbar-bell-wrap { position: relative; }
.topbar-drop {
    position: absolute;
    right: 0; top: calc(100% + 8px);
    width: 280px;
    background: #fff;
    border: 1px solid #E8EEF6;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    padding: 12px;
    z-index: 40;
}
.topbar-drop strong { display: block; font-size: 13px; margin-bottom: 8px; }
.topbar-drop p { margin: 0 0 6px; font-size: 12.5px; color: #475569; }
.notes-trigger {
    height: 38px;
    border-radius: 999px;
    background: #EEF4FF;
    border-color: transparent;
}
.notes-badge { background: #3B82F6; }
.user-avatar { background: #EEF4FF; color: #0B4DB8; }
.sidebar-brand { justify-content: flex-start; padding: 22px 22px 10px; border-bottom: 0; }
.sidebar-brand-logo { max-width: 148px; }

.bx-home { display: flex; flex-direction: column; gap: 14px; }
.bx-hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.bx-hello { display: flex; gap: 12px; align-items: flex-start; }
.bx-sun { color: #F5B942; font-size: 28px; line-height: 1; margin-top: 18px; }
.bx-date { margin: 0 0 2px; font-size: 12px; color: #64748b; font-weight: 650; }
.bx-hello h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: #0f172a; }
.bx-summary { margin: 4px 0 0; font-size: 13.5px; color: #475569; }
.bx-acts { display: grid; grid-template-columns: repeat(4, minmax(120px, 150px)); gap: 10px; }
.bx-act {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    min-height: 86px; padding: 12px 14px;
    background: #fff; border: 1px solid #E8EEF6; border-radius: 16px;
    text-decoration: none; color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.bx-act i { font-size: 18px; color: #64748b; }
.bx-act strong { font-size: 13px; font-weight: 800; }
.bx-act small { font-size: 11.5px; color: #94a3b8; font-weight: 600; }
.bx-act.is-primary { background: #2F6BFF; border-color: transparent; color: #fff; box-shadow: 0 10px 20px rgba(47, 107, 255, .28); }
.bx-act.is-primary i, .bx-act.is-primary small { color: rgba(255,255,255,.8); }
.bx-act:hover { transform: translateY(-1px); }

.bx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bx-kpi, .bx-card {
    background: #fff;
    border: 1px solid #E8EEF6;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.bx-kpi { display: flex; align-items: flex-start; gap: 12px; padding: 16px; position: relative; min-height: 92px; }
.bx-kpi-ico {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; color: #fff; font-size: 18px; flex: 0 0 auto;
}
.bx-kpi-ico.blue { background: #3B82F6; }
.bx-kpi-ico.navy { background: #2563EB; }
.bx-kpi-ico.indigo { background: #8B5CF6; }
.bx-kpi-ico.amber { background: #F59E0B; }
.bx-kpi-copy span { display: block; font-size: 12.5px; color: #334155; font-weight: 700; }
.bx-kpi-copy b { display: block; font-size: 26px; letter-spacing: -.04em; line-height: 1.1; color: #0f172a; }
.bx-kpi-copy small { color: #64748b; font-size: 12px; font-weight: 600; }
.bx-delta {
    position: absolute; top: 14px; right: 14px;
    font-size: 11px; font-weight: 800; font-style: normal;
    padding: 2px 7px; border-radius: 999px;
}
.bx-delta.up { background: #FEE2E2; color: #DC2626; }
.bx-delta.down { background: #DCFCE7; color: #16A34A; }
.bx-spark { margin-left: auto; display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.bx-spark i { width: 5px; background: #93C5FD; border-radius: 99px; display: block; }

.bx-mid, .bx-low { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr); gap: 12px; align-items: stretch; }
.bx-fx-band { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: stretch; }
.bx-card { padding: 16px 18px; }
.bx-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bx-card h2, .bx-card h3 { margin: 0; font-size: 15px; font-weight: 800; }
.bx-card-head small { color: #94a3b8; font-size: 12px; }
.bx-link, .bx-text-btn { color: #2F6BFF; font-size: 13px; font-weight: 750; text-decoration: none; background: none; border: 0; }
.bx-muted { color: #94a3b8; font-size: 13px; margin: 0; }

.bx-fx { padding: 12px 14px 10px; min-width: 0; }
.bx-fx .bx-card-head { margin-bottom: 8px; }
.bx-fx-view {
    overflow: hidden;
    cursor: grab;
    touch-action: pan-x;
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.bx-fx-view::-webkit-scrollbar { display: none; }
.bx-fx-view.is-dragging { cursor: grabbing; }
.bx-fx-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 8px;
    user-select: none;
    will-change: transform;
}
.bx-fx-item {
    display: flex; gap: 8px; align-items: center;
    flex: 0 0 auto; min-width: 142px;
    background: #F8FAFC; border-radius: 12px; padding: 6px 10px;
    transition: background .35s ease;
}
.bx-fx-item.is-flash { background: #EEF4FF; }
.bx-fx-item span:not(.bx-fx-flag) { display: block; font-size: 10.5px; color: #64748b; font-weight: 700; }
.bx-fx-item b { display: block; font-size: 14px; color: #0f172a; line-height: 1.15; }
.bx-fx-item small { font-size: 10.5px; font-weight: 700; color: #16A34A; }
.bx-fx-item small.down { color: #DC2626; }
.bx-fx-flag {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff;
    background: #0B4DB8; overflow: hidden; flex: 0 0 auto; background-size: cover; background-position: center;
}
.bx-fx-flag.xau { background-color: #E39B11; background-image: none; letter-spacing: .02em; }
.bx-fx-flag.usd { background-image: url('../images/flags/us.svg'); background-color: #3C3B6E; font-size: 0; }
.bx-fx-flag.eur { background-image: url('../images/flags/eu.svg'); background-color: #003399; font-size: 0; }
.bx-fx-flag.gbp { background-image: url('../images/flags/gb.svg'); background-color: #012169; font-size: 0; }
.bx-fx-tools { display: flex; align-items: center; gap: 8px; }
.bx-icon-btn {
    width: 28px; height: 28px; border-radius: 8px;
    border: 1px solid #E8EEF6; background: #fff; color: #64748b;
    display: grid; place-items: center; padding: 0;
}
.bx-icon-btn:hover { color: #0B4DB8; border-color: #C7D7F5; }
.bx-icon-btn.is-busy i { animation: bx-spin .8s linear infinite; }
@keyframes bx-spin { to { transform: rotate(360deg); } }
.bx-cta {
    background: linear-gradient(180deg, #EEF4FF, #E8F0FF);
    border: 1px solid #D7E4FF;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: none;
}
.bx-cta-compact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
}
.bx-cta-compact h2 { font-size: 14px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.35; }
.bx-cta-compact .bx-cta-btn { align-self: flex-start; height: 36px; padding: 0 14px; font-size: 13px; }
.bx-cta-art { position: relative; width: 54px; height: 54px; margin-bottom: 10px; color: #2F6BFF; font-size: 42px; }
.bx-cta-art .ok {
    position: absolute; left: 28px; bottom: -2px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #22C55E; color: #fff; display: grid; place-items: center; font-size: 12px;
}
.bx-cta h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.bx-cta p { color: #64748b; font-size: 13px; margin: 0 0 14px; }
.bx-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 999px;
    background: #2F6BFF; color: #fff; font-weight: 750; text-decoration: none;
}

.bx-resume-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; }
.bx-resume-id { display: flex; gap: 10px; align-items: center; }
.bx-resume-ico {
    width: 40px; height: 40px; border-radius: 12px;
    background: #EEF4FF; color: #2F6BFF; display: grid; place-items: center;
}
.bx-resume-id strong { display: block; font-size: 16px; }
.bx-resume-id p { margin: 2px 0 0; color: #64748b; font-size: 13px; }
.bx-resume-bar span { display: block; height: 8px; background: #EEF2F7; border-radius: 99px; overflow: hidden; }
.bx-resume-bar i { display: block; height: 100%; background: #2F6BFF; }
.bx-resume-bar div { display: flex; justify-content: space-between; margin-top: 8px; color: #64748b; font-size: 12.5px; font-weight: 650; }

.bx-activity ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bx-activity li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: flex-start; }
.bx-activity li span {
    width: 36px; height: 36px; border-radius: 12px;
    display: grid; place-items: center; font-size: 15px;
}
.bx-activity li span.tone-blue { background: #DBEAFE; color: #1D4ED8; }
.bx-activity li span.tone-green { background: #DCFCE7; color: #15803D; }
.bx-activity li span.tone-indigo { background: #E0E7FF; color: #4338CA; }
.bx-activity li span.tone-orange { background: #FFEDD5; color: #C2410C; }
.bx-activity li span.tone-slate { background: #F1F5F9; color: #475569; }
.bx-activity strong { display: block; font-size: 13px; }
.bx-activity small { display: block; color: #94a3b8; font-size: 12px; }
.bx-activity time { color: #94a3b8; font-size: 11.5px; white-space: nowrap; }

.qa-panel { padding: 16px 18px; }
.qa-head { border-bottom: 0; padding: 0 0 12px; }
.qa-head p { display: block; margin: 2px 0 0; font-size: 12.5px; color: #94a3b8; font-weight: 600; }
.qa-edit {
    height: 32px; padding: 0 12px; border-radius: 999px;
    border: 1px solid #E2E8F0; background: #fff; color: #334155;
    font-size: 12.5px; font-weight: 750; cursor: pointer;
}
.qa-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.qa-tile {
    flex-direction: column; align-items: flex-start; gap: 8px;
    min-height: 108px; padding: 14px 12px;
    border-radius: 16px; box-shadow: none;
}
.qa-tile strong { font-size: 13px; }
.qa-tile small { color: #94a3b8; font-weight: 650; }
.qa-ico { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
.qa-tile.tone-green .qa-ico { background: #22C55E; }
.qa-tile.tone-purple .qa-ico { background: #A855F7; }
.qa-tile.tone-orange .qa-ico { background: #F97316; }
.qa-tile.tone-amber .qa-ico { background: #F59E0B; }
.qa-go, .qa-unpin { display: none; }

.bx-status { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 12px; }
.bx-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.bx-stat-ico {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; font-size: 18px; flex: 0 0 auto;
}
.bx-stat-ico.teal { background: #ECFDF5; color: #0D9488; }
.bx-stat-ico.amber { background: #FFFBEB; color: #D97706; }
.bx-stat-ico.slate { background: #F1F5F9; color: #475569; }
.bx-stat h3 { font-size: 13.5px; margin: 0 0 2px; }
.bx-stat p { margin: 0; font-size: 12.5px; color: #64748b; display: flex; align-items: center; gap: 6px; }
.bx-stat .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.bx-stat .dot.ok { background: #22C55E; }
.bx-stat .dot.warn { background: #F59E0B; }
.bx-stat .bx-link { margin-left: auto; }
.bx-stat-storage { }
.bx-storage-meter { margin-left: auto; min-width: 72px; text-align: right; }
.bx-storage-meter b { display: block; font-size: 18px; letter-spacing: -.03em; color: #0f172a; }
.bx-storage-meter span { display: block; height: 6px; background: #EEF2F7; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bx-storage-meter i { display: block; height: 100%; background: #2F6BFF; }

@media (max-width: 1199.98px) {
    .bx-acts { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
    .qa-grid { grid-template-columns: repeat(3, 1fr); }
    .bx-fx-band { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .bx-mid, .bx-low, .bx-status, .bx-kpis { grid-template-columns: 1fr 1fr; }
    .bx-hero { flex-direction: column; }
    .bx-acts { width: 100%; }
}
@media (max-width: 767.98px) {
    .bx-kpis, .bx-mid, .bx-low, .bx-status, .qa-grid { grid-template-columns: 1fr; }
    .bx-acts { grid-template-columns: 1fr 1fr; }
    .bx-hello h1 { font-size: 22px; }
    .topbar-search { max-width: none; }
}

/* ============ Yeni / düzenle mükellef ============ */
.tpc-page { max-width: 880px; padding-bottom: 48px; }
.tpc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.tpc-head-text { min-width: 0; flex: 1 1 280px; }
.tpc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0B4DB8;
}
.tpc-head h1 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0B1B3A;
}
.tpc-head p {
    margin: 0;
    max-width: 58ch;
    color: #64748B;
    font-size: 13.5px;
    line-height: 1.5;
}
.tpc-form { display: grid; gap: 16px; }
.tpc-fields { grid-template-columns: 1fr 1fr; }
.tpc-span-2 { grid-column: 1 / -1; }
.ct-field textarea {
    width: 100%;
    min-height: 72px;
    border: 1px solid #D7DEEA;
    border-radius: 11px;
    padding: 10px 12px;
    background: #FBFCFE;
    font-size: 14px;
    color: #0F172A;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ct-field textarea:focus,
.ct-field input.tpc-filled,
.ct-field textarea.tpc-filled {
    border-color: #0B4DB8;
    box-shadow: 0 0 0 3px rgba(11, 77, 184, .12);
    background: #fff;
}
.tpc-error {
    font-style: normal;
    font-size: 12px;
    font-weight: 650;
    color: #B91C1C;
}
.tpc-lookup-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.tpc-lookup-row input { flex: 1 1 auto; min-width: 0; }
.tpc-lookup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 11px;
    background: #0B4DB8;
    color: #fff;
    font-weight: 750;
    font-size: 13px;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(11, 77, 184, .22);
    cursor: pointer;
}
.tpc-lookup-btn:hover:not(:disabled) { background: #083D96; }
.tpc-lookup-btn:disabled { opacity: .7; cursor: wait; }
.tpc-lookup-msg {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.4;
}
.tpc-lookup-msg.is-ok { color: #047857; }
.tpc-lookup-msg.is-bad { color: #B91C1C; }
.tpc-lookup-msg.is-muted { color: #64748B; }
.tpc-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tpc-type {
    margin: 0;
    cursor: pointer;
}
.tpc-type input { position: absolute; opacity: 0; pointer-events: none; }
.tpc-type strong {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #E4E9F2;
    border-radius: 999px;
    background: #FBFCFE;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}
.tpc-type:hover strong { border-color: #B8CFFA; color: #0B4DB8; }
.tpc-type:has(input:checked) strong {
    border-color: #0B4DB8;
    background: #EEF4FF;
    color: #0B4DB8;
    box-shadow: 0 0 0 3px rgba(11, 77, 184, .08);
}
.tpc-acts { display: grid; gap: 10px; }
@media (max-width: 575.98px) {
    .tpc-fields { grid-template-columns: 1fr; }
    .tpc-lookup-row { flex-direction: column; }
    .tpc-lookup-btn { width: 100%; }
}


