/* AttenDash Payroll & HRMS Custom Styles */

html.app-authenticated #loginScreen {
    display: none !important;
}

html.app-authenticated #appRoot {
    display: flex !important;
}

/* Horizontal Scrollbar for Settings & Navigation Tabs */
.tab-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.tab-scroll-container::-webkit-scrollbar {
    height: 5px;
}

.tab-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.tab-scroll-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

.tab-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Toast Notifications */
#toastNotification {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#toastNotification.toast-hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

#toastNotification.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Attendance & Employee Grid Cards */
.attendance-card, .employee-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.attendance-card:hover, .employee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Calendar Day Cells */
.calendar-day-cell {
    min-height: 44px;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.calendar-day-cell:hover {
    transform: scale(1.04);
}

/* Responsive Table Overflows on Small Devices */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Print Styles for Salary Slips */
@media print {
    body * {
        visibility: hidden !important;
    }
    #printableSalarySlip,
    #printableSalarySlip * {
        visibility: visible !important;
    }
    #printableSalarySlip {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: white !important;
        padding: 20px !important;
        margin: 0 !important;
        box-shadow: none !important;
        z-index: 999999 !important;
    }
    .no-print {
        display: none !important;
    }
}

/* Mobile & Tablet Fine-tuning */
@media (max-width: 640px) {
    .settings-tab-btn {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.75rem !important;
    }
}
