/* ==========================================================================
   KX — Türk Telekom BYS kurumsal arayüz sistemi
   Tek kaynaklı tasarım katmanı: renk/yazı/boşluk sözlüğü, açık + koyu tema, kabuk (menü, üst çubuk, sayfa başlığı),
   ortak bileşenler (kart, tablo, form, düğme, rozet, uyarı, pencere), yükleme animasyonu ve giriş sayfası.
   Eski yama katmanlarının (kural-uyum, tt-sayfalar) üzerine yazar; sayfa içi kc-* sınıfları bu sözlükten beslenir.
   Marka: lacivert #162B54 · turkuaz #1BBDC8 · mavi #218FCE · kırmızı #E73425
   ========================================================================== */

/* ---------------------------------------------------------------- 1. Sözlük */
:root,
html[data-theme="light"] {
    color-scheme: light;
    --kx-navy: #162b54;
    --kx-navy-900: #0b1731;
    --kx-navy-800: #0f2145;
    --kx-navy-700: #1b3566;
    --kx-teal: #1bbdc8;
    --kx-teal-600: #12a3ae;
    --kx-teal-700: #0d808a;
    --kx-blue: #218fce;
    --kx-red: #e73425;
    --kx-green: #1f9d63;
    --kx-amber: #e29a0b;

    --kx-bg: #f2f5fa;
    --kx-surface: #ffffff;
    --kx-surface-2: #f6f8fc;
    --kx-surface-3: #eaeff7;
    --kx-border: #e1e7f1;
    --kx-border-strong: #cdd6e6;
    --kx-text: #0f1b36;
    --kx-text-2: #34456a;
    --kx-muted: #627090;
    --kx-primary: #162b54;
    --kx-primary-contrast: #ffffff;
    --kx-accent: #0d808a;
    --kx-accent-soft: rgba(27, 189, 200, .14);
    --kx-link: #1a6fa3;
    --kx-hover: rgba(22, 43, 84, .045);
    --kx-ring: 0 0 0 .22rem rgba(27, 189, 200, .30);
    --kx-shadow-sm: 0 1px 2px rgba(15, 31, 63, .05);
    --kx-shadow: 0 1px 2px rgba(15, 31, 63, .04), 0 6px 20px rgba(15, 31, 63, .06);
    --kx-shadow-lg: 0 18px 50px rgba(15, 31, 63, .18);
    --kx-ok-bg: rgba(31, 157, 99, .12);   --kx-ok: #137a49;
    --kx-warn-bg: rgba(226, 154, 11, .15); --kx-warn: #8a5a00;
    --kx-err-bg: rgba(231, 52, 37, .11);  --kx-err: #b3281b;
    --kx-info-bg: rgba(33, 143, 206, .12); --kx-info: #14689c;

    --kx-radius: 12px;
    --kx-radius-sm: 8px;
    --kx-sb-w: 268px;
    --kx-sb-rail: 74px;
    --kx-top-h: 64px;
    --kx-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* eski tokenlar (kural-uyum / tt-sayfalar) yeni sözlüğe bağlanır */
    --ku-page: var(--kx-bg);
    --ku-surface: var(--kx-surface);
    --ku-surface-soft: var(--kx-surface-2);
    --ku-text: var(--kx-text);
    --ku-text-muted: var(--kx-muted);
    --ku-border: var(--kx-border);
    --ku-border-strong: var(--kx-border-strong);
    --ku-primary: var(--kx-primary);
    --ku-accent-text: var(--kx-accent);
    --ku-link: var(--kx-link);
    --ku-shadow: var(--kx-shadow);
    --ku-radius: var(--kx-radius);
    --bs-body-bg: var(--kx-bg);
    --bs-body-color: var(--kx-text);
    --bs-border-color: var(--kx-border);
    --bs-secondary-color: var(--kx-muted);
    --bs-tertiary-bg: var(--kx-surface-2);
    --bs-emphasis-color: var(--kx-text);
    --bs-link-color: var(--kx-link);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --kx-bg: #08112a;
    --kx-surface: #101c39;
    --kx-surface-2: #0c1730;
    --kx-surface-3: #172647;
    --kx-border: #21335a;
    --kx-border-strong: #2f4573;
    --kx-text: #e8eef9;
    --kx-text-2: #c4d0e6;
    --kx-muted: #9aa9c7;
    --kx-primary: #1bbdc8;
    --kx-primary-contrast: #06132b;
    --kx-accent: #5fd6de;
    --kx-accent-soft: rgba(27, 189, 200, .16);
    --kx-link: #74d3e6;
    --kx-hover: rgba(255, 255, 255, .05);
    --kx-ring: 0 0 0 .22rem rgba(27, 189, 200, .38);
    --kx-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --kx-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    --kx-shadow-lg: 0 22px 60px rgba(0, 0, 0, .55);
    --kx-ok-bg: rgba(46, 190, 125, .16);   --kx-ok: #5fe0a5;
    --kx-warn-bg: rgba(240, 175, 40, .17); --kx-warn: #f4c867;
    --kx-err-bg: rgba(255, 99, 82, .17);  --kx-err: #ff9588;
    --kx-info-bg: rgba(70, 170, 235, .17); --kx-info: #86c9f3;

    --ku-page: var(--kx-bg);
    --ku-surface: var(--kx-surface);
    --ku-surface-soft: var(--kx-surface-2);
    --ku-text: var(--kx-text);
    --ku-text-muted: var(--kx-muted);
    --ku-border: var(--kx-border);
    --ku-border-strong: var(--kx-border-strong);
    --ku-primary: var(--kx-primary);
    --ku-accent-text: var(--kx-accent);
    --ku-link: var(--kx-link);
    --ku-shadow: var(--kx-shadow);
    --ku-navy-soft: rgba(255, 255, 255, .07);
    --bs-body-bg: var(--kx-bg);
    --bs-body-color: var(--kx-text);
    --bs-border-color: var(--kx-border);
    --bs-secondary-color: var(--kx-muted);
    --bs-tertiary-bg: var(--kx-surface-2);
    --bs-emphasis-color: #fff;
    --bs-link-color: var(--kx-link);
}

/* ---------------------------------------------------------------- 2. Temel */
html { scroll-behavior: smooth; }
html body {
    font-family: var(--kx-font);
    font-size: .875rem;
    line-height: 1.55;
    letter-spacing: -.004em;
    background: var(--kx-bg);
    color: var(--kx-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 {
    font-family: var(--kx-font);
    color: var(--kx-text);
    letter-spacing: -.02em;
    font-weight: 700;
}
html body a { color: var(--kx-link); }
html body a:hover { color: var(--kx-accent); }
html body ::selection { background: rgba(27, 189, 200, .3); }
.text-muted, .text-secondary-light { color: var(--kx-muted) !important; }
.kc-mono, .font-monospace { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; letter-spacing: 0; }
.kc-skip-link { position: absolute; left: -9999px; }
.kc-skip-link:focus { left: 12px; top: 12px; z-index: 9999; background: var(--kx-primary); color: var(--kx-primary-contrast); padding: .5rem .8rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--kx-teal); outline-offset: 2px; }

/* ---------------------------------------------------------------- 3. Kabuk */
.kx-sb-overlay { position: fixed; inset: 0; background: rgba(5, 12, 30, .55); backdrop-filter: blur(2px); z-index: 1039; opacity: 0; pointer-events: none; transition: opacity .2s; }
.kx-sb-overlay.show { opacity: 1; pointer-events: auto; }

.kx-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--kx-sb-w); z-index: 1040;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--kx-navy-800) 0%, var(--kx-navy-900) 100%);
    color: #cfd9ee;
    border-right: 1px solid rgba(255, 255, 255, .05);
    transition: width .22s ease, transform .22s ease;
}
html[data-theme="dark"] .kx-sidebar { background: linear-gradient(180deg, #0b1733 0%, #060e22 100%); border-right-color: var(--kx-border); }
.kx-brand {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    height: var(--kx-top-h); padding: 0 1.1rem; flex: 0 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    position: relative;
}
.kx-brand::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 64px; background: linear-gradient(90deg, var(--kx-teal), transparent); }
.kx-brand a { display: flex; align-items: center; }
.kx-brand-logo { height: 34px; width: auto; }
.kx-brand-mark { display: none; height: 36px; width: 36px; border-radius: 10px; }
.kx-sb-close { display: none; background: none; border: 0; color: #cfd9ee; font-size: 1.3rem; }

.kx-sb-search { padding: .9rem 1rem .4rem; position: relative; flex: 0 0 auto; }
.kx-sb-search i { position: absolute; left: 1.85rem; top: 50%; transform: translateY(-35%); color: #7e90b5; font-size: .95rem; pointer-events: none; }
.kx-sb-search input {
    width: 100%; height: 36px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06); color: #e8eef9; padding: 0 .75rem 0 2.1rem; font-size: .8rem; outline: 0;
}
.kx-sb-search input::placeholder { color: #8396bd; }
.kx-sb-search input:focus { border-color: var(--kx-teal); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 3px rgba(27, 189, 200, .2); }

.kx-nav { flex: 1 1 auto; overflow-y: auto; padding: .35rem .65rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.kx-nav::-webkit-scrollbar { width: 6px; }
.kx-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 6px; }
.kx-nav-section { margin-top: .35rem; }
.kx-nav-section-label {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: none; border: 0; color: #8da0c8; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: .7rem .65rem .45rem; cursor: pointer; border-radius: 8px;
}
.kx-nav-section-label:hover { color: #fff; }
.kx-nav-section-label svg, .kx-nav-section-label i { width: 14px; height: 14px; transition: transform .2s; }
.kx-nav-section.collapsed .kx-nav-section-label svg { transform: rotate(-90deg); }
.kx-nav-section.collapsed .kx-nav-list { display: none; }
.kx-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.kx-nav-link {
    display: flex; align-items: center; gap: .7rem; padding: .52rem .7rem; border-radius: 9px;
    color: #c8d4ec !important; text-decoration: none; font-weight: 500; font-size: .83rem; position: relative;
    transition: background .15s, color .15s;
}
.kx-nav-link svg, .kx-nav-link > i { width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.kx-nav-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
.kx-nav-link.active { background: linear-gradient(90deg, rgba(27, 189, 200, .22), rgba(27, 189, 200, .06)); color: #fff !important; font-weight: 600; }
.kx-nav-link.active::before { content: ""; position: absolute; left: -.65rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--kx-teal); }
.kx-nav-link.active svg { color: var(--kx-teal); opacity: 1; }
.kx-nav-link[hidden], .kx-nav-section[hidden] { display: none !important; }

.kx-sb-user {
    display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; flex: 0 0 auto;
    border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .12);
}
.kx-avatar {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--kx-teal), var(--kx-blue)); color: #06132b; font-weight: 800; font-size: .9rem;
}
.kx-sb-user-info { min-width: 0; flex: 1; line-height: 1.25; }
.kx-sb-user-info strong { display: block; color: #fff; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-sb-user-info a { color: #8da0c8 !important; font-size: .72rem; text-decoration: none; }
.kx-sb-user-info a:hover { color: var(--kx-teal) !important; }
.kx-sb-logout { background: rgba(231, 52, 37, .14); border: 0; color: #ff8d80; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.kx-sb-logout:hover { background: var(--kx-red); color: #fff; }
.kx-sb-foot { padding: .55rem 1rem .8rem; font-size: .68rem; color: #6f82aa; text-align: center; flex: 0 0 auto; }

/* daraltılmış ray */
body.kx-rail .kx-sidebar { width: var(--kx-sb-rail); }
body.kx-rail .kx-brand { padding: 0; justify-content: center; }
body.kx-rail .kx-brand-logo { display: none; }
body.kx-rail .kx-brand-mark { display: block; }
body.kx-rail .kx-sb-search,
body.kx-rail .kx-nav-section-label,
body.kx-rail .kx-sb-user-info,
body.kx-rail .kx-sb-logout,
body.kx-rail .kx-sb-foot,
body.kx-rail .kx-nav-link span { display: none; }
body.kx-rail .kx-nav-section.collapsed .kx-nav-list { display: grid; }
body.kx-rail .kx-nav-link { justify-content: center; padding: .65rem; }
body.kx-rail .kx-nav-link svg { width: 19px; height: 19px; flex-basis: 19px; }
body.kx-rail .kx-nav-section { border-top: 1px solid rgba(255, 255, 255, .07); margin-top: .4rem; padding-top: .4rem; }
body.kx-rail .kx-sb-user { justify-content: center; padding: .8rem 0; }

.kx-main { margin-left: var(--kx-sb-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin .22s ease; }
body.kx-rail .kx-main { margin-left: var(--kx-sb-rail); }

.kx-topbar {
    position: sticky; top: 0; z-index: 1030; height: var(--kx-top-h);
    display: flex; align-items: center; gap: 1rem; padding: 0 1.5rem;
    background: color-mix(in srgb, var(--kx-surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--kx-border);
}
.kx-icon-btn {
    position: relative; width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--kx-surface); border: 1px solid var(--kx-border); color: var(--kx-text-2); transition: all .15s;
}
.kx-icon-btn:hover { background: var(--kx-surface-3); border-color: var(--kx-border-strong); color: var(--kx-text); }
.kx-icon-btn svg { width: 18px; height: 18px; }
.kx-icon-btn i { font-size: 1.1rem; }
.kx-topbar-ctx { line-height: 1.2; min-width: 0; }
.kx-topbar-ctx small { display: block; color: var(--kx-accent); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kx-topbar-ctx strong { font-size: .98rem; color: var(--kx-text); white-space: nowrap; }

.kx-cmd { position: relative; flex: 1 1 380px; max-width: 520px; margin: 0 auto; }
.kx-cmd > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--kx-muted); pointer-events: none; }
.kx-cmd input {
    width: 100%; height: 40px; border-radius: 11px; border: 1px solid var(--kx-border); background: var(--kx-surface-2);
    color: var(--kx-text); padding: 0 4.2rem 0 2.5rem; font-size: .84rem; outline: 0; transition: all .15s;
}
.kx-cmd input:focus { background: var(--kx-surface); border-color: var(--kx-teal); box-shadow: var(--kx-ring); }
.kx-cmd kbd { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); background: var(--kx-surface); border: 1px solid var(--kx-border); color: var(--kx-muted); font-size: .66rem; border-radius: 6px; padding: 1px 6px; font-family: inherit; }
.kx-cmd-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--kx-surface); border: 1px solid var(--kx-border); border-radius: 12px; box-shadow: var(--kx-shadow-lg); padding: 6px; z-index: 1050; max-height: 360px; overflow: auto; }
.kx-cmd-results[hidden] { display: none; }
.kx-cmd-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .75rem; border-radius: 8px; color: var(--kx-text) !important; text-decoration: none; }
.kx-cmd-item small { color: var(--kx-muted); }
.kx-cmd-item.active, .kx-cmd-item:hover { background: var(--kx-accent-soft); }
.kx-cmd-empty { padding: .8rem; color: var(--kx-muted); }

.kx-topbar-right { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.kx-date { display: inline-flex; align-items: center; gap: .4rem; padding: 0 .8rem; height: 38px; border-radius: 10px; background: var(--kx-surface); border: 1px solid var(--kx-border); color: var(--kx-text-2); font-size: .78rem; font-weight: 600; }
.kx-date i { color: var(--kx-accent); }
.kx-theme-toggle .theme-icon-light { display: none; }
html[data-theme="dark"] .kx-theme-toggle .theme-icon-dark { display: none; }
html[data-theme="dark"] .kx-theme-toggle .theme-icon-light { display: inline; }
.kx-profil { display: inline-flex; align-items: center; gap: .55rem; height: 38px; padding: 0 .35rem 0 .35rem; border-radius: 11px; background: var(--kx-surface); border: 1px solid var(--kx-border); color: var(--kx-text); }
.kx-profil .kx-avatar { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; font-size: .78rem; }
.kx-profil span.kx-pad { padding-right: .55rem; font-weight: 600; font-size: .8rem; }
.kc-notify-badge { position: absolute; top: -5px; right: -5px; background: var(--kx-red); color: #fff; border-radius: 999px; font-size: .62rem; font-weight: 700; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--kx-surface); }
.kc-notify-menu { width: 340px; padding: 0; overflow: hidden; }
.kc-notify-head { display: flex; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--kx-border); background: var(--kx-surface-2); }
.kc-notify-item { padding: .7rem 1rem; border-bottom: 1px solid var(--kx-border); }
.kc-notify-tur { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--kx-accent); }
.kc-notify-konu { font-weight: 600; }

.kx-content { flex: 1 0 auto; padding: 1.5rem 1.75rem 2rem; max-width: 1720px; width: 100%; margin: 0 auto; }
.kx-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.35rem; }
.kx-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0 0 .35rem; font-size: .76rem; color: var(--kx-muted); }
.kx-crumbs li + li::before { content: "›"; margin-right: .3rem; opacity: .6; }
.kx-crumbs a { color: var(--kx-muted); text-decoration: none; }
.kx-crumbs a:hover { color: var(--kx-accent); }
.kx-crumbs li:last-child { color: var(--kx-accent); font-weight: 700; }
.kx-page-head h1 { font-size: 1.55rem; margin: 0; font-weight: 800; line-height: 1.2; }
.kx-page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.kx-footer { padding: 1rem 1.75rem; color: var(--kx-muted); font-size: .76rem; border-top: 1px solid var(--kx-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.kx-scroll-top { position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--kx-primary); color: var(--kx-primary-contrast); box-shadow: var(--kx-shadow-lg); display: none; align-items: center; justify-content: center; z-index: 1000; }
.kx-scroll-top.show { display: inline-flex; }
.kc-page-content { animation: kx-in .25s ease-out both; }
@keyframes kx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1199.98px) {
    .kx-sidebar { transform: translateX(-100%); width: min(86vw, 300px); }
    .kx-sidebar.open { transform: none; box-shadow: var(--kx-shadow-lg); }
    .kx-sb-close { display: inline-flex; }
    .kx-main, body.kx-rail .kx-main { margin-left: 0; }
    body.kx-rail .kx-sidebar { width: min(86vw, 300px); }
    body.kx-rail .kx-brand-logo { display: block; }
    body.kx-rail .kx-brand-mark, body.kx-rail .kx-nav-link span { display: initial; }
    body.kx-rail .kx-sb-search, body.kx-rail .kx-nav-section-label, body.kx-rail .kx-sb-user-info, body.kx-rail .kx-sb-logout, body.kx-rail .kx-sb-foot { display: revert; }
    .kx-content { padding: 1rem; }
    .kx-topbar { padding: 0 .9rem; gap: .6rem; }
    .kx-cmd, .kx-date { display: none; }
}

/* ---------------------------------------------------------------- 4. Kartlar */
html body .card {
    background: var(--kx-surface); border: 1px solid var(--kx-border); border-radius: var(--kx-radius);
    box-shadow: var(--kx-shadow-sm); color: var(--kx-text); --bs-card-bg: var(--kx-surface); --bs-card-cap-bg: transparent;
}
html body .card-header {
    background: transparent; border-bottom: 1px solid var(--kx-border); padding: .95rem 1.25rem; font-weight: 700; color: var(--kx-text);
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; border-radius: var(--kx-radius) var(--kx-radius) 0 0;
}
html body .card-body { padding: 1.25rem; color: var(--kx-text); }
html body .card-footer { background: var(--kx-surface-2); border-top: 1px solid var(--kx-border); }
.kc-head-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; background: var(--kx-accent-soft); color: var(--kx-accent); font-size: 1.05rem; }
.kc-head-icon svg { width: 18px; height: 18px; }
.kc-head-title { font-weight: 700; color: var(--kx-text); line-height: 1.2; }
.kc-head-sub { color: var(--kx-muted); font-size: .76rem; font-weight: 500; }
.kc-head-icon + div .kc-head-title { display: block; }
html body .alert { border: 1px solid transparent; border-left-width: 4px; border-radius: 10px; padding: .85rem 1.1rem; }
html body .alert-success { background: var(--kx-ok-bg); color: var(--kx-ok); border-color: var(--kx-ok); }
html body .alert-danger { background: var(--kx-err-bg); color: var(--kx-err); border-color: var(--kx-err); }
html body .alert-warning { background: var(--kx-warn-bg); color: var(--kx-warn); border-color: var(--kx-amber); }
html body .alert-info, html body .alert-primary { background: var(--kx-info-bg); color: var(--kx-info); border-color: var(--kx-blue); }
html body .alert-secondary, html body .alert-light { background: var(--kx-surface-3); color: var(--kx-text-2); border-color: var(--kx-border-strong); }
html body .alert a { color: inherit; font-weight: 700; text-decoration: underline; }
html body .alert code { color: inherit; background: rgba(127, 127, 127, .15); padding: 0 .3rem; border-radius: 4px; }

/* ---------------------------------------------------------------- 5. Tablo */
html body .table-responsive { border-radius: 10px; }
html body .table {
    --bs-table-bg: transparent; --bs-table-color: var(--kx-text); --bs-table-border-color: var(--kx-border);
    --bs-table-striped-bg: var(--kx-surface-2); --bs-table-hover-bg: var(--kx-hover); --bs-table-hover-color: var(--kx-text);
    color: var(--kx-text); margin-bottom: 0; border-color: var(--kx-border); vertical-align: middle;
}
html body .table > :not(caption) > * > * { padding: .7rem .9rem; border-bottom-color: var(--kx-border); background-color: transparent; box-shadow: none; }
html body .table thead th {
    background: var(--kx-surface-2) !important; color: var(--kx-muted); font-size: .68rem; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; border-bottom: 1px solid var(--kx-border-strong); white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
html body .table thead th:first-child { border-top-left-radius: 8px; }
html body .table thead th:last-child { border-top-right-radius: 8px; }
html body .table tbody tr { transition: background .12s; }
html body .table tbody tr:hover > * { background: var(--kx-hover) !important; }
html body .table-bordered > :not(caption) > * { border-width: 0 0 1px; }
html body .table-bordered > :not(caption) > * > * { border-width: 0; }
html body .table tbody td .btn { white-space: nowrap; }
html body .table tfoot td, html body .table tfoot th { background: var(--kx-surface-2); font-weight: 700; }
.kx-empty, .kc-empty-state, td.kx-empty-cell { text-align: center; color: var(--kx-muted); padding: 2.4rem 1rem !important; }
.kc-empty { text-align: center; padding: 2.4rem 1rem; color: var(--kx-muted); }
.kc-empty-icon { width: 56px; height: 56px; margin: 0 auto .8rem; border-radius: 16px; background: var(--kx-accent-soft); color: var(--kx-accent); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.kx-actions { display: inline-flex; gap: .3rem; justify-content: flex-end; flex-wrap: nowrap; }
.kc-count-badge { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--kx-accent); background: var(--kx-accent-soft); padding: .2rem .6rem; border-radius: 999px; }
.dt-container, .dataTables_wrapper { padding: .25rem 0 0; }
.dt-container .dt-search input, .dataTables_filter input { border: 1px solid var(--kx-border); background: var(--kx-surface-2); color: var(--kx-text); border-radius: 9px; padding: .4rem .75rem; outline: 0; }
.dt-container .dt-search input:focus { border-color: var(--kx-teal); box-shadow: var(--kx-ring); }
.dt-container .dt-length select { border: 1px solid var(--kx-border); background: var(--kx-surface-2); color: var(--kx-text); border-radius: 8px; padding: .25rem .5rem; }
.dt-container .dt-info, .dt-container .dt-length, .dt-container .dt-search label { color: var(--kx-muted); font-size: .8rem; }
.dt-container .dt-paging .dt-paging-button, .page-link { border: 1px solid var(--kx-border) !important; background: var(--kx-surface) !important; color: var(--kx-text) !important; border-radius: 8px !important; margin: 0 2px; padding: .3rem .65rem; }
.dt-container .dt-paging .dt-paging-button.current, .page-item.active .page-link { background: var(--kx-primary) !important; color: var(--kx-primary-contrast) !important; border-color: var(--kx-primary) !important; }
.dt-container .dt-paging .dt-paging-button.disabled { opacity: .45; }
.kc-header-search { margin-left: auto; }
.kc-header-search label { margin: 0; }

/* ---------------------------------------------------------------- 6. Düğmeler */
html body .btn {
    --bs-btn-border-radius: 9px; border-radius: 9px; font-weight: 600; font-size: .83rem; padding: .5rem 1rem; letter-spacing: -.003em;
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: all .15s; line-height: 1.3;
}
html body .btn-sm { font-size: .76rem; padding: .32rem .7rem; border-radius: 8px; }
html body .btn-lg { font-size: .95rem; padding: .7rem 1.4rem; border-radius: 11px; }
html body .btn:focus-visible { box-shadow: var(--kx-ring); outline: 0; }
html body .btn-primary { background: var(--kx-primary); border-color: var(--kx-primary); color: var(--kx-primary-contrast); }
html body .btn-primary:hover, html body .btn-primary:focus { background: var(--kx-navy-700); border-color: var(--kx-navy-700); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 43, 84, .28); }
html[data-theme="dark"] body .btn-primary:hover { background: var(--kx-teal-600); border-color: var(--kx-teal-600); color: #06132b; box-shadow: 0 6px 16px rgba(27, 189, 200, .3); }
html body .btn-outline-primary { color: var(--kx-primary); border-color: var(--kx-border-strong); background: var(--kx-surface); }
html[data-theme="dark"] body .btn-outline-primary { color: var(--kx-teal); }
html body .btn-outline-primary:hover { background: var(--kx-primary); border-color: var(--kx-primary); color: var(--kx-primary-contrast); }
html body .btn-secondary, html body .btn-light { background: var(--kx-surface-3); border-color: var(--kx-border); color: var(--kx-text); }
html body .btn-secondary:hover, html body .btn-light:hover { background: var(--kx-border); color: var(--kx-text); }
html body .btn-outline-secondary { color: var(--kx-text-2); border-color: var(--kx-border-strong); background: transparent; }
html body .btn-outline-secondary:hover { background: var(--kx-surface-3); color: var(--kx-text); border-color: var(--kx-border-strong); }
html body .btn-success { background: var(--kx-green); border-color: var(--kx-green); color: #fff; }
html body .btn-outline-success { color: var(--kx-ok); border-color: var(--kx-ok); background: transparent; }
html body .btn-outline-success:hover { background: var(--kx-green); color: #fff; border-color: var(--kx-green); }
html body .btn-danger { background: var(--kx-red); border-color: var(--kx-red); color: #fff; }
html body .btn-danger:hover { background: #c42a1d; border-color: #c42a1d; color: #fff; }
html body .btn-outline-danger { color: var(--kx-err); border-color: var(--kx-red); background: transparent; }
html body .btn-outline-danger:hover { background: var(--kx-red); color: #fff; }
html body .btn-warning { background: var(--kx-amber); border-color: var(--kx-amber); color: #1d1300; }
html body .btn-outline-warning { color: var(--kx-warn); border-color: var(--kx-amber); }
html body .btn-info { background: var(--kx-blue); border-color: var(--kx-blue); color: #fff; }
html body .btn-link { color: var(--kx-link); font-weight: 600; text-decoration: none; }
html body .btn:disabled, html body .btn.disabled { opacity: .5; }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child { border-radius: 9px 0 0 9px; }
.btn-group > .btn:last-child { border-radius: 0 9px 9px 0; }
.kc-page-cta { white-space: nowrap; }

/* ---------------------------------------------------------------- 7. Form */
html body .form-label, html body label.form-label { font-weight: 600; font-size: .78rem; color: var(--kx-text-2); margin-bottom: .35rem; }
html body .form-control, html body .form-select, html body .input-group-text {
    background-color: var(--kx-surface); border: 1px solid var(--kx-border-strong); color: var(--kx-text); border-radius: 9px;
    min-height: 40px; font-size: .85rem; padding: .5rem .8rem; box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
html body .form-control-sm, html body .form-select-sm { min-height: 32px; font-size: .78rem; padding: .3rem .6rem; border-radius: 8px; }
html body textarea.form-control { min-height: 90px; }
html body .form-control::placeholder { color: var(--kx-muted); opacity: .7; }
html body .form-control:hover, html body .form-select:hover { border-color: var(--kx-muted); background-color: var(--kx-surface); }
html body .form-control:focus, html body .form-select:focus { border-color: var(--kx-teal); box-shadow: var(--kx-ring); background-color: var(--kx-surface); color: var(--kx-text); }
html body .form-control:disabled, html body .form-control[readonly], html body .form-select:disabled { background: var(--kx-surface-3); opacity: .85; }
html body .input-group-text { background: var(--kx-surface-3); color: var(--kx-muted); }
html body .form-check-input { border-color: var(--kx-border-strong); background-color: var(--kx-surface); }
html body .form-check-input:checked { background-color: var(--kx-teal-700); border-color: var(--kx-teal-700); }
html body .form-check-input:focus { box-shadow: var(--kx-ring); border-color: var(--kx-teal); }
html body .form-text, html body small.text-muted { color: var(--kx-muted); }
html body .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23627090' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.is-invalid, .was-validated :invalid { border-color: var(--kx-red) !important; }
.invalid-feedback, .text-danger.field-validation-error, .field-validation-error { color: var(--kx-err); font-size: .76rem; }
input[type="date"], input[type="datetime-local"] { color-scheme: light dark; }
html[data-theme="dark"] input[type="date"], html[data-theme="dark"] input[type="datetime-local"] { color-scheme: dark; }
.kc-field { margin-bottom: 1rem; }
.kc-add-grid, .kc-form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.kc-add-submit { display: flex; align-items: end; }

/* ---------------------------------------------------------------- 8. Rozet / sekme / pencere / menü */
html body .badge { font-weight: 700; font-size: .7rem; letter-spacing: .02em; border-radius: 999px; padding: .38em .75em; }
html body .badge.bg-success { background: var(--kx-ok-bg) !important; color: var(--kx-ok) !important; }
html body .badge.bg-danger { background: var(--kx-err-bg) !important; color: var(--kx-err) !important; }
html body .badge.bg-warning { background: var(--kx-warn-bg) !important; color: var(--kx-warn) !important; }
html body .badge.bg-info { background: var(--kx-info-bg) !important; color: var(--kx-info) !important; }
html body .badge.bg-primary { background: var(--kx-accent-soft) !important; color: var(--kx-accent) !important; }
html body .badge.bg-secondary, html body .badge.bg-light, html body .badge.bg-dark { background: var(--kx-surface-3) !important; color: var(--kx-text-2) !important; }
html body .text-dark { color: inherit !important; }
html body .nav-tabs { border-bottom: 1px solid var(--kx-border); gap: .25rem; }
html body .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--kx-muted); font-weight: 600; padding: .6rem 1rem; background: none; }
html body .nav-tabs .nav-link:hover { color: var(--kx-text); }
html body .nav-tabs .nav-link.active { color: var(--kx-accent); border-bottom-color: var(--kx-teal); background: none; }
html body .nav-pills .nav-link { color: var(--kx-text-2); border-radius: 9px; font-weight: 600; }
html body .nav-pills .nav-link.active { background: var(--kx-primary); color: var(--kx-primary-contrast); }
html body .dropdown-menu { background: var(--kx-surface); border: 1px solid var(--kx-border); border-radius: 12px; box-shadow: var(--kx-shadow-lg); padding: .4rem; color: var(--kx-text); }
html body .dropdown-item { border-radius: 8px; color: var(--kx-text); padding: .5rem .75rem; font-size: .83rem; }
html body .dropdown-item:hover { background: var(--kx-accent-soft); color: var(--kx-text); }
html body .dropdown-divider { border-color: var(--kx-border); }
html body .modal-content { background: var(--kx-surface); border: 1px solid var(--kx-border); border-radius: 16px; box-shadow: var(--kx-shadow-lg); color: var(--kx-text); }
html body .modal-header, html body .modal-footer { border-color: var(--kx-border); }
html body .btn-close { filter: var(--kx-close-filter, none); }
html[data-theme="dark"] body .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
html body .list-group-item { background: var(--kx-surface); border-color: var(--kx-border); color: var(--kx-text); }
html body .progress { background: var(--kx-surface-3); border-radius: 999px; height: .55rem; }
html body .progress-bar { background: linear-gradient(90deg, var(--kx-teal), var(--kx-blue)); }
html body .breadcrumb-item, html body .breadcrumb-item a { color: var(--kx-muted); }
html body hr { border-color: var(--kx-border); opacity: 1; }
html body .border, html body .border-top, html body .border-bottom { border-color: var(--kx-border) !important; }
html body .bg-white, html body .bg-light, html body .bg-body, html body .bg-base { background-color: var(--kx-surface) !important; }
html body .text-body, html body .text-black { color: var(--kx-text) !important; }
html body pre, html body code { color: var(--kx-text-2); }
html body .accordion-item { background: var(--kx-surface); border-color: var(--kx-border); }
html body .accordion-button { background: var(--kx-surface); color: var(--kx-text); }
html body .accordion-button:not(.collapsed) { background: var(--kx-accent-soft); color: var(--kx-text); box-shadow: none; }

/* ---------------------------------------------------------------- 9. Sayfa içi (kc-*) bileşenleri — sözlüğe bağlı */
.kc-tiles, .kc-kpi-grid, .kc-info-sections { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kc-tile, .kc-kpi, .kc-stat-card, .kc-info-tile, .kc-mini-stat, .kc-summary-item, .kc-module-tile, .kc-account-card, .kc-bank-card, .kc-ops-card {
    background: var(--kx-surface); border: 1px solid var(--kx-border); border-radius: var(--kx-radius); box-shadow: var(--kx-shadow-sm); color: var(--kx-text);
}
.kc-tile-value, .kc-kpi-value, .kc-stat-value { font-weight: 800; letter-spacing: -.02em; color: var(--kx-text); }
.kc-tile-label, .kc-kpi-label, .kc-stat-label, .kc-tile-sub { color: var(--kx-muted); }
.kc-dl dt { color: var(--kx-muted); font-weight: 600; }
.kc-dl dd { color: var(--kx-text); }
.kc-subsection { border-top: 1px solid var(--kx-border); padding-top: 1rem; margin-top: 1rem; }
.kc-chip { background: var(--kx-surface-3); color: var(--kx-text-2); border-radius: 999px; padding: .2rem .65rem; font-size: .74rem; font-weight: 600; }
.kc-danger-zone { border: 1px dashed var(--kx-red); border-radius: var(--kx-radius); background: var(--kx-err-bg); }
.kc-timeline, .kc-ledger { color: var(--kx-text); }
.kc-person { display: inline-flex; align-items: center; gap: .6rem; }
.kc-avatar-sm { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .72rem; background: var(--kx-accent-soft); color: var(--kx-accent); }
.kc-avatar-sm.navy { background: rgba(22, 43, 84, .12); color: var(--kx-text); }
.kc-avatar-sm.gold { background: var(--kx-warn-bg); color: var(--kx-warn); }
.kc-money { font-variant-numeric: tabular-nums; font-weight: 700; }
.kc-state-page { text-align: center; padding: 4rem 1rem; }
.kc-state-icon { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; background: var(--kx-accent-soft); color: var(--kx-accent); }
.kc-state-eyebrow { color: var(--kx-accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }

/* ---------------------------------------------------------------- 10. Yükleme animasyonu */
.kx-loader {
    position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
    background: radial-gradient(1100px 600px at 50% 35%, #1b3566 0%, #0f2145 45%, #070f24 100%);
    color: #dbe6fa; transition: opacity .45s ease, visibility .45s ease;
}
.kx-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.kx-loader-logo { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.kx-loader-ring { position: absolute; inset: -14px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .09); border-top-color: var(--kx-teal); border-right-color: rgba(27, 189, 200, .45); animation: kx-spin 1.15s linear infinite; }
.kx-loader-ring.r2 { inset: -30px; border-width: 2px; border-top-color: rgba(231, 52, 37, .85); border-right-color: transparent; animation-duration: 1.9s; animation-direction: reverse; }
.kx-loader-logo svg { width: 132px; height: 132px; filter: drop-shadow(0 12px 30px rgba(27, 189, 200, .35)); animation: kx-pulse 1.9s ease-in-out infinite; }
.kx-loader-logo .t1 { animation: kx-tri 1.9s ease-in-out infinite; transform-origin: 24px 32px; }
.kx-loader-logo .t2 { animation: kx-tri 1.9s ease-in-out .15s infinite; transform-origin: 36px 20px; }
.kx-loader-logo .t3 { animation: kx-tri 1.9s ease-in-out .3s infinite; transform-origin: 47px 42px; }
.kx-loader-logo .t4 { animation: kx-tri 1.9s ease-in-out .45s infinite; transform-origin: 50px 19px; }
.kx-loader-title { font-size: 1.5rem; font-weight: 800; letter-spacing: .5em; text-indent: .5em; color: #fff; }
.kx-loader-sub { margin-top: -1rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #8fa6d4; }
.kx-loader-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.kx-loader-bar span { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--kx-teal), #fff); animation: kx-sweep 1.2s ease-in-out infinite; }
@keyframes kx-spin { to { transform: rotate(360deg); } }
@keyframes kx-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes kx-tri { 0%, 100% { transform: scale(1); opacity: 1; } 45% { transform: scale(.82); opacity: .75; } }
@keyframes kx-sweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(380%); } }

.kx-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 3100; background: linear-gradient(90deg, var(--kx-teal), var(--kx-blue), var(--kx-red)); box-shadow: 0 0 10px rgba(27, 189, 200, .7); transition: width .35s ease, opacity .3s .1s; opacity: 0; }
.kx-progress.run { opacity: 1; }
.kx-busy { position: fixed; inset: 0; z-index: 2900; background: rgba(8, 17, 42, .35); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; }
.kx-busy.show { display: flex; }
.kx-busy i { font-size: 2.2rem; color: var(--kx-teal); animation: kx-spin 1s linear infinite; background: var(--kx-surface); border-radius: 50%; padding: .6rem; box-shadow: var(--kx-shadow-lg); }
@media (prefers-reduced-motion: reduce) { .kx-loader *, .kx-loader { animation-duration: .01ms !important; } .kc-page-content { animation: none; } }

/* ---------------------------------------------------------------- 11. Giriş / anonim sayfalar */
.kx-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(380px, .95fr); background: var(--kx-bg); }
.kx-auth-visual {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem 3.2rem; color: #e6eefc;
    background: radial-gradient(900px 520px at 20% 15%, #24479a 0%, rgba(36, 71, 154, 0) 60%), linear-gradient(160deg, #0f2145 0%, #0a1733 55%, #060d20 100%);
}
.kx-auth-visual::before, .kx-auth-visual::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.kx-auth-visual::before { width: 560px; height: 560px; right: -240px; top: -160px; background: radial-gradient(circle, rgba(27, 189, 200, .35), transparent 65%); }
.kx-auth-visual::after { width: 420px; height: 420px; left: -160px; bottom: -180px; background: radial-gradient(circle, rgba(231, 52, 37, .22), transparent 65%); }
.kx-auth-tri { position: absolute; right: 8%; bottom: 14%; width: 340px; opacity: .18; animation: kx-float 9s ease-in-out infinite; }
@keyframes kx-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(2deg); } }
.kx-auth-visual > * { position: relative; z-index: 1; }
.kx-auth-visual img { height: 46px; width: auto; }
.kx-auth-copy h2 { color: #fff; font-size: 2.35rem; font-weight: 800; line-height: 1.18; margin-bottom: 1rem; }
.kx-auth-copy h2 em { font-style: normal; color: var(--kx-teal); }
.kx-auth-copy p { color: #a9bbdf; max-width: 460px; font-size: .98rem; }
.kx-auth-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.kx-auth-points li { display: flex; align-items: center; gap: .8rem; color: #d3def5; }
.kx-auth-points i { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(27, 189, 200, .16); color: var(--kx-teal); font-size: 1.05rem; }
.kx-auth-foot { color: #7d90bb; font-size: .76rem; }
.kx-auth-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2.5rem 2rem; position: relative; background: var(--kx-surface); }
.kx-auth-tools { position: absolute; top: 1.2rem; right: 1.4rem; }
.kx-auth-card { width: 100%; max-width: 410px; animation: kx-in .5s ease-out both; }
.kx-auth-card .kx-eyebrow { color: var(--kx-accent); font-weight: 800; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .45rem; }
.kx-auth-card .kx-eyebrow::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--kx-teal); }
.kx-auth-card h1 { font-size: 1.9rem; font-weight: 800; margin: .5rem 0 .4rem; }
.kx-auth-card .kx-lead { color: var(--kx-muted); margin-bottom: 1.6rem; }
.kx-auth-card .btn-primary { width: 100%; height: 46px; font-size: .92rem; }
.kx-auth-note { margin-top: 1.4rem; display: flex; gap: .55rem; align-items: center; color: var(--kx-muted); font-size: .76rem; }
.kx-auth-note i { color: var(--kx-green); }
.kx-pass { position: relative; }
.kx-pass .form-control { padding-right: 2.8rem; }
.kx-pass button { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--kx-muted); width: 34px; height: 34px; border-radius: 8px; }
.kx-pass button:hover { color: var(--kx-text); background: var(--kx-surface-3); }
@media (max-width: 991.98px) { .kx-auth { grid-template-columns: 1fr; } .kx-auth-visual { display: none; } .kx-auth-panel { min-height: 100vh; } }

/* anonim genel sayfalar (başvuru, anket vb.) */
.kx-pub { min-height: 100vh; display: flex; flex-direction: column; background: var(--kx-bg); }
.kx-pub-bar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.75rem; background: linear-gradient(90deg, #0f2145, #162b54); border-bottom: 3px solid var(--kx-teal); }
.kx-pub-bar img { height: 34px; }
.kx-pub-body { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }

/* ---------------------------------------------------------------- 13. Düzeltmeler (gezinti turu) */
.kc-icon-action { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.kc-row-actions { display: inline-flex; gap: .3rem; align-items: center; flex-wrap: nowrap; }
.kc-row-actions .btn { width: auto; height: auto; }
.kc-btn-ghost-dark { background: var(--kx-surface); color: var(--kx-text-2); border: 1px solid var(--kx-border-strong); }
.kc-btn-ghost-dark:hover { background: var(--kx-surface-3); color: var(--kx-text); border-color: var(--kx-border-strong); }
.kc-btn-on-dark { background: var(--kx-primary); color: var(--kx-primary-contrast); border: 1px solid var(--kx-primary); }
.kc-btn-on-dark:hover { background: var(--kx-navy-700); color: #fff; }
.kc-welcome .kc-btn-ghost-dark { background: rgba(255, 255, 255, .09); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.kc-welcome .kc-btn-ghost-dark:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.kc-welcome .kc-btn-on-dark { background: var(--kx-teal); color: #06132b; border: 0; }
.kc-welcome .kc-btn-on-dark:hover { background: #fff; color: var(--kx-navy); }

/* ---------------------------------------------------------------- 12. Yazdırma */
@media print {
    .kx-sidebar, .kx-topbar, .kx-footer, .kx-scroll-top, .kx-page-actions, .kx-loader, .kx-progress { display: none !important; }
    .kx-main { margin: 0 !important; }
    body { background: #fff !important; color: #000 !important; }
    .card { box-shadow: none !important; border-color: #bbb !important; }
}

/* boş tablo durumu */
.kx-empty-ico { display: block; width: 52px; height: 52px; margin: 0 auto .6rem; border-radius: 16px; background: var(--kx-accent-soft); color: var(--kx-accent); font-size: 1.5rem; line-height: 52px; text-align: center; }
td.kx-empty-cell { font-weight: 600; }

/* giriş sayfası düzeltmeleri */
.kx-auth-visual > .kx-auth-tri { position: absolute; right: 7%; bottom: 12%; width: 340px; height: auto; z-index: 0; }
.kx-auth-visual > img { width: auto; max-width: 240px; height: 46px; object-fit: contain; align-self: flex-start; }
html body .table tbody tr:hover > td.kx-empty-cell, html body .table tbody tr:hover > .kx-empty-cell { background: transparent !important; box-shadow: none !important; }
html body .table tbody td.kx-empty-cell { background: transparent !important; }
