/* Custom Application Styles for Spider Payroll */

/* Force Light Theme CSS Variables & Override Dark Mode */
:root,
html,
body,
[data-coreui-theme="dark"],
[data-coreui-theme="light"],
[data-coreui-theme="auto"] {
    --cui-primary: #059669 !important;
    --cui-primary-rgb: 5, 150, 105 !important;
    --cui-primary-hover-bg: #047857 !important;
    --cui-body-bg: #F8F9FA !important;
    --cui-card-bg: #ffffff !important;
    --cui-table-bg: #ffffff !important;
    --cui-table-color: #1f2937 !important;
    --cui-table-hover-bg: #f8fafc !important;
    --cui-table-hover-color: #1f2937 !important;
    --cui-table-active-bg: #ffffff !important;
    --cui-table-striped-bg: #ffffff !important;
    --cui-body-color: #1f2937 !important;
}

/* Layout & Page Background */
body,
.wrapper,
.body {
    background-color: #f1f5f9 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #0f172a !important;
}

/* Remove focus outline on borderless select controls */
.form-select.border-0:focus,
.form-select.border-0:active {
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Simple Plain White Sidebar with Blue Top Brand Header */
#sidebar {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

#sidebar .sidebar-header {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #111827 !important;
    background: #111827 !important;
    border-bottom: none !important;
    border-right: 1px solid #111827 !important;
    width: calc(100% + 1px) !important;
    margin-right: -1px !important;
    position: relative;
    z-index: 1050;
}

#sidebar .sidebar-brand,
#sidebar .sidebar-brand a {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.2px;
}

#sidebar .sidebar-brand svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

#sidebar .sidebar-nav {
    padding: 8px !important;
}

#sidebar .nav-item {
    margin-bottom: 2px;
}

#sidebar .nav-link {
    color: #374151 !important;
    border-radius: 6px !important;
    padding: 9px 16px !important;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#sidebar .nav-link .nav-icon,
#sidebar .nav-link i.bi {
    color: #6b7280 !important;
    font-size: 1.15rem;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: color 0.15s ease, transform 0.15s ease;
}

#sidebar .nav-link:hover {
    color: #111827 !important;
    background-color: #f3f4f6 !important;
}

#sidebar .nav-link:hover .nav-icon,
#sidebar .nav-link:hover i.bi {
    color: #111827 !important;
}

#sidebar .nav-link.active {
    color: #047857 !important;
    background-color: #dcfce7 !important;
    font-weight: 700 !important;
    border-left: 4px solid #059669 !important;
}

#sidebar .nav-link.active .nav-icon,
#sidebar .nav-link.active i.bi {
    color: #047857 !important;
    font-weight: 700 !important;
}

/* Master Dropdown Toggle & Items */
#sidebar .nav-group-toggle::after {
    display: none !important;
    content: none !important;
}

#sidebar .nav-group-toggle {
    position: relative !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding-right: 36px !important;
}

#sidebar .nav-chevron {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    font-size: 0.75rem !important;
    color: #1e293b !important;
    opacity: 0.8 !important;
    transform: translateY(-50%) !important;
    transition: transform 0.2s ease-in-out !important;
    transform-origin: center center !important;
    margin: 0 !important;
    pointer-events: none !important;
}

#sidebar .nav-group.show .nav-chevron {
    transform: translateY(-50%) rotate(180deg) !important;
    color: #047857 !important;
    opacity: 1 !important;
}

#sidebar .nav-group.show .nav-group-toggle {
    color: #1e293b !important;
    background-color: transparent !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
}

/* Submenu Tree Items - Clean Indentation Under Parent Text */
#sidebar .nav-group-items {
    padding: 0 !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    margin-left: 36px !important;
    background-color: transparent !important;
}

#sidebar .nav-group-items .nav-item {
    margin-bottom: 2px;
}

#sidebar .nav-group-items .nav-link {
    padding: 8px 12px !important;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569 !important;
    border-radius: 6px !important;
}

#sidebar .nav-group-items .nav-link .nav-icon,
#sidebar .nav-group-items .nav-link i.bi {
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #64748b !important;
}

#sidebar .nav-group-items .nav-link:hover {
    color: #0f172a !important;
    background-color: #f1f5f9 !important;
}

#sidebar .nav-group-items .nav-link:hover i.bi {
    color: #0f172a !important;
}

#sidebar .nav-group-items .nav-link.active {
    color: #047857 !important;
    background-color: #dcfce7 !important;
    font-weight: 700 !important;
    border-left: 3px solid #059669 !important;
}

#sidebar .nav-group-items .nav-link.active i.bi {
    color: #047857 !important;
    font-weight: 700 !important;
}

#sidebar .nav-title {
    color: #9ca3af !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 12px 6px 12px !important;
}

#sidebar .sidebar-footer {
    border-top: 1px solid #e5e7eb !important;
    background-color: #ffffff !important;
}



/* Header - Horizontal Dark Bar */
header.header {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #111827 !important;
    background: #111827 !important;
    border-bottom: none !important;
    border-left: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

header.header .container-fluid {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

header.header .header-toggler,
header.header .header-toggler svg,
header.header .header-toggler .ci-primary {
    color: #ffffff !important;
    fill: #ffffff !important;
}

header.header .breadcrumb {
    font-size: 13px;
    margin-bottom: 0;
}

header.header .breadcrumb-item,
header.header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

header.header .breadcrumb-item a:hover {
    color: #ffffff !important;
}

header.header .breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 600;
}

header.header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Content Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

.dashboard-hero-card {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #0f766e 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

.dashboard-hero-card h2,
.dashboard-hero-card h3,
.dashboard-hero-card .hero-title {
    color: #ffffff !important;
}

.dashboard-hero-card p,
.dashboard-hero-card .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.card-header {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    padding: 14px 20px !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Form Controls */
.form-control,
.form-select {
    background-color: #ffffff;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px;
    color: #111827 !important;
    padding: 8px 12px;
}

.form-control[readonly],
.form-control:disabled,
.form-control.bg-light {
    background-color: #e9ecef !important;
    color: #111827 !important;
}

/* ================================================= */
/* COMPACT LIGHT GREEN TOASTER STYLING */
/* ================================================= */
.swal2-container.swal2-top-end > .swal2-popup.swal2-toast,
.swal2-popup.swal2-toast {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    max-width: 280px !important;
    width: auto !important;
    min-width: 200px !important;
}

.swal2-popup.swal2-toast.swal2-icon-success,
.swal2-popup.swal2-toast[data-icon="success"],
.toast.bg-success {
    background-color: #059669 !important; /* Theme green background */
    color: #ffffff !important;
}

.swal2-popup.swal2-toast .swal2-title {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
}

.swal2-popup.swal2-toast .swal2-html-container,
.swal2-popup.swal2-toast .swal2-content {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    transform: scale(0.55) !important;
    margin: -10px 2px -10px -8px !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.swal2-popup.swal2-toast .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #ffffff !important;
}

.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring {
    border: 3px solid rgba(255, 255, 255, 0.7) !important;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar {
    background-color: rgba(255, 255, 255, 0.5) !important;
    height: 3px !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #4b5563 !important;
    box-shadow: 0 0 0 2px rgba(75, 85, 99, 0.15) !important;
}

/* Global Table Styling - Force Plain White Rows */
table,
.table,
.table>tbody,
.table>tbody>tr,
.table>tbody>tr>td,
.table>tbody>tr>th {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #1f2937 !important;
}

.table thead,
.table thead>tr,
.table thead>tr>th {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    color: #111827 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

.table tbody tr:hover,
.table tbody tr:hover>td,
.table tbody tr:hover>th {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
}

.table-plain,
.table-plain>tbody,
.table-plain>tbody>tr,
.table-plain>tbody>tr>td,
.table-plain>tbody>tr>th {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #1f2937 !important;
}

.table-plain thead th {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    color: #111827 !important;
    font-size: 12px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid #cbd5e1 !important;
}

.table-plain tbody td,
.table-plain tbody th {
    padding: 12px 16px;
    color: #1f2937 !important;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9 !important;
}

.table-plain tbody tr:hover,
.table-plain tbody tr:hover>td,
.table-plain tbody tr:hover>th {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
}

/* Pagination Styling */
.pagination .page-item .page-link {
    color: #0f172a;
    border-color: #e2e8f0;
    padding: 6px 12px;
    font-size: 13px;
}

.pagination .page-item.active .page-link {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f8fafc;
}

/* Footer */
footer.footer {
    background-color: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    font-size: 13px;
    color: #6b7280;
}
.btn-primary {
    --cui-btn-color: #fff;
    --cui-btn-bg: #059669;
    --cui-btn-border-color: #059669;
    --cui-btn-hover-color: #ffffff;
    --cui-btn-hover-bg: #047857;
    --cui-btn-hover-border-color: #047857;
    --cui-btn-focus-shadow-rgb: 5, 150, 105;
    --cui-btn-active-color: #fff;
    --cui-btn-active-bg: #047857;
    --cui-btn-active-border-color: #047857;
    --cui-btn-active-shadow: inset 0 3px 5px rgba(8, 10, 12, 0.125);
    --cui-btn-disabled-color: #fff;
    --cui-btn-disabled-bg: #059669;
    --cui-btn-disabled-border-color: #059669;
    background-color: #059669 !important;
    border-color: #059669 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #047857 !important;
    border-color: #047857 !important;
}
/* =========================
   PAYROLL STEP CARDS
   ========================= */

.payroll-step-card {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    border-radius: 10px !important;
    transition: all 0.25s ease;
}

/* Hover */
.payroll-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
}


/* =========================
   STEP 1 - ACTIVE
   ========================= */

.step-active {
    background: #eff6ff !important;
    border: 1.5px solid #93c5fd !important;
    color: #1e3a8a !important;
}

.step-active:hover {
    background: #dbeafe !important;
}


/* =========================
   STEP 2 - UNLOCKED
   ========================= */

.step-unlocked {
    background: #fffbe6 !important;
    border: 1.5px solid #fde047 !important;
    color: #78350f !important;
}

.step-unlocked:hover {
    background: #fef08a !important;
}


/* =========================
   COMPLETED
   ========================= */

.step-completed {
    background: #ecfdf5 !important;
    border: 1.5px solid #6ee7b7 !important;
    color: #064e3b !important;
}

.step-completed:hover {
    background: #d1fae5 !important;
}


/* =========================
   LOCKED
   ========================= */

.step-locked {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}

.step-locked:hover {
    background: #f1f5f9 !important;
}


/* =========================
   STEP ICON
   ========================= */

.step-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    font-weight: 800;
    transition: all 0.25s ease;
}


/* Active icon */
.step-active .step-icon {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
}


/* Unlocked icon */
.step-unlocked .step-icon {
    background: #d97706 !important;
    color: #ffffff !important;
    border: none !important;
}


/* Completed icon */
.step-completed .step-icon {
    background: #059669 !important;
    color: #ffffff !important;
    border: none !important;
}


/* Locked icon */
.step-locked .step-icon {
    background: #64748b !important;
    color: #ffffff !important;
    border: none !important;
}


/* Icon hover */
.payroll-step-card:hover .step-icon {
    transform: scale(1.08);
}

/* High Contrast Modern Nav Tabs */
.nav-tabs {
    background-color: #1e293b !important;
    border: 1px solid #1e293b !important;
    border-bottom: 3px solid #047857 !important;
    padding: 8px 12px 0 12px !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    gap: 8px;
    margin-bottom: 0 !important;
}

.nav-tabs .nav-link {
    color: #cbd5e1 !important;
    font-weight: 700 !important;
    font-size: 14px;
    background-color: #334155 !important;
    border: 1px solid #475569 !important;
    border-bottom: none !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    padding: 11px 24px !important;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #ffffff !important;
    background-color: #475569 !important;
}

.nav-tabs .nav-link.active {
    background-color: #ffffff !important;
    color: #047857 !important;
    font-weight: 800 !important;
    border: 1px solid #047857 !important;
    border-bottom: 3px solid #ffffff !important;
    margin-bottom: -3px !important;
    box-shadow: 0 -4px 12px rgba(4, 120, 87, 0.15) !important;
}

.nav-tabs .nav-link.disabled {
    color: #94a3b8 !important;
    background-color: #0f172a !important;
    opacity: 0.7 !important;
    border-color: #1e293b !important;
}

/* Global Typography Heading Sizes & Contrast */
h1, .h1 { font-size: 1.85rem !important; font-weight: 700 !important; color: #0f172a !important; }
h2, .h2 { font-size: 1.6rem !important; font-weight: 700 !important; color: #0f172a !important; }
h3, .h3 { font-size: 1.4rem !important; font-weight: 700 !important; color: #0f172a !important; }
h4, .h4 { font-size: 1.25rem !important; font-weight: 700 !important; color: #0f172a !important; }
h5, .h5 { font-size: 1.15rem !important; font-weight: 700 !important; color: #0f172a !important; }
h6, .h6 { font-size: 1.05rem !important; font-weight: 700 !important; color: #0f172a !important; }

/* Global Table Header Contrast */
.table thead th,
.table thead td {
    background-color: #1e293b !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 12px 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #0f172a !important;
}


/* =========================
   STATUS BADGES
   ========================= */

.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 50px;
}


/* Active */
.status-primary {
    background: #dce7ff !important;
    color: #5367d8 !important;
    border: 1px solid #c8d8ff;
}


/* Completed */
.status-success {
    background: #ccefdc !important;
    color: #14845e !important;
    border: 1px solid #b3e5ca;
}


/* Unlocked */
.status-warning {
    background: #ffedbe !important;
    color: #a86f00 !important;
    border: 1px solid #ffdf91;
}


/* Locked / Danger */
.status-danger {
    background: #ffe5e5 !important;
    color: #d34b4b !important;
    border: 1px solid #ffd0d0;
}


/* =========================
   CARD TITLE
   ========================= */

.payroll-step-card .fw-bold {
    color: #1f2937 !important;
}


/* Mobile */
@media (max-width: 767px) {

    .payroll-step-card {
        min-height: 85px;
    }

    .step-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
}

/* Remove dropdown arrow icon from attendance leave selects */
select.input-leave,
select.input-leave-nd {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

select.input-leave::-ms-expand,
select.input-leave-nd::-ms-expand {
    display: none !important;
}


.salary-locked-card {
    padding: 55px 25px;
    border: 1px solid #ffd9d9;
    border-radius: 18px;
    background: #fff7f7;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .04);
}

.salary-lock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;

    background: #ffe7e7;
    border: 1px solid #ffd0d0;
}

.salary-locked-card h4 {
    color: #343a40;
}

.salary-locked-card p {
    color: #788394;
}


/* ================================================= */
/* SALARY SHEET */
/* ================================================= */

.salary-sheet-card {
    background: #ffffff;

    border: 1px solid #e3e8ef;
    border-radius: 18px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .045);

    overflow: hidden;
}


/* Header */

.salary-sheet-header {
    padding: 20px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid #edf0f4;
}


.salary-sheet-title {
    display: flex;
    align-items: center;
    gap: 13px;
}


.salary-sheet-icon {
    width: 43px;
    height: 43px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef2ff;
    color: #5967d9;

    font-size: 19px;
    font-weight: 700;
}


.salary-sheet-header h5 {
    color: #202938;
    font-weight: 700;
}


.salary-formula {
    color: #8a94a3;
    font-size: 12px;
}

.salary-formula strong {
    color: #647084;
}


/* ================================================= */
/* ACTION BUTTONS */
/* ================================================= */

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


.salary-btn {
    border-radius: 10px !important;

    padding: 9px 14px !important;

    font-size: 12px !important;
    font-weight: 600 !important;

    transition: all .2s ease;
}


/* Draft */

.salary-btn-draft {
    background: #fff8e6 !important;
    border: 1px solid #f4dda3 !important;
    color: #a66e00 !important;
}

.salary-btn-draft:hover {
    background: #ffefc5 !important;
    transform: translateY(-1px);
}


/* Approve */

.salary-btn-approve {
    background: #27b77a !important;
    border: 1px solid #27b77a !important;

    color: #ffffff !important;
}

.salary-btn-approve:hover {
    background: #20a86e !important;
    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow: 0 5px 12px rgba(39, 183, 122, .20);
}


/* ================================================= */
/* INFO BAR */
/* ================================================= */

.salary-info-bar {
    margin: 14px 18px;

    padding: 10px 13px;

    border-radius: 10px;

    background: #f7f9fc;
    border: 1px solid #edf0f4;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: #778294;
    font-size: 11px;
}


.info-dot {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: #28b77b;

    margin-right: 6px;
}


.formula-chip {
    padding: 5px 9px;

    border-radius: 7px;

    background: #eef2ff;
    color: #5967d9;

    font-weight: 600;
}


/* ================================================= */
/* TABLE */
/* ================================================= */

.salary-table-wrapper {
    overflow-x: auto;
}


.salary-table {
    min-width: 1050px;
}


.salary-table thead th {
    background: #f8fafc !important;

    color: #6e798a;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .35px;

    padding: 13px 12px;

    border-bottom: 1px solid #e5e9ef;
    white-space: nowrap;
}


.salary-table tbody td {
    padding: 13px 12px;

    border-bottom: 1px solid #f0f2f5;

    color: #3f4856;
}


.salary-table tbody tr {
    transition: all .18s ease;
}


.salary-table tbody tr:hover {
    background: #fafbff;
}


.salary-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Number */

.salary-row-number {
    width: 27px;
    height: 27px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f1f3f7;
    color: #778294;

    font-size: 11px;
    font-weight: 600;
}


/* ================================================= */
/* EMPLOYEE */
/* ================================================= */

.employee-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}


.employee-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef2ff;
    color: #5967d9;

    font-size: 12px;
    font-weight: 700;
}


.employee-name {
    color: #252c38;
    font-size: 13px;
    font-weight: 700;
}


.employee-designation {
    color: #98a1ae;
    font-size: 10px;
    margin-top: 2px;
}


/* ================================================= */
/* CONTRACTOR */
/* ================================================= */

.contractor-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    background: #f1f4f8;
    border: 1px solid #d1d5db;
    color: #212529 !important;
    font-weight: 500;
    font-size: 12px;
}


/* ================================================= */
/* SALARY */
/* ================================================= */

.base-salary {
    color: #212529;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}


.net-days-pill {
    min-width: 45px;
    display: inline-flex;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef2ff;
    color: #5967d9;
    font-size: 12px;
    font-weight: 600;
}


/* ================================================= */
/* SALARY INPUT */
/* ================================================= */

.salary-input-wrapper {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1faf6;
    border: 1px solid #d8f0e5;
    color: #159568;
    font-weight: 600;
    font-size: 13px;
}


.salary-amount-input {
    width: 90px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #159568 !important;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
}


.salary-amount-input:focus {
    box-shadow: none !important;
}


/* ================================================= */
/* REMARKS */
/* ================================================= */

.remarks-input {
    width: 145px;

    padding: 7px 9px;

    border-radius: 8px;

    border: 1px solid #e1e6ec;

    background: #ffffff;

    color: #4b5563;

    font-size: 11px;

    outline: none;

    transition: all .2s ease;
}


.remarks-input:focus {
    border-color: #aebaff;

    box-shadow: 0 0 0 3px rgba(99, 102, 241, .08);
}


.remarks-input::placeholder {
    color: #b0b7c2;
}


/* ================================================= */
/* RESPONSIVE */
/* ================================================= */

@media (max-width: 767px) {

    .salary-sheet-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .salary-actions {
        width: 100%;
    }

    .salary-btn {
        flex: 1;
    }

    .salary-info-bar {
        flex-direction: column;
        align-items: flex-start;
    }

}



/* =========================
   PAYROLL DASHBOARD CARDS
========================= */

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 145px;

    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 10px !important;

    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover */
.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10) !important;
}

/* Top line */
.dashboard-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}


/* =========================
   1. ATTENDANCE - GREEN
========================= */

.attendance-card {
    background: #ecfdf3 !important;
    border-color: #86efac !important;
}

.attendance-card::before {
    background: #22c55e;
}

.attendance-card:hover {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
}


/* =========================
   2. SALARY - BLUE
========================= */

.salary-card {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
}

.salary-card::before {
    background: #3b82f6;
}

.salary-card:hover {
    background: #dbeafe !important;
    border-color: #3b82f6 !important;
}


/* =========================
   3. IN PROGRESS - YELLOW
========================= */

.progress-card {
    background: #fffbeb !important;
    border-color: #fcd34d !important;
}

.progress-card::before {
    background: #f59e0b;
}

.progress-card:hover {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
}


/* =========================
   4. PAYSLIP - PURPLE
========================= */

.payslip-card {
    background: #faf5ff !important;
    border-color: #d8b4fe !important;
}

.payslip-card::before {
    background: #8b5cf6;
}

.payslip-card:hover {
    background: #f3e8ff !important;
    border-color: #8b5cf6 !important;
}


/* Number animation */
.dashboard-stat-card .fs-3 {
    transition: transform 0.3s ease;
}

.dashboard-stat-card:hover .fs-3 {
    transform: scale(1.06);
}


/* Icon animation */
.dashboard-stat-card .rounded-circle {
    transition: transform 0.3s ease;
}

.dashboard-stat-card:hover .rounded-circle {
    transform: scale(1.1);
}

/* Disable Number Input Spinners Globally */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type=number] {
    -moz-appearance: textfield !important;
}

/* Clean Vertical Timeline Stepper */
.vertical-stepper-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding: 8px 0;
}

.stepper-step-item {
    position: relative;
    padding-bottom: 28px;
}

.stepper-step-item:last-child {
    padding-bottom: 0;
}

/* Timeline Vertical Connecting Line */
.stepper-step-line {
    position: absolute;
    top: 22px;
    left: 25px;
    width: 2px;
    height: 100%;
    background-color: #cbd5e1;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.stepper-step-item:last-child .stepper-step-line {
    display: none;
}

.stepper-step-item.completed .stepper-step-line {
    background-color: #059669;
}

/* Step Button Reset */
.stepper-step-button {
    background: transparent !important;
    border: none !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 2 !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease !important;
}

.stepper-step-button:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.stepper-step-button.disabled {
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

/* Circle Badges */
.stepper-step-circle {
    position: relative !important;
    z-index: 3 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    color: #64748b !important;
    border: 2px solid #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

/* Active Step Circle */
.stepper-step-item.active-step .stepper-step-circle {
    background-color: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18) !important;
}

/* Completed Step Circle */
.stepper-step-item.completed .stepper-step-circle {
    background-color: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
}

/* Step Content (Title & Subtitle) */
.stepper-step-content {
    padding-top: 2px;
}

.stepper-step-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    transition: color 0.2s ease !important;
    line-height: 1.3 !important;
}

.stepper-step-item.active-step .stepper-step-title {
    color: #047857 !important;
    font-weight: 700 !important;
}

.stepper-step-item.completed .stepper-step-title {
    color: #1e293b !important;
}

.stepper-step-sub {
    font-size: 11px !important;
    color: #94a3b8 !important;
    margin-top: 2px !important;
}

/* Modern Single Container Input Control */
.form-control-modern {
    height: 48px !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    transition: all 0.2s ease-in-out !important;
}

.form-control-modern:focus {
    background-color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15) !important;
    outline: none !important;
}

/* Global neutralization of green valid checkmark icons */
.form-control.is-valid,
.form-select.is-valid,
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    background-image: none !important;
    border-color: #cbd5e1 !important;
}