.dt-buttons{
	margin: 0 10px;
}

/* Clean DataTables Styling */
.clean-table-container .dataTables_length,
.clean-table-container .dataTables_filter,
.clean-table-container .dataTables_info,
.clean-table-container .dataTables_paginate {
	display: inline-block;
	padding: 0.75rem 0.5rem !important;
	font-size: 0.875rem !important;
	color: #6c757d !important;
}

.clean-table-container .dataTables_filter,
.clean-table-container .dataTables_paginate{
	float: right;
}

.clean-table-container .dataTables_wrapper {
	border-top: 1px solid #f1f3f4 !important;
	background: white !important;
	border-radius: 0 0 0.5rem 0.5rem !important;
}

.clean-table-container .dataTables_info {
	color: #6c757d !important;
	font-size: 0.875rem !important;
	font-weight: 400 !important;
}

.clean-table-container .dataTables_length label,
.clean-table-container .dataTables_filter label {
	color: #6c757d !important;
	font-size: 0.875rem !important;
	font-weight: 400 !important;
	margin-bottom: 0 !important;
}

.clean-table-container .dataTables_length select {
	background: white !important;
	border: 1px solid #e9ecef !important;
	border-radius: 0.375rem !important;
	padding: 0.375rem 0.5rem !important;
	font-size: 0.875rem !important;
	color: #6c757d !important;
	margin: 0 0.5rem !important;
}

.clean-table-container .dataTables_filter input {
	background: white !important;
	border: 1px solid #e9ecef !important;
	border-radius: 0.375rem !important;
	padding: 0.375rem 0.75rem !important;
	font-size: 0.875rem !important;
	color: #495057 !important;
	margin-left: 0.5rem !important;
}

.clean-table-container .dataTables_filter input:focus {
	border-color: #6c757d !important;
	box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.25) !important;
	outline: none !important;
}

/* Clean DataTables Pagination */
.clean-table-container .dataTables_paginate .paginate_button {
	color: #6c757d !important;
	background: white !important;
	border: 1px solid #e9ecef !important;
	border-radius: 0.375rem !important;
	padding: 0.5rem 0.75rem !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	margin: 0 0.125rem !important;
	text-decoration: none !important;
	min-width: 40px !important;
	text-align: center !important;
	display: inline-block !important;
	transition: all 0.2s ease !important;
}

.clean-table-container .dataTables_paginate .paginate_button:hover {
	color: #495057 !important;
	background: #f8f9fa !important;
	border-color: #dee2e6 !important;
	transform: none !important;
	box-shadow: none !important;
}

.clean-table-container .dataTables_paginate .paginate_button.current,
.clean-table-container .dataTables_paginate .paginate_button.active {
	color: white !important;
	background: #495057 !important;
	border-color: #495057 !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

/* Additional DataTables active page selectors */
.clean-table-container .pagination .page-item.active .page-link,
.clean-table-container .dataTables_paginate .pagination .active a,
.clean-table-container .dataTables_paginate .pagination li.active a,
.clean-table-container .dataTables_paginate .paging_simple_numbers .paginate_button.current,
.clean-table-container .dataTables_paginate .paging_full_numbers .paginate_button.current {
	color: white !important;
	background: #495057 !important;
	border-color: #495057 !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

/* Force active state with higher specificity */
.clean-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current {
	color: white !important;
	background-color: #495057 !important;
	border: 1px solid #495057 !important;
}

.clean-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	color: white !important;
	background-color: #495057 !important;
	border: 1px solid #495057 !important;
}

.clean-table-container .dataTables_paginate .paginate_button.disabled {
	color: #adb5bd !important;
	background: #f8f9fa !important;
	border-color: #e9ecef !important;
	cursor: not-allowed !important;
}

.clean-table-container .dataTables_paginate .paginate_button.disabled:hover {
	color: #adb5bd !important;
	background: #f8f9fa !important;
	border-color: #e9ecef !important;
}

/* Clean DataTables Previous/Next buttons */
.clean-table-container .dataTables_paginate .paginate_button.previous,
.clean-table-container .dataTables_paginate .paginate_button.next {
	font-weight: 500 !important;
}

/* Remove default DataTables pagination styling for clean tables */
.clean-table-container .dataTables_paginate .pagination {
	margin-bottom: 0 !important;
}

/* Dark Theme DataTables */
[data-hs-appearance="dark"] .clean-table-container .dataTables_wrapper,
.dark .clean-table-container .dataTables_wrapper {
	background: #2d3748 !important;
	border-top-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_info,
[data-hs-appearance="dark"] .clean-table-container .dataTables_length,
[data-hs-appearance="dark"] .clean-table-container .dataTables_filter,
[data-hs-appearance="dark"] .clean-table-container .dataTables_paginate,
.dark .clean-table-container .dataTables_info,
.dark .clean-table-container .dataTables_length,
.dark .clean-table-container .dataTables_filter,
.dark .clean-table-container .dataTables_paginate {
	color: #a0aec0 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_length label,
[data-hs-appearance="dark"] .clean-table-container .dataTables_filter label,
.dark .clean-table-container .dataTables_length label,
.dark .clean-table-container .dataTables_filter label {
	color: #a0aec0 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_length select,
.dark .clean-table-container .dataTables_length select {
	background: #2d3748 !important;
	border-color: #4a5568 !important;
	color: #a0aec0 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_filter input,
.dark .clean-table-container .dataTables_filter input {
	background: #2d3748 !important;
	border-color: #4a5568 !important;
	color: #e2e8f0 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_filter input:focus,
.dark .clean-table-container .dataTables_filter input:focus {
	border-color: #718096 !important;
	box-shadow: 0 0 0 2px rgba(113, 128, 150, 0.25) !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_paginate .paginate_button,
.dark .clean-table-container .dataTables_paginate .paginate_button {
	color: #a0aec0 !important;
	background: #2d3748 !important;
	border-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_paginate .paginate_button:hover,
.dark .clean-table-container .dataTables_paginate .paginate_button:hover {
	color: #e2e8f0 !important;
	background: #4a5568 !important;
	border-color: #718096 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_paginate .paginate_button.current,
[data-hs-appearance="dark"] .clean-table-container .dataTables_paginate .paginate_button.active,
[data-hs-appearance="dark"] .clean-table-container .pagination .page-item.active .page-link,
[data-hs-appearance="dark"] .clean-table-container .dataTables_paginate .pagination .active a,
.dark .clean-table-container .dataTables_paginate .paginate_button.current,
.dark .clean-table-container .dataTables_paginate .paginate_button.active,
.dark .clean-table-container .pagination .page-item.active .page-link,
.dark .clean-table-container .dataTables_paginate .pagination .active a {
	color: white !important;
	background: #718096 !important;
	border-color: #718096 !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

/* Force dark theme active state with higher specificity */
[data-hs-appearance="dark"] .clean-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dark .clean-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current {
	color: white !important;
	background-color: #718096 !important;
	border: 1px solid #718096 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dark .clean-table-container .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	color: white !important;
	background-color: #718096 !important;
	border: 1px solid #718096 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_paginate .paginate_button.disabled,
.dark .clean-table-container .dataTables_paginate .paginate_button.disabled {
	color: #4a5568 !important;
	background: #1a202c !important;
	border-color: #2d3748 !important;
}

[data-hs-appearance="dark"] .clean-table-container .dataTables_paginate .paginate_button.disabled:hover,
.dark .clean-table-container .dataTables_paginate .paginate_button.disabled:hover {
	color: #4a5568 !important;
	background: #1a202c !important;
	border-color: #2d3748 !important;
}

/* Responsive DataTables Controls */
@media (max-width: 768px) {
	.clean-table-container .dataTables_length,
	.clean-table-container .dataTables_filter {
		float: none !important;
		text-align: center !important;
		padding: 0.5rem !important;
	}

	.clean-table-container .dataTables_info,
	.clean-table-container .dataTables_paginate {
		float: none !important;
		text-align: center !important;
		padding: 0.5rem !important;
	}

	.clean-table-container .dataTables_wrapper {
		padding: 0.5rem !important;
	}

	.clean-table-container .dataTables_paginate .paginate_button {
		padding: 0.375rem 0.5rem !important;
		font-size: 0.8rem !important;
		min-width: 35px !important;
		margin: 0 0.1rem !important;
	}

	.clean-table-container .dataTables_filter input {
		width: 100% !important;
		max-width: 200px !important;
		margin: 0.25rem 0 !important;
	}

	.clean-table-container .dataTables_length select {
		margin: 0.25rem !important;
	}
}

/* Legacy DataTables styling for non-clean tables */
.dataTables_length,.dataTables_filter, .dataTables_info, .dataTables_paginate {
	display: inline-block;
	padding: 16px !important;
}

.dataTables_filter, .dataTables_paginate{
	float: right;
}

._100{
	width: 100%;
}
._200px{
	min-width: 200px !important;
}

.transparent{
	opacity: 0.0;
}

/*.dt-button-collection div {
	width: 100px;
}*/

.dt-button-collection a.buttons-columnVisibility:before,
.dt-button-collection a.buttons-columnVisibility.active span:before {
	display:block;
	position:absolute;
	top:1.2em;
    left:0;
	width:12px;
	height:12px;
	box-sizing:border-box;
}

.dt-button-collection a.buttons-columnVisibility:before {
	content:' ';
	margin-top:-6px;
	margin-left:10px;
	border:1px solid black;
	border-radius:3px;
}

.dt-button-collection a.buttons-columnVisibility.active span:before {
	content:'\2714';
	margin-top:-11px;
	margin-left:12px;
	text-align:center;
	text-shadow:1px 1px #DDD, -1px -1px #DDD, 1px -1px #DDD, -1px 1px #DDD;
}

.dt-button-collection a.buttons-columnVisibility span {
    margin-left:20px;
}

/* Home Page Layout Optimizations */
.page-header {
  margin-bottom: 1rem !important;
}

.page-header .card {
  margin-top: 1rem !important;
}

/* Compact KPI Cards */
.card-body.py-3 {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

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

.mb-4 {
  margin-bottom: 1rem !important;
}

/* Chart container optimization */
.chartjs-custom {
  margin-bottom: 0.5rem !important;
}

/* Quick actions compact styling */
.card-hover-shadow:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

/* Optimize avatar sizes for compact layout */
.avatar {
  width: 2.5rem;
  height: 2.5rem;
}

.avatar-lg {
  width: 3rem;
  height: 3rem;
}

/* Reduce card padding for compact layout */
.card-body.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Optimize form controls in filters */
.form-select-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Responsive optimizations */
@media (max-width: 768px) {
  .page-header-title {
    font-size: 1.5rem !important;
  }

  .card-title {
    font-size: 1.1rem !important;
  }

  .display-4 {
    font-size: 2rem !important;
  }
}

/* Ensure proper spacing in dashboard */
.content.container-fluid {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Optimize table spacing */
.table td, .table th {
  padding: 0.5rem;
}

/* Compact modal styling */
.modal-body {
  padding: 1rem;
}

.modal-header {
  padding: 0.75rem 1rem;
}

.modal-footer {
  padding: 0.75rem 1rem;
}

/* Quick Add Sale Button Styling */
.nav-link.btn-soft-success {
  background-color: rgba(0, 184, 122, 0.1) !important;
  border: 1px solid rgba(0, 184, 122, 0.2) !important;
  color: #00b87a !important;
  margin: 0.25rem 0 !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease-in-out !important;
}

.nav-link.btn-soft-success:hover {
  background-color: rgba(0, 184, 122, 0.15) !important;
  border-color: rgba(0, 184, 122, 0.3) !important;
  color: #00a06d !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 184, 122, 0.2) !important;
}

.nav-link.btn-soft-success.active {
  background-color: #00b87a !important;
  border-color: #00b87a !important;
  color: white !important;
}

.nav-link.btn-soft-success .nav-icon {
  color: inherit !important;
}

.nav-link.btn-soft-success .nav-link-title {
  color: inherit !important;
}

/* ========================================
   AUTOMOTIVE LOGIN PAGE STYLES
   ======================================== */

/* Reset for full-screen layout */
body.automotive-login-body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100vh;
}

/* Automotive Color Variables */
:root {
  --automotive-primary: #1a2b47;
  --automotive-secondary: #e94d1c;
  --automotive-accent: #c0c5ce;
  --automotive-success: #28a745;
  --automotive-warning: #ffc107;
  --automotive-danger: #dc3545;
  --automotive-light: #f8f9fa;
  --automotive-dark: #343a40;
  --automotive-gradient: linear-gradient(135deg, #1a2b47 0%, #2c3e50 50%, #34495e 100%);
  --automotive-shadow: 0 10px 30px rgba(26, 43, 71, 0.15);
  --automotive-shadow-hover: 0 15px 40px rgba(26, 43, 71, 0.25);
}

/* Full Screen Layout */
.automotive-fullscreen-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.automotive-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/svg/automotive/parts-pattern.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Alternative Background Options */
.automotive-bg-image.warehouse-theme {
  background-image:
    linear-gradient(135deg, rgba(26, 43, 71, 0.85), rgba(52, 73, 94, 0.85)),
    url('../assets/images/automotive-parts-warehouse.jpg');
  background-blend-mode: overlay;
}

.automotive-bg-image.gears-theme {
  background-image:
    linear-gradient(135deg, rgba(26, 43, 71, 0.8), rgba(44, 62, 80, 0.8)),
    url('../assets/images/automotive-gears.jpg');
  background-blend-mode: overlay;
}

.automotive-bg-image.engine-theme {
  background-image:
    linear-gradient(135deg, rgba(15, 20, 25, 0.9), rgba(26, 43, 71, 0.85)),
    url('https://images.unsplash.com/photo-1654742967873-0bfb6cd0e719?fm=jpg&q=80&w=1920&ixlib=rb-4.1.0');
  background-blend-mode: overlay;
}

.automotive-bg-image.workshop-theme {
  background-image:
    linear-gradient(135deg, rgba(26, 43, 71, 0.85), rgba(44, 62, 80, 0.8)),
    url('https://images.unsplash.com/photo-1723099971299-3789db53604c?fm=jpg&q=80&w=1920&ixlib=rb-4.1.0');
  background-blend-mode: overlay;
}

.automotive-bg-image.parts-theme {
  background-image:
    linear-gradient(135deg, rgba(26, 43, 71, 0.8), rgba(52, 73, 94, 0.85)),
    url('https://images.unsplash.com/photo-1702146713870-8cdd7ab983fb?fm=jpg&q=80&w=1920&ixlib=rb-4.1.0');
  background-blend-mode: overlay;
}

.automotive-bg-image.metal-parts-theme {
  background-image:
    linear-gradient(135deg, rgba(20, 25, 30, 0.85), rgba(26, 43, 71, 0.8)),
    url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?fm=jpg&q=80&w=1920&ixlib=rb-4.1.0');
  background-blend-mode: overlay;
}

.automotive-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(26, 43, 71, 0.85) 0%,
    rgba(44, 62, 80, 0.8) 50%,
    rgba(52, 73, 94, 0.85) 100%);
}

.automotive-fullscreen-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.automotive-content-wrapper {
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Brand Section */
.automotive-brand-section {
  text-align: center;
  margin-bottom: 0.5rem;
}

.automotive-brand-container {
  margin-bottom: 0;
}

.automotive-logo-wrapper {
  position: relative;
  display: inline-block;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: var(--automotive-shadow);
  transition: all 0.3s ease;
}

.automotive-logo-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: var(--automotive-shadow-hover);
}

.automotive-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 50%;
}

.automotive-brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.125rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.automotive-brand-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Login Card */
.automotive-login-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.5rem;
  box-shadow: var(--automotive-shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.automotive-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--automotive-primary), var(--automotive-secondary));
}

.automotive-login-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--automotive-shadow-hover);
}

/* Welcome Section */
.automotive-welcome-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--automotive-primary), var(--automotive-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(26, 43, 71, 0.2);
}

.automotive-welcome-icon i {
  font-size: 1rem;
  color: white;
  animation: automotive-gear-spin 8s linear infinite;
}

.automotive-login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--automotive-primary);
  margin-bottom: 0.375rem;
  text-align: center;
}

.automotive-login-subtitle {
  font-size: 0.8rem;
  color: var(--automotive-accent);
  text-align: center;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Form Styles */
.automotive-form-label {
  font-weight: 600;
  color: var(--automotive-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.automotive-form-label i {
  color: var(--automotive-secondary);
}

.automotive-input-group {
  position: relative;
  margin-bottom: 0.375rem;
}

.automotive-input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: var(--automotive-accent);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.automotive-form-control {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 2px solid #e9ecef;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.automotive-form-control:focus {
  outline: none;
  border-color: var(--automotive-secondary);
  box-shadow: 0 0 0 0.2rem rgba(233, 77, 28, 0.25);
  background: white;
}

.automotive-form-control:focus + .automotive-input-icon,
.automotive-input-group:hover .automotive-input-icon {
  color: var(--automotive-secondary);
  transform: translateY(-50%) scale(1.1);
}

.automotive-form-control::placeholder {
  color: #adb5bd;
  font-style: italic;
}

/* Error Messages */
.automotive-error-message {
  color: var(--automotive-danger);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

/* Laravel Validation Error Styling */
.automotive-form-control.is-invalid {
  border-color: var(--automotive-danger);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.automotive-form-control.is-invalid:focus {
  border-color: var(--automotive-danger);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.automotive-form-control.is-invalid + .automotive-input-icon {
  color: var(--automotive-danger);
}

/* Status Alert */
.automotive-status-alert {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: var(--automotive-success);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Forgot Password Link */
.automotive-forgot-link {
  color: var(--automotive-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.automotive-forgot-link:hover {
  color: var(--automotive-primary);
  text-decoration: underline;
}

/* Checkbox Styling */
.automotive-checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.automotive-checkbox {
  display: none;
}

.automotive-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--automotive-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.automotive-checkbox-label::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #dee2e6;
  border-radius: 0.375rem;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
}

.automotive-checkbox:checked + .automotive-checkbox-label::before {
  background: var(--automotive-secondary);
  border-color: var(--automotive-secondary);
  content: '✓';
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.automotive-checkbox-label i {
  display: none;
  margin-right: 0.5rem;
  color: var(--automotive-secondary);
}

.automotive-checkbox:checked + .automotive-checkbox-label i {
  display: inline;
}

/* Sign In Button */
.automotive-signin-btn {
  position: relative;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--automotive-secondary), #ff6b35);
  border: none;
  border-radius: 0.625rem;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(233, 77, 28, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.automotive-signin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(233, 77, 28, 0.4);
}

.automotive-signin-btn:active {
  transform: translateY(0);
}

.automotive-btn-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.automotive-signin-btn:hover .automotive-btn-overlay {
  left: 100%;
}

/* Footer Links */
.automotive-footer-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.automotive-help-text {
  font-size: 0.8rem;
  color: var(--automotive-accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.automotive-support-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.automotive-support-link {
  color: var(--automotive-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.automotive-support-link:hover {
  color: var(--automotive-primary);
  text-decoration: underline;
}

.automotive-divider {
  color: #dee2e6;
  font-weight: 300;
}

/* Security Badge */
.automotive-security-badge {
  margin-top: 1rem;
}

.automotive-security-content {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  font-size: 0.75rem;
  color: var(--automotive-primary);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.automotive-security-content i {
  color: var(--automotive-success);
  margin-right: 0.375rem;
}

/* Animations */
@keyframes automotive-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes automotive-gear-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes automotive-pattern-float {
  0%, 100% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(20px);
  }
}

@keyframes automotive-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .automotive-content-wrapper {
    max-width: 22rem;
    gap: 0.75rem;
  }

  .automotive-brand-title {
    font-size: 1.25rem;
  }

  .automotive-brand-subtitle {
    font-size: 0.75rem;
  }

  .automotive-login-title {
    font-size: 1.35rem;
  }

  .automotive-login-subtitle {
    font-size: 0.75rem;
  }

  .automotive-logo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .automotive-welcome-icon {
    width: 2rem;
    height: 2rem;
  }

  .automotive-welcome-icon i {
    font-size: 0.875rem;
  }

  .automotive-form-control {
    padding: 0.625rem 0.625rem 0.625rem 2.25rem;
    font-size: 0.8rem;
  }

  .automotive-signin-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .automotive-support-links {
    flex-direction: column;
    gap: 0.375rem;
  }

  .automotive-divider {
    display: none;
  }
}

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

  .automotive-content-wrapper {
    max-width: 100%;
    gap: 0.5rem;
  }

  .automotive-login-card {
    border-radius: 0.875rem;
  }

  .automotive-brand-section {
    margin-bottom: 0.375rem;
  }

  .automotive-form-control {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    font-size: 0.8rem;
  }

  .automotive-input-icon {
    left: 0.5rem;
    font-size: 0.875rem;
  }

  .automotive-logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .automotive-brand-title {
    font-size: 1.125rem;
  }

  .automotive-brand-subtitle {
    font-size: 0.7rem;
  }

  .automotive-login-title {
    font-size: 1.25rem;
  }

  .automotive-login-subtitle {
    font-size: 0.7rem;
  }

  .automotive-welcome-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .automotive-welcome-icon i {
    font-size: 0.75rem;
  }
}

@media (max-height: 700px) {
  .automotive-content-wrapper {
    gap: 0.5rem;
  }

  .automotive-brand-section {
    margin-bottom: 0.25rem;
  }

  .automotive-logo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .automotive-welcome-icon {
    width: 2rem;
    height: 2rem;
  }

  .automotive-security-badge {
    margin-top: 0.5rem !important;
  }

  .automotive-footer-links {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
}

@media (max-height: 600px) {
  .automotive-content-wrapper {
    gap: 0.375rem;
  }

  .automotive-brand-section {
    margin-bottom: 0.125rem;
  }

  .automotive-logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .automotive-welcome-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .automotive-brand-title {
    font-size: 1.25rem;
  }

  .automotive-login-title {
    font-size: 1.35rem;
  }

  .automotive-security-badge {
    display: none;
  }
}

/* Loading States */
.automotive-signin-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.automotive-signin-btn.loading::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: automotive-gear-spin 1s linear infinite;
  margin-left: 0.5rem;
}

/* Focus Accessibility */
.automotive-form-control:focus,
.automotive-signin-btn:focus,
.automotive-checkbox:focus + .automotive-checkbox-label::before,
.automotive-forgot-link:focus,
.automotive-support-link:focus {
  outline: 2px solid var(--automotive-secondary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .automotive-login-card {
    border: 2px solid var(--automotive-primary);
  }

  .automotive-form-control {
    border-width: 3px;
  }

  .automotive-signin-btn {
    border: 2px solid var(--automotive-primary);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .automotive-welcome-icon i,
  .gear-icon,
  .automotive-pattern-overlay {
    animation: none;
  }

  .automotive-login-card,
  .automotive-signin-btn,
  .automotive-logo-wrapper {
    transition: none;
  }
}

/* ========================================
   AUTOMOTIVE SIDEBAR STYLES
   ======================================== */

/* Sidebar Container */
.filament-sidebar {
  background: linear-gradient(180deg,
    var(--automotive-primary) 0%,
    #2c3e50 50%,
    #34495e 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15) !important;
}

/* Sidebar Header */
.filament-sidebar-header {
  background: rgba(0, 0, 0, 0.2) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 1rem !important;
}

/* Brand Logo Container */
.automotive-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.automotive-sidebar-brand:hover {
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.automotive-sidebar-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.automotive-sidebar-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.automotive-sidebar-logo i {
  font-size: 1.25rem;
  color: var(--automotive-secondary);
  animation: automotive-gear-spin 8s linear infinite;
}

.automotive-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.automotive-sidebar-brand-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.automotive-sidebar-brand-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation Styling */
.filament-sidebar-nav {
  background: transparent !important;
  padding: 1.5rem 0 !important;
}

/* Navigation Groups */
.filament-sidebar-group button {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
}

.filament-sidebar-group button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.filament-sidebar-group button p {
  color: inherit !important;
  font-size: 0.75rem !important;
}

/* Navigation Items */
.filament-sidebar-item a {
  color: rgba(255, 255, 255, 0.85) !important;
  background: transparent !important;
  border-radius: 0.5rem !important;
  margin: 0.25rem 1rem !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease !important;
  border-left: 3px solid transparent !important;
  position: relative !important;
  overflow: hidden !important;
}

.filament-sidebar-item a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--automotive-secondary), rgba(233, 77, 28, 0.8));
  transition: width 0.3s ease;
  z-index: 0;
}

.filament-sidebar-item a:hover::before {
  width: 100%;
}

.filament-sidebar-item a:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-left-color: var(--automotive-secondary) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 15px rgba(233, 77, 28, 0.2) !important;
}

.filament-sidebar-item a > * {
  position: relative;
  z-index: 1;
}

/* Active Navigation Item */
.filament-sidebar-item-active a {
  background: linear-gradient(135deg, var(--automotive-secondary), #ff6b35) !important;
  color: white !important;
  border-left-color: #ff6b35 !important;
  box-shadow: 0 4px 15px rgba(233, 77, 28, 0.3) !important;
  transform: translateX(4px) !important;
}

.filament-sidebar-item-active a::before {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.filament-sidebar-item-active a:hover {
  background: linear-gradient(135deg, #ff6b35, var(--automotive-secondary)) !important;
  transform: translateX(6px) !important;
  box-shadow: 0 6px 20px rgba(233, 77, 28, 0.4) !important;
}

/* Navigation Icons */
.filament-sidebar-item svg,
.filament-sidebar-group svg {
  color: inherit !important;
  transition: all 0.3s ease !important;
}

.filament-sidebar-item:hover svg {
  transform: scale(1.1) !important;
  color: white !important;
}

.filament-sidebar-item-active svg {
  color: white !important;
}

/* Collapse Button */
.filament-sidebar-collapse-button {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
}

.filament-sidebar-collapse-button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Dividers */
.filament-sidebar-nav .border-t {
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin: 1rem 1.5rem !important;
}

/* Scrollbar Styling */
.filament-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.filament-sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.filament-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.filament-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Collapsed Sidebar Styling */
.filament-sidebar:not(.filament-sidebar-open) .automotive-sidebar-brand-text {
  display: none;
}

.filament-sidebar:not(.filament-sidebar-open) .automotive-sidebar-logo {
  width: 2rem;
  height: 2rem;
}

.filament-sidebar:not(.filament-sidebar-open) .automotive-sidebar-logo i {
  font-size: 1rem;
}

/* Dark Mode Overrides */
.dark .filament-sidebar {
  background: linear-gradient(180deg,
    #1a1a1a 0%,
    var(--automotive-primary) 50%,
    #2c3e50 100%) !important;
}

/* Automotive Group Styling Enhancements */
.filament-sidebar-group button div {
  color: rgba(255, 255, 255, 0.9) !important;
}

.filament-sidebar-group button div svg {
  color: var(--automotive-secondary) !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.filament-sidebar-group button:hover div svg {
  color: #ff6b35 !important;
  transform: scale(1.1);
}

/* Enhanced Navigation Item Styling */
.filament-sidebar-item a span {
  font-weight: 500 !important;
  letter-spacing: 0.25px !important;
}

/* Automotive Badge Styling */
.filament-sidebar-item .filament-sidebar-badge {
  background: var(--automotive-secondary) !important;
  color: white !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(233, 77, 28, 0.3) !important;
}

/* Automotive Tooltip Styling */
.tippy-box[data-theme~='automotive'] {
  background: linear-gradient(135deg, var(--automotive-primary), #2c3e50) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  font-weight: 500 !important;
}

.tippy-box[data-theme~='automotive'] .tippy-arrow {
  color: var(--automotive-primary) !important;
}

/* Automotive Focus States */
.filament-sidebar-item a:focus,
.filament-sidebar-group button:focus,
.automotive-sidebar-brand:focus {
  outline: 2px solid var(--automotive-secondary) !important;
  outline-offset: 2px !important;
  border-radius: 0.5rem !important;
}

/* Enhanced Collapsed State */
.filament-sidebar:not(.filament-sidebar-open) .filament-sidebar-item a {
  justify-content: center !important;
  margin: 0.25rem 0.5rem !important;
  padding: 0.75rem 0.5rem !important;
}

.filament-sidebar:not(.filament-sidebar-open) .filament-sidebar-group {
  display: none !important;
}

/* Automotive Loading Animation */
@keyframes automotive-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(233, 77, 28, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(233, 77, 28, 0.8), 0 0 30px rgba(233, 77, 28, 0.6);
  }
}

.automotive-sidebar-logo:hover i {
  animation: automotive-gear-spin 2s linear infinite, automotive-pulse-glow 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .filament-sidebar {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3) !important;
  }

  .automotive-sidebar-brand-title {
    font-size: 1rem;
  }

  .automotive-sidebar-brand-subtitle {
    font-size: 0.65rem;
  }

  .filament-sidebar-item a {
    margin: 0.25rem 0.75rem !important;
    padding: 0.625rem 0.875rem !important;
  }

  .filament-sidebar-group button {
    padding: 0.625rem 1.25rem !important;
  }
}

/* High Performance Mode */
@media (prefers-reduced-motion: reduce) {
  .automotive-sidebar-logo i,
  .filament-sidebar-item svg,
  .filament-sidebar-group svg {
    animation: none !important;
    transition: none !important;
  }

  .filament-sidebar-item a,
  .filament-sidebar-group button,
  .automotive-sidebar-brand {
    transition: none !important;
  }
}

/* ========================================
   AUTOMOTIVE SIDEBAR THEME SYSTEM
   ======================================== */

/* Light Automotive Theme (Default) */
.automotive-sidebar,
.navbar-vertical-aside {
  background: linear-gradient(180deg,
    #f8f9fa 0%,
    #e9ecef 50%,
    #dee2e6 100%) !important;
  border-right: 1px solid rgba(233, 77, 28, 0.2) !important;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05) !important;
}

/* Dark Automotive Theme */
[data-hs-appearance="dark"] .automotive-sidebar,
[data-hs-appearance="dark"] .navbar-vertical-aside,
.dark .automotive-sidebar,
.dark .navbar-vertical-aside {
  background: linear-gradient(180deg,
    var(--automotive-primary) 0%,
    #2c3e50 50%,
    #34495e 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2) !important;
}

/* Override any conflicting background classes */
.automotive-sidebar.bg-white {
  background: linear-gradient(180deg,
    #f8f9fa 0%,
    #e9ecef 50%,
    #dee2e6 100%) !important;
}

/* Brand Section - Light Theme */
.automotive-sidebar .navbar-brand,
.navbar-vertical-aside .navbar-brand {
  color: #495057 !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.2) !important;
  background: rgba(255, 255, 255, 0.8) !important;
}

.automotive-sidebar .navbar-brand:hover,
.navbar-vertical-aside .navbar-brand:hover {
  color: var(--automotive-secondary) !important;
  text-decoration: none !important;
}

.automotive-sidebar .navbar-brand span,
.navbar-vertical-aside .navbar-brand span {
  color: #495057 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Brand Section - Dark Theme */
[data-hs-appearance="dark"] .automotive-sidebar .navbar-brand,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-brand,
.dark .automotive-sidebar .navbar-brand,
.dark .navbar-vertical-aside .navbar-brand {
  color: white !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(0, 0, 0, 0.2) !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .navbar-brand:hover,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-brand:hover,
.dark .automotive-sidebar .navbar-brand:hover,
.dark .navbar-vertical-aside .navbar-brand:hover {
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .navbar-brand span,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-brand span,
.dark .automotive-sidebar .navbar-brand span,
.dark .navbar-vertical-aside .navbar-brand span {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Toggle Button - Light Theme */
.automotive-sidebar .navbar-aside-toggler,
.navbar-vertical-aside .navbar-aside-toggler {
  background: rgba(233, 77, 28, 0.1) !important;
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  color: var(--automotive-secondary) !important;
}

.automotive-sidebar .navbar-aside-toggler:hover,
.navbar-vertical-aside .navbar-aside-toggler:hover {
  background: rgba(233, 77, 28, 0.2) !important;
  color: var(--automotive-secondary) !important;
}

/* Toggle Button - Dark Theme */
[data-hs-appearance="dark"] .automotive-sidebar .navbar-aside-toggler,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-aside-toggler,
.dark .automotive-sidebar .navbar-aside-toggler,
.dark .navbar-vertical-aside .navbar-aside-toggler {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .navbar-aside-toggler:hover,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-aside-toggler:hover,
.dark .automotive-sidebar .navbar-aside-toggler:hover,
.dark .navbar-vertical-aside .navbar-aside-toggler:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

/* Navigation Content Area */
.automotive-sidebar .navbar-vertical-content,
.navbar-vertical-aside .navbar-vertical-content {
  background: transparent !important;
}

/* Section Headers - Light Theme */
.automotive-sidebar .dropdown-header,
.navbar-vertical-aside .dropdown-header {
  color: #495057 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-top: 1px solid rgba(233, 77, 28, 0.2) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Section Headers - Dark Theme */
[data-hs-appearance="dark"] .automotive-sidebar .dropdown-header,
[data-hs-appearance="dark"] .navbar-vertical-aside .dropdown-header,
.dark .automotive-sidebar .dropdown-header,
.dark .navbar-vertical-aside .dropdown-header {
  color: rgba(255, 255, 255, 0.9) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Navigation Links - Light Theme */
.automotive-sidebar .nav-link,
.navbar-vertical-aside .nav-link {
  color: #495057 !important;
  transition: all 0.3s ease !important;
}

.automotive-sidebar .nav-link:hover,
.navbar-vertical-aside .nav-link:hover {
  color: var(--automotive-secondary) !important;
  background: rgba(233, 77, 28, 0.1) !important;
  border-left: 3px solid var(--automotive-secondary) !important;
  transform: translateX(2px) !important;
}

/* Navigation Links - Dark Theme */
[data-hs-appearance="dark"] .automotive-sidebar .nav-link,
[data-hs-appearance="dark"] .navbar-vertical-aside .nav-link,
.dark .automotive-sidebar .nav-link,
.dark .navbar-vertical-aside .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .nav-link:hover,
[data-hs-appearance="dark"] .navbar-vertical-aside .nav-link:hover,
.dark .automotive-sidebar .nav-link:hover,
.dark .navbar-vertical-aside .nav-link:hover {
  color: white !important;
  background: rgba(233, 77, 28, 0.2) !important;
}

/* Active Navigation Items - Light Theme */
.automotive-sidebar .nav-link.active,
.navbar-vertical-aside .nav-link.active {
  background: linear-gradient(135deg, var(--automotive-secondary), #ff6b35) !important;
  color: white !important;
  border-left: 3px solid #ff6b35 !important;
  box-shadow: 0 2px 8px rgba(233, 77, 28, 0.3) !important;
}

.automotive-sidebar .nav-link.active:hover,
.navbar-vertical-aside .nav-link.active:hover {
  background: linear-gradient(135deg, #ff6b35, var(--automotive-secondary)) !important;
}

/* Active Navigation Items - Dark Theme (same as light) */
[data-hs-appearance="dark"] .automotive-sidebar .nav-link.active,
[data-hs-appearance="dark"] .navbar-vertical-aside .nav-link.active,
.dark .automotive-sidebar .nav-link.active,
.dark .navbar-vertical-aside .nav-link.active {
  background: linear-gradient(135deg, var(--automotive-secondary), #ff6b35) !important;
  color: white !important;
  border-left: 3px solid #ff6b35 !important;
  box-shadow: 0 2px 8px rgba(233, 77, 28, 0.3) !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .nav-link.active:hover,
[data-hs-appearance="dark"] .navbar-vertical-aside .nav-link.active:hover,
.dark .automotive-sidebar .nav-link.active:hover,
.dark .navbar-vertical-aside .nav-link.active:hover {
  background: linear-gradient(135deg, #ff6b35, var(--automotive-secondary)) !important;
}

/* Quick Add Sale Button - Both Themes */
.automotive-sidebar .nav-link.btn-soft-success,
.navbar-vertical-aside .nav-link.btn-soft-success {
  background: linear-gradient(135deg, var(--automotive-success), #20c997) !important;
  color: white !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3) !important;
}

.automotive-sidebar .nav-link.btn-soft-success:hover,
.navbar-vertical-aside .nav-link.btn-soft-success:hover {
  background: linear-gradient(135deg, #20c997, var(--automotive-success)) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
}

/* Navigation Icons - Light Theme */
.automotive-sidebar .nav-icon,
.navbar-vertical-aside .nav-icon {
  color: #6c757d !important;
  transition: all 0.3s ease !important;
}

.automotive-sidebar .nav-link:hover .nav-icon,
.navbar-vertical-aside .nav-link:hover .nav-icon {
  color: var(--automotive-secondary) !important;
}

.automotive-sidebar .nav-link.active .nav-icon,
.navbar-vertical-aside .nav-link.active .nav-icon {
  color: white !important;
}

/* Navigation Icons - Dark Theme */
[data-hs-appearance="dark"] .automotive-sidebar .nav-icon,
[data-hs-appearance="dark"] .navbar-vertical-aside .nav-icon,
.dark .automotive-sidebar .nav-icon,
.dark .navbar-vertical-aside .nav-icon {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .nav-link:hover .nav-icon,
[data-hs-appearance="dark"] .navbar-vertical-aside .nav-link:hover .nav-icon,
.dark .automotive-sidebar .nav-link:hover .nav-icon,
.dark .navbar-vertical-aside .nav-link:hover .nav-icon {
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .nav-link.active .nav-icon,
[data-hs-appearance="dark"] .navbar-vertical-aside .nav-link.active .nav-icon,
.dark .automotive-sidebar .nav-link.active .nav-icon,
.dark .navbar-vertical-aside .nav-link.active .nav-icon {
  color: white !important;
}

/* Collapsed Navigation Items */
.automotive-sidebar .nav-collapse .nav-link,
.navbar-vertical-aside .nav-collapse .nav-link {
  padding-left: 3rem !important;
  font-size: 0.9rem !important;
}

/* Footer - Light Theme */
.automotive-sidebar .navbar-vertical-footer,
.navbar-vertical-aside .navbar-vertical-footer {
  background: rgba(255, 255, 255, 0.8) !important;
  border-top: 1px solid rgba(233, 77, 28, 0.2) !important;
}

.automotive-sidebar .navbar-vertical-footer-list-item .btn,
.navbar-vertical-aside .navbar-vertical-footer-list-item .btn {
  background: rgba(233, 77, 28, 0.1) !important;
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  color: #495057 !important;
}

.automotive-sidebar .navbar-vertical-footer-list-item .btn:hover,
.navbar-vertical-aside .navbar-vertical-footer-list-item .btn:hover {
  background: rgba(233, 77, 28, 0.2) !important;
  color: var(--automotive-secondary) !important;
}

/* Footer - Dark Theme */
[data-hs-appearance="dark"] .automotive-sidebar .navbar-vertical-footer,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-vertical-footer,
.dark .automotive-sidebar .navbar-vertical-footer,
.dark .navbar-vertical-aside .navbar-vertical-footer {
  background: rgba(0, 0, 0, 0.3) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .navbar-vertical-footer-list-item .btn,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-vertical-footer-list-item .btn,
.dark .automotive-sidebar .navbar-vertical-footer-list-item .btn,
.dark .navbar-vertical-aside .navbar-vertical-footer-list-item .btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .navbar-vertical-footer-list-item .btn:hover,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-vertical-footer-list-item .btn:hover,
.dark .automotive-sidebar .navbar-vertical-footer-list-item .btn:hover,
.dark .navbar-vertical-aside .navbar-vertical-footer-list-item .btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

/* Dropdown Menus - Light Theme */
.automotive-sidebar .navbar-dropdown-menu,
.navbar-vertical-aside .navbar-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.automotive-sidebar .navbar-dropdown-menu .dropdown-item,
.navbar-vertical-aside .navbar-dropdown-menu .dropdown-item {
  color: #495057 !important;
}

.automotive-sidebar .navbar-dropdown-menu .dropdown-item:hover,
.navbar-vertical-aside .navbar-dropdown-menu .dropdown-item:hover {
  background: rgba(233, 77, 28, 0.1) !important;
  color: var(--automotive-secondary) !important;
}

.automotive-sidebar .navbar-dropdown-menu .dropdown-header,
.navbar-vertical-aside .navbar-dropdown-menu .dropdown-header {
  color: #495057 !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.2) !important;
}

/* Dropdown Menus - Dark Theme */
[data-hs-appearance="dark"] .automotive-sidebar .navbar-dropdown-menu,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-dropdown-menu,
.dark .automotive-sidebar .navbar-dropdown-menu,
.dark .navbar-vertical-aside .navbar-dropdown-menu {
  background: var(--automotive-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .navbar-dropdown-menu .dropdown-item,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-dropdown-menu .dropdown-item,
.dark .automotive-sidebar .navbar-dropdown-menu .dropdown-item,
.dark .navbar-vertical-aside .navbar-dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .navbar-dropdown-menu .dropdown-item:hover,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-dropdown-menu .dropdown-item:hover,
.dark .automotive-sidebar .navbar-dropdown-menu .dropdown-item:hover,
.dark .navbar-vertical-aside .navbar-dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-sidebar .navbar-dropdown-menu .dropdown-header,
[data-hs-appearance="dark"] .navbar-vertical-aside .navbar-dropdown-menu .dropdown-header,
.dark .automotive-sidebar .navbar-dropdown-menu .dropdown-header,
.dark .navbar-vertical-aside .navbar-dropdown-menu .dropdown-header {
  color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Enhanced Scrollbar for Sidebar */
.navbar-vertical-content::-webkit-scrollbar {
  width: 6px;
}

.navbar-vertical-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.navbar-vertical-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.navbar-vertical-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-vertical-aside {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
  }
}

/* ========================================
   AUTOMOTIVE HEADER STYLES
   ======================================== */

/* Header Container */
.automotive-header,
#header {
  background: linear-gradient(135deg,
    #f8f9fa 0%,
    #e9ecef 50%,
    #dee2e6 100%) !important;
  border-bottom: 2px solid rgba(233, 77, 28, 0.2) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
}

/* Dark Theme Header */
[data-hs-appearance="dark"] .automotive-header,
[data-hs-appearance="dark"] #header,
.dark .automotive-header,
.dark #header {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 50%,
    #34495e 100%) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Header Brand/Logo */
.automotive-header .navbar-brand,
#header .navbar-brand {
  color: #495057 !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.automotive-header .navbar-brand:hover,
#header .navbar-brand:hover {
  color: var(--automotive-secondary) !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

/* Dark Theme Brand */
[data-hs-appearance="dark"] .automotive-header .navbar-brand,
[data-hs-appearance="dark"] #header .navbar-brand,
.dark .automotive-header .navbar-brand,
.dark #header .navbar-brand {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

[data-hs-appearance="dark"] .automotive-header .navbar-brand:hover,
[data-hs-appearance="dark"] #header .navbar-brand:hover,
.dark .automotive-header .navbar-brand:hover,
.dark #header .navbar-brand:hover {
  color: #ff6b35 !important;
}

/* Sidebar Toggle Button */
.automotive-header .navbar-aside-toggler,
#header .navbar-aside-toggler {
  background: rgba(233, 77, 28, 0.1) !important;
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  color: var(--automotive-secondary) !important;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease !important;
  padding: 0.5rem !important;
}

.automotive-header .navbar-aside-toggler:hover,
#header .navbar-aside-toggler:hover {
  background: rgba(233, 77, 28, 0.2) !important;
  color: var(--automotive-secondary) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(233, 77, 28, 0.2) !important;
}

/* Dark Theme Toggle */
[data-hs-appearance="dark"] .automotive-header .navbar-aside-toggler,
[data-hs-appearance="dark"] #header .navbar-aside-toggler,
.dark .automotive-header .navbar-aside-toggler,
.dark #header .navbar-aside-toggler {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-header .navbar-aside-toggler:hover,
[data-hs-appearance="dark"] #header .navbar-aside-toggler:hover,
.dark .automotive-header .navbar-aside-toggler:hover,
.dark #header .navbar-aside-toggler:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

/* Search Section */
.automotive-header .navbar-input-group,
#header .navbar-input-group {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid rgba(233, 77, 28, 0.2) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

/* Input group merge specific styling */
.automotive-header .input-group-merge,
#header .input-group-merge {
  position: relative !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  width: 100% !important;
}

.automotive-header .navbar-input-group:hover,
#header .navbar-input-group:hover {
  border-color: rgba(233, 77, 28, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.automotive-header .navbar-input-group:focus-within,
#header .navbar-input-group:focus-within {
  border-color: var(--automotive-secondary) !important;
  box-shadow: 0 0 0 0.2rem rgba(233, 77, 28, 0.25) !important;
}

/* Dark Theme Search */
[data-hs-appearance="dark"] .automotive-header .navbar-input-group,
[data-hs-appearance="dark"] #header .navbar-input-group,
.dark .automotive-header .navbar-input-group,
.dark #header .navbar-input-group {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

[data-hs-appearance="dark"] .automotive-header .navbar-input-group:hover,
[data-hs-appearance="dark"] #header .navbar-input-group:hover,
.dark .automotive-header .navbar-input-group:hover,
.dark #header .navbar-input-group:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Search Input */
.automotive-header .form-control,
#header .form-control {
  background: transparent !important;
  border: none !important;
  color: #495057 !important;
  font-weight: 500 !important;
  padding: 0.75rem 1rem !important;
}

/* Fix for search input with prefix icon */
.automotive-header .input-group-merge .form-control,
#header .input-group-merge .form-control {
  padding-left: 2.5rem !important;
}

/* Ensure proper spacing for input group with prepend */
.automotive-header .input-group-prepend + .form-control,
#header .input-group-prepend + .form-control {
  padding-left: 2.75rem !important;
}

/* Mobile search input fix */
.automotive-header .navbar-input-group .form-control,
#header .navbar-input-group .form-control {
  padding-left: 2.5rem !important;
}

.automotive-header .form-control:focus,
#header .form-control:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #495057 !important;
}

.automotive-header .form-control::placeholder,
#header .form-control::placeholder {
  color: #6c757d !important;
  font-style: italic !important;
}

/* Dark Theme Search Input */
[data-hs-appearance="dark"] .automotive-header .form-control,
[data-hs-appearance="dark"] #header .form-control,
.dark .automotive-header .form-control,
.dark #header .form-control {
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-header .form-control:focus,
[data-hs-appearance="dark"] #header .form-control:focus,
.dark .automotive-header .form-control:focus,
.dark #header .form-control:focus {
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-header .form-control::placeholder,
[data-hs-appearance="dark"] #header .form-control::placeholder,
.dark .automotive-header .form-control::placeholder,
.dark #header .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Search Icons */
.automotive-header .input-group-text,
#header .input-group-text {
  background: transparent !important;
  border: none !important;
  color: var(--automotive-secondary) !important;
  transition: all 0.3s ease !important;
  padding: 0.75rem 0.75rem !important;
  min-width: 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Prepend icon positioning */
.automotive-header .input-group-prepend .input-group-text,
#header .input-group-prepend .input-group-text {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 10 !important;
  border-radius: 0.75rem 0 0 0.75rem !important;
}

.automotive-header .input-group-text:hover,
#header .input-group-text:hover {
  color: var(--automotive-primary) !important;
  transform: scale(1.1) !important;
}

/* Dark Theme Search Icons */
[data-hs-appearance="dark"] .automotive-header .input-group-text,
[data-hs-appearance="dark"] #header .input-group-text,
.dark .automotive-header .input-group-text,
.dark #header .input-group-text {
  color: #ff6b35 !important;
}

[data-hs-appearance="dark"] .automotive-header .input-group-text:hover,
[data-hs-appearance="dark"] #header .input-group-text:hover,
.dark .automotive-header .input-group-text:hover,
.dark #header .input-group-text:hover {
  color: white !important;
}

/* Navigation Buttons */
.automotive-header .btn,
#header .btn {
  border-radius: 0.5rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.automotive-header .btn-ghost-info,
#header .btn-ghost-info {
  background: rgba(23, 162, 184, 0.1) !important;
  border: 1px solid rgba(23, 162, 184, 0.2) !important;
  color: #17a2b8 !important;
}

.automotive-header .btn-ghost-info:hover,
#header .btn-ghost-info:hover {
  background: rgba(23, 162, 184, 0.2) !important;
  color: #17a2b8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2) !important;
}

.automotive-header .btn-ghost-secondary,
#header .btn-ghost-secondary {
  background: rgba(108, 117, 125, 0.1) !important;
  border: 1px solid rgba(108, 117, 125, 0.2) !important;
  color: #6c757d !important;
}

.automotive-header .btn-ghost-secondary:hover,
#header .btn-ghost-secondary:hover {
  background: rgba(233, 77, 28, 0.1) !important;
  border-color: rgba(233, 77, 28, 0.2) !important;
  color: var(--automotive-secondary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(233, 77, 28, 0.2) !important;
}

/* Dark Theme Buttons */
[data-hs-appearance="dark"] .automotive-header .btn-ghost-info,
[data-hs-appearance="dark"] #header .btn-ghost-info,
.dark .automotive-header .btn-ghost-info,
.dark #header .btn-ghost-info {
  background: rgba(23, 162, 184, 0.2) !important;
  border: 1px solid rgba(23, 162, 184, 0.3) !important;
  color: #5bc0de !important;
}

[data-hs-appearance="dark"] .automotive-header .btn-ghost-secondary,
[data-hs-appearance="dark"] #header .btn-ghost-secondary,
.dark .automotive-header .btn-ghost-secondary,
.dark #header .btn-ghost-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

[data-hs-appearance="dark"] .automotive-header .btn-ghost-secondary:hover,
[data-hs-appearance="dark"] #header .btn-ghost-secondary:hover,
.dark .automotive-header .btn-ghost-secondary:hover,
.dark #header .btn-ghost-secondary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

/* Notification Badge */
.automotive-header .btn-status,
#header .btn-status {
  background: var(--automotive-secondary) !important;
  border: 2px solid white !important;
  animation: automotive-pulse 2s ease-in-out infinite !important;
}

/* Dropdown Menus */
.automotive-header .dropdown-menu,
#header .dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  padding: 0.5rem !important;
}

/* Search Dropdown Specific Styling */
.automotive-header #searchDropdownMenu,
#header #searchDropdownMenu {
  min-width: 280px !important;
  max-width: 320px !important;
  padding: 0.5rem !important;
  overflow: hidden !important;
}

.automotive-header #searchDropdownMenu .dropdown-header,
#header #searchDropdownMenu .dropdown-header {
  padding: 0.75rem 1rem 0.5rem 1rem !important;
  margin: 0 !important;
  font-size: 0.875rem !important;
}

.automotive-header #searchDropdownMenu .dropdown-item,
#header #searchDropdownMenu .dropdown-item {
  padding: 0.75rem 1rem !important;
  margin: 0.125rem 0.5rem !important;
  border-radius: 0.5rem !important;
  position: relative !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  max-width: calc(100% - 1rem) !important;
}

.automotive-header #searchDropdownMenu .dropdown-divider,
#header #searchDropdownMenu .dropdown-divider {
  margin: 0.5rem 1rem !important;
}

/* Mobile search input within dropdown */
.automotive-header #searchDropdownMenu .d-lg-none,
#header #searchDropdownMenu .d-lg-none {
  border-bottom: 1px solid rgba(233, 77, 28, 0.2) !important;
  margin-bottom: 0.5rem !important;
}

.automotive-header #searchDropdownMenu .d-lg-none .navbar-input-group,
#header #searchDropdownMenu .d-lg-none .navbar-input-group {
  margin-bottom: 0.75rem !important;
}

/* Footer link styling */
.automotive-header #searchDropdownMenu .dropdown-item.text-center,
#header #searchDropdownMenu .dropdown-item.text-center {
  background: rgba(233, 77, 28, 0.05) !important;
  color: var(--automotive-secondary) !important;
  font-weight: 500 !important;
  margin: 0.5rem 0.5rem 0.25rem 0.5rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem !important;
  text-align: center !important;
  width: calc(100% - 1rem) !important;
  max-width: calc(100% - 1rem) !important;
}

.automotive-header #searchDropdownMenu .dropdown-item.text-center:hover,
#header #searchDropdownMenu .dropdown-item.text-center:hover {
  background: rgba(233, 77, 28, 0.1) !important;
  color: var(--automotive-primary) !important;
  transform: none !important;
  margin: 0.5rem 0.5rem 0.25rem 0.5rem !important;
}

.automotive-header .dropdown-menu::before,
#header .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--automotive-primary), var(--automotive-secondary));
  border-radius: 0.75rem 0.75rem 0 0;
}

/* Dark Theme Dropdowns */
[data-hs-appearance="dark"] .automotive-header .dropdown-menu,
[data-hs-appearance="dark"] #header .dropdown-menu,
.dark .automotive-header .dropdown-menu,
.dark #header .dropdown-menu {
  background: rgba(26, 43, 71, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Dropdown Items */
.automotive-header .dropdown-item,
#header .dropdown-item {
  color: #495057 !important;
  border-radius: 0.5rem !important;
  margin: 0.125rem 0.5rem !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  width: auto !important;
  max-width: none !important;
}

/* Remove the problematic ::before pseudo-element for general dropdown items */
.automotive-header .dropdown-item:hover,
#header .dropdown-item:hover {
  background: rgba(233, 77, 28, 0.1) !important;
  color: var(--automotive-secondary) !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(233, 77, 28, 0.15) !important;
}

/* Ensure text and content remain visible */
.automotive-header .dropdown-item > *,
#header .dropdown-item > * {
  position: relative;
  z-index: 1;
  color: inherit !important;
}

/* Specific styling for search dropdown items to prevent edge overflow */
.automotive-header #searchDropdownMenu .dropdown-item:hover,
#header #searchDropdownMenu .dropdown-item:hover {
  background: rgba(233, 77, 28, 0.1) !important;
  color: var(--automotive-secondary) !important;
  transform: none !important;
  margin: 0.125rem 0.5rem !important;
  border-radius: 0.5rem !important;
}

/* Dark Theme Dropdown Items */
[data-hs-appearance="dark"] .automotive-header .dropdown-item,
[data-hs-appearance="dark"] #header .dropdown-item,
.dark .automotive-header .dropdown-item,
.dark #header .dropdown-item {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-hs-appearance="dark"] .automotive-header .dropdown-item:hover,
[data-hs-appearance="dark"] #header .dropdown-item:hover,
.dark .automotive-header .dropdown-item:hover,
.dark #header .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

/* Dropdown Headers */
.automotive-header .dropdown-header,
#header .dropdown-header {
  color: var(--automotive-primary) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.2) !important;
  margin-bottom: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Dark Theme Dropdown Headers */
[data-hs-appearance="dark"] .automotive-header .dropdown-header,
[data-hs-appearance="dark"] #header .dropdown-header,
.dark .automotive-header .dropdown-header,
.dark #header .dropdown-header {
  color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* User Account Section */
.automotive-header .navbar-dropdown-account-wrapper,
#header .navbar-dropdown-account-wrapper {
  transition: all 0.3s ease !important;
  border-radius: 50% !important;
  padding: 0.25rem !important;
  background: rgba(233, 77, 28, 0.1) !important;
  border: 2px solid rgba(233, 77, 28, 0.2) !important;
}

.automotive-header .navbar-dropdown-account-wrapper:hover,
#header .navbar-dropdown-account-wrapper:hover {
  background: rgba(233, 77, 28, 0.2) !important;
  border-color: var(--automotive-secondary) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(233, 77, 28, 0.2) !important;
}

/* Dark Theme User Account */
[data-hs-appearance="dark"] .automotive-header .navbar-dropdown-account-wrapper,
[data-hs-appearance="dark"] #header .navbar-dropdown-account-wrapper,
.dark .automotive-header .navbar-dropdown-account-wrapper,
.dark #header .navbar-dropdown-account-wrapper {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

[data-hs-appearance="dark"] .automotive-header .navbar-dropdown-account-wrapper:hover,
[data-hs-appearance="dark"] #header .navbar-dropdown-account-wrapper:hover,
.dark .automotive-header .navbar-dropdown-account-wrapper:hover,
.dark #header .navbar-dropdown-account-wrapper:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Avatar Styling */
.automotive-header .avatar,
#header .avatar {
  border: 2px solid rgba(233, 77, 28, 0.3) !important;
  transition: all 0.3s ease !important;
}

.automotive-header .avatar:hover,
#header .avatar:hover {
  border-color: var(--automotive-secondary) !important;
  transform: scale(1.05) !important;
}

/* Dark Theme Avatar */
[data-hs-appearance="dark"] .automotive-header .avatar,
[data-hs-appearance="dark"] #header .avatar,
.dark .automotive-header .avatar,
.dark #header .avatar {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

[data-hs-appearance="dark"] .automotive-header .avatar:hover,
[data-hs-appearance="dark"] #header .avatar:hover,
.dark .automotive-header .avatar:hover,
.dark #header .avatar:hover {
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Card Styling in Dropdowns */
.automotive-header .card,
#header .card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.automotive-header .card-header,
#header .card-header {
  background: rgba(233, 77, 28, 0.05) !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.2) !important;
  border-radius: 0.75rem 0.75rem 0 0 !important;
}

.automotive-header .card-title,
#header .card-title {
  color: var(--automotive-primary) !important;
  font-weight: 600 !important;
}

/* Dark Theme Cards */
[data-hs-appearance="dark"] .automotive-header .card,
[data-hs-appearance="dark"] #header .card,
.dark .automotive-header .card,
.dark #header .card {
  background: rgba(26, 43, 71, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-hs-appearance="dark"] .automotive-header .card-header,
[data-hs-appearance="dark"] #header .card-header,
.dark .automotive-header .card-header,
.dark #header .card-header {
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-hs-appearance="dark"] .automotive-header .card-title,
[data-hs-appearance="dark"] #header .card-title,
.dark .automotive-header .card-title,
.dark #header .card-title {
  color: white !important;
}

/* Tab Navigation */
.automotive-header .nav-tabs,
#header .nav-tabs {
  border-bottom: 1px solid rgba(233, 77, 28, 0.2) !important;
}

.automotive-header .nav-tabs .nav-link,
#header .nav-tabs .nav-link {
  color: #6c757d !important;
  border: none !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
  transition: all 0.3s ease !important;
}

.automotive-header .nav-tabs .nav-link.active,
#header .nav-tabs .nav-link.active {
  background: var(--automotive-secondary) !important;
  color: white !important;
  border-bottom: 2px solid var(--automotive-secondary) !important;
}

.automotive-header .nav-tabs .nav-link:hover,
#header .nav-tabs .nav-link:hover {
  background: rgba(233, 77, 28, 0.1) !important;
  color: var(--automotive-secondary) !important;
}

/* Dark Theme Tabs */
[data-hs-appearance="dark"] .automotive-header .nav-tabs,
[data-hs-appearance="dark"] #header .nav-tabs,
.dark .automotive-header .nav-tabs,
.dark #header .nav-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-hs-appearance="dark"] .automotive-header .nav-tabs .nav-link,
[data-hs-appearance="dark"] #header .nav-tabs .nav-link,
.dark .automotive-header .nav-tabs .nav-link,
.dark #header .nav-tabs .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-hs-appearance="dark"] .automotive-header .nav-tabs .nav-link:hover,
[data-hs-appearance="dark"] #header .nav-tabs .nav-link:hover,
.dark .automotive-header .nav-tabs .nav-link:hover,
.dark #header .nav-tabs .nav-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

/* Icons Enhancement */
.automotive-header i,
#header i {
  transition: all 0.3s ease !important;
}

.automotive-header .btn:hover i,
#header .btn:hover i {
  transform: scale(1.1) !important;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .automotive-header,
  #header {
    padding: 0.5rem 1rem !important;
  }

  .automotive-header .navbar-brand,
  #header .navbar-brand {
    font-size: 1.1rem !important;
  }

  .automotive-header .btn,
  #header .btn {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.875rem !important;
  }

  .automotive-header .dropdown-menu,
  #header .dropdown-menu {
    width: 90vw !important;
    max-width: 320px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* Mobile dropdown item fixes */
  .automotive-header .dropdown-item,
  #header .dropdown-item {
    margin: 0.125rem 0.25rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
  }

  .automotive-header #searchDropdownMenu .dropdown-item,
  #header #searchDropdownMenu .dropdown-item {
    margin: 0.125rem 0.25rem !important;
    padding: 0.5rem 0.75rem !important;
    max-width: calc(100% - 0.5rem) !important;
  }

  .automotive-header #searchDropdownMenu .dropdown-item.text-center,
  #header #searchDropdownMenu .dropdown-item.text-center {
    margin: 0.5rem 0.25rem 0.25rem 0.25rem !important;
    width: calc(100% - 0.5rem) !important;
    max-width: calc(100% - 0.5rem) !important;
  }

  .automotive-header .navbar-input-group,
  #header .navbar-input-group {
    max-width: 200px !important;
  }

  /* Mobile search input padding fix */
  .automotive-header .input-group-merge .form-control,
  #header .input-group-merge .form-control {
    padding-left: 2.25rem !important;
    font-size: 0.875rem !important;
  }

  .automotive-header .input-group-prepend .input-group-text,
  #header .input-group-prepend .input-group-text {
    min-width: 2.25rem !important;
    padding: 0.5rem 0.5rem !important;
  }
}

@media (max-width: 576px) {
  .automotive-header .navbar-nav-wrap-content-start,
  #header .navbar-nav-wrap-content-start {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .automotive-header .navbar-nav,
  #header .navbar-nav {
    gap: 0.25rem !important;
  }

  .automotive-header .btn,
  #header .btn {
    padding: 0.25rem 0.375rem !important;
    font-size: 0.8rem !important;
  }
}

/* Focus States for Accessibility */
.automotive-header .btn:focus,
.automotive-header .dropdown-toggle:focus,
.automotive-header .form-control:focus,
.automotive-header .navbar-brand:focus,
#header .btn:focus,
#header .dropdown-toggle:focus,
#header .form-control:focus,
#header .navbar-brand:focus {
  outline: 2px solid var(--automotive-secondary) !important;
  outline-offset: 2px !important;
  border-radius: 0.5rem !important;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .automotive-header,
  #header {
    border-bottom-width: 3px !important;
  }

  .automotive-header .btn,
  .automotive-header .dropdown-menu,
  .automotive-header .navbar-input-group,
  #header .btn,
  #header .dropdown-menu,
  #header .navbar-input-group {
    border-width: 2px !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .automotive-header *,
  #header * {
    animation: none !important;
    transition: none !important;
  }

  .automotive-header .btn:hover,
  .automotive-header .dropdown-item:hover,
  .automotive-header .navbar-brand:hover,
  #header .btn:hover,
  #header .dropdown-item:hover,
  #header .navbar-brand:hover {
    transform: none !important;
  }
}

/* Loading States */
.automotive-header .btn.loading,
#header .btn.loading {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.automotive-header .btn.loading::after,
#header .btn.loading::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: automotive-gear-spin 1s linear infinite;
  margin-left: 0.5rem;
}

/* Enhanced Hover Effects */
.automotive-header .navbar-nav-wrap:hover,
#header .navbar-nav-wrap:hover {
  background: rgba(233, 77, 28, 0.02) !important;
}

/* Dark Theme Enhanced Hover */
[data-hs-appearance="dark"] .automotive-header .navbar-nav-wrap:hover,
[data-hs-appearance="dark"] #header .navbar-nav-wrap:hover,
.dark .automotive-header .navbar-nav-wrap:hover,
.dark #header .navbar-nav-wrap:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

/* ========================================
   AUTOMOTIVE DASHBOARD STYLES
   ======================================== */

/* Test Style - Should be immediately visible */
.automotive-dashboard {
  position: relative !important;
}

/* .automotive-dashboard::before {
  content: "Dashboard Styles Loaded" !important;
  position: fixed !important;
  top: 10px !important;
  right: 10px !important;
  background: #28a745 !important;
  color: white !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  z-index: 9999 !important;
  display: block !important;
} */

/* Dashboard Container */
.automotive-dashboard .content {
  background: #f8f9fa !important;
  min-height: 100vh !important;
}

/* Dark Theme Dashboard */
[data-hs-appearance="dark"] .automotive-dashboard .content,
.dark .automotive-dashboard .content {
  background: #1a1d29 !important;
}

/* ===== AUTOMOTIVE POS SYSTEM STYLES ===== */

/* POS System Container */
.automotive-pos-system {
  background: linear-gradient(135deg,
    var(--automotive-light) 0%,
    #e9ecef 50%,
    #dee2e6 100%);
  min-height: calc(100vh - 40px);
  padding: 25px;
  margin: 20px auto;
  max-width: calc(100vw - 40px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
}

/* Dark Theme POS Container */
[data-hs-appearance="dark"] .automotive-pos-system,
.dark .automotive-pos-system {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 50%,
    #34495e 100%);
}

/* POS Row - Equal Height Layout */
.automotive-pos-row {
  display: flex;
  align-items: stretch;
}

.automotive-pos-row > div {
  display: flex;
  flex-direction: column;
}

/* POS Cards - Equal Height */
.automotive-pos-card {
  height: calc(100vh - 130px);
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.automotive-pos-card .card-body {
  flex: 1;
  overflow-y: auto;
}

/* Product Panel */
.pos-product-panel {
  border: 1px solid rgba(233, 77, 28, 0.2);
  border-radius: 15px;
  box-shadow: var(--automotive-shadow);
  overflow: hidden;
  background: white;
}

/* Dark Theme Product Panel */
[data-hs-appearance="dark"] .pos-product-panel,
.dark .pos-product-panel {
  background: var(--automotive-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product Panel Header - Softer Background */
.automotive-product-header {
  background: linear-gradient(135deg,
    #f8f9fa 0%,
    #e9ecef 100%);
  border: none;
  border-bottom: 2px solid rgba(233, 77, 28, 0.2);
  padding: 15px 20px;
  color: #495057;
}

/* Dark Theme Product Header */
[data-hs-appearance="dark"] .automotive-product-header,
.dark .automotive-product-header {
  background: linear-gradient(135deg,
    rgba(26, 43, 71, 0.8) 0%,
    rgba(44, 62, 80, 0.8) 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: white;
}

/* Category Navigation */
.automotive-categories .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 600;
  padding: 10px 20px !important;
  transition: all 0.3s ease;
  border-radius: 0;
}

.automotive-categories .nav-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.automotive-categories .nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: 3px solid #ffd700;
}

/* Product Cards */
.product-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
}

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
}

/* Cart Section - Middle Panel */
.automotive-cart-section {
  border: 1px solid rgba(233, 77, 28, 0.2);
  border-radius: 15px;
  box-shadow: var(--automotive-shadow);
  background: white;
}

/* Dark Theme Cart Section */
[data-hs-appearance="dark"] .automotive-cart-section,
.dark .automotive-cart-section {
  background: var(--automotive-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cart Header - Softer Background */
.automotive-cart-header {
  background: linear-gradient(135deg,
    rgba(233, 77, 28, 0.1) 0%,
    rgba(255, 107, 53, 0.1) 100%);
  border: none;
  border-bottom: 2px solid rgba(233, 77, 28, 0.2);
  padding: 15px 20px;
  color: #495057;
}

/* Dark Theme Cart Header */
[data-hs-appearance="dark"] .automotive-cart-header,
.dark .automotive-cart-header {
  background: linear-gradient(135deg,
    rgba(233, 77, 28, 0.2) 0%,
    rgba(255, 107, 53, 0.2) 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: white;
}

/* Summary Section - Equal Height */
.automotive-summary-sticky {
  border: 1px solid rgba(233, 77, 28, 0.2);
  border-radius: 15px;
  box-shadow: var(--automotive-shadow);
  background: white;
}

/* Dark Theme Summary Section */
[data-hs-appearance="dark"] .automotive-summary-sticky,
.dark .automotive-summary-sticky {
  background: var(--automotive-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Summary Header - Softer Background */
.automotive-summary-header {
  background: linear-gradient(135deg,
    rgba(40, 167, 69, 0.1) 0%,
    rgba(32, 201, 151, 0.1) 100%);
  border: none;
  border-bottom: 2px solid rgba(40, 167, 69, 0.2);
  padding: 15px 20px;
  color: #495057;
}

/* Dark Theme Summary Header */
[data-hs-appearance="dark"] .automotive-summary-header,
.dark .automotive-summary-header {
  background: linear-gradient(135deg,
    rgba(40, 167, 69, 0.2) 0%,
    rgba(32, 201, 151, 0.2) 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: white;
}

/* Summary Body */
.automotive-summary-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 400px;
}

/* Dark Theme Summary Body */
[data-hs-appearance="dark"] .automotive-summary-body,
.dark .automotive-summary-body {
  color: white;
}

/* Cart Items */
.cart-item {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(233, 77, 28, 0.1);
}

.cart-item:hover {
  background: linear-gradient(135deg,
    rgba(233, 77, 28, 0.05) 0%,
    rgba(255, 107, 53, 0.05) 100%);
  transform: translateX(2px);
}

/* Dark Theme Cart Items */
[data-hs-appearance="dark"] .cart-item,
.dark .cart-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-hs-appearance="dark"] .cart-item:hover,
.dark .cart-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.cart-item-image:hover {
  transform: scale(1.05);
  border-color: var(--automotive-primary);
}

/* Enhanced Cart Item Styling */
.cart-item {
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 8px;
}

.cart-item:hover {
  background: linear-gradient(135deg,
    rgba(233, 77, 28, 0.03) 0%,
    rgba(255, 107, 53, 0.03) 100%);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(233, 77, 28, 0.1);
}

/* Line Total Display */
.line-total-display {
  border: 1px solid rgba(233, 77, 28, 0.2);
  transition: all 0.3s ease;
}

.line-total-display:hover {
  border-color: var(--automotive-primary);
  background: rgba(233, 77, 28, 0.05) !important;
}

/* Enhanced Summary Rows */
.summary-row {
  transition: all 0.3s ease;
}

.summary-row:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(233, 77, 28, 0.1);
}

/* Currency Input Styling */
.input-group-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Enhanced Remove Button Styling */
.cart-item-compact .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cart-item-compact .btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.cart-item-compact .btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

.cart-item-compact .btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cart-item-compact .btn-danger:hover::before {
  left: 100%;
}

/* Dark theme remove button */
[data-hs-appearance="dark"] .cart-item-compact .btn-danger,
.dark .cart-item-compact .btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

[data-hs-appearance="dark"] .cart-item-compact .btn-danger:hover,
.dark .cart-item-compact .btn-danger:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

/* Compact Cart Item Layout */
.cart-item-compact {
  transition: all 0.2s ease;
  border-radius: 6px;
  margin-bottom: 4px;
  overflow: hidden;
}

.cart-item-compact:hover {
  background: rgba(233, 77, 28, 0.02);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(233, 77, 28, 0.08);
}

/* Compact Cart Image */
.cart-item-image-small {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.cart-item-image-small:hover {
  transform: scale(1.05);
  border-color: var(--automotive-primary);
}

/* Compact Controls Section */
.cart-controls-compact {
  background: rgba(248, 249, 250, 0.5);
  border-top: 1px solid rgba(233, 77, 28, 0.1);
}

.cart-controls-compact:hover {
  background: rgba(233, 77, 28, 0.02);
}

/* Compact Line Total */
.line-total-compact {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(25, 135, 84, 0.2);
}

/* Responsive Input Sizing */
.cart-controls-compact .form-control-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.cart-controls-compact .input-group-text {
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
}

.cart-controls-compact .btn-sm {
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
}

/* Prevent horizontal overflow */
.cart-items {
  overflow-x: hidden !important;
  word-wrap: break-word;
}

.cart-item-compact .row {
  margin-left: 0;
  margin-right: 0;
}

.cart-item-compact .col-2,
.cart-item-compact .col-3,
.cart-item-compact .col-4 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

/* Text truncation for long product names */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dark Theme for Compact Cart */
[data-hs-appearance="dark"] .cart-item-compact,
.dark .cart-item-compact {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-hs-appearance="dark"] .cart-controls-compact,
.dark .cart-controls-compact {
  background: rgba(33, 37, 41, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-hs-appearance="dark"] .cart-controls-compact:hover,
.dark .cart-controls-compact:hover {
  background: rgba(233, 77, 28, 0.05);
}

/* Summary Footer - Action Buttons Area */
.automotive-summary-footer {
  background: linear-gradient(135deg,
    rgba(248, 249, 250, 0.95) 0%,
    rgba(233, 236, 239, 0.95) 100%);
  border-top: 2px solid rgba(233, 77, 28, 0.2);
  padding: 15px 20px;
  border-radius: 0 0 15px 15px;
}

/* Dark Theme Summary Footer */
[data-hs-appearance="dark"] .automotive-summary-footer,
.dark .automotive-summary-footer {
  background: linear-gradient(135deg,
    rgba(26, 43, 71, 0.8) 0%,
    rgba(44, 62, 80, 0.8) 100%);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.summary-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Action Buttons */
.action-buttons .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.action-buttons .btn-primary {
  background: linear-gradient(135deg,
    var(--automotive-secondary) 0%,
    #ff6b35 100%);
  border: none;
  color: white;
}

.action-buttons .btn-primary:hover {
  background: linear-gradient(135deg,
    #ff6b35 0%,
    var(--automotive-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--automotive-shadow);
}

.action-buttons .btn-success {
  background: linear-gradient(135deg,
    var(--automotive-success) 0%,
    #20c997 100%);
  border: none;
  color: white;
}

.action-buttons .btn-success:hover {
  background: linear-gradient(135deg,
    #20c997 0%,
    var(--automotive-success) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.action-buttons .btn-info {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 100%);
  border: none;
  color: white;
}

.action-buttons .btn-info:hover {
  background: linear-gradient(135deg,
    #2c3e50 0%,
    var(--automotive-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 43, 71, 0.3);
}

/* Loading States */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Responsive Design for Three-Section Layout */
@media (max-width: 1200px) {
  /* Stack sections vertically on smaller screens */
  .automotive-pos-row {
    flex-direction: column;
  }

  .automotive-pos-card {
    height: auto;
    min-height: 400px;
    margin-bottom: 1rem;
  }

  .automotive-pos-row > div {
    flex: none;
  }
}

@media (max-width: 768px) {
  .automotive-pos-system {
    padding: 15px;
    margin: 10px auto;
    max-width: calc(100vw - 20px);
    min-height: calc(100vh - 20px);
  }

  .automotive-product-header,
  .automotive-cart-header,
  .automotive-summary-header {
    padding: 10px 15px;
  }

  .product-image-container {
    height: 120px;
  }

  .automotive-categories .nav-link {
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .automotive-summary-body {
    padding: 15px;
  }

  .automotive-summary-footer {
    padding: 10px 15px;
  }
}

/* Automotive Scan Icon */
.automotive-scan-icon {
  background: linear-gradient(135deg,
    var(--automotive-secondary) 0%,
    #ff6b35 100%) !important;
  border: 2px solid rgba(233, 77, 28, 0.3) !important;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  color: white !important;
}

/* Dark Theme Scan Icon */
[data-hs-appearance="dark"] .automotive-scan-icon,
.dark .automotive-scan-icon {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Automotive Scan Input */
.automotive-scan-input {
  border: 2px solid rgba(233, 77, 28, 0.3) !important;
  border-left: none !important;
  border-radius: 0 8px 8px 0 !important;
  font-family: 'Courier New', monospace !important;
  letter-spacing: 1px !important;
}

.automotive-scan-input:focus {
  border-color: var(--automotive-secondary) !important;
  box-shadow: 0 0 0 0.2rem rgba(233, 77, 28, 0.25) !important;
  background: white !important;
}

/* Dark Theme Scan Input */
[data-hs-appearance="dark"] .automotive-scan-input,
.dark .automotive-scan-input {
  background: rgba(26, 43, 71, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-scan-input:focus,
.dark .automotive-scan-input:focus {
  background: rgba(26, 43, 71, 0.9) !important;
  border-color: var(--automotive-secondary) !important;
}

/* Barcode Scanner Feedback */
.form-control.is-invalid {
  border-color: #dc3545;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Automotive Product Cards */
.product-card {
  border: 1px solid rgba(233, 77, 28, 0.2);
  transition: all 0.3s ease;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--automotive-secondary);
  box-shadow: var(--automotive-shadow);
  transform: translateY(-2px);
}

/* Dark Theme Product Cards */
[data-hs-appearance="dark"] .product-card,
.dark .product-card {
  background: rgba(26, 43, 71, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

[data-hs-appearance="dark"] .product-card:hover,
.dark .product-card:hover {
  border-color: var(--automotive-secondary);
}

/* Automotive Category Navigation - Bottom Border Style */
.automotive-categories {
  border-bottom: 1px solid rgba(233, 77, 28, 0.2);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  margin: 8px;
}

.automotive-categories .nav {
  flex-wrap: nowrap;
  min-width: max-content;
}

.automotive-categories .nav-link {
  border: none;
  background: transparent;
  color: #6c757d;
  margin: 0;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 8px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  text-align: center;
}

.automotive-categories .nav-link:hover {
  background: rgba(233, 77, 28, 0.05);
  color: var(--automotive-secondary);
  border-bottom-color: rgba(233, 77, 28, 0.3);
}

.automotive-categories .nav-link.active {
  background: rgba(233, 77, 28, 0.05);
  color: var(--automotive-secondary);
  border-bottom-color: var(--automotive-secondary);
  font-weight: 600;
}

/* Dark Theme Category Navigation */
[data-hs-appearance="dark"] .automotive-categories,
.dark .automotive-categories {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-hs-appearance="dark"] .automotive-categories .nav-link,
.dark .automotive-categories .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

[data-hs-appearance="dark"] .automotive-categories .nav-link:hover,
.dark .automotive-categories .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

[data-hs-appearance="dark"] .automotive-categories .nav-link.active,
.dark .automotive-categories .nav-link.active {
  background: rgba(233, 77, 28, 0.1);
  color: var(--automotive-secondary);
  border-bottom-color: var(--automotive-secondary);
}

/* Touch-friendly buttons for tablets */
@media (pointer: coarse) {
  .product-card {
    min-height: 200px;
  }

  .btn {
    min-height: 44px;
  }

  .form-control {
    min-height: 44px;
  }
}

/* Print Styles */
@media print {
  .automotive-pos-system {
    background: white !important;
  }

  .pos-product-panel,
  .pos-header {
    display: none !important;
  }
}

/* Page Header Styling */
/* .automotive-dashboard .page-header {
  background: white !important;
  border-radius: 0.75rem !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #e9ecef !important;
  position: relative !important;
} */

/* .automotive-dashboard .page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #e94d1c;
  border-radius: 0.75rem 0.75rem 0 0;
} */

/* Dark Theme Page Header */
[data-hs-appearance="dark"] .automotive-dashboard .page-header,
.dark .automotive-dashboard .page-header {
  background: #2c3e50 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Page Header Title */
.automotive-dashboard .page-header-title {
  color: #2c3e50 !important;
  font-weight: 600 !important;
}

.automotive-dashboard .page-header-text {
  color: #6c757d !important;
  font-weight: 400 !important;
}

/* Dark Theme Page Header Text */
[data-hs-appearance="dark"] .automotive-dashboard .page-header-title,
.dark .automotive-dashboard .page-header-title {
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .page-header-text,
.dark .automotive-dashboard .page-header-text {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Branch Badge */
.automotive-dashboard .badge.bg-soft-primary {
  background: #f8f9fa !important;
  color: #6c757d !important;
  border: 1px solid #dee2e6 !important;
  font-weight: 500 !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: 0.375rem !important;
}

/* Dark Theme Badge */
[data-hs-appearance="dark"] .automotive-dashboard .badge.bg-soft-primary,
.dark .automotive-dashboard .badge.bg-soft-primary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}



/* Cards - FORCE OVERRIDE */
.automotive-dashboard .card,
.content.automotive-dashboard .card,
div.automotive-dashboard .card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(233, 77, 28, 0.1) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(233, 77, 28, 0.08) !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
}

.automotive-dashboard .card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(233, 77, 28, 0.12) !important;
  border-color: rgba(233, 77, 28, 0.2) !important;
}

/* Dark Theme Cards */
[data-hs-appearance="dark"] .automotive-dashboard .card,
.dark .automotive-dashboard .card {
  background: rgba(44, 62, 80, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(255, 255, 255, 0.05) !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .card:hover,
.dark .automotive-dashboard .card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Card Headers - FORCE OVERRIDE */
.automotive-dashboard .card-header,
.content.automotive-dashboard .card-header,
div.automotive-dashboard .card-header {
  background: linear-gradient(135deg,
    #f8f9fa 0%,
    #e9ecef 50%,
    #dee2e6 100%) !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.15) !important;
  border-radius: 0.75rem 0.75rem 0 0 !important;
  padding: 1rem 1.25rem !important;
  backdrop-filter: blur(5px) !important;
}

.automotive-dashboard .card-title {
  color: #495057 !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Dark Theme Card Headers */
[data-hs-appearance="dark"] .automotive-dashboard .card-header,
.dark .automotive-dashboard .card-header {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 50%,
    #34495e 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .card-title,
.dark .automotive-dashboard .card-title {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* KPI Cards Styling */
.automotive-dashboard .card-body {
  padding: 1.5rem !important;
}

.automotive-dashboard .card-subtitle {
  color: #6c757d !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 0.75rem !important;
}

/* Dark Theme Card Subtitle */
[data-hs-appearance="dark"] .automotive-dashboard .card-subtitle,
.dark .automotive-dashboard .card-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Avatar Styling */
.automotive-dashboard .avatar {
  width: 2.75rem !important;
  height: 2.75rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.automotive-dashboard .avatar-soft-success {
  background: rgba(40, 167, 69, 0.1) !important;
  color: #28a745 !important;
}

.automotive-dashboard .avatar-soft-info {
  background: rgba(23, 162, 184, 0.1) !important;
  color: #17a2b8 !important;
}

.automotive-dashboard .avatar-soft-warning {
  background: rgba(255, 193, 7, 0.1) !important;
  color: #ffc107 !important;
}

.automotive-dashboard .avatar-soft-danger {
  background: rgba(220, 53, 69, 0.1) !important;
  color: #dc3545 !important;
}

.automotive-dashboard .avatar-soft-primary {
  background: rgba(108, 117, 125, 0.1) !important;
  color: #6c757d !important;
}

.automotive-dashboard .avatar-soft-secondary {
  background: rgba(108, 117, 125, 0.1) !important;
  color: #6c757d !important;
}

/* Dark Theme Avatars */
[data-hs-appearance="dark"] .automotive-dashboard .avatar-soft-success,
.dark .automotive-dashboard .avatar-soft-success {
  background: rgba(40, 167, 69, 0.2) !important;
  color: #20c997 !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .avatar-soft-info,
.dark .automotive-dashboard .avatar-soft-info {
  background: rgba(23, 162, 184, 0.2) !important;
  color: #5bc0de !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .avatar-soft-warning,
.dark .automotive-dashboard .avatar-soft-warning {
  background: rgba(255, 193, 7, 0.2) !important;
  color: #ffd43b !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .avatar-soft-danger,
.dark .automotive-dashboard .avatar-soft-danger {
  background: rgba(220, 53, 69, 0.2) !important;
  color: #ff6b6b !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .avatar-soft-primary,
.dark .automotive-dashboard .avatar-soft-primary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ff6b35 !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .avatar-soft-secondary,
.dark .automotive-dashboard .avatar-soft-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

/* Form Controls */
/* .automotive-dashboard .form-select, */
.automotive-dashboard .form-control {
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.75rem !important;
  transition: all 0.2s ease !important;
  background: white !important;
  font-size: 0.875rem !important;
}

.automotive-dashboard .form-select:focus,
.automotive-dashboard .form-control:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
  background: white !important;
  outline: none !important;
}

/* Dark Theme Form Controls */
[data-hs-appearance="dark"] .automotive-dashboard .form-select,
[data-hs-appearance="dark"] .automotive-dashboard .form-control,
.dark .automotive-dashboard .form-select,
.dark .automotive-dashboard .form-control {
  background: #2c3e50 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .form-select:focus,
[data-hs-appearance="dark"] .automotive-dashboard .form-control:focus,
.dark .automotive-dashboard .form-select:focus,
.dark .automotive-dashboard .form-control:focus {
  background: #2c3e50 !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
}

/* Form Labels */
.automotive-dashboard .form-label {
  font-weight: 500 !important;
  color: #495057 !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.875rem !important;
}

/* Dark Theme Form Labels */
[data-hs-appearance="dark"] .automotive-dashboard .form-label,
.dark .automotive-dashboard .form-label {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Uniform Button Styling - High Specificity */
.automotive-dashboard .btn,
.automotive-dashboard a.btn,
.automotive-dashboard button.btn,
.automotive-dashboard input.btn {
  border-radius: 0.375rem !important;
  padding: 0.5rem 1rem !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
}

.automotive-dashboard .btn:hover,
.automotive-dashboard a.btn:hover,
.automotive-dashboard button.btn:hover,
.automotive-dashboard input.btn:hover {
  transform: translateY(-1px) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.automotive-dashboard .btn:focus,
.automotive-dashboard a.btn:focus,
.automotive-dashboard button.btn:focus,
.automotive-dashboard input.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
  outline: none !important;
}

/* Primary Button */
.automotive-dashboard .btn-primary,
.automotive-dashboard a.btn-primary,
.automotive-dashboard button.btn-primary {
  background: #007bff !important;
  border-color: #007bff !important;
  color: white !important;
}

.automotive-dashboard .btn-primary:hover,
.automotive-dashboard a.btn-primary:hover,
.automotive-dashboard button.btn-primary:hover {
  background: #0056b3 !important;
  border-color: #0056b3 !important;
  color: white !important;
}

/* Success Button */
.automotive-dashboard .btn-success,
.automotive-dashboard a.btn-success,
.automotive-dashboard button.btn-success {
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: white !important;
}

.automotive-dashboard .btn-success:hover,
.automotive-dashboard a.btn-success:hover,
.automotive-dashboard button.btn-success:hover {
  background: #218838 !important;
  border-color: #218838 !important;
  color: white !important;
}

/* Info Button */
.automotive-dashboard .btn-info,
.automotive-dashboard a.btn-info,
.automotive-dashboard button.btn-info {
  background: #17a2b8 !important;
  border-color: #17a2b8 !important;
  color: white !important;
}

.automotive-dashboard .btn-info:hover,
.automotive-dashboard a.btn-info:hover,
.automotive-dashboard button.btn-info:hover {
  background: #138496 !important;
  border-color: #138496 !important;
  color: white !important;
}

/* Warning Button */
.automotive-dashboard .btn-warning {
  background: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #212529 !important;
}

.automotive-dashboard .btn-warning:hover {
  background: #e0a800 !important;
  border-color: #e0a800 !important;
  color: #212529 !important;
}

/* Danger Button */
.automotive-dashboard .btn-danger {
  background: #dc3545 !important;
  border-color: #dc3545 !important;
  color: white !important;
}

.automotive-dashboard .btn-danger:hover {
  background: #c82333 !important;
  border-color: #c82333 !important;
  color: white !important;
}

/* Secondary Button */
.automotive-dashboard .btn-secondary {
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
}

.automotive-dashboard .btn-secondary:hover {
  background: #5a6268 !important;
  border-color: #5a6268 !important;
  color: white !important;
}

/* Outline Buttons */
.automotive-dashboard .btn-outline-primary,
.automotive-dashboard a.btn-outline-primary,
.automotive-dashboard button.btn-outline-primary {
  background: transparent !important;
  /* border-color: #007bff !important; */
  color: #495057 !important;
  border: 2px solid rgba(233, 77, 28, 0.2) !important;
}

.automotive-dashboard .btn-outline-primary:hover,
.automotive-dashboard a.btn-outline-primary:hover,
.automotive-dashboard button.btn-outline-primary:hover {
  /* background: #007bff !important;
  border-color: #007bff !important; */
  background: rgba(233, 77, 28, 0.2) !important;
  border-color: #c82333 !important;
  /* color: white !important; */
}

.automotive-dashboard .btn-outline-success {
  background: transparent !important;
  border-color: #28a745 !important;
  color: #28a745 !important;
}

.automotive-dashboard .btn-outline-success:hover {
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: white !important;
}

.automotive-dashboard .btn-outline-info {
  background: transparent !important;
  border-color: #17a2b8 !important;
  color: #17a2b8 !important;
}

.automotive-dashboard .btn-outline-info:hover {
  background: #17a2b8 !important;
  border-color: #17a2b8 !important;
  color: white !important;
}

.automotive-dashboard .btn-outline-warning {
  background: transparent !important;
  border-color: #ffc107 !important;
  color: #ffc107 !important;
}

.automotive-dashboard .btn-outline-warning:hover {
  background: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #212529 !important;
}

.automotive-dashboard .btn-outline-danger {
  background: transparent !important;
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.automotive-dashboard .btn-outline-danger:hover {
  background: #dc3545 !important;
  border-color: #dc3545 !important;
  color: white !important;
}

.automotive-dashboard .btn-outline-secondary {
  background: transparent !important;
  border-color: #6c757d !important;
  color: #6c757d !important;
}

.automotive-dashboard .btn-outline-secondary:hover {
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
}

/* Button Sizes */
.automotive-dashboard .btn-sm {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
}

.automotive-dashboard .btn-lg {
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
}

/* Button Icons */
.automotive-dashboard .btn i {
  font-size: 0.875rem !important;
}

.automotive-dashboard .btn-sm i {
  font-size: 0.75rem !important;
}

.automotive-dashboard .btn-lg i {
  font-size: 1rem !important;
}

/* FORCE BUTTON STYLES - MAXIMUM SPECIFICITY */
.automotive-dashboard .content .btn,
.automotive-dashboard .content a.btn,
.automotive-dashboard .content button.btn {
  border-radius: 0.375rem !important;
  padding: 0.5rem 1rem !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  border: 1px solid !important;
  box-shadow: none !important;
}

.automotive-dashboard .content .btn-success,
.automotive-dashboard .content a.btn-success {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #ffffff !important;
}

.automotive-dashboard .content .btn-info,
.automotive-dashboard .content a.btn-info {
  background-color: #17a2b8 !important;
  border-color: #17a2b8 !important;
  color: #ffffff !important;
}

.automotive-dashboard .content .btn-primary,
.automotive-dashboard .content button.btn-primary {
  background-color: #007bff !important;
  border-color: #007bff !important;
  color: #ffffff !important;
}

.automotive-dashboard .content .btn-outline-primary,
.automotive-dashboard .content button.btn-outline-primary {
  background-color: transparent !important;
  border-color: #007bff !important;
  color: #007bff !important;
}

.automotive-dashboard .content .btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Quick Actions Cards */
.automotive-dashboard .card-hover-shadow {
  transition: all 0.3s ease !important;
  border: 1px solid rgba(233, 77, 28, 0.1) !important;
  border-radius: 0.75rem !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(233, 77, 28, 0.08) !important;
  backdrop-filter: blur(10px) !important;
}

.automotive-dashboard .card-hover-shadow:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(233, 77, 28, 0.12) !important;
  border-color: rgba(233, 77, 28, 0.2) !important;
}

/* Dark Theme Quick Actions */
[data-hs-appearance="dark"] .automotive-dashboard .card-hover-shadow,
.dark .automotive-dashboard .card-hover-shadow {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(44, 62, 80, 0.95) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(255, 255, 255, 0.05) !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .card-hover-shadow:hover,
.dark .automotive-dashboard .card-hover-shadow:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}



/* Chart Container */
.automotive-dashboard .chartjs-custom {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Text Colors */
.automotive-dashboard .text-success {
  color: #28a745 !important;
}

.automotive-dashboard .text-info {
  color: #17a2b8 !important;
}

.automotive-dashboard .text-warning {
  color: #ffc107 !important;
}

.automotive-dashboard .text-danger {
  color: #dc3545 !important;
}

.automotive-dashboard .text-primary {
  color: #007bff !important;
}

/* Dark Theme Text Colors */
[data-hs-appearance="dark"] .automotive-dashboard .text-success,
.dark .automotive-dashboard .text-success {
  color: #20c997 !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .text-info,
.dark .automotive-dashboard .text-info {
  color: #5bc0de !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .text-warning,
.dark .automotive-dashboard .text-warning {
  color: #ffd43b !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .text-danger,
.dark .automotive-dashboard .text-danger {
  color: #ff6b6b !important;
}

[data-hs-appearance="dark"] .automotive-dashboard .text-primary,
.dark .automotive-dashboard .text-primary {
  color: #5bc0de !important;
}

/* Section Headers */
.automotive-dashboard h5 {
  color: #495057 !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
}

/* Dark Theme Section Headers */
[data-hs-appearance="dark"] .automotive-dashboard h5,
.dark .automotive-dashboard h5 {
  color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .automotive-dashboard .page-header {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .automotive-dashboard .card-body {
    padding: 1rem !important;
  }

  .automotive-dashboard .avatar {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .automotive-dashboard .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
  }

  .automotive-dashboard .card-title {
    font-size: 1.1rem !important;
  }

  .automotive-dashboard h5 {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 576px) {
  .automotive-dashboard .page-header {
    padding: 1rem !important;
  }

  .automotive-dashboard .card-body {
    padding: 0.75rem !important;
  }

  .automotive-dashboard .d-flex.gap-2 {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .automotive-dashboard .btn {
    width: 100% !important;
  }
}

/* Loading States */
.automotive-dashboard .card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.automotive-dashboard .card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(233, 77, 28, 0.3);
  border-top: 3px solid var(--automotive-secondary);
  border-radius: 50%;
  animation: automotive-gear-spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* ========================================
   AUTOMOTIVE CARD HEADER STYLES
   ======================================== */

/* Automotive Card Headers - Header Style */
.automotive-card-header {
  background: linear-gradient(135deg,
    #f8f9fa 0%,
    #e9ecef 50%,
    #dee2e6 100%) !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.15) !important;
  border-radius: 0.75rem 0.75rem 0 0 !important;
  padding: 1rem 1.25rem !important;
  position: relative !important;
  backdrop-filter: blur(5px) !important;
}

.automotive-card-title {
  color: #495057 !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Dark Theme Card Headers */
[data-hs-appearance="dark"] .automotive-card-header,
.dark .automotive-card-header {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 50%,
    #34495e 100%) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

[data-hs-appearance="dark"] .automotive-card-title,
.dark .automotive-card-title {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   AUTOMOTIVE FORM ELEMENTS
   ======================================== */

/* Form Labels */
.automotive-form-label {
  color: #495057 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  margin-bottom: 0.5rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

[data-hs-appearance="dark"] .automotive-form-label,
.dark .automotive-form-label {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Select Wrapper */
.automotive-select-wrapper {
  position: relative !important;
}

.automotive-select-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(233, 77, 28, 0.05) 0%, rgba(233, 77, 28, 0.02) 100%);
  border-radius: 0.375rem;
  pointer-events: none;
  z-index: 0;
}

/* .automotive-dashboard .btn-outline-primary, .automotive-dashboard a.btn-outline-primary, .automotive-dashboard button.btn-outline-primary
=============== */
/* Select Elements */
.automotive-select {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 2px solid rgba(233, 77, 28, 0.2) !important;
  /* border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-weight: 500 !important; */
  color: #495057 !important;
  transition: all 0.3s ease !important;
  /* position: relative !important;
  z-index: 1 !important; */
}

.automotive-select:focus {
  border-color: var(--automotive-secondary) !important;
  box-shadow: 0 0 0 0.2rem rgba(233, 77, 28, 0.15) !important;
  background: white !important;
}

[data-hs-appearance="dark"] .automotive-select,
.dark .automotive-select {
  background: rgba(44, 62, 80, 0.98) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-select:focus,
.dark .automotive-select:focus {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1) !important;
  background: rgba(44, 62, 80, 1) !important;
}

/* Filter Button */
.automotive-filter-btn {
  background: rgba(233, 77, 28, 0.1) !important;
  border: 2px solid rgba(233, 77, 28, 0.3) !important;
  color: var(--automotive-secondary) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.automotive-filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.automotive-filter-btn:hover {
  background: rgba(233, 77, 28, 0.2) !important;
  border-color: var(--automotive-secondary) !important;
  color: var(--automotive-secondary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(233, 77, 28, 0.2) !important;
}

.automotive-filter-btn:hover::before {
  left: 100%;
}

/* Apply Button */
.automotive-apply-btn {
  background: linear-gradient(135deg, var(--automotive-secondary) 0%, #ff6b35 100%) !important;
  border: 2px solid var(--automotive-secondary) !important;
  color: white !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.automotive-apply-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.automotive-apply-btn:hover {
  background: linear-gradient(135deg, #d63916 0%, #e94d1c 100%) !important;
  border-color: #d63916 !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(233, 77, 28, 0.3) !important;
}

.automotive-apply-btn:hover::before {
  left: 100%;
}

.automotive-apply-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(233, 77, 28, 0.2) !important;
}

/* Dark Theme Buttons */
[data-hs-appearance="dark"] .automotive-filter-btn,
.dark .automotive-filter-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-filter-btn:hover,
.dark .automotive-filter-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}

/* ========================================
   FINAL OVERRIDE - MAXIMUM SPECIFICITY
   ======================================== */

/* Force Card Styling - Ultimate Override */
body .automotive-dashboard .card,
html body .automotive-dashboard .card,
html body div.automotive-dashboard .card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(233, 77, 28, 0.1) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(233, 77, 28, 0.08) !important;
  transition: all 0.3s ease !important;
}

body .automotive-dashboard .card:hover,
html body .automotive-dashboard .card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(233, 77, 28, 0.12) !important;
  border-color: rgba(233, 77, 28, 0.2) !important;
}

/* ========================================
   AUTOMOTIVE INVOICE STYLES
   ======================================== */

/* Invoice Container */
.automotive-invoice {
  background: #f8f9fa !important;
  min-height: 100vh !important;
}

/* Dark Theme Invoice */
[data-hs-appearance="dark"] .automotive-invoice,
.dark .automotive-invoice {
  background: #1a1d29 !important;
}

/* Invoice Page Header */
.automotive-invoice .page-header {
  background: linear-gradient(135deg,
    #f8f9fa 0%,
    #e9ecef 50%,
    #dee2e6 100%) !important;
  border-bottom: 2px solid rgba(233, 77, 28, 0.2) !important;
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(10px) !important;
}

/* Dark Theme Page Header */
[data-hs-appearance="dark"] .automotive-invoice .page-header,
.dark .automotive-invoice .page-header {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 50%,
    #34495e 100%) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

/* Invoice Page Title */
.automotive-invoice .page-header-title {
  color: #495057 !important;
  font-weight: 700 !important;
  font-size: 2rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

/* Dark Theme Page Title */
[data-hs-appearance="dark"] .automotive-invoice .page-header-title,
.dark .automotive-invoice .page-header-title {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Invoice Action Buttons */
.automotive-invoice .btn {
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.automotive-invoice .btn-primary {
  background: linear-gradient(135deg, var(--automotive-secondary), #ff6b35) !important;
  border: none !important;
  color: white !important;
}

.automotive-invoice .btn-primary:hover {
  background: linear-gradient(135deg, #ff6b35, var(--automotive-secondary)) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(233, 77, 28, 0.3) !important;
}

/* Invoice Main Card */
.automotive-invoice .card-lg {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(233, 77, 28, 0.1) !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(233, 77, 28, 0.1) !important;
  backdrop-filter: blur(15px) !important;
  overflow: hidden !important;
}

/* Dark Theme Invoice Card */
[data-hs-appearance="dark"] .automotive-invoice .card-lg,
.dark .automotive-invoice .card-lg {
  background: rgba(26, 43, 71, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(233, 77, 28, 0.2) !important;
}

/* Invoice Header Section */
.automotive-invoice .invoice .row:first-child {
  background: linear-gradient(135deg,
    rgba(248, 249, 250, 0.8) 0%,
    rgba(233, 236, 239, 0.8) 100%) !important;
  padding: 2rem !important;
  margin: -1.5rem -1.5rem 2rem -1.5rem !important;
  border-bottom: 2px solid rgba(233, 77, 28, 0.1) !important;
}

/* Dark Theme Invoice Header */
[data-hs-appearance="dark"] .automotive-invoice .invoice .row:first-child,
.dark .automotive-invoice .invoice .row:first-child {
  background: linear-gradient(135deg,
    rgba(26, 43, 71, 0.8) 0%,
    rgba(44, 62, 80, 0.8) 100%) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

/* Business Name Styling */
.automotive-invoice .text-primary {
  color: var(--automotive-primary) !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(26, 43, 71, 0.1) !important;
}

/* Invoice Number Styling */
.automotive-invoice h2 {
  color: var(--automotive-secondary) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  text-shadow: 0 1px 3px rgba(233, 77, 28, 0.2) !important;
}

/* Invoice Table Styling */
.automotive-invoice .table {
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.automotive-invoice .table thead {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 100%) !important;
}

.automotive-invoice .table thead th {
  color: white !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 1rem !important;
  border: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.automotive-invoice .table tbody tr {
  transition: all 0.3s ease !important;
}

.automotive-invoice .table tbody tr:hover {
  background: rgba(233, 77, 28, 0.05) !important;
  transform: translateX(3px) !important;
}

.automotive-invoice .table tbody td,
.automotive-invoice .table tbody th {
  padding: 1rem !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.1) !important;
  vertical-align: middle !important;
}

/* Dark Theme Table */
[data-hs-appearance="dark"] .automotive-invoice .table tbody tr:hover,
.dark .automotive-invoice .table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

[data-hs-appearance="dark"] .automotive-invoice .table tbody td,
[data-hs-appearance="dark"] .automotive-invoice .table tbody th,
.dark .automotive-invoice .table tbody td,
.dark .automotive-invoice .table tbody th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Invoice Summary Section */
.automotive-invoice .row.justify-content-md-end {
  background: rgba(248, 249, 250, 0.5) !important;
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  margin: 2rem 0 !important;
  border: 1px solid rgba(233, 77, 28, 0.1) !important;
}

/* Dark Theme Summary */
[data-hs-appearance="dark"] .automotive-invoice .row.justify-content-md-end,
.dark .automotive-invoice .row.justify-content-md-end {
  background: rgba(26, 43, 71, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Summary Labels and Values */
.automotive-invoice dl dt {
  color: #495057 !important;
  font-weight: 600 !important;
}

.automotive-invoice dl dd {
  color: var(--automotive-primary) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

/* Dark Theme Summary Text */
[data-hs-appearance="dark"] .automotive-invoice dl dt,
.dark .automotive-invoice dl dt {
  color: rgba(255, 255, 255, 0.8) !important;
}

[data-hs-appearance="dark"] .automotive-invoice dl dd,
.dark .automotive-invoice dl dd {
  color: white !important;
}

/* Thank You Section */
.automotive-invoice h3 {
  color: var(--automotive-secondary) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(233, 77, 28, 0.2) !important;
}

/* Sidebar Action Panel */
.automotive-invoice .col-lg-4 .card,
.automotive-invoice .col-lg-4 .table {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(233, 77, 28, 0.1) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Dark Theme Sidebar */
[data-hs-appearance="dark"] .automotive-invoice .col-lg-4 .card,
[data-hs-appearance="dark"] .automotive-invoice .col-lg-4 .table,
.dark .automotive-invoice .col-lg-4 .card,
.dark .automotive-invoice .col-lg-4 .table {
  background: rgba(26, 43, 71, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Sidebar Buttons */
.automotive-invoice .btn-soft-primary {
  background: rgba(233, 77, 28, 0.1) !important;
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  color: var(--automotive-secondary) !important;
  font-weight: 600 !important;
}

.automotive-invoice .btn-soft-primary:hover {
  background: var(--automotive-secondary) !important;
  border-color: var(--automotive-secondary) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(233, 77, 28, 0.3) !important;
}

.automotive-invoice .btn-soft-danger {
  background: rgba(220, 53, 69, 0.1) !important;
  border: 1px solid rgba(220, 53, 69, 0.2) !important;
  color: #dc3545 !important;
  font-weight: 600 !important;
}

/* Payment History Table */
.automotive-invoice .table thead.thead-light th {
  background: linear-gradient(135deg,
    rgba(233, 77, 28, 0.1) 0%,
    rgba(255, 107, 53, 0.1) 100%) !important;
  color: var(--automotive-primary) !important;
  font-weight: 600 !important;
}

/* Professional Invoice Enhancements */
.automotive-invoice .breadcrumb-link {
  color: var(--automotive-primary) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.automotive-invoice .breadcrumb-link:hover {
  color: var(--automotive-secondary) !important;
}

.automotive-invoice .breadcrumb-item.active {
  color: var(--automotive-secondary) !important;
  font-weight: 600 !important;
}

/* Professional Card Shadows */
.automotive-invoice .shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.automotive-invoice .shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Professional Table Styling */
.automotive-invoice .table-hover tbody tr:hover {
  background-color: rgba(233, 77, 28, 0.05) !important;
  transform: translateX(2px) !important;
  transition: all 0.3s ease !important;
}

/* Dark Theme Professional Enhancements */
[data-hs-appearance="dark"] .automotive-invoice .table-hover tbody tr:hover,
.dark .automotive-invoice .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Professional Badge Styling */
.automotive-invoice .badge {
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  padding: 0.5rem 0.75rem !important;
}

/* Professional Button Enhancements */
.automotive-invoice .btn-outline-primary {
  border-color: var(--automotive-primary) !important;
  color: var(--automotive-primary) !important;
}

.automotive-invoice .btn-outline-primary:hover {
  background-color: var(--automotive-primary) !important;
  border-color: var(--automotive-primary) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(26, 43, 71, 0.3) !important;
}

.automotive-invoice .btn-outline-secondary {
  border-color: #6c757d !important;
  color: #6c757d !important;
}

.automotive-invoice .btn-outline-secondary:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

/* Professional Grid Cards */
.automotive-invoice .row.g-4 > * {
  transition: all 0.3s ease !important;
}

.automotive-invoice .card.h-100:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Professional Icon Styling */
.automotive-invoice .fs-1 {
  font-size: 3rem !important;
}

.automotive-invoice .fs-4 {
  font-size: 1.5rem !important;
}

/* Professional Border Styling */
.automotive-invoice .border-bottom {
  border-bottom: 1px solid rgba(233, 77, 28, 0.1) !important;
}

.automotive-invoice .border-top {
  border-top: 1px solid rgba(233, 77, 28, 0.1) !important;
}

.automotive-invoice .border-end {
  border-right: 1px solid rgba(233, 77, 28, 0.1) !important;
}

/* Dark Theme Border Adjustments */
[data-hs-appearance="dark"] .automotive-invoice .border-bottom,
[data-hs-appearance="dark"] .automotive-invoice .border-top,
[data-hs-appearance="dark"] .automotive-invoice .border-end,
.dark .automotive-invoice .border-bottom,
.dark .automotive-invoice .border-top,
.dark .automotive-invoice .border-end {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Professional Responsive Design */
@media (max-width: 768px) {
  .automotive-invoice .card-header .row {
    text-align: center !important;
  }

  .automotive-invoice .card-header .col-md-6:last-child {
    margin-top: 1rem !important;
  }

  .automotive-invoice .table-responsive {
    font-size: 0.875rem !important;
  }
}

/* Print Styles - Professional */
@media print {
  .automotive-invoice {
    background: white !important;
  }

  .automotive-invoice .page-header,
  .automotive-invoice .col-12.mt-4,
  .d-print-none {
    display: none !important;
  }

  .automotive-invoice .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  .automotive-invoice .card-header {
    background: #f8f9fa !important;
    color: #333 !important;
  }

  .automotive-invoice .table thead {
    background: #f8f9fa !important;
    color: #333 !important;
  }

  .automotive-invoice .text-white {
    color: #333 !important;
  }
}

/* ========================================
   AUTOMOTIVE TABLE STANDARDS
   ======================================== */

/* Main Container for Automotive Tables */
.automotive-tables {
  background: #ffffff !important;
  min-height: 100vh !important;
}

/* Dark Theme Container */
[data-hs-appearance="dark"] .automotive-tables,
.dark .automotive-tables {
  background: #1a1d29 !important;
}

/* Professional Page Header */
.automotive-tables .page-header {
  background: linear-gradient(135deg,
    #f8f9fa 0%,
    #e9ecef 50%,
    #dee2e6 100%) !important;
  border-bottom: 2px solid rgba(233, 77, 28, 0.2) !important;
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(10px) !important;
}

/* Dark Theme Page Header */
[data-hs-appearance="dark"] .automotive-tables .page-header,
.dark .automotive-tables .page-header {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 50%,
    #34495e 100%) !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

/* Page Header Title */
.automotive-tables .page-header-title {
  color: #495057 !important;
  font-weight: 700 !important;
  font-size: 2rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

/* Dark Theme Page Title */
[data-hs-appearance="dark"] .automotive-tables .page-header-title,
.dark .automotive-tables .page-header-title {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Compact Search Bar */
.automotive-tables .searchbar {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(233, 77, 28, 0.1) !important;
  border-radius: 0.5rem !important;
  padding: 1rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: blur(10px) !important;
}

/* Dark Theme Search Bar */
[data-hs-appearance="dark"] .automotive-tables .searchbar,
.dark .automotive-tables .searchbar {
  background: rgba(26, 43, 71, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Search Form Controls */
.automotive-tables .form-label {
  color: var(--automotive-primary) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

.automotive-tables .form-control,
.automotive-tables .form-select {
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem !important;
  transition: all 0.3s ease !important;
}

.automotive-tables .form-control:focus,
.automotive-tables .form-select:focus {
  border-color: var(--automotive-secondary) !important;
  box-shadow: 0 0 0 0.2rem rgba(233, 77, 28, 0.25) !important;
}

/* Search Button */
.automotive-tables .btn-primary {
  background: linear-gradient(135deg, var(--automotive-secondary), #ff6b35) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease !important;
}

.automotive-tables .btn-primary:hover {
  background: linear-gradient(135deg, #ff6b35, var(--automotive-secondary)) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(233, 77, 28, 0.3) !important;
}

/* Compact Main Card */
.automotive-tables .card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(233, 77, 28, 0.1) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(233, 77, 28, 0.08) !important;
  backdrop-filter: blur(15px) !important;
  overflow: hidden !important;
  margin-bottom: 1rem !important;
}

/* Compact Card Header */
.automotive-tables .card-header {
  padding: 0.75rem 1rem !important;
}

/* Compact Card Body */
.automotive-tables .card-body {
  padding: 1rem !important;
}

/* Compact Tab Content */
.automotive-tables .tab-content {
  margin-top: 0 !important;
}

.automotive-tables .tab-pane {
  padding-top: 0 !important;
}

/* Dark Theme Main Card */
[data-hs-appearance="dark"] .automotive-tables .card,
.dark .automotive-tables .card {
  background: rgba(26, 43, 71, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(233, 77, 28, 0.2) !important;
}

/* Stats Navigation Tabs */
.automotive-tables .nav-pills {
  gap: 0.5rem !important;
}

.automotive-tables .nav-pills .stats-tab {
  color: #495057 !important;
  font-weight: 600 !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(233, 77, 28, 0.1) !important;
  text-decoration: none !important;
  min-height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.automotive-tables .nav-pills .stats-tab:hover {
  background: rgba(233, 77, 28, 0.05) !important;
  border-color: rgba(233, 77, 28, 0.2) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(233, 77, 28, 0.1) !important;
}

.automotive-tables .nav-pills .stats-tab.active {
  background: linear-gradient(135deg,
    rgba(233, 77, 28, 0.1) 0%,
    rgba(255, 107, 53, 0.05) 100%) !important;
  border-color: var(--automotive-secondary) !important;
  color: var(--automotive-primary) !important;
  box-shadow: 0 4px 15px rgba(233, 77, 28, 0.2) !important;
  transform: translateY(-2px) !important;
}

.automotive-tables .nav-pills .stats-tab .fw-bold {
  font-size: 1.5rem !important;
}

/* Dark Theme Stats Navigation */
[data-hs-appearance="dark"] .automotive-tables .nav-pills .stats-tab,
.dark .automotive-tables .nav-pills .stats-tab {
  color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(26, 43, 71, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-hs-appearance="dark"] .automotive-tables .nav-pills .stats-tab:hover,
.dark .automotive-tables .nav-pills .stats-tab:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

[data-hs-appearance="dark"] .automotive-tables .nav-pills .stats-tab.active,
.dark .automotive-tables .nav-pills .stats-tab.active {
  background: linear-gradient(135deg,
    rgba(26, 43, 71, 0.8) 0%,
    rgba(44, 62, 80, 0.6) 100%) !important;
  border-color: var(--automotive-secondary) !important;
  color: white !important;
}

/* Legend Indicators */
.automotive-tables .legend-indicator {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  margin-right: 0.5rem !important;
}

/* Compact Table Styling */
.automotive-tables .table {
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 0 !important;
}

/* Compact Table Container */
.automotive-tables .table-responsive {
  margin-top: 0 !important;
  border-radius: 0.5rem !important;
}

.automotive-tables .table thead {
  background: linear-gradient(135deg,
    var(--automotive-primary) 0%,
    #2c3e50 100%) !important;
}

.automotive-tables .table thead th {
  color: white !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 0.75rem !important;
  border: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  font-size: 0.8rem !important;
}

.automotive-tables .table tbody tr {
  transition: all 0.3s ease !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.1) !important;
}

.automotive-tables .table tbody tr:hover {
  background: rgba(233, 77, 28, 0.05) !important;
  transform: translateX(2px) !important;
  box-shadow: 0 1px 4px rgba(233, 77, 28, 0.08) !important;
}

.automotive-tables .table tbody td,
.automotive-tables .table tbody th {
  padding: 0.75rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.1) !important;
  font-size: 0.875rem !important;
}

/* Dark Theme Table */
[data-hs-appearance="dark"] .automotive-tables .table tbody tr:hover,
.dark .automotive-tables .table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

[data-hs-appearance="dark"] .automotive-tables .table tbody td,
[data-hs-appearance="dark"] .automotive-tables .table tbody th,
.dark .automotive-tables .table tbody td,
.dark .automotive-tables .table tbody th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Professional Action Buttons */
.automotive-tables .btn-soft-primary {
  background: rgba(233, 77, 28, 0.1) !important;
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  color: var(--automotive-secondary) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  font-size: 0.875rem !important;
  transition: all 0.3s ease !important;
}

.automotive-tables .btn-soft-primary:hover {
  background: var(--automotive-secondary) !important;
  border-color: var(--automotive-secondary) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(233, 77, 28, 0.3) !important;
}

.automotive-tables .btn-soft-info {
  background: rgba(13, 202, 240, 0.1) !important;
  border: 1px solid rgba(13, 202, 240, 0.2) !important;
  color: #0dcaf0 !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  font-size: 0.875rem !important;
  transition: all 0.3s ease !important;
}

.automotive-tables .btn-soft-info:hover {
  background: #0dcaf0 !important;
  border-color: #0dcaf0 !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3) !important;
}

/* Create Button Styling */
.automotive-tables .btn-info {
  background: linear-gradient(135deg, #0dcaf0, #0bb5d6) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.3s ease !important;
}

.automotive-tables .btn-info:hover {
  background: linear-gradient(135deg, #0bb5d6, #0dcaf0) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(13, 202, 240, 0.3) !important;
}

/* Currency and Status Styling */
.automotive-tables .text-danger {
  color: #dc3545 !important;
  font-weight: 600 !important;
}

.automotive-tables .text-success {
  color: #198754 !important;
  font-weight: 600 !important;
}

/* Empty State Styling */
.automotive-tables .table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Compact Responsive Design */
@media (max-width: 768px) {
  .automotive-tables .searchbar {
    padding: 0.75rem !important;
    margin-bottom: 1rem !important;
  }

  .automotive-tables .searchbar form {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .automotive-tables .card-header {
    padding: 0.75rem !important;
  }

  .automotive-tables .card-body {
    padding: 0.75rem !important;
  }

  .automotive-tables .card-header .d-flex {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
  }

  .automotive-tables .table {
    font-size: 0.8rem !important;
  }

  .automotive-tables .table thead th {
    padding: 0.5rem !important;
    font-size: 0.75rem !important;
  }

  .automotive-tables .table tbody td,
  .automotive-tables .table tbody th {
    padding: 0.5rem !important;
    font-size: 0.8rem !important;
  }

  .automotive-tables .btn-group {
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  .automotive-tables .nav-pills .stats-tab {
    padding: 0.75rem 0.5rem !important;
    min-height: 60px !important;
    font-size: 0.8rem !important;
  }

  .automotive-tables .nav-pills .stats-tab .fw-bold {
    font-size: 1.2rem !important;
  }

  .automotive-tables .nav-pills {
    gap: 0.25rem !important;
  }
}

/* ========================================
   CLEAN SALES OVERVIEW STYLES
   ======================================== */

/* Clean Sales Card - Override Colorful Automotive Theme */
.clean-sales-card {
  background: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: none !important;
}

.clean-sales-card:hover {
  transform: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Clean Card Header */
.clean-card-header {
  background: #f8f9fa !important;
  border-bottom: 1px solid #e9ecef !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
  padding: 0.75rem 1rem !important;
}

.clean-title {
  color: #495057 !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
}

/* Clean Navigation Tabs */
.clean-nav-tabs {
  gap: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.clean-stats-tab {
  color: #6c757d !important;
  font-weight: 500 !important;
  padding: 0.75rem 0.5rem !important;
  border-radius: 0.375rem !important;
  transition: all 0.2s ease !important;
  background: white !important;
  border: 1px solid #e9ecef !important;
  text-decoration: none !important;
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.clean-stats-tab:hover {
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #495057 !important;
  transform: none !important;
  box-shadow: none !important;
}

.clean-stats-tab.active {
  background: #f8f9fa !important;
  border-color: #6c757d !important;
  color: #495057 !important;
  box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.25) !important;
  transform: none !important;
  font-weight: 600 !important;
}

.clean-stats-tab .fw-bold {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

/* Dark Theme Clean Styles */
[data-hs-appearance="dark"] .clean-sales-card,
.dark .clean-sales-card {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-card-header,
.dark .clean-card-header {
  background: #1a202c !important;
  border-bottom-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-title,
.dark .clean-title {
  color: #e2e8f0 !important;
}

[data-hs-appearance="dark"] .clean-stats-tab,
.dark .clean-stats-tab {
  color: #a0aec0 !important;
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-stats-tab:hover,
.dark .clean-stats-tab:hover {
  background: #4a5568 !important;
  border-color: #718096 !important;
  color: #e2e8f0 !important;
}

[data-hs-appearance="dark"] .clean-stats-tab.active,
.dark .clean-stats-tab.active {
  background: #4a5568 !important;
  border-color: #718096 !important;
  color: #e2e8f0 !important;
  box-shadow: 0 0 0 2px rgba(113, 128, 150, 0.25) !important;
  font-weight: 600 !important;
}

/* Override any automotive table styling for clean cards */
.automotive-tables .clean-sales-card {
  background: white !important;
  border: 1px solid #e9ecef !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.automotive-tables .clean-sales-card:hover {
  transform: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.automotive-tables .clean-nav-tabs .clean-stats-tab {
  background: white !important;
  border: 1px solid #e9ecef !important;
  color: #6c757d !important;
  padding: 0.75rem 0.5rem !important;
  min-height: 60px !important;
}

.automotive-tables .clean-nav-tabs .clean-stats-tab:hover {
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #495057 !important;
  transform: none !important;
  box-shadow: none !important;
}

.automotive-tables .clean-nav-tabs .clean-stats-tab.active {
  background: #f8f9fa !important;
  border-color: #6c757d !important;
  color: #495057 !important;
  box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.25) !important;
  transform: none !important;
  font-weight: 600 !important;
}

.automotive-tables .clean-nav-tabs .clean-stats-tab .fw-bold {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

/* ========================================
   CLEAN TABLE STYLES
   ======================================== */

/* Clean Table Container */
.clean-table-container {
  /* background: white !important; */
  /* border-radius: 0.5rem !important; */
  /* border: 1px solid #e9ecef !important; */
  overflow: hidden !important;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important; */
}

/* Clean Table */
.clean-table {
  margin-bottom: 0 !important;
  border: none !important;
  background: white !important;
}

/* Clean Table Header */
.clean-table thead {
  background: #f8f9fa !important;
  border-bottom: 2px solid #e9ecef !important;
}

.clean-table thead th {
  color: #495057 !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  padding: 1rem 0.75rem !important;
  border: none !important;
  text-shadow: none !important;
  font-size: 0.875rem !important;
  background: transparent !important;
}

/* Clean Table Body */
.clean-table tbody tr {
  transition: background-color 0.2s ease !important;
  border-bottom: 1px solid #f1f3f4 !important;
  background: white !important;
}

.clean-table tbody tr:hover {
  background: #f8f9fa !important;
  transform: none !important;
  box-shadow: none !important;
}

.clean-table tbody td,
.clean-table tbody th {
  padding: 0.875rem 0.75rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f3f4 !important;
  font-size: 0.875rem !important;
  color: #495057 !important;
  background: transparent !important;
}

/* Clean Table Last Row */
.clean-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Clean Empty State */
.clean-table .empty-state {
  padding: 3rem 1rem !important;
  text-align: center !important;
  color: #6c757d !important;
}

.clean-table .empty-state i {
  color: #adb5bd !important;
  font-size: 3rem !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

.clean-table .empty-state h6 {
  color: #495057 !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

.clean-table .empty-state p {
  color: #6c757d !important;
  margin-bottom: 0 !important;
  font-size: 0.875rem !important;
}

/* Clean Button Styling */
.clean-table .btn-group .btn {
  border-radius: 0.25rem !important;
  font-size: 0.75rem !important;
  padding: 0.375rem 0.5rem !important;
  border: 1px solid #e9ecef !important;
  background: white !important;
  color: #6c757d !important;
  transition: all 0.2s ease !important;
}

.clean-table .btn-group .btn:hover {
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #495057 !important;
  transform: none !important;
  box-shadow: none !important;
}

.clean-table .btn-soft-primary {
  color: #0d6efd !important;
  border-color: rgba(13, 110, 253, 0.2) !important;
}

.clean-table .btn-soft-primary:hover {
  background: rgba(13, 110, 253, 0.1) !important;
  border-color: rgba(13, 110, 253, 0.3) !important;
  color: #0a58ca !important;
}

.clean-table .btn-soft-info {
  color: #0dcaf0 !important;
  border-color: rgba(13, 202, 240, 0.2) !important;
}

.clean-table .btn-soft-info:hover {
  background: rgba(13, 202, 240, 0.1) !important;
  border-color: rgba(13, 202, 240, 0.3) !important;
  color: #0aa2c0 !important;
}

.clean-table .btn-soft-success {
  color: #198754 !important;
  border-color: rgba(25, 135, 84, 0.2) !important;
}

.clean-table .btn-soft-success:hover {
  background: rgba(25, 135, 84, 0.1) !important;
  border-color: rgba(25, 135, 84, 0.3) !important;
  color: #146c43 !important;
}

.clean-table .btn-soft-warning {
  color: #fd7e14 !important;
  border-color: rgba(253, 126, 20, 0.2) !important;
}

.clean-table .btn-soft-warning:hover {
  background: rgba(253, 126, 20, 0.1) !important;
  border-color: rgba(253, 126, 20, 0.3) !important;
  color: #e55a00 !important;
}

/* Dark Theme Clean Table */
[data-hs-appearance="dark"] .clean-table-container,
.dark .clean-table-container {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-table,
.dark .clean-table {
  background: #2d3748 !important;
}

[data-hs-appearance="dark"] .clean-table thead,
.dark .clean-table thead {
  background: #1a202c !important;
  border-bottom-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-table thead th,
.dark .clean-table thead th {
  color: #e2e8f0 !important;
}

[data-hs-appearance="dark"] .clean-table tbody tr,
.dark .clean-table tbody tr {
  background: #2d3748 !important;
  border-bottom-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-table tbody tr:hover,
.dark .clean-table tbody tr:hover {
  background: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-table tbody td,
[data-hs-appearance="dark"] .clean-table tbody th,
.dark .clean-table tbody td,
.dark .clean-table tbody th {
  color: #e2e8f0 !important;
  border-bottom-color: #4a5568 !important;
}

/* Override Automotive Table Styling for Clean Tables */
.automotive-tables .clean-table-container {
  background: white !important;
}

.automotive-tables .clean-table {
  background: white !important;
  border: none !important;
  margin-bottom: 0 !important;
}

.automotive-tables .clean-table thead {
  background: #f8f9fa !important;
  border-bottom: 2px solid #e9ecef !important;
}

.automotive-tables .clean-table thead th {
  color: #495057 !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  padding: 1rem 0.75rem !important;
  border: none !important;
  text-shadow: none !important;
  font-size: 0.875rem !important;
  background: transparent !important;
}

.automotive-tables .clean-table tbody tr {
  background: white !important;
  border-bottom: 1px solid #f1f3f4 !important;
  transition: background-color 0.2s ease !important;
}

.automotive-tables .clean-table tbody tr:hover {
  background: #f8f9fa !important;
  transform: none !important;
  box-shadow: none !important;
}

.automotive-tables .clean-table tbody td,
.automotive-tables .clean-table tbody th {
  color: #495057 !important;
  border-bottom: 1px solid #f1f3f4 !important;
  padding: 0.875rem 0.75rem !important;
  font-size: 0.875rem !important;
  background: transparent !important;
}

/* Clean Table Dark Theme Override */
[data-hs-appearance="dark"] .automotive-tables .clean-table-container,
.dark .automotive-tables .clean-table-container {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .automotive-tables .clean-table,
.dark .automotive-tables .clean-table {
  background: #2d3748 !important;
}

[data-hs-appearance="dark"] .automotive-tables .clean-table thead,
.dark .automotive-tables .clean-table thead {
  background: #1a202c !important;
  border-bottom-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .automotive-tables .clean-table thead th,
.dark .automotive-tables .clean-table thead th {
  color: #e2e8f0 !important;
}

[data-hs-appearance="dark"] .automotive-tables .clean-table tbody tr,
.dark .automotive-tables .clean-table tbody tr {
  background: #2d3748 !important;
  border-bottom-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .automotive-tables .clean-table tbody tr:hover,
.dark .automotive-tables .clean-table tbody tr:hover {
  background: #4a5568 !important;
}

[data-hs-appearance="dark"] .automotive-tables .clean-table tbody td,
[data-hs-appearance="dark"] .automotive-tables .clean-table tbody th,
.dark .automotive-tables .clean-table tbody td,
.dark .automotive-tables .clean-table tbody th {
  color: #e2e8f0 !important;
  border-bottom-color: #4a5568 !important;
}

/* ========================================
   OPTIMIZED TABLE STYLES
   ======================================== */

/* Optimized Table Layout */
.optimized-table {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}

/* Column Width Optimization */
.optimized-table th:nth-child(1), /* Sales Rep */
.optimized-table td:nth-child(1) {
  width: 140px !important;
  min-width: 140px !important;
}

.optimized-table th:nth-child(2), /* Invoice ID */
.optimized-table td:nth-child(2) {
  width: 100px !important;
  min-width: 100px !important;
}

.optimized-table th:nth-child(3), /* Customer */
.optimized-table td:nth-child(3) {
  width: 180px !important;
  min-width: 180px !important;
}

.optimized-table th:nth-child(4), /* Total Amount */
.optimized-table td:nth-child(4) {
  width: 110px !important;
  min-width: 110px !important;
  text-align: right !important;
}

.optimized-table th:nth-child(5), /* Balance Due */
.optimized-table td:nth-child(5) {
  width: 100px !important;
  min-width: 100px !important;
  text-align: right !important;
}

.optimized-table th:nth-child(6), /* Discount */
.optimized-table td:nth-child(6) {
  width: 90px !important;
  min-width: 90px !important;
  text-align: right !important;
}

.optimized-table th:nth-child(7), /* Sale Date */
.optimized-table td:nth-child(7) {
  width: 110px !important;
  min-width: 110px !important;
}

.optimized-table th:nth-child(8), /* Actions */
.optimized-table td:nth-child(8) {
  width: 60px !important;
  min-width: 60px !important;
  text-align: center !important;
}

/* Fix DataTables Sorting Icons Overlap for Right-Aligned Headers */
.clean-table-container .optimized-table th:nth-child(4), /* Total Amount */
.clean-table-container .optimized-table th:nth-child(5), /* Balance Due */
.clean-table-container .optimized-table th:nth-child(6) { /* Discount */
  padding-right: 25px !important;
  position: relative !important;
}

/* Ensure sorting icons are positioned correctly */
.clean-table-container .optimized-table th.sorting:after,
.clean-table-container .optimized-table th.sorting_asc:after,
.clean-table-container .optimized-table th.sorting_desc:after {
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Specific styling for right-aligned sortable headers */
.clean-table-container .optimized-table th:nth-child(4).sorting,
.clean-table-container .optimized-table th:nth-child(4).sorting_asc,
.clean-table-container .optimized-table th:nth-child(4).sorting_desc,
.clean-table-container .optimized-table th:nth-child(5).sorting,
.clean-table-container .optimized-table th:nth-child(5).sorting_asc,
.clean-table-container .optimized-table th:nth-child(5).sorting_desc,
.clean-table-container .optimized-table th:nth-child(6).sorting,
.clean-table-container .optimized-table th:nth-child(6).sorting_asc,
.clean-table-container .optimized-table th:nth-child(6).sorting_desc {
  text-align: right !important;
  padding-right: 25px !important;
}

/* Clean DataTables Sorting Icons */
.clean-table-container table.dataTable thead th.sorting:after,
.clean-table-container table.dataTable thead th.sorting_asc:after,
.clean-table-container table.dataTable thead th.sorting_desc:after {
  opacity: 0.6 !important;
  font-size: 0.7rem !important;
  color: #6c757d !important;
}

.clean-table-container table.dataTable thead th.sorting:hover:after,
.clean-table-container table.dataTable thead th.sorting_asc:hover:after,
.clean-table-container table.dataTable thead th.sorting_desc:hover:after {
  opacity: 1 !important;
  color: #495057 !important;
}

/* Disable sorting for Actions column */
.clean-table-container .optimized-table th:nth-child(8).sorting,
.clean-table-container .optimized-table th:nth-child(8).sorting_asc,
.clean-table-container .optimized-table th:nth-child(8).sorting_desc {
  cursor: default !important;
}

.clean-table-container .optimized-table th:nth-child(8).sorting:after,
.clean-table-container .optimized-table th:nth-child(8).sorting_asc:after,
.clean-table-container .optimized-table th:nth-child(8).sorting_desc:after {
  display: none !important;
}

/* Dark theme sorting icons */
[data-hs-appearance="dark"] .clean-table-container table.dataTable thead th.sorting:after,
[data-hs-appearance="dark"] .clean-table-container table.dataTable thead th.sorting_asc:after,
[data-hs-appearance="dark"] .clean-table-container table.dataTable thead th.sorting_desc:after,
.dark .clean-table-container table.dataTable thead th.sorting:after,
.dark .clean-table-container table.dataTable thead th.sorting_asc:after,
.dark .clean-table-container table.dataTable thead th.sorting_desc:after {
  color: #a0aec0 !important;
}

[data-hs-appearance="dark"] .clean-table-container table.dataTable thead th.sorting:hover:after,
[data-hs-appearance="dark"] .clean-table-container table.dataTable thead th.sorting_asc:hover:after,
[data-hs-appearance="dark"] .clean-table-container table.dataTable thead th.sorting_desc:hover:after,
.dark .clean-table-container table.dataTable thead th.sorting:hover:after,
.dark .clean-table-container table.dataTable thead th.sorting_asc:hover:after,
.dark .clean-table-container table.dataTable thead th.sorting_desc:hover:after {
  color: #e2e8f0 !important;
}

/* Compact Row Styling */
.optimized-table thead th {
  padding: 0.6rem 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: #6c757d !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.optimized-table tbody td {
  padding: 0.6rem 0.5rem !important;
  font-size: 0.8rem !important;
  color: #6c757d !important;
  font-weight: 400 !important;
  vertical-align: middle !important;
}

/* Light Text Styling */
.optimized-table .light-text {
  color: #6c757d !important;
  font-weight: 400 !important;
}

.optimized-table .light-text-bold {
  color: #495057 !important;
  font-weight: 500 !important;
}

.optimized-table .light-link {
  color: #6c757d !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.optimized-table .light-link:hover {
  color: #495057 !important;
  text-decoration: underline !important;
}

/* Compact User Display */
.optimized-table .compact-user {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.optimized-table .user-avatar {
  width: 24px !important;
  height: 24px !important;
  background: #f8f9fa !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.optimized-table .user-avatar i {
  font-size: 0.7rem !important;
  color: #adb5bd !important;
}

.optimized-table .user-name {
  font-size: 0.8rem !important;
  color: #6c757d !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Compact Customer Display */
.optimized-table .compact-customer {
  line-height: 1.3 !important;
}

.optimized-table .customer-name {
  font-size: 0.8rem !important;
  color: #495057 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 0.1rem !important;
}

.optimized-table .customer-phone {
  font-size: 0.7rem !important;
  color: #adb5bd !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Compact Date Display */
.optimized-table .compact-date {
  line-height: 1.3 !important;
}

.optimized-table .date-main {
  font-size: 0.8rem !important;
  color: #6c757d !important;
  font-weight: 400 !important;
  margin-bottom: 0.1rem !important;
}

.optimized-table .date-time {
  font-size: 0.7rem !important;
  color: #adb5bd !important;
}

/* Dropdown Actions */
.optimized-table .action-dropdown {
  position: relative !important;
}

.optimized-table .action-btn {
  background: none !important;
  border: none !important;
  color: #6c757d !important;
  font-size: 1rem !important;
  padding: 0.25rem !important;
  border-radius: 0.25rem !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.optimized-table .action-btn:hover {
  background: #f8f9fa !important;
  color: #495057 !important;
}

.optimized-table .dropdown-menu {
  font-size: 0.8rem !important;
  min-width: 140px !important;
  border: 1px solid #e9ecef !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.optimized-table .dropdown-item {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.8rem !important;
  color: #6c757d !important;
}

.optimized-table .dropdown-item:hover {
  background: #f8f9fa !important;
  color: #495057 !important;
}

.optimized-table .dropdown-item i {
  width: 14px !important;
  margin-right: 0.5rem !important;
  font-size: 0.75rem !important;
}

/* Action Table (10 columns) Column Widths */
.optimized-table th:nth-child(8), /* Comment */
.optimized-table td:nth-child(8) {
  width: 120px !important;
  min-width: 120px !important;
}

.optimized-table th:nth-child(9), /* Sale Date (Action Table) */
.optimized-table td:nth-child(9) {
  width: 110px !important;
  min-width: 110px !important;
}

.optimized-table th:nth-child(10), /* Actions (Action Table) */
.optimized-table td:nth-child(10) {
  width: 60px !important;
  min-width: 60px !important;
  text-align: center !important;
}

/* Comment Column Styling */
.optimized-table .comment-text {
  font-size: 0.75rem !important;
  color: #6c757d !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100px !important;
}

/* Dark Theme Optimized Table */
[data-hs-appearance="dark"] .optimized-table thead th,
.dark .optimized-table thead th {
  color: #a0aec0 !important;
}

[data-hs-appearance="dark"] .optimized-table tbody td,
.dark .optimized-table tbody td {
  color: #a0aec0 !important;
}

[data-hs-appearance="dark"] .optimized-table .light-text-bold,
.dark .optimized-table .light-text-bold {
  color: #e2e8f0 !important;
}

[data-hs-appearance="dark"] .optimized-table .light-link,
.dark .optimized-table .light-link {
  color: #a0aec0 !important;
}

[data-hs-appearance="dark"] .optimized-table .light-link:hover,
.dark .optimized-table .light-link:hover {
  color: #e2e8f0 !important;
}

[data-hs-appearance="dark"] .optimized-table .user-avatar,
.dark .optimized-table .user-avatar {
  background: #4a5568 !important;
}

[data-hs-appearance="dark"] .optimized-table .action-btn:hover,
.dark .optimized-table .action-btn:hover {
  background: #4a5568 !important;
  color: #e2e8f0 !important;
}

/* ========================================
   CLEAN PAGINATION STYLES
   ======================================== */

/* Clean Pagination Container */
.clean-pagination {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

/* Clean Pagination Items */
.clean-pagination .pagination {
  margin-bottom: 0 !important;
  gap: 0.25rem !important;
}

.clean-pagination .page-item .page-link {
  color: #6c757d !important;
  background: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  min-width: 40px !important;
  text-align: center !important;
}

.clean-pagination .page-item .page-link:hover {
  color: #495057 !important;
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
  transform: none !important;
  box-shadow: none !important;
}

.clean-pagination .page-item.active .page-link {
  color: white !important;
  background: #495057 !important;
  border-color: #495057 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.clean-pagination .page-item.disabled .page-link {
  color: #adb5bd !important;
  background: #f8f9fa !important;
  border-color: #e9ecef !important;
  cursor: not-allowed !important;
}

/* Clean Pagination Info */
.clean-pagination-info {
  color: #6c757d !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* Clean Pagination Wrapper */
.clean-pagination-wrapper {
  display: flex !important;
  justify-content: between !important;
  align-items: center !important;
  padding: 1rem 0.5rem 0.5rem 0.5rem !important;
  border-top: 1px solid #f1f3f4 !important;
  margin-top: 0.5rem !important;
  background: white !important;
}

/* Responsive Pagination */
@media (max-width: 576px) {
  .clean-pagination-wrapper {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
  }

  .clean-pagination .page-item .page-link {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.8rem !important;
    min-width: 35px !important;
  }
}

/* Dark Theme Pagination */
[data-hs-appearance="dark"] .clean-pagination .page-item .page-link,
.dark .clean-pagination .page-item .page-link {
  color: #a0aec0 !important;
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

[data-hs-appearance="dark"] .clean-pagination .page-item .page-link:hover,
.dark .clean-pagination .page-item .page-link:hover {
  color: #e2e8f0 !important;
  background: #4a5568 !important;
  border-color: #718096 !important;
}

[data-hs-appearance="dark"] .clean-pagination .page-item.active .page-link,
.dark .clean-pagination .page-item.active .page-link {
  color: white !important;
  background: #718096 !important;
  border-color: #718096 !important;
}

[data-hs-appearance="dark"] .clean-pagination .page-item.disabled .page-link,
.dark .clean-pagination .page-item.disabled .page-link {
  color: #4a5568 !important;
  background: #1a202c !important;
  border-color: #2d3748 !important;
}

[data-hs-appearance="dark"] .clean-pagination-info,
.dark .clean-pagination-info {
  color: #a0aec0 !important;
}

[data-hs-appearance="dark"] .clean-pagination-wrapper,
.dark .clean-pagination-wrapper {
  background: #2d3748 !important;
  border-top-color: #4a5568 !important;
}

/* Override Automotive Table Pagination */
.automotive-tables .clean-pagination .page-item .page-link {
  color: #6c757d !important;
  background: white !important;
  border: 1px solid #e9ecef !important;
}

.automotive-tables .clean-pagination .page-item .page-link:hover {
  color: #495057 !important;
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
  transform: none !important;
  box-shadow: none !important;
}

.automotive-tables .clean-pagination .page-item.active .page-link {
  color: white !important;
  background: #495057 !important;
  border-color: #495057 !important;
  box-shadow: none !important;
  transform: none !important;
}



/* Force Card Header Styling - Ultimate Override */
body .automotive-dashboard .card-header,
html body .automotive-dashboard .card-header,
html body div.automotive-dashboard .card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%) !important;
  border-bottom: 1px solid rgba(233, 77, 28, 0.15) !important;
  border-radius: 0.75rem 0.75rem 0 0 !important;
  padding: 1rem 1.25rem !important;
}

/* Test Style - Should be immediately visible */
.automotive-dashboard .card {
  border: 3px solid red !important;
}

/* Accessibility Improvements */
.automotive-dashboard .card:focus-within {
  outline: 2px solid var(--automotive-secondary);
  outline-offset: 2px;
}

.automotive-dashboard .btn:focus {
  outline: 2px solid var(--automotive-secondary);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .automotive-dashboard .card {
    border-width: 2px !important;
  }

  .automotive-dashboard .avatar {
    border-width: 3px !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .automotive-dashboard * {
    animation: none !important;
    transition: none !important;
  }

  .automotive-dashboard .card:hover,
  .automotive-dashboard .btn:hover,
  .automotive-dashboard .avatar:hover {
    transform: none !important;
  }
}

.input-group .form-control {
  border-right: none;
  border-end-end-radius: 0px !important;
  border-top-right-radius: 0px !important;
}

.input-group .btn.btn-outline-primary {
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
}

.dt-picker {
  border: 1px solid rgba(233, 77, 28, 0.2) !important;
  text-align: left;
  padding: 11px 20px;
  background: white;
  border-radius: 8px;
}