/* ########## GLOBAL STYLES ########## */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ########## LANDING PAGE ########## */
.landing-page-body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; /* Light background for the page */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-page-header {
    background-color: #fcfffd; /* Blue header background */
    padding: 20px;
    text-align: center;
}

.landing-page-logo {
    max-height: 80px;
    height: 50px;
    width: auto;
}

.landing-page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.landing-page-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.landing-page-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-page-link {
    color: #007bff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.landing-page-link:hover {
    text-decoration: underline;
}

.landing-page-footer {
    background-color: #f8f9fa; /* Light gray footer background */
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #6c757d;
}

/* ########## HEADER ########## */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Ensure the header spans the viewport width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4f4f4f; /* Lighter background */
    color: white;
    padding: 10px 20px;
    z-index: 1000; /* Ensure the header is above other elements */
    box-sizing: border-box; /* Includes padding in the width calculation */
    overflow: hidden; /* Prevents content from spilling out */
}

header .header-left .company-logo {
    height: 50px;
}

header .header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Add consistent spacing between elements */
    flex-wrap: wrap; /* Allow wrapping of elements if they overflow */
    max-width: calc(100% - 100px); /* Prevent overflowing beyond a safe width */
    justify-content: flex-end; /* Aligns items to the right */
}

header .user-info {
    color: #000000;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Prevent wrapping of user info text */
    /*max-width: 150px; /* Prevent the user info from occupying too much space */
}

header .header-icon {
    background-color: transparent; /* Ensure no background color */
    height: 30px;
    width: 30px;
    cursor: pointer;
}

header .header-icon img {
    width: 24px;
    height: 24px;
}

header .logout-button {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

header .logout-button img {
    width: 24px;
    height: 24px;
}

/* ########## FOOTER ########## */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #6c757d;
    z-index: 1000; /* Ensures the footer stays above other content */
}

/* ########## MAIN CONTENT ########## */
.main-content {
    flex: 1; /* Ensures main content expands to fill available space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 20px 20px;
    background-color: #f8f9fa;
}

/* ########## MODERN HEADER ########## */
.modern-header {
    background-color: #fcfffd;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid #007bff; /* Optional: Stylish blue border */
}

.modern-header .logo img {
    height: 50px; /* Adjust the logo size */
}

.modern-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modern-header .header-right img {
    height: 25px; /* Icon size */
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modern-header .header-right img:hover {
    opacity: 0.8; /* Hover effect */
}


/* ########## BUTTON STYLES ########## */
.btn-primary {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    padding: 10px 20px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
}

.btn-danger:hover {
    background-color: #c9302c;
}

/* ########## AUTHENTICATION PAGES ########## */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    background-color: #f8f9fa;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-container p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #6c757d;
    text-align: center;
}

.auth-links {
    margin-top: 30px;
    text-align: center;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ########## SIGNUP ########## */

.g-recaptcha {
    padding-top: 10px;
}
/* ########## MYACCOUNT EMAIL CONFIRMATION ########## */
.myaccount-email-confirmation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #f9f9f9;
    padding: 20px;
}

.myaccount-email-confirmation-card {
    max-width: 500px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.myaccount-email-confirmation-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.myaccount-email-confirmation-message {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.myaccount-email-confirmation-note {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.myaccount-email-confirmation-note a {
    color: #007bff;
    text-decoration: none;
}

.myaccount-email-confirmation-note a:hover {
    text-decoration: underline;
}

.myaccount-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.myaccount-btn:hover {
    background-color: #0056b3;
}

/* ########## EMAIL VERIFICATION SECTION ########## */
.email-verification-container {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 50px auto;
    font-family: Arial, sans-serif;
}

.email-verification-header {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.email-verification-header-failed {
    color: #f44336;
}

.email-verification-text {
    font-size: 16px;
    color: #333333;
    margin: 10px 0;
}

.email-verification-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.email-verification-button:hover {
    background-color: #45a049;
}

.email-verification-header-failed + .email-verification-button {
    background-color: #f44336;
}

.email-verification-header-failed + .email-verification-button:hover {
    background-color: #d32f2f;
}

/* ########## LOGIN ############## */
.login-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
}

.login-form-group input[type="checkbox"] {
    margin: 0px 0px 10px 0px; /* Removes default margin */
    transform: scale(1.2); /* Optional: Enlarges checkbox slightly for better usability */
}

.login-form-group input[type="email"], input[type="password"], input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
}

.login-form-group input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus, select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}


.login-form-group {
    margin-bottom: 0px;
    margin-top: 15px;
}

.login-form-remember {
    display: flex;
    align-items: center; /* Center align the checkbox with the label */
    gap: 10px; /* Add some space between the checkbox and the label */
}

/* ########## DASHBOARD ########## */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 36px;
    color: #333;
}

.dashboard-header p {
    font-size: 18px;
    color: #555;
}

.dashboard-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.nav-card {
    width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: #333;
}

.nav-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.nav-link span {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

/* ########## ASSIGNMENTS ########## */
.assignments-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.assignments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.assignments-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.assignments-table th, .assignments-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.assignments-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.empty-row {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* ########## ASSIGNMENTS FORM ########## */
.assignments-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.assignments-form-container h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.assignments-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.assignments-form-group {
    flex: 1 1 calc(50% - 15px);
    display: flex;
    flex-direction: column;
}

.assignments-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.assignments-form-group input,
.assignments-form-group select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.assignments-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.assignments-form-actions button,
.assignments-form-actions a {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.assignments-form-actions .btn-success {
    background-color: #28a745;
    color: #fff;
}

.assignments-form-actions .btn-success:hover {
    background-color: #218838;
}

.assignments-form-actions .btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.assignments-form-actions .btn-secondary:hover {
    background-color: #5a6268;
}


/* ########## EDIT ASSIGNMENT ########## */
.edit-assignment-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.edit-assignment-container h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.edit-assignment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edit-assignment-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.edit-assignment-form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-assignment-form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #495057;
}

.edit-assignment-form-select,
.edit-assignment-form-textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: #fff;
    color: #495057;
}

.edit-assignment-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.edit-assignment-form-select:focus,
.edit-assignment-form-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.edit-assignment-form-group-inline input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0;
}

.edit-assignment-form-actions {
    display: flex;
    justify-content: center;
}

.edit-assignment-form-submit {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edit-assignment-form-submit:hover {
    background-color: #0056b3;
}

/* ########## ATTENDANCE TABLE ########## */
.attendance-container {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    min-width: 80%;
}

.attendance-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.attendance-table th, .attendance-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.attendance-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-transform: uppercase;
    color: #555;
}

.attendance-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.attendance-table tr:hover {
    background-color: #f1f1f1;
}

.attendance-empty-row {
    text-align: center;
    color: #777;
    font-style: italic;
    font-size: 14px;
}

.attendance-view-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin: 5px 0;
    display: block;
}

.attendance-view-link:hover {
    text-decoration: underline;
}

.attendance-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    color: #fff;
}

.attendance-badge-success {
    background-color: #28a745;
}

.attendance-badge-warning {
    background-color: #ffc107;
}

.attendance-badge-danger {
    background-color: #dc3545;
}

/* ########## ATTENDANCE SECTION ########## */
.attendance-filter-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendance-filter-label {
    font-weight: bold;
    font-size: 14px;
}

.attendance-filter-dropdown {
    width: 200px; /* Adjust width as needed */
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Modal Styles */
.attendance-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.attendance-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px 30px;
    border: 1px solid #ddd;
    width: 40%;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.attendance-modal-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.attendance-modal-close {
    color: #888;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.attendance-modal-close:hover {
    color: #000;
}

.attendance-upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.attendance-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.attendance-label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.attendance-file-input {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
}

.attendance-modal-actions {
    display: flex;
    justify-content: center;
}

.attendance-modal-submit-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.attendance-modal-submit-btn:hover {
    background-color: #0056b3;
}

.upload-timesheet-message {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

/* Adjusting the width of number input boxes */
.attendance-number-input {
    width: 80px; /* Set to a narrower width */
    text-align: right; /* Align text to the right for better readability of numbers */
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Updated Action Button Styles */
.attendance-action-button {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

.attendance-action-button:hover {
    background-color: #218838;
}

/* ########## ATTENDANCE-PAYMENTS SECTION ########### */
.attendance-payments-container {
    margin: 20px auto;
    padding: 20px;
    max-width: 1200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.attendance-payments-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.attendance-payments-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #fff;
}

.attendance-payments-table th,
.attendance-payments-table td {
    padding: 10px;
    border: 1px solid #ccc;
}

.attendance-payments-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.attendance-payments-table tr:nth-child(even) {
    background-color: #f7f7f7;
}


/* ########## UPLOAD TIMESHEET ########## */
.upload-timesheet-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa; /* Light background */
}

.upload-timesheet-card {
    background: none;
    border: none;
    box-shadow: none;
    max-width: 600px;
    width: 100%;
}

.upload-timesheet-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.upload-timesheet-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    margin-bottom: 15px;
}

.upload-timesheet-group {
    margin-bottom: 15px;
}

.upload-timesheet-label {
    font-weight: bold;
    color: #495057;
}

.upload-timesheet-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    color: #495057;
}

.upload-timesheet-small-input {
    width: 80px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    text-align: center;
}

.upload-timesheet-info {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.upload-timesheet-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;
}

.upload-timesheet-button:hover {
    background-color: #0056b3;
    cursor: pointer;
}

.upload-timesheet-message {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.upload-timesheet-error {
    color: red;
}

/* ########## ATTENDANCE HR ########## */
.attendance-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 80%;
}

.attendance-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.attendance-hr-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed; /* Prevents columns from shrinking unevenly */
}

.attendance-hr-table th,
.attendance-hr-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.attendance-hr-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    white-space: normal;
}

.attendance-hr-table td {
    background-color: #ffffff;
}

.attendance-hr-table .green-highlight {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.attendance-hr-table .expand-details {
    cursor: pointer;
    background: none;
    border: 1px solid #007bff;
    border-radius: 4px;
    color: #007bff;
    padding: 5px 10px;
    font-size: 12px;
}

.attendance-hr-table .expand-details:hover {
    background-color: #007bff;
    color: white;
}

.attendance-hr-status-dropdown {
    width: 150px; /* Ensure enough width for the options */
    height: auto; /* Allow the dropdown to expand */
    font-size: 14px; /* Adjust font size for readability */
    padding: 5px; /* Add padding for better spacing */
    border: 1px solid #ccc; /* Define a border for visibility */
    border-radius: 4px; /* Optional: round the edges */
    background-color: #fff; /* Set background color */
    color: #333; /* Set text color */
    appearance: auto; /* Ensure default browser styling */
    outline: none; /* Remove default outline */
    cursor: pointer; /* Change cursor to pointer */
}


/* Details Row */
.details-row {
    background-color: #f9f9f9;
    display: none;
    text-align: left;
}

.details-row table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.details-row th,
.details-row td {
    border: 1px solid #ddd;
    padding: 8px;
}

.details-row th {
    background-color: #e9ecef;
    font-weight: bold;
    text-align: left;
}

.details-row td {
    background-color: #ffffff;
}

/* ########## MODAL STYLING ########## */

/* General Modal Container (Shared) */
.attendance-hr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0%;
    width: 100%;
    height: auto;
    max-height: 90%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Shared Modal Content Styling */
.attendance-hr-modal-content {
    background-color: #fff;
    padding: 20px;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 8px;
    width: 400px; /* Default width */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Specific Styling for Payment Modal */
#paymentsModal .attendance-hr-modal-content {
    width: 600px; /* Wider modal for forms */
    text-align: left; /* Align content to the left for form labels */
}

/* Shared Modal Header */
.attendance-hr-modal h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

/* Close Button Styling */
.attendance-hr-close {
    float: right;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.attendance-hr-close:hover {
    color: #d9534f;
}

/* Form Styling for Payment Modal */
/* Payments Modal Styling */
#paymentsModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
}

#paymentsModal .attendance-hr-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px; /* Adjust modal width */
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: auto;
}

#paymentsModal h3 {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

/* Form Layout */
#paymentsForm .form-group {
    margin-bottom: 15px;
}

#paymentsForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #555;
}

#paymentsForm input,
#paymentsForm textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#paymentsForm input[type="text"],
#paymentsForm input[type="number"],
#paymentsForm input[type="date"],
#paymentsForm textarea {
    max-width: 100%; /* Prevent overly wide fields */
}

#paymentsForm textarea {
    resize: vertical;
    min-height: 80px;
}

#paymentsForm button {
    display: block;
    width: 100%;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#paymentsForm button:hover {
    background-color: #45a049;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #paymentsModal .attendance-hr-modal-content {
        width: 90%;
    }
}

/* HR Review Modal Specific Styles */
.hr-review-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    height: auto; /* Adjusts height to fit the content dynamically */
    max-height: 90%; /* Ensures the modal doesn't grow too tall on smaller screens */
    width: 90%;
    z-index: 1000;
    overflow-y: auto;
    max-height: 90vh;
}

.hr-review-modal-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.hr-review-modal .hr-review-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.hr-review-modal .hr-review-close:hover {
    color: #333;
}

.hr-review-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hr-review-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hr-review-label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

.hr-review-input,
.hr-review-textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.hr-review-textarea {
    resize: none;
    height: 80px;
}

.hr-review-button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.hr-review-button:hover {
    background-color: #218838;
}


/* ########## ATTENDANCE CLIENT ########## */
.attendance-client-container {
    margin: 20px auto;
    max-width: 1000px;
    min-width: 80%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.attendance-client-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.attendance-client-sort {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.attendance-client-sort label {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
}

.attendance-client-sort select {
    width: 200px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.attendance-client-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.attendance-client-table th,
.attendance-client-table td {
    text-align: left;
    padding: 10px;
    border: 1px solid #dee2e6;
}

.attendance-client-table th {
    background-color: #f1f3f5;
    font-weight: bold;
    font-size: 14px;
    color: #495057;
}

.attendance-client-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.attendance-client-table tr:hover {
    background-color: #e9ecef;
}

.attendance-client-actions {
    display: flex;
    gap: 10px;
}

.attendance-client-actions .btn {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.attendance-client-actions .btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
}

.attendance-client-actions .btn-info:hover {
    background-color: #138496;
}

.attendance-client-actions .btn-warning {
    background-color: #ffc107;
    color: white;
    border: none;
}

.attendance-client-actions .btn-warning:hover {
    background-color: #e0a800;
}

.attendance-client-actions .btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.attendance-client-actions .btn-success:hover {
    background-color: #218838;
}

/* Attendance Client Modal */
.attendance-client-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.attendance-client-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.attendance-client-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.attendance-client-close-btn:hover,
.attendance-client-close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.attendance-client-modal-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.attendance-client-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.attendance-client-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.attendance-client-submit-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.attendance-client-submit-btn:hover {
    background-color: #0056b3;
}

/* ########## USER MANAGEMENT ########## */

/* Container */
.user-container {
    width: 100%;
    min-width: 80%;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header */
.user-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* Filter and Sort Section */
.user-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-filter-container label {
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    color: #555;
}

.user-filter-container select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
}

.user-filter-container select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Table */
.user-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-table th,
.user-table td {
    padding: 12px 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.user-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    color: #555;
}

.user-table td {
    font-size: 14px;
    color: #333;
}

.user-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.user-table tr:hover {
    background-color: #f1f1f1;
}

/* Action Links */
.user-table .action-links a {
    color: #007bff;
    text-decoration: none;
    margin-right: 10px;
    font-size: 14px;
}

.user-table .action-links a:hover {
    text-decoration: underline;
}

/* Specific style for the "Change Profile Type" dropdown */
.user-table .action-dropdown {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    width: 180px; /* Adjusted width */
    max-width: 100%; /* Ensures responsiveness */
    text-align: left;
    display: inline-block;
}

.user-table .action-dropdown:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 0 5px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.pagination a:hover {
    background-color: #007bff;
    color: #fff;
}

.pagination span {
    font-size: 14px;
    color: #6c757d;
}

/* ########## THREE_P_USERS EDIT USER ########## */
.three_p_users-edit-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.three_p_users-edit-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.three_p_users-edit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.three_p_users-form-group {
    display: flex;
    flex-direction: column; /* Retain column layout for most elements */
}

.three_p_users-form-group.inline {
    flex-direction: row; /* Use row layout specifically for inline elements like checkboxes */
    align-items: center; /* Aligns text and checkbox vertically */
    gap: 10px; /* Adds spacing between text and checkbox */
}

.three_p_users-form-group label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
}

input[type="checkbox"] {
    margin: 0; /* Removes default margin */
    transform: scale(1.2); /* Optional: Enlarges checkbox slightly for better usability */
}

.three_p_users-form-input,
.three_p_users-form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    color: #495057;
}

.three_p_users-form-input:focus,
.three_p_users-form-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.three_p_users-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.three_p_users-form-submit {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.three_p_users-form-submit:hover {
    background-color: #0056b3;
}

.three_p_users-form-cancel {
    font-size: 14px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.three_p_users-form-cancel:hover {
    color: #333;
}

@media (max-width: 768px) {
    .three_p_users-edit-container {
        padding: 15px;
    }

    .three_p_users-form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .three_p_users-form-submit,
    .three_p_users-form-cancel {
        width: 100%;
        text-align: center;
    }
}

/* ########## CLIENT MANAGEMENT ########## */
.clients-container {
    margin: 20px auto;
    padding: 20px;
    max-width: 900px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clients-container h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.clients-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.clients-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clients-filters label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.clients-filters select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
}

.clients-filters button {
    padding: 5px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.clients-filters button:hover {
    background-color: #0056b3;
}

.clients-create-button {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.clients-create-button:hover {
    text-decoration: underline;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.clients-table th,
.clients-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 14px;
    color: #333;
}

.clients-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    text-transform: uppercase;
}

.clients-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.clients-table tr:hover {
    background-color: #f1f1f1;
}

.clients-table .clients-empty-row {
    text-align: center;
    font-style: italic;
    color: #777;
}

.clients-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.clients-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
}

.clients-modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.clients-modal-confirm {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.clients-modal-confirm:hover {
    background-color: #a71d2a;
}

.clients-modal-cancel {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.clients-modal-cancel:hover {
    background-color: #565e64;
}

/* ########## EDIT CLIENT SECTION ########## */
.edit-client-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-client-container h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.edit-client-container form {
    display: flex;
    flex-direction: column;
}

.edit-client-container .edit-client-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.edit-client-container .edit-client-form-group label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
    width: 150px; /* Ensures consistent alignment with other fields */
}

.edit-client-container .edit-client-form-group input[type="text"],
.edit-client-container .edit-client-form-group input[type="email"],
.edit-client-container .edit-client-form-group select {
    width: calc(100% - 160px); /* Adjusts for consistent layout */
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.edit-client-container .edit-client-form-group input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
}

.edit-client-container button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    text-align: center;
}

.edit-client-container button:hover {
    background-color: #0056b3;
}

.edit-client-container button:focus {
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.8);
}

/* ########## MODALS ########## */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* ########## PROFILE COMPLETION ########## */
.profile-completion-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-completion-container h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

/* ########## WORKORDERS SECTION ########## */

.workorders-container {
    padding: 20px;
    font-family: Arial, sans-serif;
}

.workorders-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333333;
    text-align: center;
}

.workorders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: left;
}

.workorders-table th,
.workorders-table td {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: center;
}

.workorders-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #555555;
}

.workorders-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.workorders-table tr:hover {
    background-color: #f1f1f1;
}

.workorders-actions a {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.workorders-actions a.btn-primary {
    background-color: #007bff;
    border: none;
}

.workorders-actions a.btn-primary:hover {
    background-color: #0056b3;
}

.workorders-actions a.btn-danger {
    background-color: #dc3545;
    border: none;
}

.workorders-actions a.btn-danger:hover {
    background-color: #a71d2a;
}

/* ########## WORKORDERS FORM SECTION ########## */

.workorders-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.workorders-form-container h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.workorders-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.workorders-form-group {
    flex: 1 1 calc(50% - 15px); /* Make fields occupy half the width */
    display: flex;
    flex-direction: column;
}

.workorders-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.workorders-form-group input,
.workorders-form-group select,
.workorders-form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.workorders-form-group textarea {
    resize: vertical;
}

.workorders-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.workorders-form-actions button,
.workorders-form-actions a {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.workorders-form-actions .btn-success {
    background-color: #28a745;
    color: #fff;
}

.workorders-form-actions .btn-success:hover {
    background-color: #218838;
}

.workorders-form-actions .btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.workorders-form-actions .btn-secondary:hover {
    background-color: #5a6268;
}

/* ########## WORKORDERS FILTER STYLES ########## */
.workorders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.workorders-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workorders-filter-container label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.workorders-filter-container select {
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

.workorders-filter-container button {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.workorders-filter-container button:hover {
    background-color: #0056b3;
}


/* ########## HOLIDAYS LIST PAGE ########## */
.holidays-list-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.holidays-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.holidays-list-header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.holidays-list-btn {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.holidays-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.holidays-list-table th, .holidays-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.holidays-list-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.holidays-list-table td {
    font-size: 14px;
}

.holidays-list-empty {
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 20px;
}

/* Align action buttons */
.holidays-list-edit {
    color: #007bff;
    text-decoration: none;
}

.holidays-list-delete {
    color: #dc3545;
    text-decoration: none;
}

/* ########## HOLIDAYS FORM PAGE ########## */
.holidays-form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.holidays-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.holidays-form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.holidays-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.holidays-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.holidays-form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.holidays-form-checkbox-group {
    display: flex;
    align-items: center;
}

.holidays-form-checkbox-group input {
    margin-left: 10px;
}

.holidays-form-helper-text {
    font-size: 12px;
    color: #666;
}

.holidays-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.holidays-form-btn {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.holidays-form-btn-secondary {
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}
/* ########## HOLIDAYS DELETE MODAL ########## */
.holidays-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.holidays-modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.holidays-modal-btn-danger {
    background-color: #dc3545;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.holidays-modal-btn-secondary {
    background-color: #6c757d;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* ############# PAYMENTS_HR ######### */
/* ########## PAYMENTS_HR STYLES ########## */

.payments-hr {
    font-family: Arial, sans-serif;
    max-width: 90%;
    margin: 20px auto;
    padding-top: 20px; /* Ensures content starts near the top */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Adjust the header spacing */
.payments-hr h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px; /* Adds spacing between title and dropdown */
}

/* Timesheet Period Dropdown */
.payments-hr .mb-3 {
    margin-bottom: 20px; /* Adds spacing between dropdown and table */
}

/* Table Styling */
.payments-hr .table-container {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
}

.payments-hr table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    text-align: center;
}

.payments-hr th,
.payments-hr td {
    border: 1px solid #ddd;
    padding: 10px;
}

.payments-hr th {
    text-align: center;
    background-color: #f8f8f8;
    font-weight: bold;
}

/* Center align hours */
.payments-hr .hours {
    text-align: center;
}

/* Right align currency fields */
.payments-hr .currency {
    text-align: right;
}

/* Hide commit button container initially */
.payments-hr #commit-container {
    display: none;
    text-align: center;
    margin-top: 20px;
}

/* Ensure the commit button is visually distinct */
.payments-hr #commit-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payments-hr #commit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.payments-hr #commit-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

/* Ensure checkboxes align properly */
.payments-hr .commit-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Prevent already committed checkboxes from being interacted with */
.payments-hr .commit-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ########## PAYMENTS_HR MODAL STYLES ########## */

/* Overlay Background */
.payments-hr .modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1050; /* Ensure it appears on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

/* Modal Content */
.payments-hr .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Modal Buttons */
.payments-hr .modal-content button {
    width: 120px;
    margin: 10px;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

/* Confirm Button */
.payments-hr .btn-success {
    background-color: #28a745;
    color: white;
}

.payments-hr .btn-success:hover {
    background-color: #218838;
}

/* Cancel Button */
.payments-hr .btn-danger {
    background-color: #dc3545;
    color: white;
}

.payments-hr .btn-danger:hover {
    background-color: #c82333;
}

/* ============================= */
/* E-SIGNING PAGE STYLES (.e-signing) */
/* ============================= */

    .esigning-container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 20px;
    }
    .esigning-title {
        margin-bottom: 20px;
    }
    .esigning-pdf-viewer {
        margin-bottom: 30px;
    }
    .esigning-upload-section {
        margin-bottom: 20px;
    }
    .esigning-btn {
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
    }
    .esigning-btn-green {
        background-color: #4CAF50;
        color: white;
    }
    .esigning-btn-green:hover {
        background-color: #45a049;
    }
    .esigning-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.4);
    }
    .esigning-modal-content {
        background-color: #fefefe;
        margin: 10% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 600px;
    }
    .esigning-close-btn {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    .esigning-close-btn:hover {
        color: black;
    }
    .esigning-instructions {
        font-style: italic;
        color: #666;
        margin-top: 10px;
    }
    #clientNotesText {
        width: 100%;
        padding: 8px;
        margin-bottom: 15px;
    }

/* ============================= */
/* Attendance HR – Mobile Fix */
/* ============================= */

@media (max-width: 768px) {

    /* Main container */
    .attendance-container {
        min-width: 100%;
        padding: 10px;
        overflow-x: auto;
    }

    /* Main HR table */
    .attendance-hr-table {
        min-width: 700px;
        table-layout: auto;
    }

    .attendance-hr-table th,
    .attendance-hr-table td {
        white-space: normal;
        font-size: 12px;
    }

    /* ----------------------------- */
    /* Details table inside expand */
    /* ----------------------------- */

    .details-row td {
        padding: 0; /* Remove extra padding so scroll fits cleanly */
    }

    .details-row table {
        min-width: 900px; /* Force scroll instead of squashing */
    }

}
/* ===================================== */
/* GLOBAL MOBILE HARD WIDTH FIX         */
/* ===================================== */

@media (max-width: 768px) {

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .layout-wrapper,
    .main-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    .attendance-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .attendance-hr-table {
        min-width: 900px;   /* Force horizontal scroll instead of squashing */
        table-layout: auto;
    }

    .details-table {
        min-width: 1100px;  /* Details table wider than parent */
    }

}
/* ===================================== */
/* FIX FLEX WRAPPER BREAKING TABLES     */
/* ===================================== */

@media (max-width: 768px) {

    .main-content {
        display: block;              /* Remove flex centering */
        padding: 70px 10px 20px 10px;
    }

    .attendance-container {
        width: 100%;
        min-width: 0;                /* CRITICAL */
        overflow-x: auto;
    }

    .attendance-hr-table {
        min-width: 900px;            /* Forces horizontal scroll */
        table-layout: auto;
    }

    .details-row table {
        min-width: 1100px;
    }

}
