:root {
  color-scheme: light;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: #f4f7fb;
  color: #102542;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

* { 
  box-sizing: border-box !important;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  min-height: 100vh;
}

.app {
  max-width: 920px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 14px calc(32px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 14px;
}

.hero, .card {
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(16, 37, 66, 0.08);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(16, 37, 66, 0.12);
}

.login-card h1 {
  margin-top: 0;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.login-error {
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 6px;
}

.login-hint {
  margin-top: 18px;
  color: #4b5d76;
  font-size: 0.95rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: 700;
  margin: 0 0 6px;
}

h1, h2 { margin: 0 0 8px; }

p { margin: 0; color: #4b5d76; line-height: 1.5; }

.ghost-btn, .primary-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.ghost-btn {
  background: #eef4ff;
  color: #174077;
}

.primary-btn {
  background: #2563eb;
  color: white;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.summary-item {
  background: white;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(16, 37, 66, 0.08);
}

.summary-item strong { font-size: 1.15rem; display: block; margin-bottom: 4px; }
.summary-item span { color: #5b6e84; font-size: 0.92rem; }

.form-grid {
  display: grid;
  gap: 12px;
}

label { display: grid; gap: 6px; font-weight: 600; color: #27435f; width: 100%; max-width: 100%; box-sizing: border-box; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #f8fbff;
}

.form-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #27435f;
}

.display-field {
  min-height: 46px;
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fbff;
  color: #102542;
  display: flex;
  align-items: center;
}

.full-width { grid-column: 1 / -1; }

.toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
}

.search-actions {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#clearSearchButton {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.report-table th,
.report-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e7edf6;
}

.report-table tfoot th {
  border-top: 2px solid #d7e2f0;
}

.tabs-card {
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(16, 37, 66, 0.08);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: #eef4ff;
  color: #174077;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.active {
  background: #2563eb;
  color: white;
}

.weekly-total-row th {
  border-top: 1px solid #d7e2f0;
  padding-top: 14px;
}

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.item-card {
  border: 1px solid #e7edf6;
  border-radius: 14px;
  padding: 12px;
  background: #fcfdff;
}

.plate-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.plate-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #102542;
  color: #102542;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65), 0 16px 28px rgba(16, 37, 66, 0.08);
  text-transform: uppercase;
  overflow: hidden;
}

.plate-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(16, 37, 66, 0.08);
  pointer-events: none;
}

.plate-badge::after {
  content: '';
  position: absolute;
  top: 8%;
  left: -30%;
  width: 80%;
  height: 35%;
  background: linear-gradient(135deg, rgba(255,255,255,0.45), rgba(255,255,255,0) 80%);
  transform: rotate(-18deg);
  filter: blur(1px);
  opacity: 0.85;
  pointer-events: none;
}

.plate-badge-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #102542;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

.plate-badge-text {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.32em;
}

.plate-caption {
  margin: 10px 0 0;
  color: #2563eb;
  font-weight: 700;
}

.item-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.item-card .meta { color: #6e7e94; font-size: 0.86rem; margin-top: 6px; }

.actions { display: flex; gap: 8px; }
.action-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  background: #eef4ff;
  color: #174077;
}

.empty {
  text-align: center;
  color: #6b7a92;
  padding: 18px 0;
}

/* Navigation Menu and Headers */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.menu-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  white-space: nowrap;
}

.menu-btn:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}

.menu-btn.special-btn,
.menu-btn.special-btn-supervisao,
.menu-btn.special-btn-seguradora {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  white-space: nowrap;
}

.menu-btn.special-btn:hover,
.menu-btn.special-btn-supervisao:hover,
.menu-btn.special-btn-seguradora:hover {
  background: #dcfce7 !important;
}

.menu-btn.special-btn-total {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  grid-column: 1 / -1;
  white-space: nowrap;
}

.menu-btn.special-btn-total:hover {
  background: #dbeafe;
}

.view-header-card {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: white !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  margin-bottom: 14px !important;
}

#currentPageTitle, .page-title {
  margin: 0 !important;
  color: #1e40af !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  text-align: center !important;
  background: #eff6ff !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1px solid #bfdbfe !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#backToMenuButton {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.78rem !important;
  padding: 6px 12px !important;
  white-space: nowrap !important;
  font-weight: 700 !important;
  background: #eef4ff !important;
  color: #1e40af !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 999px !important;
  flex: 0 0 auto !important;
}

/* Type Selection Buttons (Sim / Não / N/I) */
.type-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.type-btn {
  border: 1px solid #d7e2f0;
  border-radius: 12px;
  padding: 8px 14px;
  background: #f8fbff;
  color: #27435f;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.type-btn:hover {
  background: #eef4ff;
  border-color: #2563eb;
}

.type-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Insurer Selection Buttons - 5 em uma linha só no mesmo estilo dos atalhos */
.insurer-buttons-container {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 2.5px !important;
  box-sizing: border-box !important;
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

.insurer-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 7px !important;
  padding: 3px 1px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 1.5px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.insurer-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

.insurer-btn .insurer-btn-icon-box {
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.70rem !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.insurer-btn .insurer-btn-label {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  letter-spacing: -0.25px !important;
  max-width: 100% !important;
  text-align: center !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

/* Estado Ativo do Botão de Seguradora */
.insurer-btn.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 1.5px 4px rgba(37, 99, 235, 0.16) !important;
}

.insurer-btn.active .insurer-btn-icon-box {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.22) !important;
}

.insurer-btn.active .insurer-btn-label {
  color: #1e40af !important;
  font-weight: 800 !important;
}

.badge-inicial {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-supervisao {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-roubo {
  background: #fecaca;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-incendio {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-enchente {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-moto {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-complemento {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-pos {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-riolog {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #7dd3fc;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-final {
  background: #fdf4ff;
  color: #9333ea;
  border: 1px solid #f0abfc;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

/* Vistoria Type Tabs Card - Mais compacto */
#vistoriaTypeTabsCard {
  margin-top: 6px !important;
  padding: 6px 8px !important;
}

/* Vistoria Type Tabs - 2 Linhas no Estilo de Atalhos Ultra-Compactos (Inspirado no TKST Alunos) */
#vistoriaTypeTabs.vistoria-type-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  justify-content: space-between !important;
}

#vistoriaTypeTabs .tab-btn {
  flex: 1 1 calc(19% - 4px) !important;
  min-width: 44px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 7px !important;
  padding: 3px 1px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 1.5px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  overflow: visible !important;
}

#vistoriaTypeTabs .tab-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

#vistoriaTypeTabs .tab-btn .tab-btn-icon-box {
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.70rem !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

#vistoriaTypeTabs .tab-btn .tab-btn-label {
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  letter-spacing: -0.25px !important;
  max-width: 100% !important;
  text-align: center !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Estado Ativo dos Botões de Tipo de Vistoria */
#vistoriaTypeTabs .tab-btn.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 1.5px 4px rgba(37, 99, 235, 0.16) !important;
}

#vistoriaTypeTabs .tab-btn.active .tab-btn-icon-box {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.22) !important;
}

#vistoriaTypeTabs .tab-btn.active .tab-btn-label {
  color: #1e40af !important;
  font-weight: 800 !important;
}

/* Seção Avaliação da Vistoria Final */
.avaliacao-box {
  grid-column: 1 / -1;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* Compact Survey Card Layout */
.compact-item-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  gap: 12px !important;
}

.item-main-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.compact-plate-badge {
  min-width: 72px !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  border-width: 1px !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.compact-plate-badge .plate-badge-text {
  font-size: 0.72rem !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  font-weight: 800;
}

.item-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.item-details .item-provider {
  font-size: 0.72rem;
  color: #102542;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.item-details .item-meta {
  font-size: 0.68rem;
  color: #5b6e84;
  white-space: nowrap;
}

.item-details .item-value {
  font-size: 0.72rem;
  color: #2563eb;
  white-space: nowrap;
  font-weight: 700;
}

.vertical-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.vertical-actions .action-btn {
  font-size: 0.7rem !important;
  padding: 3px 8px !important;
}

.card-actions-grid {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: 8px !important;
  box-sizing: border-box !important;
}

.card-actions-grid .btn-row {
  display: flex !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.card-actions-grid .btn-row .action-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 8px 4px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

/* Responsive Mobile Fixes for Supervisão and Mês Vigente */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.app {
  width: 100%;
  max-width: 920px;
  box-sizing: border-box;
}

.card, .hero, .tabs-card, .menu-card {
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.action-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

@media (max-width: 720px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .app {
    padding: 8px 6px 20px !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero, .card, .tabs-card {
    padding: 10px 8px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .view-header-card {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #backToMenuButton {
    font-size: 0.74rem !important;
    padding: 5px 10px !important;
    gap: 4px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  #currentPageTitle, .page-title {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #1e40af !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    background: #eff6ff !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    border: 1px solid #bfdbfe !important;
    display: inline-block !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Responsive Wrap for Tabs in Mobile */
  .tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-bottom: 4px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .tab-btn {
    white-space: nowrap !important;
    word-break: keep-all !important;
    font-size: 0.78rem !important;
    padding: 6px 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .menu-btn {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    font-size: clamp(0.72rem, 3.2vw, 0.85rem) !important;
    padding: 12px 4px !important;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .summary-item {
    padding: 10px;
  }

  .summary-item strong {
    font-size: 1rem;
  }

  .summary-item span {
    font-size: 0.8rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero {
    flex-direction: column;
  }

  .search-actions {
    width: 100%;
  }

  .search-actions input {
    flex: 1;
    width: 100%;
  }

  /* Compact Item Card Layout for Mobile (Mês vigente & Regular Vistorias) */
  .compact-item-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .item-main-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .compact-plate-badge {
    min-width: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    padding: 5px 8px !important;
    box-sizing: border-box;
  }

  .compact-plate-badge .plate-badge-text {
    font-size: 0.82rem !important;
    white-space: normal !important;
    word-break: break-word;
    letter-spacing: 0.05em !important;
    text-align: left;
  }

  .item-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    white-space: normal;
  }

  .item-details .item-provider {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    font-size: 0.82rem;
  }

  .item-details .item-meta,
  .item-details .item-value {
    white-space: normal;
    word-break: break-word;
    font-size: 0.78rem;
  }

  .vertical-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 6px !important;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
  }

  .vertical-actions .action-btn {
    font-size: 0.75rem !important;
    padding: 5px 10px !important;
    flex: 1 1 auto;
    text-align: center;
  }

  /* Supervisão Table Mobile Card View - Prevents Any Clipping */
  .report-table,
  .report-table thead,
  .report-table tbody,
  .report-table th,
  .report-table td,
  .report-table tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .report-table {
    min-width: unset !important;
  }

  .report-table thead {
    display: none;
  }

  .report-table tr {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(16, 37, 66, 0.04);
  }

  .report-table td {
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.84rem;
    word-break: break-word;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    text-align: right;
  }

  .report-table td:last-child {
    border-bottom: none;
    padding-top: 8px;
  }

  .report-table td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: #475569;
    font-size: 0.78rem;
    text-align: left;
    margin-right: auto;
  }

  .report-table td:first-child::before {
    display: none !important;
  }

  .report-table td .actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
  }

  .report-table td .actions .action-btn {
    flex: 1 1 auto;
    font-size: 0.75rem;
    padding: 6px 8px;
    text-align: center;
  }

  /* Form & Buttons Responsiveness - 2 Column Grid for Toggles */
  .form-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-status-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  label, .form-toggle-field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  input, select, textarea, .display-field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .insurer-buttons-container {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 2.5px !important;
    box-sizing: border-box !important;
  }

  .insurer-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 3px 1px !important;
    box-sizing: border-box !important;
  }

  .type-buttons-container {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  .form-toggle-field .type-buttons-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  .type-btn {
    width: auto !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .form-toggle-field .type-btn {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 8px 2px !important;
    font-size: 0.75rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .form-actions {
    flex-direction: column;
    width: 100% !important;
  }

  .form-actions button {
    width: 100% !important;
  }

  .ghost-btn, .primary-btn {
    width: 100% !important;
    text-align: center;
    box-sizing: border-box !important;
  }

  #supervisaoFormCard,
  #supervisaoRecordsCard,
  #supervisaoForm,
  .supervisao-filter-bar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  #supervisaoFormCard h2,
  #supervisaoRecordsCard h2,
  #supervisaoFormTitle,
  #supervisaoForm label,
  #supervisaoForm span,
  #supervisaoRecordsCard span,
  #supervisaoRecordsCard strong {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
  }

  #supervisaoRecordsCard .primary-btn,
  #supervisaoRecordsCard .ghost-btn {
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 0.80rem !important;
    padding: 8px 10px !important;
  }
}

@media (max-width: 480px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Home Page Summary Grid Layout (3 items on top line, 2 items on bottom line) */
#homeSummaryGrid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 8px !important;
  text-align: center !important;
  width: 100% !important;
}

#homeSummaryGrid .summary-item {
  padding: 10px 4px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
}

#homeSummaryGrid .summary-item-top {
  grid-column: span 2 !important;
}

#homeSummaryGrid .summary-item-bottom {
  grid-column: span 3 !important;
  padding: 10px 8px !important;
}

#homeSummaryGrid .summary-item strong {
  font-size: 1.05rem !important;
  word-break: break-word !important;
  margin-bottom: 2px !important;
  line-height: 1.15 !important;
}

#homeSummaryGrid .summary-item span {
  font-size: 0.70rem !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

/* Photo System Custom Styles */
.photo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 16px;
  box-sizing: border-box;
}

.photo-modal {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalFadeIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.photo-modal h3 {
  margin: 0;
  color: #1e3a8a;
  font-size: 1.25rem;
  font-weight: 800;
  border-bottom: 2px solid #eff6ff;
  padding-bottom: 12px;
}

.photo-modal label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
}

.photo-modal input, .photo-modal select {
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.photo-modal input:focus, .photo-modal select:focus {
  border-color: #2563eb;
}

.photo-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.photo-modal-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.photo-modal-actions .save-btn {
  background: #2563eb;
  color: white;
}

.photo-modal-actions .save-btn:hover {
  background: #1d4ed8;
}

.photo-modal-actions .cancel-btn {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.photo-modal-actions .cancel-btn:hover {
  background: #e2e8f0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
  border: 1.5px dashed #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
}

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

.photo-item .delete-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: background 0.2s;
}

.photo-item .delete-photo:hover {
  background: #dc2626;
}

.empty-photos {
  grid-column: 1 / -1;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 30px 10px;
  font-weight: 500;
}

.settings-info-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.settings-info-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

/* Ocultar opções de pasta e câmera no modal de configurações */
#folderSettingsSection,
#cameraSettingsSection,
#selectStorageFolderBtn,
#selectedFolderLabel,
#preferredCameraLabel,
#selectCameraBtn,
#clearCameraBtn {
  display: none !important;
}

/* Links Clicáveis para Relatório */
.clickable-vehicle-link {
  color: #1d4ed8 !important;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1.5px dashed #93c5fd;
  padding-bottom: 1px;
  transition: all 0.15s ease;
}

.clickable-vehicle-link:hover,
.clickable-vehicle-link:active {
  color: #1e40af !important;
  border-bottom-style: solid;
  border-bottom-color: #2563eb;
  background-color: #eff6ff;
  border-radius: 4px;
  padding: 1px 4px;
}

.clickable-plate-link {
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clickable-plate-link:hover,
.clickable-plate-link:active {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  border-color: #2563eb !important;
}

/* Custom Select para Filtro de Oficinas */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px !important;
  box-sizing: border-box;
}

.custom-select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.supervisao-filter-bar {
  transition: all 0.2s ease;
}

.oficina-list-card {
  transition: all 0.15s ease-in-out;
}

.oficina-list-card:hover {
  border-color: #93c5fd !important;
  background-color: #f8faff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.oficina-list-card:active {
  transform: scale(0.99);
  background-color: #eff6ff !important;
  border-color: #3b82f6 !important;
}

/* Form Title Header Modern Styling */
.form-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 8px;
}

.form-title-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-title-status-indicator {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.3px;
}

.form-title-status-indicator.editing {
  color: #b45309;
}

.form-title-type-badge {
  font-size: 0.8rem !important;
  padding: 4px 10px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-title-secondary {
  display: flex;
  align-items: center;
}

.form-title-day-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-title-icon {
  font-size: 1.2rem;
}

.form-title-text {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
}

/* ==========================================================================
   MÓDULO DE PARTES DE VEÍCULOS (ZONAS E PEÇAS) - 2 COLUNAS COMPACTAS
   ========================================================================== */
.vp-type-tabs-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
}

.vp-type-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 4px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.vp-type-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

#vpPartsScrollContainer {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 6px 8px 80px 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.vp-zone-group-header {
  font-size: 0.76rem;
  font-weight: 800;
  color: #1e3a8a;
  background: #e0f2fe;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.vp-category-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.vp-category-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 4px 1px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.vp-part-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vp-part-card.selected-troca {
  border-color: #dc2626;
  background: #fffafa;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12);
}

.vp-part-card.selected-reparo {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

.vp-part-card.is-dragging {
  opacity: 0.45;
  border: 1.5px dashed #3b82f6 !important;
  transform: scale(0.97);
}

.vp-part-card.drag-over {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45) !important;
  transform: scale(1.02);
}

.vp-part-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 18px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0 2px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: all 0.15s ease;
}

.vp-part-num:hover {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
  transform: scale(1.06);
}

.vp-part-num:active {
  cursor: grabbing;
  background: #bfdbfe;
  transform: scale(0.95);
}

/* 1ª LINHA: [Número] [Descrição da Peça (Máximo espaço)] [❌ Excluir] */
.vp-card-top {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.vp-part-title {
  font-size: 0.80rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  text-align: left;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-btn-delete-part {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 900;
  color: #94a3b8;
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.vp-btn-delete-part:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* 2ª LINHA: [Trocar (34%)] [Reparar (34%)] [Obs. (18%)] [✏️ Editar (14%)] */
.vp-card-actions {
  display: flex;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
}

.vp-btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 1px;
  border-radius: 5px;
  font-size: 0.70rem;
  font-weight: 800;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.12s ease;
  min-height: 25px;
  box-sizing: border-box;
  white-space: nowrap;
}

.vp-btn-action.btn-trocar {
  flex: 0 0 34%;
  width: 34%;
  color: #dc2626;
  border-color: #fecaca;
}

.vp-btn-action.btn-trocar.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
}

.vp-btn-action.btn-reparar {
  flex: 0 0 34%;
  width: 34%;
  color: #0284c7;
  border-color: #bae6fd;
}

.vp-btn-action.btn-reparar.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25);
}

.vp-btn-action.btn-obs {
  flex: 0 0 18%;
  width: 18%;
  color: #64748b;
  border-color: #cbd5e1;
  background: #f8fafc;
  font-size: 0.67rem;
}

.vp-btn-action.btn-obs.active,
.vp-btn-action.btn-obs.has-obs {
  color: #2563eb;
  border-color: #93c5fd;
  background: #eff6ff;
  font-weight: 800;
}

.vp-btn-action.btn-edit-part {
  flex: 0 0 14%;
  width: 14%;
  color: #475569;
  border-color: #cbd5e1;
  background: #f8fafc;
  font-size: 0.68rem;
  padding: 4px 0;
}

.vp-btn-action.btn-edit-part:hover {
  color: #1e40af;
  background: #eff6ff;
  border-color: #93c5fd;
}

/* OBSERVAÇÃO INLINE COMPACTA */
.vp-inline-obs-box {
  width: 100%;
  padding-top: 3px;
  border-top: 1px dashed #e2e8f0;
}

.vp-inline-obs-input {
  width: 100%;
  box-sizing: border-box;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  font-size: 0.70rem;
  font-weight: 600;
  outline: none;
  background: #ffffff;
  color: #1e293b;
}

.vp-inline-obs-input.input-troca:focus {
  border-color: #dc2626;
}

.vp-inline-obs-input.input-reparo:focus {
  border-color: #0284c7;
}

.vp-zone-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all 0.15s ease;
}

.vp-zone-card.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.vp-zone-icon {
  font-size: 1.2rem;
}

.vp-zone-info strong {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
}

.vp-zone-info span {
  font-size: 0.68rem;
  color: #64748b;
}

.vp-zone-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #2563eb;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 999px;
}

.vp-zone-group-header {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 4px solid #2563eb;
  margin-top: 6px;
}

.vp-sheet-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 6px;
}

.vp-sheet-item-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.vp-btn-sheet-remove {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  font-size: 0.80rem;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Abas de Tipo de Veículo */
.vp-type-tabs-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.vp-type-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 3px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.vp-type-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.vp-type-tab-btn:hover:not(.active) {
  background: #e2e8f0;
  color: #1e293b;
}

.vp-type-tab-btn:active {
  transform: scale(0.97);
}

/* Oficina Combobox Dropdown - z-index elevado para sobreposicao livre */
.oficina-combobox-dropdown {
  z-index: 1000 !important;
}

/* Botao de Estrela de Favoritos nas Pecas */
.vp-btn-fav-part {
  background: none;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 3px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  user-select: none;
}
.vp-btn-fav-part:active {
  transform: scale(1.3) !important;
}

/* Complemento - Layout de 2 colunas para Trocas e Reparos */
.complemento-columns-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .complemento-columns-row {
    gap: 8px !important;
  }
}

/* Botões de Transferência de Categoria de Peça (Carro <-> Moto <-> Picape <-> Caminhão) */
.vp-transfer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.vp-transfer-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.vp-transfer-btn.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2) !important;
}

.vp-custom-category-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  background: #ffffff;
  color: #334155;
}

.vp-custom-category-label:has(input:checked),
.vp-custom-category-label.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15) !important;
}

/* Abas de Navegação Personalizadas de Peças */
.vp-custom-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}
.vp-custom-nav-tab:hover {
  background: #f1f5f9;
}
.vp-custom-nav-tab.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}
.vp-custom-nav-tab.is-custom.active {
  border-color: #0284c7;
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(2, 132, 199, 0.25);
}
.vp-tab-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.vp-tab-icon-btn.active {
  border-color: #2563eb;
  background: #eff6ff;
  transform: scale(1.08);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}
.vp-custom-tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e40af;
}

/* MULTI-EMPRESA & CÂMERA POR EMPRESA STYLES */
.company-selection-box {
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.company-toggle-btn {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.company-toggle-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.company-toggle-btn.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1e40af !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.badge-empresa {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
}



