/* Employees Tab Premium Styles */

.emp-card-header {
    background: linear-gradient(179deg, #e5f7f0 0%, #ffffff 80%);
    color: #15803d;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #16a34a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emp-header-title h2 {
    margin: 0;
    font-size: 24px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

.emp-header-title p {
    margin: 5px 0 0 0;
    opacity: 0.7;
    font-size: 14px;
}

.emp-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.payroll-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 10px;
}

.task-add-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr auto;
    gap: 10px;
}

.task-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.emp-stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    /* Clickable now */
    position: relative;
    overflow: hidden;
}

.emp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.emp-stat-card.active-view {
    border-color: #3b82f6;
    background: #eff6ff;
}

.emp-stat-card.active-view::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #3b82f6;
}

.emp-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* --- GLOBAL TABLE STANDARDIZATION --- */
.emp-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Ensures Header & Footer are rounded */
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.emp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.emp-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.emp-table th {
    padding: 16px 12px;
    color: #475569;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emp-table td {
    padding: 16px 12px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 15px;
    transition: all 0.2s;
}

.emp-table tbody tr:hover {
    background-color: #f8fafc;
}

.emp-table tbody tr:last-child td {
    border-bottom: none;
}

.emp-table tfoot {
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
    font-weight: 800;
}

.emp-table tfoot td {
    padding: 16px 12px;
    border-bottom: none;
}

/* --- FINANCE TAB BUTTONS --- */
.btn-finance-tab {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-finance-tab i {
    font-size: 18px;
}

.btn-finance-tab:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #1e293b;
}

.btn-finance-tab.active.active-report {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-finance-tab.active.active-expenses {
    background: #ffffff;
    color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.btn-finance-tab.active.active-revenues {
    background: #ffffff;
    color: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

/* Softer table separators for finance */
.emp-table.finance-soft-table {
    background: #fcfdfe;
    font-size: 16px !important;
}

.emp-table.finance-soft-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.emp-table.finance-soft-table thead th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
}

/* --- MODAL STYLINGS --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-modal-overlay.show {
    display: flex !important;
    opacity: 1;
}

.custom-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.custom-modal-overlay.show .custom-modal-content {
    transform: scale(1);
}

.modal-header-custom {
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-custom h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.modal-body-custom {
    padding: 25px;
    overflow-y: auto;
}

.modal-footer-custom {
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fff;
}

/* Upload Photo Box */
.photo-upload-box {
    width: 60px;
    /* Reduced size as per design usually matching input height or slightly larger, previously 100px might be too big for the row. But user didn't complain about size, just "frame". */
    /* Wait, the image showed a square box. Let's keep 100px or adjust if needed. */
    width: 50px;
    height: 50px;
    /* Matching the input row height roughly */
    /* actually, line 663 input is 45px height. A 100px box next to it breaks alignment if not flexed properly. */
    /* The HTML structure (lines 642-654) shows it's in a flex container. */
    /* Let's stick to the existing CSS but enforce overflow and Z-index */

    width: 50px;
    height: 50px;
    border-radius: 12px;
    /* Smoother rounding */
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    /* Critical for containing image */
    position: relative;
    flex-shrink: 0;
    /* Don't shrink */
    transition: all 0.2s;
    margin: 0;
    /* Reset margin as it is in a flex row now */
}

.photo-upload-box:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.photo-upload-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    /* Above icon */
    border-radius: 12px;
}

.photo-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    /* Topmost */
    cursor: pointer;
}

/* --- KANBAN BOARD --- */
.kanban-board {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    align-items: flex-start;
}

.kanban-col {
    min-width: 300px;
    width: 300px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    flex-shrink: 0;
}

.kanban-header {
    padding: 15px;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    border-bottom: 2px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 15px 15px 0 0;
}

.kanban-body {
    padding: 15px;
    overflow-y: auto;
    min-height: 100px;
    flex: 1;
}

.kanban-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border-right: 4px solid transparent;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.kanban-card:active {
    cursor: grabbing;
}

/* --- TABBED PROFILE MODAL --- */
.profile-modal-overlay .custom-modal-content {
    /* Override for larger size handled inline in JS, but ensure clean basics */
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* نافذة الملف الشخصي (موظف) مناسبة للموبايل */
@media screen and (max-width: 768px) {
    .profile-modal-overlay .custom-modal-content {
        width: 95% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .profile-modal-overlay .custom-modal-content > div[style*="flex:1"],
    .profile-modal-overlay .custom-modal-content > div:nth-child(2) {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        padding: 16px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .profile-modal-overlay .custom-modal-content .p-tab-content > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

.p-tab-btn {
    flex: 1;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 14px 10px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.p-tab-btn:hover {
    color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.p-tab-btn.active {
    color: #fff;
    background: var(--cp-primary, #2563eb);
    border-color: var(--cp-primary, #2563eb);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.p-tab-btn i {
    font-size: 16px;
}

.p-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-group {
    background: #f8fafc;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.info-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 5px;
    display: block;
    font-weight: 700;
}

.info-group div {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

/* Table Hover */
.emp-row-clickable:hover td {
    background-color: #f1f5f9;
}

/* Attendance Card */
.att-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.att-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.att-card img,
.att-card .placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    object-fit: cover;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #64748b;
    font-size: 20px;
}

.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}


.photo-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- KANBAN BOARD (PREMIUM REDESIGN) --- */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    align-items: flex-start;
}

.kanban-col {
    flex: 1;
    /* Flexible Width */
    min-width: 300px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

/* Card Status Colors */
.kanban-card.status-todo {
    background: #fff;
    border-left: 4px solid #94a3b8;
}

.kanban-card.status-doing {
    background: #fff;
    border-left: 4px solid #3b82f6;
}

.kanban-card.status-done {
    background: #f0fdf4;
    border-left: 44px solid #22c55e;
}

.kanban-col:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Edit Mode Card Style */
.edit-mode-card {
    background: linear-gradient(179deg, #fff3d3 0%, #ffffff 80%) !important;
    border: 1px solid #f3ba2a !important;
}

.edit-mode-card h5 {
    color: #b45309 !important;
}

.edit-mode-card .icon-box {
    background: #f59e0b !important;
}

.kanban-header {
    padding: 18px 20px;
    font-weight: 800;
    font-size: 15px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

/* Colored Top Borders for Columns */
.kanban-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: currentColor;
    /* Uses color set inline */
    opacity: 0.8;
}

.kanban-body {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.kanban-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    cursor: grab;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.kanban-card:active {
    cursor: grabbing;
}

/* ID Badge Redesign */
.kanban-card .card-id-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 10px;
    font-weight: 900;
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 8px;
    border-radius: 20px;
    transition: background 0.2s;
}

.kanban-card:hover .card-id-badge {
    background: #e2e8f0;
    color: #334155;
}

/* Title Styling */
.kanban-card .card-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
    padding-left: 50px;
    /* Space for ID */
    text-align: right;
    /* RTL */
}

/* Price Tag Redesign */
.kanban-img-price {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
    color: #059669;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
    border: 1px solid #a7f3d0;
}

/* Footer Actions */
.kanban-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f8fafc;
    padding-top: 12px;
    margin-top: 5px;
}

.kanban-assignee {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 20px;
}

.kanban-actions i {
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
    cursor: pointer;
}

.kanban-actions i:hover {
    background: #f1f5f9;
}

.k-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    display: inline-block;
    margin-top: 5px;
}

/* --- ATTENDANCE GRID --- */
.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.att-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.att-card.present {
    border-color: #22c55e;
    background: #f0fdf4;
}

.att-card.absent {
    border-color: #ef4444;
    background: #fef2f2;
}

.att-card img {
    width: 50px;
    height: 50px;
    border-radius: 15%;
    margin-bottom: 10px;
    object-fit: cover;
}

/* --- Nursing / Financial Table Style (Premium Logic) --- */
.nursing-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.nursing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 0 !important;
}

.nursing-table thead {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.nursing-table th {
    padding: 16px 15px;
    text-align: center;
    font-weight: 800;
    color: #1e293b;
    border-right: 1px solid #e2e8f0;
    /* Vertical Border */
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.nursing-table th:last-child {
    border-right: none;
}

.nursing-table td {
    padding: 14px 15px;
    text-align: center;
    color: #475569;
    font-weight: 600;
    border-right: 1px solid #e2e8f0;
    /* Vertical Border */
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.nursing-table td:last-child {
    border-right: none;
}

.nursing-table tr:last-child td {
    border-bottom: none;
}

.nursing-table tr:hover {
    background-color: #f8fafc;
}

/* Specific Alignment for Name */
.nursing-table td:nth-child(3) {
    text-align: right;
    padding-right: 20px;
    color: #0f172a;
    font-weight: 700;
}

/* Footer Pagination */
.nursing-table-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 25px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    gap: 12px;
}

.nursing-btn-show-all {
    background-color: #1e3a8a;
    /* Dark Blue */
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.nursing-btn-show-all:hover {
    background-color: #1e40af;
}

.nursing-btn-pages {
    background-color: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.nursing-btn-pages:hover {
    background-color: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

/* --- PREMIUM PROFILE TABLE STYLES --- */
.profile-fin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.profile-fin-table thead {
    background: #f8fafc;
}

.profile-fin-table th {
    padding: 16px 20px;
    font-weight: 800;
    font-size: 13px;
    color: #334155;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.profile-fin-table td {
    padding: 16px 20px;
    text-align: center;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.profile-fin-table tr:last-child td {
    border-bottom: none;
}

.profile-fin-table tr:hover {
    background: #fbfbfc;
}

.profile-fin-table .fin-month {
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 14px;
    display: inline-block;
}

.profile-fin-table .fin-base {
    color: #64748b;
    font-weight: 600;
}

.profile-fin-table .fin-bonus {
    color: #166534;
    background: #dcfce7;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
}

.profile-fin-table .fin-deduct {
    color: #991b1b;
    background: #fee2e2;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
}

.profile-fin-table .fin-net {
    color: #2563eb;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.5px;
}

/* --- Creative Status Pill & Popover --- */
.status-pill-wrapper {
    position: relative;
    display: inline-block;
}

.status-pill {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    user-select: none;
    white-space: nowrap;
}

.status-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Status Variants */
.status-active {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.status-inactive {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.status-leave {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.status-terminated {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.status-pill i.caret {
    font-size: 10px;
    opacity: 0.6;
    margin-right: 2px;
}

/* Popover Menu */
.status-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%);
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    width: 180px;
    z-index: 1000;
    display: none;
    animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}

.status-popover.show {
    display: block;
}

.status-popover::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 50%;
    transform: translateX(50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid #f1f5f9;
    border-top: 1px solid #f1f5f9;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateX(50%) translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(50%) translateY(0) scale(1);
    }
}

.status-option {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.status-option:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateX(-3px);
}

.status-option:last-child {
    margin-bottom: 0;
}

.status-option .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-label {
    flex: 1;
}

.status-desc {
    font-size: 10px;
    color: #94a3b8;
    font-weight: normal;
    display: block;
    margin-top: 2px;
}

/* --- ATTENDANCE TAB V2 (ANIMATED) --- */
.att-header-container {
    animation: fadeInDown 0.5s ease-out;
}

.current-date-badge {
    background: #eff6ff;
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    border: 1px solid #dbeafe;
}

.att-filters-toolbar {
    border: 1px solid #f1f5f9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}




.attendance-grid {
    display: grid;
    /* Fit ~4 cards on standard desktop (e.g. 1200px / 300 = 4) */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

/* ... existing styles ... */

/* --- CREATIVE HOLIDAY MODAL --- */
.holiday-selector-grid {
    display: flex;
    justify-content: space-between;
    /* Spread them out */
    gap: 10px;
    flex-wrap: nowrap;
    /* Single line forced */
    overflow-x: auto;
    /* Safety scroll */
    padding: 10px 0;
}

.holiday-card-item {
    flex: 1;
    min-width: 70px;
    height: 100px;
    /* Increased slightly for comfort */
    border-radius: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Consistent gap between elements */
    padding: 10px 5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Specific Holiday Styles */
.specific-holiday-chip {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.specific-holiday-chip:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

.specific-holiday-chip i {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
}

.specific-holiday-chip i:hover {
    opacity: 1;
}

.holiday-card-item:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.holiday-card-item.selected {
    background: #fff0f0;
    /* Light Red bg for "Holiday/Off" */
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.holiday-card-item .day-name {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 5px;
}

.holiday-item-icon {
    font-size: 24px;
    opacity: 0.2;
    transition: 0.3s;
}

.holiday-card-item.selected .holiday-item-icon {
    opacity: 1;
    transform: scale(1.2);
}

/* Checkmark indicator */
.holiday-check-indicator {
    position: absolute;
    top: 10px;
    right: 50%;
    transform: translateX(50%) scale(0);
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.holiday-card-item.selected .holiday-check-indicator {
    top: -5px;
    /* Hidden checkmark, style choice: or just colored card */
    /* Let's remove checkmark, the color is enough. */
    display: none;
}


.att-card-item {
    background: #fff;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
    /* Reduced height by optimizing padding/content */
}

.att-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.att-card-inner {
    padding: 15px 18px;
    /* Reduced Padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    background: linear-gradient(to right, #ffffff, #fcfcfc);
    min-height: 100px;
    /* Reduced min-height */
}

.att-idx-photo {
    width: 60px;
    /* Slightly Reduced size */
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    /* Prevent shrinking */
}

.att-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    /* Critical for truncation in flex items */
    margin-right: 12px;
    /* Spacing */
    flex: 1;
}

.att-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 17px;
    margin-bottom: 2px;
    white-space: nowrap;
    /* Prevent wrapping */
    overflow: hidden;
    /* Hide overflow */
    text-overflow: ellipsis;
    /* Add dots ... */
    max-width: 100%;
}

.att-role-small {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.att-time-small {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
}

.att-role {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}



.att-status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.att-status-badge i {
    font-size: 18px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Creative Index Badge Style */
.att-card-index {
    position: absolute;
    left: 10px;
    bottom: -5px;
    font-size: 50px;
    font-weight: 900;
    color: #475569;
    /* Slate 600 - distinct grey */
    opacity: 0.15;
    z-index: 1;
    font-family: 'Segoe UI', sans-serif;
    pointer-events: none;
    transition: all 0.3s;
}

.att-card-item:hover .att-card-index {
    opacity: 0.25;
    transform: scale(1.1);
    color: #334155;
    /* Darker Slate on hover */
}

/* --- CUSTOM MODAL OVERLAY --- 
   (Duplicate removed to prevent display: flex overrides)
*/

.custom-modal-content {
    background: white;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUpFade 0.3s ease-out;
}

.modal-header-custom {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-custom h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.modal-body-custom {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer-custom {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-radius: 0 0 16px 16px;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ATTENDANCE STATS (COMPACT ROW) --- */
.att-stats-compact-grid {
    display: flex;
    /* Flex for single row */
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.att-stat-compact-item {
    flex: 1;
    /* Distribute space equally */
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    min-width: 0;
    /* Prevent overflow */
}

.att-stat-compact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.stat-info-compact {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* For truncation */
}

.stat-lbl {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
    white-space: nowrap;
}

.stat-val {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

@media screen and (max-width: 768px) {
    .emp-table-container {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    .emp-table,
    .emp-table tbody,
    .emp-table tfoot,
    .emp-table tr,
    .emp-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .emp-table thead {
        display: none !important;
    }

    .emp-table tr {
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
        overflow: hidden !important;
        border-right: 5px solid #1e3a8a !important;
        /* Thick side accent like Patients */
        position: relative !important;
        padding: 20px !important;
    }

    .emp-table td {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 12px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        text-align: right !important;
        font-size: 13px !important;
        min-height: 40px !important;
        background: transparent !important;
        direction: rtl !important;
    }

    .emp-table td::before {
        content: attr(data-label) !important;
        font-weight: 700 !important;
        color: #64748b !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
        text-align: right !important;
        min-width: 80px !important;
        margin-left: 15px !important;
        white-space: nowrap !important;
    }

    .finance-management-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .finance-management-header>div {
        width: 100% !important;
    }

    .finance-management-header>div:last-child {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        background: #f1f5f9 !important;
        padding: 5px !important;
        border-radius: 12px !important;
        gap: 5px !important;
    }

    .btn-finance-tab {
        justify-content: center !important;
        padding: 10px 5px !important;
        font-size: 11px !important;
    }

    .quick-reports-row {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 5px !important;
        width: 100% !important;
        flex: none !important;
    }

    /* الحضور: 3 أزرار في سطر على الموبايل */
    #emp-view-attendance .att-quick-row.quick-reports-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .quick-reports-row button {
        padding: 8px 2px !important;
        font-size: 10px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* الحضور: النوع + اليوم + الإعدادات في سطر واحد */
    #emp-view-attendance .finance-filter-grid .att-filter-row-2 {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 10px !important;
        align-items: end !important;
        grid-column: 1 / -1 !important;
    }
    #emp-view-attendance .finance-filter-grid {
        display: grid !important;
    }

    /* Hide label for special columns */
    .emp-table td[data-label="#"]::before,
    .emp-table td[data-label="الموظف"]::before,
    .emp-table td[data-label="التاريخ"]::before,
    .emp-table td[data-label="إجراءات"]::before,
    .mobile-hide {
        display: none !important;
    }

    /* Circle Sequence (#) - الاسم في سطر، الترقيم ثابت */
    .emp-table td[data-label="#"],
    .emp-table td.emp-index {
        position: absolute !important;
        top: 8px !important;
        right: 15px !important;
        left: auto !important;
        width: 28px !important;
        height: 28px !important;
        background: #1e3a8a !important;
        color: white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border: 2px solid #fff !important;
        z-index: 10 !important;
        padding: 0 !important;
        box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3) !important;
        border-bottom: none !important;
    }

    /* الاسم في سطر واحد */
    .emp-table .emp-name,
    .emp-table td[data-label="الموظف"] .emp-name {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* الراتب: مسافة بين المبلغ والعملة */
    .emp-table td[data-label="الراتب"] .currency-symbol,
    #employees-table-body td[data-label="الراتب"] .currency-symbol {
        margin-right: 4px !important;
        margin-left: 2px !important;
    }
    .emp-table td[data-label="الراتب"],
    #employees-table-body td[data-label="الراتب"] {
        white-space: nowrap !important;
    }

    /* الدور الوظيفي: ظهور كلمة طبيب كاملة */
    #emp-role,
    #emp-form #emp-role {
        min-width: 140px !important;
        width: 100% !important;
    }

    /* Header Cell (Name & Photo) - Matches Patient td:nth-of-type(2) */
    .emp-table td[data-label="الموظف"],
    .emp-table td[data-label="التاريخ"] {
        position: relative !important;
        background: #f8fafc !important;
        margin: -20px -20px 15px -20px !important;
        width: calc(100% + 40px) !important;
        padding: 15px 20px !important;
        border-bottom: 2px solid #f1f5f9 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #0e1d59 !important;
        display: flex !important;
        align-items: center !important;
        min-height: 65px !important;
        justify-content: center !important;
    }

    /* Container for Name - Must be centered */
    .emp-table td[data-label="الموظف"]>div {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .emp-table td[data-label="الموظف"] .text-right {
        text-align: center !important;
        width: 100% !important;
    }

    /* Profile Photo - Anchored FAR LEFT (Like Patients) */
    .emp-table td[data-label="الموظف"] img {
        position: absolute !important;
        left: 15px !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 45px !important;
        height: 45px !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
        border: 2px solid white !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    /* --- PAYROLL SUMMARY CARD (MOBILE) --- */
    .payroll-summary-row {
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
        border-right: 8px solid #1e3a8a !important;
        margin-top: 25px !important;
    }

    /* HIDE THE BLUE CIRCLE IN SUMMARY ROW AT ALL COSTS */
    .payroll-summary-row td[data-label="#"],
    .finance-total-row td[data-label="#"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Summary Title as Header */
    .payroll-summary-row td[data-label="الموظف"],
    .finance-total-row td[data-label="الموظف"] {
        justify-content: center !important;
        padding: 30px 15px !important;
        /* No extra side padding needed as no circle/image */
        font-weight: 800 !important;
        color: #1e3a8a !important;
        font-size: 18px !important;
        background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%) !important;
    }

    .finance-total-row {
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
        border-right: 8px solid #16a34a !important;
        /* Green for overall finance */
        margin-top: 25px !important;
    }

    /* Simple Total Variant: No Labels, Centered Number */
    .finance-total-row.simple-total {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border-right: 8px solid #1e3a8a !important;
        margin-top: 15px !important;
        min-height: unset !important;
        width: 100% !important;
    }

    .finance-total-row.simple-total td {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        border: none !important;
        padding: 8px 10px !important;
        margin: 0 !important;
        min-height: unset !important;
        position: static !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        height: auto !important;
    }

    .finance-total-row.simple-total td::before {
        display: none !important;
    }

    .finance-total-row.simple-total td[data-label="الموظف"] {
        border-bottom: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        padding: 10px 10px !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #1e3a8a !important;
    }

    .finance-total-row.simple-total td[data-label="المبلغ"] {
        padding: 15px 10px !important;
        font-size: 26px !important;
        font-weight: 900 !important;
        background: #ffffff !important;
        justify-content: center !important;
    }

    /* Actions styling - Matches Patient td:last-child */
    .emp-table td[data-label="إجراءات"] {
        background: #f8fafc !important;
        margin: 15px -20px -20px -20px !important;
        width: calc(100% + 40px) !important;
        justify-content: center !important;
        border-bottom: none !important;
        padding: 12px !important;
        border-top: 1px dashed #e2e8f0 !important;
        gap: 8px !important;
        display: flex !important;
        flex-direction: row !important;
    }

    .emp-table td[data-label="إجراءات"] .btn {
        flex: 0 0 auto !important;
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        padding: 5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
    }

    /* Other Data Points Support */
    .emp-table td[data-label^="التعيين"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .emp-table td[data-label="الأساسي"],
    .emp-table td[data-label="المكافآت"],
    .emp-table td[data-label="الاستقطاعات"],
    .emp-table td[data-label="الصافي"] {
        font-weight: 800 !important;
        font-size: 15px !important;
    }
}

/* Modal Profile Tables */
@media screen and (max-width: 768px) {

    .profile-fin-table,
    .profile-fin-table tbody,
    .profile-fin-table tr,
    .profile-fin-table td {
        display: block !important;
        width: 100% !important;
    }

    .profile-fin-table thead {
        display: none !important;
    }

    .profile-fin-table tr {
        margin-bottom: 15px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 10px !important;
        background: white !important;
    }

    .profile-fin-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 5px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .profile-fin-table td::before {
        content: attr(data-label) !important;
        font-weight: 700 !important;
        color: #64748b !important;
        font-size: 11px !important;
    }

    /* Mobile Improvements for Cards and Filters */
    .emp-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .emp-stat-card {
        padding: 12px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .emp-stat-card .emp-stat-icon {
        margin: 0 auto !important;
    }

    .emp-stat-card h3 {
        font-size: 14px !important;
    }

    .emp-stat-card p {
        font-size: 10px !important;
        display: none;
        /* Hide description on mobile to save space */
    }

    .payroll-filter-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .payroll-filter-grid>div {
        width: 100% !important;
    }

    .task-add-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .task-filter-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        /* One row for 3 filters */
        gap: 8px !important;
    }

    .quick-reports-row {
        grid-template-columns: repeat(4, 1fr) !important;
        /* One row for 4 buttons */
        gap: 5px !important;
    }

    .task-add-grid>button,
    .task-add-grid>div,
    .task-add-grid>input,
    .task-add-grid>select {
        width: 100% !important;
    }

    .kanban-board {
        flex-direction: column !important;
        overflow-x: hidden !important;
    }

    .kanban-col {
        width: 100% !important;
        min-width: 100% !important;
        margin-bottom: 15px !important;
    }

    /* Attendance Stats Legend on Mobile */
    .att-stats-compact-grid {
        gap: 4px !important;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .att-stat-compact-item {
        flex-direction: column !important;
        padding: 5px !important;
        min-width: 55px !important;
        gap: 4px !important;
        text-align: center;
        border-radius: 10px !important;
    }

    .stat-icon-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }

    .stat-lbl {
        font-size: 8px !important;
    }

    .stat-val {
        font-size: 10px !important;
    }

    /* Holiday Modal Mobile Fix */
    .holiday-card-item {
        min-width: 64px !important;
        height: 90px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 5px !important;
        overflow: visible !important;
    }

    .holiday-card-item .day-name {
        order: 2 !important;
        font-size: 11px !important;
        margin-top: 8px !important;
        margin-bottom: 0 !important;
        display: block !important;
        color: inherit !important;
    }

    .holiday-item-icon {
        order: 1 !important;
        font-size: 22px !important;
        opacity: 1 !important;
    }

    .holiday-check {
        display: none !important;
    }
}