body {
  padding: 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
  
}
h1 {
  background-color: #b2dff1;
}

a {
  color: #00B7FF;
}

::placeholder {
  color:brown !important;
  font-style: italic;
  font-size: 12px;
  
}

::-webkit-input-placeholder { /* Edge */
  color: red !important;
  font-style: italic;
  font-size: 12px;
}

::-moz-placeholder {
  color:red !important;
  font-style: italic;
  font-size: 12px;
}

::-ms-placeholder {
  color:red !important;
  font-style: italic;
  font-size: 12px;
}


.div-border
{
  border:1px solid #000000;
}

.cb-lb {
  padding-left: .5rem;
}

.highlight {
  border: 2px solid red;
}

.disabledInputs {
  pointer-events: none;
  opacity: 0.75;
}

.bgImage {
  position: relative;
  background-image: url("../images/gibli_Petromath_comp.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
}

.bgImage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  z-index: 0;
}

.bgImage > * {
  position: relative;
  z-index: 1;
}


/*
Snackbar toast message - start
 */

#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}
/*
Snackbar toast message - end
 */

#static-snackbar:empty {
  display: none !important;
}

#petromath-heading {
  background: linear-gradient(135deg, #2563eb, #1e40af); /* Sleek blue gradient */
  color: white;
  padding: 12px 20px;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  border-bottom: 2px solid #1e3a8a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/*
ajax-loading image changes - start
 */
#ajax-loading {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: fixed;
  display: block;
  opacity: 0.7;
  background-color: #fff;
  z-index: 99;
  text-align: center;
}

#loading-image {
  position: relative;
  top: 250px;
  z-index: 100;
}
/*
ajax-loading image changes - end
 */

#truckload_tab.nav-link.active {
  background-color:lightblue
}
#expense_tab.nav-link.active {
  background-color:lightblue
}



/* ===== UNIFIED LOGIN & LOCATION SELECTOR STYLES - DASHBOARD COLORS ===== */

/* Update both login and location pages to use dashboard colors */
.login-container,
.location-container {
  background: linear-gradient(135deg, #343a40 0%, #212529 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.app-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f4d03f 0%, #f7dc6f 100%);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(244, 208, 63, 0.3);
  box-shadow: 0 8px 32px rgba(244, 208, 63, 0.2);
}

.app-logo i {
  color: #343a40 !important;
}

.app-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.app-title {
  color: white;
  font-weight: 700;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.8);
}

.login-card,
.location-card {
  border-radius: 20px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-card .card-header,
.location-card .card-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px 20px 0 0;
}

.login-container .form-control-lg,
.location-container .form-control-lg {
  padding: 14px 18px !important;
  border-radius: 12px;
  border: 2px solid #e1e5e9;
  font-size: 16px !important;
  line-height: 1.4 !important;
  height: auto !important;
  transition: all 0.3s ease;
  background: white !important;
  color: #333 !important;
}

.login-container .form-control-lg option,
.location-container .form-control-lg option {
  background: white !important;
  color: #333 !important;
  padding: 10px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.login-container .form-control-lg:focus,
.location-container .form-control-lg:focus {
  border-color: #f4d03f;
  box-shadow: 0 0 0 0.15rem rgba(244, 208, 63, 0.25);
  background: white !important;
  color: #333 !important;
}

.login-btn,
.location-btn {
  background: linear-gradient(45deg, #f4d03f, #f7dc6f) !important;
  border: none !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #343a40 !important;
  height: 48px !important;
  line-height: 1.2 !important;
}

.login-container .btn-lg,
.location-container .btn-lg {
  padding: 14px 16px !important;
  height: 48px !important;
  line-height: 1.2 !important;
  font-size: 14px !important;
}

.login-btn:hover,
.location-btn:hover {
  background: linear-gradient(45deg, #f1c40f, #f4d03f) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(244, 208, 63, 0.4) !important;
  color: #343a40 !important;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .login-container,
  .location-container {
    padding: 15px;
  }
  
  .app-logo {
    width: 70px;
    height: 70px;
  }
  
  .app-title {
    font-size: 1.6rem;
  }
  
  .login-container .card-body,
  .location-container .card-body {
    padding: 1.5rem !important;
  }
  
  .login-container .form-control-lg,
  .location-container .form-control-lg {
    font-size: 16px;
    padding: 14px;
    height: auto;
  }
  
  .login-container .btn-lg,
  .location-container .btn-lg {
    padding: 14px;
    font-size: 16px;
  }
}




/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  /* Login container mobile styles */
  .login-container {
    padding: 15px;
  }
  
  .app-logo {
    width: 70px;
    height: 70px;
  }
  
  .app-title {
    font-size: 1.6rem;
  }
  
  .login-container .card-body {
    padding: 1.5rem !important;
  }
  
  .login-container .form-control-lg {
    font-size: 16px;
    padding: 14px;
    height: auto;
  }
  
  .login-container .btn-lg {
    padding: 14px;
    font-size: 16px;
  }
}


/* ===== MOBILE-FRIENDLY AJAX LOADING FIX ===== */

/* Hide ajax loading on mobile by default */
@media (max-width: 767px) {
  #ajax-loading {
    display: none !important;
  }
  
  /* Use a mobile-friendly loading indicator instead */
  #mobile-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  
  #mobile-loading.show {
    display: flex !important;
  }
  
  .mobile-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: mobile-spin 1s linear infinite;
  }
}

@keyframes mobile-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Desktop keeps original behavior */
@media (min-width: 768px) {
  #mobile-loading {
    display: none !important;
  }
}
/* ===== HOME PAGE MOBILE-FRIENDLY IMPROVEMENTS ===== */

/* Add these styles to the end of your existing style.css */

/* Fix the pink bar issue - ensure alerts don't show unwanted styling */
.alert {
  border: 1px solid transparent;
}

.alert-primary {
  background-color: #d1ecf1 !important;
  border-color: #bee5eb !important;
  color: #0c5460 !important;
}

/* Ensure desktop table stays exactly the same */
@media (min-width: 769px) {
  .table-desktop {
    display: table !important;
  }
  
  .mobile-cards-container {
    display: none !important;
  }
  
  .date-filter-mobile {
    display: none !important;
  }
  

.table-desktop {
  width: 100% !important;
  table-layout: auto; /* or fixed if you want equal-width columns */
}

.table-desktop thead,
.table-desktop tbody {
  width: 100% !important;
}

  /* Ensure original table styling is preserved
  .table {
    margin-bottom: 1rem;
    background-color: transparent;
  }
  
  .table th,
  .table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
  }
  
  .table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
  } */
}

@media (max-width: 768px) {
  
  /* Hide the original desktop date filter on mobile */
  form#closing-by-date {
    display: none !important;
  }
  
  /* Show the mobile date filter */
  .date-filter-mobile {
    display: block !important;
  }
  
  /* Date filter mobile improvements */
  .date-filter-mobile {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
  }
  
  .date-filter-mobile table.center {
    width: 100% !important;
    margin: 0 !important;
  }
  
  .date-filter-mobile table.center td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 5px 0 !important;
  }
  
  .date-filter-mobile table.center td:nth-child(3),
  .date-filter-mobile table.center td:nth-child(6) {
    display: none !important; /* Hide spacer cells */
  }
  
  .date-filter-mobile .form-control {
    font-size: 16px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    margin-top: 5px !important;
  }
  
  .date-filter-mobile .btn-primary {
    width: 100% !important;
    padding: 12px !important;
    margin-top: 10px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  /* Hide desktop table on mobile */
  .table-desktop {
    display: none !important;
  }
  
  /* Show mobile cards */
  .mobile-cards-container {
    display: block !important;
  }
  
  /* Mobile closing record cards */
  .closing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    padding: 16px;
    border-left: 4px solid #10b981;
    transition: transform 0.2s ease;
  }
  
  .closing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  
  .closing-card.draft {
    border-left-color: #f59e0b;
  }
  
  .closing-card.closed {
    border-left-color: #ef4444;
  }
  
  /* Card header with closing ID and status */
  .card-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
  }
  
  .card-id-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
  }
  
  .card-status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  .status-draft {
  background: #fef9c3; /* light yellow */
  color: #854d0e;      /* dark amber */
 }
  
  .status-closed {
  background: #dcfce7; /* light green */
  color: #166534;      /* dark green */
  }
  
  /* Card content rows */
  .card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
  }
  
  .card-row:last-child {
    border-bottom: none;
    margin-top: 8px;
  }
  
  .card-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .card-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
  }
  
  /* Product quantities styling */
  .product-value {
    background: #f0f9ff;
    padding: 4px 8px;
    border-radius: 6px;
    color: #0369a1;
    font-weight: 700;
  }
  
  /* Action buttons row */
  .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
  }
  
  .action-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .btn-edit {
    background: #dbeafe;
    color: #1d4ed8;
  }
  
  .btn-edit:hover {
    background: #bfdbfe;
    color: #1d4ed8;
    text-decoration: none;
  }
  
  .btn-delete {
    background: #fee2e2;
    color: #dc2626;
  }
  
  .btn-delete:hover {
    background: #fecaca;
    color: #dc2626;
    text-decoration: none;
  }
  
  /* Empty state styling */
  .no-records-mobile {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 20px;
  }
  
  .no-records-mobile i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 16px;
  }
  
  .no-records-mobile h4 {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .no-records-mobile p {
    color: #9ca3af;
    font-size: 14px;
  }
  
  /* Mobile totals summary styling */
  .alert-info h6 {
    margin-bottom: 8px;
    color: #1f2937;
  }
  
  .alert-info .badge-primary {
    font-size: 12px;
    font-weight: 700;
  }
}

/* Desktop: Hide mobile elements */
@media (min-width: 769px) {
  .mobile-cards-container {
    display: none !important;
  }
  
  .date-filter-mobile {
    display: none !important;
  }
}

/* Test current mobile tab behavior */
@media (max-width: 768px) {
  .nav-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav-tabs .nav-item {
    flex-shrink: 0;
  }
  .nav-link {
    font-size: 11px !important;
    padding: 8px 6px !important;
  }
}


/* URGENT: Hide placeholder rows on mobile to prevent freezing */
@media (max-width: 768px) {
  /* Hide all but first 5 placeholder rows in tables */
  .table tbody tr:nth-child(n+6) {
    display: none !important;
  }
  
  /* Also hide any empty rows that might be placeholders */
  .table tbody tr:empty,
  .table tbody tr:has(td:empty) {
    display: none !important;
  }
}


/* Optimize mobile performance for edit-draft-closing */
@media (max-width: 768px) {
  /* Prevent expensive table reflows */
  .table {
    table-layout: fixed !important;
    width: auto !important;
    transform: translateZ(0); /* Hardware acceleration */
  }
  
  /* Limit visible content to reduce reflow */
  .tab-content .tab-pane:not(.active) {
    display: none !important; /* Don't render hidden tabs */
  }
  
  /* Simplify complex layouts */
  .container-fluid {
    contain: layout style paint; /* CSS containment */
  }
}

/* ===== MILEAGE DASHBOARD COMPLETE STYLES ===== */

/* Base dashboard card styles */
.dashboard-card {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  margin-bottom: 20px;
}

.dashboard-card:hover {
  transform: translateY(-2px);
}

/* Metric cards with login theme */
.metric-card {
  background: linear-gradient(135deg, #343a40 0%, #212529 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(135deg, #f4d03f 0%, #f7dc6f 100%);
}

.metric-card h4 { color: white; }
.metric-card p { color: rgba(255, 255, 255, 0.8); }
.metric-card i { color: #f4d03f; }

/* Vehicle performance cards - updated styling */
.vehicle-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: none;
  border-left: 4px solid #28a745; /* Default good performance */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.vehicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.vehicle-card.poor-performance {
  border-left: 4px solid #dc3545;
}

.vehicle-card.average-performance {
  border-left: 4px solid #ffc107;
}

/* Add subtle top accent strip like metric cards */
.vehicle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, rgba(244, 208, 63, 0.3) 0%, rgba(247, 220, 111, 0.3) 100%);
}

/* Vehicle card header styling */
.vehicle-card .card-body h6 {
  color: #343a40;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.vehicle-card .card-body h6 i {
  color: #f4d03f;
  margin-right: 8px;
}

/* Vehicle type subtitle */
.vehicle-card .text-muted {
  color: #6c757d !important;
  font-size: 12px;
  margin-bottom: 15px;
}

/* Vehicle card metrics styling */
.vehicle-card .row {
  margin: 8px 0;
}

.vehicle-card .col-6 small {
  color: #6c757d;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.vehicle-card .col-6 h5,
.vehicle-card .col-6 h6 {
  color: #343a40;
  font-weight: 700;
  margin-bottom: 0;
  font-size: 14px;
}

/* Chart container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Mileage performance classes */
.mileage-good { 
  color: #28a745 !important; 
  font-weight: bold; 
}

.mileage-average { 
  color: #ffc107 !important; 
  font-weight: bold; 
}

.mileage-poor { 
  color: #dc3545 !important; 
  font-weight: bold; 
}

/* Fuel entry form */
.fuel-entry-form {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

/* Vehicle header for grouped reports */
.vehicle-header {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 10px;
}

.vehicle-header:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

/* Vehicle summary cards */
.vehicle-summary {
  background: #ffffff;
  color: #333;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.vehicle-summary.poor-performance {
  background: #ffffff;
  border-left: 4px solid #dc3545;
  color: #333;
}

.vehicle-summary.average-performance {
  background: #ffffff;
  border-left: 4px solid #ffc107;
  color: #333;
}

.vehicle-summary:not(.poor-performance):not(.average-performance) {
  border-left: 4px solid #28a745;
}

/* Number plate styling */
.number-plate {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  color: #000;
  border: 3px solid #333;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.8);
  display: inline-block;
  min-width: 160px;
  position: relative;
  letter-spacing: 1px;
}

.number-plate::before {
  content: "IND";
  position: absolute;
  top: -2px;
  left: 8px;
  font-size: 10px;
  font-weight: bold;
  color: #000;
  background: #ffffff;
  padding: 0 4px;
  border-radius: 2px;
}

.number-plate::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 8px;
  width: 20px;
  height: 12px;
  background: linear-gradient(to right, #ff9933 0%, #ff9933 33%, #ffffff 33%, #ffffff 66%, #138808 66%, #138808 100%);
  border: 1px solid #333;
  border-radius: 2px;
}

/* Transaction details */
.transaction-details {
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
  border: 1px solid #dee2e6;
  border-top: none;
}

/* Collapse icon animation */
.collapse-icon {
  transition: transform 0.3s ease;
}

.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

/* Vehicle summary text colors */
.vehicle-summary small {
  color: #6c757d !important;
}

.vehicle-summary .h6 {
  color: #333 !important;
}

/* Badge styles */
.badge-sm {
  font-size: 0.75em;
  padding: 0.25em 0.5em;
}

.vehicle-badge {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.badge-success {
  background-color: #28a745 !important;
}

.badge-info {
  background-color: #17a2b8 !important;
}

.badge-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.badge-secondary {
  background-color: #6c757d !important;
}

.badge-light {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

/* Table hover effects */
.table-hover tbody tr:hover {
  background-color: rgba(0,123,255,.1);
}

/* Data quality badge positioning */
.data-quality-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ===== MOBILE RESPONSIVENESS FOR MILEAGE DASHBOARD ===== */

/* Desktop: Keep existing layout */
@media (min-width: 769px) {
  .mileage-date-filter-mobile {
    display: none !important;
  }
}

/* Mobile: Improved mileage dashboard responsiveness */
@media (max-width: 768px) {
  
  /* Hide desktop date filter and show mobile version */
  .mileage-dashboard .col-md-6.mx-auto .card {
    display: none !important;
  }
  
  .mileage-date-filter-mobile {
    display: block !important;
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.05) 0%, rgba(33, 37, 41, 0.05) 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(244, 208, 63, 0.2);
  }
  
  /* Mobile date inputs - larger tap targets with login theme */
  .mileage-date-filter-mobile .form-control {
    font-size: 16px !important;
    padding: 14px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    height: 48px !important;
    border: 2px solid #e1e5e9;
    background: white !important;
  }
  
  .mileage-date-filter-mobile .form-control:focus {
    border-color: #f4d03f;
    box-shadow: 0 0 0 0.15rem rgba(244, 208, 63, 0.25);
  }
  
  .mileage-date-filter-mobile label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #343a40;
    font-size: 14px;
  }
  
  .mileage-date-filter-mobile .btn-primary {
    width: 100% !important;
    padding: 14px !important;
    margin-top: 10px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    height: 48px !important;
    background: linear-gradient(45deg, #f4d03f, #f7dc6f) !important;
    border: none !important;
    color: #343a40 !important;
    font-weight: 600 !important;
  }
  
  .mileage-date-filter-mobile .btn-primary:hover {
    background: linear-gradient(45deg, #f1c40f, #f4d03f) !important;
    transform: translateY(-1px) !important;
  }
  
  /* Summary cards - 2 per row on mobile */
  .mileage-dashboard .row .col-md-3 {
    width: 50% !important;
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 5px;
    margin-bottom: 10px;
  }
  
  .mileage-dashboard .metric-card {
    margin-bottom: 10px;
  }
  
  .mileage-dashboard .metric-card .card-body {
    padding: 12px !important;
    text-align: center;
  }
  
  .mileage-dashboard .metric-card h4 {
    font-size: 16px !important;
    margin-bottom: 5px;
    color: white !important;
  }
  
  .mileage-dashboard .metric-card p {
    font-size: 11px !important;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8) !important;
  }
  
  .mileage-dashboard .metric-card .fa-2x {
    font-size: 1.2em !important;
    color: #f4d03f !important;
  }
  
  /* Vehicle cards - full width on mobile */
  .mileage-dashboard #vehicleCards .col-md-4 {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  .mileage-dashboard .vehicle-card .card-body {
    padding: 15px;
  }
  
  /* Stack vehicle card info vertically on mobile */
  .mileage-dashboard .vehicle-card .row {
    margin: 8px 0;
  }
  
  .mileage-dashboard .vehicle-card .col-6 {
    width: 50% !important;
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 8px;
  }
  
  .mileage-dashboard .vehicle-card h6 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .mileage-dashboard .vehicle-card .text-muted {
    font-size: 12px;
  }
  
  .mileage-dashboard .vehicle-card small {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
  }
  
  .mileage-dashboard .vehicle-card h5,
  .mileage-dashboard .vehicle-card h6:not(:first-child) {
    font-size: 13px;
    margin-bottom: 0;
  }
  
  /* Mobile vehicle card adjustments */
  .vehicle-card .card-body {
    padding: 15px;
  }
  
  .vehicle-card .col-6 {
    margin-bottom: 12px;
  }
  
  .vehicle-card .col-6 small {
    font-size: 10px;
  }
  
  .vehicle-card .col-6 h5,
  .vehicle-card .col-6 h6 {
    font-size: 13px;
  }
  
  /* Mobile number plate adjustments */
  .number-plate {
    font-size: 14px;
    min-width: 120px;
    padding: 4px 8px;
  }
  
  .number-plate::before {
    font-size: 8px;
  }
  
  .number-plate::after {
    width: 16px;
    height: 10px;
  }
}

/* ===== VERTICAL SIDEBAR NAVIGATION STYLES ===== */

/* Override body padding when sidebar is active */
body {
  background-color: #f8f9fa;
}

/* Vertical Sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #343a40 0%, #212529 100%);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 20px;
  background: linear-gradient(135deg, #f4d03f 0%, #f7dc6f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-header.canary-instance {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.sidebar-logo {
  color: black;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  text-decoration: none;
}

.sidebar-logo:hover {
  color: black;
  text-decoration: none;
}

.sidebar-user {
  color: rgba(6, 6, 6, 0.624);
  font-size: 12px;
  line-height: 1.3;
}

/* Menu Sections */
.menu-section {
  margin: 15px 0;
}

.menu-section-title {
  padding: 10px 20px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-size: 14px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #007bff;
  color: white;
  text-decoration: none;
}

.menu-item.active {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: #007bff;
  color: white;
  font-weight: 600;
}

.menu-item-icon {
  width: 20px;
  margin-right: 12px;
  text-align: center;
  font-size: 16px;
}

.menu-item-icon i {
  font-size: 16px;
}

.submenu {
  background: rgba(0, 0, 0, 0.2);
}

.submenu .menu-item {
  padding-left: 50px;
  font-size: 13px;
}

/* Main content area */
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  transition: all 0.3s ease;
}

.main-content.expanded {
  margin-left: 0;
}

/* Top Bar */
.top-bar {
  background: white;
  padding: 15px 25px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
}

.sidebar-toggle {
  background: #343a40;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background: #23272b;
}

.breadcrumb-nav {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  font-size: 14px;
  color: #495057;
}

.logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #c82333;
  color: white;
  text-decoration: none;
}

/* Content Wrapper */
.content-wrapper {
  padding: 25px;
}

/* Hide original heading when sidebar is active */
#petromath-heading {
  display: none;
}

/* Alerts positioning in sidebar layout */
.main-content .alert {
  margin: 0 0 20px 0;
}

/* Mobile snackbar positioning in sidebar layout */
.main-content #static-snackbar {
  position: relative;
  margin-bottom: 15px;
}

/* ===== MOBILE RESPONSIVENESS FOR SIDEBAR ===== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    padding: 15px;
  }

  .top-bar {
    padding: 12px 15px;
  }
  
  /* Ensure sidebar covers full screen on mobile when open */
  .sidebar.show {
    width: 100%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }
  
  .main-content {
    margin-left: 240px;
  }
  
  .main-content.expanded {
    margin-left: 0;
  }
  
  .content-wrapper {
    padding: 20px;
  }
}

/* Large screen adjustments */
@media (min-width: 1400px) {
  .sidebar {
    width: 280px;
  }
  
  .main-content {
    margin-left: 280px;
  }
  
  .main-content.expanded {
    margin-left: 0;
  }
}

/* ===== SMOOTH TRANSITIONS AND ANIMATIONS ===== */

/* Sidebar slide animation */
.sidebar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content shift animation */
.main-content {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menu item hover animations */
.menu-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button hover animations */
.sidebar-toggle,
.logout-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus states for keyboard navigation */
.menu-item:focus,
.sidebar-toggle:focus,
.logout-btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .sidebar {
    background: #000;
    border-right: 2px solid #fff;
  }
  
  .menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .top-bar {
    border-bottom: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .main-content,
  .menu-item,
  .sidebar-toggle,
  .logout-btn {
    transition: none;
  }
}

/* ===== PRINT STYLES FOR SIDEBAR LAYOUT ===== */
@media print {
  .sidebar,
  .top-bar {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
  
  .content-wrapper {
    padding: 0 !important;
  }
  
  /* Restore original heading for print */
  #petromath-heading {
    display: block !important;
  }
}

/* ===== ADJUSTMENT ENTRY MOBILE-FRIENDLY STYLES ===== */

/* Desktop: Keep existing card layout */
@media (min-width: 769px) {
  .adjustment-date-filter-mobile {
    display: none !important;
  }
}

/* Mobile: Improved adjustment entry responsiveness */
@media (max-width: 768px) {
  .adjustment-entry-desktop {
    display: none !important;
  }
  
  .adjustment-date-filter-mobile {
    display: block !important;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
  }
  
  .adjustment-date-filter-mobile .form-control,
  .adjustment-date-filter-mobile .form-control-lg {
    font-size: 16px !important;
    padding: 14px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    height: 48px !important;
    border: 2px solid #e1e5e9;
  }
  
  .adjustment-date-filter-mobile .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.25);
  }
  
  .adjustment-date-filter-mobile label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 14px;
    display: block;
  }
  
  .amount-input-mobile {
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: center !important;
  }
  
  .btn-mobile {
    width: 100% !important;
    padding: 16px !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    height: 52px !important;
  }
  
  /* Recent adjustments table mobile optimization */
  .table-responsive {
    border: none;
  }
  
  .table-sm th,
  .table-sm td {
    font-size: 11px !important;
    padding: 6px 4px !important;
  }
  
  .badge-sm {
    font-size: 9px !important;
    padding: 2px 6px !important;
  }
}

/* Desktop adjustment form enhancements */
.adjustment-entry-desktop .amount-input {
  font-size: 1.2em;
  font-weight: bold;
  text-align: right;
}

.adjustment-entry-desktop .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.25);
}

/* Form validation styles */
.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid {
  border-color: #28a745;
}

/* Adjustment scenarios info box */
.adjustment-scenarios {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #2196f3;
}

.adjustment-scenarios ul {
  margin-bottom: 0;
}

.adjustment-scenarios li {
  margin-bottom: 5px;
}

/* Recent adjustments styling */
.recent-adjustments-card {
  margin-top: 2rem;
}

.recent-adjustments-table {
  font-size: 0.875rem;
}

.recent-adjustments-table .badge {
  font-size: 0.7rem;
}

/* Status-based row highlighting */
.table-warning {
  background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Recent adjustments responsive table */
@media (max-width: 768px) {
  .recent-adjustments-table {
    font-size: 0.75rem;
  }
  
  .recent-adjustments-table th:nth-child(3),
  .recent-adjustments-table td:nth-child(3) {
    display: none; /* Hide Account column on mobile */
  }
  
  .recent-adjustments-table th:nth-child(4),
  .recent-adjustments-table td:nth-child(4) {
    display: none; /* Hide Type column on mobile */
  }
}

/* ===== BILLS CREATE PAGE MOBILE STYLES ===== */

/* Hide desktop table on mobile for bills */
@media (max-width: 768px) {
  .table-responsive {
    display: none !important;
  }
  
  /* Mobile bills form styling */
  .mobile-form-section {
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 10px !important;
    border: 1px solid #e1e5e9 !important;
  }
  
  /* Mobile form controls for bills */
  .mobile-form-section .form-control-lg {
    font-size: 16px !important;
    height: 48px !important;
  }
}

/* ===== ENHANCED PAST ADJUSTMENTS FILTER SECTION ===== */

/* Enhanced Past Adjustments Filter Section */
.filter-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-toggle {
    cursor: pointer;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.filter-toggle:hover {
    background: #e9ecef;
}

.filter-content {
    padding: 20px;
    display: none;
}

.filter-content.show {
    display: block;
}

.enhanced-adjustments-table {
    font-size: 0.9rem;
}

.enhanced-adjustments-table th {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-weight: 600;
}

.status-badge {
    font-size: 0.75rem;
}

.amount-column {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Enhanced adjustments summary footer */
#summaryFooter {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

#summaryFooter .font-weight-bold {
    color: #495057;
}

/* Filter form styling */
.filter-content .form-row .col-md-3,
.filter-content .form-row .col-md-4,
.filter-content .form-row .col-md-6 {
    margin-bottom: 15px;
}

.filter-content .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

.filter-content .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.25);
}

.filter-content label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    font-size: 13px;
}

/* Filter buttons styling */
.filter-content .btn {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
}

.filter-content .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.filter-content .btn-secondary {
    background: #6c757d;
    border: none;
}

/* Mobile optimizations for enhanced adjustments */
@media (max-width: 768px) {
    .filter-section {
        margin-bottom: 15px;
    }
    
    .filter-toggle {
        padding: 12px;
    }
    
    .filter-content {
        padding: 15px;
    }
    
    .filter-content .form-row .col-md-3,
    .filter-content .form-row .col-md-4,
    .filter-content .form-row .col-md-6 {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .filter-content .form-control {
        font-size: 16px !important;
        padding: 12px !important;
        height: 48px !important;
        border-radius: 8px !important;
    }
    
    .filter-content label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .filter-content .btn {
        width: 100%;
        margin-bottom: 8px;
        padding: 12px;
        font-size: 16px;
        height: 48px;
    }
    
    .filter-content .btn:last-child {
        margin-bottom: 0;
    }
    
    .enhanced-adjustments-table {
        font-size: 0.8rem;
    }
    
    .enhanced-adjustments-table .d-none.d-md-table-cell {
        display: none !important;
    }
    
    .enhanced-adjustments-table th,
    .enhanced-adjustments-table td {
        padding: 8px 4px !important;
    }
    
    .no-results {
        padding: 30px 15px;
    }
    
    .no-results i {
        font-size: 2rem !important;
    }
    
    .no-results h5 {
        font-size: 18px;
    }
    
    .no-results p {
        font-size: 14px;
    }
    
    .loading-spinner {
        padding: 30px;
    }
    
    .loading-spinner .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    
    /* Summary footer mobile styling */
    #summaryFooter .row {
        flex-direction: column;
    }
    
    #summaryFooter .col-md-4,
    #summaryFooter .col-md-8 {
        width: 100%;
        text-align: center !important;
        margin-bottom: 8px;
    }
    
    #summaryFooter .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* Integration with existing adjustment styles */
.enhanced-adjustments-table .table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.enhanced-adjustments-table .badge-info {
    background-color: #17a2b8;
}

.enhanced-adjustments-table .badge-success {
    background-color: #28a745;
}

.enhanced-adjustments-table .badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.enhanced-adjustments-table .badge-secondary {
    background-color: #6c757d;
}

/* Chevron icon animation */
#filterChevron {
    transition: transform 0.3s ease;
}

.filter-content.show ~ .filter-toggle #filterChevron {
    transform: rotate(180deg);
}

/* Date range preset specific styling */
#filterDateRange {
    font-weight: 600;
    color: #495057;
}

#filterDateRange option {
    padding: 8px;
}

/* Search input styling */
#filterSearch {
    position: relative;
}

#filterSearch:focus {
    background-color: #fff;
}

/* Ensure compatibility with existing table styles */
.enhanced-adjustments-table.table-sm th,
.enhanced-adjustments-table.table-sm td {
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Button hover effects for enhanced table */
.enhanced-adjustments-table .btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Text truncation for long descriptions on mobile */
@media (max-width: 768px) {
    .enhanced-adjustments-table td:nth-child(4) { /* Description column */
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Ensure filter section doesn't conflict with sidebar */
.main-content .filter-section {
    margin-top: 0;
}

/* Print styles for enhanced adjustments */
@media print {
    .filter-section {
        display: none !important;
    }
    
    .enhanced-adjustments-table .d-none.d-md-table-cell {
        display: table-cell !important;
    }
    
    .enhanced-adjustments-table .btn {
        display: none !important;
    }
    
    #summaryFooter {
        display: block !important;
        background: white !important;
        border: 1px solid #000 !important;
    }
}


/* ===== STICKY HEADER AND ALWAYS EXPANDED FILTERS ===== */

/* Sticky header section */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 2px solid #dee2e6;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Always expanded filter section */
.filter-section-expanded {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 15px;
}

.filter-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.filter-content-expanded {
    padding: 20px;
    background: white;
    border-radius: 0 0 8px 8px;
}

/* Results container with proper spacing */
.results-container {
    margin-top: 0;
}

/* Enhanced form styling for always-visible filters */
.filter-content-expanded .form-row .col-md-2,
.filter-content-expanded .form-row .col-md-3,
.filter-content-expanded .form-row .col-md-4 {
    margin-bottom: 15px;
}

.filter-content-expanded .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-content-expanded .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.25);
}

.filter-content-expanded label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
    font-size: 13px;
}

/* Button styling in filter section */
.filter-content-expanded .btn {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 80px;
}

.filter-content-expanded .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.filter-content-expanded .btn-secondary {
    background: #6c757d;
    border: none;
}

/* Ensure proper spacing between buttons */
.filter-content-expanded .btn + .btn {
    margin-left: 8px;
}

/* Mobile responsiveness for sticky header */
@media (max-width: 768px) {
    .sticky-header {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .sticky-header h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .sticky-header .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .sticky-header .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .filter-header {
        padding: 12px 15px;
    }
    
    .filter-content-expanded {
        padding: 15px;
    }
    
    .filter-content-expanded .form-row .col-md-2,
    .filter-content-expanded .form-row .col-md-3,
    .filter-content-expanded .form-row .col-md-4 {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .filter-content-expanded .form-control {
        font-size: 16px !important;
        padding: 12px !important;
        height: 48px !important;
        border-radius: 8px !important;
    }
    
    .filter-content-expanded label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .filter-content-expanded .btn {
        width: 100%;
        margin-bottom: 8px;
        margin-left: 0 !important;
        padding: 12px;
        font-size: 16px;
        height: 48px;
    }
    
    .filter-content-expanded .btn:last-child {
        margin-bottom: 0;
    }
}

/* Integration with sidebar layout */
.main-content .sticky-header {
    margin-left: 0;
    margin-right: 0;
}

/* Print styles - hide sticky header elements */
@media print {
    .sticky-header {
        position: static !important;
        box-shadow: none !important;
        border-bottom: 1px solid #000 !important;
    }
    
    .filter-section-expanded {
        display: none !important;
    }
}

/* ===== COMPLETE STICKY HEADERS SYSTEM ===== */

/* Main sticky container - sticks to top */
.sticky-header-container {
    position: sticky;
    top: 0;
    z-index: 200;
    background: white;
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 0;
}

/* Main header with title and button */
.main-header {
    margin-bottom: 15px;
}

/* Section header for Past Adjustments */
.section-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.section-header h5 {
    color: #495057;
    font-weight: 600;
}

/* Always expanded filter section */
.filter-section-expanded {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
}

.filter-header {
    padding: 12px 20px;
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.filter-content-expanded {
    padding: 20px;
    background: white;
    border-radius: 0 0 8px 8px;
}

/* Sticky table header - positioned below the filters */
.sticky-table-header {
    position: sticky;
    top: 270px; /* Adjust based on filter section height */
    z-index: 100;
    background: white;
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.sticky-table-header .table {
    margin-bottom: 0;
}

.sticky-table-header th {
    background: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
    font-weight: 600;
    color: #495057;
    padding: 12px 8px;
}

/* Results container with no top margin */
.results-container {
    margin-top: 0;
}

/* Borderless card for seamless table continuation */
.borderless-card {
    border: none;
    box-shadow: none;
}

.borderless-card .card-body {
    padding: 0;
}

/* Enhanced form styling for always-visible filters */
.filter-content-expanded .form-row .col-md-2,
.filter-content-expanded .form-row .col-md-3,
.filter-content-expanded .form-row .col-md-4 {
    margin-bottom: 15px;
}

.filter-content-expanded .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-content-expanded .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.15rem rgba(102, 126, 234, 0.25);
}

.filter-content-expanded label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
    font-size: 13px;
}

/* Button styling in filter section */
.filter-content-expanded .btn {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 80px;
}

.filter-content-expanded .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.filter-content-expanded .btn-secondary {
    background: #6c757d;
    border: none;
}

/* Ensure proper spacing between buttons */
.filter-content-expanded .btn + .btn {
    margin-left: 8px;
}

/* Table styling to match sticky header */
.enhanced-adjustments-table {
    font-size: 0.9rem;
}

.enhanced-adjustments-table th {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-weight: 600;
}

.status-badge {
    font-size: 0.75rem;
}

.amount-column {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    display: none;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Summary footer styling */
#summaryFooter {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

#summaryFooter .font-weight-bold {
    color: #495057;
}

/* Mobile responsiveness for sticky headers */
@media (max-width: 768px) {
    .sticky-header-container {
        padding: 10px 0;
        position: relative; /* Disable sticky on mobile for better UX */
    }
    
    .sticky-table-header {
        position: relative; /* Disable sticky on mobile */
        top: auto;
    }
    
    .main-header h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .main-header .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .main-header .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .filter-header {
        padding: 12px 15px;
    }
    
    .filter-content-expanded {
        padding: 15px;
    }
    
    .filter-content-expanded .form-row .col-md-2,
    .filter-content-expanded .form-row .col-md-3,
    .filter-content-expanded .form-row .col-md-4 {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .filter-content-expanded .form-control {
        font-size: 16px !important;
        padding: 12px !important;
        height: 48px !important;
        border-radius: 8px !important;
    }
    
    .filter-content-expanded label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .filter-content-expanded .btn {
        width: 100%;
        margin-bottom: 8px;
        margin-left: 0 !important;
        padding: 12px;
        font-size: 16px;
        height: 48px;
    }
    
    .filter-content-expanded .btn:last-child {
        margin-bottom: 0;
    }
    
    .enhanced-adjustments-table {
        font-size: 0.8rem;
    }
    
    .enhanced-adjustments-table .d-none.d-md-table-cell {
        display: none !important;
    }
    
    .enhanced-adjustments-table th,
    .enhanced-adjustments-table td {
        padding: 8px 4px !important;
    }
    
    .no-results {
        padding: 30px 15px;
    }
    
    .no-results i {
        font-size: 2rem !important;
    }
    
    .no-results h5 {
        font-size: 18px;
    }
    
    .no-results p {
        font-size: 14px;
    }
    
    .loading-spinner {
        padding: 30px;
    }
    
    .loading-spinner .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    
    /* Summary footer mobile styling */
    #summaryFooter .row {
        flex-direction: column;
    }
    
    #summaryFooter .col-md-4,
    #summaryFooter .col-md-8 {
        width: 100%;
        text-align: center !important;
        margin-bottom: 8px;
    }
    
    #summaryFooter .col-md-4:last-child {
        margin-bottom: 0;
    }
}

/* Integration with existing adjustment styles */
.enhanced-adjustments-table .table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.enhanced-adjustments-table .badge-info {
    background-color: #17a2b8;
}

.enhanced-adjustments-table .badge-success {
    background-color: #28a745;
}

.enhanced-adjustments-table .badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.enhanced-adjustments-table .badge-secondary {
    background-color: #6c757d;
}

/* Button hover effects for enhanced table */
.enhanced-adjustments-table .btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Text truncation for long descriptions on mobile */
@media (max-width: 768px) {
    .enhanced-adjustments-table td:nth-child(4) { /* Description column */
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Integration with sidebar layout */
.main-content .sticky-header-container {
    margin-left: 0;
    margin-right: 0;
}

/* Print styles - disable sticky positioning */
@media print {
    .sticky-header-container,
    .sticky-table-header {
        position: static !important;
        box-shadow: none !important;
        border-bottom: 1px solid #000 !important;
    }
    
    .filter-section-expanded {
        display: none !important;
    }
    
    .enhanced-adjustments-table .d-none.d-md-table-cell {
        display: table-cell !important;
    }
    
    .enhanced-adjustments-table .btn {
        display: none !important;
    }
    
    #summaryFooter {
        display: block !important;
        background: white !important;
        border: 1px solid #000 !important;
    }
}

/* ===== SUBTLE DEADLINE MANAGER STYLING ===== */

.deadline-section {
  background: #fafbfc;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
  border: 1px solid #e9ecef;
}

.deadline-header {
  background: #6c757d !important; /* Muted gray instead of bright blue */
  color: white !important;
  padding: 8px 16px !important; /* Smaller padding */
  border-radius: 6px !important;
  margin-bottom: 12px !important;
  font-size: 13px !important; /* Smaller font */
  font-weight: 500 !important; /* Less bold */
  display: flex;
  align-items: center;
  gap: 6px;
}

.deadline-header::before {
  content: "📋"; /* More subtle icon */
  font-size: 14px;
}

/* Keep table styling clean but less prominent */
#deadlineWarning-table {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Much lighter shadow */
  border: 1px solid #e9ecef;
  font-size: 13px; /* Smaller text */
}

#deadlineWarning-table thead {
  background: #f8f9fa !important; /* Lighter header */
}

#deadlineWarning-table th {
  border: none !important;
  padding: 10px 12px !important; /* Smaller padding */
  font-weight: 500 !important; /* Less bold */
  color: #6c757d !important; /* Muted color */
  font-size: 12px !important;
  text-transform: none; /* Remove uppercase */
  letter-spacing: normal;
}

#deadlineWarning-table td {
  border: none !important;
  padding: 10px 12px !important;
  color: #495057; /* Muted text color */
  vertical-align: middle;
  border-bottom: 1px solid #f8f9fa !important;
  font-size: 13px;
}

#deadlineWarning-table tbody tr:hover {
  background: #f8f9fa; /* Subtle hover */
}


/* Location Switcher Styles */
.location-switcher {
    color: #fff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.location-switcher:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.location-switcher:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Cashflow Detailed Report - Dark theme for filter header */
.cashflow-detailed-filters .filter-header {
    background: #343a40 !important;  /* Bootstrap dark color */
    border-bottom: 1px solid #343a40 !important;
    padding: 12px 20px !important;
}

.cashflow-detailed-filters .filter-header h6 {
    color: #ffffff !important;  /* White text */
    font-weight: 600 !important;
}

/* Menu Access Report Styles */
#access-report-table .sticky-col {
    position: sticky;
    left: 0;
    background-color: #f8f9fa;
    z-index: 10;
    min-width: 200px;
}

#access-report-table thead .sticky-col {
    background-color: #343a40;
    color: white;
}

#access-report-table .table-secondary .sticky-col {
    background-color: #e2e3e5;
}

@media print {
    .btn-group {
        display: none !important;
    }
}

/* Reading validation warnings */
.reading-validation-warning {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem;
}

.reading-validation-warning .close {
    padding: 0;
    background: transparent;
    border: 0;
    float: right;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
}

.reading-validation-warning .close:hover {
    opacity: 0.75;
}

.auto-fill-badge {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    z-index: 10;
    pointer-events: none;
    animation: badgeFadeIn 0.3s ease;
}

.auto-fill-badge::before {
    content: "⚡";
    font-size: 11px;
}

.reading-input-wrapper {
    position: relative;
}

.reading-input-wrapper input.auto-filled {
    padding-right: 65px;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@media (max-width: 768px) {
    .auto-fill-badge {
        font-size: 9px;
        padding: 1px 5px;
    }
}