/* Custom overrides for template assets */
.app-logo__text {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    color: #25396f;
    letter-spacing: 0.4px;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

.breadcrumb a {
    text-decoration: none;
}

.app-logo__icon {
    width: 22px;
    height: 22px;
    color: #2563eb;
}

.sidebar-header__row {
    gap: 0.75rem;
}

.sidebar-header__row .logo {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-header__row .theme-toggle {
    flex: 0 0 auto;
    margin-top: 0;
}

.hris-navbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 11000;
    pointer-events: auto;
    margin-bottom: 0.75rem;
}

/* Ensure modals appear above custom navbar layers */
.modal,
.modal.show {
    z-index: 12050 !important;
}

.modal-backdrop,
.modal-backdrop.show {
    z-index: 12040 !important;
}

.hris-navbar__content {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.12);
    overflow: visible;
    position: relative;
    z-index: 11010;
    pointer-events: auto;
}

.hris-navbar__ticker {
    flex: 1 1 auto;
    overflow: hidden;
    max-width: 100%;
    pointer-events: none;
}

.hris-navbar__ticker-track {
    white-space: nowrap;
    display: inline-block;
    animation: hris-ticker 18s linear infinite;
    max-width: 100%;
}

.hris-navbar {
    overflow: visible;
}

.hris-navbar__ticker-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
    letter-spacing: 0.2px;
}


.hris-navbar__mobile-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1e3a8a;
    margin-left: 0.5rem;
}

.hris-navbar__mobile-ticker {
    flex: 1 1 auto;
    overflow: hidden;
    margin-left: 0.35rem;
}

.hris-navbar__mobile-track {
    white-space: nowrap;
    display: inline-block;
    animation: hris-ticker-mobile 14s linear infinite;
}

/* Manage User - Card List layout */
.hris-user-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.hris-user-toolbar-top {
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.hris-user-search-wrap {
    flex: 1 1 auto;
    min-width: 220px;
    min-height: 38px;
}
.hris-user-actions-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}
.hris-user-export-wrap,
.hris-user-length-wrap {
    width: auto;
}
.hris-user-search-wrap .dataTables_filter,
.hris-user-search-wrap .dt-search {
    width: 100%;
    margin: 0;
    text-align: left;
}
.hris-user-search-wrap .dataTables_filter label,
.hris-user-search-wrap .dt-search label {
    display: block;
    width: 100%;
    margin: 0;
}
.hris-user-search-wrap .dataTables_filter input,
.hris-user-search-wrap .dt-search input {
    width: 100% !important;
    min-width: 0;
    margin-left: 0 !important;
}
.hris-user-export-wrap { display: flex; }
.hris-user-length-wrap .dataTables_length,
.hris-user-length-wrap .dt-length {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.hris-user-length-wrap .dataTables_length label,
.hris-user-length-wrap .dt-length label {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.hris-user-length-wrap select {
    min-width: 92px;
    margin: 0 !important;
}
.hris-user-search-wrap .dataTables_filter input,
.hris-user-search-wrap .dt-search input,
.hris-user-export-wrap .btn,
.hris-user-length-wrap select {
    height: 38px;
    min-height: 38px;
}
.hris-user-export-wrap .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}
.hris-user-toolbar-bottom {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hris-user-pagination-wrap {
    margin-left: auto;
}
.hris-user-pagination-wrap .dataTables_paginate,
.hris-user-pagination-wrap .dt-paging {
    margin: 0;
}
.hris-user-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
}
.hris-user-card__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}
.hris-user-card__name { font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.hris-user-card__username { font-size: 11px; color: #64748b; }
.hris-user-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hris-user-chip {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid transparent;
}
.hris-user-chip--role { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.hris-user-chip--level { background: #ecfeff; color: #0f766e; border-color: #99f6e4; }
.hris-user-chip--active { background: #dcfce7; color: #166534; border-color: #86efac; }
.hris-user-chip--inactive { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.hris-user-card__meta { margin-top: 8px; font-size: 11px; color: #475569; display: grid; gap: 2px; }
.hris-user-card__actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.hris-user-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: rgba(255,255,255,.8);
    color: #64748b;
    text-align: center;
    font-size: 12px;
    padding: 14px;
}
.hris-user-loader {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}
.hris-user-loader .spinner-border {
    width: 1.75rem;
    height: 1.75rem;
    border-width: .2em;
}
.hris-user-source-table .table-responsive { display: none; }
/* Prevent initial DataTable toolbar flicker before controls are moved to custom card toolbar */
#user-table_wrapper {
    display: none;
}
#role-table_wrapper,
#error-log-table_wrapper {
    display: none;
}
@media (max-width: 1199.98px) {
    .hris-user-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .hris-user-list { grid-template-columns: 1fr; }
    .hris-user-toolbar-top { align-items: stretch; }
    .hris-user-actions-wrap {
        width: 100%;
        justify-content: space-between;
    }
    .hris-user-toolbar-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .hris-user-pagination-wrap {
        margin-left: 0;
        width: 100%;
    }
}

/* Generic Datatable Card List wrappers (Manage Role / Error Log) */
.hris-source-table .table-responsive { display: none; }
.hris-card-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.hris-cardlist-toolbar-top {
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.hris-cardlist-search-wrap {
    flex: 1 1 auto;
    min-width: 220px;
    min-height: 38px;
}
.hris-cardlist-actions-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}
.hris-cardlist-search-wrap .dataTables_filter,
.hris-cardlist-search-wrap .dt-search {
    width: 100%;
    margin: 0;
    text-align: left;
}
.hris-cardlist-search-wrap .dataTables_filter label,
.hris-cardlist-search-wrap .dt-search label {
    display: block;
    width: 100%;
    margin: 0;
}
.hris-cardlist-search-wrap .dataTables_filter input,
.hris-cardlist-search-wrap .dt-search input {
    width: 100% !important;
    min-width: 0;
    margin-left: 0 !important;
}
.hris-cardlist-length-wrap .dataTables_length,
.hris-cardlist-length-wrap .dt-length {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.hris-cardlist-length-wrap .dataTables_length label,
.hris-cardlist-length-wrap .dt-length label {
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.hris-cardlist-length-wrap select {
    min-width: 92px;
    margin: 0 !important;
}
.hris-cardlist-export-wrap .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}
.hris-cardlist-search-wrap .dataTables_filter input,
.hris-cardlist-search-wrap .dt-search input,
.hris-cardlist-export-wrap .btn,
.hris-cardlist-length-wrap select {
    height: 38px;
    min-height: 38px;
}
.hris-cardlist-loader {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}
.hris-card-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
}
.hris-card-item__title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.hris-card-item__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.hris-card-item__meta {
    margin-top: 8px;
    font-size: 11px;
    color: #475569;
    display: grid;
    gap: 2px;
}
.hris-card-item__actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}
.hris-card-item--error {
    border-left: 4px solid #f59e0b;
}
.hris-cardlist-toolbar-bottom {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hris-cardlist-pagination-wrap {
    margin-left: auto;
}

/* Request menu: mobile-only card list */
.hris-mobile-only-cards {
    display: none;
}
@media (max-width: 767.98px) {
    .hris-mobile-only-table {
        display: none !important;
    }
    .hris-mobile-only-cards {
        display: grid;
    }
}
@media (max-width: 1199.98px) {
    .hris-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .hris-card-list { grid-template-columns: 1fr; }
    .hris-cardlist-toolbar-top { align-items: stretch; }
    .hris-cardlist-actions-wrap {
        width: 100%;
        justify-content: space-between;
    }
    .hris-cardlist-toolbar-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .hris-cardlist-pagination-wrap {
        margin-left: 0;
        width: 100%;
    }
}

.paidleave-calendar .datepicker,
.paidleave-calendar .datepicker table {
    width: 100%;
}

.paidleave-calendar .datepicker {
    max-width: 100%;
}

.permit-calendar .datepicker,
.permit-calendar .datepicker table {
    width: 100%;
}

.permit-calendar .datepicker {
    max-width: 100%;
}

.permit-calendar.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.hris-navbar__mobile-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.2px;
}

@keyframes hris-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-60%); }
}

@keyframes hris-ticker-mobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-70%); }
}

[data-bs-theme="dark"] .hris-navbar__content {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-navbar__ticker-text {
    color: #e2e8f0;
}


[data-bs-theme="dark"] .hris-navbar__mobile-text {
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .hris-navbar__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hris-navbar__ticker-track {
        animation-duration: 22s;
    }
}

@media (max-width: 576px) {
    .hris-profile__right {
        order: 0;
    }

    .hris-profile__left {
        order: 1;
    }

    .hris-navbar__content {
        display: none;
        padding: 0.5rem 0.75rem;
    }

    .hris-navbar {
        align-items: center;
        gap: 0.5rem;
    }
}

[data-bs-theme="dark"] .app-logo__text {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .app-logo__icon {
    color: #93c5fd;
}

#main-content {
    font-size: 0.92rem;
    padding: 0;
}

#main #main-content {
    padding: 0;
}

#auth-right {
    background: url("../custom/assets/static/images/bg/4853433.png") center/cover no-repeat;
    border-radius: 0 1.5rem 1.5rem 0;
    min-height: 100%;
}

#auth-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(67, 94, 190, 0.12), rgba(14, 116, 144, 0.18));
}

#auth-right {
    position: relative;
    overflow: hidden;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 55%),
        radial-gradient(circle at bottom, rgba(14, 116, 144, 0.2), transparent 50%);
}

.login-card {
    width: min(440px, 100%);
    display: grid;
    gap: 1.5rem;
    padding: 2.2rem;
    border-radius: 1.6rem;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.login-brand--logo {
    justify-content: center;
}

.login-brand__logo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
}

.login-brand__text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2a44;
}

.login-brand__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #eef2ff;
    color: #1d4ed8;
}

.login-heading {
    display: grid;
    gap: 0.4rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.login-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.login-form {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.2rem;
    overflow: hidden;
}

.login-form .form-control {
    border-radius: 0.9rem;
}

.login-footer {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #64748b;
}

.login-footer__link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.login-footer__link:hover {
    text-decoration: underline;
}

.login-loader {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 1.5rem;
}

.login-loader.is-active {
    display: flex;
}

.login-loader__card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    max-width: 320px;
}

.login-loader__spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    margin: 0 auto 12px;
    animation: login-spin 1s linear infinite;
}

.login-loader__text {
    font-size: 0.95rem;
    color: #1f2a44;
    font-weight: 600;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-footer__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.login-footer__item i {
    color: #2563eb;
}

.employee-profile-photo {
    width: 110px;
    height: 110px;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 1.8rem;
    }

    .login-title {
        font-size: 1.7rem;
    }
}

[data-bs-theme="dark"] .login-shell {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.22), transparent 60%),
        radial-gradient(circle at bottom, rgba(2, 132, 199, 0.28), transparent 55%);
}

[data-bs-theme="dark"] .login-card {
    background: #0f172a;
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.45);
}

[data-bs-theme="dark"] .login-brand__text,
[data-bs-theme="dark"] .login-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .login-subtitle,
[data-bs-theme="dark"] .login-footer {
    color: #94a3b8;
}

[data-bs-theme="dark"] .login-brand__pill {
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
}

.sidebar-menu .submenu {
    padding-left: 0.75rem;
}

.sidebar-menu .submenu .submenu-link {
    padding-left: 1.1rem;
}

#question-table td.details-control {
    cursor: pointer;
    width: 36px;
    position: relative;
}

#question-table td.details-control::before {
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: 1rem;
    color: #2563eb;
}

#question-table tr.shown td.details-control::before {
    content: "\F286";
    color: #1e40af;
}

.options-panel {
    padding: 0.75rem 0.75rem 0.25rem;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .options-panel {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(148, 163, 184, 0.2);
}

.hris-account-card {
    margin: 0.75rem 0.85rem 0.35rem;
    padding: 0.85rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(14, 116, 144, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: grid;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.hris-account-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 55%);
    pointer-events: none;
}

.hris-account-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    z-index: 1;
}

.hris-account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #1d4ed8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.hris-account-text {
    min-width: 0;
}

.hris-account-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.2;
}

.hris-account-meta {
    font-size: 0.75rem;
    color: #475569;
}

.hris-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #1e3a8a;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.hris-logout-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: #0f172a;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    position: relative;
    z-index: 1;
}

.hris-logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.25);
    background: #1f2937;
}

[data-bs-theme="dark"] .hris-account-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85));
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-account-avatar {
    background: #38bdf8;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(56, 189, 248, 0.3);
}

[data-bs-theme="dark"] .hris-account-name {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hris-account-meta {
    color: #94a3b8;
}

[data-bs-theme="dark"] .hris-account-chip {
    background: rgba(148, 163, 184, 0.16);
    color: #93c5fd;
}

[data-bs-theme="dark"] .hris-logout-btn {
    background: #111827;
    color: #e2e8f0;
}

.hris-profile__banner {
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
    min-height: 200px;
    border: none;
}

.hris-profile__banner-overlay {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.05));
    padding: 2rem 2.2rem;
    height: 100%;
    position: relative;
}

.hris-profile__banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #0f172a;
}

.hris-profile__avatar {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
    position: relative;
}

.hris-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hris-profile__avatar-button {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.hris-profile__avatar-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.hris-profile__banner-edit {
    margin-top: 1.4rem;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.hris-profile__name-card {
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.hris-profile__name-card .text-white-50 {
    color: #475569 !important;
}

.hris-profile__banner-edit:hover {
    background: rgba(15, 23, 42, 0.16);
}

.hris-profile__banner:hover .hris-profile__banner-edit {
    opacity: 1;
    pointer-events: auto;
}

.hris-profile__card {
    border-radius: 16px;
}

.hris-profile__meta {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
}

.hris-profile__info {
    display: grid;
    gap: 0.85rem;
}

.hris-profile__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #94a3b8;
}

.hris-profile__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.hris-profile__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.hris-profile__stat-card {
    padding: 1rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.hris-profile__stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}
.hris-profile__stat-icon i {
    display: block;
    line-height: 1;
}

.hris-profile__stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.hris-profile__stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

.hris-profile__stat-meta {
    font-size: 0.72rem;
    color: #94a3b8;
}

.hris-profile__snapshot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hris-profile__family {
    display: grid;
    gap: 0.85rem;
}

.hris-profile__family-item {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #f8fafc;
}

.hris-profile__family-name {
    font-weight: 600;
    color: #0f172a;
}

.hris-profile__family-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.hris-tone--primary .hris-profile__stat-icon { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.hris-tone--info .hris-profile__stat-icon { background: rgba(14, 116, 144, 0.12); color: #0e7490; }
.hris-tone--success .hris-profile__stat-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }
.hris-tone--warning .hris-profile__stat-icon { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.hris-tone--secondary .hris-profile__stat-icon { background: rgba(100, 116, 139, 0.12); color: #475569; }
.hris-tone--danger .hris-profile__stat-icon { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

[data-bs-theme="dark"] .hris-profile__banner-overlay {
    background: linear-gradient(120deg, rgba(2, 6, 23, 0.7), rgba(15, 23, 42, 0.35));
}

[data-bs-theme="dark"] .hris-profile__value {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hris-profile__stat-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-profile__stat-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .hris-profile__stat-meta {
    color: #64748b;
}

[data-bs-theme="dark"] .hris-profile__meta {
    color: rgba(226, 232, 240, 0.7);
}

[data-bs-theme="dark"] .hris-profile__banner-edit {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hris-profile__name-card {
    background: rgba(15, 23, 42, 0.75);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hris-profile__family-item {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-profile__family-name {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hris-profile__family-meta {
    color: #94a3b8;
}

@media (hover: none) {
    .hris-profile__banner-edit {
        opacity: 1;
        pointer-events: auto;
    }
}

.hris-profile__upload {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hris-profile__upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 576px) {
    .hris-profile__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hris-access-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hris-access-panel {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #f8fafc;
}

.hris-access-panel__title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #1f2937;
}

.hris-access-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hris-access-group {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #f8fafc;
    display: grid;
    gap: 0.6rem;
}

.hris-access-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.hris-access-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    color: #1f2937;
}

.hris-access-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hris-access-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #334155;
}

[data-bs-theme="dark"] .hris-access-panel {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-access-group {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-access-panel__title,
[data-bs-theme="dark"] .hris-access-title,
[data-bs-theme="dark"] .hris-access-item,
[data-bs-theme="dark"] .hris-access-toggle {
    color: #e2e8f0;
}

.hris-assessment-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.hris-assessment-status {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hris-assessment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.hris-assessment-stat {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 0.15rem;
}

.hris-assessment-stat__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.hris-assessment-stat__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

[data-bs-theme="dark"] .hris-assessment-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-assessment-stat {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-assessment-stat__value {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hris-assessment-stat__label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .hris-assessment-status {
    background: rgba(56, 189, 248, 0.18);
    color: #e2e8f0;
    border-color: rgba(56, 189, 248, 0.3);
}

.hris-error-page {
    padding: 2rem 1rem;
}

.hris-error-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    text-align: center;
}

.hris-error-code {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1d4ed8;
    letter-spacing: 0.1em;
}

.hris-error-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.25rem;
    color: #0f172a;
}

.hris-error-subtitle {
    margin-top: 0.4rem;
    color: #64748b;
}

.hris-error-message {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
}

.hris-error-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hris-error-report {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.5rem;
    justify-items: center;
}

[data-bs-theme="dark"] .hris-error-card {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.4);
}

[data-bs-theme="dark"] .hris-error-code {
    color: #60a5fa;
}

[data-bs-theme="dark"] .hris-error-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hris-error-subtitle,
[data-bs-theme="dark"] .hris-error-message {
    color: #cbd5f5;
}

[data-bs-theme="dark"] .hris-error-message {
    background: rgba(30, 41, 59, 0.7);
}

.hris-notification {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.hris-notification__btn {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    border-radius: 12px;
    padding: 0.35rem 0.55rem;
    color: #1f2937;
    pointer-events: auto !important;
    z-index: 11020;
}

.hris-notification__btn:hover {
    background: #f8fafc;
}

.hris-notification__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.35);
}

.hris-notification__menu {
    width: 320px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    z-index: 12050;
}

.hris-notification__menu.show {
    display: block;
}

#main {
    position: relative;
    z-index: auto !important;
}

.hris-topbar {
    position: relative;
    z-index: 12000;
    overflow: visible;
}

.hris-topbar__content {
    overflow: visible;
}

#main-content,
.page-heading,
.page-content {
    position: relative;
    z-index: 1;
}

.page-heading {
    margin-top: 0.5rem;
    z-index: 1;
}

.page-heading,
.page-content,
.page-heading .card,
.page-content .card {
    z-index: 1;
}

#main-content,
.page-heading,
.page-content,
.page-heading .card,
.page-content .card {
    z-index: auto !important;
}

.hris-navbar,
.hris-navbar * {
    pointer-events: auto;
}

.hris-navbar__ticker,
.hris-navbar__ticker * {
    pointer-events: none;
}

.hris-notification__list {
    max-height: 320px;
    overflow-y: auto;
}

.hris-notification__item {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.9rem;
    white-space: normal;
}

.hris-notification__title {
    font-weight: 600;
    font-size: 0.85rem;
}

.hris-notification__message {
    font-size: 0.8rem;
    color: #475569;
}

.hris-notification__time {
    font-size: 0.7rem;
    color: #94a3b8;
}

.hris-login-as {
    margin: 0.75rem 0.85rem 0.35rem;
    padding: 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #ffffff;
    display: grid;
    gap: 0.5rem;
}

.hris-login-as--compact {
    margin: 0;
    padding: 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.hris-login-as__title {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e3a8a;
}

.hris-login-as__meta {
    font-size: 0.78rem;
    color: #64748b;
}

.hris-login-as__form .select2-container {
    width: 100% !important;
}

[data-bs-theme="dark"] .hris-login-as {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-login-as__title {
    color: #93c5fd;
}

[data-bs-theme="dark"] .hris-login-as__meta {
    color: #94a3b8;
}

.hris-notification__link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
}

[data-bs-theme="dark"] .hris-notification__btn {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.3);
}

[data-bs-theme="dark"] .hris-notification__menu {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
}

[data-bs-theme="dark"] .hris-notification__message {
    color: #94a3b8;
}

[data-bs-theme="dark"] .hris-notification__time {
    color: #64748b;
}
.setup-assessor__toggle .bootstrap-switch {
    display: inline-flex !important;
    align-items: stretch;
    width: auto !important;
    min-width: 150px;
    height: 38px;
}

.setup-assessor__toggle .bootstrap-switch-container {
    display: flex !important;
    align-items: stretch;
    width: auto !important;
}

.setup-assessor__toggle .bootstrap-switch-handle-on,
.setup-assessor__toggle .bootstrap-switch-handle-off {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 60px;
    height: 38px;
    padding: 0 12px;
}

.setup-assessor__toggle .bootstrap-switch-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 16px !important;
    height: 38px;
}

.setup-assessor__toggle .form-group {
    margin-bottom: 0;
}

.setup-assessor__switch-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.setup-assessor__switch-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.setup-assessor__switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f1f5f9;
    gap: 4px;
    width: 100%;
    max-width: 210px;
}

.setup-assessor__switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.setup-assessor__switch label {
    flex: 1 1 0;
    text-align: center;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.setup-assessor__switch input:checked + label {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.setup-assessor__switch input[value="0"]:checked + label {
    background: #e2e8f0;
    color: #475569;
    box-shadow: none;
}

[data-bs-theme="dark"] .setup-assessor__switch {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.35);
}

[data-bs-theme="dark"] .setup-assessor__switch label {
    color: #cbd5f5;
}

.hris-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hris-toggle__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hris-toggle__switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f1f5f9;
    gap: 4px;
    width: 100%;
    max-width: 220px;
}

.hris-toggle__switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hris-toggle__switch label {
    flex: 1 1 0;
    text-align: center;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.hris-toggle__switch input:checked + label {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.hris-toggle__switch input[value="0"]:checked + label {
    background: #e2e8f0;
    color: #475569;
    box-shadow: none;
}

[data-bs-theme="dark"] .hris-toggle__switch {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.35);
}

[data-bs-theme="dark"] .hris-toggle__switch label {
    color: #cbd5f5;
}

[data-bs-theme="dark"] .hris-toggle__switch input[value="0"]:checked + label {
    background: #1f2937;
    color: #cbd5f5;
}

[data-bs-theme="dark"] .setup-assessor__switch input[value="0"]:checked + label {
    background: #1f2937;
    color: #cbd5f5;
}


.hris-topbar__ticker {
    flex: 1 1 auto;
    overflow: hidden;
    min-width: 200px;
}

.hris-topbar__ticker-track {
    white-space: nowrap;
    display: inline-block;
    animation: hris-ticker 18s linear infinite;
}

.hris-topbar__ticker-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .hris-topbar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .hris-topbar__ticker {
        width: 100%;
    }
}

.employee-out__chart { min-height: 260px; }


.select2-container--open { z-index: 2055; }
.select2-dropdown { z-index: 2055; }

.form-control-sm {
    margin-top: 5px;
}

