/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* View Details Button - Dashboard Style */
.view-details-btn {
  background: #6B6ADE;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.view-details-btn:hover {
  background-color: #5A5ACF;
  color: white;
  text-decoration: none;
}

body,
html {
  height: 100%;
  margin: 0;
  background: #f4f7fe;
  font-family: 'Poppins', sans-serif;
}

h1 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 0px;
}

h2 {
  color: #263238;
}

p {
  color: #555555;
}

/* Date Input Styling - Make entire field clickable */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  cursor: pointer;
  position: relative;
}

/* Ensure date inputs are fully clickable */
input[type="date"]:not(:disabled),
input[type="datetime-local"]:not(:disabled),
input[type="time"]:not(:disabled) {
  cursor: pointer;
}

/* Style the calendar picker indicator */
/* Note: We can't make it cover 100% width reliably, so JavaScript handles the click */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  padding: 4px;
  margin-left: 4px;
}

/* Remove spinner buttons for date inputs */
input[type="date"]::-webkit-inner-spin-button,
input[type="datetime-local"]::-webkit-inner-spin-button {
  display: none;
}

/* For Firefox - make date inputs clickable */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="datetime-local"]::-moz-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
  padding: 0;
}

.title_uptext {
  color: #ffffffa8;
}

/* Sidebar */
.sidebar {
  zoom: 0.9;
  background-color: #ffffff;
  width: 250px;
  box-shadow: -6px 5px 14px 3px #0000002e;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: fixed;
  top: 0px;
  left: 0px;
  color: white;
  padding: 0px 15px 15px 15px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 999;
  overflow-y: auto;
  max-width: 250px;
  /* Ensure fixed width on zoom */
}

.sidebar-nav-links {
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav-links::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav-links::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav-links::-webkit-scrollbar-thumb {
  background: #6B6ADE;
  border-radius: 2px;
}

.search_sec {
  position: relative;
  display: flex;
  gap: 16px;
  width: 80%;
  margin-top: 20px;
}

.search_sec svg {
  position: absolute;
  top: 14px;
  left: 15px;
  z-index: 10;
}

.search_sec .Search_input {
  padding-left: 45px;
  border: 1px solid #dfeaf2;
  border-radius: 8px;
  padding: 12px 15px 12px 45px;
  font-size: 14px;
  width: 300px;
  background: #fff;
}

.search_btn {
  background: #6B6ADE;
  border: none;
  border-radius: 7px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search_btn:hover {
  background: #5a5ac7;
}

.add_btn {
  border: 2px solid #6B6ADE;
  background: #fff;
  box-shadow: 0px 1px 1px 0px #00000024;
  padding: 10px 20px;
  border-radius: 8px;
  color: #6B6ADE;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.add_btn:hover {
  color: #fff;
  background-color: #6B6ADE;
  border-color: #6B6ADE;
}

/* Unified action buttons (vehicles/vendors forms) */
.nxz-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.nxz-btn-primary {
  background: linear-gradient(135deg, #6B6ADE 0%, #3C3CE1 100%);
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nxz-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 106, 222, 0.35);
}

.nxz-btn-primary:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.nxz-btn-secondary {
  background: #fff;
  border: 1px solid #6c757d;
  color: #6c757d;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nxz-btn-secondary:hover {
  background: #6c757d;
  color: #fff;
}

/* Shared section containers and titles (forms) */
.form-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 18px 18px 8px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Link styles used inside form headers or helpers */
.nxz-link {
  color: #6B6ADE;
  text-decoration: none;
}

.nxz-link:hover {
  text-decoration: underline;
}

.head_left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header_title {
  margin-bottom: 20px;
}

/* Default title_uptext for all pages except vehicle/vendor/customer table pages */
.title_uptext {
  color: #ffffffa8;
  font-size: 16px;
  opacity: 0.9;
  font-weight: 500;
  margin-left: 290px !important;
  /* Aligned with sidebar */
  margin-bottom: 5px;
}

.header_title h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.record-count {
  color: #6c7a91;
  font-size: 14px;
  margin-top: 10px;
}

/* Pagination Wrapper - Common Styling for All Pages */
.pagination-wrapper {
  padding: 16px 0;
  flex-shrink: 0;
}

.pagination-wrapper .pagination-info {
  font-size: 14px;
  flex-shrink: 0;
}

.pagination-wrapper .pagination {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-wrapper .pagination .page-item {
  margin: 0;
}

.pagination-wrapper .pagination .page-item .page-link {
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  color: #6B7280;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-wrapper .pagination .page-item .page-link:hover {
  background: #F3F4F6;
  border-color: #6B6ADE;
  color: #6B6ADE;
  transform: translateY(-1px);
}

.pagination-wrapper .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #6B6ADE 0%, #3C3CE1 100%);
  border-color: #6B6ADE;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(107, 106, 222, 0.3);
}

.pagination-wrapper .pagination .page-item.disabled .page-link {
  background: #F9FAFB;
  border-color: #E5E7EB;
  color: #D1D5DB;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-wrapper .pagination .page-item.disabled .page-link:hover {
  background: #F9FAFB;
  border-color: #E5E7EB;
  color: #D1D5DB;
  transform: none;
}

/* Previous/Next Button Styling */
.pagination-wrapper .pagination .page-item:first-child .page-link,
.pagination-wrapper .pagination .page-item:last-child .page-link {
  font-weight: 600;
  padding: 8px 16px;
}

/* Remove any default Bootstrap pagination icons/symbols that might cause overlap */
.pagination-wrapper .pagination .page-item .page-link::before,
.pagination-wrapper .pagination .page-item .page-link::after {
  display: none !important;
  content: none !important;
}

/* Ensure no icon fonts interfere */
.pagination-wrapper .pagination .page-item .page-link i,
.pagination-wrapper .pagination .page-item .page-link svg {
  display: none;
}

/* Ensure pagination spans are properly styled */
.pagination-wrapper .pagination .page-item span.page-link {
  background: #F9FAFB;
  border-color: #E5E7EB;
  color: #6B7280;
  cursor: default;
}

.pagination-wrapper .pagination .page-item span.page-link:hover {
  background: #F9FAFB;
  border-color: #E5E7EB;
  color: #6B7280;
  transform: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .pagination-wrapper .pagination-info {
    text-align: center;
    width: 100%;
  }

  .pagination-wrapper .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pagination-wrapper .pagination .page-item .page-link {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 36px;
  }
}

.sidebar .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
  gap: 20px;
  margin-bottom: 25px;
}

.head_right {
  display: grid;
  justify-content: right;
  gap: 41px;
  padding: 5px 0px;
}

.add_btn {
  border: none;
  background: #fff;
  box-shadow: 0px 1px 1px 0px #00000024;
  padding: 10px 20px;
  border-radius: 4px;
  color: #6b6ade;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-decoration: none;
}

.AddBranch:hover {
  color: #fff;
  background-color: #5d5fef;
  border-color: none;
}

.Cancel_Btn {
  background: #e8e8e8;
  border: none;
  color: #000;
  font-size: 14px;
  padding: 10px 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.AddBranch {
  background: #5d5fef;
  border: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  color: #fff !important;
}

.profile .scan {
  margin-left: 15px;
}

/* .profile #globalRecordsFilter {
  padding: 8px 12px;
} */
/* Header Layout */
.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Common Header Icons Styling */
.header-icon {
  cursor: pointer;
  position: relative;
  margin: 0px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.header-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.header-icon i {
  font-size: 16px;
  color: white;
}

.scan {
  cursor: pointer;
  position: relative;
  margin: 0px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.scan:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Default header h1 for all pages except vehicle/vendor/customer table pages */
.header h1 {
  font-size: 20px;
  font-weight: 400;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 0 0 276px !important;
  text-wrap: nowrap;
  padding: 0;
}

.profileCol {
  padding-right: 0px !important;
}

.sidebar .logo img {
  width: 25%;
  border-radius: 14px;
}

.sidebar .logo h3 {
  color: #333;
  font-weight: 600;
  font-family: "Poppins", sans-serif !important;
  font-style: italic;
  font-size: 18px;
}

.sidebar .logo .border_logo {
  width: 100%;
}

.sidebar .nav-link {
  color: #444444;
  font-size: 13px;
  margin-bottom: 8px;
  gap: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 8px 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.sidebar .nav-link:hover {
  border-radius: 8px;
  background-color: #f8f9fa;
  color: #6b6ade;
}

.sidebar .nav-link.menuActive {
  background-color: #6B6ADE;
  border-radius: 8px;
  color: white;
  box-shadow: 0px 5px 14px 0px rgba(107, 106, 222, 0.3);
}

.sidebar .nav-link.menuActive .sidebar-nav-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link.menuActive .sidebar-nav-icon i {
  color: white;
}

/* Pending Booking Badge */
.pending-booking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background-color: #ef4444;
  color: #ffffff !important;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-left: auto;
  margin-right: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.sidebar .nav-link {
  position: relative;
}

.sidebar .nav-link .nav-link-text {
  flex: 1;
  white-space: nowrap;
}

.sidebar-nav-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar-nav-icon i {
  font-size: 16px;
  color: #6B6ADE;
}

/* Header */
/* Default header for all pages except vehicle/vendor/customer table pages */
.header {
  height: 80px !important;
  width: 100%;
  zoom: 0.9;
  object-fit: cover;
  background: linear-gradient(135deg, #6B6ADE 0%, #3C3CE1 100%);
  box-shadow: 0 4px 20px rgba(107, 106, 222, 0.3);
  padding: 20px 15px;
  position: fixed;
  top: 0;
  left: 0px;
  right: 0;
  z-index: 1000;
  /* Higher than sidebar to stay on top when scrolling */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Enhanced shadow when scrolled */
.header.scrolled {
  box-shadow: 0 6px 25px rgba(107, 106, 222, 0.4);
}

.head_lddeft {
  display: flex;
  align-items: center;
  height: 100%;
}

.header_tdditle {
  display: flex;
  align-items: center;
  height: 100%;
}

.head_right {
  display: grid;
  justify-content: right;
  gap: 41px;
  padding: 5px 0px;
}

.profileCol {
  padding-right: 0px !important;
}

.filter-options {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.VehicleSearch {
  color: #555;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}

.vechileRow {
  margin: 0;
}

.header-section.addVehicle {
  display: flex;
  align-items: end;
}

.innerPage {
  background: #fff;
  border: 2px solid #6B6ADE;
  border-radius: 8px;
  padding: 8px 16px;
  color: #6B6ADE;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.innerPage:hover {
  background: #6B6ADE;
  color: #fff;
}

.btn-custom {
  background: #fff;
  border: 2px solid #6B6ADE;
  border-radius: 8px;
  padding: 8px 16px;
  color: #6B6ADE;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background: #6B6ADE;
  color: #fff;
}

.filter-section {
  box-shadow: 6px 6px 54px 0px #0000000d;
  background: #fff;
  padding: 15px 15px;
  border-radius: 12px;
  border: none;
}

.form-control {
  border: 1px solid #dfeaf2;
  color: #101010;
  font-size: 14px;
}

/* Input Placeholder Styles */
::placeholder {
  color: #909090 !important;
  opacity: 1;
}

::-webkit-input-placeholder {
  color: #909090 !important;
}

::-moz-placeholder {
  color: #909090 !important;
  opacity: 1;
}

:-ms-input-placeholder {
  color: #909090 !important;
}

:-moz-placeholder {
  color: #909090 !important;
  opacity: 1;
}

.form-group label {
  color: #555;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}

.upload-section label {
  color: #555555;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

/* Header Dropdown Styling */
.select-container {
  position: relative;
  display: inline-block;
}

.select-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.select-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.select-container .select-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 150px;
  z-index: 1000;
  display: none;
}

.select-container .select-dropdown.show {
  display: block;
}

.select-container .option {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
}

.select-container .option:hover {
  background-color: #f8f9fa;
}

.select-container .option.selected {
  background-color: #6B6ADE;
  color: white;
}

/* Profile Dropdown */
.profile_menu {
  position: relative;
  display: inline-block;
}

.profile_img {
  cursor: pointer;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile_img i {
  font-size: 16px;
  color: white;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  width: 100%;
  max-height: 400px;
  z-index: 1;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.menu-item {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #f8f9fa;
}

/* Notification Styling */
.notify {
  position: relative;
  cursor: pointer;
}

.notification-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.notifications-container {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  min-width: 300px;
  z-index: 1000;
  display: none;
}

.notifications-container.show {
  display: block;
}

.notifications-header h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
}

.notifications-count {
  font-size: 12px;
  color: #666;
}

.tabs {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}

.tab {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab.active {
  color: #6B6ADE;
  border-bottom-color: #6B6ADE;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.notification-list {
  min-height: 100px;
  max-height: 400px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

/* Main Content */
/* Default main content for all pages except vehicle/vendor/customer table pages */
.main-content {
  margin-top: 0 !important;
  /* Removed margin-top */
  margin-left: 265px;
  /* Aligned with header h1, accounting for padding */
  padding: 1px;
  /* Add proper padding for content */
  padding-top: 100px;
  /* Start below header (80px) + 20px padding from header bottom */
  overflow-x: auto;
  /* Allow horizontal scrolling when needed */
  background: #F4F7FE;
  min-height: calc(100vh - 100px);
  /* Adjust min-height: header (80px) + padding-top (20px) */
  box-sizing: border-box;
  /* Include padding in width calculation */
  zoom: 0.9;
  /* Match dashboard zoom */
  position: relative;
  width: calc(100% - 276px);
  /* Fit window minus sidebar */
}

/* Default header icon spacing for all pages except vehicle/vendor/customer table pages */
.head_right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: end;
}

.scan,
.notify,
.profile_menu {
  margin: 0 5px;
}

/* Common Search and Add Button Styles */
.common-header-controls {
  position: absolute;
  top: 50px;
  left: 276px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.common-search-container {
  display: flex;
  margin-top: 10px;
  gap: 10px;
}

.common-search-container .input-group {
  width: 300px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.common-search-container .input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
}

.common-search-container .form-control {
  border: 1px solid #dee2e6;
  border-left: none;
}

.common-search-container .form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.common-add-container .btn {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.common-add-container .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.common-search-container .btn-outline-secondary {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-color: #6c757d;
  color: #6c757d;
}

.common-search-container .btn-outline-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}


/* Responsive Design */
@media (max-width: 1200px) {
  .main-content {
    margin-top: 0 !important;
    margin-left: calc(20% - 20px);
    /* Account for left padding (20px) */
    padding: 15px 20px;
    /* Reduce padding on smaller screens */
    padding-top: 100px;
    /* Start below header (80px) + 20px padding from header bottom */
    width: calc(100vw - 20%);
    /* Ensure responsive width */
    max-width: calc(100vw - 20%);
    /* Prevent overflow */
  }
}

@media (max-width: 768px) {

  /* Mobile Menu Toggle Button */
  .mobile-menu-toggle {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    height: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 20px;
  }

  .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  /* Sidebar - Mobile */
  .sidebar {
    width: 0 !important;
    overflow: hidden;
    transition: width 0.3s ease, padding 0.3s ease;
    position: fixed !important;
    left: 0 !important;
    z-index: 999 !important;
    padding: 0 !important;
    height: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .sidebar.active {
    width: 250px !important;
    padding: 0px 15px 15px 15px !important;
  }

  /* Overlay for mobile sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-content {
    margin-top: 0 !important;
    margin-left: 0 !important;
    padding: 10px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    left: 0 !important;
  }

  /* Header - Mobile */
  .header {
    padding: 12px 15px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
  }

  .header:hover {
    height: 70px !important;
  }

  .header .row {
    margin: 0 !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative;
    height: 100%;
    display: flex !important;
  }

  .header .row>div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .head_lddeft {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    z-index: 10;
  }

  .header_tdditle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1;
    flex-wrap: wrap;
    gap: 8px;
    height: 100%;
  }

  .header h1 {
    font-size: 16px !important;
    margin: 12px !important;
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
  }

  .head_right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    z-index: 10;
  }

  .profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
  }

  .mobile-menu-toggle {
    z-index: 1001;
    font-size: 24px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  /* Ensure all header children are vertically centered */
  .header .col-md-6,
  .header .profileCol {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
  }

  /* Header icons - Mobile */
  .header-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .header-icon i {
    font-size: 16px !important;
  }

  /* Hide fullscreen button in mobile */
  #viewFullScreen {
    display: none !important;
  }

  /* Global filter in header - Mobile */
  .header_tdditle .select-container {
    margin-left: 20px !important;
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
  }

  .select-button {
    font-size: 12px !important;
    padding: 6px 12px !important;
    height: 36px !important;
    white-space: nowrap;
    margin-left: 139px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px !important;
  }

  .dropdown {
    font-size: 13px !important;
    right: -10px !important;
    left: auto !important;
    min-width: 160px !important;
  }

  .dropdown .option {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  /* Dashboard - Mobile */
  .stats-row {
    flex-direction: column;
    gap: 15px;
  }

  .stat-card {
    width: 100%;
    margin-bottom: 15px;
  }

  /* Responsive Icons */
  .header-icon {
    width: 36px;
    height: 36px;
    margin: 0 5px;
  }

  /* Search and Filters - Mobile */
  .vehicle-search-container,
  .customer-search-container,
  .vendor-search-container {
    width: 100%;
    margin-bottom: 12px;
    height: 40px;
  }

  .search-input {
    height: 40px !important;
    font-size: 14px !important;
  }

  .search-icon {
    font-size: 14px !important;
  }

  .filter-row {
    flex-direction: column;
    gap: 12px;
    margin: 0 !important;
  }

  .filter-row .col-md-2,
  .filter-row .col-md-4,
  .filter-row .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin-bottom: 8px;
  }

  .filter-row .form-select {
    width: 100% !important;
    font-size: 14px !important;
    height: 40px !important;
  }

  .filter-row .btn {
    width: 100% !important;
    height: 40px !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  /* Tables - Mobile */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

/* Zoom-friendly styles */
@media (min-resolution: 1.5dppx) {
  .main-content {
    overflow-x: auto;
    /* Ensure scrolling is available on high DPI displays */
  }
}

/* Handle very wide content */
.main-content * {
  box-sizing: border-box;
  border: none;
  /* Include padding/borders in width calculations */
}

/* Ensure tables and wide content are scrollable */
.main-content table {
  min-width: 100%;
  /* Ensure tables take full width */
  table-layout: auto;
  /* Allow table to adjust column widths */
}

.main-content .table-responsive {
  overflow-x: auto;
  /* Allow horizontal scrolling for tables */
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
}

.logout-btn {
  color: #fff;
  background-color: #dc3545;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
}

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

.loader-container {
  display: none;
  /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  /* Ensure it's on top */
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  /* transform: translate(-50%, -50%); */
  border: 16px solid #f3f3f3;
  /* Light grey border */
  border-top: 16px solid #3498db;
  /* Blue top border */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* table css */
/* Global Table Styles - Vehicle Table Design Applied to All Tables */
.table-striped tr {
  border: none;
  border-radius: 13px;
}

.table-striped tr td {
  border: none;
  background: #fff;
  color: #263238 !important;
  font-size: 14px !important;
  vertical-align: middle;
  padding: 15px 8px;
}

.table-striped tr th {
  border: none;
  background: #f3f6f9 !important;
  color: #464e5f !important;
  font-weight: 600;
  font-size: 12px;
  vertical-align: middle;
  padding: 15px 8px;
}

/* Ensure all table headers use the vehicle table design */
.table thead th,
.table-striped thead th,
.table-bordered thead th {
  background: #f3f6f9 !important;
  color: #464e5f !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  border: none !important;
  vertical-align: middle;
  padding: 15px 8px;
}

/* Ensure all table cells use the vehicle table design */
.table tbody td,
.table-striped tbody td,
.table-bordered tbody td {
  color: #263238 !important;
  font-size: 14px !important;
  border: none !important;
  background: #fff !important;
  vertical-align: middle;
  padding: 15px 8px;
}

/* Vehicle Table Specific Elements - Global Styles */
/* Brand icon in tables */
.table .brand-icon-placeholder img,
.table .vehicle-brand-logo img {
  width: 30px;
  height: 30px;
}

/* Vehicle/Customer color badge in tables */
.table .vehicle-color-badge,
.table .customer-color-badge,
.table .vendor-color-badge {
  width: 30px;
  height: 30px;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* Rental info icon in tables */
.table .rental-info-icon {
  cursor: pointer;
}

.table .rental-info-icon:hover {
  color: #6B6ADE !important;
}

/* Vehicle status badge in tables */
.table .vehicle-status-badge {
  color: #FFFFFF;
  border-radius: 9999px;
  font-weight: 500;
  padding: 4px 12px;
  display: inline-block;
  transition: background-color 0.2s ease;
  font-size: 12px;
}

/* Table action links (View, Edit, etc.) */
.table tbody td a.text-primary.text-decoration-none {
  font-weight: 500;
}

/* Custom Dropdown Design - Global Styles */
.form-select {
  position: relative;
  display: none;
  /* Hide the original select */
}

.card {

  background-color: transparent;
  background-clip: border-box;
  border: none;
  border-radius: var(--bs-card-border-radius);

}

.card-header {
  background: transparent;
}

/* Vehicle View Page - Override global card styles */
.vehicle-view-page .card {
  background-color: #FFFFFF !important;
  border: 1px solid #e9ecef !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.vehicle-view-page .card-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid #e9ecef !important;
  padding: 16px 20px !important;
}

.vehicle-view-page .card-body {
  background: #FFFFFF !important;
  padding: 20px !important;
}

/* Reports common utilities */
.btn-pill {
  border-radius: 999px;
  padding-left: 16px;
  padding-right: 16px;
}

.report-table {
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 12px;
  overflow: hidden;
}

.report-table thead th {
  background: #fff;
  color: #111827;
  font-weight: 600;
  border: none;
}

.report-table td,
.report-table th {
  padding: 14px 16px;
  vertical-align: middle;
}

.report-table tbody tr+tr td {
  border-top-color: rgba(17, 24, 39, .06);
}

.no-bottom-borders> :not(caption)>*>* {
  border-bottom-width: 0 !important;
}

.no-bottom-borders tbody td {
  border-bottom: 0 !important;
}

.no-bottom-borders thead th {
  background: #F1F4F9 !important;
  border-bottom: 0 !important;
}

/* Custom dropdown wrapper */
.form-select-wrapper {
  position: relative;
  width: 100%;
}

.form-select-wrapper .dropdown-toggle {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: white;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select-wrapper .dropdown-toggle:focus,
.form-select-wrapper .dropdown-toggle.dropdown-toggle-focused {
  border-color: #6B6ADE;

}

.form-select-wrapper .dropdown-toggle:hover {
  border-color: #6B6ADE;
}

.form-select-wrapper .dropdown-toggle .selected-text {
  flex: 1;
  color: black;
  font-size: 12px;
}

.form-select-wrapper .dropdown-toggle .dropdown-arrow {
  color: black;
  transition: transform 0.3s ease;
  font-size: 12px;
}

.form-select-wrapper.open .dropdown-toggle .dropdown-arrow {
  transform: rotate(180deg);
}

.form-select-wrapper .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.form-select-wrapper.open .dropdown-menu {
  display: block;
}

/* Flip upwards when wrapper has drop-up */
.form-select-wrapper.drop-up .dropdown-menu {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.form-select-wrapper .dropdown-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f8f9fa;
  font-size: 12px;
  color: #495057;
}

.form-select-wrapper .dropdown-option:last-child {
  border-bottom: none;
}

.form-select-wrapper .dropdown-option:hover {
  background-color: #f8f9fa;
}

.form-select-wrapper .dropdown-option.selected {
  background-color: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}

.form-select-wrapper .dropdown-option:first-child {
  border-radius: 8px 8px 0 0;
}

.form-select-wrapper .dropdown-option:last-child {
  border-radius: 0 0 8px 8px;
}

/* Error states */
.form-select-wrapper.is-invalid .dropdown-toggle {
  border-color: #dc3545;
}

.form-select-wrapper.is-invalid .dropdown-toggle:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
  --bs-table-accent-bg: #fff;
  vertical-align: middle;
  padding: 15px 8px;
}

.table-striped>tbody>tr:nth-of-type(even)>* {
  --bs-table-accent-bg: #fff;
  vertical-align: middle;
  padding: 15px 8px;
}

thead th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

thead th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

tbody tr {
  border-bottom: 1px solid #ddd;
}

.Mandatory_Star {
  color: #ff3a4d;
  margin-left: 2px;
}

.card-title {
  color: #5d5fef;
  font-size: 18px !important;
  font-weight: 600;
  margin-bottom: 20px;
}

/* profile dropdown css */
.profile-container {
  position: relative;
  display: inline-block;
}

/* Profile button styles */
.profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: white;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dropdown menu styles */
.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 15px;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 4px 0px #00000040;
  display: none;
  overflow: hidden;
  z-index: 1;
  padding: 10px 10px;
  max-height: 400px;
}

.dropdown-menu.show {
  display: block;
}

/* Menu items styles */
.menu-item {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #212121;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background-color: #dbe4ff;
  border-radius: 6px;
  font-weight: 600 !important;
  color: #5252e0;
}

.menu-item.manage-account {
  font-weight: 500;
}

.menu-item.manage-account:hover {
  background-color: #e5edff;
}

/* notifications */

/* Notification Icon Styles */
.notification-trigger {
  cursor: pointer;
}

.notify {
  cursor: pointer;
  position: relative !important;
  margin: 0px 15px;
}

.notification-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: #ffc107;
  color: white;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notifications-container {
  position: absolute;
  z-index: 999;
  top: 50px;
  right: 0px;
  width: 320px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.notifications-container.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.notifications-header {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.notifications-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: #263238;
}

.notifications-count {
  font-size: 12px;
  color: #666;
}

.tabs {
  display: flex;
  padding: 0 12px;
  border-bottom: 1px solid #eee;
  gap: 0;
}

.tab {
  padding: 8px 0;
  margin-right: 16px;
  border-bottom: 2px solid transparent;
  color: #666;
  cursor: pointer;
  font-size: 13px;
}

.tab.active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}



.notification-item {
  padding: 8px 12px;
  display: flex;
  align-items: start;
  gap: 8px;
  border-bottom: 1px solid #e5e5e5 !important;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notification-item:last-child {
  border-bottom: 0px;
}

.notification-actions .view-btn:hover {
  background: #6366f1 !important;
  color: #fff;
}

.notification-actions .mark-read-btn {
  background: #f3f4f6 !important;
  color: #374151;
}

.notification-actions .mark-read-btn:hover {
  background: #e5e7eb !important;
  color: #374151;
}

.notification-actions .snooze-btn:hover {
  background: #f3f4f6 !important;
  color: #374151;
}

.notification-actions button {
  padding: 3px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.notification-item:hover {
  background: #f9fafb;
}

.snooze-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 150px;
  margin-top: 4px;
}

.snooze-option-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: white;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.snooze-option-btn:last-child {
  border-bottom: none;
}

.snooze-option-btn:hover {
  background: #f3f4f6;
}

.custom-date-container {
  padding: 10px;
  border-top: 1px solid #e5e7eb;
}

.custom-date-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
}

.view-all-notifications-container {
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  background: #f9fafb;
}

.view-all-notifications-link {
  display: inline-block;
  color: #4f46e5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.view-all-notifications-link:hover {
  color: #4338ca;
  text-decoration: underline;
}

.snoozed-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #ffc107;
  color: #212529;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.car-icon {
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
  line-height: 1.3;
}

.notification-message {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}

.notification-actions {
  position: relative;
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.notification-actions .btn {
  position: relative;
}



.btn-primary {
  background: #4f46e5;
  color: white;
}

.btn-primary:hover {
  background: #4338ca;
}

.btn-secondary {
  background: #f3f4f6;
  color: #333;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.notification-time {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

/* notifications */

.snooze-card {
  position: absolute;
  display: none;
  flex-direction: column;
  gap: 10px;
  top: 35px;
  right: 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
  background-color: white;
}

.snooze-card select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.snooze-card-btn {
  color: #6200e8;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  background: none;
}

.snooze-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.snooze-card.show {
  display: flex;
}

.error-message {
  color: red;
  font-size: 12px;
}

#viewFullScreen {
  cursor: pointer;
}

.copyToClipBoard {
  cursor: pointer;
}

/* right popup */
/* Styles for the right-half popup */
.popup-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 1000;
  overflow-y: auto;
  padding: 10px;
  text-align: center;
}

.popup-content {
  border-radius: 8px;
  text-align: center;
  max-height: 80%;
  overflow: auto;
  margin-bottom: 10px;
}

.popup-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.popup-embed {
  width: 100%;
  height: 80vh;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-wrap: nowrap;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Global Button Hover Effects */
.btn:hover {
  border-color: var(--bs-btn-hover-border-color);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.95;

}

.close-btn {
  background: red;
  color: white;
}

.download-btn {
  background: green;
  color: white;
  text-decoration: none;
  display: none;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
}

.popup-title {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.popup-content {
  width: 100%;
  height: 80%;
  /* background-color: #fff; */
  border-radius: 8px;
  overflow: hidden;
}

.popup-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popup-footer {
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
  text-align: center;
}

.download-btn {
  color: white;
  text-decoration: underline;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* end */
/* header date picker options */
#globalRecordsFilterDiv {
  display: none;
}

.select-container {
  position: relative;
  width: 230px;
}

.select-button {
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #fff;
}

.select-button:after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.select-button.active:after {
  transform: rotate(-135deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1;
}

.dropdown.active {
  display: block;
}

.option {
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 8px 8px;
  border-radius: 6px;
}

.option:hover {
  background: #dbe4ff;
  color: #5252e0;
  font-weight: 600;
}

.option.selected {
  background-color: #f0f1ff;
  color: #5252e0;
  font-weight: 600;
}

.date-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px 15px;
  position: absolute;
  background: #fff;
  width: 100%;
  box-shadow: 0px 0px 5px #7e7474;
  border-radius: 10px;
  top: -12px;
  left: -102%;
}

.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-input-group label {
  font-size: 14px;
  color: #64748b;
}

.date-input-group input {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
}

.date-input-group input:focus {
  outline: none;
  border-color: #6366f1;
}

.apply-button {
  margin-top: 12px;
  padding: 8px 16px;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
}

.apply-button:hover {
  background-color: #4f46e5;
}

.imageBoxView {
  width: -webkit-fill-available;
  height: -webkit-fill-available;
}

.innerPage {
  background: #fff;
  color: #6c63ff;
  font-weight: 600;
  box-shadow: 0px 0px 5px #00000033;
  padding: 10px 20px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 4px;
}

.mandatoryFieldSpan {
  color: red;
  font-weight: bold;
}

#rows-per-page {
  position: relative;
}

#rows-per-page::after {
  content: "\f078";
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
  color: #000;
  font-size: 18px;
  padding-right: 0.5em;
  position: absolute;
  top: 10px;
  left: 0;
  position: absolute;
}

.document-icon {
  width: 85px;
  height: 85px;
}

.imageBoxView {
  width: 40px;
  height: auto;
}

.Doc_View .small {
  margin-top: 10px;
}

.Doc_View {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.frontImg,
.backImg {
  color: #ff5722;
  font-size: 14px;
  text-decoration: none;
}

label {
  color: #555;
  font-weight: 500;
}

.popup-container::after {
  content: ("");
  position: absolute;
  top: 0px;
  right: 0px;
  left: 0px;
  bottom: 0px;
  background: rgba(0, 0, 0, 0.8);
  width: 100%;
  height: 100%;
}

.tooltripText {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tooltripTitle {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  font-style: italic;
}

.tooltripValue {
  font-size: 16px;
  color: #212121;
  font-weight: 600;
}

.price-tooltip {
  box-shadow: 0px 0px 1px 0px #435a6f78 !important;
  box-shadow: 0px 4px 4px 0px #00000040 !important;
  border-radius: 10px !important;
}

.price-tooltip h4 {
  font-size: 16px !important;
}

.snooze-btn {
  background: #f3f4f6;
  color: #374151;
}

.view-btn {
  background: #6366f1;
  color: white;
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #28a745;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: none;
}

.saveBtn,
.saveBtn:hover {
  background: #5d5fef;
  border: none;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 500;
}

.cancelBtn,
.cancelBtn:hover {
  color: #5d5fef;
  border: 1px solid #5d5fef;
  background: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 500;
}

.hideElement {
  display: none;
}

.datepicker-dropdown {
  z-index: 999 !important;
}

.document-icon {
  cursor: pointer;
  transition: transform 0.2s;
}

/* Vehicle Management Search Bar */

/* Filter dropdowns styling */
#vehicleTypeFilter,
#statusFilter,
#fuelTypeFilter {
  height: 40px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 12px;
}

/* Make first option visible and style it properly */
#vehicleTypeFilter option:first-child,
#statusFilter option:first-child,
#fuelTypeFilter option:first-child {
  color: #909090 !important;
  display: block !important;
  font-weight: 500;
}

/* Style the select when no value is selected */
#vehicleTypeFilter option[value=""],
#statusFilter option[value=""],
#fuelTypeFilter option[value=""] {
  color: #909090 !important;
  background-color: transparent !important;
}

/* Style the select element when default option is selected */
#vehicleTypeFilter:invalid,
#statusFilter:invalid,
#fuelTypeFilter:invalid {
  color: #909090 !important;
}

#vehicleTypeFilter option:not([value=""]),
#statusFilter option:not([value=""]),
#fuelTypeFilter option:not([value=""]) {
  color: #495057 !important;
}

/* Profile Dropdown Styles */
.profile-dropdown-menu {
  min-width: 200px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 8px;
}

.profile-dropdown-menu .dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
}

.profile-dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #6B6ADE;
}

.profile-dropdown-menu .dropdown-item i {
  width: 16px;
  margin-right: 8px;
  color: #6c757d;
}

.profile-dropdown-menu .dropdown-divider {
  margin: 8px 0;
  border-color: #e9ecef;
}

/* Global Filter Styles */
.filter-row {
  margin-bottom: 20px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.filter-row .col-md-2 {
  background: none !important;
}

.filter-row .col-md-4 {
  background: none !important;
}

/* Custom dropdown styles for filter rows - vehicles/customers/vendors */
.filter-row .form-select-wrapper .dropdown-toggle {
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

/* Filter selected text - Gray (before selection) */
.filter-row .form-select-wrapper .dropdown-toggle .selected-text {
  color: #919191 !important;
  font-weight: 500 !important;
}

/* Filter selected text - Purple (after selection) */
.filter-row .form-select-wrapper .dropdown-toggle.has-selection .selected-text {
  color: #6B6ADE !important;
  font-weight: 500 !important;
}

.filter-row .form-select {
  padding: 10px 15px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.filter-row .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(107, 106, 222, 0.25);
  outline: none;
}

/* Content Wrapper - Remove borders and backgrounds */
.content-wrapper {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
}

/* Customer/Vendor Header Card */
.customer-header-card,
.vendor-header-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 24px 28px;
  margin-bottom: 24px;
}

/* White Header Style for Customer */
.customer-header-card.white-header {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.customer-header-card.white-header .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.customer-header-card.white-header h2 {
  font-size: 24px;
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
}

.customer-header-card.white-header .text-muted,
.customer-header-card.white-header .small.text-muted {
  color: #9ca3af !important;
}

.customer-header-card.white-header .btn-link {
  color: #2563eb !important;
  text-decoration: none;
  font-weight: 500;
}

.customer-header-card.white-header .btn-link.text-danger {
  color: #EF4444 !important;
}

.customer-header-card.white-header .btn-link:hover {
  opacity: 0.8;
}

/* Vendor Header Card - White Background Style */
.vendor-header-card.white-header {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  margin-bottom: 24px;
}

.vendor-header-card.white-header .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.vendor-header-card.white-header h2 {
  font-size: 18px;
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}

.vendor-header-card.white-header .text-muted,
.vendor-header-card.white-header .small.text-muted {
  color: #9ca3af !important;
}

.vendor-header-card.white-header .btn-link {
  color: #2563eb !important;
  text-decoration: none;
  font-weight: 500;
}

.vendor-header-card.white-header .btn-link.text-danger {
  color: #EF4444 !important;
}

.vendor-header-card.white-header .btn-link:hover {
  opacity: 0.8;
}

.vendor-header-card.white-header .vendor-details-group {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.vendor-header-card.white-header .vendor-details-group-horizontal {
  display: flex;
  gap: 60px;
  align-items: center;
}

.vendor-header-card.white-header .vendor-detail-item {
  min-width: 0;
}

.vendor-header-card.white-header .vendor-detail-label {
  color: #9ca3af;
  font-size: 11px;
  margin-bottom: 2px;
  display: block;
}

.vendor-header-card.white-header .vendor-detail-value {
  color: #2c3e50;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 992px) {
  .vendor-header-card.white-header .vendor-details-group {
    flex-direction: column;
    gap: 16px;
  }
}

.customer-header-card .status-dot,
.vendor-header-card .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.customer-header-card h2,
.vendor-header-card h2 {
  font-size: 24px;
  color: #2c3e50;
}

/* Remove card styling from show pages */
.content-wrapper .card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  margin-bottom: 20px;
}

.content-wrapper .card-header {
  background: #f1f4f9;
  border-bottom: 2px solid #dee2e6;
  border-radius: 12px 12px 0 0 !important;
  padding: 16px 24px;
}

.content-wrapper .card-header h6 {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.content-wrapper .card-body {
  padding: 20px 24px;
}

.content-wrapper .card .table-responsive {
  background: transparent;
}

.content-wrapper .card .table {
  border: none !important;
  background: white;
}

.content-wrapper .card .table thead th {
  background: #f3f6f9 !important;
  border: none;
  font-weight: 600;
  color: #464e5f !important;
  font-size: 12px !important;
  padding: 15px 8px;
}

.content-wrapper .card .table tbody td {
  border: none !important;
  background: #fff !important;
  color: #263238 !important;
  font-size: 14px !important;
  padding: 15px 8px;
  vertical-align: middle;
}

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

/* Unified Search Bar Container */
.vehicle-search-container,
.customer-search-container,
.vendor-search-container,
.booking-search-container {
  position: relative;
  border-radius: 8px;
  border: 0.5px solid #dee2e6;
  background: white;
  overflow: hidden;
}

.vehicle-search-container .search-icon,
.customer-search-container .search-icon,
.vendor-search-container .search-icon,
.booking-search-container .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 16px;
  z-index: 1;
  pointer-events: none;
}

.vehicle-search-container .search-input,
.customer-search-container .search-input,
.vendor-search-container .search-input,
.booking-search-container .search-input {
  width: 100% !important;
  height: 36px !important;
  padding: 0 15px 0 45px !important;
  border: none !important;
  font-size: 14px !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 44px !important;
}

.vehicle-search-container .search-input:focus,
.customer-search-container .search-input:focus,
.vendor-search-container .search-input:focus,
.booking-search-container .search-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.filter-row .btn-primary {
  background: linear-gradient(135deg, #6B6ADE 0%, #3C3CE1 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  white-space: nowrap;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(107, 106, 222, 0.3);
  transition: all 0.3s ease;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
}

.filter-row .btn-primary:hover {
  transform: translateY(-1px);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 106, 222, 0.4);
}

.vehicle-color-badge {
  transition: transform 0.2s ease;
}

.vehicle-color-badge:hover {
  transform: scale(1.1);
}

/* Need Help Section */
.need-help-section {
  background: linear-gradient(135deg, #6B6ADE 0%, #3C3CE1 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.need-help-content {
  max-width: 600px;
  margin: 0 auto;
}

.need-help-icon {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.need-help-icon i.fa-folder {
  font-size: 80px;
  color: white;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 2;
}

.need-help-docs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.need-help-docs i {
  position: absolute;
  font-size: 30px;
  color: #E5E7EB;
  opacity: 0.7;
}

.need-help-docs i.fa-file-alt {
  top: -20px;
  right: -20px;
  transform: rotate(-15deg);
}

.need-help-docs i.fa-file-pdf {
  bottom: -20px;
  left: -30px;
  transform: rotate(15deg);
}

.need-help-docs i.fa-chart-pie {
  top: -10px;
  left: -25px;
  transform: rotate(-25deg);
}

.need-help-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.need-help-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.btn-documentation {
  background: white;
  color: #6B6ADE;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-documentation:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sidebar Need Help Section */
.sidebar-need-help {
  margin-top: auto;
  padding: 0px;
  text-align: center;
  background: transparent;
  border: 2px solid rgba(107, 106, 222, 0.2);
  border: none;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 20px;
}

.need-help-icon-sidebar {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.need-help-icon-sidebar i.fa-folder {
  font-size: 50px;
  background: linear-gradient(135deg, #6B6ADE 0%, #3C3CE1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  position: relative;
  z-index: 2;
}

.need-help-docs-sidebar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.need-help-docs-sidebar i {
  position: absolute;
  font-size: 18px;
  color: rgba(107, 106, 222, 0.5);
}

.need-help-docs-sidebar i.fa-file-alt {
  top: -12px;
  right: -15px;
  transform: rotate(-15deg);
}

.need-help-docs-sidebar i.fa-file-pdf {
  bottom: -12px;
  left: -20px;
  transform: rotate(15deg);
}

.need-help-docs-sidebar i.fa-chart-pie {
  top: -8px;
  left: -18px;
  transform: rotate(-25deg);
}

.need-help-title-sidebar {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  background: linear-gradient(135deg, #6B6ADE 0%, #3C3CE1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.need-help-subtitle-sidebar {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 15px;
}

.btn-documentation-sidebar {
  background: linear-gradient(135deg, #6B6ADE 0%, #3C3CE1 100%);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn-documentation-sidebar:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 106, 222, 0.3);
}

/* Booking Flow UI polish */
.booking-flow .progress-steps {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.booking-flow .progress-steps .step {
  color: #6b7280;
  font-weight: 500;
  user-select: none;
}

.booking-flow .progress-steps .step.active {
  color: #6B6ADE;
  font-weight: 600;
}

.booking-flow .progress-steps .step.clickable-step {
  cursor: pointer !important;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.booking-flow .progress-steps .step.clickable-step:hover {
  color: #6B6ADE !important;
  opacity: 0.9;
}

.booking-flow .progress-steps .step.completed {
  color: #10b981;
  cursor: pointer !important;
}

.booking-flow .progress-steps .step.completed:hover {
  color: #10b981;
  opacity: 0.9;
}

.booking-flow .progress-steps .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9e9ff;
  color: #6B6ADE;
  font-weight: 700;
  margin-right: 6px;
}

.booking-flow .progress-steps .step.active .dot {
  background: #6B6ADE;
  color: #fff;
}

.booking-flow .progress-steps .step.completed .dot {
  background: #10b981;
  color: #fff;
}

.vehicle-card {
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 12px;
  background: #fff;
}

.vehicle-card .card-body {
  padding: 16px 18px;
}

/* Right summary sticky */
@media (min-width: 992px) {
  .booking-flow .col-lg-4>.card {
    position: sticky;
    top: 96px;
  }
}

/* Inputs alignment */
.booking-flow .form-control,
.booking-flow .form-select {
  height: 40px;
  font-size: 14px;
}

.booking-flow .btn-pill {
  height: 40px;
}

/* Filters row spacing */
#step-2 .d-flex.align-items-center.gap-2 .form-select {
  min-width: 150px;
}

#step-2 .nxz-link {
  color: #6B6ADE;
  font-weight: 600;
}

/* Modal compact spacing */
.modal .form-control.form-control-sm {
  height: 36px;
}

/* Vendor Details Container Styles - White Background */
.vendor-details-dark-container {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 24px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vendor-details-dark-container .card-header {
  background: transparent !important;
  border: none !important;
  padding: 0 0 20px 0 !important;
  margin-bottom: 0;
}

.vendor-details-dark-container .card-header h5 {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.vendor-details-dark-container .card-header h5 i {
  color: #2563eb;
}

.vendor-details-dark-container .card-body {
  padding: 0 !important;
  background: transparent !important;
}

.vendor-details-dark-container .row {
  margin-bottom: 20px;
}

.vendor-details-dark-container .row:last-child {
  margin-bottom: 0;
}

.vendor-details-dark-container .text-muted {
  color: #6c757d !important;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 6px;
  display: block;
}

.vendor-details-dark-container strong {
  color: #2c3e50;
  font-size: 15px;
  font-weight: 600;
  display: block;
  line-height: 1.5;
}

.vendor-details-dark-container ol {
  margin: 0;
  padding-left: 20px;
}

.vendor-details-dark-container ol li {
  color: #2c3e50;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.vendor-details-dark-container .btn-link {
  color: #6c757d !important;
  padding: 2px 4px !important;
}

.vendor-details-dark-container .btn-link:hover {
  color: #2563eb !important;
}

/* Two-column layout for mobile numbers */
.vendor-details-dark-container .mobile-numbers-row {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.vendor-details-dark-container .mobile-numbers-row>div {
  flex: 1;
}

.vendor-details-dark-container .mobile-numbers-row .text-muted {
  color: #6c757d !important;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 6px;
}

.vendor-details-dark-container .mobile-numbers-row strong {
  color: #2c3e50;
  font-size: 15px;
  font-weight: 600;
}

/* Single column fields */
.vendor-details-dark-container .single-field {
  margin-bottom: 24px;
}

.vendor-details-dark-container .single-field:last-child {
  margin-bottom: 0;
}

/* Branches section */
.vendor-details-dark-container .branches-section {
  margin-top: 24px;
}

/* Email with copy icon */
.vendor-details-dark-container .email-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vendor-details-dark-container .email-field strong {
  flex: 1;
}

/* Documents section within container */
.vendor-details-dark-container .document-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6 !important;
}

.vendor-details-dark-container .document-card .text-truncate,
.vendor-details-dark-container .document-card .small {
  color: #6c757d !important;
}

.vendor-details-dark-container .document-card .btn-outline-primary {
  border-color: #2563eb;
  color: #2563eb;
}

.vendor-details-dark-container .document-card .btn-outline-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #FFFFFF;
}

.vendor-details-dark-container .text-center.text-muted {
  color: #6c757d !important;
}

.vendor-details-dark-container .text-center.text-muted i {
  color: #2563eb !important;
}

/* Responsive adjustments for mobile numbers */
@media (max-width: 768px) {
  .vendor-details-dark-container .mobile-numbers-row {
    flex-direction: column;
    gap: 24px;
  }
}

/* Document Item Styling - Matches Vehicle View Page */
.document-item {
  padding: 1.25rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.document-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.document-item p {
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
  padding: 0 0.5rem;
}

.document-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Booking Status Badge Styles */
.booking-status-badge {
  background-color: #6B7280;
  color: #FFFFFF;
  border-radius: 9999px;
  font-weight: 500;
  padding: 4px 12px;
  display: inline-block;
  transition: background-color 0.2s ease;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Individual status colors are handled inline via component */

/* ============================================
   MOBILE RESPONSIVE TABLE STYLES
   ============================================ */

@media (max-width: 768px) {

  /* Table Responsive Container */
  .table-responsive {
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide table headers on mobile */
  .table-responsive table thead {
    display: none;
  }

  /* Convert table structure to block layout */
  .table-responsive table,
  .table-responsive table tbody,
  .table-responsive table tr {
    display: block;
    width: 100%;
  }

  /* Convert table rows to cards on mobile */
  .table-responsive table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
  }

  .table-responsive table tbody tr:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
  }

  .table-responsive table tbody tr:last-child {
    margin-bottom: 0;
  }

  /* Convert table cells to card items */
  .table-responsive table td {
    display: block;
    border: none;
    padding: 12px 0;
    text-align: left !important;
    position: relative;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .table-responsive table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Add labels before each cell using data-label attribute */
  .table-responsive table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.4;
  }

  /* If no data-label, try to get from header */
  .table-responsive table td:not([data-label])::before {
    content: attr(data-header);
  }

  /* Special handling for action buttons column - use class instead of :has() */
  .table-responsive table td.actions,
  .table-responsive table td:last-child {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #f3f4f6;
    border-bottom: none;
    padding-bottom: 0;
  }

  .table-responsive table td.actions::before,
  .table-responsive table td:last-child::before {
    display: none;
  }

  /* Hide label for cells containing only buttons/links */
  .table-responsive table td:last-child:not([data-label])::before {
    display: none;
  }

  /* Style buttons in mobile view */
  .table-responsive table td .btn {
    width: 100%;
    margin-bottom: 8px;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .table-responsive table td .btn:last-child {
    margin-bottom: 0;
  }

  /* Style action links */
  .table-responsive table td a:not(.btn) {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .table-responsive table td a:not(.btn):hover {
    background: #e5e7eb;
  }

  /* Hide empty cells */
  .table-responsive table td:empty {
    display: none;
  }

  /* Special styling for badges in mobile */
  .table-responsive table td .badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Customer/Vehicle title column styling */
  .table-responsive table td.customer_title,
  .table-responsive table td.vechicle_title {
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
  }

  .table-responsive table td.customer_title::before,
  .table-responsive table td.vechicle_title::before {
    display: none;
  }

  /* Status badges styling */
  .table-responsive table td .badge.rounded-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  /* Icon badges (customer/vehicle color badges) */
  .table-responsive table td .customer-color-badge,
  .table-responsive table td .vehicle-color-badge {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }

  /* Nested divs in cells */
  .table-responsive table td>div {
    margin-bottom: 4px;
  }

  .table-responsive table td>div:last-child {
    margin-bottom: 0;
  }

  /* Small text in cells */
  .table-responsive table td small {
    display: block;
    margin-top: 4px;
  }

  /* Strong/bold text in cells */
  .table-responsive table td strong {
    display: block;
    margin-bottom: 4px;
  }

  /* Empty state styling */
  .table-responsive table tbody tr td[colspan] {
    text-align: center;
    padding: 40px 20px;
    border: none;
  }

  .table-responsive table tbody tr td[colspan]::before {
    display: none;
  }

  /* Handle tables without table-responsive wrapper */
  .table-container table,
  .bookings-table-card table,
  .filter-section table {
    display: block;
  }

  .table-container table thead,
  .bookings-table-card table thead,
  .filter-section table thead {
    display: none;
  }

  .table-container table tbody,
  .bookings-table-card table tbody,
  .filter-section table tbody {
    display: block;
  }

  .table-container table tbody tr,
  .bookings-table-card table tbody tr,
  .filter-section table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .table-container table tbody td,
  .bookings-table-card table tbody td,
  .filter-section table tbody td {
    display: block;
    border: none;
    padding: 12px 0;
    text-align: left !important;
    position: relative;
    padding-left: 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .table-container table tbody td::before,
  .bookings-table-card table tbody td::before,
  .filter-section table tbody td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }

  .table-container table tbody td:last-child,
  .bookings-table-card table tbody td:last-child,
  .filter-section table tbody td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
  .table-responsive table tbody tr {
    padding: 12px;
    margin-bottom: 12px;
  }

  .table-responsive table td {
    padding: 10px 0;
    font-size: 14px;
  }

  .table-responsive table td::before {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .table-responsive table td .btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  /* Make filter row stack on very small screens */
  .filter-row {
    flex-direction: column;
    gap: 12px !important;
  }

  .filter-row>div {
    max-width: 100% !important;
    width: 100%;
  }

  .filter-row .btn {
    width: 100%;
  }
}

/* Password Toggle Eye Button Styles */
.password-toggle-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.password-toggle-wrapper input[type="password"],
.password-toggle-wrapper input[type="text"] {
  padding-right: 40px !important;
  width: 100%;
  box-sizing: border-box;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  margin: 0;
  z-index: 10;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  pointer-events: auto;
  transition: color 0.2s ease;
}

.password-toggle-btn i {
  display: flex;
  align-items: center;
  line-height: 1;
  font-size: 14px;
  width: 100%;
  height: 100%;
}

.password-toggle-btn:hover {
  color: #495057;
}

.password-toggle-btn:focus {
  outline: none;
  box-shadow: none;
}

.password-toggle-btn:active {
  color: #212529;
}

/* Ensure button is inside for different input styles */
.password-toggle-wrapper .loginInput,
.password-toggle-wrapper .form-control,
.password-toggle-wrapper input[type="password"],
.password-toggle-wrapper input[type="text"] {
  padding-right: 40px !important;
  box-sizing: border-box;
}

/* For login input style specifically */
.loginInput.password-toggle-wrapper {
  position: relative;
}

/* Ensure proper positioning for form-control inputs */
.password-toggle-wrapper .form-control {
  padding-right: 40px !important;
  box-sizing: border-box;
}

/* Make external link icons black */
.fa-external-link-alt,
.fas.fa-external-link-alt {
  color: #000000 !important;
}

/* Override: Show Day of Week and Day of Month selects when their container is visible */
/* This overrides the global .form-select { display: none; } rule */
#payoutDayOfWeekDiv[style*="display: block"] .form-select,
#payoutDayOfMonthDiv[style*="display: block"] .form-select,
#payoutDayOfWeekDiv:not([style*="display: none"]) .form-select,
#payoutDayOfMonthDiv:not([style*="display: none"]) .form-select {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure the select element is always visible when parent is shown */
#payout_day_of_week,
#payout_day_of_month {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* ==========================================================================
   MOBILE RESPONSIVE STYLES - BUSINESS BOOKINGS
   Added dynamically to support booking view, create, and index pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Booking Show Page (resources/views/business/bookings/show.blade.php)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Header Adjustments */
  .booking-view-header .d-flex.justify-content-between {
    flex-direction: column;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .booking-view-header .d-flex.align-items-center.gap-3 {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }

  .booking-view-header .invoice-actions-hover {
    position: static;
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .booking-view-header .d-flex.gap-2.align-items-center {
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
  }

  .booking-view-header .d-flex.gap-2.align-items-center .btn,
  .booking-view-header .d-flex.gap-2.align-items-center a.btn {
    flex: 1;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 12px;
    text-align: center;
    min-width: 120px;
  }

  /* Card Padding - Ensure equal gap */
  .section-card .card-body,
  .summary-card .summary-body {
    padding: 16px !important;
  }

  /* Equal spacing for rows */
  .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
  }

  .row.g-3>* {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  /* Date Inputs - Keep side by side (2 in a row) */
  #pickupDateEdit,
  #dropoffDateEdit {
    width: 100%;
  }

  .row.g-3 .col-md-6 {
    width: 50% !important;
    flex: 0 0 auto;
  }

  /* Vehicle Card */
  .vehicle-card .card-body {
    flex-direction: column;
    align-items: flex-start !important;
    padding: 16px !important;
  }

  .vehicle-card .d-flex.align-items-center.gap-4 {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px !important;
    width: 100%;
  }

  .vehicle-card .d-flex.align-items-center.justify-content-center {
    width: 100% !important;
    height: 150px !important;
  }

  .vehicle-card .text-end {
    text-align: left !important;
    padding-left: 0 !important;
    margin-top: 16px;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 16px;
  }

  /* Customer Details Grid - 2 in a row */
  .row.g-3 .col-md-4 {
    width: 50% !important;
    flex: 0 0 auto;
    max-width: 50%;
  }

  /* Address field should be full width */
  .row.g-3 .col-md-12 {
    width: 100% !important;
    flex: 0 0 auto;
  }

  /* Billing Summary */
  .summary-card {
    margin-top: 24px;
  }

  /* Ensure inputs don't overflow */
  input,
  select,
  textarea {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Create Booking Page (resources/views/business/bookings/create.blade.php)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Create Booking specific mobile styles */

  /* Make 2-column layouts for inputs (col-md-6) work on mobile */
  .col-md-6 {
    width: 50% !important;
    flex: 0 0 auto;
    float: left;
    /* Fallback */
  }

  /* Ensure rows handle the 50% columns properly with gaps */
  .row {
    margin-right: -0.5rem;
    /* reduce negative margin for smaller screens */
    margin-left: -0.5rem;
  }

  .col-md-6,
  .col-12,
  .col-lg-8,
  .col-lg-4,
  .col-md-8,
  .col-md-4 {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  /* Specific overrides for Customer Selection where meaningful content needs width */
  .col-md-8,
  .col-md-4 {
    width: 100% !important;
    flex: 0 0 100%;
  }

  /* Adjust spacing between sections */
  .mb-4 {
    margin-bottom: 1rem !important;
  }

  /* Adjust font sizes for labels and inputs */
  .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .form-control,
  .form-select {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  /* Order Summary sticky behavior on mobile */
  .col-lg-4 .card {
    margin-top: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Booking Index Page (resources/views/business/bookings/index.blade.php)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Hide table headers */
  #bookingTable thead {
    display: none !important;
  }

  /* Card Layout */
  #bookingTable,
  #bookingTable tbody,
  #bookingTable tr,
  #bookingTable td {
    display: block;
    width: 100%;
  }

  #bookingTable tr {
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 12px;
    position: relative;
  }

  #bookingTable td {
    text-align: right;
    padding: 6px 0;
    border: none;
    border-bottom: 1px dashed #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
    font-size: 0.9rem;
  }

  /* Labels */
  #bookingTable td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    margin-right: 15px;
  }

  /* Optimize cell content */
  #bookingTable td>div,
  #bookingTable td>span,
  #bookingTable td>strong {
    text-align: right;
    max-width: 65%;
    /* Prevent content from squishing label too much */
  }

  /* Compact Customer & Vehicle details */
  #bookingTable td[data-label="Customer"] small,
  #bookingTable td[data-label="Vehicle Details"] small {
    display: block;
    line-height: 1.2;
    margin-top: 2px;
    font-size: 0.8rem;
  }

  /* Specific adjustments for date fields to save space */
  #bookingTable td[data-label="Start Date & Time"],
  #bookingTable td[data-label="End Date & Time"] {
    font-size: 0.85rem;
  }

  /* View Button - Compact Full Width */
  #bookingTable td:last-child {
    border-bottom: none;
    padding-top: 10px;
    padding-bottom: 0;
    justify-content: center;
    display: block;
  }

  #bookingTable .view-details-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-align: center;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    font-size: 0.9rem;
    margin-top: 4px;
  }

  #bookingTable .view-details-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
  }

  /* Empty State */
  #bookingTable td[colspan] {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
  }

  #bookingTable td[colspan]::before {
    display: none;
  }

  /* Fix container padding */
  .content-wrapper {
    padding: 10px !important;
  }

  /* Filter Section */
  .filter-section {
    padding: 0 !important;
    margin-bottom: 10px !important;
  }

  /* Status Tabs Stack */
  .booking-status-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10px;
    gap: 5px;
  }

  .booking-status-tabs .btn {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   IMPORTED FROM mobile-responsive.css
   ========================================================================== */
/* ============================================
   Mobile Responsive Styles - Common
   All mobile responsive CSS for the application
   ============================================ */

/* ============================================
   BOOKING FLOW - MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {

  /* Mobile Progress Wrapper */
  .mobile-progress-wrapper {
    background: #f8f9fa;
    margin: 0 0 20px 0;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .mobile-progress-container {
    padding: 12px 15px;
    margin: 0;
  }

  .progress-steps-header {
    flex-direction: row;
    align-items: center;
    gap: 0;
    justify-content: center;
    overflow-x: auto;
    width: 100%;
    margin: 0;
  }

  .progress-steps {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 30px;
    min-width: max-content;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    display: flex;
  }

  .progress-steps .step {
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    color: #6b7280;
  }

  .progress-steps .step.active {
    color: #667eea;
    font-weight: 600;
  }

  .progress-steps .dot {
    width: 24px;
    height: 24px;
    font-size: 11px;
    margin-right: 6px;
    background: #e5e7eb;
    color: #6b7280;
    border: 2px solid #e5e7eb;
  }

  .progress-steps .step.active .dot {
    background: #667eea;
    color: white;
    border-color: #667eea;
  }

  .progress-steps .step-label {
    display: inline;
    font-size: 11px;
  }

  /* Mobile responsive adjustments */
  .booking-flow .row {
    margin-left: 0;
    margin-right: 0;
  }

  .booking-flow .row>* {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Step 1 mobile layout */
  .booking-flow #step-1 .col-lg-4,
  .booking-flow #step-1 .col-lg-8 {
    width: 100%;
    max-height: none;
    overflow-y: visible;
  }

  .booking-flow #step-1 .col-lg-4 .card {
    position: static;
    margin-bottom: 20px;
  }

  /* Filters row mobile */
  .booking-flow #step-1 .d-flex.justify-content-between {
    flex-direction: column;
    gap: 12px;
    align-items: stretch !important;
  }

  .booking-flow #step-1 .d-flex.align-items-center.gap-2 {
    flex-direction: column;
    gap: 10px !important;
  }

  .booking-flow #step-1 .d-flex.align-items-center.gap-2>div {
    width: 100% !important;
    min-width: 100% !important;
  }

  .booking-flow #step-1 .form-select {
    width: 100% !important;
  }

  /* Cards mobile */
  .booking-flow .card {
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .booking-flow .card-body {
    padding: 12px 15px;
  }

  /* Form elements mobile */
  .booking-flow .form-control,
  .booking-flow .form-select {
    font-size: 16px;
    padding: 8px 12px;
  }

  .booking-flow .form-label {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .booking-flow textarea.form-control {
    min-height: 80px;
  }

  /* Hide summary sidebar on mobile, show at bottom */
  .booking-flow #summarySidebar {
    order: 2;
    margin-top: 20px;
  }

  .booking-flow #mainContent {
    order: 1;
  }

  .booking-flow .summary-sticky-wrapper {
    position: static;
  }

  /* Button adjustments */
  .booking-flow .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .booking-flow .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
  }

  /* Footer mobile */
  #bookingFlowFooter {
    padding: 10px 12px;
  }

  #bookingFlowFooter .d-flex {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  #bookingFlowFooter .btn {
    min-width: 100px;
    flex: 1;
  }

  /* Step 3 billing mobile */
  .booking-flow #step-3 .row.g-3 {
    gap: 8px !important;
  }

  .booking-flow #step-3 .col-md-6 {
    width: 100%;
  }

  /* Additional charges mobile */
  #additionalChargesList .row {
    flex-direction: column;
  }

  #additionalChargesList .col-md-4,
  #additionalChargesList .col-md-3 {
    width: 100%;
    margin-bottom: 8px;
  }

  /* Input groups mobile */
  .booking-flow .input-group {
    flex-wrap: wrap;
  }

  .booking-flow .input-group .form-control {
    min-width: 100%;
    border-radius: 8px 8px 0 0 !important;
  }

  .booking-flow .input-group .btn-group {
    width: 100%;
    border-radius: 0 0 8px 8px !important;
  }

  .booking-flow .input-group .btn-group .btn {
    flex: 1;
  }

  /* File upload mobile */
  .booking-flow .file-upload-area {
    padding: 12px;
  }

  .booking-flow .upload-icon {
    font-size: 18px;
  }

  .booking-flow .upload-text {
    font-size: 11px;
  }

  /* Customer dropdown mobile */
  .customer-dropdown-container .customer-dropdown-options {
    max-height: 250px;
  }

  /* Confirmation step mobile */
  .booking-flow #step-4 .card-body {
    padding: 15px 12px;
  }

  .booking-flow #step-4 h2 {
    font-size: 20px;
  }

  /* Vehicle card mobile */
  .vehicle-card {
    padding: 12px;
  }

  .vehicle-card .row {
    flex-direction: column;
  }

  .vehicle-card .col-auto,
  .vehicle-card .col {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .booking-flow .card-body {
    padding: 10px 12px;
  }

  .booking-flow .form-control,
  .booking-flow .form-select {
    padding: 7px 10px;
    font-size: 15px;
  }

  .booking-flow .form-label {
    font-size: 12px;
  }

  .booking-flow .btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .mobile-progress-wrapper {
    margin: 0 0 15px 0;
    padding: 10px 12px;
  }

  .mobile-progress-container {
    padding: 0;
  }

  .progress-steps-header {
    padding: 0;
  }

  .progress-steps {
    gap: 6px;
    padding: 6px 10px;
  }

  .progress-steps .step {
    font-size: 10px;
    padding: 3px 5px;
  }

  .progress-steps .dot {
    width: 20px;
    height: 20px;
    font-size: 9px;
    margin-right: 4px;
  }

  .progress-steps .step-label {
    font-size: 9px;
  }

  #bookingFlowFooter .btn {
    min-width: 80px;
    font-size: 13px;
  }
}

/* ============================================
   CUSTOMER BOOKING CREATE - MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {
  .booking-container {
    padding: 1rem 0.75rem;
  }

  .booking-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
  }

  .booking-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .vehicle-info-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
  }

  .vehicle-info-card h4 {
    font-size: 1.1rem;
  }

  .vehicle-info-card .price {
    font-size: 1.5rem;
  }

  .booking-card .form-label,
  .booking-container .form-label {
    font-size: 13px;
  }

  .booking-card .form-control,
  .booking-card .form-select,
  .booking-container .form-control,
  .booking-container .form-select {
    font-size: 16px;
    padding: 0.65rem 0.85rem;
  }

  .booking-card textarea.form-control,
  .booking-container textarea.form-control {
    min-height: 80px;
  }

  .btn-booking-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 15px;
  }

  .booking-container .d-flex.gap-2 {
    flex-direction: column-reverse !important;
    gap: 0.75rem !important;
  }

  .profile-section-card {
    padding: 1rem;
    border-radius: 10px;
  }

  .profile-section-card .card-header {
    padding: 0.75rem;
    margin: -1rem -1rem 1rem -1rem;
    font-size: 14px;
  }

  .booking-container .alert {
    font-size: 13px;
    padding: 0.75rem 1rem;
  }

  .booking-container .row {
    margin-left: 0;
    margin-right: 0;
  }

  .booking-container .row>* {
    padding-left: 0;
    padding-right: 0;
  }

  /* Payment section mobile */
  .booking-card .form-check,
  .booking-container .form-check {
    margin-bottom: 0.5rem;
  }

  .booking-card .form-check-label,
  .booking-container .form-check-label {
    font-size: 14px;
  }

  #totalAmountDisplay .d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  #totalAmountValue {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .booking-container {
    padding: 0.75rem 0.5rem;
  }

  .booking-card,
  .vehicle-info-card,
  .profile-section-card {
    padding: 1rem;
  }

  .booking-card h3 {
    font-size: 1rem;
  }

  .vehicle-info-card h4 {
    font-size: 1rem;
  }

  .vehicle-info-card .price {
    font-size: 1.35rem;
  }

  .booking-card .form-control,
  .booking-card .form-select,
  .booking-container .form-control,
  .booking-container .form-select {
    padding: 0.6rem 0.75rem;
  }

  .btn-booking-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 14px;
  }
}

/* ============================================
   VEHICLE SHOW PAGE - MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {

  .info-card-rect,
  .spec-card-rect {
    padding: 14px 16px;
    min-height: 75px;
    border-radius: 10px;
  }

  .info-card-label,
  .spec-card-label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .info-card-value,
  .spec-card-value {
    font-size: 14px;
  }

  .row.g-3 {
    gap: 12px !important;
  }

  .col-md-8,
  .col-md-4 {
    width: 100%;
  }

  .card.sticky-top {
    position: static !important;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {

  .info-card-rect,
  .spec-card-rect {
    padding: 12px 14px;
    min-height: 70px;
    border-radius: 8px;
  }

  .info-card-label,
  .spec-card-label {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .info-card-value,
  .spec-card-value {
    font-size: 13px;
  }

  .card-img-top {
    height: 250px !important;
  }
}

/* ============================================
   VEHICLE INDEX - BUSINESS ADMIN - MOBILE
   ============================================ */

@media (max-width: 768px) {

  /* Filter Row Mobile */
  .filter-row {
    flex-direction: column;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .filter-row>div:first-child {
    max-width: 100% !important;
    flex-direction: column;
    gap: 10px !important;
  }

  .filter-row>div:first-child>div {
    max-width: 100% !important;
    min-width: 100% !important;
    flex: none !important;
  }

  .filter-row .btn {
    width: 100%;
  }

  /* Vehicle Search Container */
  .vehicle-search-container {
    width: 100%;
  }

  /* Table Container */
  .filter-section {
    padding: 0;
  }

  /* Table Responsive - Card Layout */
  .table-responsive {
    border: none;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide table, show cards */
  #vehicleTable {
    display: block;
    width: 100%;
  }

  /* Hide table headers */
  #vehicleTable thead {
    display: none !important;
  }

  /* Convert table structure */
  #vehicleTable tbody {
    display: block;
    width: 100%;
  }

  #vehicleTable tbody tr {
    display: block;
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
  }

  /* Style table cells as rows */
  #vehicleTable tbody tr td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    text-align: right;
  }

  #vehicleTable tbody tr td:last-child {
    border-bottom: none !important;
  }

  /* Add labels before content */
  #vehicleTable tbody tr td:not(.vechicle_title)::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 10px;
    text-align: left;
  }

  /* Vehicle Title - Keep full width */
  #vehicleTable tbody tr td.vechicle_title {
    flex-direction: row !important;
    padding: 0 0 12px 0 !important;
    margin-bottom: 8px;
    border-bottom: 2px solid #e5e7eb !important;
  }

  #vehicleTable tbody tr td.vechicle_title::before {
    display: none;
  }

  #vehicleTable tbody tr td.vechicle_title .d-flex {
    width: 100%;
  }

  /* Right align content */
  #vehicleTable tbody tr td:not(.vechicle_title)>* {
    text-align: right;
  }

  /* Status Badge Mobile */
  #vehicleTable tbody tr td .vehicle-status-badge {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }

  /* Toggle Switch Mobile */
  #vehicleTable tbody tr td .customer-booking-toggle-wrapper {
    margin-left: auto;
  }

  /* View Link - Make it a button on mobile */
  #vehicleTable tbody tr td:last-child {
    padding-top: 12px !important;
    border-top: 1px solid #e5e7eb !important;
    margin-top: 8px;
    justify-content: center !important;
  }

  #vehicleTable tbody tr td:last-child::before {
    display: none;
  }

  #vehicleTable tbody tr td:last-child a {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none !important;
  }

  /* Pagination Mobile */
  .pagination-wrapper {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .pagination-wrapper .pagination-info {
    width: 100%;
  }

  .pagination-wrapper nav {
    width: 100%;
  }

  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-link {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  #vehicleTable tbody tr {
    padding: 12px;
    margin-bottom: 12px;
  }

  #vehicleTable tbody tr td {
    padding: 8px 0 !important;
    font-size: 13px;
  }

  #vehicleTable tbody tr td::before {
    font-size: 10px;
  }

  #vehicleTable tbody tr td.vechicle_title {
    padding: 0 0 10px 0 !important;
  }

  #vehicleTable tbody tr td.vechicle_title .fw-bold {
    font-size: 14px;
  }

  #vehicleTable tbody tr td.vechicle_title small {
    font-size: 11px;
  }

  #vehicleTable tbody tr td .vehicle-status-badge {
    font-size: 10px !important;
    padding: 2px 8px !important;
  }

  #vehicleTable tbody tr td:last-child a {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Desktop - Ensure normal table display */
@media (min-width: 769px) {
  #vehicleTable tbody tr td::before {
    display: none !important;
  }

  #vehicleTable tbody tr td {
    text-align: left !important;
  }
}

/* ============================================
   PUBLIC VEHICLE INDEX - MOBILE STYLES
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header Section */
  .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  .d-flex.justify-content-between.align-items-center h1 {
    font-size: 1.25rem !important;
  }

  /* Search and Filter Bar */
  .d-flex.gap-2.mb-4 {
    flex-wrap: nowrap;
    gap: 8px !important;
  }

  .d-flex.gap-2.mb-4 .flex-grow-1 input {
    height: 44px !important;
    font-size: 14px !important;
    padding-left: 40px !important;
  }

  .d-flex.gap-2.mb-4 #filterBtn {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
  }

  /* Force 2 columns per row */
  .row.g-4 {
    display: flex;
    flex-wrap: wrap;
    margin-right: -8px;
    margin-left: -8px;
  }

  .row.g-4>div {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-right: 8px;
    padding-left: 8px;
  }

  /* Vehicle Grid */
  .row.g-4 {
    gap: 0 !important;
    /* Managed by card padding/margin if needed */
    row-gap: 16px !important;
  }

  /* Vehicle Card */
  .vehicle-card {
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f0f0f0 !important;
  }

  .vehicle-card .vehicle-image {
    height: 120px !important;
    object-fit: contain !important;
    /* Ensure car matches design (usually centered/contained) */
    padding: 10px;
  }

  .vehicle-card .card-body {
    padding: 12px 12px !important;
  }

  .vehicle-card .card-title {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Vehicle Specs Grid */
  .vehicle-specs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    font-size: 0.65rem !important;
  }

  .vehicle-specs>div {
    width: auto !important;
    margin-bottom: 0 !important;
  }

  .vehicle-specs i {
    width: 12px !important;
    font-size: 10px !important;
  }

  /* Price and Button */
  .d-flex.justify-content-between.align-items-center.mt-auto {
    margin-top: 10px !important;
  }

  .vehicle-card .btn {
    width: auto !important;
    padding: 6px 16px !important;
    font-size: 0.75rem !important;
    border-radius: 50px !important;
    min-width: unset !important;
    color: var(--button-primary-text) !important;
  }

  /* Price Display */
  .vehicle-card h4 {
    font-size: 0.85rem !important;
  }

  .vehicle-card small {
    font-size: 0.7rem !important;
  }

  /* Badge */
  .vehicle-card .badge {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
  }

  /* Filter Modal on Mobile */
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }

  .modal-content {
    height: 100%;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .vehicle-card .vehicle-image {
    height: 100px !important;
    /* Even smaller for very small screens */
  }

  .vehicle-specs {
    font-size: 0.65rem !important;
    /* Ensure small text */
  }
}

/* ============================================
   VEHICLE DETAIL (SHOW) PAGE - MOBILE STYLES
   ============================================ */
@media (max-width: 991px) {

  /* Hero Section */
  .vehicle-hero-image {
    height: 250px !important;
    border-radius: 0 0 15px 15px !important;
    /* Rounded bottom corners */
    margin: -1.5rem -0.75rem 1rem -0.75rem !important;
    /* Pull to edges */
    width: calc(100% + 1.5rem) !important;
  }

  /* Container adjustments */
  body>main>.container.my-5,
  body>.container.my-5 {
    margin-top: 1rem !important;
    margin-bottom: 80px !important;
    /* Space for sticky bottom bar if added later */
  }

  /* Main Info Card */
  .col-md-8 .card {
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 2rem !important;
    background: transparent !important;
  }

  .col-md-8 .card-body {
    padding: 0 !important;
  }

  .col-md-8 .card-title {
    font-size: 1.5rem !important;
    font-weight: 700;
    margin-bottom: 0.25rem !important;
  }

  .col-md-8 .text-muted {
    font-size: 0.9rem !important;
  }

  /* Specs Grid */
  .spec-card-rect {
    padding: 12px 16px !important;
    min-height: 70px !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    border-radius: 10px !important;
  }

  .spec-card-label {
    font-size: 11px !important;
  }

  .spec-card-value {
    font-size: 14px !important;
  }

  /* Booking Form / Sticky Card */
  .col-md-4 .card {
    border-radius: 15px 15px 0 0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
  }

  /* Input Fields */
  .date-field-input {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    height: 50px !important;
    border-radius: 10px !important;
  }

  .calendar-icon {
    color: var(--button-primary) !important;
  }

  /* Action Button */
  .col-md-4 .btn-lg {
    height: 54px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  }
}

/* ==========================================================================
   CONSOLIDATED SHARED MOBILE STYLES (Overrides)
   ========================================================================== */
/* ==========================================================================
   CONSOLIDATED MOBILE STYLES (Appended to common.css)
   ========================================================================== */

@media (max-width: 768px) {

  /* --- SHARED TABLE STYLES (Vehicle, Customer, Vendor Index) --- */

  /* Hide Headers */
  #vehicleTable thead,
  #customerTable thead,
  #vendorTable thead {
    display: none !important;
  }

  /* Table Container & Rows */
  #vehicleTable,
  #vehicleTable tbody,
  #vehicleTable tr,
  #customerTable,
  #customerTable tbody,
  #customerTable tr,
  #vendorTable,
  #vendorTable tbody,
  #vendorTable tr {
    display: block;
    width: 100%;
  }

  #vehicleTable tr,
  #customerTable tr,
  #vendorTable tr {
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
    position: relative;
  }

  /* Cells */
  #vehicleTable td,
  #customerTable td,
  #vendorTable td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    text-align: right;
  }

  /* Labels */
  #vehicleTable td[data-label]::before,
  #customerTable td[data-label]::before,
  #vendorTable td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-right: 15px;
    text-align: left;
    flex-shrink: 0;
  }

  /* "Title" Cells (First Column) */
  .vechicle_title,
  .customer_title,
  .vendor_title {
    flex-direction: row !important;
    padding: 0 0 12px 0 !important;
    margin-bottom: 8px;
    border-bottom: 2px solid #e5e7eb !important;
    display: block !important;
    width: 100%;
  }

  .vechicle_title::before,
  .customer_title::before,
  .vendor_title::before {
    display: none !important;
  }

  .vechicle_title .d-flex,
  .customer_title .d-flex,
  .vendor_title .d-flex {
    width: 100%;
    align-items: center;
  }

  /* Last Cell (Actions) */
  #vehicleTable td:last-child,
  #customerTable td:last-child,
  #vendorTable td:last-child {
    border-bottom: none !important;
    padding-top: 15px !important;
    justify-content: center !important;
    flex-direction: column;
    display: flex !important;
  }

  #vehicleTable td:last-child::before,
  #customerTable td:last-child::before,
  #vendorTable td:last-child::before {
    display: none !important;
  }

  .view-details-btn,
  #customerTable .view-details-btn,
  #vendorTable .view-details-btn,
  #vehicleTable .view-details-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #6B6ADE !important;
    color: white !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    margin-top: 5px !important;
    transition: background-color 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(107, 106, 222, 0.3) !important;
  }

  .view-details-btn:hover,
  #customerTable .view-details-btn:hover,
  #vendorTable .view-details-btn:hover,
  #vehicleTable .view-details-btn:hover {
    background: #5A5ACF !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(107, 106, 222, 0.4) !important;
    transform: translateY(-1px);
  }

  /* Toggle Switches Position */
  .customer-booking-toggle-wrapper,
  .status-toggle-wrapper {
    margin-left: auto;
  }

  /* Filter Rows - Compact & Responsive */
  .filter-row {
    flex-direction: column;
    gap: 8px !important;
    /* Reduced gap */
  }

  .filter-row>div {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Wrap flex containers to allow side-by-side inputs */
  .filter-row .d-flex {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  /* Inputs take full width by default but flex can override for side-by-side */
  .filter-row input,
  .filter-row select,
  .filter-row .form-control,
  .filter-row .form-select {
    width: 100% !important;
    margin-bottom: 0;
  }

  /* Specific targeting for search+filter group to be side-by-side */
  .filter-row .d-flex.flex-grow-1 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px !important;
    width: 100% !important;
  }

  /* Make the search bar span full width */
  .filter-row .d-flex.flex-grow-1>div:first-child {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Ensure other children (filters) take up grid space */
  .filter-row .d-flex.flex-grow-1>div {
    width: 100% !important;
    min-width: 0 !important;
    /* Allow shrinking */
    flex: none !important;
  }

  /* --- SHARED FORM STYLES (Create/Edit) --- */
  .form-section {
    padding: 16px !important;
  }

  .col-md-6,
  .col-md-4,
  .col-md-3 {
    width: 100% !important;
    margin-bottom: 12px;
  }

  /* Exceptions for small grids (like Date/Time pairs if they exist) */
  .row.g-2 .col-6 {
    width: 50% !important;
  }

  .save-button,
  .cancel-button,
  .nxz-btn-primary,
  .nxz-btn-secondary {
    width: 100%;
    margin-bottom: 10px;
  }

  .form-actions,
  .nxz-action-buttons {
    flex-direction: column-reverse;
  }



  /* --- SHARED SHOW PAGE STYLES --- */
  /* Target only the top-level flex container of the header card */
  .view-header-card>.d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Keep the Title Section (Left) as a row, wrapping if needed */
  .view-header-card>.d-flex>.d-flex:first-child {
    flex-direction: row !important;
    width: 100%;
    justify-content: flex-start;
    align-items: center !important;
  }

  /* The Left section contains status dots etc, keep them inline */
  .view-header-card>.d-flex>.d-flex:first-child .d-flex {
    flex-direction: row !important;
  }

  /* Action Buttons (Right/Bottom) - side by side, wrap if needed */
  .view-header-card>.d-flex>.d-flex:last-child {
    flex-direction: row !important;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    /* Try to keep on one line */
    overflow-x: auto;
    /* Scroll if too wide */
    margin-top: 4px;
    gap: 8px !important;
    padding-bottom: 4px;
    /* Space for scrollbar if needed */
  }

  /* Hide scrollbar for cleaner look */
  .view-header-card>.d-flex>.d-flex:last-child::-webkit-scrollbar {
    height: 0px;
    background: transparent;
  }

  /* Make buttons compact */
  .view-header-card .btn {
    padding: 4px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Make the status badge compact */
  .view-header-card .badge {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Reduce header card padding generally */
  .view-header-card {
    padding: 16px !important;
  }

  .view-header-card h2 {
    font-size: 18px !important;
    line-height: 1.3;
  }

  /* Thumbnails for vehicles/docs */
  .thumbnail-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .thumbnail-item {
    flex-shrink: 0;
    margin-right: 10px;
  }

  /* Detail Cards Grid */
  .info-item {
    margin-bottom: 15px;
  }

  /* Ensure 2 columns for details on mobile if space permits */
  .view-page .col-6 {
    width: 50% !important;
  }
}


/* =========================================
   NEW PAGE STYLES (Consolidated)
   ========================================= */

/* --- ONLINE BOOKINGS (show.blade.php & index) --- */
.view-booking:hover {
  background: #5568d3 !important;
  color: white !important;
  text-decoration: none;
}

.accept-booking:hover {
  background: #218838 !important;
}

.reject-booking:hover {
  background: #c82333 !important;
}

.booking-view-header {
  margin-bottom: 24px;
}

.booking-id-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.booking-id-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.section-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-card .card-body {
  padding: 24px;
  flex: 1;
}

.section-heading {
  color: #2563eb;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.section-subheading {
  color: #111827;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}

.info-row {
  margin-bottom: 16px;
}

.info-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.info-value-highlight {
  color: #2563eb;
}

.summary-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
}

.summary-header {
  background: #6b46dc;
  color: white;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.summary-body {
  padding: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 14px;
}

.summary-label {
  color: #111827;
}

.summary-value {
  font-weight: 600;
  color: #111827;
  text-align: right;
}

.summary-divider {
  border-top: 1px dashed #e5e7eb;
  margin: 16px 0;
}

.summary-total {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
}

.status-pending {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.3);
}

.status-upcoming {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-ongoing {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.3);
}

.status-completed {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.3);
}

.status-cancelled {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-action {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-accept {
  background: #28a745;
  color: white;
}

.btn-accept:hover {
  background: #218838;
  color: white;
}

.btn-reject {
  background: #dc3545;
  color: white;
}

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

.btn-back {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
}

.notes-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

/* --- REPORTS (index.blade.php) --- */
.reports-page {
  padding: 12px 16px;
}

.report-card {
  background: #FFFFFF;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.10);
  border-color: #635BFF;
}

.report-card .header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.report-card .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.report-card .content .title {
  color: #0F172A;
  font-weight: 600;
}

.report-card .content .desc {
  color: #6B7280;
  font-size: 13px;
  line-height: 1.5;
  padding-left: 0;
  margin-top: 12px;
}

.text-indigo {
  color: #635BFF !important;
}

.bg-indigo-subtle {
  background: #F0EEFF !important;
}

.text-blue {
  color: #2563EB !important;
}

.bg-blue-subtle {
  background: #E6F0FF !important;
}

/* --- SETTINGS (index.blade.php) --- */
.settings-container {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 20px 0;
}

.settings-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  padding: 24px;
}

.settings-card-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
}

.settings-card-header h5 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.settings-card-header p {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 0;
}

.helper-text {
  font-size: 12px;
  color: #6c757d;
  margin-top: 6px;
  display: block;
}

.notification-type-card {
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.notification-type-header {
  margin-bottom: 12px;
  flex-shrink: 0;
}

.notification-type-label {
  font-weight: 600;
  color: #111827;
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
  line-height: 1.4;
}

.notification-type-desc {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 0;
  line-height: 1.4;
  display: block;
}

.repeat-settings-container {
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  margin-top: 12px;
  flex-shrink: 0;
}

.repeat-label {
  font-weight: 600;
  color: #374151;
  font-size: 13px;
}

.repeat-fields {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.repeat-info {
  font-size: 11px;
  padding-top: 20px;
  line-height: 1.3;
  color: #6b7280;
}

/* --- NOTIFICATIONS (index.blade.php) --- */
.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-cat-booking {
  background: #e9e5ff;
}

.bg-cat-insurance {
  background: #ffe9e9;
}

.bg-cat-service {
  background: #e9f7ff;
}

.bg-cat-maintenance {
  background: #fff4e5;
}

.bg-cat-inspection {
  background: #eaf7f0;
}

.snooze-option:hover {
  border-color: #6B6ADE !important;
  background-color: #f7fafc !important;
}

.snooze-option.selected {
  border-color: #6B6ADE !important;
  background-color: #e6f3ff !important;
}

/* =========================================
   MOBILE RESPONSIVE EXTENSIONS
   ========================================= */
@media (max-width: 768px) {

  /* Online Booking View Mobile */
  .action-buttons {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }

  /* Notification Filter Responsive */
  .d-flex.justify-content-between.align-items-center.mb-3.gap-3.filter-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
  }

  /* APPLY CARD LAYOUT TO NEW TABLES */
  #onlineBookingTable tbody tr,
  #bookingReportTable tbody tr,
  #activityLogTable tbody tr,
  #notificationsTable tbody tr,
  .filter-section .table tbody tr {
    display: block;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 12px;
  }

  #onlineBookingTable tbody td,
  #bookingReportTable tbody td,
  #activityLogTable tbody td,
  #notificationsTable tbody td,
  .filter-section .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    text-align: right;
  }

  #onlineBookingTable tbody td:last-child,
  #bookingReportTable tbody td:last-child,
  #activityLogTable tbody td:last-child,
  #notificationsTable tbody td:last-child,
  .filter-section .table tbody td:last-child {
    border-bottom: none;
    justify-content: flex-end;
  }

  #onlineBookingTable thead,
  #bookingReportTable thead,
  #activityLogTable thead,
  #notificationsTable thead,
  .filter-section .table thead {
    display: none;
  }

  #onlineBookingTable tbody td::before,
  #bookingReportTable tbody td::before,
  #activityLogTable tbody td::before,
  #notificationsTable tbody td::before,
  .filter-section .table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 15px;
    text-align: left;
    color: #6b7280;
  }

  /* Settings Page Mobile */
  .settings-container .settings-card {
    padding: 16px;
  }

  .settings-container .notification-type-header>.d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }

  .settings-container .notification-type-header .d-flex.align-items-center.gap-2 {
    width: 100%;
    margin-top: 8px;
    justify-content: flex-start;
  }

  .settings-container .repeat-settings-container {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .settings-container .repeat-fields .row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .settings-container .repeat-fields .col-5,
  .settings-container .repeat-fields .col-4,
  .settings-container .repeat-fields .col-3 {
    width: 100%;
    padding: 0;
  }

  .settings-container .repeat-info {
    padding-top: 5px;
    margin-top: 0;
  }
}

/* --- BOOKING CREATE FLOW STYLES (Consolidated from inline) --- */
.fw-semibold {
  margin-bottom: 5px
}

.form-select-wrapper .dropdown-toggle {
  border: none;
  padding: 0;
  background: none;
}

.booking-flow .flow-step.d-none {
  display: none !important
}

.progress-steps-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.progress-steps {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(10px)
}

.progress-steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 20px;
  cursor: pointer
}

.progress-steps .step:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1)
}

.progress-steps .step.active {
  color: #FFFFFF;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15)
}

.progress-steps .step.active:hover {
  background: rgba(255, 255, 255, 0.2)
}

.progress-steps .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease
}

.progress-steps .step.active .dot {
  background: rgba(255, 255, 255, 0.9);
  color: #6B6ADE;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3)
}

.progress-steps .step-label {
  white-space: nowrap
}

/* Vehicle List Container - Ensure proper layout when draft is loaded */
#vehicleList.vstack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%
}

#vehicleList .vehicle-card {
  margin-bottom: 0;
  width: 100%;
  max-width: 100%
}

/* Ensure columns maintain proper widths when draft is restored */
.booking-flow #step-1 .col-lg-4 {
  flex: 0 0 auto;
  width: 100%;
}

.booking-flow #step-1 .col-lg-8 {
  flex: 0 0 auto;
  width: 100%;
}

.booking-flow .form-control,
.booking-flow .form-select {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.booking-flow .form-control:focus,
.booking-flow .form-select:focus {
  border-color: #6B6ADE;
  box-shadow: 0 0 0 0.2rem rgba(107, 106, 222, 0.25);
}

.booking-flow .file-upload-area {
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
  cursor: pointer;
}

.booking-flow .file-upload-area:hover {
  border-color: #6B6ADE;
  background-color: #f0f0ff;
}

.booking-flow .upload-icon {
  font-size: 20px;
  color: #6c757d;
}

.booking-flow .upload-text {
  color: #6c757d;
  font-size: 12px;
  margin: 0;
}

#bookingFlowFooter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 12px 16px;
  z-index: 1055
}

#bookingFlowFooter .btn {
  min-width: 120px
}

#bookingFlowFooter #step3Next,
#bookingFlowFooter #confirmBookingBtn,
#bookingFlowFooter .btn-primary.btn-pill {
  transition: none !important;
  animation: none !important;
}

.booking-flow textarea.form-control {
  min-height: 120px;
  height: auto;
}

.booking-flow.has-footer {
  padding-bottom: 88px;
}

.card-body {
  background-color: white;
}

@media (min-width: 992px) {
  .booking-flow #step-1 .col-lg-4 {
    width: 33.33333333%;
  }

  .booking-flow #step-1 .col-lg-8 {
    width: 66.66666667%;
  }

  .booking-flow #step-1 .col-lg-4 .card {
    position: sticky;
    top: 20px;
    align-self: flex-start;
  }

  .booking-flow #step-1 .col-lg-8 {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 10px;
  }

  .booking-flow #step-1 .col-lg-8::-webkit-scrollbar {
    width: 6px;
  }

  .booking-flow #step-1 .col-lg-8::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .booking-flow #step-1 .col-lg-8::-webkit-scrollbar-thumb {
    background: #6B6ADE;
    border-radius: 3px;
  }

  .booking-flow #step-1 .col-lg-8::-webkit-scrollbar-thumb:hover {
    background: #5a5ac7;
  }

  .booking-flow #summarySidebar {
    position: relative;
  }

  .booking-flow .summary-sticky-wrapper {
    position: sticky;
    top: 20px;
    align-self: flex-start;
  }

  .booking-flow .row.summary-visible #mainContent {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 10px;
  }

  .booking-flow .row.summary-visible #mainContent::-webkit-scrollbar {
    width: 6px;
  }

  .booking-flow .row.summary-visible #mainContent::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .booking-flow .row.summary-visible #mainContent::-webkit-scrollbar-thumb {
    background: #6B6ADE;
    border-radius: 3px;
  }

  .booking-flow .row.summary-visible #mainContent::-webkit-scrollbar-thumb:hover {
    background: #5a5ac7;
  }
}

/* --- MORE BOOKING FLOW STYLES (Consolidated) --- */
.booking-flow #step-3 .card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06)
}

.booking-flow #step-3 .card-body {
  padding: 16px 20px
}

.booking-flow #step-3 .form-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px
}

.booking-flow #step-3 h6 {
  font-weight: 700;
  color: #6B6ADE
}

.booking-flow #step-3 .row.g-3>[class^='col-'],
.booking-flow #step-3 .row.g-3>[class*=' col-'] {
  padding-top: 4px;
  padding-bottom: 4px
}

.booking-flow #step-3 hr.section-sep {
  border-top: 2px dashed #e5e7eb;
  margin: 14px 0
}

.booking-flow .btn-link:hover,
.booking-flow .btn-link:focus,
.booking-flow .btn-link:active {
  background: transparent !important;
  background-color: transparent !important;
}

#advance_payment_section {
  display: none !important;
}

#advance_payment_section.show {
  display: flex !important;
}

/* Rental Info Popover Styles */
.rental-info-popover-booking {
  position: absolute;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px 20px;
  min-width: 300px;
  max-width: 350px;
  z-index: 9999 !important;
  top: 45px;
  right: 12px;
}

.vehicle-card {
  position: relative;
}

.vehicle-card.has-popover {
  z-index: 1000 !important;
  position: relative;
}

#vehicleList .vehicle-card.has-popover {
  z-index: 1000 !important;
}

.rental-info-popover-booking .rental-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.rental-info-popover-booking .rental-info-header strong {
  color: #333;
  font-size: 14px;
}

.rental-info-popover-booking .close-popover {
  cursor: pointer;
  color: #6c757d;
  font-size: 14px;
  padding: 4px;
}

.rental-info-popover-booking .close-popover:hover {
  color: #333;
}

.rental-info-popover-booking .rental-info-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rental-info-popover-booking .rental-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rental-info-popover-booking .rental-info-label {
  color: #6c757d;
  font-size: 13px;
}

.rental-info-popover-booking .rental-info-value {
  color: #333;
  font-weight: 600;
  font-size: 13px;
}

.rental-info-icon-booking:hover {
  color: #9333EA !important;
}


/* --- NOTIFICATIONS & SETTINGS STYLES (Consolidated) --- */
/* Notification Icons & Categories */
.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center
}

.bg-cat-booking {
  background: #e9e5ff;
}

.bg-cat-insurance {
  background: #ffe9e9;
}

.bg-cat-service {
  background: #e9f7ff;
}

.bg-cat-maintenance {
  background: #fff4e5;
}

.bg-cat-inspection {
  background: #eaf7f0;
}

/* Snooze Modal & Options */
.snooze-modal .modal-body {
  padding: 1.5rem;
}

.snooze-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.snooze-option {
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all .3s ease;
}

.snooze-option:hover {
  border-color: #6B6ADE;
  background-color: #f7fafc;
}

.snooze-option.selected {
  border-color: #6B6ADE;
  background-color: #e6f3ff;
}

.custom-date-input {
  margin-top: 1rem;
}

/* Settings Page Animations & Card Hoovers */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.settings-container .card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.settings-container .form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.settings-container .form-check-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =========================================
   REPORTS PAGE STYLES (Consolidated from reports.css)
   ========================================= */

/* Use a slightly less aggressive reset for Reports pages if needed, 
   but common.css styles should generally direct layout. 
   Removing the margin: 0 !important; padding: 0 !important; block from reports.css 
   to allow common.css padding to work on mobile. */

/* Consolidated Reports Page Styles */


@media (max-width: 768px) {
  .reports-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reports-page-header .back-button {
    width: auto;
    /* Allow button to be natural width */
    margin-bottom: 12px;
  }

  .reports-page-header .filters-section {
    width: 100%;
  }

  .reports-page-header .filters-section form {
    flex-direction: row;
    /* Keep row layout but wrap */
    flex-wrap: wrap;
    width: 100%;
    gap: 10px !important;
    align-items: stretch;
  }

  /* Make date inputs share a row */
  .reports-page-header .filters-section .form-control[type="date"] {
    width: calc(50% - 5px) !important;
    /* Half width minus gap */
    min-width: 0 !important;
    order: 1;
  }

  /* Dropdown and Download button full width or shared */
  .reports-page-header .filters-section .select-container,
  .reports-page-header .filters-section .btn {
    width: 100% !important;
    order: 2;
  }

  .reports-page-header .filters-section .select-container .select-button {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================
   MANAGE ACCOUNT PAGE STYLES
   ========================================= */
.no-subscription {
  text-align: center;
  padding: 40px 20px;
}

.no-subscription-icon {
  font-size: 48px;
  color: #ffc107;
  margin-bottom: 20px;
}

.no-subscription h4 {
  color: #333;
  margin-bottom: 10px;
}

.no-subscription p {
  color: #666;
  margin-bottom: 30px;
}

.btn-loading {
  display: none;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.change-logo-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.manage-account-content {
  padding: 20px;
  margin: 0 auto;
  zoom: 0.9;
}

.account-section {
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  color: #333;
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.section-header p {
  color: #666;
  margin: 0;
}

.account-overview-card,
.company-details-card,
.users-management-card,
.billing-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.account-info {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.account-logo {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.account-logo img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #f0f0f0;
}

.change-logo-btn {
  background: #6B6ADE;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.account-details {
  flex: 1;
}

.detail-row {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}

.detail-row label {
  font-weight: 600;
  color: #333;
  min-width: 150px;
  margin-right: 15px;
}

.detail-row span {
  color: #666;
}

.account-id {
  font-family: monospace;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6B6ADE;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #6B6ADE;
  color: white;
}

.btn-primary:hover {
  background: #5a5ac7;
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e0e0e0;
}

.btn-outline {
  background: transparent;
  color: #6B6ADE;
  border: 2px solid #6B6ADE;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-warning {
  background: #ffc107;
  color: #333;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
}

.users-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
}

.role-badge,
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.role-admin {
  background: #dc3545;
  color: white;
}

.role-manager {
  background: #ffc107;
  color: #333;
}

.role-employee {
  background: #17a2b8;
  color: white;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-inactive {
  background: #f8d7da;
  color: #721c24;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.subscription-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.subscription-details {
  flex: 1;
}

.subscription-actions {
  margin-left: 30px;
}

.no-subscription {
  text-align: center;
  padding: 40px;
  color: #666;
}

.transaction-id,
.order-id {
  font-family: monospace;
  font-size: 12px;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge-primary {
  background: #6B6ADE;
  color: white;
}

.badge-info {
  background: #17a2b8;
  color: white;
}

.badge-success {
  background: #28a745;
  color: white;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-successful {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-failed {
  background: #f8d7da;
  color: #721c24;
}

.status-refunded {
  background: #d1ecf1;
  color: #0c5460;
}

.text-muted {
  color: #999;
  font-size: 12px;
}

.small {
  font-size: 12px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.no-payment-history {
  text-align: center;
  padding: 40px 20px;
}

.no-payment-icon {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 20px;
}

.no-payment-history h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.no-payment-history p {
  color: #666;
  margin-bottom: 20px;
}

.payment-details {
  padding: 10px 0;
}

.payment-details .detail-row {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.payment-details .detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.payment-details .detail-row label {
  font-weight: 600;
  color: #333;
  min-width: 180px;
  margin-right: 15px;
  flex-shrink: 0;
}

.payment-details .detail-row span {
  color: #666;
  word-break: break-word;
  flex: 1;
}

.payment-details pre {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  width: 100%;
  font-size: 12px;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

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

.modal-content {
  background: white;
  margin: 0px auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: visible;
  height: auto;
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #000;
}

.modal-body {
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.modal-body-content {
  padding: 30px;
  overflow: visible;
  flex: 0 1 auto;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

.modal-actions .btn {
  min-width: 100px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.modal-actions .btn-secondary {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.modal-actions .btn-secondary:hover {
  background-color: #e9e9e9;
  border-color: #ccc;
}

.modal-actions .btn-primary {
  background-color: #6B6ADE;
  color: white;
}

.modal-actions .btn-primary:hover {
  background-color: #5a5ac7;
}

.modal-actions .btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.modal-body .alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.modal-body .alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.modal-body .alert ul {
  margin: 0;
  padding-left: 20px;
}

.modal-body .alert li {
  margin-bottom: 4px;
}

.modal-body .alert li:last-child {
  margin-bottom: 0;
}

#addUserForm input.is-invalid,
#addUserForm select.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#addUserForm input:focus.is-invalid,
#addUserForm select:focus.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

@media (max-width: 768px) {
  .account-info {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .subscription-info {
    flex-direction: column;
  }

  .subscription-actions {
    margin-left: 0;
    margin-top: 20px;
  }

  .modal {
    padding: 10px 0;
  }

  .modal-content {
    width: 95%;
    max-width: 95%;
    margin: 10px auto;
    max-height: calc(100vh - 20px);
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }

  .modal-body-content {
    padding: 20px;
  }

  .modal-footer {
    padding: 15px 20px;
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .modal-actions {
    flex-direction: column;
    padding: 15px 20px;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* Settings Page Mobile Responsive Enhancements */
@media (max-width: 768px) {
  .settings-container {
    padding: 10px !important;
  }

  /* Force all main grid columns to be full width */
  .settings-container .row>[class*="col-"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Force internal columns (like inside Notification Types) to be full width */
  .settings-container .settings-card .row>[class*="col-"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Make Save button full width */
  .settings-container .d-flex.justify-content-end {
    justify-content: center !important;
    width: 100%;
    display: flex !important;
  }

  .settings-container #saveSettingsBtn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 12px;
  }

  /* Ensure inputs don't overflow */
  .settings-container .form-control,
  .settings-container .form-select,
  .settings-container .input-group {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Better spacing for cards */
  .settings-container .settings-card {
    margin-bottom: 16px;
    padding: 16px !important;
  }

  /* Notification card adjustments */
  .notification-type-card {
    padding: 12px !important;
  }

  .notification-type-header .d-flex.align-items-center.gap-2 {
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
  }

  /* Repeat settings fields stacking */
  .repeat-fields .row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .repeat-fields .col-5,
  .repeat-fields .col-4,
  .repeat-fields .col-3 {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0;
  }

  .repeat-info {
    padding-left: 0;
    margin-top: 5px;
  }
}