@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Global Styles */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Main Containers - layout controlled by App.jsx Tailwind (content-area margin/padding) */
.app-container.authenticated {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #f5f5f5;
}

/* content-area / page-content: fills space right of sidebar, scrolls; margin from App.jsx */
.content-area,
.page-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: margin-left 0.3s ease;
}

@media screen and (max-width: 768px) {
    .content-area,
    .page-content {
        min-width: 0;
        max-width: 100%;
    }
}

/* Welcome Screen */
.welcome-screen-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.welcome-screen-container .company-logo {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    display: none;
    z-index: 1000;
    transition: all 0.5s ease-in-out;
}

.notification.error {
    background-color: #f44336;
}

.notification.show {
    display: block;
}

/* Table Styling */
.table-container {
    height: 69vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


  /* Sidebar styling */
  .sidebar {
    height: 100vh;
    width: 48px; /* Narrow width when not hovered */
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    transition: width 0.3s, background-color 0.3s;
    overflow-x: hidden;
    padding-top: 20px;
    z-index: 100;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    font-size: 17px;
}

@media (min-width: 769px) {
  .sidebar:hover {
      width: 240px; /* Expand width on hover */
  }
  .sidebar:hover ul li a {
      color: #fff; /* Brighten the text when sidebar is expanded */
  }
  .sidebar ul li:hover {
      background-color: #575757; /* Highlight the entire block */
      color: #fff; /* Brighten the text and icon on hover */
  }
  .sidebar ul li a:hover {
      background-color: #575757; /* Highlight the entire block */
      color: #fff; /* Brighten the text and icon on hover */
  }
  .sidebar ul li a:hover i {
      color: #fff; /* Brighten the icon on hover */
  }
  .sidebar ul li a:hover::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.1); /* Subtle overlay effect */
  }
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: #b1b1b1;
}

.sidebar ul li {
    display: flex;
    align-items: center;
    padding: 35px 10px;
    transition: background-color 0.3s;
    cursor: pointer;
    margin: 0;
}

.sidebar ul li i {
    margin-right: 10px;
    min-width: 30px; /* Set a fixed width for icons */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}



.sidebar ul li a {
    text-decoration: none;
    color: #b0b0b0; /* Gray color for hidden state */
    display: flex;
    align-items: center;
    padding: 15px 10px; /* Adjust padding for better alignment */
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Add ellipsis if text is too long */
}

.sidebar ul li a i {
    margin-right: 15px; /* Space between icon and text */
    min-width: 30px; /* Ensure consistent space for icons */
    text-align: center; /* Center align the icons horizontally */
}

.sidebar ul li a:hover {
    background-color: #575757; /* Highlight the entire block */
    color: #fff; /* Brighten the text and icon on hover */
}

.sidebar ul li a:hover i {
    color: #fff; /* Brighten the icon on hover */
}

.sidebar ul li a:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle overlay effect */
}

.sidebar ul li a::before {
    transition: background-color 0.3s; /* Smooth color transition */
}


.overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.welcome-screen-container h1 {
    margin-bottom: 10px;
}


.welcome-screen-container p {
    font-size: 16px; /* Adjust font size if needed */
    color: #555; /* Adjust text color */
}



/* Basic stuff for the content */


/* Ensure root and app layout fill the screen - use 100% to avoid scrollbar overflow from 100vw */
#root, .app-layout {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
}


  /* Ensure the HTML and body take full viewport size */
  html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

h1, h2 {
    color: #333;
}

p {
    font-size: 16px;
    line-height: 1.5;
}

footer {
    margin-top: 20px;
    text-align: center;
    color: #777;
}


#tours-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px; /* TODO: MAKE IT EDITABLE */
    margin: 0; /* Remove default margin */
}

#tours-table thead {
    position: sticky; /* Make the header sticky */
    top: 0; /* Stick the header to the top of the container */
    z-index: 10; /* Ensure the header is above the scrollable content */
    background-color: #3b3b3b; /* Match the header background color */
}

#tours-table th, #tours-table td {
    padding: 10px;
    border: 1px solid #ddd;
    word-wrap: break-word;
    text-align: left; /* Ensure alignment */
}

#tours-table th {
    background-color: #3b3b3b; /* Keep the header color consistent */
    color: #ffffff;
}

#tours-table tbody tr:nth-child(even) {
    background-color: #ffffff; /* Zebra striping for rows */
}

#tours-table tbody tr:nth-child(odd) {
    background-color: #f0f0f0; /* Zebra striping for rows */
}

#tours-table tbody tr:hover {
    background-color: #e0e0e0; /* Maintain hover effect */
}
/* Ensure this class is immediately after the row styles */
.table-container .tours-table tbody tr.selected {
    background-color: #d3d3d3 !important;
}




.tours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 2px; /* Reduce space between header and table */
}


.invoices-box {
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center;
    width: 200px;
}

.invoices-box h3 {
    margin: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.invoices-box button {
    display: block;
    width: 100%;
    margin: 5px 0;
}

.checkbox-group {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.symbol-container {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.symbol-slot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    text-align: center;
    line-height: 20px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.symbol-slot.red-x {
    background-color: red;
    color: white;
}

.symbol-slot.green-tick {
    background-color: green;
    color: white;
}

.symbol-slot.yellow {
    background-color: yellow;
    color: black;
}

.symbol-slot.blue-doubletick {
    background-color: blue;
    color: white;
}

/* Specific column width adjustments */
#tours-table th:nth-child(1), #tours-table td:nth-child(1) {
    width: 6%; /* Invoice Number */
}

#tours-table th:nth-child(2), #tours-table td:nth-child(2) {
    width: 11%; /* Loading Place */
}

#tours-table th:nth-child(3), #tours-table td:nth-child(3) {
    width: 11%; /* Unloading Place */
}

#tours-table th:nth-child(4), #tours-table td:nth-child(4) {
    width: 7%; /* Order Number */
}

#tours-table th:nth-child(5), #tours-table td:nth-child(5) {
    width: 4%; /* Driver */
}

#tours-table th:nth-child(6), #tours-table td:nth-child(7) {
    width: 4%; /* Price */
}

#tours-table th:nth-child(7), #tours-table td:nth-child(10) {
    width: 10%; /* Company Name */
}

#tours-table th:nth-child(8), #tours-table td:nth-child(11) {
    width: 8%; /* Loading Date */
}

#tours-table th:nth-child(9), #tours-table td:nth-child(12) {
    width: 8%; /* Due Date */
}

#tours-table th:nth-child(10), #tours-table td:nth-child(13) {
    width: 15%; /* Note */
}

#tours-table th:last-child, #tours-table td:last-child {
    width: 10%; /* Actions */
}
    
#add-tour-btn {
    padding: 5px 10px;
    font-size: 24px;
    font-weight: 800;
    font-family: Calibri;
    cursor: pointer;
    border: none;
    color: white;
    background-color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-left: 20px;
    margin-bottom: 5px;
}

#add-tour-btn button:hover {
    background-color: #575757;
}

/* Main content grid with two columns */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns of equal width */
    gap: 20px; /* Space between columns */
    width: 100%; /* Full width of the modal */
}

.main-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 45px;
}

.driver-group select {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 11px;
    margin-bottom: 15px;
}

/* Full-width input groups */
.input-group,
.note-group {
    grid-column: span 2; /* Make these elements span two columns */
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 15px; /* Space between input groups */
}

/* Input Groups */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px; /* Space between input groups */
}

/* Textarea Styling */
#tour-form textarea {
    width: 100%;
    height: 80px;
    resize: none; /* Prevent resizing */
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Price and Currency Wrapper */
.price-currency-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.price-input-wrapper {
    display: flex; /* Arrange input and select in a row */
    align-items: center; /* Align items vertically */
    gap: 10px; /* Space between input and select */
}

.price-input-wrapper input[type="text"] {
    flex: 4; /* Price input takes more space */
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.price-input-wrapper select {
    flex: 1; /* Select takes less space */
    height: 40px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


.no-tours-message {
    text-align: center;
    margin-top: 20px;
    column-span: 12;
}


/* Modal Content */
#company-decision-modal .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 3px solid #888;
    width: 50%; /* 50% of the screen width */
    height: 70%; /* 70% of the screen height */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    box-sizing: border-box;
}

/* Fixed Top Bar */
.modal-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #f2f2f2;
    border-bottom: 1px solid #ddd;
    position: sticky; /* Make the top bar stick at the top */
    top: 0;
    z-index: 1; /* Ensure it stays above the scrollable content */
}

.modal-top-bar h2 {
    margin: 0; /* Ensure no extra margin hides the text */
    padding: 0;
    font-size: 18px;
    color: #333; /* Ensure text color is visible */
    flex-grow: 1; /* Ensure it uses available space */
    text-align: left; /* Align text to the left */
}

/* Close Button Styling */
#close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

#close-modal:hover {
    color: #888;
}

/* Company Card Styling */
.company-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.company-card p {
    margin: 5px 0;
    font-size: 16px;
}


/* Button styles for Add, Edit, Delete */

button {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-right: 10px; /* Space out buttons */
    background-color:#7888c8; 
  }
  
  button:hover {
    transform: scale(1.05);
  }
  
  button:focus {
    outline: none;
  }
  

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-group button {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
}

.button-group button:hover {
    background-color: #0056b3;
}

.company-edit-btn {
    background-color: #6c757d;
}

.company-edit-btn:hover {
    background-color: #5a6268;
}


/* Settings Page Styling */
.settings-section {
    background-color: #f9f9f9; /* Light background for settings sections */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Space inside the section */
    margin-bottom: 20px; /* Space between sections */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Settings Section Headings */
.settings-section h3 {
    font-size: 18px; /* Smaller heading size */
    color: #333; /* Dark text color */
    margin-bottom: 15px; /* Space below heading */
    border-bottom: 1px solid #ddd; /* Underline the heading */
    padding-bottom: 10px; /* Padding below heading text */
}

/* Styling for each setting item */
.setting-item {
    display: flex; /* Arrange label and input in a row */
    align-items: center; /* Center vertically */
    justify-content: space-between; /* Space between label and input */
    margin-bottom: 15px; /* Space between items */
}

/* Styling for labels */
.setting-item label {
    font-size: 16px; /* Font size for labels */
    color: #333; /* Text color for labels */
    flex-basis: 40%; /* Set label width */
}

/* Styling for inputs and selects */
.setting-item input[type="text"],
.setting-item input[type="email"],
.setting-item input[type="tel"],
.setting-item input[type="checkbox"],
.setting-item select {
    width: 55%; /* Set input width */
    padding: 8px 12px; /* Padding inside inputs */
    border: 1px solid #ccc; /* Border for inputs */
    border-radius: 4px; /* Rounded corners for inputs */
    background-color: #fff; /* White background for inputs */
    font-size: 14px; /* Font size for inputs */
    box-sizing: border-box; /* Box sizing for inputs */
    transition: border-color 0.3s; /* Smooth border transition on focus */
}

/* Focus effect for inputs */
.setting-item input[type="text"]:focus,
.setting-item input[type="email"]:focus,
.setting-item input[type="tel"]:focus,
.setting-item select:focus {
    border-color: #007bff; /* Border color on focus */
    outline: none; /* Remove default outline */
}

/* Dark mode toggle styling */
.setting-item input[type="checkbox"] {
    width: auto; /* Auto width for checkbox */
    margin-right: 10px; /* Margin for spacing */
}

/* Grid container for Appearance and Payment Information */
.settings-grid {
    display: grid; /* Use grid layout */
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    gap: 60px; /* Space between columns */
    width: 95%; /* Full width of the container */
}

/* Full width for User Information section */
.user-info-section {
    max-width: 95%; /* Limit the max width */
    margin: 0 auto; /* Center the section */
    width: 100%; /* Full width up to the max width */
}

/* Save Settings Button Styling */
#save-settings-btn {
    padding: 10px 20px; /* Button padding */
    font-size: 16px; /* Button font size */
    color: #fff; /* Button text color */
    background-color: #333; /* Button background color */
    border: none; /* Remove default border */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth transition for background color */
    margin-top: 20px; /* Space above button */
    display: block; /* Block display to center */
    margin-left: auto; /* Align to the right */
}

/* Hover effect for save button */
#save-settings-btn:hover {
    background-color: #575757; /* Hover background color */
}




/* CompaniesTable styling */
#companies-table {
    width: 100%; /* Ensure the table takes up full width of the content area */
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: left;
    table-layout: fixed; /* Enforce equal column width distribution */
}

#companies-table th, #companies-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    word-wrap: break-word; /* Ensure long text wraps inside the cell */
}

#companies-table th {
    background-color: #333;
    color: white;
}

#companies-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#companies-table tr:hover {
    background-color: #ddd;
}

#add-company-btn {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    color: white;
    background-color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#add-company-btn button:hover {
    background-color: #575757;
}   

#add-vehicle-btn {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    color: white;
    background-color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#add-vehicle-btn button:hover {
    background-color: #575757;
}   



/* VehicleTable styling */
#vehicles-table {
    width: 100%; /* Ensure the table takes up full width of the content area */
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    table-layout: fixed; /* Enforce equal column width distribution */
}

#vehicles-table th, #vehicles-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    word-wrap: break-word; /* Ensure long text wraps inside the cell */
}

#vehicles-table th {
    background-color: #333;
    color: white;
}

#vehicles-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#vehicles-table tr:hover {
    background-color: #ddd;
}

#add-vehicles-btn {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    color: white;
    background-color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#add-vehicles-btn button:hover {
    background-color: #575757;
}   

.company-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box; /* Ensure padding is included in the total width */
}

  .form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  

  .success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    z-index: 1000; /* Ensure it's above other elements */
    opacity: 0.9;
  }

  .invoice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}


.close-btn, .save-btn {
    position: absolute;
    top: 10px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.close-btn {
    right: 20px;
}

.save-btn {
    right: 50px;
}

/* InvoicePreview styling */


.invoice-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .invoice-preview-container {
    background: #fff;
    display: flex;
    max-height: 80vh; /* Set max height to 80% of viewport */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  
  .invoice-preview-content {
    overflow-y: auto; /* Enable scrolling for the PDF content */
    max-height: 80vh; /* Limit height to 80% of viewport */
    margin-right: 20px; /* Add some space between PDF and buttons */
  }
  
  canvas {
    width: 100%; /* Ensure canvas uses full width of its container */
    height: auto;
  }
  
  .invoice-preview-buttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  .invoice-preview-buttons button {
    margin-bottom: 10px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: #fff;
    transition: background-color 0.2s ease;
  }
  
  .invoice-preview-buttons button:last-child {
    background-color: #6c757d; /* Gray for the close button */
  }
  
  .invoice-preview-buttons button:hover {
    background-color: #0056b3; /* Darker blue on hover for Save */
  }
  
  .invoice-preview-buttons button:last-child:hover {
    background-color: #5a6268; /* Darker gray on hover for Close */
  }
  
/* Mobile zoom prevention for input fields */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  /* Ensure form elements don't trigger zoom */
  .login-form input,
  .login-form textarea,
  .login-form select {
    font-size: 16px !important;
  }
}

/* Additional mobile input optimizations */
@media screen and (max-width: 768px) {
  /* Prevent zoom on focus */
  input:focus,
  textarea:focus,
  select:focus {
    font-size: 16px !important;
  }
  
  /* Ensure proper touch targets */
  input, textarea, select, button {
    min-height: 44px; /* iOS recommended minimum touch target */
  }
}

/* Mobile table styles */
.mobile-table-scroll {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.mobile-table-scroll table {
  min-width: 1200px;
  table-layout: fixed; /* Force fixed layout on mobile */
}

/* Mobile-specific table cell adjustments */
@media (max-width: 768px) {
  .mobile-table-scroll td,
  .mobile-table-scroll th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-all;
  }
  
  .mobile-table-scroll td {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
  }
  
  .mobile-table-scroll th {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
  }
  
  /* Reduce column widths on mobile */
  .mobile-table-scroll table {
    font-size: 0.875rem;
  }
  
  /* Force table to use fixed layout and prevent column expansion */
  .mobile-table-scroll table {
    table-layout: fixed !important;
    width: 100%;
  }
  
  /* Make specific columns more compact on mobile */
  .mobile-table-scroll td:nth-child(1), /* Invoice # - 6% */
  .mobile-table-scroll th:nth-child(1) {
    max-width: 150px;
    min-width: 120px;
    width: 6%;
  }
  
  .mobile-table-scroll td:nth-child(2), /* Loading - 16.5% */
  .mobile-table-scroll th:nth-child(2) {
    max-width: 400px;
    min-width: 350px;
    width: 16.5%;
  }
  
  .mobile-table-scroll td:nth-child(3), /* Unloading - 16.5% */
  .mobile-table-scroll th:nth-child(3) {
    max-width: 400px;
    min-width: 350px;
    width: 16.5%;
  }
  
  .mobile-table-scroll td:nth-child(4), /* Order # - 8.5% */
  .mobile-table-scroll th:nth-child(4) {
    max-width: 200px;
    min-width: 160px;
    width: 8.5%;
  }
  
  .mobile-table-scroll td:nth-child(5), /* Driver - 7% */
  .mobile-table-scroll th:nth-child(5) {
    max-width: 180px;
    min-width: 140px;
    width: 7%;
  }
  
  .mobile-table-scroll td:nth-child(6), /* Price - 5% */
  .mobile-table-scroll th:nth-child(6) {
    max-width: 120px;
    min-width: 100px;
    width: 5%;
  }
  
  .mobile-table-scroll td:nth-child(7), /* Company - 10% */
  .mobile-table-scroll th:nth-child(7) {
    max-width: 250px;
    min-width: 200px;
    width: 10%;
  }
  
  .mobile-table-scroll td:nth-child(8), /* Due Date - 6% */
  .mobile-table-scroll th:nth-child(8) {
    max-width: 150px;
    min-width: 120px;
    width: 6%;
  }
  
  .mobile-table-scroll td:nth-child(9), /* Status - 5% */
  .mobile-table-scroll th:nth-child(9) {
    max-width: 120px;
    min-width: 100px;
    width: 5%;
  }
  
  .mobile-table-scroll td:nth-child(10), /* Note - 12% */
  .mobile-table-scroll th:nth-child(10) {
    max-width: 300px;
    min-width: 250px;
    width: 12%;
  }
  
  .mobile-table-scroll td:nth-child(12), /* Actions - 7.5% */
  .mobile-table-scroll th:nth-child(12) {
    max-width: 200px;
    min-width: 180px;
    width: 7.5%;
  }
  
  /* Force all cells to respect their container width */
  .mobile-table-scroll td,
  .mobile-table-scroll th {
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Flex utilities for mobile layout */
.flex-2 {
  flex: 2;
}

.flex-3 {
  flex: 3;
}

/* Mobile header layout improvements */
@media (max-width: 768px) {
  .mobile-table-scroll {
    margin-top: 0.5rem;
  }
}
  