:root {
  --navy:        #00152a;
  --navy-dark:   #000d1a;
  --navy-mid:    #0a2239;
  --navy-card:   #0c2844;
  --teal:        #7cf8d7;
  --teal-dim:    #5ddbbc;
  --teal-glow:   rgba(124, 248, 215, 0.25);
  --white:       #ffffff;
  --off-white:   #f4f6f9;
  --gray-100:    #e8ecf0;
  --gray-400:    #8a95a0;
  --gray-600:    #4a5568;
  --gray-800:    #1e293b;
  --success:     #10b981;
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 9999px;
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:   0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md:   0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--navy-dark);
  color: var(--white);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

/* Every <select> in the app is styled dark (light text on a dark closed
   box), but the dropdown popup itself is rendered by the OS/browser and
   can't be dark-themed — it defaults to a light background. Without this,
   every option inherits the select's white text color and becomes
   invisible (white-on-white) once the list opens. */
select option {
  color: var(--gray-800, #1e293b);
  background: var(--white);
}

/* APP HEADER */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 21, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

.brand-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-title span {
  color: var(--teal);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 248, 215, 0.12);
  border: 1px solid rgba(124, 248, 215, 0.25);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
}

/* ROLE SWITCHER */
.role-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-role {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-role .material-symbols-outlined {
  font-size: 14px;
}

.btn-role.active {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(124, 248, 215, 0.3);
}

/* ADMIN TABS NAVIGATION */
.admin-tabs {
  display: flex;
  gap: 8px;
  max-width: 1500px;
  margin: 10px auto 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn .material-symbols-outlined {
  font-size: 16px;
}

.tab-btn.active {
  background: rgba(124, 248, 215, 0.15);
  color: var(--teal);
  border: 1px solid rgba(124, 248, 215, 0.3);
}

/* APP CONTAINER */
.app-container {
  flex: 1;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  padding: 16px 20px 80px;
  box-sizing: border-box;
}

/* ADMIN ACTIONS BANNER */
.action-banner {
  background: linear-gradient(135deg, rgba(12, 40, 68, 0.95), rgba(0, 21, 42, 0.95));
  border: 1px solid rgba(124, 248, 215, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-md);
}

.action-banner h2 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 4px;
}

.action-banner p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(124, 248, 215, 0.3);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(124, 248, 215, 0.5);
}

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  background: rgba(124, 248, 215, 0.12);
  color: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon .material-symbols-outlined {
  font-size: 20px;
}

.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* MECHANIC BANNER */
.mechanic-workspace-banner {
  background: rgba(12, 40, 68, 0.85);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.mechanic-badge-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mechanic-badge-header .material-symbols-outlined {
  font-size: 32px;
  color: var(--teal);
}

.mechanic-badge-header h2 {
  font-size: 16px;
}

.mechanic-badge-header p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* SEARCH & FILTER */
.search-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0 16px;
  height: 46px;
}

.search-input-wrap .material-symbols-outlined {
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
}

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 13px;
  outline: none;
}

.filter-select {
  background: var(--navy-card);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0 16px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

/* VEHICLES LIST & 4 VIEW MODES */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.title-with-count {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-with-count h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.badge-count {
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* VIEW MODES SWITCHER */
.view-modes-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view-mode {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-view-mode .material-symbols-outlined {
  font-size: 16px;
}

.btn-view-mode.active {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(124, 248, 215, 0.3);
}

@media (max-width: 480px) {
  .view-mode-label {
    display: none;
  }
  .btn-view-mode {
    padding: 6px 8px;
  }
}

.vehicles-view-container {
  width: 100%;
  overflow-x: auto;
}

.vehicles-view-container::-webkit-scrollbar {
  height: 6px;
}

.vehicles-view-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.vehicles-view-container::-webkit-scrollbar-thumb {
  background: rgba(124, 248, 215, 0.3);
  border-radius: 3px;
}

.vehicles-view-container::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 248, 215, 0.5);
}

/* VISTA 1: CARDS (DEFAULT) */
.view-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* VISTA 2: LISTA COMPACTA */
.view-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compact-list-row {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.compact-list-row:hover {
  background: rgba(12, 40, 68, 0.95);
  border-color: rgba(124, 248, 215, 0.4);
  transform: translateX(3px);
}

.list-car-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.list-car-thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-car-info {
  min-width: 0;
}

.list-car-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-car-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.list-car-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.list-mech-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--teal);
}

/* VISTA 3: KANBAN BOARD */
.view-kanban {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 12px;
  padding-bottom: 12px;
  width: max-content;
  min-width: 100%;
}

.kanban-column {
  background: rgba(0, 21, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 420px;
  transition: all var(--transition);
}

.kanban-column.drag-over {
  border-color: var(--teal);
  background: rgba(124, 248, 215, 0.05);
}

/* Per-status color accent, matching the .status-badge palette used
   elsewhere (cards, list rows) so a column's color always means the same
   thing throughout the app. */
.kanban-col-in_shop { border-top-color: #f59e0b; }
.kanban-col-in_progress { border-top-color: #3b82f6; }
.kanban-col-ready { border-top-color: #10b981; }
.kanban-col-delivered { border-top-color: #a855f7; }

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.kanban-col-in_shop .status-indicator { color: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.kanban-col-in_progress .status-indicator { color: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.kanban-col-ready .status-indicator { color: #10b981; box-shadow: 0 0 6px #10b981; }
.kanban-col-delivered .status-indicator { color: #a855f7; box-shadow: 0 0 6px #a855f7; }

/* KANBAN CONTROL TOOLBAR */
.kanban-control-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 21, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.kanban-size-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kanban-toolbar-lbl {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.btn-size-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-size-toggle .material-symbols-outlined {
  font-size: 14px;
}

.btn-size-toggle.active {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(124, 248, 215, 0.3);
}

.btn-fullscreen-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 248, 215, 0.1);
  border: 1px solid rgba(124, 248, 215, 0.3);
  color: var(--teal);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-fullscreen-toggle:hover {
  background: var(--teal);
  color: var(--navy);
}

.btn-fullscreen-toggle .material-symbols-outlined {
  font-size: 16px;
}

/* FULLSCREEN KANBAN VIEWPORT */
.vehicles-list-section.kanban-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: #001020 !important;
  padding: 16px 20px !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

.kanban-fullscreen .vehicles-view-container {
  flex: 1;
  height: calc(100vh - 120px);
  overflow: hidden;
}

.kanban-fullscreen .view-kanban {
  height: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 0;
}

.kanban-fullscreen .kanban-column {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.kanban-fullscreen .kanban-cards-dropzone {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

/* KANBAN CARD SIZES (Pequeño, Mediano, Grande) */

/* 1. TAMAÑO PEQUEÑO (S) - Máxima Densidad para muchos autos */
.kanban-size-small .kanban-card {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-size-small .kanban-card-img {
  width: 42px;
  height: 32px;
  margin-bottom: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.kanban-size-small .kanban-card-body-compact {
  flex: 1;
  min-width: 0;
}

.kanban-size-small .kanban-card-title {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-size-small .kanban-card-vin {
  display: none;
}

.kanban-size-small .kanban-card-footer {
  padding-top: 0;
  border-top: none;
  font-size: 10px;
}

.kanban-size-small .drag-handle {
  display: none;
}

/* 2. TAMAÑO MEDIANO (M) - Estándar */
.kanban-size-medium .kanban-card {
  padding: 10px;
}

.kanban-size-medium .kanban-card-img {
  width: 100%;
  height: 90px;
}

/* 3. TAMAÑO GRANDE (L) - Detallado */
.kanban-size-large .kanban-card {
  padding: 14px;
}

.kanban-size-large .kanban-card-img {
  width: 100%;
  height: 130px;
  margin-bottom: 10px;
}

.kanban-size-large .kanban-card-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.kanban-size-large .kanban-card-extra-details {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.kanban-size-large .kanban-card-footer {
  padding-top: 8px;
  font-size: 12px;
}

.drag-handle {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.drag-handle .material-symbols-outlined {
  font-size: 16px;
}

.kanban-card-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.kanban-card-vin {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-family: monospace;
  margin-bottom: 8px;
}

.kanban-outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 7px;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.kanban-outcome-badge .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 13px;
}

.kanban-outcome-badge.outcome-invoiced {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.kanban-outcome-badge.outcome-declined {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

/* VISTA 4: GALERÍA / CUADRÍCULA (2-COL) */
.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-card {
  position: relative;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.gallery-card:hover {
  transform: scale(1.02);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

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

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 21, 42, 0.2) 0%,
    rgba(0, 21, 42, 0.7) 60%,
    rgba(12, 40, 68, 0.95) 100%
  );
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.gallery-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-car-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
}

.gallery-car-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.gallery-mech-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--teal);
}

/* VEHICLE CARD */
.vehicle-card {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 248, 215, 0.4);
  box-shadow: var(--shadow-md);
}

.vehicle-card-cover-wrap {
  position: relative;
  width: 100%;
  height: 165px;
  background: radial-gradient(ellipse at center, #ffffff 0%, #f1f5f9 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vehicle-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.18);
  transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-card-cover {
  transform: scale(1.24);
}

.vehicle-card-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.06) 50%,
    rgba(10, 21, 42, 0.85) 100%
  );
  pointer-events: none;
}

.vehicle-card-cover-wrap .status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.cover-car-title {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

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

.car-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.car-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.pill-vin {
  font-family: monospace;
  color: var(--teal);
  background: rgba(124, 248, 215, 0.1);
}

/* STATUS-SPECIFIC CARD & LIST COLOR ACCENTS */
.vehicle-card.card-status-in_shop {
  border-color: rgba(245, 158, 11, 0.35);
  border-top: 3px solid #f59e0b;
}

.vehicle-card.card-status-in_shop:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.vehicle-card.card-status-in_progress {
  border-color: rgba(59, 130, 246, 0.45);
  border-top: 3px solid #3b82f6;
}

.vehicle-card.card-status-in_progress:hover {
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.vehicle-card.card-status-ready {
  border-color: rgba(16, 185, 129, 0.45);
  border-top: 3px solid #10b981;
}

.vehicle-card.card-status-ready:hover {
  border-color: #34d399;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.vehicle-card.card-status-delivered {
  border-color: rgba(168, 85, 247, 0.35);
  border-top: 3px solid #a855f7;
}

.vehicle-card.card-status-delivered:hover {
  border-color: #c084fc;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
}

/* COMPACT LIST ROW STATUS ACCENTS */
.compact-list-row.list-status-in_shop {
  border-left: 4px solid #f59e0b;
}

.compact-list-row.list-status-in_shop:hover {
  background: rgba(245, 158, 11, 0.08);
}

.compact-list-row.list-status-in_progress {
  border-left: 4px solid #3b82f6;
}

.compact-list-row.list-status-in_progress:hover {
  background: rgba(59, 130, 246, 0.08);
}

.compact-list-row.list-status-ready {
  border-left: 4px solid #10b981;
}

.compact-list-row.list-status-ready:hover {
  background: rgba(16, 185, 129, 0.08);
}

.compact-list-row.list-status-delivered {
  border-left: 4px solid #a855f7;
}

.compact-list-row.list-status-delivered:hover {
  background: rgba(168, 85, 247, 0.08);
}

/* VIBRANT STATUS BADGES */
.status-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-in_shop {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.18));
  color: #fbbf24;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.status-in_progress {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.18));
  color: #60a5fa;
  border: 1.5px solid #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.status-ready {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(5, 150, 105, 0.2));
  color: #34d399;
  border: 1.5px solid #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.status-delivered {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(126, 34, 206, 0.15));
  color: #c084fc;
  border: 1.5px solid #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.vehicle-card-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.detail-item .material-symbols-outlined {
  font-size: 16px;
  color: var(--teal);
  flex-shrink: 0;
}

/* PROMINENT MECHANIC SPOTLIGHT ON CARDS */
.card-mechanic-spotlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(12, 40, 68, 0.95), rgba(0, 21, 42, 0.9));
  border: 1.5px solid rgba(124, 248, 215, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.card-mechanic-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(124, 248, 215, 0.15), transparent 70%);
  pointer-events: none;
}

.card-mechanic-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.card-mechanic-avatar-big {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
  box-shadow: 0 0 14px rgba(124, 248, 215, 0.4);
}

.card-mechanic-status-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--teal);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
}

.card-mechanic-status-badge .material-symbols-outlined {
  font-size: 11px;
}

.card-mechanic-info {
  flex: 1;
  min-width: 0;
}

.card-mechanic-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.06em;
  display: block;
}

.card-mechanic-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 1px 0;
}

.card-mechanic-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

/* LIST VIEW BIG MECHANIC PROFILE */
.list-mech-profile-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 248, 215, 0.08);
  border: 1px solid rgba(124, 248, 215, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 4px;
  flex-shrink: 0;
}

.list-mech-avatar-big {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--teal);
}

.list-mech-text {
  display: flex;
  flex-direction: column;
}

.list-mech-lbl {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.list-mech-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.vehicle-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.assigned-mech {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
}

.assigned-mech strong {
  color: var(--white);
}

.view-timeline-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
}

/* ========================================================================= */
/* FULL-SCREEN SPA SCREENS (REPLACING FLOATING MODALS)                       */
/* ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #000e1c;
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  transform: translateY(16px);
  overflow: hidden;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-sheet {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100vh;
  background: linear-gradient(180deg, #00152a 0%, #000c17 100%);
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  transform: none;
  opacity: 1;
  margin: 0;
}

.modal-overlay.active .modal-sheet {
  transform: none;
  opacity: 1;
}

.large-sheet {
  max-width: 100%;
  max-height: 100vh;
}

.sheet-handle {
  display: none;
}

/* SCREEN TOP NAVIGATION HEADER */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 21, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 248, 215, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media(min-width: 768px) {
  .modal-header {
    padding: 16px 36px;
  }
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-screen-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 248, 215, 0.1);
  border: 1px solid rgba(124, 248, 215, 0.3);
  color: var(--teal);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-screen-back:hover {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 16px rgba(124, 248, 215, 0.4);
  transform: translateX(-2px);
}

.btn-screen-back .material-symbols-outlined {
  font-size: 18px;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.accent-icon {
  color: var(--teal);
  font-size: 28px;
}

.modal-title-wrap h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.modal-title-wrap p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.btn-close-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.modal-body {
  padding: 24px 16px 48px;
  overflow-y: auto;
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

@media(min-width: 768px) {
  .modal-body {
    padding: 32px 36px 64px;
  }
}

/* ========================================================================= */
/* CAMERA SCANNER VIEWPORT */
/* ========================================================================= */
.camera-viewport {
  position: relative;
  width: 100%;
  height: 240px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
  border: 2px solid rgba(124, 248, 215, 0.3);
}

.camera-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 3px;
  background: var(--teal);
  box-shadow: 0 0 16px var(--teal), 0 0 32px var(--teal);
  border-radius: 2px;
  animation: laserScan 2s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0%   { top: 15%; opacity: 0.9; }
  100% { top: 85%; opacity: 0.9; }
}

.scanner-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--teal);
  border-style: solid;
}
.scanner-corner.tl { top: 16px; left: 16px; border-width: 3px 0 0 3px; }
.scanner-corner.tr { top: 16px; right: 16px; border-width: 3px 3px 0 0; }
.scanner-corner.bl { bottom: 16px; left: 16px; border-width: 0 0 3px 3px; }
.scanner-corner.br { bottom: 16px; right: 16px; border-width: 0 3px 3px 0; }

.scanner-hint {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px;
  backdrop-filter: blur(4px);
}

/* QUICK PICK / DEMO VIN */
.vin-quick-pick {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.quick-pick-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip-btn {
  background: rgba(124, 248, 215, 0.1);
  border: 1px solid rgba(124, 248, 215, 0.25);
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.chip-btn:hover {
  background: var(--teal);
  color: var(--navy);
}

.manual-vin-row {
  display: flex;
  gap: 8px;
}

.manual-vin-row input {
  flex: 1;
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 0 12px;
  height: 40px;
  font-family: monospace;
  text-transform: uppercase;
  font-size: 12px;
  outline: none;
}

.btn-accent-sm {
  background: var(--teal);
  color: var(--navy);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* DECODED SPECS CARD */
.decoded-card {
  background: var(--navy-card);
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 14px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.decoded-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.decoded-badge.is-estimated {
  color: var(--warning);
}

.decoded-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
}

.decoded-vin-tag {
  font-family: monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.spec-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.vehicle-photo-preview {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.register-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

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

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}

.btn-confirm-save {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-confirm-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 248, 215, 0.4);
}

/* ========================================================================= */
/* HOJA DE VIDA / TIMELINE */
/* ========================================================================= */
.car-summary-banner {
  background: linear-gradient(135deg, rgba(12, 40, 68, 0.95), rgba(0, 21, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.car-summary-banner h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.car-vin-plate {
  display: flex;
  gap: 6px;
}

.vin-pill, .plate-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.vin-pill { font-family: monospace; color: var(--teal); }

.timeline-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .timeline-quick-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.btn-action-ocr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 248, 215, 0.25);
  transition: all var(--transition);
}

.btn-action-ocr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 248, 215, 0.4);
}

/* ========================================================================= */
/* ENHANCED STATUS DROPDOWN SELECTOR                                         */
/* ========================================================================= */
.status-updater-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 21, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.status-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  user-select: none;
}

.status-label .material-symbols-outlined {
  font-size: 15px;
  color: var(--teal);
}

.status-select-custom-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.status-live-dot {
  position: absolute;
  left: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  pointer-events: none;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-select-enhanced {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  border-radius: var(--radius-full);
  padding: 8px 36px 8px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.status-select-enhanced:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  transform: translateY(-1px);
}

.status-select-enhanced:focus {
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(124, 248, 215, 0.45);
}

.status-select-enhanced option {
  background: #00152a;
  color: var(--white);
  padding: 10px;
  font-weight: 600;
  font-size: 13px;
}

.status-select-arrow {
  position: absolute;
  right: 10px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.status-select-custom-wrap:hover .status-select-arrow {
  color: var(--white);
  transform: translateY(1px);
}

/* Status specific dynamic colors */
.status-theme-in_shop .status-live-dot { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.status-theme-in_shop .status-select-enhanced {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.status-theme-in_progress .status-live-dot { background: #3b82f6; box-shadow: 0 0 10px #3b82f6; }
.status-theme-in_progress .status-select-enhanced {
  border-color: rgba(59, 130, 246, 0.6);
  color: #60a5fa;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.3);
}

.status-theme-ready .status-live-dot { background: #10b981; box-shadow: 0 0 10px #10b981; }
.status-theme-ready .status-select-enhanced {
  border-color: rgba(16, 185, 129, 0.65);
  color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.status-theme-delivered .status-live-dot { background: #a855f7; box-shadow: 0 0 10px #a855f7; }
.status-theme-delivered .status-select-enhanced {
  border-color: rgba(168, 85, 247, 0.6);
  color: #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

/* ========================================================================= */
/* FORM SECTION CARDS & MULTI-COLUMN GRIDS                                   */
/* ========================================================================= */
.form-section-card {
  background: rgba(0, 21, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-section-header .material-symbols-outlined {
  color: var(--teal);
  font-size: 24px;
}

.form-section-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.form-section-header p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.form-row-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .form-row-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================================================= */
/* SMART NOTE BUILDER (INTERACTIVE CONTEXTUAL TAGS & CHIPS)                  */
/* ========================================================================= */
.notes-smart-builder {
  background: linear-gradient(135deg, rgba(12, 36, 62, 0.85), rgba(0, 21, 42, 0.95));
  border: 1.5px solid rgba(124, 248, 215, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.notes-builder-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media(min-width: 768px) {
  .notes-builder-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.notes-builder-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notes-builder-title .material-symbols-outlined {
  color: var(--teal);
  font-size: 26px;
}

.notes-builder-title h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
}

.notes-builder-title p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* Mode Switcher Tabs */
.notes-mode-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 4px;
}

.btn-note-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-note-tab:hover {
  color: var(--white);
}

.btn-note-tab.active {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(124, 248, 215, 0.35);
}

.btn-note-tab .material-symbols-outlined {
  font-size: 15px;
}

/* Dynamic Tags Grid */
.notes-tags-wrapper {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px;
}

.notes-categories-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 248, 215, 0.3) transparent;
}

.notes-categories-bar::-webkit-scrollbar {
  height: 4px;
}

.notes-categories-bar::-webkit-scrollbar-thumb {
  background: rgba(124, 248, 215, 0.3);
  border-radius: 4px;
}

.note-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

.note-cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(124, 248, 215, 0.3);
}

.note-cat-pill.active {
  background: linear-gradient(135deg, rgba(124, 248, 215, 0.25), rgba(0, 107, 88, 0.4));
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 0 10px rgba(124, 248, 215, 0.25);
}

.notes-tags-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.notes-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.note-tag-chip:hover {
  background: rgba(124, 248, 215, 0.12);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.note-tag-chip.active {
  background: linear-gradient(135deg, rgba(124, 248, 215, 0.25), rgba(0, 107, 88, 0.35));
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(124, 248, 215, 0.3);
}

.note-tag-chip .chip-icon {
  font-size: 14px;
}

.notes-textarea-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
  flex-wrap: wrap;
}

/* La descripción inteligente se edita directamente en este campo. */
#manualEventDesc {
  width: 100%;
  background: #ffffff;
  color: #000000;
  caret-color: #000000;
  border: 1px solid #cbd5e1;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

#manualEventDesc::placeholder {
  color: #64748b;
  opacity: 1;
}

#manualEventDesc:focus {
  background: #ffffff;
  color: #000000;
  border-color: var(--teal);
  outline: none;
}

.notes-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-voice-dictation {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(124, 248, 215, 0.12);
  border: 1px solid rgba(124, 248, 215, 0.4);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.btn-voice-dictation:hover {
  background: rgba(124, 248, 215, 0.22);
  border-color: var(--teal);
  box-shadow: 0 0 12px rgba(124, 248, 215, 0.35);
}

.btn-voice-dictation .mic-icon {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.btn-voice-dictation:active {
  transform: scale(0.96);
}

/* Dictating / Recording State (Active Mic) */
.btn-voice-dictation.recording {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  animation: pulseRecordingGlow 1.5s infinite;
}

.btn-voice-dictation.recording .mic-icon {
  color: #ef4444;
  animation: pulseRecordingMic 1s infinite alternate ease-in-out;
}

@keyframes pulseRecordingGlow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulseRecordingMic {
  0% { transform: scale(1); }
  100% { transform: scale(1.25); }
}

.btn-clear-notes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-clear-notes:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.btn-clear-notes .material-symbols-outlined {
  font-size: 13px;
}

/* ========================================================================= */
/* LARGE ERGONOMIC ACTION BUTTONS                                            */
/* ========================================================================= */
.form-actions-large-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--teal);
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 248, 215, 0.35);
  transition: all var(--transition);
  min-height: 52px;
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  background: #99fae4;
  box-shadow: 0 8px 30px rgba(124, 248, 215, 0.5);
}

.btn-primary-large .material-symbols-outlined {
  font-size: 22px;
}

.btn-secondary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 26px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 52px;
}

.btn-secondary-large:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary-large .material-symbols-outlined {
  font-size: 20px;
}

.work-order-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 20px;
}

.work-order-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--warning);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.work-order-header .material-symbols-outlined {
  font-size: 16px;
}

.work-order-box p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* ASSIGN / REASSIGN MECHANIC ROW */
.mech-assign-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.mech-assign-row label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.mech-assign-controls {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}

.mech-assign-controls select {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}

/* MECHANIC TEAM (multiple mechanics can be assigned to one vehicle) */
.mech-team-section {
  margin-bottom: 16px;
  background: rgba(0, 21, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
}

.timeline-mech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.timeline-mech-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-mech-lbl .material-symbols-outlined {
  font-size: 16px;
}

.mech-team-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(124, 248, 215, 0.15);
  color: var(--teal);
  border: 1px solid rgba(124, 248, 215, 0.3);
}

.mech-team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mech-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(12, 40, 68, 0.9), rgba(0, 21, 42, 0.9));
  border: 1px solid rgba(124, 248, 215, 0.35);
  box-shadow: 0 0 10px rgba(124, 248, 215, 0.15);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

.mech-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
  flex-shrink: 0;
}

.mech-chip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mech-chip-info strong {
  font-size: 12px;
  color: var(--white);
}

.mech-chip-info span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.mech-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 4px;
  transition: all var(--transition);
}

.mech-chip-remove:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #ffffff;
  transform: scale(1.1);
}

.mech-chip-remove .material-symbols-outlined {
  font-size: 14px;
}

/* Visual Mechanic Assignment Cards Grid */
.mech-assign-cards-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mech-assign-cards-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.mech-assign-cards-title .material-symbols-outlined {
  font-size: 15px;
  color: var(--teal);
}

.mech-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.timeline-mech-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.timeline-mech-card:hover {
  background: rgba(124, 248, 215, 0.06);
  border-color: rgba(124, 248, 215, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.timeline-mech-card.assigned {
  background: linear-gradient(135deg, rgba(12, 40, 68, 0.9), rgba(0, 30, 50, 0.9));
  border-color: var(--teal);
  box-shadow: 0 0 14px rgba(124, 248, 215, 0.25);
}

.timeline-mech-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.timeline-mech-card.assigned .timeline-mech-card-avatar {
  border-color: var(--teal);
}

.timeline-mech-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.timeline-mech-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-mech-card-spec {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.timeline-mech-card-workload {
  font-size: 9px;
  color: var(--teal);
  margin-top: 2px;
  font-weight: 600;
}

.timeline-mech-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.timeline-mech-card.assigned .timeline-mech-card-badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #10b981;
}

.timeline-mech-card:not(.assigned) .timeline-mech-card-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.timeline-mech-card:not(.assigned):hover .timeline-mech-card-badge {
  background: rgba(124, 248, 215, 0.2);
  border-color: var(--teal);
  color: var(--teal);
}

/* Small "+N" pill next to a primary mechanic avatar when a vehicle has
   more than one mechanic assigned — used across Cards/List/Kanban/Grid. */
.mech-extra-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--teal);
  color: var(--navy-dark, #00152a);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  padding: 3px 5px;
  border: 1.5px solid var(--navy-dark, #00152a);
}

/* MAINTENANCE RECOMMENDATIONS & OPTIONAL INSPECTION CHECKLIST */
.recommendations-box {
  background: var(--navy-card);
  border: 1px solid rgba(124, 248, 215, 0.18);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.recommendations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.recommendations-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recommendations-header-title .material-symbols-outlined {
  font-size: 20px;
}

.rec-optional-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(124, 248, 215, 0.12);
  color: var(--teal);
  border: 1px solid rgba(124, 248, 215, 0.3);
  text-transform: uppercase;
}

.checklist-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-rec-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-rec-action:hover {
  background: rgba(124, 248, 215, 0.18);
  border-color: var(--teal);
  color: var(--teal);
}

.btn-rec-action .material-symbols-outlined {
  font-size: 14px;
}

.btn-rec-log-all {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-rec-log-all:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #34d399;
  color: #fff;
}

.recommendations-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 6px 0 14px;
  line-height: 1.4;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.recommendation-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(124, 248, 215, 0.2);
}

.recommendation-item.is-checked {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.recommendation-item.is-checked .recommendation-title {
  color: #a7f3d0;
  text-decoration: line-through rgba(255, 255, 255, 0.4);
}

.rec-checkbox-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.rec-checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.recommendation-item.is-checked .rec-checkbox-custom {
  background: #10b981;
  border-color: #10b981;
}

.rec-checkbox-custom .material-symbols-outlined {
  font-size: 15px !important;
  color: #fff !important;
  display: none;
}

.recommendation-item.is-checked .rec-checkbox-custom .material-symbols-outlined {
  display: block;
}

.recommendation-item .material-symbols-outlined {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.recommendation-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.recommendation-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.2s;
}

.recommendation-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rec-mileage-pill {
  background: rgba(124, 248, 215, 0.12);
  border: 1px solid rgba(124, 248, 215, 0.3);
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.rec-mileage-pill:hover {
  background: var(--teal);
  color: #061325;
}

.rec-mileage-pill .material-symbols-outlined {
  font-size: 12px !important;
  color: inherit !important;
}

.rec-remaining-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.rec-remaining-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.rec-remaining-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.rec-remaining-ok {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rec-remaining-info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.recommendations-smart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.recommendations-smart-loading .material-symbols-outlined {
  color: var(--teal);
  animation: pulse 1.4s ease-in-out infinite;
}

.recommendation-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.recommendation-source .material-symbols-outlined {
  color: #60a5fa !important;
  font-size: 13px !important;
}

.recommendation-source a { color: #93c5fd; text-decoration: none; }
.recommendation-source a:hover { text-decoration: underline; }
.recommendation-source strong { color: var(--teal); }
.recommendation-source-note { width: 100%; font-size: 10px; color: rgba(255, 255, 255, 0.46); }

.recommendation-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.recommendation-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.btn-rec-quick-note {
  background: rgba(124, 248, 215, 0.1);
  border: 1px solid rgba(124, 248, 215, 0.25);
  color: var(--teal);
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-rec-quick-note > span:not(.material-symbols-outlined) {
  font-size: 10px;
  font-weight: 800;
}

.btn-rec-quick-note:hover {
  background: var(--teal);
  color: #061325;
}

.btn-rec-quick-note .material-symbols-outlined {
  font-size: 16px !important;
  color: inherit !important;
}

.btn-rec-delete-custom {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.btn-rec-delete-custom:hover {
  color: #ef4444;
}

.recommendation-item.rec-warning .material-symbols-outlined {
  color: var(--warning);
}
.recommendation-item.rec-warning .recommendation-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.recommendation-item.rec-danger {
  background: rgba(239, 68, 68, 0.08);
}
.recommendation-item.rec-danger .material-symbols-outlined {
  color: var(--danger);
}
.recommendation-item.rec-danger .recommendation-badge {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.recommendation-item.rec-ok .material-symbols-outlined {
  color: var(--success);
}

/* NHTSA REAL-TIME TELEMETRY & LIVE ALERTS */
.nhtsa-live-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 10px 0 14px;
}

.nhtsa-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.nhtsa-live-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
}

.nhtsa-live-heading-text {
  color: #fbbf24;
  letter-spacing: 0.02em;
}

.pulse-icon-amber {
  color: #f59e0b;
  font-size: 18px !important;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.nhtsa-pill-recalls {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.nhtsa-pill-complaints {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.btn-nhtsa-view-all {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-nhtsa-view-all:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  color: #fff;
}

.btn-nhtsa-view-all .material-symbols-outlined {
  font-size: 14px;
}

.nhtsa-live-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nhtsa-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nhtsa-chip.severity-high {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.nhtsa-chip.severity-medium {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
}

.nhtsa-chip-count {
  font-weight: 800;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
}

.rec-nhtsa-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
}

.rec-nhtsa-tag .material-symbols-outlined {
  font-size: 12px !important;
  color: #fbbf24 !important;
}

/* NHTSA MODAL DETAILS */
#nhtsaDiagnosticsModal {
  z-index: 1200;
}

.nhtsa-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.nhtsa-stat-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nhtsa-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.nhtsa-stat-val {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
}

.nhtsa-stat-label {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.nhtsa-section-header h4 {
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 4px;
}

.nhtsa-section-header p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.nhtsa-components-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.nhtsa-component-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.nhtsa-component-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.nhtsa-comp-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.nhtsa-comp-icon {
  font-size: 24px;
}

.nhtsa-comp-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 2px;
}

.nhtsa-comp-action {
  font-size: 11px;
  color: #94a3b8;
}

.nhtsa-comp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-nhtsa-to-check {
  background: rgba(124, 248, 215, 0.12);
  border: 1px solid rgba(124, 248, 215, 0.35);
  color: var(--teal);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-add-nhtsa-to-check:hover {
  background: var(--teal);
  color: #041226;
}

.nhtsa-reports-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.nhtsa-report-item {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 11px;
}

.nhtsa-report-comp {
  font-weight: 800;
  color: #fde68a;
  margin-bottom: 3px;
}

.nhtsa-report-text {
  color: #cbd5e1;
  line-height: 1.4;
}

/* SMART COMPONENT SERVICE & LIFESPAN MODAL */
#smartComponentServiceModal {
  z-index: 99999 !important;
}

.smart-reset-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.smart-reset-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.smart-reset-header .material-symbols-outlined {
  font-size: 28px;
  color: #34d399;
}

.smart-reset-header strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
}

.smart-reset-header p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.btn-smart-reset-today {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-smart-reset-today:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.smart-section-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.smart-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.smart-section-label .material-symbols-outlined {
  font-size: 16px;
}

.smart-life-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.smart-life-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.smart-life-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.smart-life-chip.selected {
  background: rgba(124, 248, 215, 0.2);
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 0 10px rgba(124, 248, 215, 0.25);
}

.smart-numeric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.smart-input-number {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.smart-input-number:focus {
  border-color: var(--teal);
  box-shadow: 0 0 8px rgba(124, 248, 215, 0.3);
}

.smart-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.smart-category-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.smart-category-chip:hover {
  background: rgba(124, 248, 215, 0.15);
  border-color: var(--teal);
  color: #ffffff;
}

.smart-category-chip.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: #041226;
  font-weight: 700;
}

.smart-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 12px;
  outline: none;
  resize: vertical;
}

.smart-textarea:focus {
  border-color: var(--teal);
}

.smart-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.btn-smart-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-smart-submit {
  background: var(--teal);
  color: #041226;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-smart-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.timeline-heading {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* TIMELINE TRACK */
.timeline-track {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  width: 2px;
  background: rgba(124, 248, 215, 0.25);
}

.timeline-card {
  position: relative;
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.timeline-node-icon {
  position: absolute;
  left: -28px;
  top: 14px;
  width: 20px;
  height: 20px;
  background: var(--navy);
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-node-icon::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.timeline-event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.timeline-event-title {
  font-size: 14px;
  font-weight: 800;
}

.timeline-event-cost {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--teal);
}

.timeline-event-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.timeline-event-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  white-space: pre-line;
}

.timeline-items-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.item-pill {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ========================================================================= */
/* INVOICE OCR MODAL */
/* ========================================================================= */
.invoice-cam-view {
  height: 280px;
}

.camera-actions-bar {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 16px;
}

.btn-snap-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition);
}

.btn-snap-photo:hover {
  transform: scale(1.08);
}

.shutter-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
}

.btn-upload-file,
.btn-demo-invoice {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.ocr-processing-card {
  text-align: center;
  padding: 32px 16px;
}

.ocr-processing-card .material-symbols-outlined {
  font-size: 48px;
  color: var(--teal);
  margin-bottom: 12px;
}

.ocr-processing-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.ocr-processing-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.ocr-result-card {
  background: var(--navy-card);
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 16px;
  animation: slideUp 0.3s ease;
}

.ocr-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.ocr-total {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--teal);
}

.ocr-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.ocr-review-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ocr-review-warning .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
}

.ocr-meta-grid-edit {
  grid-template-columns: repeat(2, 1fr);
  background: transparent;
  padding: 0;
}

.meta-field-edit label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.meta-field-edit input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--white);
  font-size: 12px;
}

.ocr-item-row input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 12px;
  padding: 6px 8px;
}

.ocr-item-row .ocr-item-desc {
  flex: 1;
  min-width: 0;
  margin-right: 6px;
}

.ocr-item-row .ocr-item-qty {
  width: 44px;
  margin-right: 6px;
}

.ocr-item-row .ocr-item-price {
  width: 72px;
  margin-right: 6px;
}

.btn-remove-ocr-item {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.btn-remove-ocr-item .material-symbols-outlined {
  font-size: 18px;
}

.btn-add-ocr-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--teal);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.btn-add-ocr-item .material-symbols-outlined {
  font-size: 16px;
}

.ocr-items-list-wrap {
  margin-bottom: 16px;
}

.ocr-items-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ocr-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ocr-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.ocr-item-row .price {
  font-weight: 700;
  color: var(--teal);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-card);
  border: 1px solid var(--teal);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10000;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ========================================================================= */
/* MECHANIC MANAGEMENT & PROFILE AVATARS */
/* ========================================================================= */
.mechanic-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

.mechanics-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mechanics-header-bar h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.mechanics-header-bar p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.mechanics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ADMIN DASHBOARD */
.dashboard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.dashboard-header-bar h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.dashboard-header-bar p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.kpi-card {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-card.kpi-accent {
  border-color: rgba(124, 248, 215, 0.35);
  background: linear-gradient(135deg, rgba(124, 248, 215, 0.1), var(--navy-card) 60%);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(124, 248, 215, 0.12);
  color: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon .material-symbols-outlined {
  font-size: 24px;
}

.kpi-body {
  min-width: 0;
}

.kpi-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.kpi-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.kpi-sub {
  font-size: 11px;
  color: var(--teal);
  margin-top: 2px;
}

@media (min-width: 640px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DASHBOARD CHARTS */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.chart-card {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
}

.chart-card-header {
  margin-bottom: 12px;
}

.chart-card-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chart-canvas-wrap {
  position: relative;
  height: 240px;
}

@media (min-width: 900px) {
  .charts-grid {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 600px) {
  .mechanics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mechanic-card {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.mechanic-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mechanic-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124, 248, 215, 0.4);
}

.mechanic-card-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}

.mechanic-card-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.mechanic-card-actions {
  display: flex;
  gap: 6px;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon-sm:hover {
  background: var(--teal);
  color: var(--navy);
}

.btn-icon-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.timeline-assigned-mechanic-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(124, 248, 215, 0.08);
  border: 1px solid rgba(124, 248, 215, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.timeline-mech-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

.timeline-mech-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.timeline-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-author-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-action-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--teal);
}

.btn-danger-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger-icon:hover {
  background: var(--danger);
  color: #fff;
}

/* ========================================================================= */
/* PREMIUM MECHANIC PROFILE & MODAL */
/* ========================================================================= */
.mechanic-hero-preview {
  background: linear-gradient(135deg, rgba(12, 40, 68, 0.9), rgba(0, 21, 42, 0.95));
  border: 1px solid rgba(124, 248, 215, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.mechanic-hero-preview::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(124, 248, 215, 0.15), transparent 70%);
  pointer-events: none;
}

.avatar-ring-wrap {
  position: relative;
  flex-shrink: 0;
}

.live-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--teal);
  box-shadow: 0 0 20px rgba(124, 248, 215, 0.35);
  transition: all var(--transition);
}

.verified-mechanic-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--teal);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
}

.verified-mechanic-badge .material-symbols-outlined {
  font-size: 14px;
}

.mechanic-hero-meta {
  flex: 1;
  min-width: 0;
}

.mechanic-hero-meta h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 3px;
}

.mechanic-title-badge {
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 6px;
}

.mechanic-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 550px) {
  .form-row-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-label-with-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hint-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .material-symbols-outlined {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 38px !important;
  width: 100%;
}

.custom-avatar-url-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.custom-avatar-url-row .material-symbols-outlined {
  position: absolute;
  left: 10px;
  color: var(--teal);
  font-size: 16px;
  pointer-events: none;
}

.custom-avatar-url-row input {
  padding-left: 32px !important;
  font-size: 11px;
  width: 100%;
  background: rgba(0, 0, 0, 0.3) !important;
}

.specialties-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.specialty-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition);
}

.specialty-chip input {
  accent-color: var(--teal);
  width: 14px;
  height: 14px;
}

.specialty-chip:hover {
  background: rgba(124, 248, 215, 0.08);
  border-color: var(--teal);
}

/* MECHANIC PHOTO UPLOADER */
.mech-photo-uploader-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1.5px dashed rgba(124, 248, 215, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all var(--transition);
}

.mech-photo-uploader-box:hover {
  border-color: var(--teal);
  background: rgba(124, 248, 215, 0.04);
}

.mech-photo-preview-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--teal);
  box-shadow: 0 0 12px rgba(124, 248, 215, 0.3);
}

#mechUploadThumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 21, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--transition);
}

.mech-photo-preview-wrap:hover .photo-upload-overlay {
  opacity: 1;
}

.photo-upload-overlay .material-symbols-outlined {
  font-size: 24px;
}

.mech-photo-uploader-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-upload-mech-photo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(124, 248, 215, 0.2), rgba(0, 107, 88, 0.35));
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  width: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-upload-mech-photo:hover {
  background: var(--teal);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 248, 215, 0.35);
}

.btn-upload-mech-photo .material-symbols-outlined {
  font-size: 18px;
}

/* ========================================================================= */
/* CLIENTS CRM MODULE (PREMIUM DIRECTORY & FLEET GARAGE) */
/* ========================================================================= */
.clients-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.clients-header-title h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.clients-header-title p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.clients-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ULTRA-PREMIUM CLIENT SEARCH BOX */
.client-search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(13, 33, 56, 0.85), rgba(7, 20, 36, 0.95));
  border: 1.5px solid rgba(124, 248, 215, 0.22);
  border-radius: 14px;
  padding: 4px 10px 4px 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 48px;
}

.client-search-box:hover {
  border-color: rgba(124, 248, 215, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 12px rgba(124, 248, 215, 0.15);
}

.client-search-box:focus-within {
  border-color: var(--teal, #7cf8d7);
  background: linear-gradient(135deg, rgba(16, 42, 70, 0.95), rgba(10, 26, 46, 0.98));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(124, 248, 215, 0.25);
  transform: translateY(-1px);
}

.search-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124, 248, 215, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
  border: 1px solid rgba(124, 248, 215, 0.2);
  transition: all 0.25s ease;
}

.client-search-box:focus-within .search-icon-badge {
  background: var(--teal, #7cf8d7);
  box-shadow: 0 2px 10px rgba(124, 248, 215, 0.4);
}

.search-icon-badge .search-icon {
  font-size: 20px;
  color: var(--teal, #7cf8d7);
  transition: color 0.25s ease;
}

.client-search-box:focus-within .search-icon-badge .search-icon {
  color: var(--navy-dark, #00152a);
}

#clientSearchInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white, #ffffff);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  padding: 0 6px;
  letter-spacing: 0.01em;
}

#clientSearchInput::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12.5px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

#clientSearchInput:focus::placeholder {
  opacity: 0.6;
}

.btn-clear-search {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-right: 6px;
}

.btn-clear-search:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.1);
}

.btn-clear-search .material-symbols-outlined {
  font-size: 18px;
}

.search-kbd-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
}

.search-kbd-badge .material-symbols-outlined {
  font-size: 12px;
  color: var(--teal, #7cf8d7);
}

.client-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.btn-client-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-client-filter.active {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(124, 248, 215, 0.25);
}

.client-view-switcher {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 3px;
  display: inline-flex;
  gap: 2px;
}

.btn-client-view-mode {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
}

.btn-client-view-mode .material-symbols-outlined {
  font-size: 15px;
}

.btn-client-view-mode.active {
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(124, 248, 215, 0.3);
}

/* CLIENT GRID CONTAINER & 4 VIEW MODES */
.clients-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.clients-grid.client-view-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .clients-grid.client-view-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2. CLIENT LIST VIEW (Directorio Telefónico) */
.clients-grid.client-view-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-list-row {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition);
  flex-wrap: wrap;
}

.client-list-row:hover {
  border-color: var(--teal);
  background: rgba(0, 21, 42, 0.85);
  transform: translateX(3px);
}

.client-list-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.client-list-name {
  font-size: 14px;
  color: var(--white);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.client-list-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  flex-wrap: wrap;
}

.client-list-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-list-badge-cars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.client-list-actions {
  display: flex;
  gap: 6px;
}

/* 3. FLOTAS Y GARAGES VIEW */
.clients-grid.client-view-garages {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.client-fleet-showcase-card {
  background: var(--navy-card);
  border: 1.5px solid rgba(124, 248, 215, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.fleet-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.fleet-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.fleet-car-tile {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.fleet-car-tile:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124, 248, 215, 0.2);
}

.fleet-car-tile-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.fleet-car-tile-body {
  padding: 8px 10px;
}

.fleet-car-tile-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4. TABLA VIP VIEW */
.clients-grid.client-view-table {
  display: block;
}

.client-table-container {
  width: 100%;
  overflow-x: auto;
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.client-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.client-data-table th {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.client-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}

.client-data-table tr:hover td {
  background: rgba(124, 248, 215, 0.04);
}

.client-card {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.client-card:hover {
  border-color: rgba(124, 248, 215, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.client-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.client-profile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d3b66, var(--teal));
  color: var(--navy);
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--teal);
  flex-shrink: 0;
}

.client-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2px;
}

.client-type-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(124, 248, 215, 0.1);
  color: var(--teal);
  border: 1px solid rgba(124, 248, 215, 0.25);
}

.client-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius-md);
}

.client-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

.client-contact-item:hover {
  color: var(--teal);
}

.client-contact-item .material-symbols-outlined {
  font-size: 14px;
  color: var(--teal);
}

/* CLIENT'S OWNED VEHICLES GARAGE */
.client-garage-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.client-garage-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.client-vehicles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client-car-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: all var(--transition);
}

.client-car-row:hover {
  background: rgba(124, 248, 215, 0.08);
  border-color: var(--teal);
}

.client-car-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-car-thumb {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.client-car-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.client-car-plate {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.client-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  font-size: 11px;
}

.client-spend-stat {
  color: var(--teal);
  font-weight: 800;
}

/* VEHICLE TIME-IN-SHOP TIMER (DÍAS EN TALLER) */
.vehicle-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(124, 248, 215, 0.1);
  border: 1px solid rgba(124, 248, 215, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.vehicle-timer .material-symbols-outlined {
  font-size: 14px;
}

.vehicle-timer.timer-warning {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
}

.vehicle-timer.timer-danger {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
}

.list-car-right .vehicle-timer {
  order: -1;
  margin-right: 2px;
}

/* LOGIN SCREEN */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 30% 20%, rgba(124, 248, 215, 0.08), transparent 55%), var(--navy-dark);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
  margin: 0 auto 14px;
}

.login-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.login-title span {
  color: var(--teal);
}

.login-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 4px 0 24px;
}

.login-card .form-group {
  text-align: left;
  margin-bottom: 14px;
}

.login-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 12px;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 14px;
  text-align: left;
}

.login-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.quick-login-row {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.quick-login-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.quick-login-btns {
  display: flex;
  gap: 8px;
}

.quick-login-btns .btn-role {
  flex: 1;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 8px;
}

.quick-login-btns .btn-role:hover {
  background: rgba(124, 248, 215, 0.12);
  color: var(--teal);
}

/* SESSION INDICATOR */
.session-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-user-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================================================= */
/* 📱 100% FULL RESPONSIVE & MOBILE-FIRST OPTIMIZATION (IOS & ANDROID)       */
/* ========================================================================= */

/* Prevent iOS tap zoom on input fields */
/* Tablet: Kanban with 2-3 columns */
@media (max-width: 1024px) and (min-width: 769px) {
  .view-kanban {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    width: 100% !important;
    overflow-x: visible !important;
  }

  .kanban-column {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Header & Tabs on Mobile */
.admin-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding-bottom: 2px;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* View Switchers on Mobile */
.view-mode-selector,
.client-view-switcher {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  max-width: 100%;
}

.view-mode-selector::-webkit-scrollbar,
.client-view-switcher::-webkit-scrollbar {
  display: none;
}

.btn-view-mode,
.btn-client-view-mode {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Filter Chips on Mobile */
.client-filter-chips {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.client-filter-chips::-webkit-scrollbar {
  display: none;
}

/* Mobile Screens Adjustments (< 768px) */
@media (max-width: 768px) {
  .app-container {
    padding: 12px 10px 70px;
  }

  .header-content {
    padding: 0 4px;
  }

  .brand-title {
    font-size: 16px;
  }

  .action-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px 14px;
  }

  .action-banner h2 {
    font-size: 16px;
  }

  .btn-primary-action {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 12px;
  }

  /* Stats Row 3 columns fit snugly */
  .stats-row {
    gap: 6px;
    margin-bottom: 14px;
  }

  .stat-card {
    padding: 8px 6px;
    gap: 6px;
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    width: 28px;
    height: 28px;
  }

  .stat-icon .material-symbols-outlined {
    font-size: 16px;
  }

  .stat-num {
    font-size: 15px;
  }

  .stat-lbl {
    font-size: 8px;
  }

  /* Toolbar Stack */
  .toolbar,
  .clients-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-box,
  .client-search-box {
    width: 100%;
    min-width: 100%;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group select {
    width: 100%;
  }

  /* Mobile Swipable Kanban Columns */
  .view-kanban {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    padding-bottom: 14px !important;
    grid-template-columns: unset !important;
  }

  .view-kanban .kanban-column {
    flex: 0 0 85vw !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
  }

  /* Vehicle Card Details 2-col on mobile */
  .vehicle-card-details {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px 10px;
  }

  .detail-item {
    font-size: 10px;
  }

  .card-mechanic-spotlight {
    padding: 8px 10px;
    gap: 8px;
  }

  .card-mechanic-avatar-wrap {
    width: 40px;
    height: 40px;
  }

  .card-mechanic-avatar-big {
    width: 40px;
    height: 40px;
  }

  .card-mechanic-name {
    font-size: 13px;
  }

  /* Compact List Row on Mobile */
  .compact-list-row {
    padding: 10px;
    gap: 8px;
  }

  .list-car-thumb {
    width: 46px;
    height: 34px;
  }

  .list-car-title {
    font-size: 12px;
  }

  .list-car-meta {
    font-size: 10px;
  }

  .list-mech-profile-wrap {
    padding: 2px 6px 2px 2px;
  }

  .list-mech-avatar-big {
    width: 28px;
    height: 28px;
  }

  .list-mech-name {
    font-size: 10px;
  }

  /* Clients CRM on Mobile */
  .client-card {
    padding: 12px;
  }

  .client-avatar-initials {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .client-contact-row {
    gap: 6px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .client-list-row {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .client-list-right {
    justify-content: space-between;
    width: 100%;
  }

  /* Floating Modals Centered on Mobile */
  .modal-overlay {
    padding: 8px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-sheet {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94vh !important;
    border-radius: 16px !important;
  }

  .modal-header {
    padding: 12px 14px !important;
  }

  .modal-header h3 {
    font-size: 15px !important;
  }

  .modal-body {
    padding: 14px !important;
  }

  .form-row-2col,
  .specs-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .car-summary-banner {
    padding: 14px !important;
  }

  .car-summary-title {
    font-size: 15px !important;
  }

  .car-summary-vin {
    font-size: 11px !important;
  }

  .car-summary-specs {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .spec-box {
    padding: 6px !important;
  }

  .timeline-event-card {
    padding: 10px 12px !important;
  }
}

/* ========================================================================= */
/* 🖨️ PRINTABLE DELIVERY REPORT & WORK ORDER STYLES                         */
/* ========================================================================= */
.printable-invoice-sheet {
  background: #ffffff;
  color: #1a202c;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 800px;
  margin: 0 auto;
}

.print-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.print-shop-brand {
  font-size: 18px;
  font-weight: 900;
  color: #00152a;
  letter-spacing: -0.02em;
}

.print-logo-text {
  color: #0d9488;
  font-weight: 900;
}

.print-shop-sub {
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  margin-top: 2px;
}

.print-shop-contact {
  font-size: 10px;
  color: #6b7280;
  margin-top: 4px;
}

.print-doc-badge {
  text-align: right;
}

.print-badge-title {
  font-size: 13px;
  font-weight: 900;
  color: #0d9488;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.print-badge-num {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  font-family: monospace;
}

.print-badge-date {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.print-divider {
  border: none;
  border-top: 1.5px solid #e5e7eb;
  margin: 16px 0;
}

.print-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.print-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.print-box-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #4b5563;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
}

.print-meta-table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
}

.print-meta-table td {
  padding: 2px 0;
  color: #374151;
}

.print-meta-table td:first-child {
  width: 90px;
  color: #6b7280;
}

.print-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f2937;
  margin: 14px 0 8px;
}

.print-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 14px;
}

.print-items-table th {
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #d1d5db;
}

.print-items-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}

.print-items-table tfoot td {
  border-top: 2px solid #d1d5db;
  padding: 10px;
}

.print-warranty-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #115e59;
  font-size: 10px;
  line-height: 1.4;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.print-signatures-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  padding-top: 10px;
}

.print-signature-box {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #4b5563;
  font-weight: 600;
}

.print-sign-line {
  border-top: 1.5px solid #9ca3af;
  margin-bottom: 6px;
  height: 36px;
}

/* Professional automotive invoice layout */
.printable-invoice-sheet {
  --invoice-navy: #102a43;
  --invoice-blue: #1479b8;
  --invoice-light: #edf4f8;
  padding: 28px 30px;
  color: #17212b;
}

.print-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.print-brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--invoice-navy);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.04em;
  border-bottom: 6px solid var(--invoice-blue);
}

.print-shop-brand {
  font-size: 20px;
  color: var(--invoice-navy);
  letter-spacing: 0.02em;
}

.print-shop-sub {
  color: var(--invoice-blue);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.print-shop-contact {
  font-size: 9px;
  line-height: 1.45;
}

.print-doc-badge {
  min-width: 210px;
  padding-left: 18px;
  border-left: 1px solid #d7e1e8;
}

.print-badge-title {
  color: var(--invoice-navy);
  font-size: 15px;
}

.print-badge-num {
  color: var(--invoice-blue);
  font-size: 18px;
  margin-top: 3px;
}

.print-status-pill {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.print-accent-rule {
  height: 5px;
  margin: 18px 0;
  background: linear-gradient(90deg, var(--invoice-blue) 0 34%, var(--invoice-navy) 34% 100%);
}

.print-vehicle-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 140px;
  padding: 8px 16px 8px 0;
  margin-bottom: 18px;
  background: var(--invoice-light);
  border-left: 5px solid var(--invoice-blue);
  border-radius: 6px;
  overflow: hidden;
}

.print-vehicle-image {
  width: 230px;
  height: 135px;
  object-fit: cover;
  object-position: center 25%;
  flex-shrink: 0;
  background: #ffffff;
}

.print-vehicle-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.print-eyebrow {
  color: var(--invoice-blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.print-vehicle-heading strong {
  color: var(--invoice-navy);
  font-size: 18px;
  line-height: 1.25;
}

.print-vehicle-heading > span:last-of-type {
  margin-top: 2px;
  color: #52606d;
  font-size: 10px;
  font-weight: 500;
}

.print-plate-wrap {
  display: inline-block;
  align-self: center;
  min-width: 95px;
  margin-top: 6px;
  padding: 4px 10px;
  text-align: center;
  border: 1.5px solid var(--invoice-navy);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.print-plate-wrap span {
  display: block;
  color: #6b7280;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.print-plate-wrap strong {
  display: block;
  margin-top: 1px;
  color: var(--invoice-navy);
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  margin-left: auto;
  min-width: 105px;
  min-height: 80px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.print-brand-logo {
  max-width: 95px;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.print-grid-2col {
  gap: 10px;
  margin-bottom: 16px;
}

.print-box {
  padding: 10px 12px;
  border-color: #d8e2e9;
  background: #fff;
  border-radius: 4px;
}

.print-box-title {
  color: var(--invoice-blue);
  font-size: 8px;
  border-bottom-color: #d8e2e9;
}

.print-meta-table {
  font-size: 9px;
}

.print-meta-table td {
  padding: 3px 0;
  vertical-align: top;
}

.print-meta-table td:first-child {
  width: 72px;
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.print-vin {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.print-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 18px 0 7px;
}

.print-section-heading > div {
  display: flex;
  flex-direction: column;
}

.print-section-heading span:first-child {
  color: var(--invoice-navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.print-section-heading small,
.print-invoice-vendor {
  color: #6b7280;
  font-size: 8px;
  font-weight: 500;
}

.print-items-table {
  table-layout: fixed;
  font-size: 9px;
}

.print-items-table th {
  padding: 7px 8px;
  color: #fff;
  background: var(--invoice-navy);
  border: 0;
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.print-items-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #dfe7ec;
  vertical-align: top;
}

.print-items-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.print-col-type {
  width: 68px;
}

.print-col-number {
  width: 45px;
  text-align: center !important;
}

.print-col-money {
  width: 76px;
  text-align: right !important;
}

.print-report-date-col {
  width: 78px;
}

.print-report-type-col {
  width: 105px;
}

.print-report-date {
  color: #52606d !important;
  font-size: 8px;
  white-space: nowrap;
}

.print-item-description strong,
.print-item-description small {
  display: block;
}

.print-item-description strong {
  color: #17212b;
  font-size: 9px;
  line-height: 1.3;
}

.print-item-description small {
  margin-top: 2px;
  color: #697886;
  font-size: 7.5px;
  line-height: 1.35;
  white-space: pre-line;
}

.print-item-type {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  color: #075985;
  background: #e0f2fe;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.print-number-cell {
  text-align: center;
}

.print-money-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.print-line-total {
  color: var(--invoice-navy);
  font-weight: 800;
}

.print-empty-items {
  padding: 20px !important;
  color: #6b7280 !important;
  text-align: center;
  font-style: italic;
}

.print-technical-summary {
  margin: 13px 0 18px;
  padding: 9px 12px;
  border-left: 4px solid var(--invoice-blue);
  background: var(--invoice-light);
  color: #334e68;
  font-size: 8px;
  line-height: 1.45;
}

.print-after-items {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: start;
  gap: 18px;
  margin: 14px 0 18px;
}

.print-observations {
  padding: 10px 12px;
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
  color: #52606d;
  font-size: 8px;
  line-height: 1.45;
}

.print-observations > strong {
  color: var(--invoice-navy);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.print-observations p {
  margin: 4px 0 0;
}

.print-totals-box {
  padding: 12px 14px;
  border: 1px solid #d8e2e9;
  background: #fff;
}

.print-totals-box > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0;
  color: #52606d;
  font-size: 9px;
}

.print-grand-total {
  margin-top: 6px;
  padding-top: 9px !important;
  border-top: 2px solid var(--invoice-navy);
  color: var(--invoice-navy) !important;
  font-size: 12px !important;
  font-weight: 900;
}

.print-grand-total strong {
  color: var(--invoice-blue);
  font-size: 17px;
}

.print-warranty-box {
  margin-bottom: 18px;
  padding: 9px 11px;
  color: #334e68;
  background: var(--invoice-light);
  border: 0;
  border-radius: 3px;
  font-size: 7.5px;
}

.print-warranty-box strong {
  display: block;
  margin-bottom: 2px;
  color: var(--invoice-navy);
  letter-spacing: 0.05em;
}

.print-signatures-row {
  gap: 55px;
  margin-top: 18px;
}

.print-signature-box {
  font-size: 8px;
}

.print-sign-line {
  height: 30px;
}

.print-footer-note {
  margin-top: 18px;
  padding-top: 7px;
  border-top: 1px solid #d8e2e9;
  color: #7b8794;
  text-align: center;
  font-size: 7px;
}

.invoice-print-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invoice-print-modal-body {
  padding: 16px;
}

.invoice-document-summary-wrap {
  display: grid;
  grid-template-columns: 1fr 275px;
  align-items: start;
  gap: 18px;
  margin: 14px 0 18px;
}

.invoice-tax-note {
  margin: 0;
}

.print-col-category {
  width: 78px;
  text-align: center !important;
}

.invoice-category-cell {
  text-align: center;
}

.invoice-category-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin: 0 auto 3px;
  border-radius: 50%;
  border: 1px solid #c9d8e2;
  background: #f3f7fa;
  color: var(--invoice-navy);
  font-size: 15px !important;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.invoice-category-cell small {
  display: block;
  color: #52606d;
  font-size: 6.5px;
  font-weight: 700;
  line-height: 1.15;
}

.invoice-print-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.invoice-lang-toggle-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.btn-lang-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-lang-toggle.active {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
}

@media screen and (max-width: 680px) {
  .printable-invoice-sheet {
    padding: 18px 14px;
  }

  .print-doc-header,
  .print-brand-lockup {
    align-items: flex-start;
  }

  .print-doc-badge {
    min-width: 0;
  }

  .print-vehicle-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    padding: 0 0 14px;
  }

  .print-vehicle-image {
    grid-row: auto;
    width: 100%;
    height: 190px;
  }

  .print-vehicle-heading {
    padding: 14px 16px 10px;
  }

  .print-plate-wrap {
    margin: 0 16px;
  }

  .print-grid-2col,
  .print-after-items,
  .invoice-document-summary-wrap {
    grid-template-columns: 1fr;
  }

  .print-totals-box {
    width: 100%;
    box-sizing: border-box;
  }
}

/* @media print: Pure White Background, Exact Print Dimensions */
@media print {
  @page {
    size: Letter portrait;
    margin: 0.42in;
  }

  html,
  body {
    background: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body * {
    visibility: hidden;
  }

  #deliveryReportModal,
  #deliveryReportModal *,
  #invoicePrintModal,
  #invoicePrintModal * {
    visibility: visible;
  }

  #deliveryReportModal,
  #invoicePrintModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  .modal-header,
  .modal-sheet,
  .modal-overlay {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .modal-header {
    display: none !important;
  }

  .printable-invoice-sheet {
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .print-items-table tr,
  .print-box,
  .print-vehicle-hero,
  .print-after-items,
  .print-warranty-box,
  .print-signatures-row {
    break-inside: avoid;
  }

  .crm-grid {
    grid-template-columns: 1fr !important;
  }

  .crm-header {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }

  .crm-header > * {
    width: 100% !important;
  }

  .crm-row {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================================
   CRM & FACTURAS STYLES
   ============================================================================ */

.crm-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crm-tab-btn {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
  flex-shrink: 0;
}

.crm-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 248, 215, 0.3);
}

.crm-tab-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy-dark);
}

.crm-content {
  display: none;
}

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

.crm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 21, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.crm-header h3 {
  margin: 0;
  font-size: 18px;
}

.invoice-create-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-invoice-method {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(124, 248, 215, 0.45);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}

.btn-invoice-method > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-invoice-method strong {
  font-size: 12px;
}

.btn-invoice-method small {
  font-size: 9px;
  opacity: 0.72;
}

.btn-invoice-method .material-symbols-outlined {
  font-size: 24px;
}

.btn-invoice-scan {
  color: var(--navy-dark);
  background: var(--teal);
}

.btn-invoice-manual {
  color: var(--teal);
  background: rgba(124, 248, 215, 0.08);
}

.btn-invoice-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.ocr-vehicle-picker {
  margin-bottom: 14px;
}

.ocr-vehicle-picker select,
.manual-invoice-main-grid select,
.manual-invoice-main-grid input,
.manual-invoice-item-row input,
.manual-invoice-summary input {
  width: 100%;
  box-sizing: border-box;
}

#manualInvoiceNumber[readonly] {
  color: var(--teal);
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: default;
}

.manual-item-description {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-suggest-box {
  background: linear-gradient(135deg, rgba(124, 248, 215, 0.08), rgba(124, 248, 215, 0.02));
  border: 1px solid rgba(124, 248, 215, 0.25);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-top: 16px;
}

.ai-suggest-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-suggest-header .material-symbols-outlined {
  color: var(--teal);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-suggest-header strong {
  display: block;
  font-size: 13px;
  color: var(--white);
}

.ai-suggest-header p {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.ai-suggest-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.ai-suggest-input-row textarea {
  flex: 1;
  resize: vertical;
  min-height: 40px;
}

.ai-suggest-input-row .btn-primary-action {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 14px;
}

.quotation-suggestion-preview {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(124, 248, 215, 0.28);
  border-radius: 10px;
  background: rgba(4, 15, 30, 0.72);
}

.quotation-suggestion-preview[hidden] { display: none; }

.quotation-suggestion-heading,
.quotation-suggestion-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quotation-suggestion-heading strong,
.quotation-suggestion-heading span { display: block; }
.quotation-suggestion-heading > div > span { margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.58); }
.quotation-suggestion-count { min-width: 26px; padding: 4px 8px; border-radius: 999px; text-align: center; color: #061325; background: var(--teal); font-weight: 900; }
.quotation-suggestion-list { display: grid; gap: 7px; margin: 11px 0; }

.quotation-suggestion-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

.quotation-suggestion-item:has(input:checked) { border-color: rgba(124,248,215,.42); background: rgba(124,248,215,.07); }
.quotation-suggestion-item > .material-symbols-outlined { color: var(--teal); font-size: 19px; }
.quotation-suggestion-item > b { color: #fff; font-size: 13px; }
.quotation-suggestion-copy { min-width: 0; }
.quotation-suggestion-copy strong { display: block; color: #fff; font-size: 12px; }
.quotation-suggestion-copy small { display: block; margin-top: 2px; color: rgba(255,255,255,.5); font-size: 10px; }
.quotation-suggestion-actions { justify-content: flex-end; }

@media (max-width: 640px) {
  .ai-suggest-input-row { align-items: stretch; flex-wrap: wrap; }
  .ai-suggest-input-row textarea { flex-basis: 100%; }
  .quotation-suggestion-actions > button { flex: 1; }
  .recommendation-actions-group { width: 100%; justify-content: flex-end; }
}

.manual-invoice-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}

.manual-invoice-items-header h4,
.manual-invoice-items-header p {
  margin: 0;
}

.manual-invoice-items-header p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.manual-invoice-load-status {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 10px;
  line-height: 1.35;
}

.manual-invoice-vehicle-summary {
  grid-template-columns: minmax(190px, 28%) 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0 20px;
  margin-top: 14px;
  padding: 0 18px 0 0;
  border: 1px solid rgba(124, 248, 215, 0.28);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: rgba(124, 248, 215, 0.06);
  overflow: hidden;
}

.manual-invoice-vehicle-image {
  grid-row: 1 / 3;
  width: 100%;
  height: 145px;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.15);
  background: #ffffff;
}

.manual-invoice-vehicle-summary > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.manual-invoice-vehicle-summary small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.manual-invoice-vehicle-summary strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-invoice-vehicle-identity {
  align-self: end;
  padding-top: 18px;
}

.manual-invoice-vehicle-identity strong {
  color: var(--teal);
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.manual-invoice-vehicle-identity span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.manual-invoice-vehicle-facts {
  flex-direction: row !important;
  align-self: start;
  gap: 24px;
  padding: 13px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.manual-invoice-vehicle-facts > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.manual-invoice-items {
  display: grid;
  gap: 10px;
}

.manual-invoice-item-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 82px 120px 94px 44px;
  gap: 8px;
  align-items: start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.manual-invoice-item-row .btn-remove-invoice-item {
  margin-top: 21px;
}

.manual-invoice-item-row label {
  display: grid;
  gap: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
}

.manual-item-taxable-control {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d7fff5;
  font-size: 10px;
  font-weight: 700;
}

.manual-item-taxable-control input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.btn-remove-invoice-item {
  height: 40px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  cursor: pointer;
}

.manual-invoice-summary {
  width: min(100%, 360px);
  margin: 18px 0 18px auto;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: rgba(0, 21, 42, 0.75);
  border: 1px solid rgba(124, 248, 215, 0.2);
  border-radius: 8px;
}

.manual-invoice-summary > div,
.manual-invoice-summary > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.manual-invoice-summary input,
.manual-invoice-summary select {
  max-width: 130px;
  text-align: right;
}

.manual-invoice-summary select {
  min-width: 130px;
  padding: 7px 9px;
  border: 1px solid rgba(124, 248, 215, 0.3);
  border-radius: 6px;
  background: #061d33;
  color: #fff;
}

.manual-invoice-total {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--teal);
  font-size: 18px;
}

.manual-invoice-save {
  margin-left: auto;
}

@media (max-width: 680px) {
  .invoice-create-actions,
  .btn-invoice-method {
    width: 100%;
  }

  .manual-invoice-item-row {
    grid-template-columns: 1fr 1fr 44px;
  }

  .manual-invoice-item-row .invoice-item-description {
    grid-column: 1 / -1;
  }

  .manual-item-taxable-label {
    grid-column: 1 / 3;
  }

  .manual-invoice-vehicle-summary {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0;
  }

  .manual-invoice-vehicle-image {
    grid-row: auto;
    height: 190px;
  }

  .manual-invoice-vehicle-identity,
  .manual-invoice-vehicle-facts {
    padding-left: 16px;
    padding-right: 16px;
  }

  .manual-invoice-vehicle-facts {
    flex-wrap: wrap;
  }
}

.crm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.crm-card {
  background: rgba(0, 21, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition);
}

.crm-card:hover {
  border-color: rgba(124, 248, 215, 0.4);
  transform: translateY(-2px);
}

.crm-card.low-stock {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.05);
}

.card-header, .crm-card-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header h4, .crm-card-header h4 {
  margin: 0;
  font-size: 16px;
}

.card-body, .crm-card-body {
  padding: 12px 16px;
  font-size: 13px;
}

.card-body p, .crm-card-body p {
  margin: 6px 0;
}

.card-footer, .crm-card-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
}

.crm-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.btn-small {
  flex: 1;
  padding: 6px 12px;
  background: var(--teal);
  color: var(--navy-dark);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-small:hover {
  background: #5effdf;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-draft {
  background: #4b5563;
  color: #fff;
}

.badge-sent {
  background: #3b82f6;
  color: #fff;
}

.badge-accepted {
  background: #10b981;
  color: #fff;
}

.badge-rejected {
  background: #ef4444;
  color: #fff;
}

.stock-badge {
  padding: 4px 8px;
  background: rgba(124, 248, 215, 0.2);
  color: var(--teal);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.crm-table-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 21, 42, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.crm-table thead {
  background: rgba(12, 35, 60, 0.95);
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.crm-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.crm-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  vertical-align: middle;
}

.crm-table tbody tr {
  transition: background 0.15s ease;
}

.crm-table tbody tr:hover {
  background: rgba(124, 248, 215, 0.06);
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.crm-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.report-card {
  background: linear-gradient(135deg, rgba(12, 40, 68, 0.95), rgba(0, 21, 42, 0.95));
  border: 1px solid rgba(124, 248, 215, 0.2);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.report-card h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.report-value {
  margin: 12px 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--teal);
}

.report-card small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.report-card.top-clients {
  grid-column: 1 / -1;
}

.report-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.report-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.form-select {
  padding: 8px 12px;
  background: rgba(0, 21, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--white);
  font-size: 13px;
  cursor: pointer;
}

/* SEARCHABLE SELECT (vehicle/customer pickers with a type-to-filter input) */
.searchable-select-wrap {
  position: relative;
  width: 100%;
}

.searchable-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.searchable-select-input {
  width: 100%;
  background: rgba(0, 21, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--white);
  font-size: 13px;
  padding: 8px 12px;
  font-family: inherit;
}

.searchable-select-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.searchable-select-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(124, 248, 215, 0.15);
}

.searchable-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--navy-card);
  border: 1px solid rgba(124, 248, 215, 0.3);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.searchable-select-dropdown.active {
  display: block;
}

.searchable-select-option {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--white);
  cursor: pointer;
}

.searchable-select-option:hover {
  background: rgba(124, 248, 215, 0.15);
}

.searchable-select-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.btn-secondary {
  padding: 8px 16px;
  background: rgba(124, 248, 215, 0.1);
  border: 1px solid rgba(124, 248, 215, 0.3);
  border-radius: 6px;
  color: var(--teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(124, 248, 215, 0.2);
  border-color: var(--teal);
}

.hidden {
  display: none !important;
}

/* ============================================================================
   AUTO-RESIZE TEXTAREA
   ============================================================================ */
textarea {
  transition: height 0.1s ease-in-out;
  overflow: hidden !important;
  resize: none !important;
}

textarea::-webkit-scrollbar {
  width: 6px;
}

textarea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

textarea::-webkit-scrollbar-thumb {
  background: rgba(124, 248, 215, 0.3);
  border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 248, 215, 0.5);
}

/* ============================================================================
   MECHANIC ACCORDION (DESPLEGABLE)
   ============================================================================ */

.mech-assign-accordion {
  margin-bottom: 16px;
}

.mech-accordion-header {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 21, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  text-align: left;
}

.mech-accordion-header:hover {
  background: rgba(0, 21, 42, 0.8);
  border-color: rgba(124, 248, 215, 0.3);
}

.mech-accordion-header .material-symbols-outlined {
  font-size: 18px;
}

.accordion-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 12px;
  color: var(--teal);
  font-weight: 700;
  width: 14px;
  text-align: center;
}

.mech-accordion-header.expanded .accordion-icon {
  transform: rotate(90deg);
}

.mech-accordion-content {
  overflow: hidden;
  transition: all 0.3s ease;
}

.mech-accordion-content[style*="display: block"] {
  padding: 16px 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   SPARE PARTS FORM STYLES
   ============================================================================ */

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  background: rgba(0, 21, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--white);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(0, 21, 42, 0.8);
  border-color: rgba(124, 248, 215, 0.4);
  outline: none;
  box-shadow: 0 0 0 2px rgba(124, 248, 215, 0.1);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group select option {
  background: #0a152a;
  color: var(--white);
}

.profit-preview {
  padding: 12px 16px;
  background: rgba(124, 248, 215, 0.08);
  border-left: 4px solid rgba(124, 248, 215, 0.3);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-actions button {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Inventory Grid for Parts Display */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.part-card {
  background: rgba(0, 21, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}

.part-card:hover {
  background: rgba(0, 21, 42, 0.8);
  border-color: rgba(124, 248, 215, 0.2);
  box-shadow: 0 4px 12px rgba(124, 248, 215, 0.1);
}

.part-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.part-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  flex: 1;
}

.part-category {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(124, 248, 215, 0.15);
  color: var(--teal);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.part-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
}

.part-meta-row {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
}

.part-meta-row strong {
  color: var(--white);
}

.stock-status {
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin: 8px 0;
}

.stock-status.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.stock-status.low-stock {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.stock-status.out-of-stock {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.part-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 12px;
}

.part-actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit-part {
  background: rgba(124, 248, 215, 0.15);
  color: var(--teal);
  border: 1px solid rgba(124, 248, 215, 0.2);
}

.btn-edit-part:hover {
  background: rgba(124, 248, 215, 0.25);
}

.btn-delete-part {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.btn-delete-part:hover {
  background: rgba(255, 107, 107, 0.25);
}

/* Low Stock Alert Banner */
.low-stock-banner {
  padding: 16px;
  background: rgba(251, 191, 36, 0.1);
  border-left: 4px solid #fbbf24;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.low-stock-banner .material-symbols-outlined {
  color: #fbbf24;
  font-size: 24px;
}

.low-stock-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.low-stock-item {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.low-stock-item strong {
  color: #fbbf24;
}

/* ============================================================================
   MULTI-TAG SAVE HINT (Registro Manual — trabajos independientes)
   ============================================================================ */

.multi-tag-save-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(124, 248, 215, 0.1);
  border: 1px solid rgba(124, 248, 215, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-bottom: 14px;
}

.multi-tag-save-hint .material-symbols-outlined {
  color: var(--teal);
  font-size: 20px;
  flex-shrink: 0;
}

.multi-tag-save-hint strong.multi-tag-count {
  color: var(--teal);
  font-size: 15px;
}

/* ============================================================================
   INVOICE LIST VIEW: FILTROS AVANZADOS, TABLA Y PAGINACIÓN
   ============================================================================ */

.invoice-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0 8px;
  padding: 12px;
  background: rgba(0, 21, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.invoice-filter-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(0, 21, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.invoice-filter-search .material-symbols-outlined {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.4);
}

.invoice-filter-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 13px;
}

.invoice-filter-search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.invoice-filter-select,
.invoice-filter-date {
  padding: 9px 10px;
  background: rgba(0, 21, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--white);
  font-size: 12px;
}

.invoice-filter-select option {
  background: #0a152a;
  color: var(--white);
}

.invoice-filter-date {
  color-scheme: dark;
}

.btn-clear-invoice-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 6px;
  color: #ff6b6b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-invoice-filters:hover {
  background: rgba(255, 107, 107, 0.22);
}

.invoice-filters-summary {
  margin: 0 0 12px 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.invoice-table-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.invoice-table thead th {
  position: sticky;
  top: 0;
  background: rgba(0, 21, 42, 0.95);
  color: rgba(124, 248, 215, 0.85);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid rgba(124, 248, 215, 0.2);
  white-space: nowrap;
}

.invoice-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}

.invoice-table tbody tr:hover {
  background: rgba(124, 248, 215, 0.04);
}

.invoice-row-vehicle {
  font-weight: 700;
  color: var(--white);
}

.invoice-row-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.invoice-table .col-amount {
  text-align: right;
  white-space: nowrap;
}

.invoice-table .col-actions {
  text-align: right;
  white-space: nowrap;
}

.invoice-table .col-actions .btn-small {
  padding: 6px 8px;
  margin-left: 4px;
}

.invoice-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.invoice-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 21, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.invoice-page-btn:hover:not(:disabled) {
  background: rgba(124, 248, 215, 0.12);
  border-color: rgba(124, 248, 215, 0.3);
}

.invoice-page-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #00152a;
  font-weight: 700;
}

.invoice-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.invoice-page-ellipsis {
  color: rgba(255, 255, 255, 0.35);
  padding: 0 4px;
  font-size: 12px;
}

@media (max-width: 680px) {
  .invoice-filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .invoice-filter-search,
  .invoice-filter-select,
  .invoice-filter-date {
    width: 100%;
  }
}

/* ============================================================================
   FACTURA ELECTRÓNICA: RECOMENDACIONES DE CUIDADO Y SALUD DEL VEHÍCULO
   ============================================================================ */

.print-preventive-care-box {
  margin: 14px 0;
  padding: 11px 14px 13px;
  background: #f8fafc;
  border: 1px solid #d8e2e9;
  border-left: 4px solid var(--invoice-blue, #2563eb);
  border-radius: 6px;
  break-inside: avoid;
}

.print-care-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.print-care-heading-icon {
  font-size: 18px;
  color: var(--invoice-blue, #2563eb);
  flex-shrink: 0;
}

.print-care-heading-text {
  display: flex;
  flex-direction: column;
}

.print-care-heading-text strong {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--invoice-navy, #0a152a);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.print-care-heading-text span {
  font-size: 8px;
  color: #64748b;
  margin-top: 1px;
}

.print-care-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.print-care-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  break-inside: avoid;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.print-care-card.status-danger {
  border-left: 3.5px solid #ef4444;
  background: #fffcfc;
}

.print-care-card.status-warning {
  border-left: 3.5px solid #f59e0b;
  background: #fffdf8;
}

.print-care-card.status-ok {
  border-left: 3.5px solid #10b981;
  background: #fcfffd;
}

.print-care-card.status-serviced {
  border-left: 3.5px solid #0e9488;
  background: #f0fdfa;
}

.print-care-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.print-care-card-top-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.print-care-card-icon {
  font-size: 14px;
  color: var(--invoice-blue, #2563eb);
  flex-shrink: 0;
}

.print-care-card-title {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--invoice-navy, #0a152a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.print-care-pill {
  font-size: 7px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.print-care-pill.pill-danger { background: #fee2e2; color: #dc2626; }
.print-care-pill.pill-warning { background: #fef3c7; color: #b45309; }
.print-care-pill.pill-ok { background: #dcfce7; color: #15803d; }
.print-care-pill.pill-serviced { background: #ccfbf1; color: #0f766e; }

.print-care-card-meta {
  font-size: 8px;
  color: #475569;
  font-weight: 600;
}

.print-care-card-note {
  font-size: 7.5px;
  color: #64748b;
  font-style: italic;
  line-height: 1.25;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
}

/* ============================================================================
   FACTURA ELECTRÓNICA: QR CODE EN LA FACTURA IMPRIMIBLE
   ============================================================================ */

.invoice-qr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin: 14px 0;
  background: #f6f8fa;
  border: 1px dashed #c7d0da;
  border-radius: 8px;
}

.invoice-qr-box {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
}

.invoice-qr-box img {
  width: 100%;
  height: 100%;
}

.invoice-qr-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.invoice-qr-caption strong {
  font-size: 13px;
  color: #0a152a;
}

.invoice-qr-caption span {
  font-size: 11px;
  color: #667;
  max-width: 360px;
}

/* ============================================================================
   DASHBOARD: RECOMENDACIONES INTELIGENTES (IA)
   ============================================================================ */

.ai-recs-panel {
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(124, 248, 215, 0.06), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(124, 248, 215, 0.18);
  border-radius: 10px;
  padding: 18px;
}

.ai-recs-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ai-recs-icon {
  font-size: 26px;
  color: var(--teal);
  background: rgba(124, 248, 215, 0.12);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-recs-header h4 {
  margin: 0;
  font-size: 15px;
  color: var(--white);
}

.ai-recs-header p {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.ai-recs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.ai-recs-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  padding: 12px;
}

.ai-rec-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 21, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  border-radius: 8px;
}

.ai-rec-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-rec-icon .material-symbols-outlined {
  font-size: 18px;
}

.ai-rec-body {
  min-width: 0;
}

.ai-rec-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.ai-rec-message {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.ai-rec-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 10px;
  background: rgba(124, 248, 215, 0.1);
  border: 1px solid rgba(124, 248, 215, 0.25);
  border-radius: 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-rec-cta:hover {
  background: rgba(124, 248, 215, 0.2);
}

.ai-rec-cta .material-symbols-outlined {
  font-size: 13px;
}

@media (max-width: 680px) {
  .ai-recs-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   MECHANIC WORKSPACE — TOUCH-FIRST PHONE & TABLET EXPERIENCE
   Scoped to the mechanic role so the denser admin desktop remains unchanged.
   ============================================================================ */

body.mechanic-mode {
  overscroll-behavior-y: contain;
}

body.mechanic-mode button,
body.mechanic-mode select,
body.mechanic-mode .vehicle-card,
body.mechanic-mode .compact-list-row,
body.mechanic-mode .kanban-card,
body.mechanic-mode .gallery-card {
  touch-action: manipulation;
}

.kanban-touch-hint {
  display: none;
}

.kanban-card.touch-drag-pending {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kanban-card.touch-is-dragging {
  opacity: 0.28;
}

.kanban-touch-ghost {
  position: fixed !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
  margin: 0 !important;
  opacity: 0.94 !important;
  transform: translate(-50%, -52%) rotate(1.5deg) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 2px var(--teal) !important;
  border-radius: var(--radius-md);
  background: var(--navy-card);
  overflow: hidden;
}

body.kanban-touch-dragging {
  overflow: hidden !important;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 769px) and (max-width: 1024px) {
  body.mechanic-mode .app-container,
  body.mechanic-mode .header-content {
    max-width: 960px;
  }

  body.mechanic-mode .view-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  body.mechanic-mode .view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mechanic-mode .view-kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body.mechanic-mode .kanban-touch-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(124, 248, 215, 0.1);
    border: 1px solid rgba(124, 248, 215, 0.22);
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
  }

  body.mechanic-mode .kanban-touch-hint .material-symbols-outlined {
    font-size: 18px;
  }

  body.mechanic-mode .kanban-card {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  body.mechanic-mode .app-header {
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
  }

  body.mechanic-mode .header-content {
    gap: 8px;
    padding: 0;
  }

  body.mechanic-mode .brand {
    gap: 8px;
    min-width: 0;
  }

  body.mechanic-mode .brand-logo {
    width: 36px;
    height: 36px;
  }

  body.mechanic-mode .brand-title {
    font-size: 14px;
  }

  body.mechanic-mode .role-badge {
    max-width: min(47vw, 190px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
    padding: 2px 6px;
  }

  body.mechanic-mode .session-indicator {
    gap: 4px;
  }

  body.mechanic-mode .session-user-name {
    display: none;
  }

  body.mechanic-mode #btnLogout {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    font-size: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.mechanic-mode #btnLogout .material-symbols-outlined {
    font-size: 21px;
  }

  body.mechanic-mode .app-container {
    padding: 10px 10px calc(24px + env(safe-area-inset-bottom));
  }

  body.mechanic-mode .mechanic-workspace-banner {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 14px;
  }

  body.mechanic-mode .mechanic-badge-header {
    gap: 10px;
  }

  body.mechanic-mode .mechanic-header-avatar {
    width: 44px;
    height: 44px;
  }

  body.mechanic-mode .mechanic-badge-header h2 {
    font-size: 15px;
  }

  body.mechanic-mode .mechanic-badge-header p {
    font-size: 10px;
    line-height: 1.35;
  }

  body.mechanic-mode .search-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, 38%);
    gap: 8px;
    margin-bottom: 14px;
  }

  body.mechanic-mode .search-input-wrap,
  body.mechanic-mode .filter-select {
    width: 100%;
    min-width: 0;
    height: 48px;
  }

  body.mechanic-mode .search-input-wrap {
    padding: 0 12px;
  }

  body.mechanic-mode .filter-select {
    padding: 0 10px;
  }

  body.mechanic-mode .section-title-wrap {
    align-items: stretch;
    margin-bottom: 12px;
  }

  body.mechanic-mode .title-with-count {
    min-height: 34px;
  }

  body.mechanic-mode .view-modes-switcher {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.mechanic-mode .view-modes-switcher::-webkit-scrollbar {
    display: none;
  }

  body.mechanic-mode .btn-view-mode {
    flex: 1 0 56px;
    min-height: 44px;
    justify-content: center;
    padding: 8px 10px;
  }

  body.mechanic-mode .vehicles-view-container {
    overflow-x: clip;
  }

  body.mechanic-mode .vehicle-card {
    border-radius: 18px;
  }

  body.mechanic-mode .vehicle-card-cover-wrap {
    height: clamp(150px, 46vw, 210px);
  }

  body.mechanic-mode .vehicle-card-body {
    padding: 12px;
  }

  body.mechanic-mode .cover-car-title {
    left: 12px;
    right: 12px;
    font-size: 16px;
  }

  body.mechanic-mode .pill {
    overflow-wrap: anywhere;
  }

  body.mechanic-mode .card-mechanic-spotlight {
    min-height: 54px;
  }

  body.mechanic-mode .vehicle-card-footer {
    min-height: 44px;
    gap: 8px;
  }

  body.mechanic-mode .view-timeline-btn {
    min-height: 44px;
    justify-content: flex-end;
    text-align: right;
  }

  body.mechanic-mode .compact-list-row {
    flex-direction: column;
    align-items: stretch;
    min-height: 88px;
  }

  body.mechanic-mode .list-car-left {
    width: 100%;
  }

  body.mechanic-mode .list-car-meta {
    flex-wrap: wrap;
    gap: 3px 6px;
  }

  body.mechanic-mode .list-car-right {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  body.mechanic-mode .view-kanban {
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-padding-inline: 2px;
  }

  body.mechanic-mode .view-kanban .kanban-column {
    flex-basis: calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    min-height: 330px;
  }

  body.mechanic-mode .kanban-control-toolbar {
    align-items: stretch;
    padding: 8px;
  }

  body.mechanic-mode .kanban-size-switcher {
    width: 100%;
    overflow-x: auto;
  }

  body.mechanic-mode .btn-size-toggle,
  body.mechanic-mode .btn-fullscreen-toggle {
    min-height: 42px;
    justify-content: center;
  }

  body.mechanic-mode .kanban-extra-tools,
  body.mechanic-mode .btn-fullscreen-toggle {
    width: 100%;
  }

  body.mechanic-mode .view-grid {
    grid-template-columns: 1fr;
  }

  body.mechanic-mode .gallery-card {
    height: min(68vw, 270px);
  }

  body.mechanic-mode .modal-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  body.mechanic-mode .modal-sheet,
  body.mechanic-mode .large-sheet {
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }

  body.mechanic-mode .modal-header {
    min-height: 64px;
    padding: max(10px, env(safe-area-inset-top)) 10px 10px !important;
    gap: 8px;
  }

  body.mechanic-mode .modal-header-left,
  body.mechanic-mode .modal-title-wrap {
    min-width: 0;
    gap: 8px;
  }

  body.mechanic-mode .modal-title-wrap > div {
    min-width: 0;
  }

  body.mechanic-mode .modal-title-wrap h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px !important;
  }

  body.mechanic-mode .modal-title-wrap p,
  body.mechanic-mode .btn-screen-back > span:not(.material-symbols-outlined) {
    display: none;
  }

  body.mechanic-mode .accent-icon {
    font-size: 22px;
  }

  body.mechanic-mode .btn-screen-back,
  body.mechanic-mode .btn-close-modal {
    width: 44px;
    height: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0;
  }

  body.mechanic-mode .modal-body {
    padding: 12px 10px calc(24px + env(safe-area-inset-bottom)) !important;
  }

  body.mechanic-mode .car-summary-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body.mechanic-mode .car-vin-plate {
    flex-wrap: wrap;
  }

  body.mechanic-mode .vin-pill {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.mechanic-mode .timeline-quick-actions,
  body.mechanic-mode .status-updater-row {
    width: 100%;
  }

  body.mechanic-mode .timeline-quick-actions {
    align-items: stretch;
  }

  body.mechanic-mode .btn-action-ocr,
  body.mechanic-mode .timeline-quick-actions .btn-primary-action {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  body.mechanic-mode .status-updater-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 14px;
  }

  body.mechanic-mode .status-select-custom-wrap,
  body.mechanic-mode .status-select-enhanced {
    width: 100%;
  }

  body.mechanic-mode .timeline-track {
    padding-left: 22px;
  }

  body.mechanic-mode .timeline-node-icon {
    left: -22px;
  }

  body.mechanic-mode .timeline-event-header,
  body.mechanic-mode .timeline-event-meta {
    flex-wrap: wrap;
  }

  body.mechanic-mode textarea {
    min-height: 132px;
  }
}

@media (max-width: 430px) {
  body.mechanic-mode .search-filter-bar {
    grid-template-columns: 1fr;
  }

  body.mechanic-mode .filter-select {
    height: 46px;
  }

  body.mechanic-mode .vehicle-card-details,
  body.mechanic-mode .car-summary-specs {
    grid-template-columns: 1fr !important;
  }

  body.mechanic-mode .list-mech-text,
  body.mechanic-mode .list-car-right > .vehicle-timer {
    display: none;
  }

  body.mechanic-mode .status-updater-row {
    grid-template-columns: 1fr;
  }

  body.mechanic-mode .status-label {
    padding-left: 4px;
  }
}

/* ============================================================================
   DASHBOARD: CENTRO DE RESOLUCIONES Y PROBLEMAS
   ============================================================================ */

.issues-panel {
  margin-top: 20px;
  background: rgba(0, 21, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px;
}

.issues-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.issues-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.issues-header-icon {
  font-size: 24px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.issues-header h4 {
  margin: 0;
  font-size: 15px;
  color: var(--white);
}

.issues-header p {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.issues-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.issue-kpi {
  text-align: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.issue-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.issue-kpi-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.issue-kpi-urgent .issue-kpi-val { color: #ff6b6b; }
.issue-kpi-escalated .issue-kpi-val { color: #fbbf24; }
.issue-kpi-resolved .issue-kpi-val { color: #10b981; }

.issues-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.issue-filter-chip {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.issue-filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.issue-filter-chip.active {
  background: rgba(124, 248, 215, 0.15);
  border-color: rgba(124, 248, 215, 0.4);
  color: var(--teal);
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.issue-card {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.issue-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 248, 215, 0.2);
}

.issue-card-priority {
  width: 4px;
  flex-shrink: 0;
}

.issue-card-body {
  flex: 1;
  padding: 12px 14px 12px 4px;
  min-width: 0;
}

.issue-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.issue-card-top strong {
  font-size: 13px;
  color: var(--white);
}

.issue-status-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.issue-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.issue-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.issue-card-meta .material-symbols-outlined {
  font-size: 13px;
}

.issues-empty {
  text-align: center;
  padding: 32px 20px;
  color: rgba(255, 255, 255, 0.4);
}

.issues-empty .material-symbols-outlined {
  font-size: 40px;
  color: rgba(16, 185, 129, 0.4);
  margin-bottom: 8px;
}

.issues-empty p {
  font-size: 12px;
}

/* Issue detail modal */
.issue-detail-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 12px;
}

.issue-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.issue-detail-meta-grid div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.issue-detail-meta-grid .material-symbols-outlined {
  font-size: 15px;
  color: var(--teal);
}

/* ========================================================================= */
/* SMART AUTOMATED WARRANTY SYSTEM STYLES                                   */
/* ========================================================================= */

.vehicle-warranty-banner {
  margin: 14px 0 18px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.06) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
  animation: fadeIn 0.3s ease-out;
}

.warranty-banner-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.warranty-badge-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  flex-shrink: 0;
}

.pulse-shield {
  color: #10b981;
  font-size: 24px;
  animation: pulse 2s infinite ease-in-out;
}

.warranty-info-main {
  flex: 1;
  min-width: 0;
}

.warranty-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.warranty-title-row strong {
  font-size: 14px;
  color: #10b981;
  font-weight: 700;
}

.warranty-days-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.warranty-days-pill.active-parts {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.warranty-info-main p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.warranty-items-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.warranty-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.warranty-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  font-size: 11px;
  color: #e2e8f0;
}

.warranty-item-chip .material-symbols-outlined {
  color: #10b981;
}

.warranty-action-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.btn-claim-warranty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-claim-warranty:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.45);
}

/* Intake Warranty Alert */
.intake-warranty-alert {
  margin: 12px 0 16px 0;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
}

.intake-warranty-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.intake-warranty-text strong {
  display: block;
  font-size: 13px;
  color: #10b981;
}

.intake-warranty-text p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin: 2px 0 0 0;
}

.intake-warranty-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #e2e8f0;
  cursor: pointer;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.intake-warranty-checkbox-label input {
  cursor: pointer;
  accent-color: #10b981;
  width: 16px;
  height: 16px;
}

/* Invoice Modal Warranty Toggle Bar */
.invoice-warranty-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
}

.warranty-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.warranty-toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.warranty-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.warranty-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 20px;
}

.warranty-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.warranty-toggle-switch input:checked + .warranty-toggle-slider {
  background-color: #10b981;
}

.warranty-toggle-switch input:checked + .warranty-toggle-slider:before {
  transform: translateX(16px);
}

.warranty-toggle-info strong {
  display: block;
  font-size: 12px;
  color: #10b981;
}

.warranty-toggle-info p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.warranty-origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  font-size: 11px;
  color: #34d399;
}

/* Timeline Warranty Special Styling */
.timeline-card.timeline-warranty-card {
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.timeline-node-icon.node-warranty {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.warranty-event-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.item-pill.item-pill-warranty {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

/* ============================================================
   WARRANTY SETTINGS MODAL - Policies Table
   ============================================================ */

.warranty-settings-lead-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.warranty-settings-lead-card strong {
  display: block;
  font-size: 0.95rem;
  color: #ecfdf5;
  margin-bottom: 4px;
}

.warranty-settings-lead-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

.warranty-policies-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.warranty-policies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.warranty-policies-table thead th {
  background: rgba(16, 185, 129, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.warranty-policies-table tbody tr {
  transition: background 0.15s;
}

.warranty-policies-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.warranty-policies-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}

.warranty-policies-table tbody tr:last-child td {
  border-bottom: none;
}

.warranty-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.warranty-cat-badge .material-symbols-outlined {
  font-size: 18px;
  color: #10b981;
}

.warranty-cat-name {
  font-weight: 600;
  color: #fff;
  display: block;
  line-height: 1.2;
}

.warranty-cat-desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  line-height: 1.3;
  margin-top: 2px;
}

.warranty-policies-table input[type="number"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.88rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.warranty-policies-table input[type="number"]::-webkit-outer-spin-button,
.warranty-policies-table input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
}

.warranty-policies-table input[type="number"]:focus {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.warranty-notes-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}

.warranty-notes-input:focus {
  border-color: rgba(16, 185, 129, 0.5);
}

.pulse-shield {
  animation: shieldPulse 2.5s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* ============================================================
   SERVICE CATALOG — List View
   ============================================================ */

.services-list-wrap {
  padding: 4px 0 24px;
}

.services-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.services-list-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 2;
}

.service-list-row {
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-list-row:last-child {
  border-bottom: none;
}

.service-list-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.btn-icon-small {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  transition: all var(--transition);
}

.btn-icon-small:hover {
  background: rgba(124, 248, 215, 0.15);
  border-color: var(--teal);
  color: var(--teal);
}

.btn-icon-small:last-child {
  margin-right: 0;
}

.btn-icon-small[title="Delete"]:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.service-list-row td {
  padding: 12px 14px;
  vertical-align: middle;
}

.service-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: color-mix(in srgb, var(--cat-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color) 35%, transparent);
  color: var(--cat-color);
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.service-cat-pill .material-symbols-outlined {
  font-size: 15px;
}

.service-list-name {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.service-list-desc {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.77rem;
  margin-top: 2px;
  line-height: 1.4;
}

.service-list-price {
  text-align: right;
  font-size: 0.95rem;
  white-space: nowrap;
}

.service-list-warranty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.warranty-term-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}


/* ============================================================
   SERVICE CATALOG — Professional Header & Controls
   ============================================================ */

/* Header wrapper */
.svc-catalog-header {
  padding: 20px 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,21,42,0.6);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.svc-catalog-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.svc-catalog-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.svc-catalog-title .material-symbols-outlined {
  font-size: 22px;
  color: var(--teal);
}

.svc-catalog-subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.svc-catalog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.svc-btn-icon {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
  padding: 7px 12px !important;
}

.svc-btn-icon.active {
  background: rgba(20,184,166,0.15) !important;
  border-color: rgba(20,184,166,0.4) !important;
  color: var(--teal) !important;
}

/* Search bar */
.svc-search-row {
  margin-bottom: 12px;
}

.svc-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.svc-search-icon {
  position: absolute;
  left: 12px;
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

.svc-search-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  padding: 10px 40px 10px 42px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.svc-search-input::placeholder { color: rgba(255,255,255,0.3); }
.svc-search-input:focus {
  border-color: var(--teal);
  background: rgba(255,255,255,0.07);
}

.svc-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}

.svc-search-clear:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.svc-search-clear .material-symbols-outlined { font-size: 16px; }

/* Category filter pills */
.svc-cat-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}

.svc-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.svc-cat-btn .material-symbols-outlined { font-size: 16px; }

.svc-cat-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.svc-cat-btn.active {
  background: color-mix(in srgb, var(--pill, var(--teal)) 18%, transparent);
  border-color: color-mix(in srgb, var(--pill, var(--teal)) 50%, transparent);
  color: var(--pill, var(--teal));
  font-weight: 700;
}

/* Advanced filter panel */
.svc-advanced-filters {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0 18px;
  animation: fadeIn 0.2s ease;
}

.svc-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.svc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.svc-filter-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.svc-filter-input-wrap span {
  padding: 0 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.svc-filter-input-wrap input { border: none; border-radius: 0; background: transparent; }

.svc-filter-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 10px;
  outline: none;
}

.svc-filter-input:focus {
  border-color: var(--teal);
  background: rgba(255,255,255,0.07);
}

/* Pagination bar */
.svc-pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
}

.svc-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s;
}

.svc-page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.svc-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.svc-page-info {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.svc-page-size-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-left: 6px;
}

/* Price display */
.svc-price-val {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
}

.svc-price-free {
  color: #10b981;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Table wrapper — no extra padding since header is sticky */
.services-list-wrap {
  padding: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
