/* Korel Dental theme layer
   Loaded after page and component styles so light/dark tokens remain the final color authority. */
:root {
    color-scheme: light;
    --kd-canvas: #f5f7fa;
    --kd-canvas-strong: #eef2f7;
    --kd-surface: #ffffff;
    --kd-surface-raised: #ffffff;
    --kd-surface-muted: #f7faff;
    --kd-control: #ffffff;
    --kd-text: #153b73;
    --kd-text-strong: #08245b;
    --kd-muted: #6d87ab;
    --kd-border: #d7e7f8;
    --kd-border-strong: #bfd9f5;
    --kd-row-hover: #eef7ff;
    --kd-overlay: rgba(8, 36, 91, .38);
    --kd-focus: #1687f8;
    --kd-primary: #1687f8;
    --kd-primary-strong: #0875e8;
    --kd-primary-soft: #e9f4ff;
    --kd-pagination-active-bg: #0b69c7;
    --kd-pagination-active-border: #0758aa;
    --kd-pagination-active-text: #ffffff;
    --kd-pagination-active-ring: rgba(22, 135, 248, .24);
    --kd-success: #18b879;
    --kd-success-soft: #e8faf3;
    --kd-danger: #ed4b58;
    --kd-danger-soft: #fff0f3;
    --kd-warning: #f59e0b;
    --kd-warning-soft: #fff7e8;
    --kd-info: #0ea5e9;
    --kd-shadow-sm: 0 2px 10px rgba(39, 104, 177, .08);
    --kd-shadow: 0 10px 30px rgba(39, 104, 177, .10);
    --kd-sidebar-hover-shadow: 16px 0 34px rgba(39, 104, 177, .17);
    --kd-sidebar-scroll-thumb: rgba(36, 81, 138, .34);
    --kd-sticky-scroll-track: #e8f1fb;
    --kd-sticky-scroll-border: #c5dbf2;
    --kd-sticky-scroll-thumb: #7596ba;
    --kd-sticky-scroll-thumb-hover: #397fca;
}

html[data-kd-theme="dark"] {
    color-scheme: dark;
    --kd-navy-950: #e8f1ff;
    --kd-navy-900: #d7e8ff;
    --kd-navy-700: #a9c9ec;
    --kd-canvas: #0b1220;
    --kd-canvas-strong: #111b2e;
    --kd-surface: #142238;
    --kd-surface-raised: #192a43;
    --kd-surface-muted: #101d31;
    --kd-control: #111f34;
    --kd-text: #e8f1ff;
    --kd-text-strong: #f5f9ff;
    --kd-muted: #9fb2ca;
    --kd-border: #2b4262;
    --kd-border-strong: #3b587d;
    --kd-row-hover: #1a3150;
    --kd-overlay: rgba(1, 7, 17, .72);
    --kd-focus: #65b2ff;
    --kd-primary: #3b9cff;
    --kd-primary-strong: #65b2ff;
    --kd-primary-soft: #163a61;
    --kd-pagination-active-bg: #65b2ff;
    --kd-pagination-active-border: #8bc7ff;
    --kd-pagination-active-text: #08245b;
    --kd-pagination-active-ring: rgba(101, 178, 255, .30);
    --kd-success: #45d49a;
    --kd-success-soft: #123e34;
    --kd-danger: #ff7380;
    --kd-danger-soft: #4a202b;
    --kd-warning: #ffc35a;
    --kd-warning-soft: #493718;
    --kd-info: #56c7f5;
    --kd-shadow-sm: 0 2px 12px rgba(0, 0, 0, .25);
    --kd-shadow: 0 14px 38px rgba(0, 0, 0, .32);
    --kd-sidebar-hover-shadow: 18px 0 38px rgba(0, 0, 0, .42);
    --kd-sidebar-scroll-thumb: rgba(159, 178, 202, .42);
    --kd-sticky-scroll-track: #152943;
    --kd-sticky-scroll-border: #3b587d;
    --kd-sticky-scroll-thumb: #7795b8;
    --kd-sticky-scroll-thumb-hover: #65b2ff;
}

/* Profile theme picker */
body.kd-app .kd-profile-dropdown { width: 246px; }
body.kd-app .kd-theme-picker { padding: 6px 5px 7px; }
body.kd-app .kd-theme-picker-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 4px 6px;
    color: var(--kd-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
body.kd-app .kd-theme-picker-label > i { width: 18px; text-align: center; }
body.kd-app .kd-theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
body.kd-app .kd-theme-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 21px 8px 9px;
    border: 1px solid var(--kd-border);
    border-radius: 9px;
    color: var(--kd-text);
    background: var(--kd-surface-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
body.kd-app .kd-theme-option:hover,
body.kd-app .kd-theme-option:focus-visible { border-color: var(--kd-primary); color: var(--kd-primary-strong); }
body.kd-app .kd-theme-option.is-active {
    border-color: var(--kd-primary);
    color: var(--kd-primary-strong);
    background: var(--kd-primary-soft);
    box-shadow: inset 0 0 0 1px rgba(59, 156, 255, .14);
}
body.kd-app .kd-theme-option:disabled { cursor: wait; opacity: .62; }
body.kd-app .kd-theme-option > i:first-child { width: 15px; text-align: center; }
body.kd-app .kd-theme-check { position: absolute; right: 7px; display: none; font-size: 10px; }
body.kd-app .kd-theme-option.is-active .kd-theme-check { display: inline-block; }

/* Dark application shell */
html[data-kd-theme="dark"],
html[data-kd-theme="dark"] body.kd-app {
    color: var(--kd-text);
    background:
        radial-gradient(circle at 88% 0, rgba(59, 156, 255, .10), transparent 32%),
        linear-gradient(135deg, #09111e 0%, var(--kd-canvas) 52%, #101a2b 100%) !important;
}
html[data-kd-theme="dark"] body.kd-app .wrapper,
html[data-kd-theme="dark"] body.kd-app .content-wrapper { background: transparent !important; }
html[data-kd-theme="dark"] body.kd-app .main-header {
    border-color: var(--kd-border) !important;
    background: rgba(15, 27, 45, .94) !important;
    box-shadow: 0 3px 22px rgba(0, 0, 0, .24) !important;
}
html[data-kd-theme="dark"] body.kd-app .main-header .logo,
html[data-kd-theme="dark"] body.kd-app .main-sidebar,
html[data-kd-theme="dark"] body.kd-app .sidebar { background: #0f1b2d !important; }
html[data-kd-theme="dark"] body.kd-app .main-header .logo { border-color: var(--kd-border) !important; }
html[data-kd-theme="dark"] body.kd-app .main-header .logo:hover { background: #13233a !important; }
html[data-kd-theme="dark"] body.kd-app .main-header .logo #imgLogoDesktop { display: none !important; }
html[data-kd-theme="dark"] body.kd-app .main-header .logo #imgLogoDesktopDark { display: inline-block !important; height: 42px !important; }
html[data-kd-theme="dark"] body.kd-app.sidebar-collapse .main-header .logo #imgLogoDesktopDark { display: none !important; }
html[data-kd-theme="dark"] body.kd-app.sidebar-collapse .main-header .logo #imgLogoMini { display: none !important; }
html[data-kd-theme="dark"] body.kd-app.sidebar-collapse .main-header .logo #imgLogoMiniDark { display: inline-block !important; height: 42px !important; margin: 0 !important; }
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
    html[data-kd-theme="dark"] body.kd-app.sidebar-collapse.sidebar-hover-expanded .main-header .logo #imgLogoDesktop { display: none !important; }
    html[data-kd-theme="dark"] body.kd-app.sidebar-collapse.sidebar-hover-expanded .main-header .logo #imgLogoDesktopDark { display: inline-block !important; height: 42px !important; }
    html[data-kd-theme="dark"] body.kd-app.sidebar-collapse.sidebar-hover-expanded .main-header .logo #imgLogoMini,
    html[data-kd-theme="dark"] body.kd-app.sidebar-collapse.sidebar-hover-expanded .main-header .logo #imgLogoMiniDark { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    html[data-kd-theme="dark"] body.kd-app .main-header .logo #imgLogoDesktopDark { display: none !important; }
    html[data-kd-theme="dark"] body.kd-app .main-header .logo #imgLogoMini { display: none !important; }
    html[data-kd-theme="dark"] body.kd-app .main-header .logo #imgLogoMiniDark { display: inline-block !important; height: 42px !important; margin: 0 !important; }
    html[data-kd-theme="dark"] body.kd-app.sidebar-expanded-tablet .main-header .logo #imgLogoDesktopDark { display: inline-block !important; }
    html[data-kd-theme="dark"] body.kd-app.sidebar-expanded-tablet .main-header .logo #imgLogoMiniDark { display: none !important; }
}
html[data-kd-theme="dark"] body.kd-app .main-header .sidebar-toggle,
html[data-kd-theme="dark"] body.kd-app .kd-profile-trigger {
    border-color: var(--kd-border) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface) !important;
}
html[data-kd-theme="dark"] body.kd-app .main-header .sidebar-toggle:hover,
html[data-kd-theme="dark"] body.kd-app .kd-profile-trigger:hover { background: var(--kd-surface-raised) !important; }
html[data-kd-theme="dark"] body.kd-app .main-header .sidebar-toggle .toggle-icon span { background: var(--kd-primary) !important; }
html[data-kd-theme="dark"] body.kd-app .navbar-custom-menu > .nav > li > a.kd-barcode-scan-trigger {
    border-color: #3b9cff !important;
    color: #fff !important;
    background: linear-gradient(135deg, #238cf2, #1c68c9) !important;
    box-shadow: 0 7px 18px rgba(19, 100, 201, .32) !important;
}
html[data-kd-theme="dark"] body.kd-app .navbar-custom-menu > .nav > li > a.kd-barcode-scan-trigger .fa-qrcode { color: #fff !important; }
html[data-kd-theme="dark"] body.kd-app .navbar-custom-menu > .nav > li > a.kd-barcode-scan-trigger:hover,
html[data-kd-theme="dark"] body.kd-app .navbar-custom-menu > .nav > li > a.kd-barcode-scan-trigger:focus {
    border-color: #6db7ff !important;
    color: #fff !important;
    background: linear-gradient(135deg, #329dff, #2377dc) !important;
}
html[data-kd-theme="dark"] body.kd-app .kd-avatar { color: #fff; background: linear-gradient(135deg, #3b9cff, #256fd4) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-profile-copy strong { color: var(--kd-text-strong); }
html[data-kd-theme="dark"] body.kd-app .kd-profile-dropdown,
html[data-kd-theme="dark"] body.kd-app .kd-sidebar-tooltip {
    border-color: var(--kd-border) !important;
    color: var(--kd-text);
    background: var(--kd-surface-raised) !important;
    box-shadow: var(--kd-shadow) !important;
}
html[data-kd-theme="dark"] body.kd-app .kd-profile-dropdown a { color: var(--kd-text) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-profile-dropdown a:hover { color: var(--kd-primary-strong) !important; background: var(--kd-primary-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-profile-dropdown .kd-profile-logout { color: var(--kd-danger) !important; }
html[data-kd-theme="dark"] body.kd-app .sidebar-menu > li.header { color: #7896b8 !important; background: #0c1728 !important; }
html[data-kd-theme="dark"] body.kd-app .sidebar-menu > li > a { color: #c2d2e6 !important; }
html[data-kd-theme="dark"] body.kd-app .sidebar-menu > li > a:hover,
html[data-kd-theme="dark"] body.kd-app .sidebar-menu > li.active > a {
    color: #f5f9ff !important;
    background: #193556 !important;
}
html[data-kd-theme="dark"] body.kd-app .sidebar-menu > li.active > a { box-shadow: inset 3px 0 0 var(--kd-primary); }
html[data-kd-theme="dark"] body.kd-app .kd-sidebar-backdrop { background: var(--kd-overlay) !important; }
html[data-kd-theme="dark"] body.kd-app .main-footer {
    border-color: var(--kd-border) !important;
    color: var(--kd-muted) !important;
    background: #0f1b2d !important;
}
html[data-kd-theme="dark"] body.kd-app .main-footer strong { color: var(--kd-text); }

/* Surfaces and typography */
html[data-kd-theme="dark"] body.kd-app .box,
html[data-kd-theme="dark"] body.kd-app .small-box,
html[data-kd-theme="dark"] body.kd-app .info-box,
html[data-kd-theme="dark"] body.kd-app .well,
html[data-kd-theme="dark"] body.kd-app .jumbotron,
html[data-kd-theme="dark"] body.kd-app .panel,
html[data-kd-theme="dark"] body.kd-app .thumbnail,
html[data-kd-theme="dark"] body.kd-app [class*="kd-card"],
html[data-kd-theme="dark"] body.kd-app [class*="kd-panel"],
html[data-kd-theme="dark"] body.kd-app [class*="profile-card"],
html[data-kd-theme="dark"] body.kd-app [class*="section-card"] {
    border-color: var(--kd-border) !important;
    color: var(--kd-text);
    background: var(--kd-surface) !important;
    box-shadow: var(--kd-shadow-sm);
}
html[data-kd-theme="dark"] body.kd-app .box-header,
html[data-kd-theme="dark"] body.kd-app .box-footer,
html[data-kd-theme="dark"] body.kd-app .panel-heading,
html[data-kd-theme="dark"] body.kd-app .panel-footer {
    border-color: var(--kd-border) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface-muted) !important;
}
html[data-kd-theme="dark"] body.kd-app h1,
html[data-kd-theme="dark"] body.kd-app h2,
html[data-kd-theme="dark"] body.kd-app h3,
html[data-kd-theme="dark"] body.kd-app h4,
html[data-kd-theme="dark"] body.kd-app h5,
html[data-kd-theme="dark"] body.kd-app h6,
html[data-kd-theme="dark"] body.kd-app label,
html[data-kd-theme="dark"] body.kd-app legend,
html[data-kd-theme="dark"] body.kd-app .content-header,
html[data-kd-theme="dark"] body.kd-app .box-title { color: var(--kd-text-strong) !important; }
html[data-kd-theme="dark"] body.kd-app .box.box-gelen > .box-header {
    border-bottom-color: #285983 !important;
    background: linear-gradient(90deg, rgba(34, 111, 190, .34), rgba(18, 35, 57, .96)) !important;
}
html[data-kd-theme="dark"] body.kd-app .box.box-cikacak > .box-header {
    border-bottom-color: #743444 !important;
    background: linear-gradient(90deg, rgba(162, 43, 67, .32), rgba(38, 27, 42, .96)) !important;
}
html[data-kd-theme="dark"] body.kd-app .box.box-cikan > .box-header {
    border-bottom-color: #276952 !important;
    background: linear-gradient(90deg, rgba(22, 126, 88, .31), rgba(19, 42, 43, .96)) !important;
}
html[data-kd-theme="dark"] body.kd-app .box.box-yonlendirme > .box-header {
    border-bottom-color: #2b5f91 !important;
    background: linear-gradient(90deg, rgba(37, 119, 205, .34), rgba(18, 35, 57, .96)) !important;
}
html[data-kd-theme="dark"] body.kd-app .box.box-acil > .box-header {
    border-bottom-color: #775124 !important;
    background: linear-gradient(90deg, rgba(174, 98, 13, .32), rgba(43, 34, 26, .96)) !important;
}
html[data-kd-theme="dark"] body.kd-app .box.box-gelen > .box-header .box-title { color: #91caff !important; }
html[data-kd-theme="dark"] body.kd-app .box.box-cikacak > .box-header .box-title { color: #ff9caf !important; }
html[data-kd-theme="dark"] body.kd-app .box.box-cikan > .box-header .box-title { color: #79dfb8 !important; }
html[data-kd-theme="dark"] body.kd-app .box.box-yonlendirme > .box-header .box-title { color: #8fc7ff !important; }
html[data-kd-theme="dark"] body.kd-app .box.box-acil > .box-header .box-title { color: #ffc477 !important; }
html[data-kd-theme="dark"] body.kd-app .text-muted,
html[data-kd-theme="dark"] body.kd-app small,
html[data-kd-theme="dark"] body.kd-app .help-block { color: var(--kd-muted) !important; }
html[data-kd-theme="dark"] body.kd-app hr { border-color: var(--kd-border) !important; }

/* Forms */
html[data-kd-theme="dark"] body.kd-app .form-control,
html[data-kd-theme="dark"] body.kd-app input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html[data-kd-theme="dark"] body.kd-app select,
html[data-kd-theme="dark"] body.kd-app textarea,
html[data-kd-theme="dark"] body.kd-app .input-group-addon {
    border-color: var(--kd-border-strong) !important;
    color: var(--kd-text) !important;
    background: var(--kd-control) !important;
    box-shadow: none !important;
}
html[data-kd-theme="dark"] body.kd-app .input-group-addon { color: var(--kd-muted) !important; background: var(--kd-surface-muted) !important; }
html[data-kd-theme="dark"] body.kd-app .form-control::placeholder,
html[data-kd-theme="dark"] body.kd-app input::placeholder,
html[data-kd-theme="dark"] body.kd-app textarea::placeholder { color: #8095ae !important; opacity: 1; }
html[data-kd-theme="dark"] body.kd-app .form-control:focus,
html[data-kd-theme="dark"] body.kd-app input:focus,
html[data-kd-theme="dark"] body.kd-app select:focus,
html[data-kd-theme="dark"] body.kd-app textarea:focus {
    border-color: var(--kd-focus) !important;
    box-shadow: 0 0 0 3px rgba(101, 178, 255, .18) !important;
}
html[data-kd-theme="dark"] body.kd-app .form-control[disabled],
html[data-kd-theme="dark"] body.kd-app .form-control[readonly],
html[data-kd-theme="dark"] body.kd-app fieldset[disabled] .form-control {
    color: #8295ad !important;
    background: #0e1929 !important;
    opacity: 1;
}
html[data-kd-theme="dark"] body.kd-app input[type="checkbox"],
html[data-kd-theme="dark"] body.kd-app input[type="radio"] { accent-color: var(--kd-primary); }

/* Buttons */
html[data-kd-theme="dark"] body.kd-app .btn-default,
html[data-kd-theme="dark"] body.kd-app .btn-outline-primary,
html[data-kd-theme="dark"] body.kd-app .pagination > li > a,
html[data-kd-theme="dark"] body.kd-app .pagination > li > span {
    border-color: var(--kd-border-strong) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface-raised) !important;
}
html[data-kd-theme="dark"] body.kd-app .btn-default:hover,
html[data-kd-theme="dark"] body.kd-app .btn-default:focus,
html[data-kd-theme="dark"] body.kd-app .pagination > li > a:hover {
    border-color: var(--kd-primary) !important;
    color: var(--kd-primary-strong) !important;
    background: var(--kd-primary-soft) !important;
}
body.kd-app .pagination > li.active > a,
body.kd-app .pagination > li.active > span,
body.kd-app .pagination > li.active > a:hover,
body.kd-app .pagination > li.active > a:focus {
    border-color: var(--kd-pagination-active-border) !important;
    color: var(--kd-pagination-active-text) !important;
    background: var(--kd-pagination-active-bg) !important;
    box-shadow: 0 0 0 2px var(--kd-pagination-active-ring) !important;
    font-weight: 800;
}
html[data-kd-theme="dark"] body.kd-app .pagination > li.active > a,
html[data-kd-theme="dark"] body.kd-app .pagination > li.active > span,
html[data-kd-theme="dark"] body.kd-app .pagination > li.active > a:hover,
html[data-kd-theme="dark"] body.kd-app .pagination > li.active > a:focus {
    border-color: var(--kd-pagination-active-border) !important;
    color: var(--kd-pagination-active-text) !important;
    background: var(--kd-pagination-active-bg) !important;
    box-shadow: 0 0 0 2px var(--kd-pagination-active-ring) !important;
}
html[data-kd-theme="dark"] body.kd-app .btn-box-tool {
    border-color: var(--kd-border-strong) !important;
    color: #8fc7ff !important;
    background: var(--kd-surface-raised) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .24) !important;
}
html[data-kd-theme="dark"] body.kd-app .btn-box-tool:hover,
html[data-kd-theme="dark"] body.kd-app .btn-box-tool:focus,
html[data-kd-theme="dark"] body.kd-app .btn-box-tool:focus-visible {
    border-color: var(--kd-primary) !important;
    color: var(--kd-text-strong) !important;
    background: var(--kd-primary-soft) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(101, 178, 255, .18) !important;
}
html[data-kd-theme="dark"] body.kd-app .btn-box-tool:active,
html[data-kd-theme="dark"] body.kd-app .btn-box-tool.active {
    border-color: var(--kd-focus) !important;
    color: #ffffff !important;
    background: #123153 !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .28) !important;
}
html[data-kd-theme="dark"] body.kd-app .btn-box-tool[disabled],
html[data-kd-theme="dark"] body.kd-app .btn-box-tool.disabled {
    border-color: var(--kd-border) !important;
    color: var(--kd-muted) !important;
    background: var(--kd-surface-muted) !important;
    box-shadow: none !important;
}
html[data-kd-theme="dark"] body.kd-app .btn-primary { border-color: #3b9cff !important; background: linear-gradient(135deg, #318fe9, #216fc9) !important; }
html[data-kd-theme="dark"] body.kd-app .btn-success { border-color: #2aad79 !important; background: #238b63 !important; }
html[data-kd-theme="dark"] body.kd-app .btn-danger { border-color: #df5a69 !important; background: #b83f50 !important; }
html[data-kd-theme="dark"] body.kd-app .btn-warning { border-color: #d79325 !important; color: #fff !important; background: #a96b13 !important; }
html[data-kd-theme="dark"] body.kd-app .btn[disabled],
html[data-kd-theme="dark"] body.kd-app .btn.disabled { opacity: .52; }

/* Tables and mobile records */
html[data-kd-theme="dark"] body.kd-app .table,
html[data-kd-theme="dark"] body.kd-app table { color: var(--kd-text); background: transparent; }
html[data-kd-theme="dark"] body.kd-app .table-bordered { border-color: var(--kd-border) !important; }
html[data-kd-theme="dark"] body.kd-app .table > thead > tr > th,
html[data-kd-theme="dark"] body.kd-app .table > tbody > tr > th,
html[data-kd-theme="dark"] body.kd-app .table > tfoot > tr > th {
    border-color: var(--kd-border) !important;
    color: #cfe3fb !important;
    background: #182a43 !important;
}
html[data-kd-theme="dark"] body.kd-app .table > tbody > tr > td,
html[data-kd-theme="dark"] body.kd-app .table > tfoot > tr > td {
    border-color: var(--kd-border) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface) !important;
}
html[data-kd-theme="dark"] body.kd-app .table-striped > tbody > tr:nth-of-type(odd) > td { background: #122036 !important; }
html[data-kd-theme="dark"] body.kd-app .table-hover > tbody > tr:hover > td,
html[data-kd-theme="dark"] body.kd-app .table > tbody > tr:hover > td { background: var(--kd-row-hover) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-mobile-cards tbody tr,
html[data-kd-theme="dark"] body.kd-app .kd-mobile-card {
    border-color: var(--kd-border) !important;
    background: var(--kd-surface) !important;
    box-shadow: var(--kd-shadow-sm) !important;
}
@media (max-width: 767px) {
    html[data-kd-theme="dark"] body.kd-app .kd-mobile-cards > tbody > tr > td,
    html[data-kd-theme="dark"] body.kd-app .kd-mobile-cards.table-striped > tbody > tr:nth-of-type(odd) > td,
    html[data-kd-theme="dark"] body.kd-app .kd-mobile-cards.table-hover > tbody > tr:hover > td,
    html[data-kd-theme="dark"] body.kd-app .table.kd-mobile-cards > tbody > tr:hover > td {
        background: transparent !important;
    }
}
html[data-kd-theme="dark"] body.kd-app td::before { color: var(--kd-muted); }
html[data-kd-theme="dark"] body.kd-app .dataTables_info,
html[data-kd-theme="dark"] body.kd-app .dataTables_length,
html[data-kd-theme="dark"] body.kd-app .dataTables_filter { color: var(--kd-muted) !important; }

/* Navigation, dropdowns and modals */
html[data-kd-theme="dark"] body.kd-app .dropdown-menu,
html[data-kd-theme="dark"] body.kd-app .popover,
html[data-kd-theme="dark"] body.kd-app .modal-content {
    border-color: var(--kd-border) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface-raised) !important;
    box-shadow: var(--kd-shadow) !important;
}
html[data-kd-theme="dark"] body.kd-app .dropdown-menu > li > a { color: var(--kd-text) !important; }
html[data-kd-theme="dark"] body.kd-app .dropdown-menu > li > a:hover { color: var(--kd-primary-strong) !important; background: var(--kd-primary-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .modal { background: var(--kd-overlay) !important; }
html[data-kd-theme="dark"] body.kd-app .modal-header,
html[data-kd-theme="dark"] body.kd-app .modal-footer { border-color: var(--kd-border) !important; }
html[data-kd-theme="dark"] body.kd-app .modal-header .close { color: #fff; text-shadow: none; }
html[data-kd-theme="dark"] body.kd-app .kd-filter-modal .modal-header,
html[data-kd-theme="dark"] body.kd-app .kd-isler-column-modal .modal-header,
html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-header,
html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-header {
    border-bottom-color: var(--kd-border) !important;
    color: var(--kd-text-strong) !important;
    background: linear-gradient(135deg, #172c49, var(--kd-surface-muted)) !important;
}
html[data-kd-theme="dark"] body.kd-app .kd-filter-modal .modal-title,
html[data-kd-theme="dark"] body.kd-app .kd-isler-column-modal .modal-title,
html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-title,
html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-title { color: var(--kd-text-strong) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-filter-modal .modal-title > i,
html[data-kd-theme="dark"] body.kd-app .kd-isler-column-modal .modal-title > i,
html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-title > i,
html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-title > i { color: var(--kd-primary-strong) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-filter-modal .modal-header .close,
html[data-kd-theme="dark"] body.kd-app .kd-isler-column-modal .modal-header .close,
html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-header .close,
html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-header .close {
    color: var(--kd-navy-700) !important;
    background: transparent !important;
    text-shadow: none !important;
    opacity: 1 !important;
}
html[data-kd-theme="dark"] body.kd-app .kd-filter-modal .modal-header .close:hover,
html[data-kd-theme="dark"] body.kd-app .kd-filter-modal .modal-header .close:focus,
html[data-kd-theme="dark"] body.kd-app .kd-isler-column-modal .modal-header .close:hover,
html[data-kd-theme="dark"] body.kd-app .kd-isler-column-modal .modal-header .close:focus,
html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-header .close:hover,
html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-header .close:focus,
html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-header .close:hover,
html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-header .close:focus {
    color: #fff !important;
    opacity: 1 !important;
}
html[data-kd-theme="dark"] body.kd-app .kd-filter-modal .modal-footer,
html[data-kd-theme="dark"] body.kd-app .kd-isler-column-modal .modal-footer,
html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-footer,
html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-footer {
    border-top-color: var(--kd-border) !important;
    background: var(--kd-surface-muted) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}
html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-body,
html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-body {
    color: var(--kd-text) !important;
    background: var(--kd-surface-raised) !important;
}
html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-body hr,
html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-body hr {
    border-color: var(--kd-border) !important;
}
@media (max-width: 767px) {
    html[data-kd-theme="dark"] body.kd-app .kd-isler-column-modal .modal-footer,
    html[data-kd-theme="dark"] body.kd-app .kd-managed-columns-modal .modal-footer,
    html[data-kd-theme="dark"] body.kd-app #columnSettingsModal .modal-footer {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02), 0 -4px 16px rgba(0, 0, 0, .32);
    }
}
html[data-kd-theme="dark"] body.kd-app .nav-tabs { border-color: var(--kd-border) !important; }
html[data-kd-theme="dark"] body.kd-app .nav-tabs > li > a { border-color: transparent; color: var(--kd-muted) !important; }
html[data-kd-theme="dark"] body.kd-app .nav-tabs > li.active > a,
html[data-kd-theme="dark"] body.kd-app .nav-tabs > li.active > a:hover,
html[data-kd-theme="dark"] body.kd-app .nav-tabs > li.active > a:focus {
    border-color: var(--kd-border) var(--kd-border) var(--kd-surface) !important;
    color: var(--kd-primary-strong) !important;
    background: var(--kd-surface) !important;
}
html[data-kd-theme="dark"] body.kd-app .list-group-item {
    border-color: var(--kd-border) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface) !important;
}
html[data-kd-theme="dark"] body.kd-app .kd-assigned-list .list-group-item {
    color: var(--kd-text-strong) !important;
    background: var(--kd-surface) !important;
}
html[data-kd-theme="dark"] body.kd-app .kd-assigned-list .list-group-item:nth-child(even) {
    background: var(--kd-surface-muted) !important;
}

/* Select2 */
html[data-kd-theme="dark"] body.kd-app .select2-container--default .select2-selection--single,
html[data-kd-theme="dark"] body.kd-app .select2-container--default .select2-selection--multiple,
html[data-kd-theme="dark"] .select2-dropdown,
html[data-kd-theme="dark"] .select2-search__field {
    border-color: var(--kd-border-strong) !important;
    color: var(--kd-text) !important;
    background: var(--kd-control) !important;
}
html[data-kd-theme="dark"] body.kd-app .select2-selection__rendered,
html[data-kd-theme="dark"] .select2-results__option { color: var(--kd-text) !important; }
html[data-kd-theme="dark"] .select2-results__option[aria-selected="true"] { background: #213753 !important; }
html[data-kd-theme="dark"] .select2-results__option--highlighted[aria-selected] { color: #fff !important; background: #287fcf !important; }
html[data-kd-theme="dark"] body.kd-app .select2-selection__placeholder { color: #8095ae !important; }
html[data-kd-theme="dark"] body.kd-app .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border-color: #39618c !important;
    color: #dcebff !important;
    background: #1b4168 !important;
}

/* Date pickers */
html[data-kd-theme="dark"] .datepicker,
html[data-kd-theme="dark"] .daterangepicker,
html[data-kd-theme="dark"] .daterangepicker .calendar-table {
    border-color: var(--kd-border) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface-raised) !important;
}
html[data-kd-theme="dark"] .datepicker table tr td.day:hover,
html[data-kd-theme="dark"] .datepicker table tr td.focused,
html[data-kd-theme="dark"] .daterangepicker td.available:hover,
html[data-kd-theme="dark"] .daterangepicker th.available:hover { background: var(--kd-row-hover) !important; }
html[data-kd-theme="dark"] .datepicker table tr td.old,
html[data-kd-theme="dark"] .datepicker table tr td.new,
html[data-kd-theme="dark"] .daterangepicker td.off { color: #70849c !important; background: var(--kd-surface-muted) !important; }
html[data-kd-theme="dark"] .datepicker table tr td.active,
html[data-kd-theme="dark"] .daterangepicker td.active { color: #fff !important; background: #287fcf !important; }

/* Feedback, dashboard and profile details */
html[data-kd-theme="dark"] body.kd-app .alert-success { border-color: #236b56 !important; color: #a8f1d2 !important; background: var(--kd-success-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .alert-danger,
html[data-kd-theme="dark"] body.kd-app .alert-error { border-color: #7a3543 !important; color: #ffc1c8 !important; background: var(--kd-danger-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .alert-warning { border-color: #795b24 !important; color: #ffe0a2 !important; background: var(--kd-warning-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .alert-info { border-color: #255f7b !important; color: #b9eaff !important; background: #12364b !important; }
html[data-kd-theme="dark"] body.kd-app .kd-toast { border-color: var(--kd-border) !important; color: var(--kd-text); background: var(--kd-surface-raised) !important; box-shadow: var(--kd-shadow) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-summary-card,
html[data-kd-theme="dark"] body.kd-app .kd-empty-state,
html[data-kd-theme="dark"] body.kd-app .kd-session-item,
html[data-kd-theme="dark"] body.kd-app .kd-profile-value,
html[data-kd-theme="dark"] body.kd-app .kd-security-rule,
html[data-kd-theme="dark"] body.kd-app .kd-action-bar {
    border-color: var(--kd-border) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface-raised) !important;
}
html[data-kd-theme="dark"] body.kd-app .kd-summary-card:hover { background: var(--kd-row-hover) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-empty-state i,
html[data-kd-theme="dark"] body.kd-app .kd-empty-state strong {
    color: #fff !important;
}
html[data-kd-theme="dark"] body.kd-app .progress { background: #0d1929 !important; }

/* Page-specific surfaces centralized by the previous UI refresh. */
html[data-kd-theme="dark"] body.kd-app .column-order-list,
html[data-kd-theme="dark"] body.kd-app .column-order-list li,
html[data-kd-theme="dark"] body.kd-app .col-order-listesi,
html[data-kd-theme="dark"] body.kd-app .col-order-listesi li,
html[data-kd-theme="dark"] body.kd-app .anasayfa-sira-listesi,
html[data-kd-theme="dark"] body.kd-app .anasayfa-sira-listesi li,
html[data-kd-theme="dark"] body.kd-app .toplam-box,
html[data-kd-theme="dark"] body.kd-app .mobil-share-step,
html[data-kd-theme="dark"] body.kd-app .mobil-share-step-title,
html[data-kd-theme="dark"] body.kd-app .mobil-share-image,
html[data-kd-theme="dark"] body.kd-app .mobil-share-image-placeholder,
html[data-kd-theme="dark"] body.kd-app .isduzen-dis-karti,
html[data-kd-theme="dark"] body.kd-app .kd-identity-card,
html[data-kd-theme="dark"] body.kd-app .kd-readonly-grid > div,
html[data-kd-theme="dark"] body.kd-app .kd-profile-card-header,
html[data-kd-theme="dark"] body.kd-app .kd-security-note,
html[data-kd-theme="dark"] body.kd-app .kd-session-device {
    border-color: var(--kd-border) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface-muted) !important;
}
html[data-kd-theme="dark"] body.kd-app .col-order-butonlar button,
html[data-kd-theme="dark"] body.kd-app .anasayfa-sira-butonlar button {
    border-color: var(--kd-border-strong) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface-raised) !important;
}
html[data-kd-theme="dark"] body.kd-app .column-list label,
html[data-kd-theme="dark"] body.kd-app .column-list-title,
html[data-kd-theme="dark"] body.kd-app .kd-profile-intro,
html[data-kd-theme="dark"] body.kd-app .kd-identity-username,
html[data-kd-theme="dark"] body.kd-app .kd-identity-details span,
html[data-kd-theme="dark"] body.kd-app .kd-readonly-grid span,
html[data-kd-theme="dark"] body.kd-app .kd-profile-card-header p,
html[data-kd-theme="dark"] body.kd-app .kd-field-help,
html[data-kd-theme="dark"] body.kd-app .kd-password-rules,
html[data-kd-theme="dark"] body.kd-app .kd-password-meter strong,
html[data-kd-theme="dark"] body.kd-app .kd-session-copy p,
html[data-kd-theme="dark"] body.kd-app .kd-session-copy small { color: var(--kd-muted) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-identity-card h2,
html[data-kd-theme="dark"] body.kd-app .kd-identity-details strong,
html[data-kd-theme="dark"] body.kd-app .kd-readonly-grid strong,
html[data-kd-theme="dark"] body.kd-app .kd-profile-card-header h2,
html[data-kd-theme="dark"] body.kd-app .kd-session-copy h3 { color: var(--kd-text-strong) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-profile-card-header { background: linear-gradient(180deg, #172840, #132238) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-profile-card-icon,
html[data-kd-theme="dark"] body.kd-app .kd-session-device { color: var(--kd-primary-strong) !important; background: var(--kd-primary-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-password-toggle { color: var(--kd-muted) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-password-toggle:hover { color: var(--kd-primary-strong) !important; background: var(--kd-primary-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-password-meter::before { background: var(--kd-border) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-badge-primary { border-color: #39618c !important; color: #acd5ff !important; background: #173c63 !important; }
html[data-kd-theme="dark"] body.kd-app .kd-badge-success { border-color: #286b56 !important; color: #9aebc8 !important; background: #143d33 !important; }
html[data-kd-theme="dark"] body.kd-app .kd-profile-alert-error { border-color: #7a3543 !important; color: #ffc1c8 !important; background: var(--kd-danger-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-profile-alert-success { border-color: #236b56 !important; color: #a8f1d2 !important; background: var(--kd-success-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .mobil-share-selected,
html[data-kd-theme="dark"] body.kd-app .liste-table .mobil-select-row.selected td { color: #b5f2d7 !important; background: #143c32 !important; }
html[data-kd-theme="dark"] body.kd-app .mobil-share-alert.error { color: #ffc1c8 !important; background: var(--kd-danger-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .pager-nav .pagination > li.disabled > a,
html[data-kd-theme="dark"] body.kd-app .pager-nav .pagination > li > span.aspNetDisabled { color: #667990 !important; background: #0e1929 !important; }
html[data-kd-theme="dark"] body.kd-app .pager-info,
html[data-kd-theme="dark"] body.kd-app .dataTables_info { color: #b9cbe1 !important; }
html[data-kd-theme="dark"] body.kd-app .pager-info strong,
html[data-kd-theme="dark"] body.kd-app .dataTables_info strong { color: var(--kd-text-strong) !important; }
html[data-kd-theme="dark"] body.kd-app .detayli-ara-badge { color: #9adfff !important; background: #173d5c !important; }
html[data-kd-theme="dark"] body.kd-app .btn.kd-action-detail { border-color: #76502c !important; color: #ffc17d !important; background: #3c2b1d !important; }
html[data-kd-theme="dark"] body.kd-app .btn.kd-action-edit { border-color: #365f8e !important; color: #9bd0ff !important; background: #183a5f !important; }
html[data-kd-theme="dark"] body.kd-app .btn.kd-action-delete,
html[data-kd-theme="dark"] body.kd-app .btn.kd-danger-action { border-color: #7a3543 !important; color: #ffadb7 !important; background: #44202a !important; }
html[data-kd-theme="dark"] body.kd-app .btn.kd-secondary-action { border-color: var(--kd-border-strong) !important; color: var(--kd-text) !important; background: var(--kd-surface-raised) !important; }
html[data-kd-theme="dark"] body.kd-app .btn.kd-tertiary-action { color: var(--kd-primary-strong) !important; }
html[data-kd-theme="dark"] body.kd-app .btn.kd-export-action { border-color: #286b56 !important; color: #9aebc8 !important; background: #143d33 !important; }
html[data-kd-theme="dark"] body.kd-app .kd-status-waiting { color: #ffd38a !important; background: #493718 !important; }
html[data-kd-theme="dark"] body.kd-app .kd-status-success { color: #9aebc8 !important; background: #143d33 !important; }
html[data-kd-theme="dark"] body.kd-app .kd-status-danger { color: #ffadb7 !important; background: #44202a !important; }
html[data-kd-theme="dark"] body.kd-app .kd-recipient-badge--laboratory { color: #9aebc8 !important; background: #143d33 !important; }
html[data-kd-theme="dark"] body.kd-app .kd-recipient-badge--hospital { color: #ffc58a !important; background: #4b2d16 !important; }
html[data-kd-theme="dark"] body.kd-app .validation-summary-errors { border-color: #7a3543 !important; color: #ffc1c8 !important; background: var(--kd-danger-soft) !important; }
html[data-kd-theme="dark"] body.kd-app .kd-mobile-cards > tbody > tr > td.kd-card-primary:first-child,
html[data-kd-theme="dark"] body.kd-app .kd-mobile-cards .kd-card-toggle,
html[data-kd-theme="dark"] body.kd-app .dis-durum-secim,
html[data-kd-theme="dark"] body.kd-app .dis-status-palette { border-color: var(--kd-border) !important; color: var(--kd-text) !important; background: var(--kd-surface-muted) !important; }

/* Dental, media and QR assets retain their original pixels. */
html[data-kd-theme="dark"] body.kd-app .tooth-card,
html[data-kd-theme="dark"] body.kd-app .dis-karti,
html[data-kd-theme="dark"] body.kd-app .kd-tooth-card,
html[data-kd-theme="dark"] body.kd-app .image-card,
html[data-kd-theme="dark"] body.kd-app .material-card {
    border-color: var(--kd-border) !important;
    background: var(--kd-surface-muted) !important;
}
html[data-kd-theme="dark"] body.kd-app img,
html[data-kd-theme="dark"] body.kd-app video,
html[data-kd-theme="dark"] body.kd-app canvas { filter: none; }
html[data-kd-theme="dark"] body.kd-app #qr-reader { border-color: var(--kd-primary) !important; background: #000 !important; }
html[data-kd-theme="dark"] body.kd-app #qrDurum { color: var(--kd-muted) !important; }

/* Login follows the last successfully synchronized account choice on this browser. */
.kd-login-logo-dark { display: none !important; }
html[data-kd-theme="dark"] body.kd-login-page {
    color: var(--kd-text);
    background:
        radial-gradient(circle at 15% 18%, rgba(59, 156, 255, .15), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(37, 111, 212, .12), transparent 32%),
        linear-gradient(145deg, #08111e 0%, #0b1626 48%, #101d31 100%) !important;
}
html[data-kd-theme="dark"] body.kd-login-page .kd-login-logo-light { display: none !important; }
html[data-kd-theme="dark"] body.kd-login-page .kd-login-logo-dark { display: block !important; }
html[data-kd-theme="dark"] body.kd-login-page .login-box-body {
    border-color: var(--kd-border) !important;
    color: var(--kd-text);
    background: rgba(20, 34, 56, .95) !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .35) !important;
}
html[data-kd-theme="dark"] body.kd-login-page .login-box-msg,
html[data-kd-theme="dark"] body.kd-login-page .beni_hatirla,
html[data-kd-theme="dark"] body.kd-login-page .legal-links a { color: var(--kd-text) !important; }
html[data-kd-theme="dark"] body.kd-login-page .form-control {
    border-color: var(--kd-border-strong) !important;
    color: var(--kd-text) !important;
    background: var(--kd-control) !important;
    box-shadow: none !important;
}
html[data-kd-theme="dark"] body.kd-login-page .form-control::placeholder { color: #8095ae !important; }
html[data-kd-theme="dark"] body.kd-login-page .form-control-feedback { color: var(--kd-muted) !important; }
html[data-kd-theme="dark"] body.kd-login-page .form-control:focus { border-color: var(--kd-focus) !important; box-shadow: 0 0 0 4px rgba(101, 178, 255, .16) !important; }
html[data-kd-theme="dark"] body.kd-login-page .legal-links { color: var(--kd-muted) !important; }
html[data-kd-theme="dark"] body.kd-login-page .legal-links a + a::before { color: var(--kd-border-strong) !important; }

@media (max-width: 767px) {
    body.kd-app .kd-profile-dropdown { width: min(270px, calc(100vw - 20px)); }
    body.kd-app .kd-theme-option { min-height: 46px; }
}

/* İş Kaydı: diş şeması, notlar ve alt işlem alanları */
html[data-kd-theme="dark"] body.kd-app .iskayit-islem-aksiyonlari {
    color: var(--kd-text);
    background: var(--kd-surface-muted) !important;
}
html[data-kd-theme="dark"] body.kd-app .iskayit-btn-yeni {
    border-color: #527ca4 !important;
    color: #9bcbfa !important;
    background: transparent !important;
}
html[data-kd-theme="dark"] body.kd-app .iskayit-btn-yeni:hover,
html[data-kd-theme="dark"] body.kd-app .iskayit-btn-yeni:focus {
    border-color: var(--kd-primary) !important;
    color: #d9edff !important;
    background: var(--kd-primary-soft) !important;
}
html[data-kd-theme="dark"] body.kd-app .iskayit-kayit-tipi > span,
html[data-kd-theme="dark"] body.kd-app .iskayit-durum-secimi > span,
html[data-kd-theme="dark"] body.kd-app .iskayit-finans-secimi-toggle > span {
    border-color: var(--kd-border) !important;
    color: var(--kd-text) !important;
    background: var(--kd-surface-raised) !important;
}
html[data-kd-theme="dark"] body.kd-app .iskayit-kayit-tipi.kayit-yeni:has(input:checked) > span,
html[data-kd-theme="dark"] body.kd-app .iskayit-durum-secimi.durum-ozel:has(input:checked) > span,
html[data-kd-theme="dark"] body.kd-app .iskayit-finans-secimi-toggle.finans-tl:has(input:checked) > span {
    border-color: var(--kd-primary) !important;
    color: #fff !important;
    background: var(--kd-primary) !important;
}
html[data-kd-theme="dark"] body.kd-app .iskayit-kayit-tipi.kayit-rpt:has(input:checked) > span,
html[data-kd-theme="dark"] body.kd-app .iskayit-durum-secimi.durum-iade:has(input:checked) > span {
    border-color: #d89024 !important;
    color: #fff !important;
    background: #b96f11 !important;
}
html[data-kd-theme="dark"] body.kd-app .iskayit-kayit-tipi.kayit-prova:has(input:checked) > span {
    border-color: #8882d5 !important;
    color: #fff !important;
    background: #6560ae !important;
}
html[data-kd-theme="dark"] body.kd-app .iskayit-durum-secimi.durum-acil:has(input:checked) > span {
    border-color: #ed7566 !important;
    color: #fff !important;
    background: #b94335 !important;
}
html[data-kd-theme="dark"] body.kd-app .iskayit-durum-secimi.durum-teslim:has(input:checked) > span,
html[data-kd-theme="dark"] body.kd-app .iskayit-finans-secimi-toggle.finans-odendi:has(input:checked) > span {
    border-color: #45c98a !important;
    color: #fff !important;
    background: #178153 !important;
}
html[data-kd-theme="dark"] body.kd-app .iskayit-not-salt-okunur {
    color: #b9c9da !important;
    background: #13243a !important;
    border-color: #324b68 !important;
    opacity: 1;
}
html[data-kd-theme="dark"] body.kd-app .dis-winforms-toolbar,
html[data-kd-theme="dark"] body.kd-app .dis-winforms-grid {
    color: var(--kd-text);
    border-color: var(--kd-border) !important;
    background: var(--kd-surface-muted) !important;
}
html[data-kd-theme="dark"] body.kd-app .dis-winforms-toolbar label,
html[data-kd-theme="dark"] body.kd-app .dis-toolbar-status label,
html[data-kd-theme="dark"] body.kd-app .dis-tooth-no {
    color: var(--kd-text-strong) !important;
}
html[data-kd-theme="dark"] body.kd-app .dis-quadrant-scroll,
html[data-kd-theme="dark"] body.kd-app .dis-tooth-cell,
html[data-kd-theme="dark"] body.kd-app .dis-tooth-no {
    border-color: #415c78 !important;
    background: #162941 !important;
}
html[data-kd-theme="dark"] body.kd-app .dis-sema-ozet .label-default {
    color: #d7e5f3 !important;
    background: #263f5c !important;
}

/* Printed output is deliberately light, independent from the active screen theme. */
@media print {
    :root,
    html[data-kd-theme="dark"] { color-scheme: light !important; }
    html[data-kd-theme="dark"] body,
    html[data-kd-theme="dark"] body.kd-app,
    html[data-kd-theme="dark"] body.kd-app .content-wrapper,
    html[data-kd-theme="dark"] body.kd-app .box,
    html[data-kd-theme="dark"] body.kd-app .panel,
    html[data-kd-theme="dark"] body.kd-app table,
    html[data-kd-theme="dark"] body.kd-app th,
    html[data-kd-theme="dark"] body.kd-app td {
        color: #111 !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    html[data-kd-theme="dark"] body.kd-app th,
    html[data-kd-theme="dark"] body.kd-app td { border-color: #d8dee8 !important; }
    html[data-kd-theme="dark"] body.kd-app .main-header .logo #imgLogoDesktop { display: inline-block !important; }
    html[data-kd-theme="dark"] body.kd-app .main-header .logo #imgLogoDesktopDark { display: none !important; }
}
