:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --bs-modal-width: 900px;
  font-size: 117%;
}

/* Autofill detection */
@keyframes onAutoFillStart { from { opacity: 0.99; } to { opacity: 1; } }
@keyframes onAutoFillCancel { from { opacity: 0.99; } to { opacity: 1; } }

.code-input:-webkit-autofill {
  animation: onAutoFillStart 0.001s;
}
.code-input:not(:-webkit-autofill) {
  animation: onAutoFillCancel 0.001s;
}

/* Auth Layout */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  max-width: 400px;
  width: 100%;
}

#setup2FAScreen .auth-container {
  max-width: 800px;
}

/* Shared card styling */
.auth-card,
.auth-card-wide {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 40px;
}

.auth-card-wide {
  width: 800px;
  max-width: 100%;
}

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

.auth-header i {
  font-size: 60px;
  color: var(--primary);
  margin-bottom: 15px;
}

.auth-header h2 {
  font-weight: 600;
  margin-bottom: 5px;
}

/* Code Inputs */
.code-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}

.code-input {
  width: 50px;
  height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  flex-shrink: 0;
  padding: 0;
  line-height: 54px;
}

/* Portal */
.portal-wrapper {
  display: none;
  min-height: 100vh;
}

/* Navbar */
.navbar-custom {
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 7px 0;
}

.navbar-brand {
  font-weight: 700;
  color: #080808 !important;
  font-size: 28.8px;
}

.table {
vertical-align: middle;	
}

/* Cards */
.container-main { margin-top: 30px; }

.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 600;
  border-radius: 10px 10px 0 0 !important;
  padding: 15px 20px;
}

/* Stats Cards */
.stats-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.stats-card {
  text-align: center;
  padding: 30px 25px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  cursor: pointer;
  background-color: #246d79;
  color: #fff;
  border: 1px solid #487a82;
}

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

.stats-card.active {
  background-color: #fff;
  color: #222;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.stats-card.active .stats-icon { color: #2889e4 !important; }
.stats-card.active .text-change { color: rgba(0, 0, 0, 0.9) !important; }

.stats-icon { font-size: 38px; margin-bottom: 5px; }
.stats-number { font-size: 26px; font-weight: 600; }

/* Modals - FIXED */
.modal-content {
  border-radius: 18px !important;
  overflow: hidden !important;
}

.modal-header {
  color: #555;
  border-radius: 20px 20px 0 0 !important;
}

.modal-footer {
  border-radius: 0 0 20px 20px !important;
}

/* Toasts */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header { font-weight: 600; }

.toast.bg-success .toast-header,
.toast.bg-danger .toast-header,
.toast.bg-info .toast-header {
  color: white;
}

.toast.bg-success .toast-header { background-color: #28a745; }
.toast.bg-danger .toast-header { background-color: #dc3545; }
.toast.bg-warning .toast-header { background-color: #ffc107; color: #333; }
.toast.bg-info .toast-header { background-color: #17a2b8; }

/* Buttons */
.btn-sm {
  height: 32px;
  min-width: 32px;
  padding: 0.25rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== General Page Styling ===== */
body {
  background-color: rgb(24, 94, 108);
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.fs-7 {
  font-size: .6rem !important;
  font-weight: 400; 
}

.fs-10 {
  font-size: .7rem;
  font-weight: 400; 
}

.fs-14 {
  font-size: 1.2rem;
  font-weight: 600; 
}

.fs-16 {
  font-size: 1.2rem;
  font-weight: 600;
}

.pb-6 {
  padding-bottom: 2rem;
}

.icon-text {
  display: flex;
  gap: 2px;
}

.icon-text.middle {
  align-items: center;
}

.icon-text.top {
  align-items: flex-start;
}

.icon-text.bottom {
  align-items: flex-end;
}

h3, h5, h6 { color: #222; }

/* Accordion */
.accordion-item {
  border: none;
  border-radius: 25px !important;
  overflow: hidden;
  margin-bottom: 5px;
}

.accordion-button {
  font-size: .8rem;
  font-weight: 600;
  background-color: #fff !important;
  color: #212529;
  border: none;
  padding: .8rem;
  border-radius: 0 !important;
  transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #fff !important;
  color: #0d6efd;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.accordion-body {
  background-color: #ffffff;
  border-radius: 0 0 12px 12px;
  padding: 1.8rem;
}

/* Section Blocks */
.section-block {
  background-color: #f8f9fb;
  border-radius: 10px;
  padding: 1.4rem;
  border: 1px solid #e2e2e2;
  margin-bottom: 1.5rem;
}

/* Inputs */
.form-label {
  font-weight: 500;
  color: #222;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.soft-input {
  background-color: #fafafa;
  border: 1px solid #d6d9e0;
  border-radius: 8px;
  font-size: .9rem;
  padding: 0.3rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.soft-input::placeholder {
  color: #6c757d;
  opacity: 0.6;
}

.text-primary {
  color: #2889e4 !important
}

.text-primary2 {
  color: #60a5fa !important
}

.text-primary3 {
  color: #246d79 !important
}

.text-primary4 {
  color: #2889e4 !important
}

.text-purple {
  color: rgba(97, 92, 168, 1)!important
}

.soft-input:focus {
  border-color: #8cb4ff;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  background-color: #ffffff;
}

small.text-muted { font-size: 0.75rem; }

/* Buttons */
.btn-primary {
       border-radius: 8px;
       font-size: 1rem;
       padding: 0.55rem 1.2rem;
       border: 1.5px solid #3b82f6;
       color: #fff;
       background-color: #3b82f6;
       font-weight: 600;
       transition: all 0.3s ease;
}

.btn-primary:hover {
       background-color: #3b82f6;
       transform: translateY(-2px);
       box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
}

.btn-outline-primary {
  border-radius: 8px;
  font-size: 1rem;
  padding: 0.55rem 1.2rem;
  border: 1.5px solid #3b82f6;
  color: #222;
  background-color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #3b82f6 !important;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
}

.form-check-input:checked {
background-color: #29a5e2;
border-color:#29a5e2;	
}

/* Tables */
.table {
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  
}



.table>:not(caption)>*>* {
border-top:none;	
border-bottom:none;
}

.custom-border-left {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
margin-bottom: 10px;
border-left: 2px solid #54badf;
border-right: none;

}

.custom-border-right {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
margin-bottom: 10px;
border-left: none;
border-right: 2px solid #ccc;

}


.table th,
.table td {
  font-size: .9rem;
  padding: 0.9rem;
  color: #000;
  font-weight:500;
}

.table thead {
  background-color: #f8f9fb;
  color: #555;
}

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

/* Misc */
.text-secondary { color: #222 !important; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important; }

/* ================= Agent Management (cards in table) ================= */

#collapseAgents .table {
  border-collapse: separate;
  border-spacing: 0 0.6rem; /* more vertical gap between rows */
}

/* Keep header clean */
#collapseAgents thead {
  background-color: transparent;
}

#collapseAgents thead tr {
  background-color: transparent;
}

#collapseAgents thead th {
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #666;
}
/* Make each data row look like a soft card */
#collapseAgents #agentsTable tr {
  background-color: #f7fbfc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}

/* Remove default top borders, keep pill look */
#collapseAgents #agentsTable td {
  border-top: none;
  background-color: transparent;
}

/* Round first & last cells in each row */
#collapseAgents #agentsTable tr td:first-child {
  border-radius: 12px 0 0 12px;
}

#collapseAgents #agentsTable tr td:last-child {
  border-radius: 0 12px 12px 0;
}

/* Placeholder row styling */
#collapseAgents #agentsTable tr td[colspan] {
  text-align: center;
  background: #f7fbfc;
}

/* Ensure delete icon is proper red, not orange */
#collapseAgents #agentsTable i.fa-trash {
  color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
  .accordion-body { padding: 1.2rem; }
  .form-label { font-size: 0.95rem; }
  .soft-input { font-size: 0.95rem; padding: 0.55rem 0.8rem; }
  .btn-primary, .btn-outline-primary { font-size: 0.95rem; padding: 0.5rem 1rem; }
}



/* ========================= Agent Table Fixes ========================== */

/* Center icons and text in headings */
#collapseAgents thead th i {
  vertical-align: middle;
  margin-top: -2px;
  font-size: 1.1rem;
}

/* Beautiful soft-card rows */
#collapseAgents #agentsTable tr {
  background-color: #f7fbfc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-radius: 14px;
}

/* Rounded edges per row */
#collapseAgents #agentsTable tr td:first-child {
  border-radius: 14px 0 0 14px;
}
#collapseAgents #agentsTable tr td:last-child {
  border-radius: 0 14px 14px 0;
}

/* === Icon Button Styling (replace Bootstrap squares with modern circle buttons) === */

.agent-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}

/* EDIT (teal) */
.agent-edit-btn {
  background-color: rgb(67, 133, 144); /* your primary */
}
.agent-edit-btn i {
  color: white !important;
}
.agent-edit-btn:hover {
  background-color: rgb(16,130,150);
}

/* DELETE (red) */
.agent-delete-btn {
  background-color: #dc3545;
}
.agent-delete-btn i {
  color: white !important;
}
.agent-delete-btn:hover {
  background-color: #bb1f2f;
}

/* Force override wrong orange color */
#collapseAgents i.fa-trash {
  color: white !important;
}

/* Replace Add Button with pill inverted button */
.btn-add-agent {
  border-radius: 30px;
  padding: 0.3rem .8rem;
  font-weight: 500;
  background: #fff;
  color: rgb(24,162,185);
  border: 2px solid rgb(24,162,185);
  transition: 0.3s;
}
.btn-add-agent:hover {
  background: rgb(24,162,185);
  color: #fff;
}



/* Unified Soft Rounded Badges */

.badge {
  font-weight: 400;
  font-size:.8rem !important;
}

.badge-soft {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 400;
  border-radius: 999px;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  text-transform: capitalize;
}

/* MOT (Blue-teal soft) */
.badge-mot {
  background-color: rgba(94, 190, 207, 0.12);
  color: rgb(24, 162, 185);
  border-color: rgba(24, 162, 185, 0.3);
}

/* Service (Green soft) */
.badge-service {
  background-color: rgba(145, 203, 175, 0.12);
  color: rgb(0, 150, 80);
  border-color: rgba(0, 150, 80, 0.3);
}

/* Ad-hoc (Orange soft) */
.badge-adhoc {
  background-color: rgba(217, 184, 134, 0.15);
  color: rgb(217, 118, 0);
  border-color: rgba(255, 159, 10, 0.35);
}

/* 1st Reminder (Purple soft) */
.badge-1st {
  background-color: rgba(102, 126, 234, 0.15);
  color: rgb(102, 126, 234);
  border-color: rgba(102, 126, 234, 0.3);
}

/* 2nd Reminder (Pink soft) */
.badge-2nd {
  background-color: rgba(236, 72, 153, 0.15);
  color: rgb(236, 72, 153);
  border-color: rgba(236, 72, 153, 0.3);
}

/* SMS Status – Delivered (Green soft bold) */
.badge-delivered {
  background-color: rgba(34, 197, 94, 0.15);
  color: rgb(22, 163, 74);
  border-color: rgba(34, 197, 94, 0.3);
}

/* SMS Status – Sent (Blue soft) */
.badge-sent {
  background-color: rgba(59, 130, 246, 0.15);
  color: rgb(37, 99, 235);
  border-color: rgba(59, 130, 246, 0.3);
}

/* SMS Status – Failed (Red soft) */
.badge-failed {
  background-color: rgba(239, 68, 68, 0.15);
  color: rgb(220, 38, 38);
  border-color: rgba(239, 68, 68, 0.3);
}




/* ===== Table Sticky Header ===== */
.table-sticky-header th {
  position: sticky;
  top: 0;
  background: #f7f9fc;
  z-index: 2;
}

/* ===== Pagination Bar ===== */
.pagination-container {
  margin-top: 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.pagination button {
  border: none;
  background: #e2f3f5;
  color: #0a6c7e;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s;
}

.pagination button:hover {
  background: #14a2b9;
  color: #fff;
}

.pagination .active {
  background: #14a2b9 !important;
  color: #fff !important;
}

.btn-pill-sm {
  border-radius: 25px;
  font-size: 0.6rem;
  padding: 0.4rem 0.6rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.mt-8 {
margin-top: 3rem;	
	
}

/* ===== MOT & Services Page Fixes ===== */

/* Ensure consistent padding across all accordion bodies */
#motServicePanel .accordion-body,
#reportsPanel .accordion-body {
  padding: 1.8rem;
}

/* Fix filter section to prevent label wrapping */
#motServicePanel .form-label {
  font-size: 0.9rem;
  white-space: nowrap;
  margin-bottom: 0.3rem;
}

/* Make filter inputs slightly smaller to fit */
#motServicePanel .section-block .row.g-3 > div {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Adjust table header text to prevent wrapping */
#motsServicesTable th {
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Hide icons in table headers on smaller screens */
@media (max-width: 1400px) {
  #motsServicesTable th i {
    display: none;
  }
}

/* Alternative: Stack filters in 2 rows on medium screens */
@media (max-width: 1200px) {
  #motServicePanel .col-md-3,
  #motServicePanel .col-md-2 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1rem;
  }
}

/* Ensure summary cards are consistent */
#motServiceSummary .section-block {
  padding: 1.5rem;
}

/* ===== MOT/Service Table Row Styling - BOOTSTRAP OVERRIDE ===== */

/* Override Bootstrap table CSS variables for this specific table */
#motsServicesTable {
  --bs-table-bg: transparent !important;
  --bs-table-hover-bg: #fff !important;
  --bs-table-hover-color: inherit !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-striped-color: inherit !important;
  --bs-table-active-bg: transparent !important;
  --bs-table-active-color: inherit !important;
}

/* Force alternating row colors */
#motsServicesTable tr:nth-child(odd) {
  background-color: #ffffff !important;
}

#motsServicesTable tr:nth-child(even) {
  background-color: #fff !important;
}

/* Hover state with soft pastel blue */
#motsServicesTable tr:hover {
  background-color: #fff !important;
  cursor: default !important;
}

/* Ensure cells don't have their own backgrounds */
#motsServicesTable td {
  background-color: inherit !important;
}

/* ===== SMS Reports Table Row Styling ===== */

/* Override Bootstrap table CSS variables for reports table */
#smsReportsTable {
  --bs-table-bg: transparent !important;
  --bs-table-hover-bg: #fff !important;
  --bs-table-hover-color: inherit !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-striped-color: inherit !important;
  --bs-table-active-bg: transparent !important;
  --bs-table-active-color: inherit !important;
}

/* Force alternating row colors */
#smsReportsTable tr:nth-child(odd) {
  background-color: #ffffff !important;
}

#smsReportsTable tr:nth-child(even) {
  background-color: #fff !important;
}

/* Hover state with soft pastel blue */
#smsReportsTable tr:hover {
  background-color: #fff !important;
  cursor: default !important;
}

/* Ensure cells don't have their own backgrounds */
#smsReportsTable td {
  background-color: inherit !important;
}

/* ===== Customers Table Row Styling - BOOTSTRAP OVERRIDE ===== */

/* Override Bootstrap table CSS variables for customers table */
#customersTable {
  --bs-table-bg: transparent !important;
  --bs-table-hover-bg: #fff !important;
  --bs-table-hover-color: inherit !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-striped-color: inherit !important;
  --bs-table-active-bg: transparent !important;
  --bs-table-active-color: inherit !important;
}

/* Force alternating row colors */
#customersTable tr:nth-child(odd) {
  background-color: #ffffff !important;
}

#customersTable tr:nth-child(even) {
  background-color: #fff !important;
}

/* Hover state with soft pastel blue */
#customersTable tr:hover {
  background-color: #fff !important;
  cursor: default !important;
}

/* Ensure cells don't have their own backgrounds */
#customersTable td {
  background-color: inherit !important;
}

/* ===== Unified Table Header Styling ===== */

/* Style both table headers the same way */
#motsServicesTable thead,
#reportsTable thead,
#smsReportsTable thead {
  background-color: #f8f9fb !important;
}

/* Header row styling */
#motsServicesTable thead tr,
#reportsTable thead tr {
  background-color: #f8f9fb !important;
}

/* Header cell styling */
#motsServicesTable thead th,
#reportsTable thead th {
  background-color: #f8f9fb !important;
  color: #555 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 1rem 0.9rem !important;
  vertical-align: middle !important;
}

/* Icon colors in headers */
#motsServicesTable thead th i,
#reportsTable thead th i {
  color: rgb(69, 162, 162) !important;
  font-size: 1rem !important;
  vertical-align: middle !important;
}

/* Remove any conflicting borders */
#reportsTable thead {
  border-bottom: none !important;
}


  /* Circular action button styling */
  .action-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    margin: 0 4px;
  }
  
  /* Circular action button styling */
  .action-btn-circle-sm {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
    margin: 0 4px;
    font-size:10px;
    
  }
  
  .action-btn-circle:hover {
    opacity: 0.8;
  }
  
  .action-btn-edit {
    background-color: #5a9fb5;
    color: white;
  }
  
  .action-btn-delete {
    background-color: #dc3545;
    color: white;
  }
  
  .action-btn-vehicles {
    background-color: #6c757d;
    color: white;
  }
  
  .action-btn-sms {
    background-color: #399f50;
    color: white;
  }
  
  .action-btn-booking {
    background-color: #ffc107;
    color: white;
  }




  /* ===== COMPACT MODAL STYLES - UPDATED ===== */
  
  /* Modal sizing - FIXED with 25px border-radius */
  .modal-compact .modal-content {
    font-size: 0.625rem;
    border-radius: 25px !important;
    overflow: hidden !important;
  }

  .modal-compact .modal-header {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
  }

  .modal-compact .modal-footer {
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
  }

  .modal-compact {
    --bs-modal-width: 600px !important;
  }

  /* Header gradient */
  .bg-gradient-primary {
    background: linear-gradient(135deg, rgb(24, 162, 185), rgb(35, 125, 140));
    color: white;
   
  }

  /* Ensure modal header text is white - UPDATED TO INCLUDE AGENT MODALS */
  #addCustomerModal .modal-header h6,
  #editCustomerModal .modal-header h6,
  #manageVehiclesModal .modal-header h6,
  #editVehicleModal .modal-header h6,
  #addBookingModal .modal-header h6,
  #adHocSMSModal .modal-header h6,
  #addAgentModal .modal-header h6,
  #editAgentModal .modal-header h6 {
    color: white !important;
    font-size: 0.8rem;
    font-weight: 600;
  }

  /* Compact section blocks */
  .section-block-compact {
    background-color: #f7fbfc;
    border-radius: 15px;
    padding: 0.5rem;
    border: 1px solid #edf0f5;
  }

  /* Compact section headers */
  .section-header-compact {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgb(69, 162, 162);
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.3rem;
  }

  /* Compact form labels */
  .form-label-compact {
    font-weight: 500;
    color: #222;
    font-size: 0.625rem;
    margin-top: 10px;
    margin-bottom: 0.15rem;
    display: block;
  }

  /* Compact form controls */
  .form-control-compact,
  .form-select-compact {
    font-size: 0.8rem;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
    width: 100%;
    height: calc(1.5em + 0.5rem + 2px);
    color: #222;
  }

  .form-control-compact:focus,
  .form-select-compact:focus {
    border-color: rgb(24, 162, 185);
    box-shadow: 0 0 0 0.1rem rgba(24, 162, 185, 0.15);
    outline: 0;
  }

  /* Compact buttons */
  .btn-sm-compact {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-weight: 600;
  }

  /* Postcode/Registration field special styling - 50% width with button to the right */
  .postcode-field-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
  }

  .postcode-field-wrapper .form-control-compact {
    width: 50%;
    flex-shrink: 0;
  }

  .postcode-field-wrapper .btn-sm-compact {
    padding: 0.25rem 0.5rem;
    height: calc(1.5em + 0.5rem + 2px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Address manual fields */
  .address-manual-fields-compact {
    background-color: #ffffff;
    border: 1px dashed #d6d9e0;
    border-radius: 10px;
    padding: 0.4rem;
  }

  /* Compact close button */
  .modal-compact .btn-close {
    font-size: 0.625rem;
    padding: 0.2rem;
  }

  /* Footer adjustments */
  .modal-compact .modal-footer {
    padding: 0.4rem 0.5rem;
  }

  /* Row and column gap adjustments */
  .modal-compact .g-2 {
    --bs-gutter-x: 0.4rem;
    --bs-gutter-y: 0.4rem;
  }

  .modal-compact .g-1 {
    --bs-gutter-x: 0.25rem;
    --bs-gutter-y: 0.25rem;
  }

  /* Reduce margins between sections */
  .modal-compact .mb-3 {
    margin-bottom: 0.5rem !important;
  }

  .modal-compact .mb-2 {
    margin-bottom: 0.6rem !important;
  }
  
  .modal-compact .mt-2 {
    margin-bottom: 0.4rem !important;
  }

  .modal-compact .mb-1 {
    margin-bottom: 0.25rem !important;
  }

  /* Icon sizing */
  .modal-compact .section-header-compact i,
  .modal-compact .modal-header i {
    font-size: 0.7rem;
  }

  /* Compact table styling for vehicle modal */
  .modal-compact .table-compact {
    font-size: 0.625rem;
  }

  .modal-compact .table-compact th,
  .modal-compact .table-compact td {
    padding: 0.3rem 0.4rem;
    font-size: 0.625rem;
  }

  .modal-compact .table-compact thead th {
    font-size: 0.65rem;
    font-weight: 600;
  }

  /* Textarea compact styling */
  .form-control-compact[rows] {
    line-height: 1.3;
    min-height: 100px;
  }

  /* Alert compact styling */
  .modal-compact .alert {
    margin-bottom: 0.4rem;
    border-radius: 4px;
  }
  
 .pt-4 {
 padding-top: 1.5rem !important;
}

/* ===== Responsive Design for Screens up to 1024px ===== */
@media (max-width: 1024px) {
  /* Reduce base font size from 117% to 78% */
  :root {
    font-size: 78%;
    --bs-modal-width: 700px;
  }

  /* Reduce body font size */
  body {
    font-size: 0.9rem;
  }

  /* Scale down headings */
  h3 {
    font-size: 1.5rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  h6 {
    font-size: 1rem;
  }
  
  /* Reduce custom font sizes */
  .fs-10 {
    font-size: 0.65rem;
  }

  .fs-14 {
    font-size: 1rem;
  }

  .fs-16 {
    font-size: 0.9rem;
  }

  /* Navbar adjustments */
  .navbar-brand {
    font-size: 24px;
  }

  .navbar-brand img {
    width: 80px !important;
  }

  /* Card padding reduction */
  .card {
    margin-bottom: 15px;
  }

  .card-header {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  /* Stats cards */
  .stats-card {
    padding: 20px;
  }

  .stats-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .stats-number {
    font-size: 30px;
  }

 

  .accordion-body {
    padding: 1.4rem;
  }

  /* Section blocks */
  .section-block {
    padding: 1.2rem;
    margin-bottom: 1.2rem;
  }

  /* Form elements */
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .soft-input,
  .form-control,
  .form-select {
    font-size: 0.9rem;
    padding: 0.55rem 0.8rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-outline-primary {
    font-size: 0.95rem;
    padding: 0.55rem 1.2rem;
  }



  .btn-add-agent {
    padding: 0.5rem 1.3rem;
    font-size: 0.9rem;
  }

  /* Table adjustments */
  .table th,
  .table td {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  .table thead th {
    font-size: 0.85rem;
  }

  /* Action buttons */
  .action-btn-circle {
    width: 25px;
    height: 25px;
    margin: 0 3px;
  }

  .action-btn-circle i {
    font-size: 0.85rem;
  }

  .agent-action-btn {
         width: 30px;
         height: 30px;
  }
  
  .status-sent {
         width: 30px;
         height: 30px;
  }
  .status-edit {
     width: 30px;
     height: 30px;
  }
  .status-vehicle {
     width: 30px;
     height: 30px;
  }
  
  .status-trash {
         width: 30px;
         height: 30px;
  }

  /* Badges */

  /* Container spacing */
  .container-main {
    margin-top: 20px;
  }

  .mt-8 {
    margin-top: 2rem;
  }

  /* Auth cards */
  .auth-card,
  .auth-card-wide {
    padding: 30px;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .auth-header i {
    font-size: 50px;
  }

  /* Modal adjustments */
  .modal-content {
    font-size: 0.9rem;
  }

  /* Compact modal adjustments */
  .modal-compact {
    --bs-modal-width: 500px !important;
  }

  .form-label-compact {
    font-size: 0.6rem;
  }

  .form-control-compact,
  .form-select-compact {
    font-size: 0.6rem;
    padding: 0.2rem 0.35rem;
  }

  .section-header-compact {
    font-size: 0.65rem;
  }

  .btn-sm-compact {
    font-size: 0.6rem;
    padding: 0.2rem 0.45rem;
  }

  /* Toast adjustments */
  .toast {
    min-width: 250px;
  }

  /* Page headers */
  .text-center.mb-4 h3 {
    font-size: 1.8rem;
  }

  .text-center.mb-4 p {
    font-size: 1rem !important;
  }

  /* Reduce icon sizes in sections */
  .section-block i.fs-14 {
    font-size: 1rem !important;
  }

  .section-block i.fs-16 {
    font-size: 1.2rem !important;
  }

  /* Stats cards in summary */
  #motServiceSummary .card,
  #reportsPanel .card {
    padding: 20px;
  }

  #motServiceSummary .card i,
  #reportsPanel .card i {
    font-size: 2rem;
  }

  /* Pagination */
  .pagination button {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  /* Code inputs for 2FA */
  .code-input {
    width: 45px;
    height: 52px;
    font-size: 20px;
  }

  /* Responsive grid adjustments */
  .row.g-3 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }

  .row.g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
}

/* Additional adjustments for tablets in portrait mode */
@media (max-width: 1024px) and (orientation: portrait) {
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .stats-card {
    padding: 15px;
  }

  .stats-number {
    font-size: 22px;
  }
  
  .status-sent {
         width: 30px;
         height: 30px;
  }
  .status-edit {
     width: 30px;
     height: 30px;
  }
  .status-vehicle {
     width: 30px;
     height: 30px;
  }
  
  .status-trash {
         width: 30px;
         height: 30px;
  }
}

.sidebar-menu {
  background-color: rgb(24, 94, 108);
  min-height: 100vh;
  padding: 30px 30px;
  margin-top:5px;
  border-right: 1px solid rgb(29, 111, 128)
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-menu .stats-card {
  margin-bottom: 0;
  transition: transform 0.2s;
}

.sidebar-menu .stats-card:hover {
  transform: translateX(5px);
}

.sidebar-menu .stats-card-link {
  text-decoration: none;
}

.main-content-area {
  padding: 20px;
}

.loading-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.ms-6 {
margin-left: 3.8rem;	
	
}




@media (max-width: 576px) {
  /* Remove default margins causing the gap */
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
  }
  
  /* Fix navbar to top */
  .navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 3px 0px;
    z-index: 1030;
  }
  
  /* Add padding so content isn't hidden under navbar */
  body {
    padding-top: 70px !important;
  }
  
  /* Remove extra spacing */
  .container-fluid,
  .portal-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}



/* ===== MOBILE & TABLET RESPONSIVE ENHANCEMENTS ===== */

/* ========== MOBILE PHONES (up to 576px) ========== */
@media (max-width: 576px) {
  /* Base adjustments */
  :root {
    font-size: 90%;
  }
  
  body {
    font-size: 0.85rem;
  }

  /* Hide sidebar menu on mobile, show as horizontal cards instead */
  .sidebar-menu {
    position: fixed;  /* Keep this */
    top: 0;
    left: -100%;  /* Starts hidden off-screen */
    width: 80%;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    margin-top: 0;
    padding-top: 80px !important;  /* Space for navbar */
  }
  
  .sidebar-menu.show {
    left: 0;
  }
  
  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    display: inline-block !important;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(24, 162, 185), rgb(35, 125, 140));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 1.5rem;
  }
  
  /* Main content takes full width */
  .main-content-area {
    padding: 10px !important;
    margin-left: 0 !important;
  }
  
  .col-md-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Navbar adjustments */
  .navbar-brand {
    font-size: 18px !important;
  }
  
  .navbar-brand img {
    width: 50px !important;
  }
  
  .ms-6 {
    margin-left: 0.5rem !important;
  }
  


  /* Page headers */
  .text-center.mb-4 h3 {
    font-size: 1.4rem !important;
  }
  
  .text-center.mb-4 p {
    font-size: 0.85rem !important;
  }

  /* Stats cards */
  .stats-card {
    padding: 15px !important;
  }
  
  .stats-icon {
    font-size: 24px !important;
  }
  
  .stats-number {
    font-size: 22px !important;
  }

  /* Accordion */
 
  .accordion-body {
    padding: 1rem !important;
  }

  /* Section blocks */
  .section-block {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .section-header-compact {
    font-size: 0.65rem !important;
  }

  /* Forms */
  .form-label {
    font-size: 0.85rem !important;
  }
  
  .soft-input,
  .form-control,
  .form-select {
    font-size: 0.85rem !important;
    padding: 0.5rem !important;
  }

  /* Buttons */
  .btn-primary,
  .btn-outline-primary {
    font-size: 0.7rem !important;
    padding: 0.3rem 1rem !important;
  }
  
  .btn-add-agent {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  /* Tables - Enable horizontal scrolling */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    min-width: 800px; /* Force horizontal scroll */
  }
  
  .table th,
  .table td {
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
    white-space: nowrap;
  }
  
  .table thead th {
    font-size: 0.75rem !important;
    position: sticky;
    top: 0;
    background: #f8f9fb !important;
    z-index: 10;
  }

  /* Action buttons */
  .action-btn-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem !important;
    margin: 0 2px !important;
  }
  
  .action-btn-circle-sm {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.65rem !important;
  }

  /* Badges */
  .badge-soft {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  /* Modals */
  .modal-dialog {
    margin: 0.5rem !important;
    max-width: calc(100% - 1rem) !important;
  }
  
  .modal-compact {
    --bs-modal-width: 100% !important;
  }
  
  .modal-compact .modal-content {
    font-size: 0.75rem !important;
  }
  
  .form-label-compact {
    font-size: 0.7rem !important;
  }
  
  .form-control-compact,
  .form-select-compact {
    font-size: 0.85rem !important;
    padding: 0.3rem !important;
    color: #222;
  }
  
  .btn-sm-compact {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  /* Search bars and filters */
  #searchCustomer {
    font-size: 0.85rem !important;
  }
  
  .row.g-3 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }

  /* Pagination */
  .pagination button {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
  }

  /* Container spacing */
  .container-main {
    margin-top: 10px !important;
  }
  
  .mt-8 {
    margin-top: 1.5rem !important;
  }

  /* Make columns stack */
  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Icons in headers */
  .fs-14 {
    font-size: 1rem !important;
  }
  
  .fs-16 {
    font-size: 1.2rem !important;
  }
  
  .fs-10 {
    font-size: 0.7rem !important;
  }

  /* Auth screens */
  .auth-card,
  .auth-card-wide {
    padding: 20px !important;
  }
  
  .auth-header i {
    font-size: 40px !important;
  }
  
  .auth-header h2,
  .auth-header h4 {
    font-size: 1.2rem !important;
  }

  /* Code inputs for 2FA */
  .code-input {
    width: 40px !important;
    height: 48px !important;
    font-size: 18px !important;
  }

  /* Toast notifications */
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }

  /* Postcode field wrapper */
  .postcode-field-wrapper .form-control-compact {
    width: 65% !important;
  }
}

/* ========== TABLETS & SMALL TABLETS (577px to 768px) ========== */
@media (min-width: 577px) and (max-width: 768px) {
  :root {
    font-size: 95%;
  }

  /* Sidebar becomes narrower or can toggle */
  .sidebar-menu {
    padding: 20px 15px;
  }
  
  .col-md-2 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-md-10 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .stats-card {
    padding: 15px;
  }
  
  .stats-icon {
    font-size: 28px;
  }
  
  .stats-number {
    font-size: 24px;
  }

  /* Tables */
  .table th,
  .table td {
    font-size: 0.8rem;
    padding: 0.6rem;
  }

  /* Modals */
  .modal-compact {
    --bs-modal-width: 90% !important;
  }

  /* Make some columns half-width on tablet */
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ========== TABLETS & iPAD (769px to 1024px) - Enhanced ========== */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Already covered in your existing CSS but adding a few more tweaks */
  
  .sidebar-menu {
    padding: 30px 20px;
  }

  /* Table adjustments */
  .table th,
  .table td {
    font-size: 0.85rem;
    padding: 0.7rem;
  }

  /* Ensure modals fit well */
  .modal-compact {
    --bs-modal-width: 600px !important;
  }
  
  .status-sent {
         width: 30px;
         height: 30px;
  }
  .status-edit {
     width: 30px;
     height: 30px;
  }
  .status-vehicle {
     width: 30px;
     height: 30px;
  }
  
  .status-trash {
         width: 30px;
         height: 30px;
  }
}

/* ========== IPAD PRO PORTRAIT (1024px to 1366px) ========== */
@media (min-width: 1025px) and (max-width: 1366px) {
  :root {
    font-size: 105%;
  }

  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .sidebar-menu {
    padding: 35px 25px;
  }

  .stats-card {
    padding: 20px;
  }
}

/* ========== LANDSCAPE ORIENTATION ADJUSTMENTS ========== */
@media (max-width: 768px) and (orientation: landscape) {
  .sidebar-menu {
    width: 60%;
  }
  
  .auth-wrapper {
    padding: 10px;
  }
  
  .accordion-body {
    padding: 0.8rem !important;
  }
}

/* ========== UTILITY CLASSES FOR MOBILE ========== */
@media (max-width: 768px) {
  .mobile-hide {
    display: none !important;
  }
  
  .mobile-show {
    display: block !important;
  }
  
  .mobile-text-center {
    text-align: center !important;
  }
  
  .mobile-full-width {
    width: 100% !important;
  }
}

/* ========== TOUCH-FRIENDLY ADJUSTMENTS ========== */
@media (hover: none) and (pointer: coarse) {
  /* Increase tap target sizes for touch devices */
  .btn,
  .action-btn-circle,
  button {
    min-height: 20px;
    min-width: 20px;
    margin:2px;
  }
  
  .table tr {
    cursor: pointer;
  }
}

/* ========== SIDEBAR OVERLAY FOR MOBILE ========== */
@media (max-width: 576px) {
  /* Overlay when sidebar is open */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1045;
  }
  
  .sidebar-overlay.show {
    display: block;
  }
}

.ps-8 {
padding-left: 8rem !important;
	
}

.text-center {
text-align: center !important;
	
}

.sms-icon-muted {
color:#b0aeae;	
	
}

.accordion-button i {
  width: 24px;
  display: inline-block;
  text-align: center;
}

/* Inverted business button - teal background with white text */
.btn-add-business {
  border-radius: 30px;
  padding: 0.3rem .8rem;
  font-weight: 500;
  background: rgb(24,162,185);
  color: #fff;
  border: 2px solid rgb(24,162,185);
  transition: 0.3s;
}

.btn-add-business:hover {
  background: rgb(16,130,150);
  border-color: rgb(16,130,150);
  color: #fff;
}

/* Info button in modal header */
.btn-info-modal {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  padding: 0;
  cursor: pointer;
  transition: 0.2s;
}

.btn-info-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-info-modal i {
  font-size: 0.7rem;
}


.form-switch {
padding-left: 3.5rem;	
	
}

/* Round Buttons */
.status-sent {
       border: 1.5px solid #3b82f6;
       color: #fff;
       background-color: #3b82f6;
       font-weight: 600;
       transition: all 0.3s ease;
       width: 36px;
       height: 36px;
       border-radius: 50%;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       cursor: pointer;

}

.status-sent:hover {
       background-color: #3b82f6;
       transform: translateY(-2px);
       box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
}

.status-edit {
       border: 1.5px solid #5a9fb5;
       color: #fff;
       background-color: #5a9fb5;
       font-weight: 600;
       transition: all 0.3s ease;
       width: 36px;
       height: 36px;
       border-radius: 50%;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       cursor: pointer;

}

.status-edit:hover {
       background-color: #5a9fb5;
       transform: translateY(-2px);
       box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
}

.status-vehicle {
       border: 1.5px solid #6c757d;
       color: #fff;
       background-color: #6c757d;
       font-weight: 600;
       transition: all 0.3s ease;
       width: 36px;
       height: 36px;
       border-radius: 50%;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       cursor: pointer;

}

.status-vehicle:hover {
       background-color: #6c757d;
       transform: translateY(-2px);
       box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
}

.status-trash {
       border: 1.5px solid #dc3545;
       color: #fff;
       background-color: #dc3545;
       font-weight: 600;
       transition: all 0.3s ease;
       width: 36px;
       height: 36px;
       border-radius: 50%;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       cursor: pointer;

}

.status-trash:hover{
       background-color: #dc3545;
       transform: translateY(-2px);
       box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
}

.sms-badge {
   
    background: #ff3b3b !important;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Info Icon Button Styles */
.info-icon-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 6px;
    color: #aaaaab;
    cursor: pointer;
    font-size: 0.875rem;
    vertical-align: middle;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.info-icon-btn:hover {
    color: #0a58ca;
    transform: scale(1.1);
}

.info-icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.info-icon-btn i {
    pointer-events: none;
}

/* Ensure labels with info buttons align properly */
.form-label {
    display: inline-flex;
    align-items: center;
}

.form-label-compact {
    display: inline-flex;
    align-items: center;
}

.ms-206 {
margin-left: 1.8rem !important
}

.bg-mot {
background-color: rgba(94, 190, 207, 0.12);
border: 1px solid rgba(94, 190, 207, 0.3);
}

.bg-ser {
background-color: rgba(145, 203, 175, 0.12);
border: 1px solid rgba(145, 203, 175, 0.3);
}

.bg-tot {
background-color: rgba(106, 160, 217, 0.12);
border: 1px solid rgba(106, 160, 217, 0.3);
}

.bg-adhoc {
background-color: rgba(217, 184, 134, 0.15);
border: 1px solid rgba(217, 184, 134, 0.3);
}


  .vehicle-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .vehicle-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13,110,253,0.15);
    transform: translateY(-1px);
  }
  
  .vehicle-reg-badge {
    background: #ffd700;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: inline-block;
    border: 2px solid #000;
  }
  
  .vehicle-field-label {
    font-size: 0.70rem;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
  }
  
  .vehicle-field-value {
    font-size: 0.75rem;
    color: #2c3e50;
    font-weight: 500;
  }
  
  .vehicle-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
  }
  
  .vehicle-date-warning {
    color: #ca9c0b;
    font-weight: 600;
  }
  
  .vehicle-date-danger {
    color: #dc3545;
    font-weight: 600;
  }
  
  .vehicle-date-ok {
    color: #222;
  }
  
  .vehicle-bottom-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
  }
  
  .vehicle-dates-group {
    display: flex;
    gap: 20px;
    flex: 1;
  }
  
  .vehicle-date-item {
    display: flex;
    flex-direction: column;
  }
  
  @media (max-width: 768px) {
    .vehicle-card .row > div {
      margin-bottom: 8px;
    }
    
    .vehicle-bottom-row {
      flex-wrap: wrap;
    }
  }
  
  /* ===== SETTINGS PAGE BUTTON FIX — MOBILE ===== */
  @media (max-width: 576px) {

    /* Smaller "Restore Default Message" buttons */
    .btn-pill-sm {
        padding: 0.25rem 0.45rem !important;
        font-size: 0.55rem !important;
        border-radius: 20px !important;
        gap: 2px !important;
    }

    /* Smaller "Save Settings" buttons */
    #smsSettingsForm .btn-primary {
        padding: 0.35rem 0.9rem !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
    }

    /* Reduce icon size inside buttons */
    .btn-primary i,
    .btn-pill-sm i {
        font-size: 0.55rem !important;
        margin-right: 2px !important;
    }

    /* Shrink tooltip info buttons beside labels */
    .info-icon-btn {
        width: 16px !important;
        height: 16px !important;
        font-size: 0.6rem !important;
    }
    
    #collapseAgents .accordion-body {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #agentsTable {
        min-width: 600px !important;
    }
  }
  
  @media (min-width: 380px) and (max-width: 1024px) {

      /* Reduce diameter of the round buttons */
      .status-sent,
      .status-edit,
      .status-vehicle,
      .status-trash {
          width: 25px !important;
          height: 25px !important;
          border-width: 1.2px !important;
      }

      /* Resize icons inside buttons */
      .status-sent i,
      .status-edit i,
      .status-vehicle i,
      .status-trash i {
          font-size: .8rem !important;
      }
      
      /* Reduce diameter of the round buttons */
      .uk-plate-badge
    	{
          width: 100px !important;
	   padding: 3px 0px !important; 
	   font-size: .70rem !important;  
      }
      
      .tooltip-inner {
	      padding: 10px !important;
          font-size: 0.6rem !important;
      }
      
      
      /* Force the Customer Table wrapper to allow horizontal scroll */
          #customersPanel .table-responsive {
              overflow-x: auto !important;
              -webkit-overflow-scrolling: touch !important;
              display: block !important;
          }

          /* Force table to have a minimum width so it scrolls instead of squishing */
          #customersPanel table {
              min-width: 850px !important;
          }

          /* Keep table header readable */
          #customersPanel thead th {
              white-space: nowrap !important;
          }

          /* Prevent action buttons from wrapping */
          #customersPanel td:last-child {
              white-space: nowrap !important;
          }
  }
  
  /* UK Rear Number Plate Badge */
  .uk-plate-badge {
      display: inline-block;
      background-color: #F2B407;
      color: #000;
      font-family: 'Arial', 'Helvetica Neue', Arial, sans-serif;
      font-weight: 600;
      padding: 2px 1px;
      border-radius: 5px;
      border: 2px solid #000;
      font-size: 0.75rem;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
      width: 100px;
      text-align: center;
  }
  
  @media (max-width: 576px) {
    /* Preserve vehicle card grid on mobile */
    .vehicle-card .col-4 {
      flex: 0 0 33.333% !important;
      max-width: 33.333% !important;
    }
  
    .vehicle-card .col-6 {
      flex: 0 0 50% !important;
      max-width: 50% !important;
    }
  }
  
  .tooltip-inner {
      padding: 10px !important;
      font-size: 0.6rem !important;
  }
  
  
  /* Hide mobile menu toggle on auth screens */
  body:has(#portalScreen[style*="display: none"]) .mobile-menu-toggle,
  body:has(#loginScreen:not([style*="display: none"])) .mobile-menu-toggle,
  body:has(#loadingScreen:not([style*="display: none"])) .mobile-menu-toggle,
  body:has(#twoFAScreen:not([style*="display: none"])) .mobile-menu-toggle,
  body:has(#setup2FAScreen:not([style*="display: none"])) .mobile-menu-toggle {
    display: none !important;
  }
  
  /* Prevent mobile zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="password"] {
      font-size: 16px;
  }

  /* For smaller screens, ensure inputs stay 16px minimum */
  @media (max-width: 768px) {
      input[type="text"],
      input[type="email"],
      input[type="password"] {
          font-size: 16px !important;
      }
  }
  
  @media (max-width: 568px) {
    #secretKey {
      font-size: 12px !important;
    }
  }
  

  @media (min-width: 1024px) {
    #setup2FAScreen .auth-card-wide,
    #twoFAScreen .auth-card {
      transform: scale(0.7);     /* 30% smaller */
      transform-origin: top center;
    }
   

    /* Optional: Reduce container height so scaling doesn’t create too much empty space */
    #setup2FAScreen .auth-container,
    #twoFAScreen .auth-container {
      padding-top: 20px;
    }
  }
  
.text-left {
text-align: left;
}

@media (min-width: 1024px) {   
  .ms-lg-206 {
  margin-left: 2.06rem !important;	
    }
  }
  
