* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', Segoe UI, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}
.validation-summary {
    color: #dc3545;
    margin-bottom: 15px;
}

    .validation-summary:empty {
        display: none;
    }

.login.formcard {
    position: relative !important;
}




.login-download {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 100;
}
.approval-window-expired {
    color: #b45309;
    font-size: 0.82em;
    margin-top: 4px;
    max-width: 240px;
}

.download-banner {
    display: block;
    width: 360px;
    max-width: min(360px, 42vw);
    height: auto;
}


.attendance-future-row {
    background: #f1f5f9;
    color: #64748b;
}

    .attendance-future-row .attendance-status-badge {
        background: #e2e8f0;
        color: #475569;
    }

    .attendance-future-row input[type="checkbox"] {
        cursor: not-allowed;
    }


/* -------------------------------------------------------------
   App Header (Top Bar)
   ------------------------------------------------------------- */
.app-header {
    height: 64px;
    background: #17365d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    user-select: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 150ms ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.brand-logo {
    height: 40px;
    width: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 11px;
    color: #93c5fd;
    font-weight: 500;
}

@media(max-width: 640px) {
    .brand-subtitle {
        display: none;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header Audit Trail Button */
.header-audit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 160ms ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-audit-btn:hover, .header-audit-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* User Pill */
.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 13px;
}

.user-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
}

.user-role {
    font-size: 10px;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Red Logout Button */
.logout-form {
    margin: 0;
    display: inline;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #be123c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
    box-shadow: 0 2px 5px rgba(190, 18, 60, 0.3);
}

.logout-btn:hover {
    background: #9f1239;
    transform: translateY(-1px);
}

/* Icons styling */
.icon-emerald {
    color: #34d399;
    stroke: #34d399;
}

.icon-blue {
    color: #93c5fd;
    stroke: #93c5fd;
}

/* -------------------------------------------------------------
   Container & Layout
   ------------------------------------------------------------- */
.container {
    display: flex;
    gap: 20px;
    max-width: 1440px;
    margin: 20px auto;
    padding: 0 20px;
    min-height: calc(100vh - 104px);
}

.sidebar {
    width: 256px;
    flex-shrink: 0;
    transition: transform 240ms ease, box-shadow 240ms ease, width 240ms ease, padding 240ms ease;
}

.sidebar.collapsed {
    width: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: none !important;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(180deg, #17365d 0%, #1f4e78 100%);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.14);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 150ms ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.nav-item.active-parent {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.nav-item-split {
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    color: #93c5fd;
    flex-shrink: 0;
    transition: color 150ms ease, transform 150ms ease;
}


.nav-item:hover .nav-icon, .nav-item.active .nav-icon {
    color: #bfdbfe;
}



.badge-emerald {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

/* Accordion Menu */
.menu-accordion {
    margin-top: 2px;
}

.menu-accordion summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.menu-accordion summary::-webkit-details-marker {
    display: none;
}

.chevron-icon {
    color: #93c5fd;
    stroke: #93c5fd;
    transition: transform 200ms ease;
}

.menu-accordion[open] .chevron-icon {
    transform: rotate(180deg);
}

.submenu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 0 4px 20px;
}

.subnav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bfdbfe;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 150ms ease;
}

.subnav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.subnav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
}

.subnav-icon {
    color: #93c5fd;
    flex-shrink: 0;
}



.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 8px 0;
}

.system-badge {
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.system-badge-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}

.system-badge-subtitle {
    margin: 2px 0 0 0;
    font-size: 10px;
    color: #17365d;
}

/* Mobile Sidebar & Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 900;
}

.overlay.visible {
    display: block;
}

@media(max-width: 800px) {
    .container {
        padding: 0 12px;
        margin: 12px auto;
    }
    .sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        height: calc(100% - 64px);
        transform: translateX(-110%);
        width: 270px;
        z-index: 1000;
        background: #17365d;
        padding: 12px;
        overflow-y: auto;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .user-pill {
        display: none;
    }
}

/* -------------------------------------------------------------
   Main Content Area & Components
   ------------------------------------------------------------- */
.content-main {
    flex: 1 1 auto;
    min-width: 0;
}

h1 {
    margin-top: 0;
    font-size: 1.55rem;
    color: #0f172a;
    font-weight: 700;
}

/* Metrics Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.num {
    font-size: 28px;
    font-weight: 700;
    color: #17365d;
    margin-top: 6px;
}

/* Tables */
.tablewrap {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    white-space: nowrap;
    font-size: 13.5px;
}

th {
    background: #1f4e78;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
}

tr:hover td {
    background: #f8fafc;
}

/* Forms & Toolbars */
.toolbar, .formcard {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toolbar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.toolbar .field {
    margin-bottom: 0;
}
.field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.toolbar > button,
.toolbar > a.btn {
    margin-bottom: 8px;
}

input, select {
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color 150ms ease;
    background: #ffffff;
    margin-right: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
}

input:focus, select:focus {
    outline: none;
    border-color: #1f4e78;
    box-shadow: 0 0 0 2px rgba(31, 78, 120, 0.15);
}

/* Buttons */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: 0;
    border-radius: 6px;
    background: #1f4e78;
    color: #ffffff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

button:hover, .btn:hover {
    background: #17365d;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.btn.secondary {
    background: #0284c7;
}

.btn.secondary:hover {
    background: #0369a1;
}

/* Selfie action buttons must remain fully visible inside table cells. */
.tablewrap td .btn.secondary {
    display: inline-flex;
    width: auto;
    min-width: 96px;
    min-height: 36px;
    height: auto;
    padding: 8px 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: visible;
    box-sizing: border-box;
    vertical-align: middle;
}

.btn.green {
    background: #16a34a;
}

.btn.green:hover {
    background: #15803d;
}

.btn.red {
    background: #be123c;
}

.btn.red:hover {
    background: #9f1239;
}

.alert {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13.5px;
}

/* Keep the login validation box completely collapsed until an actual
   validation message is rendered. ASP.NET may emit an empty <ul>. */
#login-validation-summary.is-empty {
    display: none;
}

#login-validation-summary:has(ul):not(:has(li)) {
    display: none;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.small {
    font-size: 12px;
    color: #64748b;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media(max-width: 600px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}

/* Login Page Layout */
.login-layout {
    max-width: 420px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.login h1 {
    text-align: center;
}

/* About Page Card */
.about-card {
    max-width: 680px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 36px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.about-logo {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 16px;
    display: block;
}

.about-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.about-version {
    font-size: 17px;
    font-weight: 700;
    color: #17365d;
    margin-bottom: 8px;
}

.about-details {
    margin-top: 24px;
    text-align: left;
    border-top: 1px solid #e2e8f0;
}

.about-details div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
}

.about-details span {
    color: #64748b;
}

/* Hierarchy & Assignment */
.hierarchy-assignment {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    margin: 18px 0;
}

.assignment-panel {
    min-width: 0;
}

.assignment-panel h4 {
    margin: 0 0 4px;
    color: #1e293b;
}

.assignment-list {
    width: 100%;
    min-height: 280px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
}

.assignment-list option {
    padding: 7px 8px;
    border-radius: 4px;
}

.assignment-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assignment-buttons .btn {
    min-width: 90px;
}

.list-search {
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
}

.muted {
    color: #64748b;
    font-size: 0.9rem;
}

   
.salary-structure-page label {
    
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-right: 10px;
    margin-bottom: 5px;
    margin-top: 5px;

}

.salary-structure-list-actions {
    margin-bottom: 16px;
}

.salary-structure-form.is-hidden {
    display: none;
}

.salary-structure-list.is-hidden {
    display: none;
}

.salary-structure-list {
    margin-bottom: 20px;
}

#salaryStructureForm.form-control {
    border: 1px solid #999;
    border-radius: 4px;
    min-height: 38px;
    margin-right: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
}

    #salaryStructureForm.form-control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    }
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    background: #17365d;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.btn-primary:hover {
    background: #1f4e78;
}

@media(max-width: 800px) {
    .hierarchy-assignment {
        grid-template-columns: 1fr;
    }
    .assignment-buttons {
        flex-direction: row;
        justify-content: center;
    }
}



/* Dynamic APK version: text only. The Android/cyan pill is part of downloadlink.png. */
.download-banner-link {
    display: block;
    text-decoration: none;
}

.download-banner-wrap {
    position: relative;
    display: block;
    width: 360px;
    max-width: calc(100vw - 20px);
}

.download-banner-wrap .download-banner {
    display: block;
    width: 100%;
    height: auto;
}

.download-version-overlay {
    position: absolute;
    left: 50.5%;
    top: 62%;
    width: 18.5%;
    height: 12%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff;
    font-size: clamp(7px, 2.7vw, 11px);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.download-version-overlay::before,
.download-version-overlay::after {
    content: none !important;
    display: none !important;
}

.download-version-overlay #itrack-apk-version {
    display: inline;
    margin: 0;
    padding: 0;
    background: transparent !important;
    color: inherit;
}


/* FINAL iTrack download banner layout override.
   The cyan Android/version pill is part of downloadlink.png.
   The CSS overlay contains text only. */
.login-download {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10000 !important;
}

.download-banner-link {
    display: block !important;
    width: 360px !important;
    max-width: calc(100vw - 20px) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

.download-banner-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    container-type: inline-size;
}

.download-banner-wrap .download-banner {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
}

.download-version-overlay {
    position: absolute !important;
    left: 46% !important;
    top: 61% !important;
    width: 25% !important;
    height: 18% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: clamp(8px, 3cqw, 11px) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
}

.download-version-overlay::before,
.download-version-overlay::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
}

.download-version-overlay #itrack-apk-version {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

@media (max-width: 800px) {
    .login-download {
        top: 10px !important;
        left: 10px !important;
        right: auto !important;
    }
}

/* -------------------------------------------------------------
   Legacy/shared compatibility styles consolidated from StyleSheet.css
   ------------------------------------------------------------- */
header {
    height: 64px;
    background: #17365d;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
}


nav {
    display: flex;
    gap: 18px;
    flex: 1;
}

nav a {
    color: #fff;
    text-decoration: none;
}


main {
    max-width: 1400px;
    margin: 28px auto;
    padding: 0 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.form-grid input,
.form-grid select {
    padding: 9px;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.button {
    display: inline-block;
    padding: 9px 14px;
    text-decoration: none;
}

.secondary {
    margin-left: 8px;
}

/* -------------------------------------------------------------
   Approval Hub
   ------------------------------------------------------------- */
.approvals-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
}

.filter-mode {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 7px 11px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8fafc;
}

.filter-mode-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-right: 2px;
}

.filter-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.filter-option input {
    margin: 0;
}

.date-range-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.filter-disabled {
    opacity: .55;
}

.approvals-filter input:disabled {
    cursor: not-allowed;
}

.action-approve,
.action-reject,
.action-edit {
    width: 82px;
    min-width: 82px;
    height: 36px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    margin-right: 4px;
    cursor: pointer;
    box-sizing: border-box;
    font: inherit;
}

.action-approve {
    background: #198754;
    color: #fff;
}

.action-reject {
    background: #dc3545;
    color: #fff;
}

.action-edit {
    background: #0d6efd;
    color: #fff;
}

.action-approve:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.attendance-absent-row { background: #fff7ed; }
.attendance-weekend-row { background: #f8fafc; }
.attendance-holiday-row { background: #fefce8; }
.attendance-leave-row { background: #eff6ff; }
.attendance-rejected-row { background: #fff1f2; }
.attendance-approved-row { background: #f0fdf4; }

.attendance-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    vertical-align: middle;
}

.status-pending { background: #b45309; }
.status-approved { background: #198754; }
.status-rejected { background: #dc3545; }
.status-absent { background: #ea580c; }
.status-weekend { background: #64748b; }
.status-holiday { background: #ca8a04; }
.status-leave { background: #2563eb; }

.attendance-review-badge { background: #b45309; }
.attendance-gap-badge { background: #d97706; }
.attendance-ok-badge { background: #198754; }

.day-detail,
.tracking-detail {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

.approvals-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
}

    .approvals-filter .filter-mode {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        min-height: 0;
    }

    .approvals-filter .filter-mode-label {
        display: block;
        height: 20px;
        font-size: 13px;
        font-weight: 600;
        color: #334155;
    }

    .approvals-filter .filter-mode-options {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 42px;
        padding: 7px 11px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        background: #f8fafc;
    }

    .approvals-filter .filter-option {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin: 0;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

        .approvals-filter .filter-option input {
            margin: 0;
        }




/* Exception Logs sidebar icon: inline Font Awesome-style SVG. */
.nav-item .exception-logs-icon { width: 1.15rem; height: 1.15rem; flex: 0 0 1.15rem; fill: currentColor; display: inline-block; vertical-align: middle; }


/* OneDrive Library menu icons use SVG masks so they inherit normal/hover/active menu colors. */
.svg-menu-icon {
    display: inline-block;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.library-menu-icon {
    width: 1.15rem;
    height: 1.15rem;
    -webkit-mask-image: url('/images/menu-icons/library.svg');
    mask-image: url('/images/menu-icons/library.svg');
}

.onedrive-settings-menu-icon {
    width: 1rem;
    height: 1rem;
    -webkit-mask-image: url('/images/menu-icons/onedrive-settings.svg');
    mask-image: url('/images/menu-icons/onedrive-settings.svg');
}
