/* Gürleşin Site Yönetimi — tema (logo renkleri: gece laciverti + altın) */
:root {
    --navy-950: #060c18;
    --navy-900: #0b1528;
    --navy-800: #13223f;
    --navy-700: #1c2f55;
    --gold: #c9a45c;
    --gold-500: #b08a42;
    --gold-300: #e2c98f;
    --gold-100: #f8f1e0;
    --ink: #16213a;
    --muted: #6b7890;
    --line: #e5e9f0;
    --bg: #f2f4f8;
    --success: #13805d;
    --success-bg: #e2f4ec;
    --danger: #c0392b;
    --danger-bg: #fdecea;
    --warning: #9a6400;
    --warning-bg: #fff3d6;
    --info: #1d5fa8;
    --info-bg: #e6eff9;
    --sidebar-w: 268px;

    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);
    --bs-primary: #13223f;
    --bs-primary-rgb: 19, 34, 63;
    --bs-link-color: #1c2f55;
    --bs-link-color-rgb: 28, 47, 85;
    --bs-link-hover-color: var(--gold-500);
    --bs-link-hover-color-rgb: 176, 138, 66;
    --bs-border-color: var(--line);
    --bs-border-radius: 10px;
    --bs-secondary-color: var(--muted);
}

body { background: var(--bg); font-size: .925rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
::selection { background: var(--gold-300); }

/* ---------------------------------------------------------------- Yan menü */
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040;
    background: radial-gradient(120% 60% at 0% 0%, #142645 0%, transparent 60%), linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
    color: #b9c3d6; display: flex; flex-direction: column;
    transition: transform .25s ease; box-shadow: 4px 0 24px rgba(6, 12, 24, .18);
}
.sidebar-brand { padding: 18px 22px 6px; text-align: center; }
.sidebar-brand img { max-width: 150px; width: 100%; height: auto; filter: drop-shadow(0 4px 14px rgba(201, 164, 92, .15)); }
.site-chip {
    margin: 8px 16px 6px; padding: 10px 12px; border-radius: 12px;
    border: 1px solid rgba(201, 164, 92, .28); background: rgba(255, 255, 255, .03);
    display: flex; align-items: center; gap: 10px; color: #fff;
}
.site-chip .chip-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(201, 164, 92, .15); color: var(--gold-300); flex-shrink: 0; }
.site-chip .chip-name { font-weight: 600; font-size: .86rem; line-height: 1.2; }
.site-chip .chip-sub { font-size: .72rem; color: #8d99b0; }
.site-chip .dropdown-toggle { color: var(--gold-300); padding: 2px 4px; }
.site-chip .dropdown-toggle::after { display: none; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px 16px; scrollbar-width: thin; scrollbar-color: #24375e transparent; }
.nav-section { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: #6f7e99; font-weight: 600; padding: 12px 12px 4px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 11px; padding: 7px 12px; margin: 1px 0;
    border-radius: 10px; color: #b9c3d6; font-weight: 500; font-size: .875rem; position: relative;
    transition: background .15s, color .15s;
}
.sidebar-nav a i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .85; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.sidebar-nav a.active { background: linear-gradient(90deg, rgba(201, 164, 92, .24), rgba(201, 164, 92, .04)); color: #fff; }
.sidebar-nav a.active i { color: var(--gold-300); opacity: 1; }
.sidebar-nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.sidebar-nav .nav-badge { margin-left: auto; background: var(--gold); color: var(--navy-900); font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }

.sidebar-user { border-top: 1px solid rgba(255, 255, 255, .06); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.avatar {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-900); font-weight: 700; font-size: .85rem;
}
.sidebar-user .name { color: #fff; font-weight: 600; font-size: .85rem; line-height: 1.2; }
.sidebar-user .role { color: #7f8ca5; font-size: .72rem; }
.sidebar-user .btn-icon { color: #8d99b0; margin-left: auto; }
.sidebar-user .btn-icon:hover { color: var(--gold-300); }

.sidebar-backdrop { display: none; }

/* ---------------------------------------------------------------- Ana alan */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 1030; height: 64px; padding: 0 28px;
    display: flex; align-items: center; gap: 14px;
    background: rgba(242, 244, 248, .82); backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar .crumb { color: var(--muted); font-size: .85rem; }
.topbar .crumb strong { color: var(--ink); font-weight: 600; }
.topbar .menu-toggle { display: none; }
.content { padding: 26px 28px 48px; flex: 1; }
.content > h1, .content .page-title, .content h1.h4 { font-weight: 700; letter-spacing: -.01em; color: var(--navy-900); }
.content h1.h4 { font-size: 1.45rem; }
.footer { padding: 16px 28px; color: #9aa5b8; font-size: .78rem; }

/* ---------------------------------------------------------------- Kartlar */
.card {
    border: 1px solid var(--line); border-radius: 16px; background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px -8px rgba(16, 24, 40, .08);
    overflow: hidden;
}
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: .9rem 1.15rem; font-size: .92rem; }
.card-header strong { font-weight: 600; color: var(--navy-900); }
.card-body { padding: 1.15rem 1.25rem; }
.card-footer { background: #fafbfd; border-top: 1px solid var(--line); padding: .8rem 1.15rem; }
a.card { transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -10px rgba(16, 24, 40, .22); }

/* İstatistik kartları */
.stat { padding: 1.15rem 1.25rem; display: flex; align-items: center; gap: 1rem; height: 100%; }
.stat-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.ic-gold { background: var(--gold-100); color: var(--gold-500); }
.ic-red { background: var(--danger-bg); color: var(--danger); }
.ic-green { background: var(--success-bg); color: var(--success); }
.ic-navy { background: #e6ebf5; color: var(--navy-800); }
.ic-blue { background: var(--info-bg); color: var(--info); }
.stat .label { color: var(--muted); font-size: .8rem; font-weight: 500; }
.stat .value { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--navy-900); }
.stat small { color: var(--muted); font-size: .75rem; }

.hero-card {
    border: 0; color: #fff; position: relative;
    background: radial-gradient(90% 120% at 100% 0%, rgba(201, 164, 92, .35) 0%, transparent 55%), linear-gradient(135deg, var(--navy-800), var(--navy-950));
}
.hero-card .label { color: #aab5ca; }
.hero-card .value { color: #fff; font-size: 1.9rem; }
.hero-card .gold { color: var(--gold-300); }
.hero-card .stat-icon { background: rgba(201, 164, 92, .18); color: var(--gold-300); }

/* ---------------------------------------------------------------- Tablolar */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: #fbf8f1; --bs-table-striped-bg: #fafbfd; margin-bottom: 0; color: var(--ink); }
.table > :not(caption) > * > * { padding: .8rem 1rem; border-bottom-color: #eef1f6; vertical-align: middle; }
.table-sm > :not(caption) > * > * { padding: .6rem .9rem; }
.table thead th, .table .table-light th, .table-light > tr > th {
    background: #f7f9fc !important; color: #6b7890; font-size: .7rem; text-transform: uppercase;
    letter-spacing: .07em; font-weight: 600; border-bottom: 1px solid var(--line) !important; white-space: nowrap;
}
.table tfoot th, .table tfoot td, .table tfoot.table-light > tr > * { background: #f7f9fc !important; color: var(--navy-900); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .875rem; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table-hover > tbody > tr { transition: background .12s; }
.table a { font-weight: 500; }
.table-secondary > * { --bs-table-bg: #f3f5f9 !important; }
.table-warning > * { --bs-table-bg: #fff8e6 !important; }
.table-primary > * { --bs-table-bg: #eef2fa !important; }
.amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-responsive { border-radius: inherit; }

/* ---------------------------------------------------------------- Butonlar */
.btn { border-radius: 10px; font-weight: 500; padding: .52rem 1rem; transition: all .15s; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-sm { border-radius: 9px; padding: .38rem .8rem; font-size: .82rem; }
.btn-lg { border-radius: 12px; padding: .75rem 1.4rem; }
.btn.w-100 { display: flex; }
.btn-link { padding: 0; }
.btn-primary {
    --bs-btn-bg: var(--navy-800); --bs-btn-border-color: var(--navy-800); --bs-btn-hover-bg: var(--navy-700); --bs-btn-hover-border-color: var(--navy-700);
    --bs-btn-active-bg: var(--navy-900); --bs-btn-active-border-color: var(--navy-900); --bs-btn-disabled-bg: var(--navy-700); --bs-btn-disabled-border-color: var(--navy-700);
    box-shadow: 0 4px 12px -4px rgba(19, 34, 63, .45);
}
.btn-gold {
    --bs-btn-color: var(--navy-900); --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold);
    --bs-btn-hover-color: var(--navy-900); --bs-btn-hover-bg: var(--gold-300); --bs-btn-hover-border-color: var(--gold-300);
    --bs-btn-active-bg: var(--gold-500); --bs-btn-active-border-color: var(--gold-500); --bs-btn-active-color: #fff;
    box-shadow: 0 4px 14px -4px rgba(176, 138, 66, .55); font-weight: 600;
}
.btn-success {
    --bs-btn-bg: var(--success); --bs-btn-border-color: var(--success); --bs-btn-hover-bg: #0f6b4d; --bs-btn-hover-border-color: #0f6b4d;
    --bs-btn-active-bg: #0c5a41; box-shadow: 0 4px 12px -4px rgba(19, 128, 93, .45);
}
.btn-danger {
    --bs-btn-bg: var(--danger); --bs-btn-border-color: var(--danger); --bs-btn-hover-bg: #a93226; --bs-btn-hover-border-color: #a93226;
    box-shadow: 0 4px 12px -4px rgba(192, 57, 43, .4);
}
.btn-outline-primary {
    --bs-btn-color: var(--navy-800); --bs-btn-border-color: #cdd5e3; --bs-btn-bg: #fff;
    --bs-btn-hover-bg: var(--navy-800); --bs-btn-hover-border-color: var(--navy-800); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--navy-800); --bs-btn-active-border-color: var(--navy-800);
}
.btn-outline-secondary {
    --bs-btn-color: #3b4862; --bs-btn-border-color: #d7dde8; --bs-btn-bg: #fff;
    --bs-btn-hover-bg: #f3f5f9; --bs-btn-hover-color: var(--navy-900); --bs-btn-hover-border-color: #c3cbda;
    --bs-btn-active-bg: #e9edf4; --bs-btn-active-color: var(--navy-900); --bs-btn-active-border-color: #c3cbda;
}
.btn-outline-danger { --bs-btn-color: var(--danger); --bs-btn-border-color: #f1c6c1; --bs-btn-bg: #fff; --bs-btn-hover-bg: var(--danger); --bs-btn-hover-border-color: var(--danger); }
.btn-outline-success { --bs-btn-color: var(--success); --bs-btn-border-color: #bfe3d4; --bs-btn-bg: #fff; --bs-btn-hover-bg: var(--success); --bs-btn-hover-border-color: var(--success); }
.btn-info, .btn-warning { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; }
.btn-info { --bs-btn-bg: var(--info); --bs-btn-border-color: var(--info); --bs-btn-hover-bg: #174d89; }
.btn-warning { --bs-btn-bg: #d89a1c; --bs-btn-border-color: #d89a1c; --bs-btn-hover-bg: #bf8513; --bs-btn-hover-border-color: #bf8513; }
.btn-group > .btn { box-shadow: none; }
.btn-group .btn.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-icon-only { width: 34px; height: 34px; padding: 0; border-radius: 9px; }

/* ---------------------------------------------------------------- Rozetler */
.badge { font-weight: 600; border-radius: 999px; padding: .42em .78em; font-size: .72rem; letter-spacing: .01em; }
.text-bg-danger { background: var(--danger-bg) !important; color: var(--danger) !important; }
.text-bg-success { background: var(--success-bg) !important; color: var(--success) !important; }
.text-bg-warning { background: var(--warning-bg) !important; color: var(--warning) !important; }
.text-bg-info { background: var(--info-bg) !important; color: var(--info) !important; }
.text-bg-secondary { background: #eef1f6 !important; color: #5a6680 !important; }
.text-bg-primary { background: #e6ebf5 !important; color: var(--navy-800) !important; }
.text-bg-light { background: #f3f5f9 !important; color: #3b4862 !important; border: 1px solid var(--line) !important; }
.text-bg-dark { background: var(--navy-900) !important; color: var(--gold-300) !important; }

/* ---------------------------------------------------------------- Formlar */
.form-control, .form-select { border-radius: 10px; border-color: #dbe1ea; padding: .55rem .85rem; background-color: #fff; font-size: .9rem; }
.form-control-sm, .form-select-sm { border-radius: 9px; padding: .38rem .7rem; font-size: .84rem; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .22rem rgba(201, 164, 92, .18); }
.form-label { font-weight: 500; font-size: .84rem; color: #3b4862; margin-bottom: .35rem; }
.form-text { color: var(--muted); font-size: .78rem; }
.form-check-input:checked { background-color: var(--navy-800); border-color: var(--navy-800); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(201, 164, 92, .2); border-color: var(--gold); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #97a3b8; }
.input-icon .form-control { padding-left: 2.4rem; }

/* ---------------------------------------------------------------- Aramalı açılır kutu (Tom Select) */
/* Çerçeve dış kutuda (form-select sınıfını taşır), iç kutu saydamdır */
.ts-wrapper.form-select { border: 1px solid #dbe1ea; border-radius: 10px; background-color: #fff; cursor: pointer; }
.ts-wrapper.form-select-sm { border-radius: 9px; }
.ts-wrapper.form-select.focus { border-color: var(--gold) !important; box-shadow: 0 0 0 .22rem rgba(201, 164, 92, .18) !important; }
.ts-wrapper .ts-control, .ts-wrapper.single.input-active .ts-control { background: transparent !important; font-size: inherit; padding-right: 2.1rem !important; flex-wrap: nowrap; overflow: hidden; }
.ts-wrapper.is-typing .ts-control .item { display: none; }
.ts-wrapper.focus .ts-control { box-shadow: none !important; }
.ts-wrapper .ts-control > input { font-size: inherit; }
.ts-wrapper.single .ts-control .item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ts-dropdown {
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .28);
    margin-top: 6px; padding: 4px; font-size: .88rem; z-index: 1060;
}
.ts-dropdown .ts-dropdown-content { max-height: 280px; }
.ts-dropdown .option { border-radius: 8px; padding: .5rem .75rem; }
.ts-dropdown .active { background: #f5efe1; color: var(--navy-900); }
.ts-dropdown .selected { background: var(--navy-800); color: #fff; }
.ts-dropdown .highlight { background: rgba(201, 164, 92, .35); border-radius: 3px; }
.ts-dropdown .no-results { padding: .6rem .75rem; color: var(--muted); }
.row-actions .ts-wrapper.unit-select { width: 260px; }

/* ---------------------------------------------------------------- Ortak sayfa kalıbı */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; margin-bottom: 1.25rem; }
.page-back { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.page-back:hover { color: var(--gold-500); }
.page-title { font-weight: 700; letter-spacing: -.01em; color: var(--navy-900); font-size: 1.45rem; margin: 0; }
.page-sub { color: var(--muted); font-size: .84rem; margin-top: .2rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #fff; }
.list-toolbar form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.list-toolbar .form-control-sm, .list-toolbar .form-select-sm { width: auto; }
.list-toolbar .ts-wrapper { min-width: 170px; }
.list-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.list-search .form-control { padding-left: 2.2rem; padding-right: 2rem; width: 100% !important; }
.list-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: #f1f4f8; color: #8592a8; border: 1px solid var(--line); border-radius: 5px; font-size: .68rem; padding: 0 5px; box-shadow: none; }
.list-search .form-control:focus + kbd, .list-search .form-control:not(:placeholder-shown) + kbd { display: none; }
.list-count { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.list-count b { color: var(--navy-900); }
.search-empty td, .search-empty-box { text-align: center; color: var(--muted); padding: 1.6rem 1rem !important; }
.search-hit { background: rgba(201, 164, 92, .35); border-radius: 3px; }

.form-card { max-width: 760px; }
.monthly-table { font-size: .84rem; }
.monthly-table th { padding: .4rem .4rem !important; white-space: nowrap; }
.monthly-table td { padding: .2rem .3rem !important; line-height: 1.25; }
.monthly-table .form-control-sm, .monthly-table .form-select-sm { padding-top: .15rem; padding-bottom: .15rem; min-height: 0; height: 1.75rem; font-size: .8rem; }
.monthly-table .btn-sm { padding: .1rem .45rem; font-size: .76rem; }
.monthly-table .pick { width: 30px; text-align: center; }
.monthly-table .amount-in { min-width: 100px; }
.monthly-table .pick .form-check-input { margin: 0; cursor: pointer; }
.monthly-table .row-done > * { --bs-table-bg: #f4fbf7 !important; }
.monthly-table .row-picked > * { --bs-table-bg: var(--gold-100) !important; }
.monthly-table .row-section td { background: #fafbfd !important; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--navy-800); padding-top: .35rem !important; padding-bottom: .35rem !important; }
.monthly-table input[type=file] { font-size: .7rem; padding: .1rem .3rem; line-height: 1.4; }
.monthly-table input[type=file]::file-selector-button { padding: .1rem .4rem; }
.monthly-summary .sum-main td { font-weight: 700; color: var(--navy-900); }
.monthly-summary .sum-carry > * { --bs-table-bg: var(--gold-100) !important; font-weight: 700; color: var(--navy-900); }
.person-picker { display: flex; gap: .5rem; align-items: stretch; }
.person-picker > select, .person-picker > .ts-wrapper { flex: 1 1 auto; min-width: 0; }
.picker-box { border: 1px dashed var(--gold-300); background: #fdfaf3; border-radius: 12px; padding: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: .65rem 1rem; border-bottom: 1px solid var(--line); background: #fafbfd; }
.chip {
    border: 1px solid var(--line); background: #fff; color: #3b4862; border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: .4rem; transition: all .12s; cursor: pointer;
}
.chip:hover { border-color: var(--gold-300); }
.chip .chip-n { background: #eef1f6; color: #5a6680; border-radius: 999px; padding: 0 .45rem; font-size: .7rem; font-weight: 600; min-width: 1.4rem; text-align: center; }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip.active .chip-n { background: var(--gold); color: var(--navy-900); }
.act-group { display: inline-flex; gap: 4px; justify-content: flex-end; }
.act-group form { margin: 0; display: inline-flex; }
.act {
    width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0;
    border: 1px solid var(--line); background: #fff; color: #5a6680; font-size: .85rem; transition: all .12s; cursor: pointer;
}
.act:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.act-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
td.actions, th.actions { width: 1%; white-space: nowrap; text-align: right; }

/* ---------------------------------------------------------------- Duyurular */
.ann-section { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--navy-800); margin: 0 0 .75rem; display: flex; align-items: center; gap: .4rem; }
.ann-section i { color: var(--gold-500); }
.ann-section small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: .25rem; }
.ann-date {
    width: 56px; flex-shrink: 0; height: 60px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; line-height: 1;
}
.ann-date .day { font-size: 1.35rem; font-weight: 700; }
.ann-date .mon { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-300); margin-top: 4px; }
.ann-card.is-past { opacity: .78; }
.ann-card.is-past .ann-date { background: #e8ecf3; color: #5a6680; }
.ann-card.is-past .ann-date .mon { color: #8a96ab; }
.ann-excerpt { color: #3b4862; }

/* ---------------------------------------------------------------- Ekstre seçim penceresi */
.modal-content { border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 70px -20px rgba(6, 12, 24, .5); }
.modal-header, .modal-footer { border-color: var(--line); }
.st-pick { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 11px; margin-bottom: .4rem; cursor: pointer; transition: all .12s; }
.st-pick:hover { border-color: var(--gold-300); background: #fdfaf3; }
.st-pick:has(input:checked) { border-color: var(--gold); background: var(--gold-100); }
.st-pick .form-check-input { margin: 0; }
.btn-outline-secondary.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ---------------------------------------------------------------- Onay penceresi */
.modal-backdrop.show { opacity: .55; background: var(--navy-950); }
.confirm-modal .modal-dialog { max-width: 400px; }
.confirm-modal .modal-content { background: #fff; border: 0; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(6, 12, 24, .5); }
.confirm-modal .modal-body { padding: 2rem 1.75rem 1.5rem; }
.confirm-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; display: grid; place-items: center; font-size: 1.7rem;
    background: var(--gold-100); color: var(--gold-500); box-shadow: 0 0 0 8px rgba(201, 164, 92, .08);
}
.confirm-modal.is-danger .confirm-icon { background: var(--danger-bg); color: var(--danger); box-shadow: 0 0 0 8px rgba(192, 57, 43, .06); }
.confirm-title { font-weight: 700; color: var(--navy-900); font-size: 1.08rem; margin-bottom: .35rem; line-height: 1.4; }
.confirm-text { color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.confirm-actions .btn { padding: .65rem 1rem; }

/* ---------------------------------------------------------------- Uyarılar, sekmeler, listeler */
.alert { border: 0; border-radius: 12px; border-left: 4px solid; padding: .85rem 1.1rem; font-size: .88rem; }
.alert-success { background: var(--success-bg); color: #0e5e44; border-left-color: var(--success); }
.alert-danger { background: var(--danger-bg); color: #962d22; border-left-color: var(--danger); }
.alert-warning { background: var(--warning-bg); color: #7a5000; border-left-color: #d89a1c; }
.alert-info { background: var(--info-bg); color: #184f8c; border-left-color: var(--info); }
.alert-light, .alert-secondary { background: #fff; color: #3b4862; border: 1px solid var(--line); border-left: 4px solid var(--gold); }

.nav-tabs { border: 0; gap: 4px; background: #e8ecf3; padding: 4px; border-radius: 12px; display: inline-flex; flex-wrap: wrap; }
.nav-tabs .nav-link { border: 0; border-radius: 9px; color: #55627a; font-weight: 500; padding: .45rem .9rem; font-size: .86rem; }
.nav-tabs .nav-link:hover { color: var(--navy-900); }
.nav-tabs .nav-link.active { background: #fff; color: var(--navy-900); box-shadow: 0 1px 4px rgba(16, 24, 40, .1); }

.list-group-item { border-color: #eef1f6; padding: .8rem 1.15rem; }
.list-group-item.active { background: var(--navy-800); border-color: var(--navy-800); }
.list-group-item-action:hover { background: #fbf8f1; }
.card > .list-group:first-child .list-group-item:first-child, .card > .list-group-flush > .list-group-item:first-child { border-top: 0; }

.progress { background: #edf0f5; border-radius: 999px; }
.progress-bar { background: linear-gradient(90deg, var(--gold-500), var(--gold)); }
.progress-bar.bg-danger { background: linear-gradient(90deg, #e07a6f, var(--danger)) !important; }

.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .25); padding: 6px; font-size: .88rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--navy-800); }
.dropdown-item i { width: 18px; color: var(--muted); }

.text-pre { white-space: pre-line; }
.min-w-0 { min-width: 0; }
.text-gold { color: var(--gold-500) !important; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.2rem; color: #c3cbda; display: block; margin-bottom: .5rem; }

/* Adım kutuları (Excel aktarımı vb.) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 12px; }
.step .num { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-100); color: var(--gold-500); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.step b { color: var(--navy-900); font-weight: 600; }
.step p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }

/* ---------------------------------------------------------------- Giriş ekranı */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-art {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px; color: #c5cee0; text-align: center;
    background: radial-gradient(70% 55% at 50% 38%, rgba(201, 164, 92, .16) 0%, transparent 70%), linear-gradient(160deg, #0f1c36 0%, var(--navy-950) 70%);
}
.auth-art::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
    background-image: linear-gradient(rgba(201, 164, 92, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 164, 92, .08) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 70%);
}
.auth-art img { width: min(380px, 80%); position: relative; z-index: 1; filter: drop-shadow(0 10px 30px rgba(201, 164, 92, .18)); }
.auth-art .tagline { position: relative; z-index: 1; margin-top: 26px; max-width: 380px; font-size: .95rem; line-height: 1.6; }
.auth-art .tagline b { color: var(--gold-300); font-weight: 600; }
.auth-art .features { position: relative; z-index: 1; display: flex; gap: 18px; margin-top: 28px; font-size: .8rem; flex-wrap: wrap; justify-content: center; }
.auth-art .features span { display: inline-flex; gap: 6px; align-items: center; }
.auth-art .features i { color: var(--gold); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card-body { padding: 2.2rem; }
.auth-card h1 { font-weight: 700; color: var(--navy-900); font-size: 1.5rem; letter-spacing: -.01em; }
.auth-mobile-logo { display: none; }

.site-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; transition: all .15s; }
.site-option:hover { border-color: var(--gold); box-shadow: 0 8px 24px -12px rgba(176, 138, 66, .5); transform: translateY(-1px); }
.site-option .chip-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-500); font-size: 1.2rem; }

/* ---------------------------------------------------------------- Mobil */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(6, 12, 24, .5); z-index: 1035; }
    .main { margin-left: 0; }
    .topbar { padding: 0 16px; }
    .topbar .menu-toggle { display: inline-flex; }
    .content { padding: 18px 16px 40px; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-form { background: linear-gradient(180deg, var(--navy-900) 0, var(--navy-900) 210px, var(--bg) 210px); flex-direction: column; justify-content: flex-start; padding-top: 28px; }
    .auth-mobile-logo { display: block; width: 190px; margin: 0 auto 22px; }
}

@media print {
    .sidebar, .topbar, .no-print, .footer { display: none !important; }
    .main { margin: 0; }
    .content { padding: 0; }
    body { background: #fff; }
    .card { box-shadow: none; }
}

/* Banka hareketleri: eşleştirme */
.bank-table .row-open > * { --bs-table-bg: #fff6f5 !important; }
.bank-table.only-open tr.bt-row:not(.row-open) { display: none; }
.bank-table .match-cell { font-size: .84rem; line-height: 1.35; }
.bank-table .match-cell .badge { font-weight: 600; letter-spacing: .02em; }
.match-src { display: inline-block; margin-left: .25rem; padding: .05rem .45rem; border-radius: 999px; background: var(--gold-100); color: var(--navy-800); font-size: .7rem; white-space: nowrap; cursor: help; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.match-txn { background: #f7f8fb; border: 1px solid #e6e9f0; border-radius: .6rem; padding: .85rem 1rem; }
#mActions .btn { flex: 1 1 auto; }
#mActions .btn.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
body > .ts-dropdown { z-index: 2000; }

/* Daireler: blok sütunları */
.block-grid { display: grid; gap: 1rem; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .block-grid { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .block-grid { grid-template-columns: 1fr; } }
.block-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; flex-direction: column; gap: .85rem; }
.block-card:hover { border-color: var(--gold-300); box-shadow: 0 6px 18px rgba(11, 21, 40, .08); }
.block-card.active { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-100), 0 6px 18px rgba(11, 21, 40, .08); }
.block-head { display: flex; align-items: center; gap: .75rem; }
.block-letter { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: var(--gold-300); background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); flex: none; }
.block-open { font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }
.block-card:hover .block-open, .block-card.active .block-open { color: var(--navy-900); border-color: var(--gold-300); background: var(--gold-100); }
.block-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; }
.tile { display: inline-grid; place-items: center; height: 30px; min-width: 30px; border-radius: 7px; font-size: .75rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; font-style: normal; }
.tile-ok { background: var(--success-bg); color: var(--success); border-color: #bfe5d3; }
.tile-debt { background: var(--danger-bg); color: var(--danger); border-color: #f5c6c0; }
.tile-credit { background: var(--info-bg); color: var(--info); border-color: #c4d8ef; }
.tile-empty { background: #f3f4f7; color: #9aa3b5; border: 1px dashed #d3d8e2; }
a.tile:hover { filter: brightness(.95); outline: 2px solid var(--gold-300); }
.block-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.block-stats div { display: flex; flex-direction: column; }
.block-stats span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.block-stats b { font-size: .95rem; color: var(--ink); }
.block-rate .progress-bar { background: linear-gradient(90deg, var(--gold-500), var(--gold)); }
.tile-legend .tile { height: 12px; min-width: 12px; width: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 2px; }
.group-chip { border-radius: 999px; white-space: nowrap; }
.card { scroll-margin-top: 84px; } /* sabit üst çubuğun altında kalmasın */

/* Firma logosu / unvanı (Sistem → Firma Bilgileri) */
.logo-plate { display: inline-flex; background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.logo-plate img { filter: none !important; }
.brand-text { display: inline-block; font-weight: 800; letter-spacing: .02em; line-height: 1.2; color: var(--gold-300); font-size: 1.15rem; }
.sidebar-brand .brand-text { padding: 10px 0; }
.sidebar-brand .logo-plate img { max-width: 130px; }
.auth-art .brand-text { font-size: 2rem; position: relative; z-index: 1; }
.auth-art .logo-plate { position: relative; z-index: 1; padding: 16px 22px; }
.auth-mobile-logo img { width: 100%; }
.auth-mobile-logo .brand-text { color: var(--navy-900); font-size: 1.4rem; display: block; text-align: center; }
.logo-preview { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.logo-preview > div { min-height: 130px; display: grid; place-items: center; padding: 28px 14px 14px; position: relative; text-align: center; }
.logo-preview .lp-dark { background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); }
.logo-preview .lp-light { background: #fff; }
.logo-preview img { max-width: 100%; max-height: 80px; object-fit: contain; }
.logo-preview .lp-tag { position: absolute; top: 6px; left: 8px; font-size: .68rem; color: #9aa5b8; }
.logo-preview .lp-light .brand-text { color: var(--navy-900); }

/* Toplu seçim çubuğu */
.table .pick { width: 34px; text-align: center; }
.table .pick .form-check-input { margin: 0; cursor: pointer; }
.table .row-picked > * { --bs-table-bg: var(--gold-100) !important; }
.bulk-bar { position: fixed; left: calc(var(--sidebar-w) + 24px); right: 24px; bottom: 18px; z-index: 1030; display: none; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: 0 12px 30px rgba(6, 12, 24, .35); }
.bulk-bar.show { display: flex; }
.bulk-bar .btn-danger { margin-left: auto; }
@media (max-width: 991.98px) { .bulk-bar { left: 12px; right: 12px; } }
