﻿body[data-bs-theme="dark"] {
    background-color: #121212;
    color: #e0e0e0;
}

    body[data-bs-theme="dark"] .k-input {
        background-color: #212529 !important;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .form-control {
        background-color: #212529;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-input .k-input-button {
        background-color: #373c40 !important;
        color: #e0e0e0;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-picker {
        background-color: #212529;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-treeview-leaf.k-hover {
        background-color: #212529;
        color: #e0e0e0 !important;
    }

    body[data-bs-theme="dark"] .k-list-content {
        background-color: #212529;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-dropdown {
        background-color: #212529;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-grid {
        background-color: #212529 !important;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-grid-pager {
        background-color: #212529 !important;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-grid-header {
        background-color: #343a40 !important;
        color: #e0e0e0 !important;
    }

    body[data-bs-theme="dark"] .k-table-row {
        background-color: #212529;
        color: #e0e0e0 !important;
    }


        body[data-bs-theme="dark"] .k-table-row.k-selected {
            color: #e0e0e0 !important;
        }

            body[data-bs-theme="dark"] .k-table-row.k-selected > .k-table-td {
                color: #e0e0e0 !important;
            }

        body[data-bs-theme="dark"] .k-table-row.disabled {
            background-color: #373c40 !important;
            color: #e0e0e0 !important;
        }

    body[data-bs-theme="dark"] .k-grid td, .k-grid .k-table-td, .k-grid .k-grid-content, .k-grid .k-grid-header-locked, .k-grid .k-grid-content-locked {
        border-color: transparent !important;
    }

    body[data-bs-theme="dark"] .k-input .k-spinner-increase {
        background-color: #373c40 !important;
        color: #e0e0e0;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-input .k-spinner-decrease {
        background-color: #373c40 !important;
        color: #e0e0e0;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-datepicker .k-input-button {
        background-color: #373c40 !important;
        color: #e0e0e0;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-calendar-container {
        background-color: #212529 !important;
        color: #e0e0e0 !important;
        border: 1px solid #343a40;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    }

        body[data-bs-theme="dark"] .k-calendar-container .k-calendar-header {
            background-color: #343a40 !important;
            color: #e0e0e0 !important;
            border-bottom: 1px solid #495057;
        }

    body[data-bs-theme="dark"] .k-calendar {
        background-color: #212529 !important;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

        body[data-bs-theme="dark"] .k-calendar .k-header {
            background-color: #212529 !important;
            color: #e0e0e0 !important;
            border-color: #343a40;
        }

    body[data-bs-theme="dark"] .k-calendar-container .k-calendar-nav .k-button {
        background-color: #212529 !important;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-calendar-container table {
        background-color: #212529;
        color: #e0e0e0;
    }

        body[data-bs-theme="dark"] .k-calendar-container table td.k-state-hover {
            background-color: #495057 !important;
            color: #ffffff !important;
        }

        body[data-bs-theme="dark"] .k-calendar-container table td.k-selected {
            background-color: #007bff !important;
            color: #ffffff !important;
        }

        body[data-bs-theme="dark"] .k-calendar-container table td.k-state-disabled {
            color: #6c757d !important;
            background-color: #212529 !important;
        }

    body[data-bs-theme="dark"] label-field {
        background-color: #212529;
        color: #e0e0e0;
    }

    body[data-bs-theme="dark"] .k-editor {
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-list-item-text {
        color: #e0e0e0 !important;
        border-color: #343a40 !important;
    }

    body[data-bs-theme="dark"] .k-list-item.k-hover {
        color: #e0e0e0 !important;
        background-color: #343a40 !important;
        border-color: #343a40 !important;
    }

    body[data-bs-theme="dark"] .k-list-item-text span {
        color: #e0e0e0 !important;
        border-color: #343a40 !important;
    }

    body[data-bs-theme="dark"] .k-editor-toolbar {
        background-color: #343a40 !important;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

        body[data-bs-theme="dark"] .k-editor-toolbar button {
            background-color: #212529;
            color: #e0e0e0 !important;
            border-color: #343a40;
        }

        body[data-bs-theme="dark"] .k-editor-toolbar .k-list-content > li.k-list-item {
            color: #e0e0e0 !important;
        }

    body[data-bs-theme="dark"] .k-switch-off .k-switch-track {
        background-color: #373c40 !important;
    }

    body[data-bs-theme="dark"] toast-notification {
        background-color: #212529;
    }

        body[data-bs-theme="dark"] toast-notification[data-status="danger"] {
            color: #ba201c;
            font-weight: bold;
            border: 1px solid #e63946;
            box-shadow: 0 4px 10px rgba(186, 32, 28, 0.3);
        }

            body[data-bs-theme="dark"] toast-notification[data-status="danger"]::after {
                background-color: #ba201c;
                opacity: 0.9;
            }

        body[data-bs-theme="dark"] toast-notification[data-status="success"] {
            color: #228747;
            font-weight: bold;
            border: 1px solid #2a9d8f;
            box-shadow: 0 4px 10px rgba(34, 135, 71, 0.3);
        }

            body[data-bs-theme="dark"] toast-notification[data-status="success"]::after {
                background-color: #228747;
                opacity: 0.9;
            }

        body[data-bs-theme="dark"] toast-notification notification-close {
            color: #fff;
        }

    body[data-bs-theme="dark"] .k-chip {
        background-color: #373c40 !important;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }


    body[data-bs-theme="dark"] .k-invalid {
        border: 2px solid #de1f1f !important;
        background-color: #401c1c !important;
        outline: none !important;
    }

    body[data-bs-theme="dark"] .k-corrected {
        border: 2px solid #0ecc29 !important;
        background-color: #075412 !important;
        outline: none !important;
    }

    body[data-bs-theme="dark"] .form-select {
        background-color: #212529;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-grid-norecords-template {
        background-color: #212529;
        color: #e0e0e0 !important;
        border: none;
    }

    body[data-bs-theme="dark"] .k-treeview-item {
        color: #e0e0e0 !important;
    }

        body[data-bs-theme="dark"] .k-treeview-item .k-image {
            -webkit-filter: invert(100%);
            filter: invert(100%);
        }

    body[data-bs-theme="dark"] .k-dialog {
        background-color: #121212;
        border-color: #343a40;
    }

        body[data-bs-theme="dark"] .k-dialog .k-dialog-content {
            color: #e0e0e0;
        }

        body[data-bs-theme="dark"] .k-dialog .k-dialog-titlebar {
            border-color: #343a40;
        }

        body[data-bs-theme="dark"] .k-dialog .k-dialog-title {
            color: #e0e0e0;
        }

    body[data-bs-theme="dark"] .k-radio-label {
        color: #e0e0e0;
    }

    body[data-bs-theme="dark"] .k-list-filter {
        background-color: #373c40 !important;
        color: #e0e0e0;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-list-optionlabel {
        background-color: #373c40 !important;
        color: #e0e0e0 !important;
    }

    body[data-bs-theme="dark"] .k-radio {
        background-color: #212529;
    }

    body[data-bs-theme="dark"] .k-checkbox {
        background-color: #373c40 !important;
    }

    body[data-bs-theme="dark"] .k-expander {
        border-color: #373c40;
    }

    body[data-bs-theme="dark"] .k-expander-header {
        background-color: #212529;
    }

    body[data-bs-theme="dark"] .k-expander-indicator {
        color: #fff;
    }

    body[data-bs-theme="dark"] .k-expander-content {
        background-color: #121212;
        color: #fff;
    }


    body[data-bs-theme="dark"] section.shadow {
        box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.1), 0 0 0 1px hsla(230, 13%, 9%, 0.075), 0 0.3px 0.4px hsla(230, 13%, 9%, 0.02), 0 0.9px 1.5px hsla(230, 13%, 9%, 0.045), 0 3.5px 6px hsla(230, 13%, 9%, 0.09);
    }

    body[data-bs-theme="dark"] .k-popover-inner {
        background-color: #212529;
        color: #fff;
    }

    body[data-bs-theme="dark"] .k-popover {
        background-color: #212529;
        color: #fff;
        border-color: #186FB5;
    }

    body[data-bs-theme="dark"] .k-tabstrip-content,
    body[data-bs-theme="dark"] .k-tabstrip > .k-content {
        border-color: #373c40 !important;
        color: #000 !important;
        background-color: #1d2124 !important;
    }

    body[data-bs-theme="dark"] .k-tabstrip-items-wrapper .k-item:active,
    body[data-bs-theme="dark"] .k-tabstrip-items-wrapper .k-item.k-active,
    body[data-bs-theme="dark"] .k-tabstrip-items-wrapper .k-item.k-selected {
        border-color: #373c40 !important;
        color: #fff !important;
        background-color: #1d2124 !important;
    }

    body[data-bs-theme="dark"] .k-tabstrip-items-wrapper {
        border-color: #373c40 !important;
    }

        body[data-bs-theme="dark"] .k-tabstrip-items-wrapper .k-item.k-hover {
            border-color: #343a40 !important;
        }

    body[data-bs-theme="dark"] input[type="file"]::file-selector-button {
        background-color: #212529 !important;
        color: #fff !important;
    }

    body[data-bs-theme="dark"] flex-row p {
        color: #e0e0e0 !important;
    }

    body[data-bs-theme="dark"] .k-upload .k-upload-button {
        background-color: #212529 !important;
        color: #fff !important;
        border: 1px solid #373c40 !important;
        border-radius: 4px;
        padding: 8px 14px;
    }

    body[data-bs-theme="dark"] .k-dropzone .k-upload-dropzone {
        background-color: #343a40 !important;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }

    body[data-bs-theme="dark"] .k-upload .k-upload-sync .k-upload-empty .k-valid {
        background-color: #343a40 !important;
        color: #e0e0e0 !important;
        border-color: #343a40;
    }
