/* Custom styles to enhance the UI and handle overflows */
body { 
    font-family: 'Inter', sans-serif; 
}
.table-cell { 
    padding: 12px 16px; 
    white-space: nowrap; 
}
.form-input { 
    width: 100%; 
    padding: 10px; 
    border-radius: 0.5rem; 
    border: 1px solid #D1D5DB; 
    background-color: #F9FAFB; 
    transition: border-color 0.2s; 
}
.form-input:focus { 
    outline: none; 
    border-color: #2563EB; 
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); 
}
.btn { 
    padding: 10px 20px; 
    border-radius: 0.5rem; 
    font-weight: 500; 
    transition: background-color 0.2s; 
    cursor: pointer; 
    text-align: center; 
}
.btn-primary { 
    background-color: #2563EB; 
    color: white; 
}
.btn-primary:hover { 
    background-color: #1D4ED8; 
}
.btn-secondary { 
    background-color: #E5E7EB; 
    color: #374151; 
}
.btn-secondary:hover { 
    background-color: #D1D5DB; 
}
.btn-danger { 
    background-color: #EF4444; 
    color: white; 
}
.btn-danger:hover { 
    background-color: #DC2626; 
}
.section-card { 
    background-color: white; 
    border-radius: 0.75rem; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); 
    padding: 1.5rem; 
}
.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    overflow-y: auto; 
    padding: 2rem 0; 
}
.modal-content { 
    background-color: white; 
    padding: 2rem; 
    border-radius: 0.75rem; 
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); 
    max-width: 500px; 
    width: 90%; 
}
.payslip { 
    max-width: 800px; 
    width: 95%; 
    font-family: 'Arial', sans-serif; 
}
@media print {
    body * { 
        visibility: hidden; 
    }
    #payslip-modal, #payslip-modal * { 
        visibility: visible; 
    }
    #payslip-modal { 
        position: absolute; 
        left: 0; 
        top: 0; 
        width: 100%; 
    }
    .no-print { 
        display: none; 
    }
}