@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/material_icons.woff2") format("woff2");
}

.material-icons {
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/material_icons_outlined.woff2") format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.note-modal-backdrop {
    z-index: 1020;
}

.note-editing-area {
    background-color: white;
}

.oh-activity-sidebar__body {
    overflow-y: auto !important;
    min-height: calc(100% - 90px) !important;
    max-height: calc(110% - 90px) !important;
}


#mainNav {
    padding: 0 !important;
}

.oh-modal__close--custom {
    border: none;
    background: none;
    font-size: 1.5rem;
    opacity: 0.7;
    position: absolute;
    top: 25px;
    right: 15px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

ul.errorlist {
    color: #d9534f;
    background-color: #f0d8d8;
    border-color: #d6e9c6;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;

}

ul:not(.ul) {
    list-style-type: none;
}

ion-icon {
    pointer-events: none;
}

.row-status--purple {
    border-left: 4px solid rgba(128, 128, 128, 0.482);
    border-radius: 5px;
}

.row-status--cyan {
    border-left: 4px solid cyan;
    border-radius: 5px;
}

.row-status--yellow {
    border-left: 4px solid yellowgreen;
    border-radius: 5px;
}

.row-status--red {
    border-left: 4px solid red;
    border-radius: 5px;
}

.row-status--black {
    border-left: 4px solid black;
    border-radius: 5px;
}

.row-status--gray {
    border-left: 4px solid gray;
    border-radius: 5px;
}

.row-status--orange {
    border-left: 4px solid orange;
    border-radius: 5px;
}

.row-status--gray {
    border-left: 4px solid gray;
    border-radius: 5px;
}

.row-status--yellow {
    border-left: 4px solid yellowgreen;
    border-radius: 5px;
}

.row-status--blue {
    border-left: 4px solid rgb(103, 171, 238);
    border-radius: 5px;
}

form label {
    font-weight: 700;
}

.oh-modal .oh-modal__dialog-title {
    font-weight: 600;
    color: #4f4a4a;
}

.flexbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.flexbox>div {
    width: 300px;
    height: 300px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
}

.triple-spinner {
    display: block;
    position: relative;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid #FF5722;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.triple-spinner::before,
.triple-spinner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
}

.triple-spinner::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-top-color: #FF9800;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3.5s linear infinite;
}

.triple-spinner::after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: #FFC107;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.75s linear infinite;
}

@-webkit-keyframes spin {
    -webkit-from {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    -webkit-to {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.oh-titlebar__tag.filter-field {
    border: solid 1px #ff450033;
}

.oh-titlebar__tag--custom {
    background-color: rgba(255, 68, 0, 0.543) !important;
    color: white;
}

.loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-left: 199px;
}

.loader {
    border: 10px solid #f3f3f3;
    border-radius: 50%;
    border-top: 10px solid #a4a3a3;
    width: 100%;
    height: 100%;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

.loader-text {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    font-weight: bold;
    color: #000;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.oh-accordion-meta__header .oh-accordion-meta__title {
    font-weight: 600;
}


.exclude-accordion-style {
    cursor: pointer;
}

.panel {
    display: none;
    background-color: white;
    overflow: hidden;

}

.perm-accordion {
    border: 1px solid #6c757d1c !important;
    margin: 0 0 2px 0 !important;
    width: -100%;
}

.app-permissions {
    background-color: rgba(242, 249, 255, 0.586);
}

.perm-accordion-active {
    background-color: rgba(215, 233, 251, 0.621) !important;
}

.perm-accordion-active:hover {
    background-color: rgba(215, 233, 251, 0.408) !important;
}

.arrow-up::before {
    content: '\21D1';
    font-size: 15px;
    display: inline-block;
    margin-right: 5px;
}

.arrow-down::before {
    content: '\21D3';
    font-size: 15px;
    display: inline-block;
    margin-right: 5px;
}

.arrow-up-down::before {
    content: '\21C5';
    font-size: 15px;
    display: inline-block;
    margin-right: 5px;
}

.oh-activity-sidebar__header {
    position: relative;
}

.delete-all-link {
    position: absolute;
    color: rgb(63 124 242);
    top: -5px;
    right: 10px;
    margin: 10px;
    cursor: pointer;
}

.oh-sticky-table__right {
    position: sticky;
    right: 0;
    background-color: #fff;
}

.select2-container .select2-selection.select2-selection--multiple {
    padding: 5px !important;
    max-height: 90px !important;
    overflow: hidden;
    overflow-y: scroll;
}

@media screen and (max-width: 575.98px) {
    .at-work-seconds {
        font-size: 10px;
    }

    #attendance-activity-container .oh-btn {
        padding: 0.5rem 0.2rem;
    }

    .oh-pagination {
        margin-bottom: 10px;

    }
}

.oh-main__topbar {
    padding-bottom: 1rem;
}

.oh-inner-sidebar-content {
    padding-top: 0;
}

.hydrated:not(.close-icon) {
    margin-right: 4px;
}

.required-star::after {
    content: "*";
    padding-left: 5px;
    color: #000000;
}


.oh-navbar {
    z-index: 15 !important;
}

.swal2-actions {
    direction: rtl;
}

.oh-dropdown__menu {
    z-index: 15
}

.chart_close_button {
    display: none;
}

.oh-card-dashboard:hover .chart_close_button {
    display: block;
}


.animated-background {
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    background-color: #f6f7f8;
    background: linear-gradient(to right, #eeeeee9c -58%, #e4e4e496 18%, #eeeeee61 33%);
    background-size: 800px 64px;
    height: 300px;
    position: relative;
}


@keyframes placeHolderShimmer {
    0% {
        background-position: -800px 0
    }

    100% {
        background-position: 800px 0
    }
}

.d-inline {
    display: inline !important;
}

.d-none {
    display: none !important;
}

.oh-sidebar__company {
    position: sticky;
    top: 0;
    left: 0;
    backdrop-filter: blur(8px);
    z-index: 9 !important;
}

.note-modal-backdrop {
    display: none !important;
}

.lastTh {
    position: sticky;
    right: 0;
    background-color: #ffff !important;
    z-index: 2;
    width: 160px;

    @media (max-width: 768px) {
        position: unset;
    }
}

.fixed-table td {
    line-height: 1;
}

.lastTd {
    position: sticky;
    right: 0;
    z-index: 2;
    width: 160px;
    overflow: scroll;
    scrollbar-width: none !important;
    padding: 4px !important;

    @media (max-width: 768px) {
        position: unset;
    }
}

.custom-radio-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* New radio button style */
.custom-radio-checkmark {
    width: 18px;
    height: 18px;
    background-color: #eee;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

/* Selected radio */
.custom-radio-container input[type="radio"]:checked+.custom-radio-checkmark {
    background-color: red;
    border-color: red;
}

/* White center */
.custom-radio-checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.custom-radio-container input[type="radio"]:checked+.custom-radio-checkmark::after {
    display: block;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#c {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

#profile-view .oh-general__tab {
    margin-bottom: 15px;
}

#profile-view .resign-status {
    background: #73bbe12b;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #357579;
}

#profile-view .enlarge-image-container {
    display: none;
    position: fixed;
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 50%;
    z-index: 9999;
}

#profile-view .enlarge-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5%;
}

#profile-view .oh-sticky-table {
    max-height: 50vh;
}

#profile-view .oh-modal_close--custom {
    border: none;
    background: none;
    font-size: 1.5rem;
    opacity: 0.7;
    position: absolute;
    top: 25px;
    right: 15px;
}

#profile-view .oh-tabs__tablist .oh-tabs__tab--active:nth-last-child(2) {
    border-right: 1px solid hsl(213deg, 22%, 84%);
}

#profile-view .custom-dialog {
    max-width: 1000px;
    max-height: 800px;
}

#profile-view .file-validation {
    color: #4f5bd9;
    background-color: #d8e7f0;
    border-color: #d6e9c6;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 4px;

}

#profile-view .oh-not-found {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 50vh;
    opacity: 0.5;
}

#profile-view .editable-input:read-only {
    color: hsl(0, 0%, 11%);
    background-color: transparent;
    border: none;
    height: 100%;
    border: 1px solid transparent;
}

#profile-view .editable-input:read-only:hover {
    border: 1px solid hsl(213, 22%, 84%);
}

#profile-view .file-upload {
    margin-top: 6px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 1.75rem !important;
}

#profile-view .file-upload {
    margin-top: 6px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 1.75rem !important;
}

.oh-offboarding-card {
    height: 450px !important;
}

.display-justify-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.d-flex-justify-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#faqContainer .oh-faq__item-body {
    background: #e9dfec9c;
    opacity: 0.7;
}

.oh-faq__tag {
    border-radius: 10px;
    font-weight: 600;
}

#faqContainer .oh-faq__item-body {
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    overflow-y: auto;
}

#faqContainer .oh-faq__item--show .oh-faq__item-body {
    max-height: 200px;
    /* Adjust the max-height as needed */
}

#faqContainer .oh-title_faq__main-header {
    width: 70%;
}

#faqContainer .oh-select-faq {
    width: 12%;
}

#faqContainer .oh-select-faq,
.oh-select-faq:last-child,
.oh-faq__input-search {
    margin: 1rem 0;
}

#faqContainer h1.oh-main__titlebar-title {
    margin-bottom: 0;
}

#faqContainer .oh-faq_search--icon {
    top: 17px;
}

.truncated-text {
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truncated-text::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1) 80%);
    pointer-events: none;
}
#faqContainer .oh-faq_search--icon{
    top:17px;
}
.swal2-styled.swal2-confirm{
    background-color: rgb(0, 128, 0);
}
.swal2-styled.swal2-cancel{
    background-color : rgb(221, 51, 51);
}

/* User-selectable application theme. Keep the accent color unchanged in phase 1. */
:root {
    color-scheme: light;
    --hrms-bg: #f7f8fa;
    --hrms-surface: #ffffff;
    --hrms-surface-raised: #f1f3f5;
    --hrms-border: #d6dce2;
    --hrms-text: #242629;
    --hrms-muted: #68717b;
    --hrms-input: #ffffff;
    --hrms-accent: #e54f38;
    --hrms-accent-dark: #c93d2a;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --hrms-bg: #151719;
    --hrms-surface: #202326;
    --hrms-surface-raised: #292d31;
    --hrms-border: #41474d;
    --hrms-text: #f1f3f5;
    --hrms-muted: #b7bec6;
    --hrms-input: #1b1e21;
}

html[data-color="orange"] { --hrms-accent: #e54f38; --hrms-accent-dark: #c93d2a; }
html[data-color="blue"] { --hrms-accent: #2563a9; --hrms-accent-dark: #1d4f87; }
html[data-color="sky"] { --hrms-accent: #2f80ed; --hrms-accent-dark: #2167c7; }
html[data-color="gold"] { --hrms-accent: #b7791f; --hrms-accent-dark: #8f5d13; }
html[data-color="rose"] { --hrms-accent: #b23a62; --hrms-accent-dark: #8d2d4c; }

html[data-color] .oh-btn--secondary,
html[data-color] .oh-btn--secondary-outline,
html[data-color] .oh-navbar__action-icons-link:hover,
html[data-color] .oh-inner-sidebar__link--active,
html[data-color] .oh-tabs__tab--active {
    border-color: var(--hrms-accent);
}

html[data-color] .oh-btn--secondary,
html[data-color] .oh-inner-sidebar__link--active,
html[data-color] .oh-tabs__tab--active {
    background-color: var(--hrms-accent);
    color: #fff;
}

html[data-color] .oh-link,
html[data-color] .oh-btn--secondary-outline,
html[data-color] .oh-navbar__notification-tray-link:not(.oh-navbar__notification-tray-link--danger) {
    color: var(--hrms-accent);
}

html[data-color] .oh-navbar__notification-beacon,
html[data-color] .oh-navbar__notification-dot--green,
html[data-color] .oh-navbar__notification-image {
    background-color: var(--hrms-accent);
}

html[data-color] .oh-btn--secondary:hover,
html[data-color] .oh-btn--secondary:focus,
html[data-color] .oh-btn--secondary:active,
html[data-color] .oh-btn--secondary-outline:hover,
html[data-color] .oh-btn--secondary-outline:focus,
html[data-color] .oh-btn--secondary-outline:active {
    background-color: var(--hrms-accent-dark);
    border-color: var(--hrms-accent-dark);
    color: #fff;
}

html[data-color] input:focus,
html[data-color] select:focus,
html[data-color] textarea:focus {
    border-color: var(--hrms-accent);
    box-shadow: 0 0 0 2px var(--hrms-accent);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .oh-wrapper-main,
html[data-theme="dark"] #main,
html[data-theme="dark"] #main-section,
html[data-theme="dark"] #main-section-data,
html[data-theme="dark"] #sidebar,
html[data-theme="dark"] .oh-wrapper,
html[data-theme="dark"] .oh-wrapper-main {
    background-color: var(--hrms-bg);
    color: var(--hrms-text);
}

html[data-theme="dark"] .oh-navbar,
html[data-theme="dark"] .oh-card,
html[data-theme="dark"] .oh-modal__dialog,
html[data-theme="dark"] .oh-dropdown__menu,
html[data-theme="dark"] .oh-inner-sidebar,
html[data-theme="dark"] .oh-table,
html[data-theme="dark"] .oh-sticky-table,
html[data-theme="dark"] .oh-tabs__contents,
html[data-theme="dark"] .oh-profile-section,
html[data-theme="dark"] .oh-accordion-body,
html[data-theme="dark"] .oh-accordion-header,
html[data-theme="dark"] .oh-main__titlebar,
html[data-theme="dark"] .settings-label,
html[data-theme="dark"] .oh-navbar__action-icons,
html[data-theme="dark"] .oh-navbar__systray {
    background-color: var(--hrms-surface);
    color: var(--hrms-text);
    border-color: var(--hrms-border);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .oh-select,
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-dropdown {
    background-color: var(--hrms-input);
    color: var(--hrms-text);
    border-color: var(--hrms-border);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .oh-label,
html[data-theme="dark"] .oh-table th,
html[data-theme="dark"] .oh-table td,
html[data-theme="dark"] .oh-sticky-table th,
html[data-theme="dark"] .oh-sticky-table td {
    color: var(--hrms-muted);
}

html[data-theme="dark"] a,
html[data-theme="dark"] .oh-inner-sidebar__link,
html[data-theme="dark"] .oh-dropdown__link,
html[data-theme="dark"] .oh-navbar__action-icons-link {
    color: var(--hrms-text);
}

html[data-theme="dark"] .oh-auth,
html[data-theme="dark"] .oh-auth-card,
html[data-theme="dark"] .oh-onboarding,
html[data-theme="dark"] .oh-onboarding-card {
    background-color: var(--hrms-surface);
    color: var(--hrms-text);
    border-color: var(--hrms-border);
}

html[data-theme="dark"] .oh-auth-card .oh-label,
html[data-theme="dark"] .oh-auth-card .text-muted,
html[data-theme="dark"] .oh-onboarding-card .oh-label,
html[data-theme="dark"] .oh-onboarding-card .text-muted {
    color: var(--hrms-muted);
}

html[data-theme="dark"] .oh-card-dashboard,
html[data-theme="dark"] .oh-card-dashboard__header,
html[data-theme="dark"] .oh-card-dashboard__body,
html[data-theme="dark"] .oh-dashboard__cards,
html[data-theme="dark"] .oh-tabs,
html[data-theme="dark"] .oh-tabs__tab,
html[data-theme="dark"] .oh-tabs__contents,
html[data-theme="dark"] .oh-table-container,
html[data-theme="dark"] .oh-sticky-table__wrapper,
html[data-theme="dark"] .oh-pagination,
html[data-theme="dark"] .oh-pagination__link {
    background-color: var(--hrms-surface);
    color: var(--hrms-text);
    border-color: var(--hrms-border);
}

html[data-theme="dark"] table,
html[data-theme="dark"] thead,
html[data-theme="dark"] tbody,
html[data-theme="dark"] tr,
html[data-theme="dark"] td,
html[data-theme="dark"] th {
    border-color: var(--hrms-border);
}

html[data-theme="dark"] .oh-btn--light,
html[data-theme="dark"] .oh-btn--white,
html[data-theme="dark"] .oh-pagination__link--disabled,
html[data-theme="dark"] .oh-table__action {
    background-color: var(--hrms-surface-raised);
    color: var(--hrms-text);
    border-color: var(--hrms-border);
}

html[data-theme="dark"] .oh-card-dashboard__title,
html[data-theme="dark"] .oh-card-dashboard__count,
html[data-theme="dark"] .oh-tabs__tab,
html[data-theme="dark"] .oh-pagination__link {
    color: var(--hrms-text);
}

html[data-theme="dark"] .oh-card-dashboard__header--divider,
html[data-theme="dark"] .oh-table thead,
html[data-theme="dark"] .oh-sticky-table thead {
    border-color: var(--hrms-border);
}

html[data-theme="dark"] .oh-table tr,
html[data-theme="dark"] .oh-sticky-table tr,
html[data-theme="dark"] .oh-input-group,
html[data-theme="dark"] .oh-modal__dialog-body,
html[data-theme="dark"] .oh-modal__dialog-footer,
html[data-theme="dark"] .oh-navbar {
    border-color: var(--hrms-border);
}

html[data-theme="dark"] .oh-table tr:hover,
html[data-theme="dark"] .oh-sticky-table tr:hover,
html[data-theme="dark"] .oh-dropdown__link:hover,
html[data-theme="dark"] .oh-inner-sidebar__link:hover {
    background-color: var(--hrms-surface-raised);
}

/* Dropdown links inherit a light-theme !important rule from Horilla. Keep
   action menus readable in dark mode while preserving destructive red links. */
html[data-theme="dark"] .oh-dropdown__menu .oh-dropdown__link:not(.oh-dropdown__link--danger),
html[data-theme="dark"] .oh-dropdown__menu .oh-dropdown__link:not(.oh-dropdown__link--danger) * {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .oh-dropdown__menu .oh-dropdown__link:not(.oh-dropdown__link--danger):hover,
html[data-theme="dark"] .oh-dropdown__menu .oh-dropdown__link:not(.oh-dropdown__link--danger):focus {
    background-color: var(--hrms-surface-raised) !important;
    color: var(--hrms-accent) !important;
}

html[data-theme="dark"] .oh-dropdown__menu .oh-dropdown__link--danger,
html[data-theme="dark"] .oh-dropdown__menu .oh-dropdown__link--danger * {
    color: #ff6b6b !important;
}

/* Filter panels contain both native selects and Select2-enhanced selects.
   Keep their value, placeholder, and dropdown indicator visible together. */
html[data-theme="dark"] .oh-dropdown__filter select,
html[data-theme="dark"] .oh-dropdown__filter .select2-selection--single,
html[data-theme="dark"] .oh-dropdown__filter .select2-selection--multiple {
    background-color: var(--hrms-input) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-dropdown__filter .select2-selection--single .select2-selection__rendered,
html[data-theme="dark"] .oh-dropdown__filter .select2-selection--single .select2-selection__placeholder,
html[data-theme="dark"] .oh-dropdown__filter .select2-selection--multiple .select2-selection__rendered {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .oh-dropdown__filter .select2-selection--single .select2-selection__arrow b {
    border-top-color: var(--hrms-muted) !important;
}

.hrms-theme-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hrms-theme-settings {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #d6dce2;
}

.hrms-theme-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hrms-theme-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 9rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d6dce2;
    border-radius: 4px;
    cursor: pointer;
}

.hrms-color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hrms-color-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 7rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d6dce2;
    border-radius: 4px;
    cursor: pointer;
}

.hrms-color-option::before {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    content: "";
    background: var(--swatch);
}

.hrms-color-option--orange { --swatch: #e54f38; }
.hrms-color-option--blue { --swatch: #2563a9; }
.hrms-color-option--sky { --swatch: #2f80ed; }
.hrms-color-option--gold { --swatch: #b7791f; }
.hrms-color-option--rose { --swatch: #b23a62; }

.hrms-color-option input,
.hrms-theme-option input {
    accent-color: var(--hrms-accent);
}

html[data-theme="dark"] .hrms-theme-settings,
html[data-theme="dark"] .hrms-theme-option {
    border-color: var(--hrms-border);
}

html[data-theme="dark"] .hrms-color-option {
    border-color: var(--hrms-border);
    background-color: var(--hrms-surface-raised);
}

html[data-theme="dark"] .hrms-theme-option {
    background-color: var(--hrms-surface-raised);
}

/* Keep primary navigation labels white regardless of the selected accent. */
html[data-theme="light"] .oh-sidebar__menu-link,
html[data-theme="light"] .oh-sidebar__menu-link:hover,
html[data-theme="light"] .oh-sidebar__menu-link:focus,
html[data-theme="light"] .oh-sidebar__menu-link:active,
html[data-theme="light"] .oh-sidebar__menu-link--active,
html[data-theme="light"] .oh-sidebar__submenu-link,
html[data-theme="light"] .oh-sidebar__submenu-link:hover,
html[data-theme="light"] .oh-sidebar__submenu-link:focus,
html[data-theme="light"] .oh-sidebar__submenu-link:visited,
html[data-theme="dark"] .oh-sidebar__menu-link,
html[data-theme="dark"] .oh-sidebar__menu-link:hover,
html[data-theme="dark"] .oh-sidebar__menu-link:focus,
html[data-theme="dark"] .oh-sidebar__menu-link:active,
html[data-theme="dark"] .oh-sidebar__menu-link--active,
html[data-theme="dark"] .oh-sidebar__submenu-link,
html[data-theme="dark"] .oh-sidebar__submenu-link:hover,
html[data-theme="dark"] .oh-sidebar__submenu-link:focus,
html[data-theme="dark"] .oh-sidebar__submenu-link:visited {
    color: #fff !important;
}

html[data-theme="light"] .oh-sidebar__menu-link span,
html[data-theme="dark"] .oh-sidebar__menu-link span,
html[data-theme="light"] .oh-sidebar__submenu-link span,
html[data-theme="dark"] .oh-sidebar__submenu-link span {
    color: inherit !important;
}

/* Keep settings and module submenus readable on dark surfaces. */
html[data-theme="dark"] .oh-inner-sidebar__link,
html[data-theme="dark"] .oh-inner-sidebar__link:hover,
html[data-theme="dark"] .oh-inner-sidebar__link:focus,
html[data-theme="dark"] .oh-inner-sidebar__link:visited,
html[data-theme="dark"] .oh-inner-sidebar__link--active,
html[data-theme="dark"] .oh-inner-sidebar__link *,
html[data-theme="dark"] .oh-inner-sidebar .oh-dropdown__link,
html[data-theme="dark"] .oh-inner-sidebar .oh-dropdown__link * {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .oh-inner-sidebar__link--active {
    background-color: var(--hrms-surface-raised) !important;
    border-color: var(--hrms-accent) !important;
}

html[data-theme="dark"] .oh-inner-sidebar .oh-accordion-header,
html[data-theme="dark"] .oh-inner-sidebar .oh-accordion-header * {
    color: var(--hrms-text) !important;
}

/* Complete dark-mode coverage for reusable Horilla content components. */
html[data-theme="dark"] .oh-tabs__content,
html[data-theme="dark"] .oh-tabs__movable,
html[data-theme="dark"] .oh-tabs__movable-header,
html[data-theme="dark"] .oh-tabs__movable-body,
html[data-theme="dark"] .oh-accordion-meta__header,
html[data-theme="dark"] .oh-accordion-meta__body,
html[data-theme="dark"] .oh-kanban-card,
html[data-theme="dark"] .oh-sticky-table__thead,
html[data-theme="dark"] .oh-sticky-table__tbody,
html[data-theme="dark"] .oh-sticky-table__tfoot,
html[data-theme="dark"] .oh-sticky-table__th,
html[data-theme="dark"] .oh-sticky-table__td,
html[data-theme="dark"] .oh-table__thead,
html[data-theme="dark"] .oh-table__tbody,
html[data-theme="dark"] .oh-table__th,
html[data-theme="dark"] .oh-table__td,
html[data-theme="dark"] .oh-list,
html[data-theme="dark"] .oh-list__item,
html[data-theme="dark"] .oh-titlebar__tag,
html[data-theme="dark"] .oh-profile-card,
html[data-theme="dark"] .oh-user_permission-list_item,
html[data-theme="dark"] .oh-general__tab-target,
html[data-theme="dark"] .oh-card-dashboard--transparent {
    background-color: var(--hrms-surface) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

/* Cards shared by policies, loans, reimbursements, resignations, FAQs and mail templates. */
html[data-theme="dark"] .oh-faq-card {
    background-color: var(--hrms-surface) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-faq-card:hover {
    border-color: #59616a !important;
    box-shadow: 0 3px 8px rgb(0 0 0 / 22%);
}

html[data-theme="dark"] .oh-faq-card__title,
html[data-theme="dark"] .oh-faq-card__title span,
html[data-theme="dark"] .oh-faq-card .oh-profile__name,
html[data-theme="dark"] .oh-faq-card .truncated-text {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .oh-faq-card__desc,
html[data-theme="dark"] .oh-faq-card .oh-profile__desc,
html[data-theme="dark"] .oh-faq-card .oh-timeoff-modal__user {
    color: var(--hrms-muted) !important;
}

/* Generic list views use native table cells instead of the oh-sticky-table component. */
html[data-theme="dark"] .table-wrapper table,
html[data-theme="dark"] .table-wrapper tbody,
html[data-theme="dark"] .table-wrapper tr,
html[data-theme="dark"] .table-wrapper td {
    background-color: var(--hrms-surface) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .table-wrapper thead,
html[data-theme="dark"] .table-wrapper th {
    background-color: var(--hrms-surface-raised) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-pagination__page,
html[data-theme="dark"] .oh-pagination__label,
html[data-theme="dark"] .oh-navbar__breadcrumb-link {
    color: var(--hrms-muted) !important;
}

html[data-theme="dark"] .oh-navbar__breadcrumb-link.active {
    color: var(--hrms-text) !important;
}

/* Account menu has light-only hover, link and arrow styles in the base theme. */
html[data-theme="dark"] #mainNavProfile .oh-navbar__user-info:hover,
html[data-theme="dark"] #mainNavProfile .oh-navbar__user-info:focus-within {
    background-color: var(--hrms-surface-raised) !important;
}

html[data-theme="dark"] #mainNavProfile .oh-navbar__user-info::after {
    filter: invert(1) brightness(1.35);
}

html[data-theme="dark"] #mainNavProfile .oh-dropdown__link {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] #mainNavProfile .oh-dropdown__link:hover,
html[data-theme="dark"] #mainNavProfile .oh-dropdown__link:focus {
    background-color: var(--hrms-surface-raised) !important;
    color: var(--hrms-accent) !important;
}

html[data-theme="dark"] #mainNavProfile hr {
    border-color: var(--hrms-border) !important;
}

/* Keep every navbar control on the same visible divider system in dark mode. */
html[data-theme="dark"] .oh-navbar__clock,
html[data-theme="dark"] .oh-navbar__notifications,
html[data-theme="dark"] .oh-navbar__action-icons,
html[data-theme="dark"] #mainNavProfile .oh-navbar__user-info {
    border-color: #59616a !important;
}

html[data-theme="dark"] #mainNavProfile .oh-navbar__user-info {
    border-left: 1px solid #59616a;
    border-right: 1px solid #59616a;
}

html[data-theme="dark"] .oh-navbar__notifications:hover,
html[data-theme="dark"] .oh-navbar__notifications:focus-within,
html[data-theme="dark"] .oh-navbar__action-icons:hover,
html[data-theme="dark"] .oh-navbar__action-icons:focus-within {
    background-color: var(--hrms-surface-raised) !important;
}

/* Notification content is loaded asynchronously and must retain the active theme. */
html[data-theme="dark"] .oh-navbar__notification-tray,
html[data-theme="dark"] #notificationContainer,
html[data-theme="dark"] .oh-navbar__notification-head,
html[data-theme="dark"] .oh-navbar__notification-body,
html[data-theme="dark"] .oh-navbar__notification-footer,
html[data-theme="dark"] .oh-navbar__notification-empty {
    background-color: var(--hrms-surface) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-navbar__notification-head,
html[data-theme="dark"] .oh-navbar__notification-footer,
html[data-theme="dark"] .oh-navbar__notification-item {
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-navbar__notification-head-title,
html[data-theme="dark"] .oh-navbar__notification-text,
html[data-theme="dark"] .oh-navbar__notification-text--unread {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .oh-navbar__notification-date,
html[data-theme="dark"] .oh-navbar__notification-empty-title,
html[data-theme="dark"] .oh-navbar__notification-empty-desc {
    color: var(--hrms-muted) !important;
}

/* Blend the navbar gutter beside the collapsed sidebar into the header canvas. */
html[data-theme="dark"] .oh-navbar {
    background-color: var(--hrms-bg) !important;
}

/* Keep non-working days distinct without introducing light columns in the dark grid. */
html[data-theme="dark"] #workRecordTable th.holiday,
html[data-theme="dark"] #workRecordTable td.holiday {
    background-color: var(--hrms-surface-raised) !important;
    color: var(--hrms-muted) !important;
}

/* Open recruitments is a standalone public page rather than an index.html child. */
html[data-theme="dark"] .oh-job__page-container,
html[data-theme="dark"] .oh-joblist_card,
html[data-theme="dark"] .oh-job-selected_detail,
html[data-theme="dark"] .oh-job-selected__detail--container {
    background-color: var(--hrms-surface) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-joblisting__title-container,
html[data-theme="dark"] .oh-job__post,
html[data-theme="dark"] .oh-recuritment_company-name,
html[data-theme="dark"] .oh-recuritment_application-count {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .oh-onboarding__content,
html[data-theme="dark"] .oh-job_post--posteddate,
html[data-theme="dark"] .oh-recuritment_application {
    color: var(--hrms-muted) !important;
}

html[data-theme="dark"] .oh-joblist_card .oh-recuritment_tag {
    background-color: transparent !important;
    color: var(--hrms-accent) !important;
    border: 1px solid var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-joblist_card .oh-recuritment_tag--apply {
    background-color: #183b2a !important;
    border-color: #347a55 !important;
}

html[data-theme="dark"] .oh-joblist_card .oh-recuritment_tag--apply a {
    color: #8de8b3 !important;
}

html[data-theme="dark"] .oh-joblist_card .oh-apply_btn {
    background-color: transparent !important;
    color: var(--hrms-accent) !important;
    border-color: var(--hrms-accent) !important;
}

html[data-theme="dark"] .oh-joblist_card .oh-apply_btn:hover,
html[data-theme="dark"] .oh-joblist_card .oh-apply_btn:focus {
    background-color: var(--hrms-accent) !important;
    color: #fff !important;
}

html[data-theme="dark"] .oh-job-selected_detail .oh-job__description-list_item {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .oh-job-selected_detail .oh-apply_btn {
    background-color: transparent !important;
    color: var(--hrms-accent) !important;
    border-color: var(--hrms-accent) !important;
}

html[data-theme="dark"] .oh-job-selected_detail .oh-apply_btn:hover,
html[data-theme="dark"] .oh-job-selected_detail .oh-apply_btn:focus {
    background-color: var(--hrms-accent) !important;
    color: #fff !important;
}

/* Candidate applications are rendered by a standalone public layout. */
html[data-theme="dark"] .oh-onboarding-preview,
html[data-theme="dark"] .oh-onboarding-card__container {
    background-color: var(--hrms-surface) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-onboarding-preview,
html[data-theme="dark"] .oh-onboarding-preview *:not(.oh-btn):not(ion-icon) {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .required-star::after {
    color: var(--hrms-accent) !important;
}

html[data-color] .oh-onboarding-card--top-bar::before,
html[data-color] .oh-onboarding-preview--top-bar::before,
html[data-color] .oh-job__description-list_item::before {
    background-color: var(--hrms-accent) !important;
}

html[data-theme="dark"] .oh-faq-card .truncated-text::after {
    background: linear-gradient(
        to bottom,
        rgb(32 35 38 / 0%),
        var(--hrms-surface) 80%
    ) !important;
}

html[data-theme="dark"] .oh-tabs__movable:hover,
html[data-theme="dark"] .oh-accordion-meta__header:hover,
html[data-theme="dark"] .oh-kanban-card:hover,
html[data-theme="dark"] .oh-list__item:hover,
html[data-theme="dark"] .oh-sticky-table__tr:hover .oh-sticky-table__td {
    background-color: var(--hrms-surface-raised) !important;
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .oh-text--dark,
html[data-theme="dark"] .oh-main__titlebar-title,
html[data-theme="dark"] .oh-profile__name,
html[data-theme="dark"] .oh-card-dashboard__title,
html[data-theme="dark"] .oh-kanban-card__title,
html[data-theme="dark"] .oh-kanban-card__subtitle,
html[data-theme="dark"] .oh-accordion-meta__header,
html[data-theme="dark"] .oh-tabs__movable-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .oh-input,
html[data-theme="dark"] .oh-select,
html[data-theme="dark"] .bulkStageChange,
html[data-theme="dark"] .oh-table__editable-input,
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple,
html[data-theme="dark"] .select2-container--default .select2-search__field,
html[data-theme="dark"] .select2-dropdown {
    background-color: var(--hrms-input) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection__rendered,
html[data-theme="dark"] .select2-container--default .select2-selection__placeholder,
html[data-theme="dark"] .select2-container--default .select2-results__option,
html[data-theme="dark"] option {
    color: var(--hrms-text) !important;
}

/* Select2 multiple fields use a white chip by default, which is unreadable
   against dark dialogs. Match chips to the input surface instead. */
html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--hrms-surface-raised) !important;
    border-color: var(--hrms-border) !important;
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--hrms-muted) !important;
    border-right-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--hrms-accent) !important;
    background-color: transparent !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted,
html[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--hrms-surface-raised) !important;
}

html[data-theme="dark"] .oh-btn--dropdown,
html[data-theme="dark"] .oh-btn.ml-2,
html[data-theme="dark"] .oh-accordion-meta__btn,
html[data-theme="dark"] .oh-table-config__btn,
html[data-theme="dark"] .oh-view-toggle__btn,
html[data-theme="dark"] .oh-btn--view,
html[data-theme="dark"] .oh-btn--light-bkg,
html[data-theme="dark"] .oh-pagination__item {
    background-color: var(--hrms-surface-raised) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-btn--dropdown:hover,
html[data-theme="dark"] .oh-btn.ml-2:hover,
html[data-theme="dark"] .oh-accordion-meta__btn:hover,
html[data-theme="dark"] .oh-table-config__btn:hover,
html[data-theme="dark"] .oh-view-toggle__btn:hover,
html[data-theme="dark"] .oh-btn--view:hover,
html[data-theme="dark"] .oh-btn--light-bkg:hover,
html[data-theme="dark"] .oh-pagination__item:hover {
    background-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-btn--view *,
html[data-theme="dark"] .oh-btn--light-bkg *,
html[data-theme="dark"] .oh-pagination__item *,
html[data-theme="dark"] .oh-pagination__item a {
    color: inherit !important;
}

html[data-theme="dark"] .oh-titlebar__tag.filter-field,
html[data-theme="dark"] .oh-titlebar__tag.filter-field * {
    background-color: var(--hrms-surface-raised) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-sticky-table__th,
html[data-theme="dark"] .oh-sticky-table__td,
html[data-theme="dark"] .oh-sticky-table__sd,
html[data-theme="dark"] .oh-table__th,
html[data-theme="dark"] .oh-table__td {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .oh-sticky-table__th,
html[data-theme="dark"] .oh-table__th {
    background-color: var(--hrms-surface-raised) !important;
}

/* Summernote is used by the Create Recruitment form and ships with a
   light-only toolbar/editor. Give every editor surface the same dark-mode
   contrast as the surrounding modal. */
html[data-theme="dark"] .note-editor.note-frame,
html[data-theme="dark"] .note-editor.note-airframe {
    background-color: var(--hrms-surface) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .note-toolbar,
html[data-theme="dark"] .note-statusbar {
    background-color: var(--hrms-surface-raised) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .note-toolbar .btn,
html[data-theme="dark"] .note-toolbar .btn:hover,
html[data-theme="dark"] .note-toolbar .btn:focus,
html[data-theme="dark"] .note-toolbar .btn i,
html[data-theme="dark"] .note-toolbar .btn span {
    background-color: var(--hrms-input) !important;
    border-color: var(--hrms-border) !important;
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .note-editing-area,
html[data-theme="dark"] .note-editable {
    background-color: var(--hrms-input) !important;
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .note-placeholder {
    color: var(--hrms-muted) !important;
}

html[data-theme="dark"] .note-dropdown-menu,
html[data-theme="dark"] .note-popover .popover-content,
html[data-theme="dark"] .note-modal-content {
    background-color: var(--hrms-surface) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .note-dropdown-menu .note-btn,
html[data-theme="dark"] .note-modal-content input,
html[data-theme="dark"] .note-modal-content textarea {
    background-color: var(--hrms-input) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .oh-sticky-table__td--white,
html[data-theme="dark"] .oh-sticky-table__sd,
html[data-theme="dark"] .oh-sticky-table__right,
html[data-theme="dark"] .oh-sticky-table__left {
    background-color: var(--hrms-surface) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] hr,
html[data-theme="dark"] .oh-card-dashboard__header--divider,
html[data-theme="dark"] .oh-tabs__movable,
html[data-theme="dark"] .oh-accordion-meta__header,
html[data-theme="dark"] .oh-accordion-meta__body {
    border-color: var(--hrms-border) !important;
}

/* LMS pages use a local component namespace, so bridge it to the shared theme. */
html[data-theme="dark"] .lms-page {
    background-color: var(--hrms-bg) !important;
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .lms-toolbar,
html[data-theme="dark"] .lms-panel,
html[data-theme="dark"] .lms-table,
html[data-theme="dark"] .lms-stat,
html[data-theme="dark"] .lms-card,
html[data-theme="dark"] .lms-hero,
html[data-theme="dark"] .lms-tabs,
html[data-theme="dark"] .lms-certificate,
html[data-theme="dark"] .lms-empty,
html[data-theme="dark"] .lms-modal__dialog,
html[data-theme="dark"] .lms-multi-select__menu,
html[data-theme="dark"] .lms-multi-select__button {
    background-color: var(--hrms-surface) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .lms-table th,
html[data-theme="dark"] .lms-progress,
html[data-theme="dark"] .lms-tabs,
html[data-theme="dark"] .lms-thumb,
html[data-theme="dark"] .lms-multi-select__button:disabled,
html[data-theme="dark"] .lms-multi-select__option:hover {
    background-color: var(--hrms-surface-raised) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .lms-table th {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .lms-page .oh-btn:not([class*="oh-btn--"]),
html[data-theme="dark"] .lms-pill:not(.lms-pill--blue):not(.lms-pill--green):not(.lms-pill--orange):not(.lms-pill--red) {
    background-color: var(--hrms-surface-raised) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .lms-tab--active {
    background-color: var(--hrms-surface-raised) !important;
    color: var(--hrms-accent) !important;
}

/* Payroll Engine has grouped columns with its own light-only palette. */
html[data-theme="dark"] .payroll-engine-table th,
html[data-theme="dark"] .payroll-engine-table td {
    border-color: var(--hrms-border) !important;
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .payroll-engine-table thead th,
html[data-theme="dark"] .payroll-engine-table .payroll-engine-leaves-head,
html[data-theme="dark"] .payroll-engine-table .payroll-engine-deductions-head,
html[data-theme="dark"] .payroll-engine-table .payroll-engine-allowances-head,
html[data-theme="dark"] .payroll-engine-table .payroll-engine-total-col {
    background-color: var(--hrms-surface-raised) !important;
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .payroll-engine-table,
html[data-theme="dark"] .payroll-engine-table .payroll-engine-leaf-cell,
html[data-theme="dark"] .payroll-engine-table .payroll-engine-leaf-count,
html[data-theme="dark"] .payroll-engine-table .payroll-engine-leaf-dates,
html[data-theme="dark"] .payroll-engine-table .payroll-engine-primary-col {
    background-color: var(--hrms-surface) !important;
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .lms-field {
    background-color: var(--hrms-input) !important;
    color: var(--hrms-text) !important;
    border-color: var(--hrms-border) !important;
}

html[data-theme="dark"] .lms-hero__title,
html[data-theme="dark"] .lms-card__title,
html[data-theme="dark"] .lms-title,
html[data-theme="dark"] .lms-category-name,
html[data-theme="dark"] .lms-stat__value,
html[data-theme="dark"] .lms-total,
html[data-theme="dark"] .lms-tab {
    color: var(--hrms-text) !important;
}

html[data-theme="dark"] .lms-muted,
html[data-theme="dark"] .lms-hero__copy,
html[data-theme="dark"] .lms-card__desc,
html[data-theme="dark"] .lms-stat__label,
html[data-theme="dark"] .lms-stat__hint {
    color: var(--hrms-muted) !important;
}

html[data-theme="dark"] .lms-card__header,
html[data-theme="dark"] .lms-table th,
html[data-theme="dark"] .lms-table td,
html[data-theme="dark"] .lms-list-row,
html[data-theme="dark"] .lms-pagination {
    border-color: var(--hrms-border) !important;
}
