/* Add these rules to your existing <style> section */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 15px;  /* Add some padding on the sides if needed */
}

/* For any tables that might cause overflow */
.table-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;  /* Smooth scrolling on iOS */
}

/* Make sure all images don't cause overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure forms stay within bounds */
form {
    max-width: 100%;
}

/* Handle any flex containers */
.nav, .header, .nav-links {
    max-width: 100%;
}


.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
    padding: 8px 0;
    flex: 1;
}



/* Status for an order coloring*/
.status-order-pending {
    background-color: orange !important;
}

.status-order-other {
    background-color: #ffcdd2 !important;
}

.status-order-complete {
    background-color: #c8e6c9 !important;
}






/* Global status colors */

.status-pending {
    background-color: #ffcdd2; 
}


.status-programmed {
    background-color: #fff9c4; 
}


.status-complete {
    background-color: #c8e6c9; /* Green for Complete */
}

.status-other {
    background-color: #fff9c4; /* Light Yellow for other statuses */
}

.status-machined {
    background-color: #c8e6c9; /* Green for Machined */
}


.status-in-progress {
    background-color: #fff9c4 !important;
}

.status-onhold {
    background-color: rgb(245, 135, 17) !important; /* Orange for On Hold */
}

.status-waiting, .status-printed, .status-cut {
    background-color: #ffcdd2; /* Light Red for Waiting or Early Stages */
}

.status-sewn-needs-filling,
.status-sewn-needs-frame-48hrs,
.status-sewn-needs-frame-5days,
.status-sewn-needs-frame-10days {
    background-color: #fff9c4; /* Yellowish for intermediate stages */
}

.status-goods-ready {
    background-color: #c8e6c9; /* Green for Goods Ready */
}


































.quantity-cell {
    text-align: center;
}

.badge {
    margin-right: 3px;
}
.badge-primary {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}
.badge-success {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}
.badge-danger {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}











/* General styles for all screen sizes */
.order-detail-page h2 {
    margin-bottom: 20px;
}

/* Desktop Table Styling */
.desktop-table {
    width: 80%; /* Make table wider on desktop */
    margin: 0 auto; /* Center the table */
    border-collapse: collapse;
}

.desktop-table th, 
.desktop-table td {
    text-align: left;
    padding: 12px 15px; /* Increase padding for readability */
    border: 1px solid #ddd; /* Add borders between cells */
}

.desktop-table th {
    background-color: #f4f4f4; /* Light grey background for headers */
    font-weight: bold;
    width: 30%; /* Make label column narrower */
    text-align: left;
}

.desktop-table td {
    width: 70%; /* Make value column wider */
    text-align: left;
}

/* Mobile Card Layout */
@media screen and (max-width: 768px) {
    .desktop-table {
        display: none; /* Hide desktop table on mobile */
    }

    .mobile-table {
        display: block; /* Show mobile card layout */
    }

    .order-details-card {
        display: flex;
        flex-direction: column;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .order-detail-item {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .order-detail-item:last-child {
        border-bottom: none;
    }

    .label {
        font-weight: bold;
        color: #555;
        flex: 0 0 40%; /* Label width */
        text-align: left;
    }

    .value {
        flex: 1 0 60%; /* Value width */
        text-align: right;
        color: #333;
    }
}




/* Desktop styles */
.desktop-table {
    display: table; /* Show desktop table by default */
}

.mobile-table {
    display: none; /* Hide mobile table on desktop */
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .desktop-table {
        display: none; /* Hide desktop table on mobile */
    }

    .mobile-table {
        display: block; /* Show mobile table on mobile */
    }
}

























/* Mobile card styling for tables */
@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none; /* Hide table headers */
    }

    tr {
        margin-bottom: 15px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        overflow-x: auto;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
        word-wrap: break-word; /* Allow text to wrap */
        overflow: hidden;
        position: relative;
    }

    td:last-child {
        border-bottom: none;
    }

    td:before {
        content: attr(data-label);
        font-weight: bold;
        font-size: 12px;
        color: #555;
        flex-shrink: 0;
        width: 120px; /* Fixed width for labels */
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden; /* Prevent label overflow */
        margin-right: 10px;
    }

    /* Handle large text overflow */
    td a, td span, td div {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Allow horizontal scrolling for wide tables */
    tr {
        overflow-x: auto;
    }

    td {
        min-width: 150px; /* Ensure columns have some width */
    }

    /* Notes container adjustments */
    .notes-container textarea {
        width: calc(100% - 20px);
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 5px;
        resize: vertical;
    }

    .notes-container .save-btn {
        margin-top: 10px;
        width: 100%;
        padding: 12px;
        font-size: 14px;
        color: #fff;
        background-color: #28a745;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .notes-container .save-btn:hover {
        background-color: #218838;
    }
}






/* Default hidden state */
.scroll-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff; /* Primary color */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    text-align: center;
    line-height: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.8;
    z-index: 1000;
}

/* Hover effect */
.scroll-top:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile-specific styling */
@media (max-width: 768px) {
    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        line-height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

/* Desktop-specific styling */
@media (min-width: 769px) {
    .scroll-top {
        width: 60px;
        height: 60px;
        font-size: 20px;
        line-height: 60px;
        bottom: 30px;
        right: 30px;
    }
}











/* Hide the desktop table on mobile */
@media screen and (max-width: 768px) {
    .desktop-parts-table {
        display: none;
    }
}

/* Mobile Cards */
.mobile-parts-cards {
    display: none; /* Hide the cards on desktop */
}





/* Hide this table on desktop */
@media screen and (min-width: 769px) {
    .mobile-only-table {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .mobile-parts-cards {
        display: block; /* Show cards on mobile */
    }

    .part-card {
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .card-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .label {
        font-weight: bold;
        color: #555;
        flex: 0 0 40%;
    }

    .value {
        flex: 1 1 60%;
        text-align: right;
        color: #333;
    }

    .delete-btn {
        background-color: #dc3545;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
    }

    .delete-btn:hover {
        background-color: #c82333;
    }
}



















/* Prevent zoom on input focus */
input[type="text"],
input[type="submit"],
textarea {
    font-size: 16px; /* Minimum font size to prevent zooming */
    -webkit-text-size-adjust: 100%; /* Ensures consistent text scaling */
    box-sizing: border-box; /* Consistent padding handling */
}


textarea, input {
    touch-action: manipulation; /* Optimize touch interactions */
    outline: none; /* Removes the blue outline on focus */
}

input:focus, textarea:focus {
    border: 2px solid #007bff; /* Add a subtle border change on focus */
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5); /* Optional: subtle glow */
}













/* Keep the essential mobile utility classes */
@media screen and (max-width: 768px) {
    .container, .search-form, .filter-form {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    input[type="text"],
    input[type="submit"],
    select,
    textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
}


































body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
}





.nav {
    background-color: #555;
    display: flex;
    justify-content: space-between; /* Ensures main links and profile are on opposite ends */
    align-items: center; /* Aligns items vertically in the center */
    padding: 0 10px; /* Optional: Adds some padding on the left and right ends */
    position: relative;
    z-index: 1000;
}

.nav-links, .profile-link , .admin-link{
    display: flex;
    align-items: center;
    
}

.nav-links a {
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    white-space: nowrap; /* Prevents the text from wrapping onto multiple lines */
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* Adds a light border to the right of each link */
}

.nav-links a:last-child {
    border-right: none; /* Removes the border from the last link in the list */
}




.profile-link a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover {
    background-color: #777;
}






/* EDIT JOB PAGE */

.edit-job-page .edit-job-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.edit-job-page .form-group {
    margin-bottom: 15px;
}

.edit-job-page .form-group label {
    display: block;
    margin-bottom: 5px;
}

.edit-job-page .form-group input, 
.edit-job-page .form-group select, 
.edit-job-page .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.edit-job-page .save-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.edit-job-page .flex-container {
    display: flex;
    justify-content: space-between;
}

.edit-job-page .flex-item {
    width: 48%;
}

.edit-job-page table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.edit-job-page th, 
.edit-job-page td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.edit-job-page th {
    background-color: #f2f2f2;
    color: #333;
}

.edit-job-page .add-to-job, 
.edit-job-page .remove-from-job, 
.edit-job-page .add-all-to-job {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.edit-job-page .add-to-job, 
.edit-job-page .add-all-to-job {
    background-color: #4CAF50;
    color: white;
}

.edit-job-page .remove-from-job {
    background-color: #f44336;
    color: white;
}

.edit-job-page #part-search {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}














/* CREATE JOB PAGE  */

.create-job-page .create-job-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.create-job-page .form-group {
    margin-bottom: 15px;
}

.create-job-page .form-group label {
    display: block;
    margin-bottom: 5px;
}

.create-job-page .form-group input, 
.create-job-page .form-group select, 
.create-job-page .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.create-job-page .save-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.create-job-page .flex-container {
    display: flex;
    justify-content: space-between;
}

.create-job-page .flex-item {
    width: 48%;
}

.create-job-page table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.create-job-page th, 
.create-job-page td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.create-job-page th {
    background-color: #f2f2f2;
    color: #333;
}

.create-job-page .add-to-job, 
.create-job-page .remove-from-job, 
.create-job-page .add-all-to-job {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.create-job-page .add-to-job, 
.create-job-page .add-all-to-job {
    background-color: #4CAF50;
    color: white;
}

.create-job-page .remove-from-job {
    background-color: #f44336;
    color: white;
}

.create-job-page #part-search {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}









/* Base nav styles */
.nav {
    background-color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    position: relative;
}

/* Burger menu styles */
.burger-menu {
    display: none; /* Hidden by default for desktop */
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    position: relative;
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    /* Show burger menu on mobile */
    .burger-menu {
        display: block;
        position: absolute;
        top: 10px;
        left: 10px;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: #555;
        position: absolute;
        top: 50px; /* Adjust based on your header height */
        left: 0;
        z-index: 999;
    }

    /* Show nav links when active */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 16px 15px 30px; 
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Profile link adjustments for mobile */
    .profile-link {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    /* Adjust main nav container */
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        min-height: 50px; /* Give some minimum height for the burger menu */
        padding-bottom: 20px
    }
}





























.container {
    padding: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background-color: #aaaaaa;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

.num-orders-form form {
    display: inline-block; /* This will make each form display inline */
}


/* Style for links in the table */
table a {
    color: #428bca;
    text-decoration: none;
}

table a:visited {
    color: #428bca; /* Change to desired color for visited links */
}

table a:hover {
    color: #0056b3;
    text-decoration: underline;
}


.search-form, .num-orders-form, #statusFilter {
    margin-bottom: 20px;
    display: block;
}

.search-form input[type="text"], .search-form input[type="submit"], #statusFilter {
    padding: 8px 12px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-form input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.search-form input[type="submit"]:hover {
    background-color: #0056b3;
}

.num-orders-form label {
    margin-right: 10px;
}

.num-orders-form button {
    padding: 5px 10px;
    margin-right: 5px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.num-orders-form button:hover {
    background-color: #218838;
}











.pagination-container {
    width: 100%;
    padding: 20px 0; /* Changed to only vertical padding */
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #eee;
    box-sizing: border-box; /* Add this */
}

.pagination-container form {
    display: flex;
    width: 100%;
    padding: 0 20px; /* Add horizontal padding to the form instead */
    box-sizing: border-box; /* Add this */
}

.pagination-container button#show-more {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box; /* Add this */
}

/* Add this to ensure no horizontal overflow */
body {
    overflow-x: hidden;
}



.proof-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px; /* Add space after the gallery */
}

.proof-thumbnail {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 30px;
}

.proof-notes {
    position: absolute;
    width: 100%; /* Match parent width */
    padding: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    word-wrap: break-word; /* Ensure text wraps */
    top: 100%; /* Position below image */
}

.proof-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}











.order-details-container {
    margin: 20px auto;
    max-width: 100%;
}

.order-details-table {
    border-collapse: collapse;
    margin: auto;
}

.order-details-table th, .order-details-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
}

.order-details-table th {
    background-color: #b4b6b4;
    color: white;
}

/* Override general table cell color */
.order-details-table td {
    background-color: #f9f9f9;
}






















































.status-green {
    background-color: #c8e6c9 !important;
    color: rgb(0, 0, 0); /* or any other text color that suits */
}

.status-red {
    background-color: #ffcdd2 !important;
    color: black; /* or any other text color that suits */
}

.status-yellow {
    background-color: orange !important;
    color: black; /* or any other text color that suits */
}

.inline-form input[type="text"] {
    margin-right: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}



.status-orange {
    background-color: orange;
    color: black; /* or any other text color that suits */
}






.filter-form {
    margin-bottom: 20px;
    text-align: left;
}




/* Style for the dropdown */
.filter-form select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    outline: none;
    appearance: none; /* Remove default styling */
    -webkit-appearance: none; /* For Safari */
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); /* Add custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}



/* Style for the submit button */
.filter-form input[type="submit"] {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    margin-left: 10px;
}


.filter-form input[type="submit"]:hover {
    background-color: #0056b3;
}



.filter-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}


/* Container for notes and button */
.notes-container {
    display: flex; /* Use flexbox to align items horizontally */
    align-items: center; /* Align items vertically in the center */
    width: 100%; /* Full width of the container */
}

.notes-container form {
    display: flex; /* Use flexbox within the form as well */
    width: 100%; /* Full width of the container */
}

/* Style for the textarea */
textarea.autoresize {
    flex-grow: 1; /* Allow textarea to grow and fill available space */
    margin-right: 10px; /* Space between textarea and button */
    min-height: 38px; /* Minimum height to align with button */
    resize: none; /* Disable manual resize */
}

/* Style for the save button */
.save-btn {
    white-space: nowrap; /* Prevent text wrapping in the button */
    padding: 8px 15px; /* Padding inside the button */
    border: 1px solid #ccc; /* Border for the button */
    background-color: #4CAF50; /* Background color */
    color: white; /* Text color */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
}

.save-btn:hover {
    background-color: #45a049; /* Darker shade on hover */
}









/* Style for the form group */
.form-group {
    margin-bottom: 15px;
}

/* Style for the label */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Style for the textarea */
.form-control.autoresize {
    width: 90%; /* Full width */
    padding: 10px; /* Padding inside the textarea */
    border: 1px solid #ccc; /* Light grey border */
    border-radius: 4px; /* Rounded corners */
    font-family: Arial, sans-serif; /* Font style */
    font-size: 14px; /* Font size */
    line-height: 1.5; /* Line height for the text */
    resize: none; /* Allow only vertical resizing */
}

/* Style for the textarea when it is focused */
.form-control.autoresize:focus {
    outline: none;
    border-color: #007bff; /* Change border color when focused */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Add a glow effect */
}


.form-control {
    display: block;
    width: 90%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

/* Apply this class specifically to your select element */
.form-control-select {
    -webkit-appearance: none;  /* Removes default styling of dropdown for Webkit browsers */
    -moz-appearance: none;    /* Removes default styling of dropdown for Mozilla browsers */
    appearance: none;         /* Removes default styling of dropdown for the rest */
    /* background: url('path_to_custom_arrow_image') no-repeat right .75rem center/15px 15px; Path to your custom arrow image */
    cursor: pointer;
}

.form-control-select:hover {
    border-color: #80bdff;
}

.form-control-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}


.btn-warning {
    background-color: #ffa500; /* Orange color */
    border-color: #ffa500;
    color: white;
}

.btn-warning:hover {
    background-color: #ff8c00; /* Darker orange on hover */
    border-color: #ff8c00;
    color: white;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}




.login-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-button {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.error-message {
    color: rgb(0, 255, 183);
    margin-top: 1rem;
}







.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Adjust as needed */
}

.flex-item {
    flex: 1;
    padding-right: 10px; /* Adjust spacing between items */
}






.padded-section {
    padding-top: 20px; /* Adjust the padding value as needed */
    padding-bottom: 20px; /* Adjust the padding value as needed */
}



.highlight {
    background-color: yellow;
}





.import-form {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
padding: 20px;
}

.import-form form {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 500px;
margin: auto;
}

.import-form label {
display: block;
margin-bottom: 10px;
font-weight: bold;
}

.import-form input[type="file"] {
display: block;
margin-bottom: 20px;
}

.import-form button {
background-color: #007bff;
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}

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









.picking-status-picked {
    background-color: #c8e6c9; /* Light green for picked */
}

.picking-status-on-hold {
    background-color: #fff9c4; /* Light yellow for on hold */
}

.picking-status-waiting {
    background-color: #ffcdd2; /* Light red for waiting */
}

.picking-status-in-progress {
    background-color: #FFA500; /* Orange, same as On Hold */
}



.picking-status-built {
    background-color: #c8e6c9; /* Light green for Built */
}

}
.profile-container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.profile-header {
    border-bottom: 2px solid #007bff;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.profile-header h2 {
    color: #007bff;
}
.user-details {
    padding: 10px;
}
.detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #007bff;
}
.label {
    font-weight: bold;
    color: #555;
}
.value {
    text-align: right;
    color: #777;
}







.table-container {
    overflow-x: auto; /* Enables horizontal scrolling if the table overflows */
    max-width: 100%;
  }







    /* Container for checkboxes */
    .checkbox-container {
        display: flex;
        align-items: center;
        justify-content: start;
        gap: 20px; /* Space between checkboxes */
        padding: 10px;
        background-color: #f0f0f0;
        border-radius: 8px;
    }

    /* Custom checkbox styling */
    .custom-checkbox {
        display: flex;
        align-items: center;
        position: relative;
    }

    /* Hide default checkbox */
    .custom-checkbox input[type="checkbox"] {
        display: none;
    }

    /* Custom box */
    .custom-checkbox span {
        display: inline-block;
        height: 20px;
        width: 20px;
        background: #fff;
        border: 2px solid #007bff;
        border-radius: 4px;
        cursor: pointer;
        position: relative;
    }

    /* Checkmark style */
    .custom-checkbox input[type="checkbox"]:checked + span::before {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #007bff;
        font-size: 16px;
    }

    /* Label */
    .custom-checkbox label {
        margin-left: 8px;
        cursor: pointer;
    }

    .update-button {
        background-color: #007bff;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        margin-left: 20px; /* Add space between checkboxes and button */
    }

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



/* Style for the Show More button */
.show-more-button {
    background-color: #0074D9; /* Set your desired background color */
    color: white; /* Text color */
    border: none; /* Remove default button border */
    padding: 10px 20px; /* Adjust padding as needed */
    font-size: 14px; /* Font size */
    cursor: pointer; /* Change cursor on hover */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Smooth transition effect */
}

/* Hover effect */
.show-more-button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}


.map-controls {
    margin-bottom: 20px; /* Adjust as needed for spacing */
}

.map-container {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0; /* Adjust the distance from the top when it becomes sticky */
    width: 300px; /* Adjust the width as needed */
    height: 200px; /* Adjust the height as needed */
    z-index: 1; /* Ensure it's above other content */
}
  
  
.map-wrapper {
    position: fixed;
    top: 20px; /* Adjust the top position as needed */
    right: 20px; /* Adjust the right position as needed */
    width: 300px; /* Adjust the width as needed */
    height: 45vh;
    z-index: 9999; /* Ensure the map stays on top of other elements */
}



input[type="date"] {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}







.map-placeholder {
    height: 45vh; /* Adjust this value to match the height of the map container */
}

.map-wrapper {
    position: fixed;
    top: 500px; /* Adjust this value to set the initial distance from the top */
    left: 0;
    width: 100%;
    height: 320px;
    z-index: 9999;
    transition: top 0s; /* Add a smooth transition effect */
}

.map-container {
    width: 100%;
    height: 100%;
}



.custom-checkbox {
    transform: scale(1.5); /* Increase the size of the checkboxes */
    margin-right: 2px; /* Add some spacing to the right of the checkboxes */
}





.highlight {
    background-color: #f8f8f8;
    transition: background-color 0.2s;
}

#routePartsTable td {
    padding: 8px;
    vertical-align: middle;
}












.route-info {
    margin-bottom: 10px;
}

.route-info span {
    font-weight: bold;
}

.route-name {
    margin-bottom: 10px;
}

.route-name label {
    font-weight: bold;
}

.route-name input {
    padding: 5px;
    margin-left: 5px;
}

.button {
    padding: 10px 20px;
    background-color: #0074D9;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    margin-right: 10px;
}

.button:hover {
    background-color: #0074D9;
}


.input-field {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 200px;
    margin-left: 5px;
}


.route-info-table {
    margin-bottom: 10px;
    border-collapse: collapse;
    width: auto;
    background-color: #f2f2f2;
}

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

.route-info-table th {
    background-color: #565656;
    color: white;
}












.highlight {
    background-color: #f0f0f0;
}

.moveUpBtn,
.moveDownBtn,
.deleteBtn {
    padding: 5px 10px;
    margin-right: 5px;
}









#damagedPartRequestOverlay textarea, #damagedPartRequestOverlay input[type="submit"] {
    width: 100%;
    margin-top: 10px;
}

#damagedPartRequestOverlay textarea {
    height: 100px;
}








.btn-primary {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Prevent style change on click */
.btn-primary:active {
    background-color: #007bff;
    color: #fff;
    border: none;
}







.delete-order-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.delete-order-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.delete-order-details {
    margin-bottom: 30px;
}

.delete-order-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.order-number {
    font-weight: bold;
    color: #dc3545;
}

.delete-order-warning {
    color: #dc3545;
    font-weight: bold;
}

.delete-order-form {
    text-align: right;
}

.delete-order-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.delete-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #dc3545;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c82333;
}

.cancel-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #333;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

.delete-order-button {
    margin-top: 20px;
    text-align: right;
}

.delete-order-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #dc3545;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-order-btn:hover {
    background-color: #c82333;
}













#progress-container {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

#progress-bar {
    width: 0;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.5s ease;
}






.date-input {
    width: 150px; /* Adjust this value as needed */
}

/* Optional: Style improvements for better visual appearance */
.date-input::-webkit-calendar-picker-indicator {
    margin-left: -20px;
}

.date-input::-webkit-inner-spin-button {
    display: none;
}

.date-input::-webkit-clear-button {
    display: none;
}










/* New styles for equal-width table */
.equal-width-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.equal-width-table th,
.equal-width-table td {
    width: 7.69%; /* 100% divided by 13 columns */
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equal-width-table th {
    background-color: #aaaaaa;
    color: white;
    font-weight: bold;
}

.equal-width-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.equal-width-table tr:hover {
    background-color: #ddd;
}

/* Make product description column wider */
.equal-width-table th:nth-child(3),
.equal-width-table td:nth-child(3) {
    width: 40%; /* Increase this value to make it wider */
}

/* Adjust other columns to maintain 100% total width */
.equal-width-table th,
.equal-width-table td {
    width: 6.5%; /* Slightly reduce width of other columns */
}

/* Keep comments column wider as well */
.equal-width-table th:nth-child(10),
.equal-width-table td:nth-child(10) {
    width: 15%; /* Keep comments column wider */
}

/* Add tooltip for truncated content */
.equal-width-table td[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1;
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    white-space: normal;
    max-width: 200px;
    word-wrap: break-word;
}

/* Container for table with horizontal scroll */
.table-container {
    width: 100%;
    overflow-x: auto;
}



body.loading:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8) url('path/to/your/loading-spinner.gif') no-repeat center center;
    z-index: 1000;
}




















/* General Page Styles */
.todaysvans-container {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
}

.todaysvans-date-header {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.todaysvans-date-header h1 {
    margin: 0;
    color: #007bff;
    font-size: 24px;
}

.todaysvans-controls {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.todaysvans-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.todaysvans-btn-primary {
    background-color: #007bff;
    color: white;
}

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

.todaysvans-btn:active {
    transform: scale(0.98);
}

.todaysvans-btn-icon {
    display: inline-block;
    transition: transform 0.3s;
}

/* Toggle Switch */
.todaysvans-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    display: flex;
    align-items: center;
}

.todaysvans-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.todaysvans-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.todaysvans-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.todaysvans-toggle-switch input:checked + .todaysvans-toggle-slider {
    background-color: #2196F3;
}

.todaysvans-toggle-switch input:checked + .todaysvans-toggle-slider:before {
    transform: translateX(26px);
}

.todaysvans-toggle-label {
    margin-left: 70px;
    white-space: nowrap;
}

/* Delivery Plan Styles */
.todaysvans-delivery-plan {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 30px;
    padding: 15px;
}

.todaysvans-plan-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 0;
    cursor: pointer;
    user-select: none;
}

.todaysvans-plan-content {
    display: none;
}

.todaysvans-drop-section {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-top: 15px;
}

.todaysvans-drop-header {
    background-color: #e9ecef;
    padding: 10px;
    margin: 0;
}

.todaysvans-drop-content {
    padding: 15px;
}

.todaysvans-toggle-icon {
    display: inline-block;
    width: 20px;
    transition: transform 0.3s;
}

.todaysvans-table-container {
    overflow-x: auto;
}

.todaysvans-equal-width-table {
    width: 100%;
    table-layout: fixed;
}

.todaysvans-equal-width-table th,
.todaysvans-equal-width-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #dee2e6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status Classes */
.todaysvans-status-complete, .todaysvans-status-built, .todaysvans-status-goodsready {
    background-color: #d4edda;
}

.todaysvans-status-onhold {
    background-color: #f8d7da;
}

.todaysvans-all-built {
    background-color: #d4edda;
    border: 2px solid #28a745;
}















#van-calendar {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#van-calendar[style*="visibility: visible"] {
    opacity: 1;
}

.fc-daygrid-day {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fc-daygrid-day:hover {
    background-color: #f0f0f0; /* Light gray */
}




.fc-event {
    cursor: pointer;
    padding: 2px 4px;
    margin: 1px 0;
}

.fc-event:hover {
    opacity: 0.8;
}

.fc-daygrid-event {
    white-space: normal !important;
    align-items: center;
}


#calendar {
    max-width: 800px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.selected-date {
    background-color: #007bff !important;
    color: white !important;
}



.calendar-container {
    padding: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.calendar-hidden {
    display: none;
}

#toggleCalendar {
    margin-bottom: 15px;
}



.department-filter {
    margin: 20px 0;
}

.form-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background-color: white;
    min-width: 200px;
}




/* Shrink header text and padding on mobile */
@media screen and (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

    .header h1 {
        font-size: 18px;
        line-height: 1.3;
        margin: 0;
        word-break: break-word;
    }
}
