/*!
 * BankaHub UI — tema (tema.md). Sayfaya özel CSS ve inline style yazılmaz; tüm stiller buradadır.
 */

/* ------------------------------------------------------------------ yazı tipi (Inter, yerel) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/inter/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/inter/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/inter/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/inter/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/inter/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/inter/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/inter/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/inter/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------------ token'lar (tema.md §3) */
:root {
    --k-primary: #1f4e79;
    --k-primary-hover: #173b5c;
    --k-primary-rgb: 31, 78, 121;
    --k-primary-soft: #e8eef5;
    --k-secondary: #6c757d;
    --k-success: #198754;
    --k-success-rgb: 25, 135, 84;
    --k-danger: #c0392b;
    --k-danger-rgb: 192, 57, 43;
    --k-warning: #e0a800;
    --k-warning-rgb: 224, 168, 0;
    --k-secondary-rgb: 108, 117, 125;
    --k-info: #0d6efd;
    --k-bg: #f4f6f9;
    --k-surface: #ffffff;
    --k-border: #dee2e6;
    --k-text: #212529;
    --k-muted: #6c757d;

    --k-sidebar-width: 250px;
    --k-sidebar-collapsed: 68px;
    --k-topbar-height: 56px;
    --k-sidebar-bg: #0f2a46;
    --k-sidebar-text: #e6edf5;
    --k-sidebar-icon: #7cc4f5;
    --k-sidebar-active: #ffffff;
    --k-sidebar-active-bg: #1f4e79;
    --k-accent: #29a9e8;
    --k-radius: .5rem;

    /* Bootstrap bağlantısı */
    --bs-primary: var(--k-primary);
    --bs-primary-rgb: var(--k-primary-rgb);
    --bs-danger: var(--k-danger);
    --bs-danger-rgb: var(--k-danger-rgb);
    /* Form kontrolleri, tablolar, açılır menüler beyaz zemin alır; sayfa zemini body'de ayrıca verilir. */
    --bs-body-bg: #ffffff;
    --bs-body-color: var(--k-text);
    --bs-border-color: var(--k-border);
    --bs-secondary-color: var(--k-muted);
    --bs-link-color: var(--k-primary);
    --bs-link-color-rgb: var(--k-primary-rgb);
    --bs-link-hover-color: var(--k-primary-hover);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-size: .7481rem;
    --bs-border-radius: .375rem;
    --bs-focus-ring-color: rgba(var(--k-primary-rgb), .25);
}

html, body { background: var(--k-bg); color: var(--k-text); }
body { font-size: .7481rem; -webkit-font-smoothing: antialiased; }
h4 { font-size: 1.0687rem; font-weight: 600; }
h6 { font-size: .8027rem; }
.small, small { font-size: .7875em; }
.form-text { font-size: .6935rem; }
.badge { font-size: .665rem; font-weight: 600; --bs-badge-padding-x: .75em; --bs-badge-padding-y: .5em; --bs-badge-border-radius: .375rem; min-width: 3.6rem; line-height: 1.1; }
.dropdown-menu { font-size: .7481rem; }
.dropdown-menu .dropdown-item.text-danger { color: var(--k-danger); font-weight: 600; }
.dropdown-menu .dropdown-item.text-danger .bi { color: var(--k-danger); }
.dropdown-menu .dropdown-item.text-danger:hover,
.dropdown-menu .dropdown-item.text-danger:focus { color: var(--k-danger); background: rgba(var(--k-danger-rgb), .1); }
.dropdown-menu .dropdown-item.text-danger:hover .bi,
.dropdown-menu .dropdown-item.text-danger:focus .bi { color: var(--k-danger); }
.breadcrumb-item { font-size: .6935rem; }

/* ------------------------------------------------------------------ butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; --bs-btn-font-size: .7107rem; --bs-btn-font-weight: 500; }
.btn-sm { --bs-btn-font-size: .6588rem; }
.btn-lg { --bs-btn-font-size: .8123rem; }
.btn-primary {
    --bs-btn-bg: var(--k-primary); --bs-btn-border-color: var(--k-primary);
    --bs-btn-hover-bg: var(--k-primary-hover); --bs-btn-hover-border-color: var(--k-primary-hover);
    --bs-btn-active-bg: var(--k-primary-hover); --bs-btn-active-border-color: var(--k-primary-hover);
    --bs-btn-disabled-bg: var(--k-primary); --bs-btn-disabled-border-color: var(--k-primary);
    --bs-btn-focus-shadow-rgb: var(--k-primary-rgb);
}
.btn-outline-primary {
    --bs-btn-color: var(--k-primary); --bs-btn-border-color: var(--k-primary);
    --bs-btn-hover-bg: var(--k-primary); --bs-btn-hover-border-color: var(--k-primary);
    --bs-btn-active-bg: var(--k-primary); --bs-btn-active-border-color: var(--k-primary);
    --bs-btn-focus-shadow-rgb: var(--k-primary-rgb);
}
.btn-outline-danger {
    --bs-btn-color: var(--k-danger); --bs-btn-border-color: var(--k-danger);
    --bs-btn-hover-bg: var(--k-danger); --bs-btn-hover-border-color: var(--k-danger);
    --bs-btn-active-bg: var(--k-danger); --bs-btn-active-border-color: var(--k-danger);
}
.btn-outline-success {
    --bs-btn-color: var(--k-success); --bs-btn-border-color: var(--k-success);
    --bs-btn-hover-bg: var(--k-success); --bs-btn-hover-border-color: var(--k-success);
    --bs-btn-active-bg: var(--k-success); --bs-btn-active-border-color: var(--k-success);
}
.btn-outline-warning {
    --bs-btn-color: #9a7600; --bs-btn-border-color: var(--k-warning);
    --bs-btn-hover-bg: var(--k-warning); --bs-btn-hover-border-color: var(--k-warning);
    --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--k-warning); --bs-btn-active-border-color: var(--k-warning);
}
.btn-outline-secondary {
    --bs-btn-color: var(--k-secondary); --bs-btn-border-color: var(--k-secondary);
    --bs-btn-hover-bg: var(--k-secondary); --bs-btn-hover-border-color: var(--k-secondary);
    --bs-btn-active-bg: var(--k-secondary); --bs-btn-active-border-color: var(--k-secondary);
}
.btn-danger {
    --bs-btn-bg: var(--k-danger); --bs-btn-border-color: var(--k-danger);
    --bs-btn-hover-bg: #a93226; --bs-btn-hover-border-color: #a93226;
}
.k-actions .btn-sm { --bs-btn-padding-x: .4rem; --bs-btn-padding-y: .15rem; }

/* Soft butonlar (açık zemin, renkli ikon; üzerine gelince dolu) — tablo işlem butonları */
.btn-soft-primary, .btn-soft-info, .btn-soft-danger, .btn-soft-success, .btn-soft-secondary, .btn-soft-warning {
    --k-soft: var(--k-primary); --k-soft-rgb: var(--k-primary-rgb);
    color: var(--k-soft); background-color: rgba(var(--k-soft-rgb), .1); border-color: transparent;
}
.btn-soft-info { --k-soft: #299cdb; --k-soft-rgb: 41, 156, 219; }
.btn-soft-danger { --k-soft: var(--k-danger); --k-soft-rgb: var(--k-danger-rgb); }
.btn-soft-success { --k-soft: #0ab39c; --k-soft-rgb: 10, 179, 156; }
.btn-soft-secondary { --k-soft: #6c757d; --k-soft-rgb: 108, 117, 125; }
.btn-soft-warning { --k-soft: #e0a800; --k-soft-rgb: 224, 168, 0; }
.btn-soft-primary:hover, .btn-soft-info:hover, .btn-soft-danger:hover, .btn-soft-success:hover, .btn-soft-secondary:hover, .btn-soft-warning:hover,
.btn-soft-primary:focus-visible, .btn-soft-info:focus-visible, .btn-soft-danger:focus-visible, .btn-soft-success:focus-visible, .btn-soft-secondary:focus-visible, .btn-soft-warning:focus-visible {
    color: #fff; background-color: var(--k-soft); border-color: var(--k-soft);
}
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 6px; }
.btn-icon.btn-sm { width: 28px; height: 28px; font-size: .76rem; }
.btn-icon > .bi { line-height: 1; }
.btn > .bi { line-height: 1; }

/* Tooltip (küçük) */
.tooltip { --bs-tooltip-font-size: .68rem; --bs-tooltip-padding-x: .55rem; --bs-tooltip-padding-y: .3rem; --bs-tooltip-max-width: 240px; font-family: var(--bs-body-font-family); pointer-events: none; }

/* Yumuşak rozetler (durum) — dolu bg-* yerine */
.badge-soft-primary, .badge-soft-info, .badge-soft-danger, .badge-soft-success, .badge-soft-secondary, .badge-soft-warning {
    --k-soft: var(--k-primary); --k-soft-rgb: var(--k-primary-rgb);
    color: var(--k-soft); background-color: rgba(var(--k-soft-rgb), .12); font-weight: 600;
}
.badge-soft-info { --k-soft: #299cdb; --k-soft-rgb: 41, 156, 219; }
.badge-soft-danger { --k-soft: var(--k-danger); --k-soft-rgb: var(--k-danger-rgb); }
.badge-soft-success { --k-soft: #0a9c88; --k-soft-rgb: 10, 179, 156; }
.badge-soft-secondary { --k-soft: #6c757d; --k-soft-rgb: 108, 117, 125; }
.badge-soft-warning { --k-soft: #b98600; --k-soft-rgb: 247, 184, 75; }
/* Çerçeveli rozet (kişi / etiket bilgisi): beyaz zemin, ince gri çerçeve. */
.badge-outline { color: #495057; background: #fff; border: 1px solid #dfe2e6; font-weight: 500; min-width: 0; }

/* ------------------------------------------------------------------ yerleşim */
.k-app { display: flex; min-height: 100vh; }

.k-sidebar {
    width: var(--k-sidebar-width);
    /* Bootstrap .offcanvas-lg masaüstünde zemini transparent !important yapar; ezilir. */
    background-color: var(--k-sidebar-bg) !important;
    color: var(--k-sidebar-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
@media (min-width: 992px) {
    .k-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        transition: width .2s ease;
    }
}
@media (max-width: 991.98px) {
    .k-sidebar { --bs-offcanvas-width: var(--k-sidebar-width); --bs-offcanvas-bg: var(--k-sidebar-bg); }
}

.k-sidebar-brand {
    height: var(--k-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--k-border);
    flex-shrink: 0;
}
.k-sidebar-brand img { height: 34px; width: auto; max-width: 100%; }

.k-nav { padding: .75rem .625rem; flex-grow: 1; }
.k-nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--k-sidebar-text);
    padding: .55rem .75rem;
    margin-bottom: 2px;
    border-radius: var(--k-radius);
    font-size: .7481rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.k-nav .nav-link > .bi:first-child { font-size: 1.05rem; width: 1.25rem; text-align: center; flex-shrink: 0; color: var(--k-sidebar-icon); }
.k-nav .nav-link:hover { color: var(--k-sidebar-active); background: rgba(255, 255, 255, .09); }
.k-nav .nav-link:hover > .bi:first-child { color: #ffffff; }
.k-nav .nav-link.active { color: var(--k-sidebar-active); background: var(--k-sidebar-active-bg); font-weight: 600; box-shadow: inset 3px 0 0 var(--k-accent); }
.k-nav .nav-link.active > .bi:first-child { color: #ffffff; }
.k-nav-group:not(.collapsed) { color: #ffffff; }
.k-nav-caret { margin-left: auto; font-size: .7rem; transition: transform .2s ease; opacity: .8; }
.k-nav-group:not(.collapsed) .k-nav-caret { transform: rotate(180deg); }
.k-nav-sub { position: relative; margin: 2px 0 6px 1.6rem; padding-left: .75rem; border-left: 1px solid rgba(255, 255, 255, .18); }
.k-nav-sub .nav-link { padding: .4rem .75rem; font-weight: 400; font-size: .6935rem; color: #d5e0ec; }
.k-nav-sub .nav-link.active { background: rgba(41, 169, 232, .18); box-shadow: none; color: #ffffff; font-weight: 600; }

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

.k-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--k-topbar-height);
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: 0 1rem;
    background: var(--k-surface);
    border-bottom: 1px solid var(--k-border);
}
.k-topbar-btn {
    color: var(--k-muted);
    font-size: 1.25rem;
    padding: .25rem .5rem;
    display: inline-flex;
    align-items: center;
}
.k-topbar-btn:hover { color: var(--k-primary); }
/* Üst bar bildirimleri (ui.fatura.bildirimler) */
.k-bildirim .k-topbar-btn { position: relative; }
.k-bildirim-rozet {
    position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--bs-danger); color: #fff; font-size: .58rem; font-weight: 600; line-height: 16px; text-align: center;
}
.k-bildirim-panel { width: 360px; max-width: calc(100vw - 2rem); padding: 0; border-radius: 10px; overflow: hidden; }
.k-bildirim-bas { padding: .65rem .9rem; font-size: .75rem; font-weight: 600; border-bottom: 1px solid var(--k-border); }
.k-bildirim-liste { max-height: min(60vh, 420px); overflow-y: auto; }
.k-bildirim-oge { display: flex; gap: .65rem; padding: .7rem .9rem; font-size: .7rem; color: var(--k-text); text-decoration: none; border-bottom: 1px solid var(--k-border); }
.k-bildirim-oge:last-child { border-bottom: 0; }
.k-bildirim-oge:hover { background: rgba(var(--k-primary-rgb), .05); color: var(--k-text); }
.k-bildirim-oge__ikon { flex: 0 0 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--k-primary-rgb), .1); color: var(--k-primary); }
.k-bildirim-bos { padding: 1.25rem .9rem; text-align: center; color: var(--k-muted); font-size: .7rem; }
.k-bildirim-bos .bi { display: block; font-size: 1.2rem; margin-bottom: .25rem; }
.k-topbar-user { color: var(--k-text); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.k-topbar-user:hover { color: var(--k-primary); }
.k-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--k-primary-soft);
    color: var(--k-primary);
    display: inline-flex; align-items: center; justify-content: center;
}

/* Üst bar genel arama (tema.md §4) */
.k-global-arama { position: relative; flex: 0 1 420px; min-width: 0; margin-left: .25rem; }
.k-global-arama .form-control {
    min-height: 38px; border-radius: 8px; padding-left: 2.1rem; padding-right: 2rem;
    background: #f8f9fb; font-size: .72rem;
}
.k-global-arama .form-control:focus { background: #ffffff; }
.k-global-arama .form-control::-webkit-search-cancel-button { cursor: pointer; }
.k-global-arama-ikon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--k-muted); font-size: .85rem; pointer-events: none; }
.k-global-arama-kisayol {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    padding: .05rem .4rem; font-size: .62rem; color: var(--k-muted); background: #ffffff;
    border: 1px solid var(--k-border); border-radius: .3rem; white-space: nowrap; cursor: default;
}
.k-global-arama .form-control:focus ~ .k-global-arama-kisayol,
.k-global-arama .form-control:not(:placeholder-shown) ~ .k-global-arama-kisayol { display: none !important; }
.k-global-arama-sonuc {
    position: absolute; top: calc(100% + 6px); left: 0; width: max(100%, 420px); max-width: calc(100vw - 2rem);
    max-height: min(70vh, 520px); overflow-y: auto; z-index: 1060;
    background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 10px; padding: .35rem;
}
.k-global-arama-grup {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem .6rem .25rem; font-size: .625rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; color: var(--k-muted);
}
.k-global-arama-blok + .k-global-arama-blok { border-top: 1px solid var(--k-border); margin-top: .25rem; padding-top: .15rem; }
.k-global-arama-daha {
    display: flex; align-items: center; justify-content: center; gap: .35rem; width: 100%;
    margin: .15rem 0 .1rem; padding: .4rem .6rem; border: 0; border-radius: 8px; background: transparent;
    color: var(--k-primary); font-size: .7rem; font-weight: 600;
}
.k-global-arama-daha:hover { background: var(--k-primary-soft); }
.k-global-arama-daha .k-sub { color: #878a99; font-weight: 400; font-size: .646rem; }
.k-global-arama-oge {
    display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px;
    color: var(--k-text); text-decoration: none;
}
.k-global-arama-oge.active { background: var(--k-primary-soft); color: var(--k-primary); }
.k-global-arama-tur {
    width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--k-primary-soft); color: var(--k-primary); font-size: .8rem;
}
.k-global-arama-oge.active .k-global-arama-tur { background: var(--k-primary); color: #ffffff; }
.k-global-arama-metin { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.k-global-arama-baslik { font-size: .74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-global-arama-metin .k-sub { color: #878a99; font-size: .646rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-global-arama-bos { display: flex; align-items: center; gap: .5rem; padding: .9rem .75rem; color: var(--k-muted); font-size: .72rem; }
@media (max-width: 575.98px) {
    .k-global-arama { flex: 1 1 auto; }
    .k-global-arama-sonuc { position: fixed; top: calc(var(--k-topbar-height) - 2px); left: .5rem; right: .5rem; width: auto; max-width: none; }
}

.k-content { padding: 1.25rem; flex-grow: 1; }
@media (max-width: 575.98px) { .k-content { padding: 1rem; } }

/* Daraltılmış menü (masaüstü) */
@media (min-width: 992px) {
    .k-sidebar-collapsed:not(.k-menu-yatay) .k-sidebar { width: var(--k-sidebar-collapsed); }
    .k-sidebar-collapsed:not(.k-menu-yatay) .k-sidebar-brand { padding: 0 .5rem; justify-content: center; }
    .k-sidebar-collapsed:not(.k-menu-yatay) .k-sidebar-brand img { height: 28px; object-fit: cover; object-position: left; width: 40px; }
    .k-sidebar-collapsed:not(.k-menu-yatay) .k-nav .nav-link > span,
    .k-sidebar-collapsed:not(.k-menu-yatay) .k-nav-caret,
    .k-sidebar-collapsed:not(.k-menu-yatay) .k-nav .collapse { display: none !important; }
    .k-sidebar-collapsed:not(.k-menu-yatay) .k-nav .nav-link { justify-content: center; }
}

/* Menü yerleşimi düğmesi: aktif olmayan yerleşimin ikonu görünür */
.k-menu-ikon-dikey,
.k-menu-yatay .k-menu-ikon-yatay { display: none; }
.k-menu-yatay .k-menu-ikon-dikey { display: inline; }
.k-topbar-logo { display: none; align-items: center; margin-right: .75rem; }
.k-topbar-logo img { height: 30px; width: auto; }

/* Yatay menü (masaüstü): üst bar → menü çubuğu → içerik */
@media (min-width: 992px) {
    .k-menu-yatay .k-app { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
    .k-menu-yatay .k-main { display: contents; }
    .k-menu-yatay .k-topbar { grid-row: 1; }
    .k-menu-yatay .k-topbar-logo { display: inline-flex; }
    .k-menu-yatay [data-ui="sidebar-toggle"] { display: none !important; }
    .k-menu-yatay .k-sidebar {
        grid-row: 2; width: auto; height: auto; top: var(--k-topbar-height); z-index: 1019;
        overflow: visible; transition: none; box-shadow: 0 2px 6px rgba(15, 42, 70, .12);
    }
    .k-menu-yatay .k-sidebar-brand { display: none; }
    .k-menu-yatay .k-content { grid-row: 3; }
    .k-menu-yatay .k-nav { padding: .3rem 1rem; }
    .k-menu-yatay .k-nav > .nav { flex-direction: row !important; flex-wrap: wrap; gap: 2px; }
    .k-menu-yatay .k-nav > .nav > .nav-item { position: relative; }
    .k-menu-yatay .k-nav .nav-link { margin-bottom: 0; padding: .5rem .75rem; gap: .5rem; }
    .k-menu-yatay .k-nav .nav-link.active,
    .k-menu-yatay .k-nav-group:not(.collapsed) { background: var(--k-sidebar-active-bg); box-shadow: inset 0 -3px 0 var(--k-accent); }
    .k-menu-yatay .k-nav-group .k-nav-caret { margin-left: .1rem; transform: none; }
    .k-menu-yatay .k-nav .collapse {
        display: none !important; height: auto !important; position: absolute; top: 100%; left: 0; z-index: 1030;
        min-width: 230px; padding: .35rem; background: var(--k-sidebar-bg);
        border-radius: 0 0 var(--k-radius) var(--k-radius); box-shadow: 0 .5rem 1rem rgba(15, 42, 70, .25);
    }
    .k-menu-yatay .k-nav .nav-item:hover > .collapse,
    .k-menu-yatay .k-nav .nav-item.k-nav-acik > .collapse { display: block !important; }
    .k-menu-yatay .k-nav-sub { margin: 0; padding-left: 0; border-left: 0; }
    .k-menu-yatay .k-nav-sub .nav-link.active { box-shadow: none; background: rgba(41, 169, 232, .18); }
}

/* İnce üst ilerleme çubuğu (tema.md §10) */
.k-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    z-index: 2000;
    background: var(--k-primary);
    opacity: 0;
    transition: width .4s ease, opacity .3s ease;
}
.k-progress.active { width: 80%; opacity: 1; transition: width 8s cubic-bezier(.1, .7, .3, 1), opacity .1s; }

/* ------------------------------------------------------------------ sayfa başlığı */
.k-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}
.k-page-header h4 { margin: 0; }
.k-page-header .breadcrumb { --bs-breadcrumb-font-size: .6935rem; --bs-breadcrumb-divider-color: var(--k-muted); --bs-breadcrumb-item-active-color: var(--k-muted); }
.k-page-header .breadcrumb a { text-decoration: none; }
.k-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.k-page-actions .btn { min-height: 38px; border-radius: 8px; }
.k-page-actions:empty { display: none; }

/* ------------------------------------------------------------------ kartlar */
.k-card {
    --bs-card-border-width: 0;
    --bs-card-border-radius: var(--k-radius);
    --bs-card-inner-border-radius: var(--k-radius);
    --bs-card-cap-bg: var(--k-surface);
    --bs-card-cap-padding-y: .75rem;
    --bs-card-cap-padding-x: 1rem;
    box-shadow: 0 1px 2px rgba(16, 42, 67, .06), 0 1px 3px rgba(16, 42, 67, .08);
}
.k-card > .card-header { border-bottom: 1px solid var(--k-border); }
.k-card > .card-header .bi { color: var(--k-primary); }

/* ------------------------------------------------------------------ form alanları (BulutFinans standardı) */
/* Tüm formlarda ve filtrelerde aynı ölçü: 40px yükseklik, 8px köşe, #dfe2e6 çerçeve, .74rem yazı. */
.form-label { font-size: .741rem; font-weight: 600; color: #495057; margin-bottom: .35rem; }
.form-label.required::after { content: " *"; color: var(--k-danger); }
/* hidden her zaman gizler (d-flex gibi !important display sınıfları ezmesin) */
[hidden] { display: none !important; }

.form-control, .form-select {
    min-height: 40px;
    border-color: #dfe2e6;
    border-radius: 8px;
    font-size: .703rem;
    color: var(--k-text);
}
textarea.form-control { min-height: 80px; }
.form-control::placeholder { color: #a6abb3; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--k-primary-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--k-primary-rgb), .09); }
.form-control[readonly] { background-color: #f8f9fb; }
.input-group-text { min-height: 40px; border-color: #dfe2e6; border-radius: 8px; font-size: .703rem; background: #f8f9fb; color: #6c757d; }
.form-control[type="file"] { padding: 0 .75rem 0 0; line-height: 38px; overflow: hidden; cursor: pointer; }
.form-control[type="file"]::file-selector-button {
    height: 38px; margin: 0 .75rem 0 0; padding: 0 .9rem; border: 0; border-inline-end: 1px solid #dfe2e6;
    background: #f8f9fb; color: #495057; font-size: .703rem; font-weight: 500; cursor: pointer;
}
.form-control[type="file"]:hover:not(:disabled):not([readonly])::file-selector-button { background: #eef0f3; }
.form-text { font-size: .665rem; color: var(--k-muted); }

/* Dosya sürükle-bırak alanı (<k-input type="file" drop="true">, ui.drop) */
.k-drop { position: relative; }
.k-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.k-drop__alan {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
    min-height: 168px; margin: 0; padding: 1.5rem 1rem; text-align: center; cursor: pointer;
    border: 2px dashed #c9d3df; border-radius: 12px; background: #f8fafc;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.k-drop__alan:hover, .k-drop__alan:focus-visible { border-color: rgba(var(--k-primary-rgb), .55); background: rgba(var(--k-primary-rgb), .03); outline: 0; }
.k-drop__alan:focus-visible { box-shadow: 0 0 0 3px rgba(var(--k-primary-rgb), .09); }
.k-drop__ikon {
    display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-bottom: .25rem;
    border-radius: 50%; background: rgba(var(--k-primary-rgb), .08); color: var(--k-primary); font-size: 1.45rem;
    transition: transform .15s;
}
.k-drop__baslik { font-size: .8rem; font-weight: 600; color: var(--k-text); }
.k-drop__metin { font-size: .72rem; color: var(--k-muted); }
.k-drop__sec { color: var(--k-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.k-drop__kural { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; font-size: .665rem; color: var(--k-muted); }
.k-drop.surukle .k-drop__alan { border-color: var(--k-primary); border-style: solid; background: rgba(var(--k-primary-rgb), .06); box-shadow: 0 0 0 4px rgba(var(--k-primary-rgb), .08); }
.k-drop.surukle .k-drop__ikon { transform: translateY(-3px) scale(1.06); background: var(--k-primary); color: #fff; }
.k-drop.dolu .k-drop__alan { min-height: 120px; }
.k-drop.is-invalid .k-drop__alan { border-color: var(--k-danger); }
.k-drop:has(.k-drop__input:disabled) .k-drop__alan { cursor: not-allowed; opacity: .6; }
.k-drop__liste { margin-top: .75rem; border: 1px solid #e9ebec; border-radius: 10px; overflow: hidden; }
.k-drop__ozet {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .5rem .75rem; background: #f3f6f9; border-bottom: 1px solid #e9ebec; font-size: .703rem; color: #495057;
}
.k-drop__ogeler { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.k-drop__oge { display: flex; align-items: center; gap: .65rem; padding: .45rem .75rem; border-bottom: 1px solid #f0f2f4; }
.k-drop__oge:last-child { border-bottom: 0; }
.k-drop__oge:hover { background: #f8fafc; }
.k-drop__oge-ikon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2rem; width: 2rem; height: 2rem;
    border-radius: 8px; background: rgba(var(--k-primary-rgb), .08); color: var(--k-primary); font-size: 1rem;
}
.k-drop__oge-ikon--excel { background: rgba(25, 135, 84, .1); color: var(--k-success); }
.k-drop__oge-ikon--pdf { background: rgba(192, 57, 43, .1); color: var(--k-danger); }
.k-drop__oge-ad { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; font-size: .72rem; font-weight: 500; color: var(--k-text); }
@media (min-width: 768px) { .k-drop__ogeler:has(> .k-drop__oge:nth-child(4)) { display: grid; grid-template-columns: 1fr 1fr; } .k-drop__ogeler:has(> .k-drop__oge:nth-child(4)) .k-drop__oge:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }

/* Switch: küçük (varsayılan boy), etiket hemen yanında */
.form-check-input { border-color: #ced4da; }
.form-check-input:checked { background-color: var(--k-primary); border-color: var(--k-primary); }
.form-check-input:focus { border-color: rgba(var(--k-primary-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--k-primary-rgb), .09); }
.form-check-label { font-size: .741rem; font-weight: 500; color: #495057; }
.k-field-switch { display: flex; flex-direction: column; justify-content: flex-start; min-height: 40px; }
/* Etiketli alanların yanındaki switch: etiket yüksekliği kadar aşağıda, kutuyla (40px) aynı hizada; yardım metni hizayı bozmaz. */
.row:has(> .k-field:not(.k-field-switch) > .form-label) > .k-field-switch { padding-top: calc(.741rem * 1.5 + .35rem); }
.k-filter .row:has(> .k-field:not(.k-field-switch) > .form-label) > .k-field-switch { padding-top: calc(.5938rem * 1.5 + .25rem); }
.k-field-switch .form-check { display: flex; align-items: center; gap: .5rem; padding-left: 0; margin-bottom: 0; min-height: 40px; }
.k-field-switch .form-check .form-check-input { float: none; margin: 0; }
.form-switch .form-check-input { width: 2.15rem; height: 1.15rem; margin-top: 0; cursor: pointer; }
.form-switch { padding-left: 0; }
.form-switch .form-check-input { margin-left: 0; float: none; }

/* Doğrulama (jQuery Unobtrusive + Bootstrap) */
.input-validation-error,
.input-validation-error + .select2 .select2-selection,
.is-invalid + .select2 .select2-selection { border-color: var(--k-danger) !important; }
.k-field .invalid-feedback { font-size: .665rem; }
.k-field .invalid-feedback.field-validation-error,
.k-field .invalid-feedback.d-block { display: block; }
.k-field .invalid-feedback.field-validation-valid:not(.d-block) { display: none; }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 1rem; }

/* Form bölümleri (bilgiFormV2) */
.k-form-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.k-form-hero__icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: var(--k-primary); background: rgba(var(--k-primary-rgb), .1); font-size: 1.35rem; }
.k-form-hero h5 { margin: 0 0 2px; font-size: .9025rem; font-weight: 700; }
.k-form-hero p { margin: 0; color: #878a99; font-size: .703rem; }
.k-form-section { background: rgba(var(--k-primary-rgb), .045); border: 1px solid rgba(var(--k-primary-rgb), .12); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.k-form-section__title { display: flex; align-items: center; gap: 8px; font-size: .646rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--k-primary); margin-bottom: 14px; }
.k-form-section__title .bi { font-size: .95rem; }

/* Form alt butonları: Vazgeç (btn-light) + Kaydet (btn-success), 9px köşe, min 96px */
.k-form-actions { display: flex; justify-content: flex-end; gap: .5rem; padding-top: 1rem; margin-top: .25rem; border-top: 1px solid #e9ebec; }
.k-form-actions .btn, .modal-footer .btn { border-radius: 9px; min-width: 96px; min-height: 38px; }
.btn-light { --bs-btn-bg: #f3f6f9; --bs-btn-border-color: #dfe2e6; --bs-btn-hover-bg: #e9edf2; --bs-btn-hover-border-color: #d3d9e0; --bs-btn-color: #343a40; }
.btn-success { --bs-btn-bg: #0ab39c; --bs-btn-border-color: #0ab39c; --bs-btn-hover-bg: #099885; --bs-btn-hover-border-color: #099885; --bs-btn-active-bg: #099885; --bs-btn-disabled-bg: #0ab39c; --bs-btn-disabled-border-color: #0ab39c; }

/* Filtre kartı (BulutFinans list-card / vendor-ledger-filter) */
.k-filter { border: 1px solid #e8ebef; border-radius: 14px; box-shadow: 0 8px 24px rgba(30, 44, 75, .055); overflow: visible; }
.k-filter > .card-header { padding: 12px 16px; border-bottom: 1px solid #e8ebef; background: #fff; border-radius: 14px 14px 0 0; }
.k-filter > .card-body { padding: 13px 16px; }
.k-head-title { display: flex; align-items: center; gap: 10px; }
.k-head-title__icon { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 9px; color: var(--k-primary); background: rgba(var(--k-primary-rgb), .1); font-size: 1rem; }
.k-card > .card-header .k-head-title__icon .bi { color: var(--k-primary); }
.k-head-title h6 { margin: 0 0 2px; font-size: .779rem; font-weight: 600; }
.k-head-title p { margin: 0; color: #878a99; font-size: .627rem; }
.k-filter .form-label { font-size: .5938rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #878a99; margin-bottom: .25rem; }
.k-filter .form-control, .k-filter .form-select { font-size: .684rem; }
.k-filter .btn { min-height: 40px; border-radius: 8px; font-size: .6317rem; }
.k-filter .k-durum-grup > .btn { border-radius: 0; font-size: .6949rem; }
.k-filter .k-durum-grup > .btn:first-child { border-radius: 8px 0 0 8px; }
.k-filter .k-durum-grup > .btn:last-child { border-radius: 0 8px 8px 0; }
.k-filter-buttons { display: flex; gap: .5rem; }
.k-filter-buttons .btn { min-width: 88px; }
.k-filter-toggle { text-decoration: none; font-size: .684rem; font-weight: 600; }
.k-filter-toggle .bi { transition: transform .2s ease; display: inline-block; }
.k-filter-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }

/* Onay kutusu ve radio: aynı boy (1.1rem), aynı renk; checkbox kare (.3rem köşe), radio yuvarlak */
.k-check { display: flex; align-items: center; gap: .5rem; padding-left: 0; margin-bottom: 0; min-height: 28px; }
.k-check .form-check-input { float: none; flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin: 0; border: 1px solid #c2c9d2; cursor: pointer; }
.k-check .form-check-input[type="checkbox"] { border-radius: .3rem; }
.k-check .form-check-input:checked { background-color: var(--k-primary); border-color: var(--k-primary); }
.k-check .form-check-input:disabled ~ .form-check-label { opacity: .55; }
.k-check .form-check-label { cursor: pointer; }
.k-check .form-check-label.required::after { content: " *"; color: var(--k-danger); }
.k-field-check { display: flex; flex-direction: column; justify-content: flex-end; min-height: 40px; }
.k-field-check > .k-check { min-height: 40px; }
.k-choice-list { display: flex; flex-direction: column; gap: .35rem; padding-top: .2rem; }
.k-choice-list.k-choice-inline { flex-direction: row; flex-wrap: wrap; column-gap: 1.25rem; align-items: center; min-height: 40px; padding-top: 0; }

/* ------------------------------------------------------------------ Select2 (form ölçüsünde) */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 40px;
    border-color: #dfe2e6;
    border-radius: 8px;
    font-size: .703rem;
    display: flex;
    align-items: center;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { color: var(--k-text); }
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder { color: #a6abb3; }
.k-filter .select2-container--bootstrap-5 .select2-selection { font-size: .684rem; }
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: rgba(var(--k-primary-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--k-primary-rgb), .09); }
.select2-container--bootstrap-5 .select2-dropdown { font-size: .703rem; border-color: rgba(var(--k-primary-rgb), .4); border-radius: 8px; box-shadow: 0 8px 24px rgba(30, 44, 75, .12); overflow: hidden; }
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field { min-height: 34px; border-radius: 6px; border-color: #dfe2e6; font-size: .703rem; }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option { font-size: .703rem; padding: .45rem .75rem; }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted { background-color: rgba(var(--k-primary-rgb), .08); color: var(--k-text); }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected { background-color: var(--k-primary); color: #fff; }
.input-group > .select2-container--bootstrap-5 { flex: 1 1 auto; width: 1% !important; }

/* ------------------------------------------------------------------ tarih seçici (bootstrap-datepicker) */
.k-date-toggle { cursor: pointer; color: var(--k-primary); }
.k-date-toggle:hover { background: var(--k-primary-soft); }
.k-datetime .k-dt-time { flex: 0 0 4.75rem; text-align: center; }

.datepicker.dropdown-menu {
    font-family: var(--bs-body-font-family);
    font-size: .7481rem;
    padding: .5rem;
    border: 1px solid var(--k-border);
    border-radius: var(--k-radius);
    box-shadow: 0 8px 24px rgba(16, 42, 67, .15);
    z-index: 1080 !important;
}
.datepicker table { border-spacing: 2px; border-collapse: separate; }
.datepicker table tr td, .datepicker table tr th { width: 2.1rem; height: 2rem; border-radius: .375rem; }
.datepicker table tr th { font-weight: 600; color: #33475b; }
.datepicker table tr th.dow { font-size: .646rem; color: var(--k-muted); text-transform: uppercase; }
.datepicker table tr th.datepicker-switch:hover,
.datepicker table tr th.prev:hover,
.datepicker table tr th.next:hover,
.datepicker table tr td.day:hover,
.datepicker table tr td span:hover { background: var(--k-primary-soft); color: var(--k-primary); }
.datepicker table tr td.old, .datepicker table tr td.new { color: #b5bfca; }
.datepicker table tr td.today,
.datepicker table tr td.today:hover { background: #fff4d6; color: var(--k-text); font-weight: 600; }
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.active,
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover,
.datepicker table tr td span.active.active { background: var(--k-primary) !important; border-color: var(--k-primary) !important; color: #fff !important; text-shadow: none; font-weight: 600; }
.datepicker table tr td span { border-radius: .375rem; height: 2.5rem; line-height: 2.5rem; }
.datepicker table tr td.disabled, .datepicker table tr td.disabled:hover { color: #d0d6dd; background: transparent; }
.datepicker tfoot tr th.today, .datepicker tfoot tr th.clear { color: var(--k-primary); font-weight: 600; padding: .35rem 0; }
.datepicker tfoot tr th.clear { color: var(--k-danger); }

/* ------------------------------------------------------------------ tablolar (Yonet724 liste tablosu teması) */
/* table-striped + table-hover + align-middle + table-nowrap; thead table-light text-muted, sticky, büyük harf. */
.k-table-card { overflow: hidden; border: 1px solid #e8ebef; border-radius: 14px; box-shadow: 0 9px 27px rgba(30, 44, 75, .065); }
.k-table-card > .card-header { padding: 12px 16px; border-bottom: 1px solid #e8ebef; background: #fff; }
/* Başlıkta eylem butonları (k-table-actions): solda başlık, sağda butonlar; açılır menü kesilmesin diye kart taşmaya açık. */
.k-table-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.k-table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
/* Sayfa başlığı butonlarıyla aynı ölçü (38px, 8px köşe); kart başlığının primary ikon rengi butonlara geçmez. */
.k-table-actions .btn { min-height: 38px; border-radius: 8px; }
.k-card > .card-header .k-table-actions .bi { color: inherit; }
.k-table-card--eylemli { overflow: visible; }
.k-table-card--eylemli > .card-header { border-radius: 14px 14px 0 0; }

/* Okunamayan cihaz tablosu (fatura sihirbazı adım 3): kesik warning çerçeve */
.k-okunamayan { margin-bottom: 1.1rem; }
.k-okunamayan .k-table-card {
    margin-bottom: 0;
    border: 2px dashed #e0a800;
    background: #fffdf6;
    box-shadow: 0 0 0 4px rgba(224, 168, 0, .16), 0 10px 28px rgba(224, 168, 0, .14);
}
.k-okunamayan .k-table-card > .card-header { background: #fff8e1; border-bottom: 1px dashed #e0a800; }
.k-okunamayan .k-head-title__icon { color: #b98600; background: rgba(224, 168, 0, .18); }
.k-okunamayan .k-card > .card-header .k-head-title__icon .bi { color: #b98600; }
.k-okunamayan .k-table-card table.dataTable > thead > tr > th { background: #fff3cd; box-shadow: inset 0 -1px 0 #f0d48a; }
.k-okunamayan .k-table-card table.dataTable > tbody > tr:nth-of-type(odd) > td { background-color: #fff8e1; }
.k-okunamayan .k-table-card table.dataTable.table-hover > tbody > tr:hover > td { background-color: #ffefc2; }
/* Okunamayan tüketim önerisi (adım 3): yöntem kartları + sade özet; tablo kayarken üstte sabit */
.k-okunamayan-oneri {
    position: sticky; top: var(--k-topbar-height); z-index: 100;
    margin-bottom: .75rem; padding: .9rem 1rem; border: 1px solid #f0d78a; border-radius: 12px;
    background: #fff; box-shadow: 0 4px 14px rgba(224, 168, 0, .08);
}
.k-okunamayan-oneri__bas { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.k-okunamayan-oneri__ikon {
    display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
    color: #b98600; background: rgba(224, 168, 0, .18); font-size: 1.1rem;
}
.k-okunamayan-oneri__bas h6 { font-size: .78rem; }
.k-okunamayan-oneri__bas p { font-size: .703rem; color: #5f6b7a; line-height: 1.45; }
.k-okunamayan-oneri .k-secim-grid { margin-bottom: .65rem; }
.k-okunamayan-oneri .k-secim { min-height: 78px; }
.k-okunamayan-oneri .k-secim .badge { position: absolute; top: .45rem; right: 1.85rem; }
.k-okunamayan-oneri__yuzde { margin-bottom: .65rem; }
.k-okunamayan-oneri__yuzde .select2-container { width: 100% !important; }
.k-okunamayan-oneri__ozet {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem .85rem;
    border-radius: 10px; background: #f3faf6; border: 1px solid #cfe9d8; font-size: .72rem; color: #345c45; line-height: 1.45;
}
.k-okunamayan-oneri__neden { font-size: .646rem; color: #5f6b7a; line-height: 1.35; white-space: normal; }
.k-table-card div.dt-container { padding: 0; }
/* DataTables bootstrap5 düzeni: her satır '.row.mt-2', hücreler 'col-*'. Kenar boşlukları kart içine alınır. */
.k-table-card div.dt-container > .row { margin: 0 !important; padding: .7rem 1.1rem; align-items: center; row-gap: .5rem; }
.k-table-card div.dt-container > .row > div { padding-left: 0; padding-right: 0; }
.k-table-card div.dt-container > .row:not(:has(table)) { border-top: 1px solid #e9ebec; }
.k-table-card div.dt-container > .row:has(table) { padding: 0; border: 0; }
.k-table-card div.dt-container > .row > div:has(> table) {
    padding: 0;
    max-height: calc(100vh - 300px);
    min-height: 260px;
    overflow: auto;
}
.k-table-card div.dt-container .dt-layout-start,
.k-table-card div.dt-container .dt-layout-start > div { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.k-table-card table.dataTable { margin: 0 !important; border-collapse: separate !important; border-spacing: 0; font-size: .7125rem; white-space: nowrap; }
.k-table-card table.dataTable > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f6f9;
    color: #878a99;
    font-size: .6412rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
    padding: .7rem .6rem;
    border-bottom: 0 !important;
    box-shadow: inset 0 -1px 0 #e9ebec;
    vertical-align: middle;
}
.k-table-card table.dataTable > thead > tr > th.dt-ordering-asc,
.k-table-card table.dataTable > thead > tr > th.dt-ordering-desc { color: var(--k-primary); }
.k-table-card table.dataTable > thead .dt-column-order { opacity: .55; }
.k-table-card table.dataTable > tbody > tr > td { padding: .6rem .6rem; border-bottom: 1px solid #e9ebec; color: #212529; vertical-align: middle; }
.k-table-card table.dataTable > tbody > tr:nth-of-type(odd) > td { background-color: #f8fafc; box-shadow: none; }
.k-table-card table.dataTable.table-hover > tbody > tr:hover > td { background-color: #f0f4f9; box-shadow: none; }
.k-table-card table.dataTable > tbody > tr:last-child > td { border-bottom: 0; }
/* Elle aktarılan (okunamayandan gelen) satır — açık danger zemin + sol çizgi */
.k-table-card table.dataTable > tbody > tr.k-satir-aktarilan > td {
    background-color: #fdecea !important;
}
.k-table-card table.dataTable.table-hover > tbody > tr.k-satir-aktarilan:hover > td {
    background-color: #f8d7d4 !important;
}
.k-table-card table.dataTable > tbody > tr.k-satir-aktarilan > td:first-child {
    box-shadow: inset 3px 0 0 var(--k-danger);
}
.k-sub-aktarilan { color: var(--k-danger); font-weight: 600; }
.k-table-card table.dataTable > thead > tr > th:first-child,
.k-table-card table.dataTable > tbody > tr > td:first-child { padding-left: 1rem; }
.k-table-card table.dataTable > thead > tr > th:last-child,
.k-table-card table.dataTable > tbody > tr > td:last-child { padding-right: 1rem; }

/* Hücre içi alt satırlar: div + .k-sub (muted, küçük) */
.k-table-card td .k-sub { color: #878a99; font-size: .646rem; margin-top: 1px; }
.k-table-card td .k-sub-danger { color: var(--k-danger); font-size: .646rem; margin-top: 1px; }
.k-table-card td.k-wrap { white-space: normal; min-width: 150px; max-width: 280px; }
.k-table-card td.k-wrap-genis { min-width: 220px; max-width: 360px; }
/* Hücrede alt alta rozetler (ör. Fatura Tipi). */
.k-rozet-satir + .k-rozet-satir { margin-top: .2rem; }

/* Tablo alt satırı (DataTables child): satıra ait küçük liste, ör. daire faturasında cihaz endeksleri */
.k-alt-tablo { margin: .25rem 0 .5rem 1.25rem; border: 1px solid #e8ebef; border-left: 3px solid var(--k-primary); border-radius: 8px; overflow-x: auto; background: #fff; }
.k-alt-tablo table thead th { position: static; }
.k-table-card td.dt-type-numeric, .k-table-card td.text-end { font-variant-numeric: tabular-nums; }
/* Hücre içi düzenleme (ui.table.hucreDuzenle): çift tıkla düzenlenir */
.k-table-card td.k-hucre-duzenlenir { cursor: cell; }
.k-table-card td.k-hucre-duzenlenir:hover { box-shadow: inset 0 0 0 1px rgba(var(--k-primary-rgb), .35); border-radius: 4px; }
.k-hucre-ipucu {
    display: inline-flex; align-items: center; gap: .3rem; margin-top: .1rem;
    color: #878a99; font-size: .62rem; font-weight: 500; font-style: italic; line-height: 1.3;
}
.k-hucre-ipucu .bi { font-size: .68rem; }
.k-table-card td.k-hucre-duzenlenir:hover .k-hucre-ipucu { color: var(--k-primary); }
.k-hucre-input.form-control { min-height: 30px; height: 30px; min-width: 96px; padding: .15rem .45rem; font-size: .7rem; border-radius: 6px; }
.k-hucre-onizleme { color: var(--k-primary); font-weight: 600; }
/* Kıyas endeksi verilen satır (fatura sihirbazı adım 3): değer belirgin yeşil kutu + altında etiket */
.k-kiyas-deger { display: inline-block; padding: .2rem .5rem; border-radius: 6px; background: #d1f0df; border: 1px solid #8fd1ad; color: #0f5132; font-weight: 700; }
.k-kiyas-etiket { margin-top: .15rem; font-size: .62rem; font-weight: 600; color: #198754; text-transform: uppercase; letter-spacing: .02em; }

/* Boş durum: ikon + "Kayıt bulunamadı" */
.k-table-card table.dataTable td.dt-empty { padding: 2.5rem 1rem !important; background: #fff !important; white-space: normal; }
.k-empty-row { text-align: center; color: var(--k-muted); }
.k-empty-row .bi { display: block; font-size: 2.2rem; color: #c3cad3; margin-bottom: .35rem; }
.k-empty-row h5 { margin: 0; font-size: .855rem; font-weight: 600; color: #495057; }

/* Satır işlemleri: hstack gap-1, soft ikon butonlar */
.k-row-actions { display: inline-flex; gap: .25rem; justify-content: flex-end; }

/* Büyük seçim checkbox'ları */
.k-table-card table .form-check, .k-excel-liste table .form-check { margin: 0; padding-left: 0; min-height: 0; }
.k-table-card table .form-check .form-check-input, .k-excel-liste table .form-check .form-check-input { flex-shrink: 0; width: 1.2rem; height: 1.2rem; margin: 0; float: none; cursor: pointer; }
.k-excel-liste table .form-check .form-check-input:disabled { cursor: not-allowed; }

/* Araç satırı: kayıt sayısı + arama */
.k-table-card div.dt-container .dt-length { display: flex; align-items: center; gap: .4rem; color: var(--k-muted); font-size: .684rem; }
.k-table-card div.dt-container .dt-length select { width: auto; min-height: 34px; padding-top: .2rem; padding-bottom: .2rem; font-size: .684rem; margin: 0; }
.k-table-card div.dt-container .dt-length .select2-container { width: 76px !important; }
.k-table-card div.dt-container .dt-length .select2-container--bootstrap-5 .select2-selection { min-height: 34px; font-size: .684rem; }
.k-table-card div.dt-container .dt-search { position: relative; }
.k-table-card div.dt-container .dt-search::before {
    content: "\F52A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: .7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--k-muted);
    font-size: .8rem;
    pointer-events: none;
}
.k-table-card div.dt-container .dt-search input { width: 260px; max-width: 100%; min-height: 36px; margin-left: 0; padding-left: 2rem; font-size: .703rem; }
.k-table-card div.dt-container .dt-info { color: var(--k-muted); font-size: .684rem; padding: 0; }

/* Sayfalama */
.k-table-card div.dt-container .dt-paging .pagination { margin: 0; gap: 2px; }
.k-table-card .page-link { color: #495057; border: 1px solid #e9ebec; border-radius: 8px !important; min-width: 34px; text-align: center; font-size: .684rem; padding: .35rem .55rem; }
.k-table-card .page-link:hover { background: rgba(var(--k-primary-rgb), .08); color: var(--k-primary); }
.k-table-card .active > .page-link { background-color: var(--k-primary); border-color: var(--k-primary); color: #fff; font-weight: 600; }
.k-table-card .disabled > .page-link { opacity: .5; }

/* Yükleniyor */
.k-table-card div.dt-container div.dt-processing { background: var(--k-surface); box-shadow: 0 4px 16px rgba(16, 42, 67, .15); border-radius: var(--k-radius); padding: .75rem 1rem; font-size: .7125rem; border: 0; z-index: 5; }
.k-table-card div.dt-container div.dt-processing > div:last-child { display: none; }

/* Responsive açılır satır */
.k-table-card table.dataTable > tbody > tr.child ul.dtr-details { width: 100%; }
.k-table-card table.dataTable > tbody > tr.child ul.dtr-details > li { padding: .4rem 0; border-bottom-color: #e9ebec; white-space: normal; }
.k-table-card table.dataTable > tbody > tr.child span.dtr-title { min-width: 110px; font-weight: 600; color: #495057; }

.k-table-card tfoot td, .k-table-card tfoot th { font-weight: 700; background: #f3f6f9; border-top: 1px solid #e9ebec; }

@media (max-width: 767.98px) {
    .k-table-card div.dt-container > .row > div:has(> table) { max-height: none; }
    .k-table-card div.dt-container > .row:not(:has(table)) > div { flex: 0 0 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ sekmeler (Yonet724 segment/pill) */
.k-tabs-card > .card-header { padding: 12px 16px; border-bottom: 1px dashed #e9ebec; background: #fff; }
.k-tabs { display: inline-flex; flex-wrap: wrap; background: #f3f6f9; border: 1px solid #e9ebec; border-radius: .6rem; padding: .3rem; gap: .25rem; }
.k-tabs .nav-link { display: flex; align-items: center; gap: .4rem; font-size: .741rem; font-weight: 500; color: #495057; border-radius: .45rem; padding: .5rem 1rem; transition: background-color .15s ease, color .15s ease; }
.k-tabs .nav-link .bi { font-size: 1rem; color: #878a99; }
.k-tabs .nav-link:hover { background: #fff; color: var(--k-primary); }
.k-tabs .nav-link:hover .bi { color: var(--k-primary); }
.k-tabs .nav-link.active { background: var(--k-primary); color: #fff; box-shadow: 0 .25rem .6rem rgba(var(--k-primary-rgb), .3); }
.k-tabs .nav-link.active .bi { color: #fff; }
.k-tabs-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.k-tabs-actions .btn { min-height: 38px; border-radius: 8px; }
@media (max-width: 767.98px) {
    .k-tabs .nav-link { padding: .5rem .7rem; }
    .k-tabs .nav-link span { display: none; }
    .k-tabs .nav-link.active span { display: inline; }
}

/* ------------------------------------------------------------------ izin ağacı (tema.md §10) */
.k-izin-agaci { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .k-izin-agaci { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1400px) { .k-izin-agaci { grid-template-columns: repeat(3, 1fr); } }
.k-izin-grup {
    border: 1px solid var(--k-border);
    border-radius: .5rem;
    background: var(--k-surface, #fff);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.k-izin-grup__baslik {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .7rem 1rem;
    background: linear-gradient(180deg, rgba(var(--k-primary-rgb), .08), rgba(var(--k-primary-rgb), .02));
    border-bottom: 1px solid var(--k-border);
}
.k-izin-grup__baslik .form-check-label,
.k-izin-grup__baslik .fw-semibold { font-weight: 650; letter-spacing: -.01em; color: var(--k-primary); }
.k-izin-grup__liste { display: flex; flex-direction: column; gap: .2rem; padding: .65rem 1rem .85rem 1.15rem; }
.k-izin-sayac {
    font-size: .7rem; font-weight: 600; color: var(--k-muted);
    background: rgba(var(--k-primary-rgb), .08); border-radius: 999px; padding: .1rem .45rem;
}
.k-izin-grup__eylem { display: inline-flex; gap: .25rem; margin-left: auto; }
.k-izin-satir { display: flex; align-items: center; gap: .5rem; min-height: 32px; padding: .1rem 0; }
.k-izin-satir .k-izin-ad { flex-grow: 1; cursor: pointer; }
.k-izin-satir.active .k-izin-ad { color: var(--k-primary); font-weight: 600; }
.k-izin-grup__liste .form-check-label { font-size: .925rem; }
.k-busy { opacity: .6; pointer-events: none; }

/* Detay listesi (profil özeti): etiket muted, değer kalın */
.k-detay { display: grid; grid-template-columns: 1fr; gap: .65rem 1.5rem; margin: 0; }
@media (min-width: 768px) { .k-detay { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .k-detay { grid-template-columns: repeat(3, 1fr); } }
.k-detay dt { font-size: .625rem; font-weight: 600; text-transform: uppercase; color: var(--k-muted); margin-bottom: .1rem; }
.k-detay dd { margin: 0; font-weight: 500; }

/* SMS mesaj formu (tema.md §9): etiket düğmeleri + karakter / SMS sayacı */
.k-sms-etiketler { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.k-sms-sayac { font-size: .68rem; color: var(--k-muted); text-align: right; margin-top: -.35rem; }
.k-sms-onizleme { max-height: 52vh; }
.k-sms-onizleme td.k-sms-metin { white-space: pre-wrap; min-width: 280px; }
.k-sms-sayac .k-sms-ornek { display: block; text-align: left; margin-top: .4rem; padding: .5rem .65rem; border: 1px dashed var(--k-border); border-radius: 8px; background: #f8f9fb; color: var(--k-text); white-space: pre-wrap; }

/* Sihirbaz (tema.md §10): adım çubuğu + paneller + alt düğmeler (ekran altında sabit) */
.k-wizard { padding-bottom: 4.75rem; }
.k-wizard-adimlar {
    display: flex; gap: .5rem; list-style: none; margin: 0 0 1.25rem; padding: .5rem;
    background: #f3f6f9; border: 1px solid var(--k-border); border-radius: 12px; overflow-x: auto;
}
.k-wizard-adim {
    position: relative; display: flex; align-items: center; gap: .6rem; flex: 1 1 0; min-width: 0;
    padding: .55rem .7rem; border-radius: 9px; color: #495057; cursor: pointer; user-select: none;
    transition: background-color .15s ease, color .15s ease;
}
.k-wizard-adim.kapali { cursor: default; color: var(--k-muted); }
.k-wizard-adim:not(.kapali):not(.active):hover { background: #ffffff; }
.k-wizard-no {
    display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    background: #ffffff; border: 1px solid var(--k-border); color: var(--k-muted); font-size: .9rem;
}
.k-wizard-no .bi-check-lg { display: none; }
.k-wizard-baslik { display: flex; flex-direction: column; min-width: 0; font-size: .72rem; font-weight: 600; line-height: 1.25; }
.k-wizard-baslik > span, .k-wizard-baslik small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-wizard-baslik small { font-size: .625rem; font-weight: 400; color: #878a99; }
.k-wizard-adim.active { background: var(--k-primary); color: #ffffff; box-shadow: 0 2px 6px rgba(var(--k-primary-rgb), .25); }
.k-wizard-adim.active .k-wizard-no { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .45); color: #ffffff; }
.k-wizard-adim.active small { color: rgba(255, 255, 255, .8); }
.k-wizard-adim.tamam .k-wizard-no { background: var(--k-success); border-color: var(--k-success); color: #ffffff; }
.k-wizard-adim.tamam .k-wizard-no .bi:first-child { display: none; }
.k-wizard-adim.tamam .k-wizard-no .bi-check-lg { display: inline; }
.k-wizard-alt {
    position: fixed; bottom: 0; right: 0; left: 0; z-index: 1010;
    display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap;
    padding: .75rem 1.25rem; margin: 0; border-top: 1px solid #e9ebec;
    background: var(--k-surface); box-shadow: 0 -6px 20px rgba(30, 44, 75, .1);
}
@media (min-width: 992px) {
    .k-wizard-alt { left: var(--k-sidebar-width); }
    .k-sidebar-collapsed:not(.k-menu-yatay) .k-wizard-alt { left: var(--k-sidebar-collapsed); }
    .k-menu-yatay .k-wizard-alt { left: 0; }
}
.k-wizard-alt .btn { border-radius: 9px; min-width: 96px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.k-wizard-sayac { margin-right: auto; color: var(--k-muted); font-size: .7rem; font-weight: 600; }
.k-wizard-alt > a.btn + .k-wizard-sayac { margin-left: .5rem; }
@media (max-width: 991.98px) {
    /* Dar ekranda yalnız aktif adımın başlığı görünür, diğerleri numara/ikon. */
    .k-wizard-adim { flex: 0 0 auto; }
    .k-wizard-adim:not(.active) .k-wizard-baslik { display: none; }
    .k-wizard-adim.active { flex: 1 1 auto; }
    .k-wizard-alt { padding: .65rem 1rem; }
}
/* Seçime göre atlanan adım (ui.wizard atla) */
.k-wizard-adim.atla { opacity: .45; cursor: default; }

/* Fatura sihirbazı (tema.md §10): seçilebilir hizmet kartları, araç çubuğu, bölüm bilgisi */
.k-secim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.k-secim {
    position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .7rem; width: 100%; padding: .85rem 2rem .85rem .95rem;
    border: 1px solid #e3e8ee; border-radius: 12px; background: #ffffff; text-align: left; color: var(--k-text); cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.k-secim:hover:not(:disabled) { border-color: rgba(var(--k-primary-rgb), .45); box-shadow: 0 6px 18px rgba(30, 44, 75, .07); }
.k-secim:disabled { opacity: .5; cursor: not-allowed; }
.k-secim__ikon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; color: var(--k-primary); background: rgba(var(--k-primary-rgb), .09); font-size: 1rem; }
.k-secim__metin { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
.k-secim__metin strong { font-size: .76rem; font-weight: 700; }
.k-secim__metin small { font-size: .646rem; color: #878a99; }
.k-secim__isaret { position: absolute; top: .6rem; right: .7rem; color: var(--k-primary); font-size: 1rem; opacity: 0; transition: opacity .15s ease; }
.k-secim.active { border-color: var(--k-primary); background: rgba(var(--k-primary-rgb), .04); box-shadow: 0 0 0 3px rgba(var(--k-primary-rgb), .09); }
.k-secim.active .k-secim__isaret { opacity: 1; }
/* Açılır seçim kartı (ör. elle tüketim): altta alan açılınca kart aşağı genişler */
.k-secim__ek {
    flex: 1 1 100%; width: 100%; margin: .15rem 0 0; padding: .65rem 0 0;
    border-top: 1px dashed rgba(var(--k-primary-rgb), .22); cursor: default;
}
.k-secim__elle { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.k-secim__elle > [class*="col"] { flex: 1 1 8rem; min-width: 0; padding: 0; }
.k-secim__elle .k-btn-40 { flex: 0 0 auto; }
.k-okunamayan-oneri .k-secim--acilir.active { min-height: 0; }
.k-secim--danger .k-secim__ikon { color: var(--k-danger); background: rgba(var(--k-danger-rgb), .09); }
.k-secim--danger .k-secim__isaret { color: var(--k-danger); }
.k-secim--danger.active { border-color: var(--k-danger); background: rgba(var(--k-danger-rgb), .03); box-shadow: 0 0 0 3px rgba(var(--k-danger-rgb), .08); }
.k-tur-liste { display: flex; flex-direction: column; gap: .75rem; max-height: calc(100vh - 280px); overflow: auto; }
.k-tur-site { padding: .75rem; border: 1px solid var(--k-border); border-radius: 12px; background: #fff; }
.k-tur-site__bas { margin-bottom: .55rem; }
.k-tur-site .k-secim-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; }
.k-tur-site .k-secim { padding: .65rem 1.7rem .65rem .75rem; }
.k-tur-site .k-secim__ikon { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; font-size: .9rem; }
.k-tur-liste.is-calisiyor .k-secim { pointer-events: none; }
.k-tur-ilerleme { margin-top: .55rem; }
.k-tur-cubuk { height: 6px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.k-tur-cubuk > span { display: block; height: 100%; width: 0; background: var(--k-primary); transition: width .25s ease; }
.k-tur-ilerleme.is-calisiyor .k-tur-cubuk > span { width: 55%; animation: k-tur-pulse 1.1s ease-in-out infinite; }
.k-tur-ilerleme.is-ok .k-tur-cubuk > span { width: 100%; background: var(--k-success); animation: none; }
.k-tur-ilerleme.is-hata .k-tur-cubuk > span { width: 100%; background: var(--k-danger); animation: none; }
.k-tur-ilerleme.is-ok .k-sub { color: var(--k-success); }
.k-tur-ilerleme.is-hata .k-sub { color: var(--k-danger); }
@keyframes k-tur-pulse { 0% { transform: translateX(-40%); } 100% { transform: translateX(120%); } }
.k-arac-cubugu { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.k-arac-cubugu .k-segment { margin-right: auto; }
.k-bolum-bilgi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; font-size: .703rem; color: #5f6b7a; }
.k-onizleme-tablo td, .k-onizleme-tablo th { white-space: nowrap; }
.k-btn-40 { min-height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }

/* Site sihirbazı: blok satırları ve kapı numaraları */
.k-blok-satir { background: #ffffff; border: 1px solid #e3e8ee; border-radius: 10px; padding: .75rem .85rem; }
.k-blok-satir + .k-blok-satir { margin-top: .6rem; }
.k-blok-no {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
    background: rgba(var(--k-primary-rgb), .1); color: var(--k-primary); font-weight: 700; font-size: .78rem;
}
.k-blok-onizleme { margin-top: .45rem; color: var(--k-muted); font-size: .68rem; }
.k-kapi-listesi { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: .35rem; margin-top: .6rem; }
.k-kapi-listesi .form-control { min-height: 32px; padding: .2rem .4rem; font-size: .7rem; text-align: center; border-radius: 6px; }
.k-blok-toplam { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; font-size: .72rem; color: #495057; }
.k-blok-toplam strong { color: var(--k-primary); }
.k-ozet-tablo { font-size: .72rem; margin: 0; }
.k-ozet-tablo th { font-size: .625rem; text-transform: uppercase; color: var(--k-muted); font-weight: 600; }

/* Site profili (tema.md §10): kimlik kartı, özet kutuları, uyarılar, ayar kartları */
.k-site-secici { width: 300px; max-width: 100%; }
.k-site-secici .select2-container--bootstrap-5 .select2-selection { min-height: 38px; }
.k-site-hero { border: 1px solid #e8ebef; border-radius: 14px; overflow: hidden; }
.k-site-hero__ust {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.25rem;
    background: linear-gradient(120deg, rgba(var(--k-primary-rgb), .07) 0%, rgba(var(--k-primary-rgb), .015) 70%);
    border-bottom: 1px solid #e8ebef;
}
.k-site-hero__ust:last-child { border-bottom: 0; }
.k-site-hero__ikon {
    display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px;
    background: var(--k-primary); color: #ffffff; font-size: 1.6rem; box-shadow: 0 6px 14px rgba(var(--k-primary-rgb), .25);
}
.k-site-hero__kimlik { flex: 1 1 320px; min-width: 0; }
.k-site-hero__baslik { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.k-site-hero__baslik h5 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--k-text); }
.k-site-hero__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; color: #5f6b7a; font-size: .703rem; }
.k-site-hero__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.k-site-hero__meta .bi { color: var(--k-primary); }
.k-site-hero__meta a { text-decoration: none; font-weight: 600; }
.k-site-hero__rozetler { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.k-site-hero__eylem { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.k-site-hero__eylem .btn { min-height: 38px; border-radius: 8px; }

/* Site profili: tek şerit metrik (kart değil) */
.k-tabs-lead { border-bottom: 1px solid #e9ebec; background: #ffffff; }
.k-kpi-serit {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0;
    border-bottom: 1px solid #eef1f4; background: #fafbfc;
}
.k-kpi-serit__oge {
    flex: 1 1 0; min-width: 118px; padding: .65rem .85rem;
    border-left: 1px solid #e9ebec;
}
.k-kpi-serit__oge:first-child { border-left: 0; }
.k-kpi-serit__etiket {
    display: block; margin-bottom: .1rem; font-size: .58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: #878a99;
}
.k-kpi-serit__deger {
    display: block; font-size: .88rem; font-weight: 700; color: var(--k-text);
    line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.k-kpi-serit__oge--danger .k-kpi-serit__deger { color: var(--k-danger); }
.k-kpi-serit__oge--warning .k-kpi-serit__deger { color: #b98600; }
.k-kpi-serit__oge--success .k-kpi-serit__deger { color: #0a9c88; }
.k-kpi-serit__alt {
    display: block; margin-top: .1rem; font-size: .62rem; color: #878a99;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.k-kpi-serit__alt a { text-decoration: none; font-weight: 600; }

/* Uyarı paneli (taslak + dikkat; tek yüzey, satır) */
.k-uyari-panel { background: #fffdf8; }
.k-uyari-panel__baslik {
    display: flex; align-items: center; gap: .4rem; padding: .45rem .9rem .2rem;
    font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #9a7b2f;
}
.k-uyari-panel__baslik .bi { font-size: .8rem; }
.k-uyari-panel .k-uyari {
    border: 0; border-radius: 0; border-top: 1px solid #f3e9c9; background: transparent; padding: .55rem .9rem;
}
.k-uyari-panel .k-uyari:first-of-type { border-top: 0; }
.k-uyari-panel a.k-uyari:hover { background: rgba(255, 255, 255, .65); }

.k-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; padding: 1rem 1.25rem 1.15rem; }
.k-kpi { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; border: 1px solid #e9edf2; border-radius: 12px; background: #ffffff; min-width: 0; }
.k-kpi__ikon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; color: var(--k-primary); background: rgba(var(--k-primary-rgb), .09); }
.k-kpi--success .k-kpi__ikon { color: #0a9c88; background: rgba(10, 179, 156, .1); }
.k-kpi--warning .k-kpi__ikon { color: #b98600; background: rgba(247, 184, 75, .15); }
.k-kpi--danger .k-kpi__ikon { color: var(--k-danger); background: rgba(var(--k-danger-rgb), .09); }
.k-kpi__metin { display: flex; flex-direction: column; min-width: 0; }
.k-kpi__etiket { font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #878a99; }
.k-kpi__deger { font-size: .95rem; font-weight: 700; color: var(--k-text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-kpi--danger .k-kpi__deger { color: var(--k-danger); }
.k-kpi--warning .k-kpi__deger { color: #b98600; }
.k-kpi__alt { font-size: .646rem; color: #878a99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-kpi--yukleniyor .k-kpi__deger,
.k-kpi--yukleniyor .k-kpi__alt[data-k] {
    display: inline-block; min-width: 2.4rem; height: .85em; border-radius: 4px;
    background: linear-gradient(90deg, #eef1f4 25%, #f7f8fa 50%, #eef1f4 75%);
    background-size: 200% 100%; animation: k-kpi-pulse 1.1s ease-in-out infinite;
    color: transparent !important; user-select: none;
}
.k-kpi--yukleniyor .k-kpi__alt[data-k] { min-width: 4.5rem; height: .7em; margin-top: .15rem; }
@keyframes k-kpi-pulse { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.k-uyari-kart { border: 1px solid #f1e3b8; border-radius: 14px; background: #fffdf6; }
.k-uyari-kart > .card-header { background: transparent; border-bottom: 1px solid #f3e9c9; }
.k-uyari-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
.k-uyari {
    display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 10px; border: 1px solid transparent;
    color: var(--k-text); text-decoration: none; font-size: .72rem; background: #ffffff;
}
.k-uyari > .bi:first-child { font-size: 1rem; flex-shrink: 0; }
.k-uyari > span { flex-grow: 1; min-width: 0; }
.k-uyari > .bi-chevron-right { color: #adb5bd; font-size: .75rem; }
.k-uyari--danger { border-color: rgba(var(--k-danger-rgb), .25); }
.k-uyari--danger > .bi:first-child { color: var(--k-danger); }
.k-uyari--warning { border-color: rgba(224, 168, 0, .35); }
.k-uyari--warning > .bi:first-child { color: #b98600; }
.k-uyari--info { border-color: rgba(var(--k-primary-rgb), .2); }
.k-uyari--info > .bi:first-child { color: var(--k-primary); }
a.k-uyari:hover { background: #f8fafc; color: var(--k-primary); }
/* Yarım kalmış fatura uyarısı (site profili): metin + eylem düğmeleri */
.k-taslak-uyari { flex-wrap: wrap; padding: .75rem .9rem; }
.k-taslak-uyari__eylem { display: flex; gap: .5rem; flex-shrink: 0; margin-left: auto; }
.k-taslak-uyari > span.k-taslak-uyari__eylem { flex-grow: 0; }

/* Fatura sihirbazı: önceki / düzeltilen faturanın özel durumları */
.k-onceki-ozel {
    border: 1px solid #f0c94d; border-left: 5px solid #e0a800; border-radius: 14px; background: #fffbf0;
    box-shadow: 0 8px 22px rgba(224, 168, 0, .12); margin-bottom: 1rem; overflow: visible;
}
.k-onceki-ozel--yok {
    border-color: #b7e0c8; border-left-color: #198754; background: #f3faf6;
    box-shadow: 0 4px 14px rgba(25, 135, 84, .08);
}
.k-onceki-ozel__bas {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem 1.1rem;
    padding: .85rem 1.1rem; background: linear-gradient(135deg, #fff3cd 0%, #ffe8a3 100%);
    border-bottom: 1px solid #f0d78a; border-radius: 13px 13px 0 0; position: relative; z-index: 2;
}
.k-onceki-ozel--yok .k-onceki-ozel__bas {
    background: linear-gradient(135deg, #e8f6ee 0%, #d4efdf 100%); border-bottom: 0; border-radius: 13px;
}
.k-onceki-ozel__cikti .dropdown-menu { z-index: 1080; }
.k-onceki-ozel__ikon {
    display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px;
    border-radius: 12px; font-size: 1.25rem; color: #7a5a00; background: rgba(224, 168, 0, .22);
}
.k-onceki-ozel--yok .k-onceki-ozel__ikon { color: #0f5132; background: rgba(25, 135, 84, .15); }
.k-onceki-ozel__baslik { flex: 1 1 220px; min-width: 0; }
.k-onceki-ozel__cikti { margin-left: auto; flex: 0 0 auto; align-self: center; }
.k-onceki-ozel__cikti .btn { min-height: 38px; border-radius: 8px; }
@media (max-width: 767.98px) {
    .k-onceki-ozel__cikti { margin-left: 0; width: 100%; }
    .k-onceki-ozel__cikti .btn { width: 100%; }
}
.k-onceki-ozel__baslik h6 { margin: 0 0 .15rem; font-size: .88rem; font-weight: 800; color: #5c4500; letter-spacing: .01em; }
.k-onceki-ozel--yok .k-onceki-ozel__baslik h6 { color: #0f5132; }
.k-onceki-ozel__baslik p { margin: 0; font-size: .7rem; color: #8a6d1a; font-weight: 500; }
.k-onceki-ozel--yok .k-onceki-ozel__baslik p { color: #3d7a56; }
.k-onceki-ozel__meta {
    display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin-top: .35rem;
    font-size: .68rem; color: #6b5420; font-weight: 600;
}
.k-onceki-ozel__meta .bi { color: #b8860b; }
.k-onceki-ozel__govde { padding: .85rem 1.1rem 1rem; }
.k-onceki-ozel__ozet { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.k-onceki-ozel__chip {
    display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem;
    border-radius: 10px; border: 1px solid #f0d78a; background: #ffffff;
    color: #5c4500; text-decoration: none; font-size: .7rem; font-weight: 700; line-height: 1.3;
    transition: border-color .15s, box-shadow .15s, transform .12s; cursor: default;
}
button.k-onceki-ozel__chip { cursor: pointer; text-align: left; }
button.k-onceki-ozel__chip:hover { border-color: #e0a800; box-shadow: 0 4px 12px rgba(224, 168, 0, .18); color: #5c4500; transform: translateY(-1px); }
.k-onceki-ozel__chip .bi { font-size: .95rem; color: #b8860b; }
.k-onceki-ozel__chip strong { font-size: .95rem; font-weight: 800; color: #212529; }
.k-onceki-ozel__chip--danger { border-color: rgba(192, 57, 43, .3); background: #fff5f4; }
.k-onceki-ozel__chip--danger .bi, .k-onceki-ozel__chip--danger strong { color: var(--k-danger); }
.k-onceki-ozel__chip--info { border-color: rgba(31, 78, 121, .25); background: #f3f7fb; }
.k-onceki-ozel__chip--info .bi, .k-onceki-ozel__chip--info strong { color: var(--k-primary); }
.k-onceki-ozel__chip--success { border-color: rgba(25, 135, 84, .3); background: #f1faf5; }
.k-onceki-ozel__chip--success .bi, .k-onceki-ozel__chip--success strong { color: #0f5132; }
.k-onceki-ozel__chip .k-sub { display: inline; margin: 0; font-weight: 600; color: #8a6d1a; font-size: .646rem; }
.k-onceki-ozel__govde > .k-sub { color: #8a6d1a; font-size: .646rem; }
.k-onceki-ozel__modal .k-onceki-ozel__liste { margin: 0; padding: 0; list-style: none; border: 1px solid #f0d78a; border-radius: 10px; overflow: hidden; }
.k-onceki-ozel__modal .k-onceki-ozel__liste li {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: .35rem .75rem;
    padding: .55rem .75rem; border-top: 1px dashed #f0e4bc; font-size: .7rem; background: #fff;
}
.k-onceki-ozel__modal .k-onceki-ozel__liste li:first-child { border-top: 0; }
.k-onceki-ozel__modal .k-onceki-ozel__liste li:nth-child(even) { background: #fffdf7; }
@media (max-width: 575.98px) {
    .k-onceki-ozel__modal .k-onceki-ozel__liste li { grid-template-columns: 1fr; }
}
.k-onceki-ozel__satir-bas { font-weight: 700; color: var(--k-text); min-width: 0; }
.k-onceki-ozel__modal .k-sub { display: block; color: #878a99; font-size: .646rem; font-weight: 500; margin-top: 1px; }
.k-onceki-ozel__modal .k-sub-danger { display: block; color: var(--k-danger); font-size: .646rem; font-weight: 600; margin-top: 1px; }
.k-onceki-ozel__satir-detay { color: #5f6b7a; min-width: 0; text-align: right; }
@media (max-width: 575.98px) {
    .k-onceki-ozel__satir-detay { text-align: left; }
}
.k-onceki-ozel__fark { display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.k-onceki-ozel__fark .k-kiyas-deger { font-size: .68rem; }
.k-onceki-ozel__daha { padding: .45rem .75rem; margin-top: .5rem; border: 1px dashed #f0e4bc; border-radius: 8px; font-size: .66rem; color: #8a6d1a; font-weight: 600; background: #fff8e6; }

.k-ayar-grup + .k-ayar-grup { margin-top: 1.1rem; }
.k-ayar-grup__baslik {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .646rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: #878a99;
}
.k-ayar-grup__baslik::after { content: ""; flex-grow: 1; height: 1px; background: #e9ebec; }

/* Genel Bakış ayar listesi (satır) — profil özeti */
.k-ayar-liste {
    border: 1px solid #e3e8ee; border-radius: 12px; background: #ffffff; overflow: hidden;
}
.k-ayar-satir {
    display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .9rem;
    border-top: 1px solid #f0f2f5;
}
.k-ayar-satir:first-child { border-top: 0; }
.k-ayar-satir:hover { background: #fafbfc; }
.k-ayar-satir__ikon {
    display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; margin-top: 1px;
    border-radius: 8px; color: var(--k-primary); background: rgba(var(--k-primary-rgb), .09); font-size: .9rem;
}
.k-ayar-satir__govde { flex: 1 1 auto; min-width: 0; }
.k-ayar-satir__baslik { margin: 0; font-size: .76rem; font-weight: 700; line-height: 1.3; }
.k-ayar-satir__ozet {
    margin: .15rem 0 0; color: #495057; font-size: .703rem; font-weight: 500; line-height: 1.4;
    overflow-wrap: anywhere;
}
.k-ayar-satir__ozet.k-bos,
.k-ayar-satir__ozet .k-bos { color: #adb5bd; font-weight: 400; }
.k-ayar-satir__not { margin: .25rem 0 0; }
.k-ayar-satir__eylem {
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; flex: 0 0 auto; max-width: 100%;
}
.k-ayar-satir__eylem .btn { min-height: 30px; border-radius: 6px; }
@media (max-width: 575.98px) {
    .k-ayar-satir { flex-wrap: wrap; }
    .k-ayar-satir__eylem { width: 100%; justify-content: flex-start; padding-left: calc(32px + .75rem); }
}

/* Ayar kartları (daire profili / fatura sihirbazı yükleme) */
.k-ayar-grid { display: grid; grid-template-columns: 1fr; gap: .85rem; }
@media (min-width: 768px) { .k-ayar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1900px) { .k-ayar-grid { grid-template-columns: repeat(4, 1fr); } }
.k-ayar-kart {
    display: flex; flex-direction: column; border: 1px solid #e3e8ee; border-radius: 12px; background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.k-ayar-kart:hover { border-color: rgba(var(--k-primary-rgb), .35); box-shadow: 0 6px 18px rgba(30, 44, 75, .07); }
.k-ayar-kart__bas { display: flex; align-items: flex-start; gap: .65rem; padding: .8rem .9rem .6rem; }
.k-ayar-kart__ikon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; color: var(--k-primary); background: rgba(var(--k-primary-rgb), .09); font-size: .95rem; }
.k-ayar-kart__bas > div { flex-grow: 1; min-width: 0; }
.k-ayar-kart__bas h6 { margin: 0 0 1px; font-size: .76rem; font-weight: 700; }
.k-ayar-kart__bas p { margin: 0; color: #878a99; font-size: .646rem; }
.k-ayar-kart__liste { margin: 0; padding: .1rem .9rem .5rem; flex-grow: 1; }
.k-ayar-kart__liste > div { display: flex; justify-content: space-between; gap: .75rem; padding: .32rem 0; border-top: 1px dashed #edf0f3; font-size: .703rem; }
.k-ayar-kart__liste dt { font-weight: 500; color: #6c757d; flex-shrink: 0; }
.k-ayar-kart__liste dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.k-ayar-kart__liste dd.k-bos { color: #adb5bd; font-weight: 400; }
.k-ayar-kart__alt { display: flex; gap: .5rem; padding: .6rem .9rem .8rem; border-top: 1px solid #f0f2f5; }
.k-ayar-kart__alt .btn { flex: 1 1 auto; min-height: 34px; border-radius: 8px; }

.k-tehlike { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; padding: .9rem 1rem; border: 1px solid rgba(var(--k-danger-rgb), .25); border-radius: 12px; background: rgba(var(--k-danger-rgb), .03); }
.k-tehlike h6 { margin: 0 0 2px; font-size: .76rem; font-weight: 700; color: var(--k-danger); }
.k-tehlike p { margin: 0; color: #6c757d; font-size: .684rem; }
.k-tehlike .btn { min-height: 38px; border-radius: 8px; }

/* Yan menülü sekmeler (<k-tabs layout="yan">): solda gruplu dikey menü, sağda başlık + eylemler + içerik */
.k-tabs-yan__govde { display: flex; min-height: 440px; }
.k-tabs-yan__nav { flex: 0 0 220px; padding: .75rem .6rem; background: #fafbfc; border-right: 1px solid #e9ebec; border-radius: var(--k-radius) 0 0 var(--k-radius); }
.k-yan-nav { flex-direction: column; flex-wrap: nowrap; gap: 2px; position: sticky; top: calc(var(--k-topbar-height) + .75rem); }
.k-yan-nav__grup { padding: .85rem .65rem .3rem; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #878a99; }
.k-yan-nav__grup:first-child { padding-top: .2rem; }
.k-yan-nav .nav-link { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border-radius: .5rem; color: #495057; font-size: .72rem; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.k-yan-nav .nav-link .bi { width: 1.1rem; text-align: center; font-size: .95rem; color: #878a99; }
.k-yan-nav .nav-link:hover { background: #ffffff; color: var(--k-primary); }
.k-yan-nav .nav-link:hover .bi { color: var(--k-primary); }
.k-yan-nav .nav-link.active { background: var(--k-primary); color: #ffffff; font-weight: 600; box-shadow: 0 .25rem .6rem rgba(var(--k-primary-rgb), .25); }
.k-yan-nav .nav-link.active .bi { color: #ffffff; }
.k-yan-nav__sayi { margin-left: auto; padding: .1rem .45rem; border-radius: 1rem; background: #eef1f5; color: #6c757d; font-size: .62rem; font-weight: 600; }
.k-yan-nav .nav-link.active .k-yan-nav__sayi { background: rgba(255, 255, 255, .2); color: #ffffff; }
.k-tabs-yan__icerik { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.k-tabs-yan__icerik > .card-header { display: flex; align-items: center; min-height: 62px; padding: 12px 16px; background: #ffffff; border-bottom: 1px dashed #e9ebec; }
.k-tabs-yan__icerik > .card-header > div { width: 100%; }
.k-tabs-yan__baslik { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .85rem; font-weight: 700; }
.k-tabs-yan__baslik .bi { color: var(--k-primary); }
@media (max-width: 991.98px) {
    .k-tabs-yan__govde { flex-direction: column; min-height: 0; }
    .k-tabs-yan__nav { flex: none; padding: .5rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e9ebec; border-radius: var(--k-radius) var(--k-radius) 0 0; }
    .k-yan-nav { flex-direction: row; position: static; }
    .k-yan-nav__grup { display: none; }
    .k-yan-nav .nav-link { white-space: nowrap; }
}

/* Üst menülü sekmeler (layout="ust"): sekmeler üstte, altında aktif sekme başlığı + eylemler */
.k-tabs-ust__nav { padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid #e9ebec; border-radius: var(--k-radius) var(--k-radius) 0 0; }
.k-tabs-ust__nav .k-tabs { display: flex; }
.k-tabs-ust .k-tabs .k-yan-nav__sayi { margin-left: .15rem; }
.k-tabs-ust .k-tabs .nav-link.active .k-yan-nav__sayi { background: rgba(255, 255, 255, .2); color: #ffffff; }
.k-tabs-ust > .card-header { display: flex; align-items: center; min-height: 62px; }
.k-tabs-ust > .card-header > div { width: 100%; }
.k-tabs-diger .dropdown-toggle { border: 0; }
.k-tabs-diger__menu { min-width: 200px; padding: .35rem; border: 1px solid #e9ebec; border-radius: 10px; box-shadow: 0 .5rem 1.25rem rgba(33, 37, 41, .1); }
.k-tabs-diger__menu .dropdown-item { display: flex; align-items: center; gap: .55rem; padding: .45rem .65rem; border-radius: .45rem; font-size: .72rem; font-weight: 500; color: #495057; }
.k-tabs-diger__menu .dropdown-item .bi { width: 1.1rem; text-align: center; font-size: .95rem; color: #878a99; }
.k-tabs-diger__menu .dropdown-item:hover { background: #f3f6f9; color: var(--k-primary); }
.k-tabs-diger__menu .dropdown-item.active { background: var(--k-primary); color: #ffffff; font-weight: 600; }
.k-tabs-diger__menu .dropdown-item.active .bi { color: #ffffff; }
.k-tabs-diger__menu .dropdown-item.active .k-yan-nav__sayi { background: rgba(255, 255, 255, .2); color: #ffffff; }
@media (max-width: 991.98px) {
    .k-tabs-ust__nav { overflow-x: auto; }
    .k-tabs-ust__nav .k-tabs { flex-wrap: nowrap; width: max-content; }
    .k-tabs-ust .k-tabs .nav-link { white-space: nowrap; }
}

/* Segment seçici (bir sekme içinde tür / görünüm seçimi; ör. cihaz türleri) */
.k-segment { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; background: #f3f6f9; border: 1px solid #e9ebec; border-radius: .6rem; max-width: 100%; }
.k-segment__oge { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 0; border-radius: .45rem; background: transparent; color: #495057; font-size: .72rem; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.k-segment__oge:hover { background: #ffffff; color: var(--k-primary); }
.k-segment__oge.active { background: var(--k-primary); color: #ffffff; box-shadow: 0 .25rem .6rem rgba(var(--k-primary-rgb), .25); }
.k-segment__oge.active .k-yan-nav__sayi { background: rgba(255, 255, 255, .2); color: #ffffff; }
.k-segment__oge.active .text-warning { color: #ffe08a !important; }

/* Durum filtresi: gizli değer + btn-group (radio yok; tek seçim düğmelerle) */
.k-durum-grup { width: 100%; }
.k-durum-grup > .btn { flex: 1 1 0; font-size: .7818rem; }

/* Sıralama listesi (sürükle-bırak; ör. daire sıralaması, tema.md §10) */
.k-sira-liste { max-height: calc(100vh - 330px); min-height: 200px; overflow: auto; border: 1px solid #e9ebec; border-radius: 10px; }
.k-sira-oge { display: flex; align-items: center; gap: .75rem; padding: .45rem .75rem; border-bottom: 1px solid #e9ebec; background: #ffffff; font-size: .74rem; cursor: grab; }
.k-sira-oge:nth-child(even) { background: #f8fafc; }
.k-sira-oge:last-child { border-bottom: 0; }
.k-sira-oge:hover { background: #f0f4f9; }
.k-sira-oge.suruklenen { opacity: .45; }
.k-sira-oge.hedef-ust { box-shadow: inset 0 2px 0 var(--k-primary); }
.k-sira-oge.hedef-alt { box-shadow: inset 0 -2px 0 var(--k-primary); }
.k-sira-tut { color: var(--k-muted); font-size: .9rem; }
.k-sira-no { min-width: 2.2rem; text-align: right; font-weight: 600; color: var(--k-primary); }
.k-sira-ad { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.k-sira-ad .k-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-sira-bos { padding: 1.5rem; text-align: center; color: var(--k-muted); }

/* Excel ile toplu güncelleme: kontrol sonucu */
.k-excel-ozet { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
/* Pay ölçer cihaz modalı: Kc / Kq önizlemesi (tema.md §10) */
.k-po-ozet { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; padding: .55rem .8rem; border: 1px dashed var(--k-border); border-radius: 8px; background: #f8f9fb; font-size: .74rem; color: var(--k-muted); }
.k-po-ozet strong { color: var(--k-text); font-weight: 600; }
.k-po-ozet:empty { display: none; }
/* Fatura düzeltme geçmişi (ui.fatura.duzeltmeGecmisi) */
.k-gecmis-oge { border: 1px solid #e9ebec; border-radius: 10px; padding: .75rem .9rem; margin-bottom: .75rem; }
.k-gecmis-oge__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.k-gecmis-oge .k-excel-liste { margin-bottom: 0; }
.k-excel-liste { max-height: 280px; overflow: auto; border: 1px solid #e9ebec; border-radius: 10px; margin-bottom: .75rem; }
.k-excel-liste .table { margin: 0; }
.k-excel-liste thead th { position: sticky; top: 0; background: #f3f6f9; z-index: 1; }

/* Toplu fatura: site / hizmet seçim listesi ve fatura listesindeki taslak damgası */
.k-excel-liste.k-toplu-liste { max-height: calc(100vh - 320px); min-height: 220px; }
.k-toplu-liste td { vertical-align: top; }
.k-toplu-liste td.k-toplu-site { white-space: normal; min-width: 330px; max-width: 540px; }
.k-toplu-engel { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .25rem; }
.k-toplu-engel .k-sub-danger { margin: 0; color: var(--k-danger); font-size: .646rem; }
.k-toplu-engel .btn { height: 28px; min-height: 28px; padding: 0 .5rem; border-radius: 6px; font-size: .66rem; gap: .25rem; }
.k-toplu-hizmet { min-width: 8.5rem; margin: 0; }
.k-toplu-hizmet > .form-check { display: flex; align-items: center; gap: .4rem; min-height: 0; }
.k-toplu-hizmet .form-check-label { white-space: nowrap; }
.k-toplu-oran { min-width: 0; padding: .3em .5em; }
.k-toplu-durumlar { display: flex; flex-direction: column; align-items: flex-start; margin-top: .2rem; }
.k-toplu-link { padding: 0; border: 0; background: none; font: inherit; font-size: .665rem; line-height: 1.5; color: inherit; text-align: left; cursor: pointer; }
.k-toplu-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.form-check-label .k-toplu-link { font-size: inherit; }
.k-toplu-pasif > td { background: #fbfbfc; }
.k-toplu-pasif .k-toplu-hizmet { opacity: .65; }
.k-toplu-aciklama { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .75rem; padding: .6rem .8rem; border: 1px dashed var(--k-border); border-radius: 8px; background: #f8f9fb; font-size: .68rem; color: var(--k-muted); }
.k-toplu-aciklama strong { color: var(--k-text); }
.k-toplu-aciklama__rozetler { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.k-toplu-aciklama__rozetler .badge { margin-right: .25rem; }
.k-toplu-cihaz-bas { margin-bottom: .75rem; }
.k-excel-liste.k-toplu-cihaz { max-height: calc(100vh - 430px); min-height: 220px; }
.k-toplu-dosya { max-width: 220px; }
.k-segment--sar { flex-wrap: wrap; }
.k-havuz-yukle { margin-bottom: 1.1rem; }
.k-havuz-bolum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin-bottom: .55rem; }
.k-havuz-suzgec { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; }
.k-taslak-damga {
    display: inline-block; padding: .15rem .55rem; border: 2px dashed #f7b84b; border-radius: .375rem;
    background: #fff8e1; color: #b7791f; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    transform: rotate(-4deg); line-height: 1.3;
}
.k-excel-eski { color: #878a99; text-decoration: line-through; }
.k-excel-adim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.k-excel-adim ul { margin: 0; padding-left: 1.1rem; color: #495057; font-size: .703rem; }

/* Tablo içinde anında kaydedilen anahtar (ui.render.toggle) */
.k-tablo-switch { display: inline-flex; justify-content: center; margin: 0; padding-left: 0; min-height: 0; }
.k-tablo-switch .form-check-input { width: 2rem; height: 1.05rem; margin: 0; float: none; cursor: pointer; }

/* Rol listesi (rol değiştirme modalı) */
.k-rol { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .25rem; border-bottom: 1px solid #e9ebec; }
.k-rol:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ bildirim / boş durum / modal */
.k-toast { border: 0; box-shadow: 0 4px 16px rgba(16, 42, 67, .15); border-left: 4px solid var(--k-info); min-width: 280px; }
.k-toast-success { border-left-color: var(--k-success); }
.k-toast-danger { border-left-color: var(--k-danger); }
.k-toast-warning { border-left-color: var(--k-warning); }
.k-toast-icon { font-size: 1.1rem; line-height: 1.3; }
.k-toast-success .k-toast-icon { color: var(--k-success); }
.k-toast-danger .k-toast-icon { color: var(--k-danger); }
.k-toast-warning .k-toast-icon { color: var(--k-warning); }
.k-toast-info .k-toast-icon { color: var(--k-info); }
.btn-close-sm { font-size: .65rem; }

.k-empty .bi { font-size: 2.5rem; color: #adb5bd; }

.modal-header, .modal-footer { padding: .75rem 1rem; }
.modal-content { border: 0; border-radius: var(--k-radius); }
/* <k-modal form="true">: başlık / gövde / alt form içinde; kaydırılabilir modalda yalnız gövde kayar, alt butonlar hep görünür. */
.modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: 100%; overflow: hidden; }
.modal-dialog-scrollable .modal-content > form > .modal-body { overflow-y: auto; }

/* Onay penceresi (SweetAlert2) — tema kartı görünümünde, kompakt */
.swal2-popup.k-swal { width: 380px; max-width: calc(100% - 32px); padding: 1.5rem 1.5rem 1.25rem; border-radius: 14px; font-family: var(--bs-body-font-family); box-shadow: 0 16px 40px rgba(16, 42, 67, .2); }
.k-swal .swal2-icon { width: 3.4rem; height: 3.4rem; margin: .25rem auto .75rem; border-width: 2px; }
.k-swal .swal2-icon .swal2-icon-content { font-size: 2rem; }
.k-swal .swal2-icon.swal2-warning { border-color: rgba(224, 168, 0, .35); color: #e0a800; background: rgba(224, 168, 0, .08); }
.k-swal .swal2-icon.swal2-question, .k-swal .swal2-icon.swal2-info { border-color: rgba(var(--k-primary-rgb), .3); color: var(--k-primary); background: rgba(var(--k-primary-rgb), .07); }
.k-swal .swal2-title { padding: 0; font-size: .95rem; font-weight: 700; color: var(--k-text); }
.k-swal .swal2-html-container { margin: .4rem 0 0; padding: 0; font-size: .74rem; color: #6c757d; line-height: 1.5; }
.k-swal .swal2-actions { margin-top: 1.25rem; gap: .5rem; flex-wrap: wrap; }
.k-swal .swal2-actions .btn { min-width: 96px; min-height: 38px; border-radius: 9px; margin: 0; }
.swal2-container.swal2-backdrop-show { background: rgba(16, 42, 67, .35); }

/* ------------------------------------------------------------------ giriş / hata sayfaları (tema.md §4 auth) */
.k-auth {
    min-height: 100vh;
    margin: 0;
    background: #fff;
    color: var(--k-text);
}
.k-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .9fr);
}
.k-auth-brand {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    padding: 2.75rem 3rem 2.25rem;
    color: #eef4fa;
    background:
        linear-gradient(180deg, rgba(8, 22, 38, .55) 0%, rgba(10, 28, 48, .72) 45%, rgba(8, 20, 34, .88) 100%),
        url("../img/auth-hero.jpg") center / cover no-repeat;
    overflow: hidden;
}
.k-auth-brand__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 20% 10%, rgba(41, 169, 232, .18), transparent 60%),
        linear-gradient(115deg, rgba(8, 20, 34, .35) 0%, transparent 55%);
    pointer-events: none;
}
.k-auth-brand__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 36rem;
    animation: k-auth-rise .7s ease both;
}
.k-auth-brand__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.35rem;
    padding: .42rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .88);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
}
.k-auth-brand__title {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.12;
    color: #fff;
    max-width: 18ch;
}
.k-auth-brand__title em {
    font-style: normal;
    color: #7ecdf0;
}
.k-auth-brand__text {
    margin: 0 0 1.85rem;
    font-size: .86rem;
    line-height: 1.6;
    color: rgba(238, 244, 250, .78);
    max-width: 34rem;
}
.k-auth-brand__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1.5rem;
}
.k-auth-feature {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(12, 28, 46, .45);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.k-auth-feature__icon {
    display: grid;
    place-items: center;
    flex: 0 0 2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #9fd8f5;
    font-size: 1.05rem;
}
.k-auth-feature strong {
    display: block;
    margin-bottom: .2rem;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
}
.k-auth-feature span {
    display: block;
    font-size: .68rem;
    line-height: 1.4;
    color: rgba(238, 244, 250, .68);
}
.k-auth-brand__status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .7rem;
    color: rgba(238, 244, 250, .72);
}
.k-auth-brand__dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #3dd68c;
    box-shadow: 0 0 0 4px rgba(61, 214, 140, .18);
}
.k-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2.5rem 1.5rem;
    background: #fff;
}
.k-auth-panel {
    width: 100%;
    max-width: 400px;
    animation: k-auth-rise .65s .05s ease both;
}
.k-auth-panel__logo {
    text-align: center;
    margin-bottom: 1.75rem;
}
.k-auth-panel__logo img {
    height: 52px;
    width: auto;
    max-width: 100%;
}
.k-auth-head {
    text-align: center;
    margin-bottom: 1.6rem;
}
.k-auth-head__title {
    margin: 0 0 .4rem;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #152536;
}
.k-auth-head__text {
    margin: 0;
    font-size: .8rem;
    line-height: 1.5;
    color: #7a8796;
}
.k-auth-form { display: grid; gap: 1rem; }
.k-auth-field .form-label {
    margin-bottom: .4rem;
    font-size: .74rem;
    font-weight: 600;
    color: #3d4b5c;
}
.k-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .4rem;
}
.k-auth-control {
    position: relative;
    display: flex;
    align-items: center;
}
.k-auth-control__icon {
    position: absolute;
    left: .95rem;
    z-index: 2;
    color: #8a97a8;
    font-size: 1rem;
    pointer-events: none;
}
.k-auth-control .form-control {
    min-height: 48px;
    padding-left: 2.55rem;
    padding-right: 2.55rem;
    border: 1px solid #e4e9ef;
    border-radius: 12px;
    background: #f4f7fb;
    font-size: .8rem;
    box-shadow: none;
}
.k-auth-control .form-control:focus {
    border-color: rgba(var(--k-primary-rgb), .45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--k-primary-rgb), .1);
}
.k-auth-eye {
    position: absolute;
    right: .55rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a97a8;
    padding: 0;
}
.k-auth-eye:hover { color: var(--k-primary); background: rgba(var(--k-primary-rgb), .06); }
.k-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}
.k-auth-meta .form-check-label { font-size: .74rem; color: #3d4b5c; }
.k-auth-secure {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    color: #7a8796;
}
.k-auth-secure .bi { color: var(--k-primary); }
.k-auth-link {
    font-size: .72rem;
    font-weight: 600;
    color: var(--k-primary);
    text-decoration: none;
}
.k-auth-link:hover { color: var(--k-primary-hover); text-decoration: underline; }
.k-auth-submit {
    min-height: 50px;
    margin-top: .15rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: .84rem;
    box-shadow: 0 10px 24px rgba(var(--k-primary-rgb), .22);
}
.k-auth-submit:hover { box-shadow: 0 14px 28px rgba(var(--k-primary-rgb), .28); }
.k-auth-help {
    display: block;
    width: 100%;
    margin: 0;
    padding: .95rem 1rem;
    border: 1px solid #e7ecf2;
    border-radius: 14px;
    background: #f7f9fc;
    color: #5c6b7c;
    font-size: .74rem;
    text-align: center;
    text-decoration: none;
    line-height: 1.45;
}
.k-auth-help strong { color: var(--k-primary); font-weight: 700; }
.k-auth-help:hover {
    background: #f1f5f9;
    color: #5c6b7c;
    border-color: #dbe3ec;
}
button.k-auth-help { cursor: pointer; }
/* Giriş honeypot: ekran dışı, botlar doldurur */
.k-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.k-auth-panel__foot {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
    font-size: .68rem;
    color: #9aa6b4;
}
.k-error-icon { font-size: 3rem; color: var(--k-primary); }

@keyframes k-auth-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
    .k-auth-shell { grid-template-columns: 1fr; }
    .k-auth-brand {
        min-height: auto;
        align-items: stretch;
        padding: 1.5rem 1.25rem 1.75rem;
        background-position: center 30%;
    }
    .k-auth-brand__title {
        max-width: none;
        font-size: 1.55rem;
    }
    .k-auth-brand__text { margin-bottom: 1.1rem; font-size: .78rem; }
    .k-auth-brand__cards { display: none; }
    .k-auth-brand__status { display: none; }
    .k-auth-main {
        min-height: auto;
        padding: 1.75rem 1.15rem 2rem;
    }
    .k-auth-panel { max-width: 420px; }
    .k-auth-head__title { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .k-auth-brand__content,
    .k-auth-panel { animation: none; }
}

/* ---------------------------------------------------------------- PDF önizleme modalı (iframe; üst üste modal z-index'i ui.js'te) */
.modal-body:has(> .k-pdf-onizleme) { padding: 0; background: #525659; }
.k-pdf-onizleme { display: block; width: 100%; height: calc(100vh - 11rem); min-height: 420px; border: 0; }

/* ---------------------------------------------------------------- kısa yol çıktı menüsü (ui.fatura.hizliCikti) */
.k-hizli-menu { position: fixed !important; z-index: 2000; min-width: 17.5rem; padding: .35rem 0; margin: 0; overflow-y: auto; display: none; }
.k-hizli-menu.show { display: block !important; }
.k-hizli-satir { display: flex; align-items: center; gap: .25rem; padding: .3rem .75rem .3rem 1rem; }
.k-hizli-satir:hover { background: #f3f6f9; }
.k-hizli-satir__ad { flex: 1; display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; color: var(--k-text); }
.k-hizli-satir__ad .bi { color: var(--k-primary); }
.k-hizli-menu__not { padding: .2rem 1rem .1rem; font-size: .625rem; color: var(--k-muted); }
/* Çıktı modalı: seçilen raporların PDF sırası */
.k-fc-sira { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .72rem; }
.k-fc-sira__etiket { font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--k-muted); margin-right: .15rem; }

/* Raporlar (tema.md §10): grup başlığı + açıklamalı rapor kartları */
.k-rapor-grup { margin-bottom: 1.35rem; }
.k-rapor-grup__baslik { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .75rem; }
.k-rapor-grup__ikon {
    display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; margin-top: .05rem;
    border-radius: 50%; background: var(--k-surface); border: 1px solid var(--k-border); color: var(--k-primary); font-size: 1rem;
}
.k-rapor-grup__baslik h6 { margin: 0; font-weight: 700; }
.k-rapor-grup__baslik p { margin: .12rem 0 0; font-size: .7rem; color: var(--k-muted); }
.k-rapor-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
@media (min-width: 768px) { .k-rapor-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .k-rapor-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.k-rapor-kart {
    display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 100%;
    padding: 1rem 1.05rem .85rem; border: 1px solid #e8ebef; border-radius: 14px; background: var(--k-surface);
    box-shadow: 0 1px 2px rgba(16, 42, 67, .04); color: var(--k-text); font: inherit; text-align: left; cursor: pointer;
    --rk: var(--k-primary); --rk-bg: rgba(var(--k-primary-rgb), .1);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.k-rapor-kart:hover { border-color: rgba(var(--k-primary-rgb), .35); box-shadow: 0 8px 22px rgba(30, 44, 75, .07); }
.k-rapor-kart:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(var(--k-primary-rgb), .15); }
.k-rapor-kart--success { --rk: var(--k-success); --rk-bg: color-mix(in srgb, var(--k-success) 14%, #fff); }
.k-rapor-kart--info { --rk: var(--k-info); --rk-bg: color-mix(in srgb, var(--k-info) 12%, #fff); }
.k-rapor-kart--warning { --rk: #9a6b00; --rk-bg: #fff6dc; }
.k-rapor-kart--danger { --rk: var(--k-danger); --rk-bg: rgba(var(--k-danger-rgb), .1); }
.k-rapor-kart--secondary { --rk: var(--k-secondary); --rk-bg: #f3f4f6; }
.k-rapor-kart__ikon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: .7rem; border-radius: 10px; background: var(--rk-bg); color: var(--rk); font-size: 1.05rem; }
.k-rapor-kart strong { font-size: .78rem; font-weight: 700; line-height: 1.3; }
.k-rapor-kart__metin { margin-top: .25rem; font-size: .68rem; font-weight: 400; line-height: 1.45; color: var(--k-muted); }
.k-rapor-kart__git { display: inline-flex; align-items: center; gap: .3rem; margin-top: auto; padding-top: .85rem; font-size: .7rem; font-weight: 600; color: var(--rk); }

/* Ana sayfa panosu (tema.md §10) */
a.k-kpi { color: inherit; text-decoration: none; }
a.k-kpi:hover { border-color: rgba(var(--k-primary-rgb), .45); color: inherit; }
.k-pano { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; align-items: start; margin-bottom: .85rem; }
@media (min-width: 992px) { .k-pano { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .9fr); } }
.k-pano__yan { display: flex; flex-direction: column; gap: .85rem; }
.k-pano .k-card { margin-bottom: 0; }
.k-grafik { position: relative; height: 220px; }

/* Yardım videosu (iş akışı görseli) */
.k-form-hero--yardim { justify-content: space-between; gap: 12px; }
.k-form-hero--yardim > .btn { flex: 0 0 auto; align-self: center; white-space: nowrap; }
.k-yardim-video {
    display: flex; flex-direction: column; gap: .75rem;
    border: 1px solid #e8ebef; border-radius: 14px; background: #0f1c2e;
    box-shadow: 0 10px 28px rgba(15, 28, 46, .18); overflow: hidden;
}
.k-yardim-video__sahne {
    position: relative; min-height: 340px; padding: 1.1rem 1.15rem 1rem;
    background: linear-gradient(160deg, #13233a 0%, #1a3354 55%, #16304f 100%);
}
.k-yardim-video__kare {
    position: absolute; inset: 1.1rem 1.15rem 1rem; display: none; flex-direction: column; gap: .7rem;
    opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease;
}
.k-yardim-video__kare.active { display: flex; opacity: 1; transform: none; position: relative; inset: auto; }
.k-yardim-video__ust {
    display: flex; align-items: center; gap: .55rem; color: #fff;
}
.k-yardim-video__ust-ikon {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: rgba(255, 255, 255, .12); color: #9fd0ff; font-size: 1rem;
}
.k-yardim-video__ust strong { display: block; font-size: .78rem; font-weight: 700; line-height: 1.25; }
.k-yardim-video__ust small { display: block; font-size: .65rem; color: rgba(255, 255, 255, .65); }
.k-yardim-video__panel {
    flex: 1 1 auto; display: flex; flex-direction: column; gap: .45rem;
    padding: .75rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.k-yardim-video__aciklama {
    margin: 0 0 .15rem; color: #495057; font-size: .72rem; line-height: 1.5; font-weight: 500;
}
.k-yardim-video__satir {
    display: flex; align-items: center; gap: .5rem; min-height: 28px;
    padding: .35rem .55rem; border-radius: 8px; background: #f3f6f9; color: #405189; font-size: .68rem;
}
.k-yardim-video__satir .bi { color: var(--k-primary); }
.k-yardim-video__satir--vurgu {
    background: rgba(var(--k-primary-rgb), .1); color: var(--k-primary); font-weight: 600;
    animation: k-yardim-pulse 1.4s ease-in-out infinite;
}
.k-yardim-video__chip {
    display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .5rem;
    border-radius: 999px; background: rgba(var(--k-primary-rgb), .1); color: var(--k-primary);
    font-size: .62rem; font-weight: 600;
}
.k-yardim-video__chip.ok { background: rgba(10, 179, 156, .12); color: #0ab39c; }
.k-yardim-video__kontroller {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem;
    padding: .65rem .85rem .75rem; background: #0b1626; color: rgba(255, 255, 255, .85);
}
.k-yardim-video__kontroller .btn {
    --bs-btn-bg: rgba(255, 255, 255, .08); --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: rgba(255, 255, 255, .16); --bs-btn-hover-border-color: transparent;
    --bs-btn-color: #fff; min-width: 34px; min-height: 34px; padding: .25rem .5rem; border-radius: 8px;
}
.k-yardim-video__ilerleme {
    position: relative; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden;
}
.k-yardim-video__ilerleme > span {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: linear-gradient(90deg, #4aa3e8, #0ab39c); transition: width .25s linear;
}
.k-yardim-video__meta { font-size: .65rem; font-weight: 600; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.k-yardim-video__adimlar {
    display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .85rem .85rem; background: #0b1626;
}
.k-yardim-video__adim {
    display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem;
    border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .55);
    font-size: .62rem; font-weight: 600; cursor: pointer;
}
.k-yardim-video__adim.active { background: rgba(74, 163, 232, .22); color: #9fd0ff; }
.k-yardim-video__adim.tamam { color: #7ddecf; }
@keyframes k-yardim-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--k-primary-rgb), .18); }
    50% { box-shadow: 0 0 0 4px rgba(var(--k-primary-rgb), .08); }
}
@media (max-width: 575.98px) {
    .k-form-hero--yardim { flex-wrap: wrap; }
    .k-form-hero--yardim > .btn { width: 100%; }
    .k-yardim-video__sahne { min-height: 360px; }
}


/* ==========================================================================
   BankaHub ekleri (tema.md §1: yeni stil önce buraya eklenir; 04_ui/tema.md)
   ========================================================================== */

/* Sidebar logosu SVG (koyu zemin) */
.k-sidebar-brand img, .k-topbar-logo img { height: 30px; width: auto; }

/* Bağlantı testi sonucu kutusu */
.k-test-sonuc { border: 1px solid var(--k-border); border-radius: 12px; padding: .9rem 1rem; background: #f8fafc; }
.k-test-sonuc__baslik { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.k-test-sonuc__mesaj { margin-top: .35rem; color: var(--k-muted); word-break: break-word; }
.k-test-sonuc--ok { border-color: rgba(25, 135, 84, .35); background: rgba(25, 135, 84, .06); }
.k-test-sonuc--hata { border-color: rgba(192, 57, 43, .35); background: rgba(192, 57, 43, .06); }
.k-test-sonuc--bekliyor { border-color: rgba(224, 168, 0, .4); background: rgba(224, 168, 0, .07); }

/* Tutar renkleri (hareket listesi) */
.k-tutar-giris { color: var(--k-success); font-weight: 600; }
.k-tutar-cikis { color: var(--k-danger); font-weight: 600; }

/* Panel kutucukları */
.k-kpi { display: flex; align-items: center; gap: .8rem; }
.k-kpi__ikon { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.k-kpi__deger { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.k-kpi__ad { color: var(--k-muted); font-size: .72rem; }

/* IBAN alanı: tek aralıklı, okunaklı */
.k-iban { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }

/* Kod blokları (hata mesajı, ham ileti) */
.k-pre { white-space: pre-wrap; word-break: break-word; font-size: .7rem; background: #f8f9fb; border: 1px solid var(--k-border); border-radius: 8px; padding: .6rem .75rem; max-height: 240px; overflow: auto; margin: 0; }

/* Detay tablosunda etiket sütunu */
.k-detay-ad { width: 30%; }
