* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    font-family: Arial, sans-serif;
    background-color: #FFFFFF; /* White background */
    color: #000000; /* Black text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

.container {
    max-width: auto;
    background-color: #F8F9FA; /* Light gray background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
    text-align: center;
    color: #21709F; /* Dark blue accent */
    text-decoration: underline; /* Underlines the text */
}

h2, h3 {
    text-align: center;
    color: #21709F; /* Dark blue accent */
}

h4 {
    text-align: center;
    color: white;
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}
select[multiple] {
    width: 100%;
    height: auto;
    min-height: 100px; /* Adjust height */
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.iframe-container {
    width: 100%;
    height: 60vh;
    border: 1px solid #444;
    background-color: white;
    margin-top: 15px;
    border-radius: 5px;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow-x: hidden;
    display: block;
}

/* ####################Signatures Styling###################### */
.signature-container {
    border: 1px solid #CCC;
    width: 100%;
    height: 150px;
    background-color: #FFFFFF;
}
.signature-container-big {
    border: 1px solid #CCC;
    width: 100%;
    height: 600px;
    background-color: #FFFFFF;
}
.clear-btn {
    margin-top: 8px;
    background-color: #FFD700; /* Gold */
    color: black;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}
canvas {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-color: white;
}
/* ####################Buttons ###################### */
button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #21709F; /* Dark blue */
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.button-container {
    margin-top: 20px;
    text-align: center;
}

.button-container .btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    background-color: #21709F;
    color: white;
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.2);
}

.button-container .btn:hover {
    background-color: #666;
    box-shadow: 0px 6px 15px rgba(255, 255, 255, 0.3);
}

.logo {
    max-width: 300px;
    margin: 0 auto 20px auto;
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #CCC;
    background-color: #FFFFFF;
    color: #000000;
    border-radius: 5px;
    font-size: 14px;
}

.submitting {
    background-color: #ccc; /* Change the background color */
    color: #fff; /* Change text color */
    cursor: not-allowed; /* Disable mouse pointer */
}

/* ####################Checkbox Styling###################### */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    background: #FFFFFF;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #CCC;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    font-size: 14px;
    color: #000;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #21709F;
    border-radius: 3px;
    cursor: pointer;
    background: transparent;
    position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #21709F;
    border-color: #21709F;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✔';
    font-size: 12px;
    color: white;
    position: absolute;
    top: 1px;
    left: 2px;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .container {
        width: 95vw;
        padding: 15px;
    }

    .iframe-container {
        height: 50vh;
    }

    .signature-container {
        height: 150px;
    }

    button {
        font-size: 16px;
        padding: 10px;
    }
}


.login-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.login-btn {
    padding: 10px 16px;
    font-size: 14px;
    background-color: #21709F;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    transition: 0.3s;
}

.login-btn:hover {
    background-color: #3399ff;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5);
}

.section-btn {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #21709F;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin: 10px 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.section-btn:hover {
    background-color: #777;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 10px; /* Space between buttons */
    margin-top: 10px;
    max-width: 600px;
    margin: auto;
}
.center-button {
    grid-column: span 2; /* Makes it span both columns */
    text-align: center;
    justify-self: center; /* Ensures horizontal centering */
}
/* Pop-up Alert */
.alert {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #d32f2f;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0px 6px 15px rgba(255, 0, 0, 0.5);
    display: none;
    font-size: 1.1em;
    font-weight: bold;
    z-index: 1000;
}

.home-btn {
    text-align: center;
    margin-top: 20px;
}

.home-btn .btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s;
    margin: 10px 5px;
    background-color: #21709F;
    color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.home-btn .btn:hover {
    background-color: #777(3, 82, 3);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

/* Specific styling for logout button */
.home-btn .logout {
    background-color: #d32f2f;
}

.home-btn .logout:hover {
    background-color: #ff4444;
}

/* Specific styling for change password button */
.home-btn .change-password-btn {
    background-color:#21709F;
    color: black;
}

.home-btn .change-password-btn:hover {
    background-color: #777;
}

.search-container {
    display: flex;
    align-items: center; /* Ensures vertical alignment */
    gap: 10px; /* Adds spacing between elements */
    margin-bottom: 15px;
}

.search-box {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
    color: #21709F;
    text-align: center;
}

#verification-filter {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    min-width: 200px; /* Matches width of search box */
}
/* Table Styling */
/* Ensure table borders are visible between columns */
.table-container {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
}

.table {
    width: 100%;
    background: white;
    border-collapse: collapse; /* Ensures clean column separation */
    border-radius: 8px;
    overflow: hidden;
    color: #21709F;
}

.table th, .table td {
    text-align: center;
    border: 1px solid #ccc; /* Adds vertical and horizontal borders */
    padding: 8px;
}

.table th {
    background-color: #21709F;
    color: white;
}

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

.btn-view {
    background-color: #28a745;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9em;
}

.btn-view:hover {
    background-color: #218838;
}
.highlight-section {
    background-color: #21709F;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    margin-top: 15px;
    border: 8px solid Red;
    color: white;
}
/* Special Checkbox Group - Red Background */
.red-checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3-column grid for compact layout */
    gap: 5px;
    background: #21709F;
    padding: 10px;
    border-radius: 5px;
}

.red-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    font-size: 14px;
    color: white;
}

.red-checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid white;  /* White border for visibility */
    border-radius: 3px;
    cursor: pointer;
    background: transparent;
    position: relative;
}

.red-checkbox-group input[type="checkbox"]:checked {
    background-color: white; /* White background when checked */
    border-color: white;
}

.red-checkbox-group input[type="checkbox"]:checked::after {
    content: '✔';
    font-size: 12px;
    color: #21709F; /* Dark blue checkmark */
    font-weight: bold;
    position: absolute;
    top: 1px;
    left: 2px;
}

.btn-view-report {
    background-color: #28a745; /* Green background */
    color: white;
    padding: 6px 10px; /* Adjusted padding to reduce height */
    font-size: 14px; /* Slightly smaller font size */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s;
    display: inline-block;
    white-space: nowrap; /* Prevent text wrapping */
}

.btn-view-report:hover {
    background-color: #218838; /* Darker green on hover */
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 4px;
}

.error-input {
    border: 2px solid red !important;
    background-color: #ffe6e6;
    padding: 5px;
    border-radius: 4px;
}

.checkbox-group.error-input {
    padding: 10px;
    border: 2px solid red !important;
    background-color: #ffe6e6;
    border-radius: 4px;
}

.image-upload-container {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.image-upload-container {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

#imagePreviewContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ccc;
}
@media print {
    .image-page {
        page-break-before: always !important;
        text-align: center !important;
        display: block !important; /* Ensures images appear in print */
    }

    .image-page img {
        max-width: 100% !important;
        height: auto !important;
        border: 1px solid #21709F !important;
        border-radius: 3px !important;
        margin-top: 10px !important;
        display: block !important;
    }
    @page {
        size: 11in 8.5in landscape;
        margin: 0.25in;
    }

    html, body {
        background: white !important;
        color: black !important;
        margin: 0;
        padding: 0;
        font-size: 10pt;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-page {
        page-break-before: always;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .print-page:first-of-type {
        page-break-before: auto;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        page-break-inside: avoid;
    }

    .card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        page-break-inside: avoid;
    }

    .jobstatus-chart, .pie-chart-canvas, #crewJobStatusChart {
        height: 180px !important;
        max-height: 180px !important;
        aspect-ratio: auto !important;
    }

    header {
        padding: 0.25rem 0.5rem;
        text-align: center;
        page-break-after: avoid;
    }

    .logo {
        max-height: 45px !important;
    }

    button,
    input,
    select,
    form {
        display: none !important;
    }
}
.dropdown-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 0 10px;
    height: 38px;
    background: #fff;
    position: relative;
    width: 100%;
    border-radius: 4px;
    box-sizing: border-box;
}
.dropdown-arrow {
    margin-left: 10px;
    font-size: 14px;
}
.dropdown-content {
    display: none; /* Hide by default */
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 600px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 5px;
}

.dropdown-content.show {
    display: flex; /* Show it using flex so layout stays intact */
}
.dropdown-content label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 4px 8px;
    white-space: nowrap;         /* Prevent text wrapping */
    overflow: hidden;            /* Optional: hides overflow */
    text-overflow: ellipsis;     /* Optional: shows ... if too long */
    white-space: nowrap;
    overflow-x: auto;
}
.dropdown-content input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
    transform: translateY(-1px); /* micro adjustment for better centering */
}
.dropdown-arrow {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-left: 10px;
}