
:root {
    --kiyo-primary: #0f9d7a;
    --kiyo-primary-dark: #0b7c61;
    --kiyo-bg-soft: #f5fbf9;
    --kiyo-text: #0f172a;
    }
    body {
    font-family: "Manrope", sans-serif;
    color: var(--kiyo-text);
    background-color: #ffffff;
    }

.text-kiyo { color: var(--kiyo-primary) !important; }
.border-kiyo { border-color: var(--kiyo-primary) !important; }
        
.section-space { padding: 5rem 0; }
        .soft-bg { background: var(--kiyo-bg-soft); }
        .brand-gradient {
            background: linear-gradient(135deg, #e8f8f3 0%, #f5fbf9 50%, #ffffff 100%);
        }
.card-soft {
    border: 1px solid #e8eef2;
    border-radius: 1rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}
.section-title-underline {
    display: inline-block;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 0;
}
.section-title-underline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100px;
    height: 3px;
    background-color: var(--kiyo-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}
.feature-card-thick-top {
    border: 1px solid #e8eef2;
    border-top: 5px solid var(--kiyo-primary);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card-thick-top.accent-primary { border-top-color: rgba(var(--bs-primary-rgb), 1); }
.feature-card-thick-top.accent-warning { border-top-color: var(--bs-warning-text-emphasis); }
.feature-card-thick-top.accent-info { border-top-color: var(--bs-info-text-emphasis); }
.feature-card-thick-top.accent-danger { border-top-color: rgba(var(--bs-danger-rgb), 1); }
.feature-card-thick-top.accent-secondary { border-top-color: rgba(var(--bs-secondary-rgb), 1); }
.feature-card-thick-top.accent-success { border-top-color: rgba(var(--bs-success-rgb), 1); }
.feature-card-thick-top.accent-dark { border-top-color: rgba(var(--bs-dark-rgb), 1); }
.feature-card-thick-top:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.pricing-card {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.pricing-card:hover,
.pricing-card:focus-within {
    border-color: var(--kiyo-primary);
    box-shadow: none;
    transform: translateY(-1px);
}
.price-currency {
    color: var(--kiyo-primary);
    margin-right: 0.2rem;
}
.btn-kiyo {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--kiyo-primary);
        border: 1px solid var(--kiyo-primary);
        color: #fff;
        padding: 8px 16px;
        /* font-size: 16px; */
        border-radius: 10px;
        overflow: hidden;
        z-index: 1;
        font-weight: 700;
     }

    .btn-kiyo:hover {
        background-color: transparent;
        border-color: var(--kiyo-primary);
        color: var(--kiyo-primary);
    }

.btn-kiyo:focus {
    border-color: var(--kiyo-primary);
    background-color: #fff;
    color: var(--kiyo-primary);
}

.pricing-trial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid var(--kiyo-primary);
    color: var(--kiyo-primary);
    border-radius: 12px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(15, 157, 122, 0.04);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.pricing-trial-btn:hover,
.pricing-trial-btn:focus {
    background-color: var(--kiyo-primary);
    border-color: var(--kiyo-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 157, 122, 0.14);
    transform: translateY(-1px);
}

.pricing-toggle {
    padding: 0.5rem !important;
    border: 1px solid rgba(15, 157, 122, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.pricing-switch-btn {
    min-width: 164px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 999px !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pricing-active-btn {
    background: linear-gradient(135deg, var(--kiyo-primary) 0%, var(--kiyo-primary-dark) 100%);
    border: 1px solid var(--kiyo-primary);
    color: #fff;
    box-shadow: none;
}

.pricing-active-btn:hover,
.pricing-active-btn:focus {
    background: linear-gradient(135deg, var(--kiyo-primary) 0%, var(--kiyo-primary-dark) 100%);
    border-color: var(--kiyo-primary);
    color: #fff;
}

.plan-btn{
    background: rgba(15, 157, 122, 0.05);
    border: 1px solid rgba(15, 157, 122, 0.08);
    color: #355a52;
    box-shadow: none;
}

.plan-btn:hover,
.plan-btn:focus {
    background-color: rgba(15, 157, 122, 0.1);
    border-color: var(--kiyo-primary);
    color: var(--kiyo-primary);
    box-shadow: inset 0 0 0 1px rgba(15, 157, 122, 0.08);
    transform: translateY(-1px);
}

.pricing-save-pill {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 157, 122, 0.12);
    color: var(--kiyo-primary-dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.pricing-active-btn .pricing-save-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.btn-seconsary {
    background-color: transparent;
    border-color: var(--kiyo-primary);
    color: var(--kiyo-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-seconsary:hover,
.btn-seconsary:focus {
    background-color: var(--kiyo-primary);
    border-color: var(--kiyo-primary);
    color: #fff;
}

.demo-btn,
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 157, 122, 0.22);
    color: var(--kiyo-primary-dark);
    font-weight: 700;
    border-radius: 10px;
}

.btn i {
    margin-left: 0.4rem;
}

.demo-btn:hover,
.demo-btn:focus,
.login-btn:hover,
.login-btn:focus {
    background: var(--kiyo-primary);
    border-color: var(--kiyo-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 157, 122, 0.18);
    /* transform: translateY(-1px); */
}

    .nav-link:hover{
        color: var(--kiyo-primary-dark) !important;
    }
    .navbar .nav-link.active {
        color: var(--kiyo-primary) !important;
        font-weight: 700;
    }
    .sticky-mobile-cta {
        position: fixed;
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        z-index: 1030;
    }
    @media (max-width: 992px) {
        .sticky-mobile-cta { display: none; }

        .main-footer {
        padding: 60px 0 40px;
    }

    .main-footer .row {
        row-gap: 32px;
    }

    .footer-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .footer-desc,
    .footer-contact,
    .footer-nav a {
        font-size: 14px;
    }

    .store-buttons {
        gap: 10px;
    }

    .store-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .footer-container{
        padding-left: 40px;
    }

    .brand-gradient h1{
        font-size: 20px;
    }

    .brand-gradient p{
        font-size: 15px;
    }

    .section-space {
        padding: 3rem 0 !important;
    }

}

@media (max-width: 768px) {
    .btn-kiyo {
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 5px;
    }

    .btn-lg {
        padding: 6px 14px !important;
        font-size: 14px !important;
    }

    .hr-title {
        font-size: 22px;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 527px) {
    .btn-kiyo {
        padding: 5px 10px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 5px 12px !important;
        font-size: 13px !important;
    }

    .hr-title {
        font-size: 20px;
        margin-bottom: 20px !important;
    }
}

.footer-theme {
    background: linear-gradient(-84deg, #2ebc95 0%, #1a9096 100%);
    color: #fff;
    padding-bottom: 20px;
}


/* LOGO */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 600;
}

/* DESCRIPTION */
.footer-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #e8f7f5;
}

/* TITLES */
.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-nav ul {
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 12px;
    list-style: none;
    position: relative;
    padding-left: 30px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

.footer-nav a:hover {
    opacity: 0.7;
}

/* DOWNLOAD */
.download-title {
    margin-top: 25px;
}

/* STORE BUTTON */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    z-index: 1;
}

/* hover animation */
.store-btn::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: rgba(255,255,255,0.2);
    transition: height 0.3s ease;
    z-index: -1;
}

.store-btn:hover::before {
    height: 100%;
}

/* CONTACT */
.footer-contact {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #e8f7f5;
}

.footer-contact i {
    width: 20px;
}

/* SOCIAL */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    position: relative;
    overflow: hidden;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    z-index: 1;
}

/* inner circle */
.social-icons a i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* hover fill */
.social-icons a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: rgba(255,255,255,0.25);
    transition: height 0.3s ease;
    z-index: -1;
}

.social-icons a:hover::before {
    height: 100%;
}

/* COPYRIGHT */
.footer-copy {
    text-align: center;
    font-size: 14px;
    color: #e8f7f5;
}

.footer-nav li:before {
    font-size: 16px;
    font-family: "Font Awesome 5 Free";
    content: "\f28d";
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 1px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.footer-nav li:hover::before {
    opacity: 0.7;
}

.main-footer{
    padding: 80px 0px 50px 0px;
    font-size: 16px;
}

@media (max-width: 991.98px) {
    
}

@media (max-width: 767.98px) {
    .main-footer {
        padding: 48px 0 28px;
    }

    .main-footer .row {
        row-gap: 28px;
    }

    .footer-logo {
        margin-bottom: 16px;
    }

    .footer-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .footer-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .download-title {
        margin-top: 20px;
    }

    .store-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .store-btn {
        width: 100%;
        text-align: center;
    }

    .footer-nav li {
        margin-bottom: 10px;
        padding-left: 24px;
    }

    .footer-contact {
        align-items: flex-start;
        gap: 12px;
        line-height: 1.6;
    }

    .social-icons {
        flex-wrap: wrap;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
    }

    .footer-copy {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .footer-theme {
        padding-bottom: 16px;
    }

    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-footer {
        padding: 40px 0 24px;
    }

    .footer-nav li {
        padding-left: 22px;
    }

    .footer-contact {
        font-size: 14px;
    }

    .section-space {
    padding: 3rem 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .sidebar-tablet-expanded {
        width: 13rem !important;
    }

    .sidebar-tablet-collapsed {
        width: 4rem !important;
    }

    .content-tablet-expanded {
        margin-left: 13rem !important;
    }

    .content-tablet-collapsed {
        margin-left: 4rem !important;
    }
}


.sidebar > li + li {
    margin-top: 0.3rem;
}

.sidebar .sidebar-link {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.5rem !important;
    color: #64748b;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar .sidebar-link > a,
.sidebar .sidebar-link.group {
    gap: 0.5rem !important;
}

.sidebar .sidebar-link i,
.sidebar .sidebar-link svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background-color: transparent;
    transition: color 0.2s ease;
}

.sidebar .sidebar-link .sidebar-icon--teal { color: #0c6e6d !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--sky { color: #0284c7 !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--amber { color: #d97706 !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--violet { color: #7c3aed !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--emerald { color: #059669 !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--orange { color: #ea580c !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--rose { color: #e11d48 !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--indigo { color: #4f46e5 !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--slate { color: #475569 !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--blue { color: #2563eb !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--fuchsia { color: #c026d3 !important; background-color: transparent; }
.sidebar .sidebar-link .sidebar-icon--cyan { color: #0891b2 !important; background-color: transparent; }

.sidebar .sidebar-link span {
    color: inherit;
}

.sidebar .sidebar-link:hover {
    background-color: #f1f5f9;
    color: var(--color-primary);
}

.sidebar .sidebar-link.is-active {
    background-color: var(--color-primary-light) !important;
    color: var(--color-primary) !important;
    border-left-color: var(--color-primary);
}

.sidebar .sidebar-link:hover span,
.sidebar .sidebar-link.is-active span {
    color: var(--color-primary);
}

/* Top submenu tabs ÃÂ¢ÃÂÃÂ shared across all screens */
.top-submenu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
}

.top-submenu-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.5rem 0.95rem;
    color: #64748B;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.3;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    background-color: transparent;
    position: relative;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.top-submenu-tab i {
    font-size: 1rem;
    color: #94A3B8 !important;
}

.top-submenu-tab:hover {
    color: #087C7C;
    background-color: #E8F7F2;
    border-top-color: #8ED8C5;
    border-left-color: #8ED8C5;
    border-right-color: #8ED8C5;
    border-bottom: none;
}

.top-submenu-tab:hover i {
    color: #087C7C !important;
}

.top-submenu-tab.is-active {
    color: #087C7C !important;
    font-weight: 600;
    background-color: #E8F7F2;
    border-top: 1.5px solid #8ED8C5;
    border-left: 1.5px solid #8ED8C5;
    border-right: 1.5px solid #8ED8C5;
    border-bottom: none;
    z-index: 1;
    margin-bottom: -1px;
    padding-bottom: calc(0.5rem + 1px);
}

.top-submenu-tab.is-active i {
    color: #087C7C !important;
}

/* Fully framed tabs (all four sides) — e.g. payroll settings sub-tabs */
.top-submenu--boxed {
    align-items: center;
    border-bottom: none;
    gap: 0.5rem;
}

.top-submenu-tab--boxed,
.top-submenu-tab--boxed:hover,
.top-submenu-tab--boxed.is-active {
    border-radius: 0.75rem;
    border: 1.5px solid transparent;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
}

.top-submenu-tab--boxed:hover {
    color: #087C7C;
    background-color: #E8F7F2;
    border-color: #8ED8C5;
}

.top-submenu-tab--boxed.is-active {
    color: #087C7C !important;
    font-weight: 600;
    background-color: #E8F7F2;
    border-color: #8ED8C5;
    z-index: 1;
}

/* Shared action chip pills (Quick actions, dashboard chips) */
.action-chip,
a.action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
}

/* Compact icon action buttons (View / Edit / Delete) */
.btn-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--button-radius, 0.375rem);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    line-height: 1;
    text-decoration: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    vertical-align: middle;
}

.btn-icon-action:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #0f172a;
}

.btn-icon-action--view {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.btn-icon-action--view:hover {
    border-color: #7dd3fc;
    background: #e0f2fe;
    color: #0c4a6e;
}

.btn-icon-action--edit {
    border-color: #a5f3fc;
    background: #ecfeff;
    color: #0e7490;
}

.btn-icon-action--edit:hover {
    border-color: #67e8f9;
    background: #cffafe;
    color: #155e75;
}

.btn-icon-action--delete {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.btn-icon-action--delete:hover {
    border-color: #fda4af;
    background: #ffe4e6;
    color: #be123c;
}

/* Keep action controls aligned to the left across data tables. */
@supports selector(:has(*)) {
    td:has(.btn-icon-action) {
        text-align: left !important;
    }

    td:has(.btn-icon-action) .justify-end {
        justify-content: flex-start !important;
    }
}

/* Consistent close control for drawer and modal headers */
@supports selector(:has(*)) {
    .fixed :is(button, a):has(.bi-x-lg) {
        display: inline-flex;
        width: 2.5rem;
        height: 2.5rem;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        background: #fff;
        color: #64748b;
        box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
        text-decoration: none;
        transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

    .fixed :is(button, a):has(.bi-x-lg):hover {
        border-color: #cbd5e1;
        background: #f8fafc;
        color: #0f172a;
    }

    .fixed :is(button, a):has(.bi-x-lg):focus-visible {
        outline: 2px solid rgb(13 148 136 / 0.35);
        outline-offset: 2px;
    }

    .fixed :is(button, a):has(.bi-x-lg) .bi-x-lg {
        font-size: 0.875rem;
        line-height: 1;
    }
}

.table-action-tooltip {
    position: fixed;
    z-index: 9999;
    padding: 0.35rem 0.55rem;
    border-radius: 0.375rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 0.2rem);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.table-action-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.table-action-tooltip-detail {
    display: block;
    max-width: 18rem;
    margin-top: 0.125rem;
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: 400;
    line-height: 0.9rem;
    white-space: normal;
}

.table-action-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 0.25rem solid transparent;
    border-top-color: #0f172a;
    transform: translateX(-50%);
}

/* Shared application table treatment */
.app-table-shell {
    overflow: hidden;
}

.app-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.75rem;
}

.app-table thead th {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.1rem;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-table tbody td {
    padding: 0.4rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    line-height: 1.35rem;
    vertical-align: middle;
}

.app-table tbody tr {
    transition: background-color 140ms ease;
}

.app-table tbody tr:hover {
    background-color: #f8fafc;
}

.app-table tbody tr:last-child td {
    border-bottom: 0;
}

.app-table :is(a, button):focus-visible {
    outline: 2px solid rgb(13 148 136 / 0.45);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .app-table thead th,
    .app-table tbody td {
        padding: 0.65rem 0.75rem;
    }

    .app-table tbody td {
        font-size: 0.75rem;
        line-height: 1.25rem;
    }
}

/* Light entrance and hover motion for the employee self-service dashboard */
@keyframes selfdash-rise-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.selfdash-animate {
    animation: selfdash-rise-in 500ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.selfdash-grid > :nth-child(1) { animation: selfdash-rise-in 500ms 70ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.selfdash-grid > :nth-child(2) { animation: selfdash-rise-in 500ms 140ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.selfdash-grid > :nth-child(3) { animation: selfdash-rise-in 500ms 210ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }

.selfdash-hover-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.selfdash-hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgb(15 23 42 / 0.07);
}

@media (prefers-reduced-motion: reduce) {
    .selfdash-animate,
    .selfdash-grid > :nth-child(n) {
        animation: none;
    }

    .selfdash-hover-card,
    .selfdash-hover-card:hover {
        transform: none;
        transition: none;
    }

    .selfdash-page .animate-pulse {
        animation: none;
    }
}

.btn-icon-action + .btn-icon-action,
a.btn-icon-action + a.btn-icon-action,
a.btn-icon-action + form,
form + a.btn-icon-action {
    margin-left: 0.35rem;
}

/* Avoid a double line under the tab row */
div.border-b:has(> .top-submenu),
div.border-b:has(> div > .top-submenu) {
    border-bottom-color: transparent;
}

select > option {
    background-color: var(--kiyo-bg-soft);
    color: #13161a;
    border: 1px solid #cbd5f5;
}

select > option:focus,
select > option:active,
select > option:hover {
    outline: none;
    border-color: var(--kiyo-bg-soft);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

/* Leave popup (iframe) styles */
.leave-popup-page {
    margin: 0;
    padding: 16px;
    font-family: "Manrope", sans-serif;
}

.leave-popup-page *,
.leave-popup-page *::before,
.leave-popup-page *::after {
    box-sizing: border-box;
}

.leave-popup-page .leave-popup {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.leave-popup-page .leave-popup__header {
    margin-bottom: 16px;
}

.leave-popup-page .leave-popup__name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.leave-popup-page .leave-popup__type {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.leave-popup-page .leave-popup__meta {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.leave-popup-page .leave-popup__label {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.leave-popup-page .leave-popup__value {
    color: #1e293b;
}

.leave-popup-page .status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

.leave-popup-page .status-badge--approved {
    background: #dcfce7;
    color: #166534;
}

.leave-popup-page .status-badge--rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.leave-popup-page .status-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.leave-popup-page .leave-popup__reason {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    margin-top: 4px;
}

.leave-popup-page .leave-popup__reason-title {
    margin: 0 0 6px;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.leave-popup-page .leave-popup__reason-text {
    margin: 0;
    font-size: 14px;
    color: #334155;
    white-space: pre-wrap;
}

.leave-popup-page .leave-popup__field {
    margin-top: 14px;
}

.leave-popup-page .leave-popup__input-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.leave-popup-page .leave-popup__textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: var(--input-radius, 0.5rem);
    padding: 10px 12px;
    font-size: 14px;
    color: #1e293b;
    min-height: 90px;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.leave-popup-page .leave-popup__textarea:focus {
    border-color: #0ea5a4;
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.15);
}

.leave-popup-page .leave-popup__actions {
    border-top: 1px solid #e2e8f0;
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.leave-popup-page .leave-popup__button-row {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.leave-popup-page .leave-popup__button {
    border: 1px solid transparent;
    border-radius: var(--button-radius, 0.375rem);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.leave-popup-page .leave-popup__button--approve {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.leave-popup-page .leave-popup__button--approve:hover {
    background: #bbf7d0;
}

.leave-popup-page .leave-popup__button--reject {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.leave-popup-page .leave-popup__button--reject:hover {
    background: #fecaca;
}

.leave-popup-page .leave-popup__button--edit {
    display: inline-flex;
    align-items: center;
    background: #f0fdfa;
    color: #0f766e;
    border-color: #99f6e4;
    text-decoration: none;
}

.leave-popup-page .leave-popup__button--edit:hover {
    background: #ccfbf1;
}

.leave-popup-page .leave-popup__no-action {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    text-align: right;
    width: 100%;
}

@media (max-width: 640px) {
    .leave-popup-page {
        padding: 10px;
    }

    .leave-popup-page .leave-popup {
        padding: 14px;
        border-radius: 10px;
    }

    .leave-popup-page .leave-popup__meta {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .leave-popup-page .leave-popup__actions {
        justify-content: stretch;
    }

    .leave-popup-page .leave-popup__button-row {
        justify-content: stretch;
    }

    .leave-popup-page .leave-popup__button {
        width: 100%;
    }

    .employee-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .employee-filters > * {
        width: 100% !important;
        max-width: 100% !important;
    }
}



/* Attendance punch button ÃÂ¢ÃÂÃÂ circular line spinner */
.punch-btn-loading {
    position: relative;
    overflow: hidden;
    gap: 0.5rem !important;
    min-width: 7.5rem;
    pointer-events: none;
}

.punch-btn-loading .punch-loading-label {
    line-height: 1.2;
}

.punch-loading-circle {
    position: relative;
    display: inline-block;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    animation: punch-loading-rotate 0.9s linear infinite;
}

.punch-loading-circle span {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0.35rem;
    margin-left: -1px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: 50% 0.5rem;
    opacity: 0.25;
}

.punch-loading-circle span:nth-child(1) { transform: rotate(0deg); opacity: 1; }
.punch-loading-circle span:nth-child(2) { transform: rotate(45deg); opacity: 0.85; }
.punch-loading-circle span:nth-child(3) { transform: rotate(90deg); opacity: 0.7; }
.punch-loading-circle span:nth-child(4) { transform: rotate(135deg); opacity: 0.55; }
.punch-loading-circle span:nth-child(5) { transform: rotate(180deg); opacity: 0.4; }
.punch-loading-circle span:nth-child(6) { transform: rotate(225deg); opacity: 0.3; }
.punch-loading-circle span:nth-child(7) { transform: rotate(270deg); opacity: 0.25; }
.punch-loading-circle span:nth-child(8) { transform: rotate(315deg); opacity: 0.2; }

@keyframes punch-loading-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Topbar punch ÃÂ¢ÃÂÃÂ compact fit on the right */
.topbar-punch .attendance-punch > div.flex {
    margin-top: 0 !important;
    flex-wrap: nowrap;
    gap: 0.375rem;
}

.topbar-punch .attendance-punch-form button[type="submit"] {
    height: 2rem;
    min-height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
    border-radius: 0.375rem;
}

.topbar-punch .punch-btn-loading {
    min-width: 0;
    gap: 0.35rem !important;
}

.topbar-punch .punch-loading-circle {
    width: 0.85rem;
    height: 0.85rem;
}

.topbar-punch .punch-loading-circle span {
    height: 0.28rem;
    transform-origin: 50% 0.425rem;
}

.select2-container {
            max-width: 100%;
            font-size: var(--admin-control-font-size, 1rem);
        }
        .select2-container .select2-selection--single {
            height: var(--admin-control-height, 34px);
            min-height: var(--admin-control-height, 34px);
            border-radius: var(--input-radius, 0.5rem);
            border: 1px solid #cbd5e1;
            background-color: #fff;
            display: flex;
            align-items: center;
            transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
        }
        select.js-select2.mt-1 + .select2-container {
            margin-top: 0.25rem;
        }

        .select2-container .select2-selection--single:hover,
        .select2-container .select2-selection--multiple:hover {
            border-color: var(--input-hover-border, var(--admin-accent, #0c6e6d)) !important;
            box-shadow: 0 0 0 .12rem var(--input-hover-ring, var(--admin-accent-hover-ring, rgba(12, 110, 109, 0.12)));
        }
        .select2-container--default.select2-container--focus .select2-selection--single,
        .select2-container--default.select2-container--focus .select2-selection--multiple,
        .select2-container--default.select2-container--open .select2-selection--multiple {
            border-color: var(--input-hover-border, var(--admin-accent-soft, #0c6e6d)) !important;
            box-shadow: 0 0 0 .2rem var(--input-focus-ring, var(--admin-accent-ring, rgba(12, 110, 109, 0.16)));
        }
        .select2-container .select2-selection--single .select2-selection__rendered {
            color: #312922;
            line-height: 1.2;
            padding-left: var(--admin-control-px, 0.75rem);
            padding-right: 1.75rem;
            font-size: var(--admin-control-font-size, 1rem);
        }
        .select2-container .select2-selection--single .select2-selection__arrow {
            height: 100%;
            right: .4rem;
        }
        .select2-container .select2-selection--single .select2-selection__arrow b {
            border-color: #8a8178 transparent transparent transparent;
        }
        .select2-container--default.select2-container--open .select2-selection--single {
            border-color: var(--admin-accent-soft, #0c6e6d);
            box-shadow: 0 0 0 .2rem var(--admin-accent-ring, rgba(12, 110, 109, 0.16));
            background-color: #fff;
        }
        .select2-dropdown {
            border: 1px solid #eadfce;
            border-radius: var(--input-radius, 0.5rem);
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(32, 20, 9, 0.08);
        }
        .select2-results__option {
            padding: .32rem .55rem;
            color: #312922;
            font-size: var(--admin-control-font-size, 1rem);
        }
        .select2-container.select2-sm {
            font-size: 12px;
        }
        .select2-container.select2-sm .select2-selection--single {
            min-height: 32px;
        }
        .select2-container.select2-sm .select2-selection--single .select2-selection__rendered {
            font-size: 12px;
            padding-left: .5rem;
            padding-right: 1.5rem;
        }
        .select2-container.select2-sm .select2-selection--single .select2-selection__arrow {
            right: .32rem;
        }
        .site-select2-dropdown .select2-results__option[aria-selected="true"],
        .site-select2-dropdown .select2-results__option--selected {
            background-color: #d1fae5 !important;
            color: #065f46 !important;
        }
        .site-select2-dropdown .select2-results__option--highlighted[aria-selected],
        .site-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
            background-color: #d1fae5 !important;
            color: #065f46 !important;
        }

/* Login page */
.login-page {
    min-height: 100dvh;
    background: linear-gradient(180deg, #f8fbfb 0%, #eef7f6 100%);
}

.login-page-grid {
    min-height: 100dvh;
}

.login-hero-panel {
    /* background:
        radial-gradient(circle at top left, rgba(15, 157, 122, 0.08), transparent 36%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.04), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f5fbf9 100%); */
    padding: clamp(1.5rem, 4vw, 3rem);
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background:
        radial-gradient(circle at top right, rgba(15, 157, 122, 0.06), transparent 30%),
        linear-gradient(180deg, #f8fbfb 0%, #eef7f6 100%);
}

.login-form-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.login-feature-chip {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    height: 100%;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.login-feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 157, 122, 0.1);
    color: var(--kiyo-primary-dark);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.login-hero-image {
    width: 100%;
    max-height: min(42vh, 320px);
    object-fit: contain;
    border-radius: 1rem;
}

.login-input-group .form-control {
    min-height: 46px;
    border-radius: var(--input-radius, 0.5rem);
    border-color: #d7e3df;
    padding-right: 2.75rem;
}

.login-input-group .form-control:focus {
    border-color: var(--kiyo-primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 157, 122, 0.14);
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0.25rem;
    line-height: 1;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
    color: var(--kiyo-primary-dark);
}

.login-submit-btn {
    min-height: 46px;
    border-radius: 0.7rem;
    font-weight: 700;
}

.login-mobile-strip {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.72);
    padding: 1rem clamp(1rem, 3vw, 1.5rem) calc(1rem + env(safe-area-inset-bottom));
}

.login-back-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.login-back-link:hover {
    color: var(--kiyo-primary-dark);
}

/* Two-factor OTP challenge */
.otp-user-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(248, 250, 252, 0.9);
}

.otp-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(15, 157, 122, 0.12);
    color: var(--kiyo-primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.otp-slots-wrap {
    width: 100%;
    max-width: 22.5rem;
}

.otp-slots {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.4rem, 2.5vw, 0.625rem);
    width: 100%;
}

.otp-slot {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    flex: 1 1 0;
    min-width: 2.5rem;
    max-width: 3.25rem;
    height: 3.25rem;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(148, 163, 184, 0.38);
    border-radius: 0.7rem;
    background-color: #fff;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(1.15rem, 4.5vw, 1.4rem);
    font-weight: 700;
    line-height: 3.25rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-slot:focus {
    border-color: var(--kiyo-primary);
    box-shadow: 0 0 0 3px rgba(15, 157, 122, 0.16);
    position: relative;
    z-index: 1;
}

.otp-slots.has-error .otp-slot {
    border-color: #dc3545;
}

.otp-slots.has-error .otp-slot:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.otp-slots.is-complete .otp-slot {
    border-color: rgba(15, 157, 122, 0.48);
}

@media (max-width: 575.98px) {
    .otp-slots-wrap {
        max-width: 100%;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    .otp-slots {
        gap: 0.35rem;
    }

    .otp-slot {
        min-width: 2.25rem;
        height: 3rem;
        line-height: 3rem;
        font-size: 1.2rem;
        border-radius: 0.6rem;
    }
}

@media (max-width: 380px) {
    .otp-slot {
        min-width: 2rem;
        height: 2.75rem;
        line-height: 2.75rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 991.98px) {
    .login-page-grid {
        min-height: auto;
    }

    .login-form-panel {
        min-height: auto;
        padding-top: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .login-form-card {
        max-width: 520px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    }
}

@media (max-width: 575.98px) {
    .login-form-card {
        border-radius: 1rem;
        padding: 1.15rem;
    }

    .login-feature-chip {
        padding: 0.75rem;
    }
}

/* Contact page */
.contact-quick-card {
    border: 1px solid #e8eef2;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.1rem;
    height: 100%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-quick-card:hover {
    border-color: rgba(15, 157, 122, 0.35);
    box-shadow: 0 14px 28px rgba(15, 157, 122, 0.08);
}

.contact-quick-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 157, 122, 0.1);
    color: var(--kiyo-primary-dark);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-map-frame {
    width: 100%;
    min-height: 220px;
    border: 0;
    border-radius: 1rem;
}

.contact-form .form-control,
.contact-form .form-select,
.contact-form .input-group-text {
    min-height: 46px;
}

.contact-form textarea.form-control {
    min-height: 120px;
}

@media (max-width: 991.98px) {
    .contact-sidebar {
        order: -1;
    }
}

.subject-select + .select2-container .select2-selection--single {
    height: 45px !important;
    display: flex;
    align-items: center;
}

.subject-select + .select2-container .select2-selection__rendered {
    padding-left: 16px !important;
    padding-right: 40px !important;
    line-height: 1.2 !important;
}

.subject-select + .select2-container .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

/* .image-rotate {
    animation: rotateImage 10s alternate-reverse infinite;
}

@keyframes rotateImage {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
} */
/* Form controls + buttons + cards: unified corner radius across the app */
:root {
    --input-radius: 0.375rem;
    --button-radius: 0.375rem;
    --card-radius: 0.375rem;
    --input-hover-border: var(--color-primary, #0c6e6d);
    --input-hover-ring: rgba(12, 110, 109, 0.12);
    --input-focus-ring: rgba(12, 110, 109, 0.18);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="image"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not(.rounded-full):not(.rounded-none),
select:not(.rounded-full):not(.rounded-none),
textarea:not(.rounded-full):not(.rounded-none),
.form-control:not(.rounded-full):not(.rounded-none),
.form-select:not(.rounded-full):not(.rounded-none),
input.form-control:not(.rounded-full):not(.rounded-none),
select.form-select:not(.rounded-full):not(.rounded-none),
textarea.form-control:not(.rounded-full):not(.rounded-none),
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple,
.select2-dropdown,
.site-select2 .select2-selection--single,
.site-select2-dropdown {
    border-radius: var(--input-radius) !important;
}

/* Form controls: consistent hover + focus (app shell) */
#app-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="image"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not(:disabled):not([readonly]),
#app-main select:not(:disabled),
#app-main textarea:not(:disabled):not([readonly]),
#app-main .form-control:not(:disabled):not([readonly]),
#app-main .form-select:not(:disabled),
#app-main .employee-create__control:not(:disabled):not([readonly]) {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

#app-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="image"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not(:disabled):not([readonly]):hover,
#app-main select:not(:disabled):hover,
#app-main textarea:not(:disabled):not([readonly]):hover,
#app-main .form-control:not(:disabled):not([readonly]):hover,
#app-main .form-select:not(:disabled):hover,
#app-main .employee-create__control:not(:disabled):not([readonly]):hover {
    border-color: var(--input-hover-border) !important;
    box-shadow: 0 0 0 0.12rem var(--input-hover-ring);
}

#app-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="image"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not(:disabled):not([readonly]):focus,
#app-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="image"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not(:disabled):not([readonly]):focus-visible,
#app-main select:not(:disabled):focus,
#app-main select:not(:disabled):focus-visible,
#app-main textarea:not(:disabled):not([readonly]):focus,
#app-main textarea:not(:disabled):not([readonly]):focus-visible,
#app-main .form-control:not(:disabled):not([readonly]):focus,
#app-main .form-control:not(:disabled):not([readonly]):focus-visible,
#app-main .form-select:not(:disabled):focus,
#app-main .form-select:not(:disabled):focus-visible,
#app-main .employee-create__control:not(:disabled):not([readonly]):focus,
#app-main .employee-create__control:not(:disabled):not([readonly]):focus-visible {
    outline: none;
    border-color: var(--input-hover-border) !important;
    box-shadow: 0 0 0 0.2rem var(--input-focus-ring);
}

#app-main input[type="file"]:not(:disabled) {
    border: 0 !important;
    background: transparent;
    box-shadow: none !important;
    outline: none;
}

#app-main input[type="file"]:not(:disabled):hover,
#app-main input[type="file"]:not(:disabled):focus,
#app-main input[type="file"]:not(:disabled):focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

#app-main input:disabled,
#app-main select:disabled,
#app-main textarea:disabled,
#app-main .form-control:disabled,
#app-main .form-select:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

button:not(.rounded-full):not(.rounded-none):not(.action-chip),
input[type="submit"]:not(.rounded-full):not(.rounded-none),
input[type="button"]:not(.rounded-full):not(.rounded-none),
input[type="reset"]:not(.rounded-full):not(.rounded-none),
a.btn:not(.rounded-full):not(.rounded-none):not(.action-chip),
.btn:not(.rounded-full):not(.rounded-none):not(.action-chip),
.btn-kiyo:not(.rounded-full),
.btn-seconsary:not(.rounded-full),
.demo-btn:not(.rounded-full),
.login-btn:not(.rounded-full) {
    border-radius: var(--button-radius) !important;
}

/* Cards / white panels that use plain .rounded (near-square) */
.rounded.border.bg-white,
.rounded.border.border-slate-200.bg-white,
.rounded.shadow-sm.bg-white {
    border-radius: var(--card-radius) !important;
}

/* Add Employee wizard */
.employee-create {
    --ec-accent: var(--color-primary, #0c6e6d);
    --ec-accent-soft: var(--color-primary-light, #e6f5f5);
    --ec-control-height: 34px;
    --ec-radius: 0.375rem;
    --ec-radius-lg: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.employee-create__intro {
    margin-bottom: 0.85rem;
}

.employee-create__intro h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.employee-create__intro p {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.employee-create__layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.employee-create__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.employee-create__steps {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.employee-create__steps::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: #dbe4ef;
}

.employee-create__step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.employee-create__step + .employee-create__step {
    margin-top: 0.85rem;
}

.employee-create__step-index {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.employee-create__step.is-done .employee-create__step-index {
    border-color: var(--ec-step-accent, var(--ec-accent));
    background: var(--ec-step-accent, var(--ec-accent));
    color: #fff;
}

.employee-create__step.is-active .employee-create__step-index {
    border-color: var(--ec-step-accent, var(--ec-accent));
    background: var(--ec-step-accent, var(--ec-accent));
    color: #fff;
}

.employee-create__step-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.employee-create__step-card:hover {
    background: #f8fafc;
}

.employee-create__step.is-active .employee-create__step-card {
    background: var(--ec-step-soft, var(--ec-accent-soft));
    border-color: var(--ec-step-border, rgba(12, 110, 109, 0.28));
    box-shadow: var(--ec-step-shadow, 0 12px 28px -14px rgba(12, 110, 109, 0.45), 0 4px 12px -8px rgba(15, 23, 42, 0.12));
}

.employee-create__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.employee-create__step.is-done .employee-create__step-icon {
    background: var(--ec-step-icon-bg, rgba(12, 110, 109, 0.14));
    color: var(--ec-step-accent, var(--ec-accent));
}

.employee-create__step.is-active .employee-create__step-icon {
    background: var(--ec-step-icon-bg, rgba(12, 110, 109, 0.14));
    color: var(--ec-step-accent, var(--ec-accent));
}

.employee-create__step-copy {
    min-width: 0;
}

.employee-create__step-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.employee-create__step:not(.is-active):not(.is-done) .employee-create__step-title {
    font-weight: 600;
    color: #64748b;
}

.employee-create__step.is-active .employee-create__step-title {
    color: var(--ec-step-accent, var(--ec-accent));
}

.employee-create__step-subtitle {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #94a3b8;
}

.employee-create__step.is-active .employee-create__step-subtitle {
    color: var(--ec-step-muted, rgba(12, 110, 109, 0.85));
}

.employee-create__step--teal {
    --ec-step-accent: #0c6e6d;
    --ec-step-soft: #e6f5f5;
    --ec-step-border: rgba(12, 110, 109, 0.28);
    --ec-step-icon-bg: rgba(12, 110, 109, 0.14);
    --ec-step-muted: rgba(12, 110, 109, 0.85);
    --ec-step-shadow: 0 12px 28px -14px rgba(12, 110, 109, 0.45), 0 4px 12px -8px rgba(15, 23, 42, 0.12);
}

.employee-create__step--sky {
    --ec-step-accent: #0284c7;
    --ec-step-soft: #e0f2fe;
    --ec-step-border: rgba(2, 132, 199, 0.28);
    --ec-step-icon-bg: rgba(2, 132, 199, 0.14);
    --ec-step-muted: rgba(2, 132, 199, 0.85);
    --ec-step-shadow: 0 12px 28px -14px rgba(2, 132, 199, 0.45), 0 4px 12px -8px rgba(15, 23, 42, 0.12);
}

.employee-create__step--rose {
    --ec-step-accent: #e11d48;
    --ec-step-soft: #fff1f2;
    --ec-step-border: rgba(225, 29, 72, 0.28);
    --ec-step-icon-bg: rgba(225, 29, 72, 0.12);
    --ec-step-muted: rgba(225, 29, 72, 0.85);
    --ec-step-shadow: 0 12px 28px -14px rgba(225, 29, 72, 0.4), 0 4px 12px -8px rgba(15, 23, 42, 0.12);
}

.employee-create__step--emerald {
    --ec-step-accent: #059669;
    --ec-step-soft: #ecfdf5;
    --ec-step-border: rgba(5, 150, 105, 0.28);
    --ec-step-icon-bg: rgba(5, 150, 105, 0.14);
    --ec-step-muted: rgba(5, 150, 105, 0.85);
    --ec-step-shadow: 0 12px 28px -14px rgba(5, 150, 105, 0.4), 0 4px 12px -8px rgba(15, 23, 42, 0.12);
}

.employee-create__step--violet {
    --ec-step-accent: #7c3aed;
    --ec-step-soft: #f5f3ff;
    --ec-step-border: rgba(124, 58, 237, 0.28);
    --ec-step-icon-bg: rgba(124, 58, 237, 0.14);
    --ec-step-muted: rgba(124, 58, 237, 0.85);
    --ec-step-shadow: 0 12px 28px -14px rgba(124, 58, 237, 0.4), 0 4px 12px -8px rgba(15, 23, 42, 0.12);
}

.employee-create__panel-head--teal .employee-create__panel-icon {
    background: #e6f5f5;
    color: #0c6e6d;
}

.employee-create__panel-head--sky .employee-create__panel-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.employee-create__panel-head--rose .employee-create__panel-icon {
    background: #fff1f2;
    color: #e11d48;
}

.employee-create__panel-head--emerald .employee-create__panel-icon {
    background: #ecfdf5;
    color: #059669;
}

.employee-create__panel-head--violet .employee-create__panel-icon {
    background: #f5f3ff;
    color: #7c3aed;
}

.employee-create__promo {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
    padding: 1.25rem 1rem;
    text-align: center;
}

.employee-create__promo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.75rem;
    border-radius: 1rem;
    background: #fff;
    color: var(--ec-accent);
    font-size: 1.4rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.employee-create__promo-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.employee-create__promo-text {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #64748b;
}

.employee-create__panel {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: var(--ec-radius-lg);
    background: #fff;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.employee-create__panel-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #f1f5f9;
}

.employee-create__panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    background: var(--ec-accent-soft);
    color: var(--ec-accent);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.employee-create__panel-head h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.employee-create__panel-head p {
    margin: 0.1rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.employee-create__sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.employee-create__section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
}

.employee-create__section-title i {
    color: #0284c7;
    font-size: 0.95rem;
}

.employee-create__grid {
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: 1fr;
}

.employee-create__label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
}

.employee-create__label span {
    color: #ef4444;
}

.employee-create__control {
    display: block;
    width: 100%;
    min-height: var(--ec-control-height);
    height: var(--ec-control-height);
    padding: 0.35rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--ec-radius) !important;
    background: #fff;
    color: #0f172a;
    font-size: 0.8125rem;
    line-height: 1.25;
    box-sizing: border-box;
}

.employee-create__control:focus {
    outline: none;
    border-color: var(--ec-accent);
    box-shadow: 0 0 0 0.18rem rgba(12, 110, 109, 0.14);
}

.employee-create__control--muted {
    background: #f8fafc;
}

.employee-create__password {
    position: relative;
}

.employee-create__password .employee-create__control {
    padding-right: 2.5rem;
}

.employee-create__password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 0.75rem;
    color: #64748b;
    background: transparent;
    border: 0;
}

.employee-create__password-toggle:hover {
    color: #334155;
}

.employee-create__phone {
    display: flex;
    gap: 0.5rem;
}

.employee-create__phone-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    height: var(--ec-control-height);
    padding: 0 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--ec-radius) !important;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
}

.employee-create__combo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.employee-create__combo .select2-container,
.employee-create__combo select.employee-create__control {
    flex: 1;
    min-width: 0;
}

.employee-create__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ec-control-height);
    height: var(--ec-control-height);
    border: 1px solid var(--ec-accent);
    border-radius: var(--ec-radius) !important;
    color: var(--ec-accent);
    background: #fff;
    flex-shrink: 0;
}

.employee-create__add-btn:hover {
    background: var(--ec-accent);
    color: #fff;
}

.employee-create .select2-container {
    width: 100% !important;
}

.employee-create .select2-container .select2-selection--single,
.employee-create .select2-container .select2-selection--multiple,
.employee-create .select2-dropdown,
.employee-create input.employee-create__control,
.employee-create select.employee-create__control,
.employee-create textarea.employee-create__control {
    border-radius: var(--ec-radius) !important;
}

.employee-create .select2-container .select2-selection--single {
    min-height: var(--ec-control-height);
    height: var(--ec-control-height);
}

.employee-create__hint {
    margin: 0.2rem 0 0;
    font-size: 0.7rem;
    color: #64748b;
}

.employee-create__error {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: #dc2626;
}

.employee-create__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
}

.employee-create__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--button-radius, var(--ec-radius)) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.employee-create__btn--ghost {
    border-color: #cbd5e1;
    background: #fff;
    color: #334155;
}

.employee-create__btn--ghost:hover {
    background: #f8fafc;
}

.employee-create__btn--soft {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #334155;
}

.employee-create__btn--soft:hover {
    background: #e2e8f0;
}

.employee-create__btn--primary {
    background: var(--ec-accent);
    color: #fff;
}

.employee-create__btn--primary:hover {
    background: var(--color-primary-hover, #0a5c5b);
}

@media (min-width: 640px) {
    .employee-create__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .employee-create {
        width: 100%;
        max-width: 100%;
    }

    .employee-create__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .employee-create__sidebar {
        width: 19rem;
        max-width: 19rem;
        flex-shrink: 0;
        position: sticky;
        top: 1rem;
    }

    .employee-create__panel {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
        padding: 1rem 1.15rem;
    }

    .employee-create__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.7rem 0.9rem;
    }
}

@media (min-width: 1280px) {
    .employee-create__sidebar {
        width: 18rem;
        max-width: 18rem;
    }

    .employee-create__panel {
        padding: 1rem 1.25rem;
    }

    .employee-create__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.7rem 1rem;
    }
}

@media (min-width: 1536px) {
    .employee-create__sidebar {
        width: 19rem;
        max-width: 19rem;
    }

    .employee-create__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.85rem 1.15rem;
    }
}

/* Employee profile / view page */
.employee-view__back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
    color: #087C7C;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.employee-view__back:hover {
    color: #0a6969;
}

.employee-view__back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid #8ED8C5;
    background: #fff;
    color: #087C7C;
    font-size: 0.8rem;
}

/*
 * Profile layout uses CSS grid (not the create-wizard flex row).
 * Panel column is always minmax(0, 1fr) so salary tables cannot push past the viewport.
 */
.employee-view__layout.employee-create__layout,
.employee-view__layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
}

.employee-view .employee-create__panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    box-sizing: border-box;
}

.employee-view__card,
.employee-view__timeline {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 639px) {
    .employee-view .employee-create__panel {
        padding: 0.75rem;
    }

    .employee-view__panel-top {
        gap: 0.5rem;
    }

    .employee-view__actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .employee-view__actions .employee-create__btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.employee-view__card {
    width: 100%;
    padding: 1.35rem 1.15rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.employee-view__card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.employee-view__avatar {
    width: 5rem !important;
    height: 5rem !important;
    font-size: 1.35rem !important;
    margin-bottom: 0.85rem;
}

.employee-view__name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.employee-view__meta {
    margin: 0.3rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.employee-view__status {
    margin-top: 0.65rem;
}

.employee-view__facts {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.employee-view__facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8125rem;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}

.employee-view__facts i {
    margin-top: 0.1rem;
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.employee-view__edit {
    width: 100%;
    justify-content: center;
    margin-top: 1.1rem;
    text-decoration: none;
}

.employee-view__timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.employee-view__timeline > nav {
    width: 100%;
    height: auto;
    max-height: min(22rem, 42vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
}

.employee-view__timeline > nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.employee-view__timeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    border: 1.5px solid #087C7C;
    border-radius: 999px;
    background: #E8F7F2;
    color: #087C7C;
    font-size: 0.65rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px -3px rgba(8, 124, 124, 0.5);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.employee-view__timeline-arrow i {
    font-size: 0.65rem;
    line-height: 1;
}

.employee-view__timeline-arrow:hover:not(:disabled):not(.is-disabled) {
    color: #fff;
    background: #087C7C;
    border-color: #087C7C;
    box-shadow: 0 4px 10px -4px rgba(8, 124, 124, 0.65);
}

.employee-view__timeline-arrow:disabled,
.employee-view__timeline-arrow.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
}

.employee-view__steps {
    width: 100%;
}

.employee-view__panel-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #f1f5f9;
}

.employee-view__panel-titles {
    min-width: 0;
    flex: 1 1 auto;
}

.employee-view__panel-top .employee-create__panel-head {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.employee-view__actions {
    margin: 0;
    padding: 0;
    border: none;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: auto;
}

.employee-view__details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem 1.25rem;
    margin: 0;
}

.employee-view__details > div {
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #eef2f7;
    border-radius: 0.55rem;
    background: #f8fafc;
}

.employee-view__detail-label {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.3;
}

.employee-view__detail-value {
    display: block;
    margin: 0;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.employee-view__scroll {
    max-height: 22rem;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.employee-view__scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.employee-view__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.employee-view__scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.employee-view__scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.employee-view__scroll table {
    margin: 0;
}

.employee-view__scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}

.employee-view .employee-create__sections {
    gap: 1.25rem;
}

.employee-view .employee-create__section-title {
    margin-bottom: 0.7rem;
}

@media (min-width: 640px) {
    .employee-view__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .employee-view__details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet / laptop: profile card full width, then timeline | content */
@media (min-width: 1024px) {
    .employee-view__layout.employee-create__layout,
    .employee-view__layout {
        grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr);
    }

    .employee-view__card {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        position: static;
    }

    .employee-view__timeline.employee-create__sidebar,
    .employee-view__timeline {
        width: 100%;
        max-width: none;
        position: sticky;
        top: 1rem;
        align-items: center;
    }

    .employee-view__timeline > nav {
        width: 100%;
        height: 440px;
        max-height: none;
    }

    .employee-view__layout > .employee-create__panel {
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
    }
}

/* Very wide screens only: true 3-column (card | timeline | panel) */
@media (min-width: 1536px) {
    .employee-view__layout.employee-create__layout,
    .employee-view__layout {
        grid-template-columns: 14.5rem 15.5rem minmax(0, 1fr);
    }

    .employee-view__card {
        grid-column: auto;
        width: 14.5rem;
        max-width: 14.5rem;
        position: sticky;
        top: 1rem;
    }

    .employee-view__timeline.employee-create__sidebar,
    .employee-view__timeline {
        width: 15.5rem;
        max-width: 15.5rem;
        position: sticky;
        top: 1rem;
    }
}

.employee-profile {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.employee-view__salary {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.employee-view__salary-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.employee-view__salary-table > table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
}

.employee-view__salary-table th,
.employee-view__salary-table td {
    word-break: normal;
}

.employee-view__salary-table td.whitespace-nowrap,
.employee-view__salary-table th.whitespace-nowrap {
    white-space: nowrap;
}

.employee-view__salary-heading {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

@media (min-width: 640px) {
    .employee-view__salary-heading {
        font-size: 1.5rem;
    }
}

.employee-profile .top-submenu button.top-submenu-tab {
    cursor: pointer;
    appearance: none;
    font: inherit;
}

/* Prevent page “shake” when drawer locks body scroll (scrollbar width) */
html {
    --scrollbar-compensation: 0px;
}

body.app-drawer-scroll-locked header.fixed.top-0 {
    right: var(--scrollbar-compensation) !important;
}

/* Right-side app drawers — same slide feel as attendance x-modal (duration-300) */
.app-drawer {
    position: fixed;
    inset: 0;
    z-index: 110;
}

.app-drawer > .app-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: rgb(15 23 42 / 0.5);
    opacity: 0;
    transition: opacity 200ms ease-out;
}

.app-drawer.is-open > .app-drawer-backdrop {
    opacity: 1;
}

.app-drawer.is-closing > .app-drawer-backdrop {
    opacity: 0;
    transition: opacity 150ms ease-in;
}

.app-drawer > .app-drawer-panel {
    position: absolute;
    inset-block: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: -12px 0 40px rgb(15 23 42 / 0.18);
    transform: translateX(100%);
    transition: transform 300ms ease-out;
    will-change: transform;
}

.app-drawer.is-open > .app-drawer-panel {
    transform: translateX(0);
}

.app-drawer.is-closing > .app-drawer-panel {
    transform: translateX(100%);
    transition: transform 300ms ease-in;
}

@media (prefers-reduced-motion: reduce) {
    .app-drawer > .app-drawer-backdrop,
    .app-drawer > .app-drawer-panel {
        transition-duration: 1ms !important;
    }
}

