/* Mobile Application UI Styles - Matched to Infinity Wireframes */
:root {
  --primary-red: #d32f2f;
  --primary-dark-red: #b71c1c;
  --primary-light-red: #ffebee;
  --primary: #2563eb;
  --dark-navy: #1e3a8a;
  --surface: #ffffff;
  --background: #f8fafc;
  --border: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  height: 100%;
}

body {
  background-color: #e2e8f0;
  color: var(--text-main);
  height: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  user-select: none;
}

.app-viewport {
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,0,0,0.15);
}

/* Infinity Top Header */
.app-header {
  flex-shrink: 0;
  background: #ffffff;
  color: var(--text-main);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ef4444;
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

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

.infinity-logo-mark {
  width: 28px;
  height: 28px;
  background: #dc2626;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: inline-block;
}

.infinity-text {
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: 0.5px;
  line-height: 1;
}

.infinity-tagline {
  font-size: 8px;
  color: #64748b;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.header-action-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Content Area */
.app-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  padding-bottom: 24px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Wireframe Red Buttons */
.btn-wire-red {
  background: #dc2626;
  color: #fff;
  border: 1px solid #b91c1c;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-wire-red:active {
  background: #991b1b;
}

.btn-wire-red.full {
  width: 100%;
}

.btn-wire-cancel {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-wire-cancel:active {
  background: #e2e8f0;
}

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn-row > * {
  flex: 1;
}

/* Menu Grid Cards (Wireframe 1 Screen 2) */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}

.menu-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.menu-card:active {
  transform: scale(0.98);
  border-color: #dc2626;
  background: #fff5f5;
}

.menu-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.menu-card-icon {
  font-size: 26px;
  color: #dc2626;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alerts Overview Header & Categories */
.alert-overview-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-overview-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.alert-stat-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}

.alert-stat-val {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.alert-stat-lbl {
  font-size: 9px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* Enhanced Alert Category Cards */
.alert-cat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.alert-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #94a3b8;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.alert-cat-card:hover, .alert-cat-card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.alert-cat-card.has-critical {
  border-left-color: #ef4444;
  background: #fffdfd;
}

.alert-cat-card.has-warning {
  border-left-color: #f59e0b;
}

.alert-cat-card.all-good {
  border-left-color: #10b981;
}

.alert-cat-left {
  flex: 1;
  min-width: 0;
}

.alert-cat-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alert-cat-subtitle {
  font-size: 11px;
  color: #64748b;
  margin: 3px 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.alert-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.alert-badge.critical {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-badge.warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.alert-badge.total {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.alert-cat-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.alert-cat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ef4444;
  border: 1px solid #f1f5f9;
}

.alert-cat-chevron {
  color: #cbd5e1;
  font-size: 14px;
}

/* Alert Detail Screen: Filter Pills & Search */
.alert-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.alert-tab-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.alert-tab-btn.active {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
}

.alert-tab-btn.critical.active {
  background: #dc2626;
  border-color: #dc2626;
}

.alert-tab-btn.warning.active {
  background: #d97706;
  border-color: #d97706;
}

/* Rich Alert Item Card */
.alert-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.alert-detail-card.critical {
  border-left-color: #ef4444;
  background: #fffcfc;
}

.alert-detail-card.warning {
  border-left-color: #f59e0b;
  background: #fffdf9;
}

.alert-detail-card.normal {
  border-left-color: #3b82f6;
}

.alert-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.alert-card-veh {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alert-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.alert-status-pill.critical {
  background: #dc2626;
  color: #fff;
}

.alert-status-pill.warning {
  background: #d97706;
  color: #fff;
}

.alert-status-pill.normal {
  background: #2563eb;
  color: #fff;
}

.alert-card-task {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.3;
}

.alert-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 11px;
}

.alert-grid-cell-lbl {
  color: #64748b;
  font-size: 10px;
}

.alert-grid-cell-val {
  font-weight: 700;
  color: #1e293b;
  margin-top: 1px;
}

.alert-grid-cell-val.danger {
  color: #dc2626;
}

.alert-grid-cell-val.warning {
  color: #d97706;
}

.alert-card-note {
  font-size: 10.5px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 5px 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.alert-card-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn-alert-jobcard {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-alert-jobcard:hover {
  background: #15803d;
}

.btn-alert-issue {
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-alert-issue:hover {
  background: #0f172a;
}

/* Jobcards Running List (Wireframe 1 Screen 5 / Wireframe 2 Screen 1) */
.jobcard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.jobcard-table th {
  background: #1e293b;
  color: #fff;
  padding: 9px 10px;
  text-align: left;
  font-weight: 700;
}

.jobcard-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.jobcard-table tr:hover td {
  background: #f8fafc;
}

.badge-running {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

.badge-expired {
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-duenext {
  background: #fef3c7;
  color: #b45309;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-issue {
  background: #e0e7ff;
  color: #3730a3;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-custom {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.action-icon-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  color: #475569;
}

.action-icon-btn.edit {
  color: #dc2626;
}

.action-icon-btn:hover {
  transform: scale(1.15);
}

/* Task / Checklist Table for Work Execution (Wireframe 2 Screen 2) */
.task-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
  border: 1px solid #cbd5e1;
  margin-top: 8px;
}

.task-table th {
  background: #f1f5f9;
  color: #1e293b;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid #cbd5e1;
}

.task-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.task-table tr:nth-child(even) td {
  background: #fafafa;
}

.task-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #10b981;
  cursor: pointer;
}

.task-table input[type="text"] {
  width: 100%;
  padding: 4px 6px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

/* Task creation list (Wireframe 1 Screen 3) */
.task-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 4px;
  font-size: 13px;
}

.task-item-row .del-task {
  color: #ef4444;
  border: none;
  background: none;
  font-size: 15px;
  cursor: pointer;
}

/* Form Styles */
.form-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #1e293b;
  outline: none;
}

.form-control:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.inline-add {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.inline-add input {
  flex: 1;
}

.inline-add .btn-add {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

/* Bottom Nav */
.bottom-nav {
  flex-shrink: 0;
  position: relative;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  width: 25%;
  height: 100%;
  cursor: pointer;
}

.nav-item i {
  font-size: 18px;
  margin-bottom: 2px;
}

.nav-item.active {
  color: #dc2626;
  font-weight: 700;
}

/* Toast */
.toast-box {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1e293b;
  color: #fff;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 100;
  white-space: nowrap;
}

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

.toast-box.success { background: #15803d; }
.toast-box.error { background: #b91c1c; }

/* KPI Row on Jobcards */
.jc-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.jc-kpi-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.jc-kpi-card:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.jc-kpi-card.active {
  background: #fff;
  border: 2px solid #dc2626;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.12);
}

.jc-kpi-num {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
}

.jc-kpi-label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Filter Chips Bar */
.filter-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

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

.filter-chip {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-chip.active {
  background: #dc2626;
  color: #fff;
  border-color: #b91c1c;
}

.filter-chip.alert.active {
  background: #b91c1c;
  color: #fff;
}

/* Days Open & Status Badges */
.badge-days {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
}

.badge-days.fresh {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-days.warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-days.delayed {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-weight: 700;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: #fecaca; }
  50% { border-color: #ef4444; }
}

.badge-days.completed {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.badge-service-type {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 4px;
  vertical-align: middle;
}

.badge-completed {
  background: #dcfce7;
  color: #15803d;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

/* Modal Overlay & Box */
.app-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.app-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 440px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: modal-slide-up 0.2s ease-out;
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 2px solid #ef4444;
  background: #f8fafc;
}

.app-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.app-modal-close:hover {
  color: #dc2626;
}

.app-modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  font-size: 12px;
}

.app-modal-footer {
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-info-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.modal-info-label {
  color: #64748b;
  font-weight: 600;
}

.modal-info-val {
  color: #1e293b;
  font-weight: 700;
  text-align: right;
}

/* Price Status & Badges */
.price-status-box {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.price-status-box.auto {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.price-status-box.manual {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.price-status-loading {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 8px;
}

.badge-price-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  text-transform: uppercase;
}

.badge-price-tag.auto {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-price-tag.manual {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Auto-Suggest Search & Dropdown */
.auto-suggest-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auto-suggest-icon {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.auto-suggest-input {
  padding-left: 30px !important;
  padding-right: 28px !important;
  height: 36px;
  font-size: 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
}

.auto-suggest-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auto-suggest-clear {
  position: absolute;
  right: 10px;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s;
}

.auto-suggest-clear:hover {
  color: #dc2626;
}

.auto-suggest-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 1050;
  margin-top: 3px;
}

.auto-suggest-item {
  padding: 8px 12px;
  font-size: 12px;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s;
}

.auto-suggest-item:hover,
.auto-suggest-item.highlighted {
  background: #fef2f2;
  color: #dc2626;
}

.auto-suggest-item mark {
  background: #fef08a;
  color: #0f172a;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

.auto-suggest-empty {
  padding: 12px;
  text-align: center;
  color: #64748b;
  font-size: 11px;
}

.auto-suggest-add-new-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.btn-new-part-pill {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-new-part-pill:hover {
  background: #dc2626;
  color: #fff;
  border-color: #b91c1c;
}

/* Auto-Suggest Vehicle Dropdown */
.auto-suggest-wrapper {
  position: relative;
  width: 100%;
}

.auto-suggest-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auto-suggest-input-wrap input {
  padding-right: 32px;
}

.auto-suggest-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 4px;
}
.auto-suggest-clear-btn:hover {
  color: #ef4444;
}

.auto-suggest-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  display: none;
}

.auto-suggest-item {
  padding: 10px 12px;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s;
}

.auto-suggest-item:last-child {
  border-bottom: none;
}

.auto-suggest-item:hover,
.auto-suggest-item.highlighted {
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
}

.auto-suggest-item mark {
  background: #fecaca;
  color: #991b1b;
  font-weight: bold;
  padding: 0 2px;
  border-radius: 2px;
}

.auto-suggest-empty {
  padding: 12px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

/* Issue List Cards */
.issue-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.15s ease;
}
.issue-card.pending {
  border-left: 4px solid #f59e0b;
}
.issue-card.completed {
  border-left: 4px solid #10b981;
  background: #f8fafc;
}
.issue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.issue-card-busno {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}
.issue-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}
.issue-status-badge.pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.issue-status-badge.completed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.issue-card-body {
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.4;
}
.issue-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  padding-top: 6px;
  flex-wrap: wrap;
  gap: 4px;
}
.issue-toggle-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.issue-toggle-btn.btn-complete {
  color: #15803d;
  border-color: #86efac;
  background: #f0fdf4;
}
.issue-toggle-btn.btn-complete:hover {
  background: #15803d;
  color: #ffffff;
}
.issue-toggle-btn.btn-reopen {
  color: #b45309;
  border-color: #fde68a;
  background: #fffbeb;
}
.issue-toggle-btn.btn-reopen:hover {
  background: #b45309;
  color: #ffffff;
}

/* Voice Typing / Speech-to-Text Styles */
.btn-voice-mic {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  user-select: none;
}
.btn-voice-mic:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.btn-voice-mic.listening {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  animation: pulse-voice-mic 1.2s infinite;
}
@keyframes pulse-voice-mic {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Floating Voice Recognition Toast / Overlay */
.voice-typing-overlay {
  position: fixed;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 16px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  max-width: 92vw;
  box-sizing: border-box;
}
.voice-typing-overlay .voice-live-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-voice-mic 1s infinite;
  flex-shrink: 0;
}
.voice-typing-overlay .voice-live-text {
  font-weight: 600;
  color: #38bdf8;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================= TYRE MANAGEMENT STYLES ================= */
.tyre-tab-bar {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 12px;
}

.tyre-tab-btn {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tyre-tab-btn.active {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tyre-bus-chassis {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px 10px;
  margin-bottom: 14px;
  position: relative;
}

.tyre-axle-header {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 10px 0 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tyre-axle-header::before, .tyre-axle-header::after {
  content: "";
  height: 1px;
  background: #cbd5e1;
  flex: 1;
}

.tyre-axle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tyre-slot-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  transition: all 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.tyre-slot-box.fitted {
  border-left: 4px solid #10b981;
}

.tyre-slot-box.empty {
  border: 1px dashed #cbd5e1;
  background: #fafafa;
  text-align: center;
  padding: 12px 8px;
}

.tyre-slot-title {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tyre-slot-serial {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
  margin: 3px 0 2px 0;
}

.tyre-slot-detail {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
}

.tyre-slot-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.btn-tyre-act {
  flex: 1;
  padding: 3px 4px;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-tyre-act.release {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-tyre-act.puncture {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.btn-tyre-act.remould {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

.btn-tyre-fit-empty {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Warranty Tracker & Execution Styles */
.btn-warranty-preset {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-warranty-preset:hover, .btn-warranty-preset.active {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
}

.warranty-tab-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.warranty-tab-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.warranty-tab-btn.active {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
}

/* Fleet Report Date Filter Pills */
.date-pills-scroll::-webkit-scrollbar {
  display: none;
}
.btn-rep-date-pill {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-rep-date-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.btn-rep-date-pill.active {
  background: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 700;
  border-color: #dc2626 !important;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}





