@font-face {
    font-family: Changa;
    src: url('fonts/Changa-Regular.ttf') format('truetype');
    font-style: regular;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f3f4f6;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.75rem;
}

body {
    text-align: right;
    direction: rtl;
    font-family: 'Changa', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-family: 'Changa', sans-serif;
    color: #111827;
}

/* Modern Card */
.card-modern {
    background: #ffffff;
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card-modern:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-modern .card-header {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

/* Stat Cards */
.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    border-right: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.primary {
    border-right-color: var(--primary-color);
}

.stat-card.success {
    border-right-color: var(--success-color);
}

.stat-card.warning {
    border-right-color: var(--warning-color);
}

.stat-card.danger {
    border-right-color: var(--danger-color);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 1rem;
}

.bg-light-primary {
    background-color: #e0e7ff;
    color: var(--primary-color);
}

.bg-light-success {
    background-color: #d1fae5;
    color: var(--success-color);
}

.bg-light-warning {
    background-color: #fef3c7;
    color: var(--warning-color);
}

.bg-light-danger {
    background-color: #fee2e2;
    color: var(--danger-color);
}

.stat-content h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-content span {
    color: #64748b;
    font-size: 0.9rem;
}

/* Modern Table */
.table-modern-wrapper {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
}

.table-modern thead th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
}

.table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
}

.table-modern tbody tr:hover {
    background-color: #f8fafc;
}

.table-actions .btn {
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Buttons */
.btn-modern-primary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    transition: all 0.2s;
}

.btn-modern-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
    color: white;
}

/* Badges */
.badge-modern {
    padding: 0.35em 0.8em;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-soft-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-soft-warning {
    background-color: #fef9c3;
    color: #854d0e;
}

.badge-soft-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-soft-secondary {
    background-color: #f1f5f9;
    color: #475569;
}

/* Page Header */
.page-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.page-title-modern {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.breadcrumb-modern {
    margin: 0;
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb-modern a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb-modern a:hover {
    color: var(--primary-color);
}

.breadcrumb-modern .active {
    color: #94a3b8;
}

/* Form Controls */
.form-control-modern {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Overrides */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

.toast-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.horizontal-nav .sidebar-nav #sidebarnav>li>ul {
    right: 0px;
}

@media (min-width: 767px) {
    .horizontal-nav .sidebar-nav #sidebarnav>li>a {
        border-right: 0px;
    }

    .horizontal-nav .navbar-header {
        padding-right: 15px;
    }
}

.sidebar-nav>ul>li>a {
    border-right: 0px;
}

.dropdown-menu {
    text-align: right;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.dropdown-menu-end[data-bs-popper] {
    right: auto;
    left: 0;
}

.sidebar-nav ul li a {
    padding: 10px 15px 10px 35px;
}

.sidebar-nav>ul>li>a .badge {
    float: left;
}

.sidebar-nav .has-arrow::after {
    right: auto;
    left: 20px;
}

.navbar-expand-md .navbar-nav {
    padding: 0;
}

.ms-auto {
    margin-right: unset !important;
}

.app-search {
    margin-right: 13px;
}

.page-titles .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    float: right !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    padding-right: unset !important;
    padding-left: 0.5rem !important;
    float: right !important;
    font-family: 'themify';
    content: "\e64a" !important;
}

@media (max-width: 767px) {

    .mini-sidebar .left-sidebar,
    .mini-sidebar .sidebar-footer {
        right: -220px;
        left: auto;
    }
}

@media (max-width: 767px) {

    .mini-sidebar.show-sidebar .left-sidebar,
    .mini-sidebar.show-sidebar .sidebar-footer {
        left: auto;
        right: 0;
    }
}

.left-aside {
    position: absolute;
    border-left: 1px solid #e9ecef;
    padding-left: 20px;
    width: 250px;
    height: 100%;
}

.d-flex .justify-content-start {
    justify-content: flex-start !important;
}

.d-flex .justify-content-end {
    justify-content: flex-end !important;
}

table.dataTable thead th,
table.dataTable thead td,
table.dataTable tfoot th,
table.dataTable tfoot td {
    text-align: right;
}

.left-aside {
    position: relative;
    width: 100%;
}

/* Select2 Fixes - Global Override */
.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single,
.select2-container .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #dee2e6 !important;
    /* Bootstrap border color */
    border-radius: 0.375rem !important;
    /* Bootstrap radius */
    min-height: 38px !important;
    background-color: #fff !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 0.75rem !important;
    padding-right: 2.25rem !important;
    /* Space for arrow in RTL */
    color: #212529 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    position: absolute !important;
    left: 1px !important;
    right: auto !important;
    width: 20px !important;
}

.select2-container--focus .select2-selection--single,
.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    outline: 0 !important;
}

/* Force dropdown border */
.select2-dropdown {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
}

/* Enhanced Select2 Highlight */
.select2-container .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.form-select {
    background-position: left 0.75rem center;
}

.topbar .top-navbar .navbar-header {
    padding-right: 10px;
}

/* =====================================================
   SHARED COMPONENT: Action Page Header
   Used by: Stop, Terminate, Transfer, Reactivate, ChangeJobTitle
   ===================================================== */
.action-page-header {
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.action-page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

/* Color variants — set via inline style on element or modifier class */
.action-page-header.danger {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.action-page-header.danger-dark {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
}

.action-page-header.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
}

.action-page-header.success {
    background: linear-gradient(135deg, #059669 0%, #065f46 100%);
}

.action-page-header.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
}

.action-page-header.indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
}

.action-page-header .action-header-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}

/* =====================================================
   SHARED COMPONENT: Employee Info Card
   Used by: Stop, Terminate, Transfer, Reactivate, ChangeJobTitle
   ===================================================== */
.employee-info-card {
    background: white;
    border-radius: 0.875rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* Color tint — override border via modifier or inline */
.employee-info-card.danger {
    border: 1px solid #fee2e2;
}

.employee-info-card.primary {
    border: 1px solid #dbeafe;
}

.employee-info-card.success {
    border: 1px solid #d1fae5;
}

.employee-info-card.purple {
    border: 1px solid #ede9fe;
}

.employee-info-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f9fafb;
}

.employee-info-header i {
    font-size: 1rem;
}

.employee-info-header span {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.emp-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.emp-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e0e7ff;
    flex-shrink: 0;
}

.emp-avatar-placeholder i {
    color: white;
    font-size: 1.6rem;
}

.emp-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.1rem 0;
}

.emp-detail-item {
    padding: 0.65rem 1.5rem;
    border-bottom: 1px solid #f8fafc;
}

.emp-detail-item:last-child {
    border-bottom: none;
}

.emp-detail-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.emp-detail-value {
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 600;
}

/* =====================================================
   SHARED COMPONENT: Form Card
   Used by: Stop, Terminate, Transfer, Reactivate, ChangeJobTitle
   ===================================================== */
.form-card {
    background: white;
    border-radius: 0.875rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.form-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-card-header span {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-card-body {
    padding: 1.5rem;
}

/* =====================================================
   SHARED COMPONENT: Inline Banners (info / warning / danger)
   Used across action pages
   ===================================================== */
.page-banner {
    border-radius: 0.6rem;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.page-banner i {
    margin-top: 1px;
    flex-shrink: 0;
}

.page-banner.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.page-banner.info i {
    color: #2563eb;
}

.page-banner.warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #92400e;
}

.page-banner.warning i {
    color: #f59e0b;
}

.page-banner.danger {
    background: #fff1f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.page-banner.danger i {
    color: #b91c1c;
}

.page-banner.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.page-banner.success i {
    color: #059669;
}

.page-banner.purple {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #4c1d95;
}

.page-banner.purple i {
    color: #7c3aed;
}

/* =====================================================
   SHARED COMPONENT: Options Panel (switches)
   Used by: Terminate
   ===================================================== */
.options-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.options-panel .form-check-label small {
    font-size: 0.75rem;
}

/* =====================================================
   SHARED COMPONENT: Stat Card Modern (Home dashboard)
   Used by: Home/Index
   ===================================================== */
.stat-card-modern {
    border: none;
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
    position: relative;
}

.stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08) !important;
}

.stat-card-modern .stat-stripe {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 14px 14px 0;
}

.stat-card-modern .stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card-modern .stat-label {
    font-size: .75rem;
    color: #6b7280;
    margin-top: 4px;
}

.stat-card-modern .stat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-modern .stat-icon-wrap i {
    font-size: 1.1rem;
}

/* =====================================================
   SHARED COMPONENT: Profile Hero (Employee Details)
   ===================================================== */
.profile-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.profile-avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    gap: 2px;
    color: white;
    font-size: 0.65rem;
    text-align: center;
    padding: 4px;
}

.avatar-overlay i {
    font-size: 1.1rem;
}

/* =====================================================
   SHARED COMPONENT: Quick Stats (Employee Details)
   ===================================================== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-stat-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.quick-stat-item:hover {
    transform: translateY(-2px);
}

.quick-stat-item .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.quick-stat-item .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* =====================================================
   SHARED COMPONENT: Actions Grid (Employee Details sidebar)
   ===================================================== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* =====================================================
   SHARED COMPONENT: Nav Pills Modern (Employee Details tabs)
   ===================================================== */
.nav-pills-modern .nav-link {
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

.nav-pills-modern .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.nav-pills-modern .nav-link:not(.active):hover {
    background: #f1f5f9;
    color: #334155;
}

/* =====================================================
   SHARED COMPONENT: Info Grid / Info Item (Employee Details)
   ===================================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .info-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.info-item .info-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

/* =====================================================
   SHARED COMPONENT: Status Dot (Employee Details)
   ===================================================== */
.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid white;
    position: absolute;
    bottom: 4px;
    left: 4px;
}

/* =====================================================
   SHARED COMPONENT: Leave Banner (Employee Details)
   ===================================================== */
.leave-banner {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #c7d2fe;
}

.leave-banner i {
    font-size: 1.5rem;
    color: #6366f1;
}

/* =====================================================
   SHARED COMPONENT: Timeline (Employee Details)
   ===================================================== */
.timeline-item {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 1.5rem;
    border-right: 2px solid #e2e8f0;
}

.timeline-item:last-child {
    border-right: none;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -5px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* =====================================================
   SHARED COMPONENT: Payroll Run Details Header
   Used by: PayrollRuns/Details
   ===================================================== */
.details-header {
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    color: #fff;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.details-header::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.details-header::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 10%;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.details-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #fff;
}

.details-header .breadcrumb-modern a,
.details-header .breadcrumb-modern,
.details-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* =====================================================
   SHARED COMPONENT: Status Badges (PayrollRuns)
   ===================================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35em 0.9em;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-badge.pending {
    background: #fef9c3;
    color: #854d0e;
}

.status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.draft {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge.posted {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* =====================================================
   SHARED COMPONENT: Info Sidebar (PayrollRuns/Details)
   ===================================================== */
.info-sidebar {
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.info-sidebar-header {
    background: linear-gradient(135deg, #4f46e5, #6d28d9);
    padding: 1.25rem 1.5rem;
    color: #fff;
}

.info-sidebar-header h5 {
    margin: 0;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.info-sidebar-body {
    padding: 1.25rem 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .info-label {
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.info-row .info-label i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.info-row .info-value {
    color: #1e293b;
    font-weight: 600;
    text-align: left;
}

.count-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.95rem;
}

/* =====================================================
   SHARED COMPONENT: Financial Cards Grid (PayrollRuns/Details)
   ===================================================== */
.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fin-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
    border-right: 4px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.fin-card.primary {
    border-right-color: #4f46e5;
}

.fin-card.success {
    border-right-color: #10b981;
}

.fin-card.warning {
    border-right-color: #f59e0b;
}

.fin-card.danger {
    border-right-color: #ef4444;
}

.fin-card.info {
    border-right-color: #3b82f6;
}

.fin-card.purple {
    border-right-color: #7c3aed;
}

.fin-card.rose {
    border-right-color: #f43f5e;
}

.fin-card.slate {
    border-right-color: #64748b;
}

.fin-card.teal {
    border-right-color: #0d9488;
}

.fin-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.fin-card-icon.primary {
    background: #ede9fe;
    color: #4f46e5;
}

.fin-card-icon.success {
    background: #d1fae5;
    color: #10b981;
}

.fin-card-icon.warning {
    background: #fef3c7;
    color: #f59e0b;
}

.fin-card-icon.danger {
    background: #fee2e2;
    color: #ef4444;
}

.fin-card-icon.info {
    background: #dbeafe;
    color: #3b82f6;
}

.fin-card-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.fin-card-icon.rose {
    background: #ffe4e6;
    color: #f43f5e;
}

.fin-card-icon.slate {
    background: #f1f5f9;
    color: #64748b;
}

.fin-card-icon.teal {
    background: #ccfbf1;
    color: #0d9488;
}

.fin-card-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
}

.fin-card-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

/* =====================================================
   SHARED COMPONENT: Action Sidebar Section (PayrollRuns/Details)
   ===================================================== */
.action-section {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.action-section .btn {
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

/* =====================================================
   SHARED COMPONENT: Alert Sheet
   Used by: PayrollRuns/Details
   ===================================================== */
.alert-sheet {
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border: none;
}

.alert-sheet.warning {
    background: #fef9c3;
    color: #854d0e;
}

.alert-sheet.orange {
    background: #ffedd5;
    color: #7c2d12;
}

/* =====================================================
   SHARED COMPONENT: Progress Card (PayrollRuns/Details)
   ===================================================== */
.progress-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
    margin-top: 1rem;
}

.progress-card .progress-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.progress-bar-track {
    height: 12px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-track #progressBar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 600;
}

/* =====================================================
   SHARED COMPONENT: Section Header (PayrollRuns/Details)
   ===================================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-header .section-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ede9fe;
    color: #4f46e5;
    font-size: 1rem;
}

.section-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Salary preview box (ChangeJobTitle) */
.salary-preview-box {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: 0.6rem;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}

/* Transfer arrow */
.transfer-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .financial-grid {
        grid-template-columns: 1fr 1fr;
    }

    .details-header h3 {
        font-size: 1.25rem;
    }

    .quick-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .financial-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   COMPONENT: Tax Settings Page (TaxSettings/Index)
   ===================================================== */
.settings-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
}

.settings-section {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.settings-section:hover {
    border-color: #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.settings-section.active {
    background-color: #fcfcfc;
    border-color: #cce5ff;
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    margin-left: 1rem;
}

.icon-box.primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.icon-box.success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.icon-box.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.icon-box.danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    margin-right: 0;
    cursor: pointer;
}

.section-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #343a40;
}

.section-desc {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.form-check-input {
    float: none;
}

/* =====================================================
   COMPONENT: Payslip Page (ps-* classes)
   Payslips/Index
   ===================================================== */
.ps-search-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ps-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
}

.ps-search-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ps-search-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ps-search-form {
    padding: 18px 24px 24px;
}

.ps-search-body {
    margin: 0;
    align-items: end;
}

.ps-field-group {
    margin: 0;
}

.ps-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
}

.ps-field-input {
    border-radius: 10px;
    min-height: 44px;
}

.ps-field-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.ps-field-btn {
    display: flex;
    align-items: end;
}

.ps-btn-search {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd 0%, #2563eb 100%);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ps-btn-search:hover {
    color: #fff;
}

.ps-detail-header-salary-item {
    background: linear-gradient(135deg, #0d6efd 0%, #3b82f6 100%);
    color: #fff;
}

.ps-detail-header-salary-item-deduction {
    background: linear-gradient(135deg, #dc3545 0%, #ef4444 100%);
    color: #fff;
}

.ps-badge-salary-item,
.ps-badge-salary-item-deduction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

.ps-badge-salary-item {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.ps-badge-salary-item-deduction {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.ps-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    margin-bottom: 30px;
}

.ps-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #3b82f6;
}

.ps-empty-state h5 {
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.ps-empty-state p {
    color: #94a3b8;
    font-size: 0.92rem;
    margin: 0;
}

.ps-empty-warning .ps-empty-icon {
    background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
    color: #d97706;
}

.ps-payslip {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    animation: ps-slideUp 0.5s ease-out;
}

@keyframes ps-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ps-doc-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 32px 36px 28px;
    position: relative;
    overflow: hidden;
}

.ps-doc-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.ps-doc-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6);
}

.ps-doc-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.1em;
}

.ps-doc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 20px;
}

.ps-doc-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ps-doc-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.ps-doc-title {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ps-doc-subtitle {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ps-doc-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ps-doc-month,
.ps-doc-year {
    text-align: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-meta-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2px;
    letter-spacing: 0.05em;
}

.ps-meta-value {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.ps-doc-status {
    margin-right: 4px;
}

.ps-badge-approved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
    letter-spacing: 0.01em;
}

.ps-emp-strip {
    display: flex;
    align-items: center;
    padding: 22px 36px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #e2e8f0;
    gap: 20px;
    flex-wrap: wrap;
}

.ps-emp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.ps-emp-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 16px;
    flex-shrink: 0;
}

.ps-emp-avatar-alt {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
}

.ps-emp-avatar-alt2 {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    color: #9333ea;
}

.ps-emp-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.ps-emp-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.ps-emp-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, #cbd5e1, transparent);
    flex-shrink: 0;
}

.ps-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ps-col {
    border-left: 1px solid #f1f5f9;
}

.ps-col:first-child {
    border-left: none;
}

.ps-col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    border-bottom: 1px solid #f1f5f9;
}

.ps-col-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ps-col-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ps-col-earnings .ps-col-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
}

.ps-col-earnings h5 {
    color: #059669;
}

.ps-col-deductions .ps-col-icon {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
}

.ps-col-deductions h5 {
    color: #dc2626;
}

.ps-col-body {
    padding: 8px 28px 24px;
}

.ps-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ps-table tbody tr {
    transition: background 0.2s ease;
}

.ps-table tbody tr:hover {
    background: #f8fafc;
}

.ps-table td,
.ps-table th {
    padding: 12px 8px;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ps-table thead th {
    font-weight: 600;
    color: #64748b;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #f8fafc;
    padding: 10px 8px;
}

.ps-amount {
    text-align: left;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.02em;
    direction: ltr;
    white-space: nowrap;
}

.ps-amount-highlight {
    color: #059669;
    font-weight: 700;
    font-size: 1rem;
}

.ps-amount-danger {
    color: #dc2626;
    font-weight: 700;
}

.ps-total-row td {
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
    padding-top: 16px;
    padding-bottom: 4px;
    font-weight: 800;
    font-size: 1rem;
}

.ps-total-earnings td {
    color: #059669;
}

.ps-total-earnings .ps-amount {
    color: #059669;
    font-size: 1.15rem;
    font-weight: 800;
}

.ps-total-deductions td {
    color: #dc2626;
}

.ps-total-deductions .ps-amount {
    color: #dc2626;
    font-size: 1.15rem;
    font-weight: 800;
}

.ps-detail-section {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.ps-detail-header {
    padding: 10px 14px;
    background: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.ps-detail-header i {
    margin-left: 6px;
    font-size: 0.82rem;
}

.ps-detail-header-deduction {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
    border-bottom-color: #fecaca;
}

.ps-detail-header-loan {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-bottom-color: #bfdbfe;
}

.ps-detail-header-settlement {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    color: #7c3aed;
    border-bottom-color: #e9d5ff;
}

.ps-table-detail td,
.ps-table-detail th {
    padding: 10px 14px;
    font-size: 0.85rem;
}

.ps-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.ps-badge i {
    font-size: 0.7rem;
}

.ps-badge-loan {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.ps-badge-deduction {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fde68a;
}

.ps-net-salary {
    margin: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.ps-net-salary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6, #3b82f6);
    background-size: 200% 100%;
    animation: ps-gradient 4s linear infinite;
}

@keyframes ps-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ps-net-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 16px;
}

.ps-net-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.ps-net-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    font-weight: 500;
}

.ps-net-label i {
    font-size: 1.4rem;
    color: #60a5fa;
}

.ps-net-amount-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ps-net-amount {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.03em;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    direction: ltr;
}

.ps-net-currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.ps-doc-footer {
    display: flex;
    justify-content: space-between;
    padding: 14px 36px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ps-footer-item {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.ps-footer-item i {
    margin-left: 6px;
    font-size: 0.72rem;
}

@media (max-width: 992px) {
    .ps-columns {
        grid-template-columns: 1fr;
    }

    .ps-col {
        border-left: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .ps-col:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .ps-doc-header {
        padding: 24px 20px 20px;
    }

    .ps-doc-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .ps-doc-meta {
        flex-wrap: wrap;
    }

    .ps-emp-strip {
        padding: 18px 20px;
    }

    .ps-emp-divider {
        display: none;
    }

    .ps-col-body {
        padding: 8px 18px 20px;
    }

    .ps-net-content {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
    }

    .ps-net-amount {
        font-size: 1.9rem;
    }

    .ps-doc-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 12px 20px;
    }

    .ps-search-body {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .ps-search-form {
        padding: 16px;
    }
}

@media print {

    .ps-search-panel,
    .ps-empty-state,
    .page-titles {
        display: none !important;
    }

    .ps-payslip {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* =====================================================
   COMPONENT: Daily Attendance Table
   Used by: MonthlyTimeSheetSummaries/DailyAttendance, EmployeesAttendance/Index
   ===================================================== */
.daily-attendance-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
}

#daily-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: max-content;
    font-size: 0.78rem;
    direction: rtl;
}

#daily-table thead th {
    background: #1e3a5f;
    color: #fff;
    text-align: center;
    padding: 8px 4px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

#daily-table thead th.weekend-header {
    background: #c0392b;
}

#daily-table thead th.holiday-header {
    background: #8e44ad;
}

#daily-table thead th.sticky-col {
    z-index: 3;
}

#daily-table tbody tr:nth-child(even) {
    background: #f7f9fc;
}

#daily-table tbody tr:hover {
    background: #eaf1fb;
}

#daily-table td {
    padding: 4px 3px;
    text-align: right !important;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.sticky-col {
    position: sticky;
    background: #fff;
    z-index: 1;
}

.col-empno {
    right: 0;
    min-width: 90px;
    max-width: 90px;
    border-left: 1px solid #ddd;
}

.col-name {
    right: 90px;
    min-width: 160px;
    max-width: 160px;
    border-left: 1px solid #ddd;
}

#daily-table thead th.col-empno,
#daily-table thead th.col-name {
    background: #1e3a5f;
}

.col-absent {
    min-width: 60px;
    max-width: 60px;
    background-color: #fff8eb !important;
    font-weight: 700;
    color: #9c6500;
    text-align: center !important;
}

.col-ot {
    min-width: 75px;
    max-width: 75px;
    background: #eaf3fb !important;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center !important;
}

.col-ot-wknd {
    min-width: 75px;
    max-width: 75px;
    background: #fdf0ee !important;
    font-weight: 700;
    color: #c0392b;
    text-align: center !important;
}

thead th.col-absent {
    background: #e67e22 !important;
}

thead th.col-ot {
    background: #2471a3 !important;
}

thead th.col-ot-wknd {
    background: #922b21 !important;
}

.day-input {
    width: 38px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 0;
    font-size: 0.78rem;
    transition: border-color .2s, background .2s;
    background: #fff;
    color: #1e3a5f;
    font-weight: 600;
}

.day-input:focus {
    border-color: #1e3a5f;
    outline: none;
    background: #eaf1fb;
}

.day-input.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
    color: #b02a37;
}

.day-input.weekend-input {
    background: #fdf0ee;
    color: #c0392b;
    border-color: #e8a09a;
}

.day-input.holiday-input {
    background: #f5eef8;
    color: #8e44ad;
    border-color: #d2b4de;
}

.filter-card {
    border-radius: 12px;
}

@media (max-width: 576px) {
    .col-name {
        min-width: 110px;
        max-width: 110px;
    }
}

/* =====================================================
   COMPONENT: Login Page (Account/Login)
   Kept here since Login uses Layout=null.
   Note: the original file retains these styles
   because it is a standalone page with no shared layout.
   ===================================================== */