/* ==========================================================================
   PIPALOG PRO — APP DO MOTORISTA (TELA 02 — INÍCIO / DASHBOARD OPERACIONAL)
   Paleta:
   - Azul Principal: #087FBD
   - Azul Escuro:    #12314B
   - Branco:         #FFFFFF
   - Cinza Claro:    #F2F6FA
   - Verde (Sucesso):#10B981
   - Laranja (Alerta):#F59E0B
   - Vermelho (Erro):#EF4444
   ========================================================================== */

.driver-app-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: #F2F6FA;
  color: #12314B;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(9, 25, 43, 0.25);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding-bottom: 5.25rem;
  position: relative;
  touch-action: pan-y !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-text-size-adjust: 100% !important;
}

.driver-app-container input,
.driver-app-container select,
.driver-app-container textarea {
  font-size: 16px !important;
  touch-action: manipulation !important;
}

/* ================= CABEÇALHO AZUL (#087FBD -> #12314B) ================= */
.driver-top-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 2.1rem 1.25rem;
  background: linear-gradient(155deg, #087FBD 0%, #12314B 100%);
  color: #FFFFFF;
  position: relative;
  z-index: 20;
}

.driver-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.driver-user-brief {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.driver-mini-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #087FBD;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.driver-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-user-meta {
  min-width: 0;
}

.driver-user-meta h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-user-meta span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  display: block;
}

.driver-top-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Badge de Situação de Conexão e Operação */
.driver-conn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.25);
  color: #A7F3D0;
  border: 1px solid rgba(16, 185, 129, 0.45);
  white-space: nowrap;
}

.driver-conn-badge.online {
  background: #10B981;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.driver-conn-badge.offline {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.conn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  animation: pulseDot 2s infinite ease-in-out;
}

.btn-clean-ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  border-radius: 9px;
  padding: 0.45rem 0.65rem;
  min-height: 36px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-clean-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* Barra de Status do Motorista */
.driver-status-bar {
  display: flex;
  gap: 0.45rem;
  background: rgba(9, 25, 43, 0.28);
  padding: 0.3rem;
  border-radius: 12px;
}

.driver-clean-pill {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  padding: 0.48rem 0.25rem;
  min-height: 38px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.driver-clean-pill.active {
  background: #FFFFFF;
  color: #087FBD;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ================= CORPO DO DASHBOARD (#F2F6FA) ================= */
.driver-content-body {
  padding: 1.25rem 1.15rem 2rem 1.15rem;
  margin-top: -0.25rem;
  border-radius: 22px 22px 0 0;
  background: #F2F6FA;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  position: relative;
  z-index: 30;
  flex: 1;
}

/* 1. CARD DO CAMINHÃO VINCULADO */
.driver-vehicle-banner {
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin-top: 0;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 8px 22px rgba(18, 49, 75, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.driver-vehicle-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(8, 127, 189, 0.14);
}

.vehicle-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(8, 127, 189, 0.1);
  color: #087FBD;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vehicle-banner-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.vehicle-banner-info strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: #12314B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-banner-info span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5A7184;
}

.vehicle-banner-chevron {
  color: #8799AB;
  display: flex;
  align-items: center;
}

/* 2. CARD DE AUTORIZAÇÃO DE LOCALIZAÇÃO GPS */
.driver-location-card {
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 15px;
  padding: 0.9rem 1.05rem;
  box-shadow: 0 3px 10px rgba(18, 49, 75, 0.04);
}

.driver-location-prompt {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.driver-location-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.driver-location-pin {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(8, 127, 189, 0.1);
  color: #087FBD;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.driver-location-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #12314B;
  margin-bottom: 0.1rem;
}

.driver-location-info p {
  font-size: 0.76rem;
  color: #5A7184;
  margin: 0;
  line-height: 1.3;
}

.btn-location-auth {
  min-height: 46px;
  width: 100%;
  background: #087FBD;
  color: #FFFFFF;
  border: none;
  border-radius: 11px;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(8, 127, 189, 0.25);
  transition: all 0.2s;
}

.btn-location-auth:hover {
  background: #066CA3;
}

.driver-location-active {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.driver-location-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
}

.driver-gps-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* 3. INDICADORES DO DIA ("Sua operação hoje") */
.driver-today-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.driver-block-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #12314B;
  margin: 0;
  letter-spacing: -0.01em;
}

.driver-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 0.7rem;
}

.driver-kpi-box {
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 14px;
  padding: 0.95rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(18, 49, 75, 0.05);
}

.driver-kpi-num {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.15rem;
  letter-spacing: -0.02em;
}

.driver-kpi-num.num-blue {
  color: #087FBD;
}

.driver-kpi-num.num-green {
  color: #10B981;
}

.driver-kpi-num.num-dark {
  color: #12314B;
  font-size: 1.08rem;
}

.driver-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5A7184;
}

/* ================= 4. CARD PRINCIPAL ("Entrega atual") ================= */
.driver-delivery-hero {
  background: #FFFFFF;
  border: 1.5px solid #DCE6F1;
  border-radius: 20px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 8px 24px rgba(18, 49, 75, 0.07);
  position: relative;
}

.driver-delivery-hero.instant {
  border-color: #F59E0B;
}

.driver-current-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.driver-current-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #5A7184;
  display: block;
  margin-bottom: 0.1rem;
}

.driver-clean-code {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #12314B;
}

.driver-clean-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.driver-clean-tag.instant {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.driver-clean-tag.scheduled {
  background: #F0F9FF;
  color: #087FBD;
  border: 1px solid #BAE6FD;
}

.driver-clean-tag.status-rota {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.driver-clean-tag.status-local {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.driver-hero-client {
  font-size: 1.2rem;
  font-weight: 800;
  color: #12314B;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.driver-hero-address {
  font-size: 0.85rem;
  color: #5A7184;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.4;
}

.driver-hero-address svg {
  color: #087FBD;
  margin-top: 2px;
}

.driver-meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  background: #F2F6FA;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #12314B;
}

.driver-meta-pills .meta-sep {
  color: #CBD5E1;
}

/* STEPPER DE PROGRESSO DA ENTREGA ATUAL (5 MARCOS CONECTADOS) */
.driver-progress-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: relative;
  margin: 1.15rem 0 1.45rem 0;
  padding-top: 0.2rem;
  width: 100%;
}

.driver-progress-stepper::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 7%;
  right: 7%;
  height: 2.5px;
  background: #DCE6F1;
  z-index: 1;
}

.driver-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  gap: 0.3rem;
}

.driver-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.driver-step-node.done .driver-step-dot {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.driver-step-node.current .driver-step-dot {
  background: #087FBD;
  border-color: #087FBD;
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(8, 127, 189, 0.2);
}

.driver-step-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #8799AB;
  line-height: 1.1;
}

.driver-step-node.done .driver-step-lbl {
  color: #12314B;
}

.driver-step-node.current .driver-step-lbl {
  color: #087FBD;
  font-weight: 800;
}

/* Callout de Orientação da Próxima Etapa */
.driver-next-step-hint {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #12314B;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  line-height: 1.35;
}

.driver-next-step-hint strong {
  color: #087FBD;
}

.driver-info-block {
  font-size: 0.79rem;
  color: #12314B;
  background: #F2F6FA;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  border-left: 3.5px solid #087FBD;
}

/* Botão da Próxima Ação Destacada (Elemento visual mais importante da tela) */
.btn-driver-main-step {
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1rem;
  border-radius: 13px;
  font-size: 0.98rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 18px rgba(8, 127, 189, 0.28);
  transition: all 0.2s;
}

.btn-step-accept {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}

.btn-step-accept:hover {
  background: #059669;
}

.btn-step-start {
  background: #087FBD;
  color: #FFFFFF;
}

.btn-step-start:hover {
  background: #066CA3;
}

.btn-step-arrived {
  background: #087FBD;
  color: #FFFFFF;
}

.btn-step-arrived:hover {
  background: #066CA3;
}

.btn-step-finish {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}

.btn-step-finish:hover {
  background: #059669;
}

/* Botão Secundário "Ver detalhes da entrega" */
.btn-driver-secondary-details {
  width: 100%;
  min-height: 46px;
  margin-top: 0.75rem;
  background: #F2F6FA;
  border: 1px solid #DCE6F1;
  border-radius: 11px;
  color: #087FBD;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-driver-secondary-details:hover {
  background: #E2ECF7;
}

/* Painel Expansível de Detalhes, Contato e Navegação */
.driver-expandable-details {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #DCE6F1;
}

.driver-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.driver-nav-btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem;
  background: #F2F6FA;
  border: 1px solid #DCE6F1;
  border-radius: 10px;
  color: #12314B;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.driver-nav-btn:hover {
  border-color: #087FBD;
  color: #087FBD;
}

.driver-contact-row {
  display: flex;
  gap: 0.5rem;
}

.driver-contact-pill {
  flex: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem;
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 10px;
  color: #5A7184;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.driver-contact-pill:hover {
  border-color: #087FBD;
  color: #087FBD;
}

/* ================= FILA DE PRÓXIMAS ENTREGAS & CONCLUÍDAS ================= */
.driver-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.65rem 0;
}

.driver-section-header h3 {
  font-size: 0.94rem;
  font-weight: 800;
  color: #12314B;
  margin: 0;
}

.driver-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.driver-queue-card {
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(18, 49, 75, 0.04);
  transition: border-color 0.2s;
}

.driver-queue-card:hover {
  border-color: #087FBD;
}

.driver-queue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.driver-queue-client {
  font-size: 0.98rem;
  font-weight: 800;
  color: #12314B;
  margin-bottom: 0.2rem;
}

.driver-queue-address {
  font-size: 0.78rem;
  color: #5A7184;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.driver-queue-specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #087FBD;
  font-weight: 700;
  padding-top: 0.5rem;
  border-top: 1px solid #F2F6FA;
}

.driver-empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1.5px dashed #CBD5E1;
}

.driver-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.driver-empty-state h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem 0;
  color: #12314B;
}

.driver-empty-state p {
  color: #5A7184;
  font-size: 0.84rem;
  margin: 0 auto;
  max-width: 360px;
  line-height: 1.45;
}

.driver-loading-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #5A7184;
  font-weight: 600;
}

/* ================= 5. NAVEGAÇÃO INFERIOR FIXA (5 ABAS) ================= */
.driver-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: 66px;
  background: #FFFFFF;
  border-top: 1px solid #DCE6F1;
  box-shadow: 0 -4px 20px rgba(18, 49, 75, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 120;
  padding: 0 0.25rem;
}

.driver-bottom-tab {
  background: transparent;
  border: none;
  color: #8799AB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease;
  position: relative;
}

.driver-bottom-tab.active {
  color: #087FBD;
}

.driver-bottom-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #087FBD;
}

.tab-icon-wrap {
  position: relative;
  display: inline-flex;
}

.tab-badge-count {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================
   TELA 03 — NOVA ENTREGA RECEBIDA & MODAIS OPERACIONAIS
   ======================================================== */

.driver-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 49, 75, 0.72);
  backdrop-filter: blur(4px);
  z-index: 260;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: driverFadeIn 0.2s ease-out;
}

@media (min-width: 540px) {
  .driver-modal-overlay {
    align-items: center;
    padding: 1rem;
  }
}

@keyframes driverFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.driver-modal-sheet {
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  background: #FFFFFF;
  color: #12314B;
  border-radius: 22px 22px 0 0;
  padding: 1.25rem;
  box-shadow: 0 -10px 36px rgba(18, 49, 75, 0.28);
}

@media (min-width: 540px) {
  .driver-modal-sheet {
    border-radius: 22px;
  }
}

.driver-new-delivery-sheet {
  padding: 0;
  overflow-x: hidden;
}

.driver-new-alert-header {
  background: linear-gradient(145deg, #087FBD 0%, #12314B 100%);
  color: #FFFFFF;
  padding: 1.15rem 1.25rem 1.1rem 1.25rem;
}

.driver-new-alert-header.urgent-alert {
  background: linear-gradient(145deg, #DC2626 0%, #991B1B 100%);
}

.driver-new-alert-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.driver-new-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.3);
}

.btn-driver-modal-close-light {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-new-alert-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.driver-new-alert-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  line-height: 1.35;
}

.driver-new-delivery-body {
  padding: 1.15rem 1.25rem 1.35rem 1.25rem;
}

.driver-new-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #E2ECF5;
}

.driver-new-field-lbl {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  color: #5A7184;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.driver-new-code {
  font-size: 1.05rem;
  font-weight: 800;
  color: #087FBD;
  font-family: 'JetBrains Mono', monospace;
}

.driver-new-client-box {
  background: #F2F6FA;
  border: 1px solid #DCE6F1;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.8rem;
}

.driver-new-client-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: #12314B;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.driver-new-address-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.driver-new-address-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #12314B;
  line-height: 1.35;
}

.driver-new-address-ref {
  font-size: 0.76rem;
  color: #5A7184;
  margin-top: 0.18rem;
}

.driver-new-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.driver-new-spec-item {
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.driver-new-spec-item.spec-full {
  grid-column: span 2;
}

.driver-new-spec-item .spec-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5A7184;
}

.driver-new-spec-item .spec-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #12314B;
}

.driver-new-spec-item .spec-val.spec-highlight {
  color: #087FBD;
  font-size: 1.05rem;
}

.btn-driver-impossibilidade-toggle {
  width: 100%;
  min-height: 46px;
  margin-top: 0.6rem;
  background: #FFF5F5;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-driver-impossibilidade-toggle:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

.driver-recusa-container {
  background: #FFF8F8;
  border: 1.5px solid #FECACA;
  border-radius: 14px;
  padding: 0.95rem;
  margin-top: 0.5rem;
}

.driver-recusa-header {
  margin-bottom: 0.65rem;
}

.driver-recusa-header strong {
  display: block;
  font-size: 0.9rem;
  color: #991B1B;
  margin-bottom: 0.15rem;
}

.driver-recusa-header span {
  font-size: 0.76rem;
  color: #7F1D1D;
}

.driver-recusa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.driver-reason-chip {
  background: #FFFFFF;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.driver-reason-chip:hover {
  background: #FEE2E2;
}

.driver-clean-textarea {
  width: 100%;
  border: 1.5px solid #DCE6F1;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
  font-family: inherit;
  color: #12314B;
  background: #FFFFFF;
  resize: vertical;
  margin-bottom: 0.7rem;
}

.driver-clean-textarea:focus {
  outline: none;
  border-color: #DC2626;
}

.driver-recusa-actions {
  display: flex;
  gap: 0.55rem;
}

.btn-recusa-voltar {
  flex: 0.8;
  min-height: 46px;
  background: #FFFFFF;
  color: #5A7184;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-recusa-confirmar {
  flex: 1.5;
  min-height: 46px;
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-recusa-confirmar:hover {
  background: #DC2626;
}

/* ========================================================
   TELA 04 — DETALHES DA ENTREGA (SUBTELA OPERACIONAL)
   ======================================================== */

.driver-subscreen {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  background: #F2F6FA;
  padding-bottom: 5.5rem;
  animation: driverFadeIn 0.18s ease-out;
}

.driver-subscreen-header {
  background: linear-gradient(145deg, #087FBD 0%, #12314B 100%);
  color: #FFFFFF;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(18, 49, 75, 0.16);
}

.btn-subscreen-back {
  background: transparent;
  border: none;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.25rem 0;
  letter-spacing: -0.01em;
}

.driver-readonly-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  white-space: nowrap;
}

.driver-subscreen-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.driver-detail-main-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #DCE6F1;
  padding: 1.15rem;
  box-shadow: 0 6px 20px rgba(18, 49, 75, 0.06);
}

.driver-detail-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.driver-detail-code {
  font-size: 0.9rem;
  font-weight: 800;
  color: #12314B;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.15rem;
  display: block;
}

.driver-detail-client-name {
  font-size: 1.24rem;
  font-weight: 800;
  color: #12314B;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 0.75rem 0;
}

.driver-detail-address-box {
  background: #F2F6FA;
  border: 1px solid #DCE6F1;
  border-radius: 13px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.driver-detail-address-box svg {
  color: #087FBD;
  flex-shrink: 0;
  margin-top: 2px;
}

.driver-detail-address-main {
  font-size: 0.88rem;
  font-weight: 700;
  color: #12314B;
  line-height: 1.35;
}

.driver-detail-address-ref {
  font-size: 0.78rem;
  color: #5A7184;
  font-weight: 600;
  margin-top: 0.22rem;
}

/* Grade de 3 Cartões (Volume | Tipo & Horário | Caminhão) */
.driver-detail-specs-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.driver-detail-spec-card {
  background: #F8FAFC;
  border: 1px solid #DCE6F1;
  border-radius: 12px;
  padding: 0.6rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.driver-detail-spec-card .spec-top {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #12314B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-detail-spec-card .spec-top svg {
  color: #087FBD;
  flex-shrink: 0;
}

.driver-detail-spec-card .spec-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: #5A7184;
}

/* Bloco de Contato e Navegação (4 botões grandes >= 48px) */
.driver-detail-section-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #12314B;
  margin: 0.35rem 0 0.55rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.driver-detail-phone-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #087FBD;
  background: #EBF5FB;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.driver-detail-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.driver-detail-action-btn {
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid #DCE6F1;
  background: #FFFFFF;
  color: #12314B;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  transition: all 0.18s ease;
}

.driver-detail-action-btn:hover {
  border-color: #087FBD;
  color: #087FBD;
  background: #F2F6FA;
}

.driver-detail-action-btn.btn-waze {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: #0369A1;
}

.driver-detail-action-btn.btn-maps {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #1E293B;
}

.driver-detail-action-btn.btn-whatsapp {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}

.driver-detail-action-btn.btn-phone {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

/* Linha do Tempo Vertical ("Progresso da entrega") */
.driver-vertical-timeline {
  display: flex;
  flex-direction: column;
  margin: 0.5rem 0 1rem 0;
  padding-left: 0.2rem;
}

.driver-vstep-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding-bottom: 1.05rem;
}

.driver-vstep-row:last-child {
  padding-bottom: 0.2rem;
}

.driver-vstep-row:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: #DCE6F1;
}

.driver-vstep-row.done:not(:last-child)::before {
  background: #10B981;
}

.driver-vstep-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  z-index: 2;
}

.driver-vstep-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F2F6FA;
  border: 2px solid #CBD5E1;
  color: #8799AB;
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.driver-vstep-row.done .driver-vstep-circle {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.driver-vstep-row.current .driver-vstep-circle {
  background: #087FBD;
  border-color: #087FBD;
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(8, 127, 189, 0.18);
}

.driver-vstep-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #8799AB;
}

.driver-vstep-row.done .driver-vstep-label {
  color: #12314B;
  font-weight: 700;
}

.driver-vstep-row.current .driver-vstep-label {
  color: #087FBD;
  font-weight: 800;
}

.driver-vstep-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5A7184;
  font-family: 'JetBrains Mono', monospace;
  padding-top: 0.2rem;
}

.driver-readonly-notice {
  font-size: 0.73rem;
  color: #5A7184;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

/* ========================================================
   TELA 05 — ABASTECIMENTO NA BASE
   ======================================================== */

.driver-abast-card {
  text-align: center;
  padding: 1.35rem 1.2rem;
}

.driver-abast-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
}

.driver-abast-title {
  font-size: 1.24rem;
  font-weight: 800;
  color: #12314B;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.driver-abast-subtitle {
  font-size: 0.84rem;
  color: #5A7184;
  line-height: 1.4;
  margin: 0 auto 1.1rem auto;
  max-width: 360px;
}

.driver-abast-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  text-align: left;
  margin-bottom: 1.1rem;
}

.driver-abast-info-item {
  background: #F2F6FA;
  border: 1px solid #DCE6F1;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.driver-abast-info-item.item-full {
  grid-column: span 2;
}

.driver-abast-info-item .info-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5A7184;
}

.driver-abast-info-item .info-val {
  font-size: 0.94rem;
  font-weight: 800;
  color: #12314B;
}

.driver-abast-info-item .info-val.val-blue {
  color: #087FBD;
}

.driver-abast-input-group {
  text-align: left;
  margin-bottom: 1.35rem;
}

.driver-abast-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: #12314B;
  margin-bottom: 0.4rem;
}

.driver-abast-input-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid #087FBD;
  border-radius: 14px;
  padding: 0.25rem 0.45rem 0.25rem 0.95rem;
  box-shadow: 0 4px 14px rgba(8, 127, 189, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.driver-abast-input-wrap.has-error {
  border-color: #EF4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.14);
}

.driver-abast-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  font-weight: 800;
  color: #12314B;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.45rem 0;
  width: 100%;
}

.driver-abast-input:focus {
  outline: none;
}

.driver-abast-unit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #EBF5FB;
  color: #087FBD;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.driver-abast-quick-row {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.driver-abast-chip {
  flex: 1;
  min-height: 38px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  color: #12314B;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.driver-abast-chip:hover {
  border-color: #087FBD;
  color: #087FBD;
  background: #EBF5FB;
}

.driver-tank-meter-box {
  background: #F8FAFC;
  border: 1px solid #DCE6F1;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  text-align: left;
  margin-bottom: 0.75rem;
}

.driver-tank-meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5A7184;
  margin-bottom: 0.35rem;
}

.driver-tank-meter-top strong {
  color: #087FBD;
  font-size: 0.82rem;
}

.driver-tank-meter-bar {
  width: 100%;
  height: 10px;
  background: #E2ECF5;
  border-radius: 999px;
  overflow: hidden;
}

.driver-tank-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #087FBD 0%, #10B981 100%);
  border-radius: 999px;
  transition: width 0.25s ease, background 0.2s ease;
}

.driver-tank-meter-fill.over-limit {
  background: #EF4444;
}

.driver-abast-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  color: #DC2626;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ========================================================
   TELA 06 — SAÍDA DA BASE / INICIAR ROTA
   ======================================================== */

.driver-saida-card {
  padding: 1.2rem;
}

.driver-saida-ready-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.95rem;
}

.driver-saida-ready-banner .ready-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.driver-saida-ready-banner .ready-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.driver-saida-ready-banner .ready-text strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: #065F46;
}

.driver-saida-ready-banner .ready-text span {
  font-size: 0.76rem;
  color: #047857;
  line-height: 1.3;
}

.driver-saida-dest-box {
  background: #F2F6FA;
  border: 1px solid #DCE6F1;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
}

.driver-saida-client {
  font-size: 1.16rem;
  font-weight: 800;
  color: #12314B;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.driver-saida-address {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.driver-saida-addr-main {
  font-size: 0.88rem;
  font-weight: 700;
  color: #12314B;
  line-height: 1.35;
}

.driver-saida-addr-ref {
  font-size: 0.76rem;
  color: #5A7184;
  font-weight: 600;
  margin-top: 0.18rem;
}

.driver-saida-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.driver-saida-metric-box {
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.driver-saida-metric-box.metric-full {
  grid-column: span 2;
}

.driver-saida-metric-box .metric-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5A7184;
}

.driver-saida-metric-box .metric-val {
  font-size: 0.96rem;
  font-weight: 800;
  color: #12314B;
}

.driver-saida-metric-box .metric-val.val-blue {
  color: #087FBD;
  font-size: 1.05rem;
}

.driver-saida-km-box {
  background: #F8FAFC;
  border: 1px solid #DCE6F1;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.driver-saida-km-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 800;
  color: #12314B;
  margin-bottom: 0.4rem;
}

.driver-saida-km-label small {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5A7184;
  background: #E2ECF5;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.driver-saida-km-input {
  width: 100%;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  color: #12314B;
  background: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
}

.driver-saida-km-input:focus {
  outline: none;
  border-color: #087FBD;
}

.driver-saida-gps-status {
  font-size: 0.73rem;
  font-weight: 600;
  color: #5A7184;
  margin-top: 0.45rem;
}

/* ========================================================
   TELA 07 — EM ROTA (OPERACIONAL CLEAN E DIRETA)
   ======================================================== */

.driver-emrota-card {
  padding: 1.5rem 1.35rem;
  background: #FFFFFF;
  border: 1.5px solid #DCE6F1;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(18, 49, 75, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.driver-emrota-header-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #EDF2F7;
}

.emrota-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}

.emrota-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.emrota-departure-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.driver-emrota-destination-clean {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.driver-emrota-client {
  font-size: 1.45rem;
  font-weight: 800;
  color: #12314B;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.driver-emrota-address {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
}

.driver-emrota-address svg {
  color: #087FBD;
  flex-shrink: 0;
  margin-top: 2px;
}

.driver-emrota-addr-main {
  font-size: 0.96rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.4;
}

.driver-emrota-addr-ref {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  margin-top: 0.35rem;
}

.driver-emrota-nav-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.driver-emrota-nav-btn {
  min-height: 52px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
}

.driver-emrota-nav-btn.nav-waze {
  background: #087FBD;
  color: #FFFFFF;
  border: 1px solid #087FBD;
  box-shadow: 0 4px 14px rgba(8, 127, 189, 0.25);
}

.driver-emrota-nav-btn.nav-waze:hover {
  background: #066CA3;
}

.driver-emrota-nav-btn.nav-maps {
  background: #FFFFFF;
  color: #1E293B;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.driver-emrota-nav-btn.nav-maps:hover {
  background: #F1F5F9;
}

.driver-emrota-main-btn {
  min-height: 56px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 14px;
  background: #087FBD;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(8, 127, 189, 0.3);
}

/* ========================================================
   TELA 08 — CONFIRMAR CHEGADA
   ======================================================== */

.driver-chegada-card {
  text-align: center;
  padding: 1.4rem 1.2rem;
}

.driver-chegada-pin-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
}

.driver-chegada-address-card {
  background: #F2F6FA;
  border: 1.5px solid #DCE6F1;
  border-radius: 15px;
  padding: 1.05rem 1.15rem;
  text-align: left;
  margin-bottom: 1.35rem;
}

.driver-chegada-client {
  font-size: 1.15rem;
  font-weight: 800;
  color: #12314B;
  margin-bottom: 0.35rem;
}

.driver-chegada-addr-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.driver-chegada-addr-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #12314B;
  line-height: 1.35;
}

.driver-chegada-addr-ref {
  font-size: 0.78rem;
  color: #5A7184;
  font-weight: 600;
  margin-top: 0.2rem;
}

.driver-chegada-gps-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.btn-driver-secondary-waze {
  width: 100%;
  min-height: 48px;
  margin-top: 0.65rem;
  background: #FFFFFF;
  border: 1.5px solid #DCE6F1;
  border-radius: 13px;
  color: #087FBD;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
}

.btn-driver-secondary-waze:hover {
  border-color: #087FBD;
  background: #F0F9FF;
}

/* ========================================================
   TELA 10 — COMPROVAÇÃO DA ENTREGA (FOTOS + ASSINATURA DIGITAL)
   ======================================================== */

.driver-comp-volume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F2F6FA;
  border: 1px solid #DCE6F1;
  border-radius: 13px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.95rem;
}

.driver-comp-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.driver-comp-photo-btn {
  min-height: 76px;
  background: #F8FAFC;
  border: 1.5px dashed #93C5FD;
  border-radius: 13px;
  padding: 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #087FBD;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.driver-comp-photo-btn:hover {
  background: #EBF5FB;
  border-color: #087FBD;
}

.driver-comp-thumb {
  width: 100%;
  max-height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.35rem;
  border: 1px solid #BAE6FD;
}

.btn-clear-sig {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.driver-signature-pad-wrap {
  position: relative;
  width: 100%;
  height: 130px;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  touch-action: none;
}

#driver-signature-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.sig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
}

.driver-comp-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* ========================================================
   TELA 11 — ENTREGA CONCLUÍDA
   ======================================================== */

.driver-concluida-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
}

.driver-concluida-check-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.driver-concluida-summary-box {
  background: #F2F6FA;
  border: 1px solid #DCE6F1;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  text-align: left;
  margin-bottom: 1rem;
}

.driver-concluida-client {
  font-size: 1.15rem;
  font-weight: 800;
  color: #12314B;
  margin: 0.2rem 0;
}

.driver-concluida-meta {
  font-size: 0.86rem;
  font-weight: 700;
  color: #087FBD;
  margin-bottom: 0.45rem;
}

.driver-concluida-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 0.25rem;
}

.driver-concluida-proof {
  font-size: 0.76rem;
  color: #5A7184;
  font-weight: 600;
}

.driver-concluida-next-box {
  background: #EBF5FB;
  border: 1px solid #BAE6FD;
  border-radius: 13px;
  padding: 0.8rem 0.95rem;
  text-align: left;
  margin-bottom: 1rem;
}

/* ========================================================
   TELAS 12 E 15 — FILA DE ENTREGAS & HISTÓRICO
   ======================================================== */

.driver-fila-filter-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.75rem 1rem 0.35rem 1rem;
  background: #087FBD;
}

.driver-fila-tab {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.driver-fila-tab.active {
  background: #FFFFFF;
  color: #087FBD;
  border-color: #FFFFFF;
}

.driver-hist-search-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0 1rem;
}

/* ========================================================
   TELA 13 — MAPA E LOCALIZAÇÃO DO MOTORISTA
   ======================================================== */

.driver-map-top-floating {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 4px 14px rgba(18, 49, 75, 0.06);
}

.driver-map-top-floating .map-route-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EBF5FB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.driver-map-top-floating .map-route-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #12314B;
}

.driver-map-top-floating .map-route-info span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #087FBD;
}

.driver-mobile-map-box {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #DCE6F1;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 18px rgba(18, 49, 75, 0.08);
}

.driver-map-bottom-card {
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 16px;
  padding: 0.95rem;
}

/* ========================================================
   TELA 14 — OCORRÊNCIAS (8 CATEGORIAS) & TELA 16 — NOTIFICAÇÕES
   ======================================================== */

.driver-ocorr-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.driver-ocorr-item {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #DCE6F1;
  border-radius: 15px;
  padding: 0.85rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 3px 10px rgba(18, 49, 75, 0.04);
}

.driver-ocorr-item:hover {
  border-color: #087FBD;
  transform: translateY(-1px);
}

.ocorr-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ocorr-icon.bg-red {
  background: #FEE2E2;
  color: #DC2626;
}

.ocorr-icon.bg-orange {
  background: #FEF3C7;
  color: #D97706;
}

.ocorr-icon.bg-green {
  background: #D1FAE5;
  color: #059669;
}

.ocorr-icon.bg-blue {
  background: #E0F2FE;
  color: #0284C7;
}

.ocorr-icon.bg-gray {
  background: #F1F5F9;
  color: #475569;
}

.ocorr-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.ocorr-text strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #12314B;
}

.ocorr-text span {
  font-size: 0.76rem;
  color: #5A7184;
  line-height: 1.3;
}

.ocorr-chevron {
  font-size: 1.25rem;
  font-weight: 800;
  color: #94A3B8;
}

/* ========================================================
   TELA 18 — PERFIL E CONFIGURAÇÕES
   ======================================================== */

.driver-perfil-hero {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #E2ECF5;
}

.driver-perfil-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #087FBD;
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.driver-perfil-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: #12314B;
  margin: 0 0 0.15rem 0;
}

.driver-perfil-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5A7184;
}

.driver-perfil-menu {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.driver-perfil-item {
  width: 100%;
  min-height: 50px;
  background: #F8FAFC;
  border: 1px solid #DCE6F1;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #12314B;
  font-size: 0.88rem;
  cursor: pointer;
}

.perfil-item-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.driver-perfil-collapse {
  background: #F2F6FA;
  border: 1px solid #DCE6F1;
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.35rem;
}

.btn-driver-perfil-logout {
  width: 100%;
  min-height: 48px;
  background: #FFF5F5;
  border: 1.5px solid #FECACA;
  border-radius: 12px;
  color: #DC2626;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

/* ========================================================
   TELA 19 — MODO OFFLINE & FAIXA DE SINCRONIZAÇÃO
   ======================================================== */

.driver-offline-sync-banner {
  background: #1E293B;
  color: #FFFFFF;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border-bottom: 2px solid #F59E0B;
  cursor: pointer;
}

.offline-banner-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.offline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.offline-banner-left strong {
  display: block;
  font-size: 0.8rem;
  color: #FFFFFF;
}

.offline-banner-left span {
  font-size: 0.7rem;
  color: #CBD5E1;
}

.btn-offline-sync-now {
  background: #087FBD;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 0.38rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.driver-offline-dark-screen {
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.driver-offline-card {
  width: 100%;
  max-width: 420px;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 1.85rem 1.4rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.driver-offline-wifi-icon {
  margin: 0 auto 1rem auto;
  display: flex;
  justify-content: center;
}

.driver-offline-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.55rem 0;
}

.driver-offline-desc {
  font-size: 0.86rem;
  color: #CBD5E1;
  line-height: 1.48;
  margin: 0 0 1.25rem 0;
}

.driver-offline-stats-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.offline-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94A3B8;
}

.offline-stat-row strong {
  color: #FFFFFF;
  font-weight: 800;
}

.btn-driver-offline-entendi {
  width: 100%;
  min-height: 50px;
  background: #087FBD;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 0.6rem;
}

.btn-driver-offline-sync {
  width: 100%;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}


/* ========================================================
   TORRE DE CONTROLE: RASTREAMENTO & TRAJETOS EM TEMPO REAL
   ======================================================== */

.fleet-tracking-screen {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
  min-height: 640px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1.5px solid #DCE6F1;
  box-shadow: 0 10px 30px rgba(18, 49, 75, 0.06);
  overflow: hidden;
}

.fleet-tracking-header {
  padding: 0.6rem 1.15rem;
  background: #FFFFFF;
  border-bottom: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.fleet-tracking-title {
  display: flex;
  flex-direction: column;
}

.fleet-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  width: fit-content;
}

.fleet-tracking-title h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}

.fleet-tracking-title p {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0.15rem 0 0 0;
}

.fleet-kpi-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.fleet-kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  min-width: 72px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.fleet-kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
}

.fleet-kpi-val.text-success {
  color: #10B981;
}

.fleet-kpi-val.text-primary {
  color: #0284C7;
}

.fleet-kpi-val.text-warning {
  color: #D97706;
}

.fleet-kpi-lbl {
  font-size: 0.66rem;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.fleet-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fleet-header-actions .btn {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fleet-header-actions .btn:hover {
  background: #F0F9FF;
  border-color: #0284C7;
  color: #0284C7;
}

.fleet-split-container {
  display: flex;
  flex: 1;
  height: calc(100% - 68px);
  overflow: hidden;
  background: #FFFFFF;
}

.fleet-sidebar {
  width: 350px;
  min-width: 310px;
  max-width: 370px;
  background: #F8FAFC;
  border-right: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fleet-sidebar-search {
  padding: 0.75rem 0.85rem 0.5rem 0.85rem;
}

.fleet-sidebar-search input {
  font-size: 0.83rem;
  padding: 0.45rem 0.75rem;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.fleet-sidebar-search input:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.fleet-filter-pills {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.85rem 0.75rem 0.85rem;
  border-bottom: 1px solid #E2E8F0;
}

.fleet-pill {
  padding: 0.3rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  background: #FFFFFF;
  color: #64748B;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fleet-pill:hover {
  border-color: #0284C7;
  color: #0284C7;
}

.fleet-pill.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.fleet-drivers-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fleet-driver-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 6px rgba(18, 49, 75, 0.04);
}

.fleet-driver-card:hover {
  border-color: #0284C7;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}

.fleet-driver-card.selected {
  border-color: #0284C7;
  background: #F0F9FF;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.fleet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.fleet-card-driver {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.fleet-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

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

.fleet-card-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.fleet-card-plate {
  font-size: 0.76rem;
  color: #0284C7;
  font-weight: 700;
  background: #E0F2FE;
  border: 1px solid #BAE6FD;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
  margin-top: 0.15rem;
}

.fleet-card-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.fleet-card-status-badge.badge-patio {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.fleet-card-status-badge.badge-rota {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.fleet-card-status-badge.badge-local {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.fleet-card-delivery-info {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 3.5px solid #0284C7;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 0.76rem;
}

.fleet-card-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid #F1F5F9;
}

.fleet-map-wrapper-large {
  flex: 1;
  position: relative;
  height: 100%;
  background: #F8FAFC;
}

.fleet-map-canvas {
  width: 100%;
  height: 100%;
}

.fleet-map-legend {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 999;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1E293B;
  box-shadow: 0 8px 24px rgba(18, 49, 75, 0.14);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.truck-moving {
  background: #10B981;
}

.legend-dot.truck-unloading {
  background: #F59E0B;
}

.legend-dot.truck-idle {
  background: #0284C7;
}

.legend-dot.route-line {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #0284C7;
}

.legend-dot.dest-pin {
  background: #EC4899;
}

.legend-dot.depot-pin {
  background: #6366F1;
}

/* Custom Markers on Leaflet (Estilo Waze Clean) */
.truck-map-marker {
  background: #0284C7;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  transition: transform 0.2s;
}

.truck-map-marker.moving {
  background: #10B981;
}

.truck-map-marker.unloading {
  background: #F59E0B;
}

.destination-map-marker {
  background: #EC4899;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 16px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.depot-map-marker {
  background: #6366F1;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 16px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.driver-clean-tag.volume-tag {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.32rem 0.75rem;
}


.driver-step-time {
  font-size: 0.67rem;
  font-weight: 600;
  color: #94A3B8;
  margin-top: 0.2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.driver-step-time.has-time {
  color: #087FBD;
  font-weight: 800;
}

.driver-step-node.done .driver-step-time.has-time {
  color: #10B981;
}


/* Linha de botões de navegação no card da entrega atual */
.driver-card-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.btn-card-nav {
  min-height: 44px;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.btn-card-nav.nav-waze {
  background: #087FBD;
  color: #FFFFFF;
  border: 1px solid #087FBD;
  box-shadow: 0 3px 10px rgba(8, 127, 189, 0.2);
}

.btn-card-nav.nav-waze:hover {
  background: #066CA3;
}

.btn-card-nav.nav-maps {
  background: #F8FAFC;
  color: #1E293B;
  border: 1.5px solid #DCE6F1;
}

.btn-card-nav.nav-maps:hover {
  background: #EDF2F7;
}


/* Blindagem definitiva do layout Flexbox da Home ao navegar entre telas */
.driver-top-bar:not([style*="display: none"]):not([style*="display:none"]) {
  display: flex !important;
}

.driver-content-body:not([style*="display: none"]):not([style*="display:none"]) {
  display: flex !important;
}

/* ========================================================
   NOVAS TELAS: AVALIAÇÃO DO CLIENTE & CHEGADA NA BASE
   ======================================================== */

.driver-client-pass-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
  color: #1E40AF;
}

.driver-client-pass-banner svg {
  flex-shrink: 0;
  color: #2563EB;
}

.driver-client-pass-banner div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.driver-client-pass-banner strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1E3A8A;
}

.driver-client-pass-banner span {
  font-size: 0.78rem;
  color: #3B82F6;
  line-height: 1.25;
}

.driver-client-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.driver-client-order-summary div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.driver-client-order-summary strong {
  font-size: 0.98rem;
  color: #0F172A;
}

.driver-rating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: #FEF9C3;
  border: 1px solid #FEF08A;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-top: 0.4rem;
}

.driver-star-rating {
  display: flex;
  gap: 0.45rem;
}

.driver-star-rating .star-btn {
  background: none;
  border: none;
  font-size: 2.35rem;
  color: #D1D5DB;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.driver-star-rating .star-btn:active {
  transform: scale(1.25);
}

.driver-star-rating .star-btn.active {
  color: #F59E0B;
  text-shadow: 0 1px 3px rgba(245, 158, 11, 0.35);
}

.rating-feedback-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: #854D0E;
  margin-top: 0.25rem;
}

/* CHEGADA NA BASE */
.driver-chegada-hero-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.65rem;
}

.driver-chegada-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #0F172A;
  text-align: center;
  margin: 0 0 0.35rem 0;
}

.driver-chegada-subtitle {
  font-size: 0.84rem;
  color: #475569;
  text-align: center;
  margin: 0 0 1rem 0;
  line-height: 1.35;
}

.driver-base-info-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.driver-base-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.driver-base-info-row .lbl {
  color: #64748B;
  font-weight: 600;
}

.driver-base-info-row strong {
  color: #0F172A;
  font-weight: 700;
}

.driver-base-calc-pill {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  color: #065F46;
  text-align: center;
  margin-top: 0.65rem;
}

.driver-step-retorno-active {
  background: #F0FDF4 !important;
  border-color: #86EFAC !important;
}


/* Ajuste de 6 marcos em linha única */
.driver-progress-stepper {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.driver-step-node {
  min-width: 0 !important;
  padding: 0 1px !important;
  gap: 0.2rem !important;
}

.driver-step-dot {
  width: 22px !important;
  height: 22px !important;
  font-size: 0.65rem !important;
  border-width: 1.5px !important;
}

.driver-step-lbl {
  font-size: 0.58rem !important;
  white-space: nowrap !important;
  letter-spacing: -0.25px !important;
}

.driver-step-time {
  font-size: 0.60rem !important;
  white-space: nowrap !important;
}


/* ========================================================
   CARROSSEL DE DATAS DA FILA (DIAS ANTERIORES E FUTUROS)
   ======================================================== */
.driver-date-carousel-wrap {
  background: #087FBD;
  padding: 0.55rem 0.65rem 0.6rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.driver-date-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.btn-date-step-nav {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-date-step-nav:active {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0.96);
}

.driver-date-current-month-badge {
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: capitalize;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease;
}

.driver-date-current-month-badge:hover {
  background: rgba(255, 255, 255, 0.24);
}

.driver-date-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.4rem 0.1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.driver-date-strip::-webkit-scrollbar {
  height: 4px;
}

.driver-date-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.driver-day-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 0.45rem 0.35rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  user-select: none;
}

.driver-day-chip:active {
  transform: scale(0.95);
}

.driver-day-chip .day-weekday {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0.92;
  line-height: 1;
}

.driver-day-chip .day-num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0.18rem 0;
}

.driver-day-chip .day-badge {
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  min-width: 17px;
  text-align: center;
  line-height: 1.2;
}

.driver-day-chip .day-badge.has-items {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Chip ativo selecionado */
.driver-day-chip.active {
  background: #FFFFFF !important;
  color: #087FBD !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.driver-day-chip.active .day-weekday {
  color: #087FBD !important;
  opacity: 1;
}

.driver-day-chip.active .day-num {
  color: #087FBD !important;
}

.driver-day-chip.active .day-badge {
  background: #087FBD !important;
  color: #FFFFFF !important;
}

.driver-day-chip.active .day-badge.has-items {
  background: #10B981 !important;
  color: #FFFFFF !important;
}

/* Marcação Hoje */
.driver-day-chip.is-today:not(.active) {
  border-color: #FDE047;
  background: rgba(253, 224, 71, 0.22);
}

.driver-day-chip.is-today:not(.active) .day-weekday {
  color: #FEF08A;
}

/* Header da lista do dia selecionado */
.driver-fila-date-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0.5rem 0.4rem 0.5rem;
  color: #12314B;
}

.driver-fila-date-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #12314B;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.driver-fila-date-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #087FBD;
  background: #E0F2FE;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}


/* Barra Superior Integrada da Fila de Entregas (Dias Subidos para Cima) */
.driver-fila-top-bar {
  background: linear-gradient(145deg, #087FBD 0%, #12314B 100%);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(18, 49, 75, 0.16);
}

.driver-fila-header {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.75rem 1.15rem 0.15rem 1.15rem !important;
  position: static !important;
}

.driver-fila-top-bar .driver-date-carousel-wrap {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 0.85rem 0.55rem 0.85rem !important;
}


/* ========================================================
   ESTILOS MODERNOS DO RASTREAMENTO & PERCURSO DO DIA (WAZE / CLEAN)
   ======================================================== */

.badge-sem-gps {
  background: #F1F5F9 !important;
  color: #94A3B8 !important;
  border: 1px solid #E2E8F0 !important;
}

.btn-fleet-percurso {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 8px;
  background: #F8FAFC;
  color: #0284C7;
  border: 1.5px solid #BAE6FD;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.16s ease;
}

.btn-fleet-percurso:hover {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.fleet-driver-card.history-active {
  border-color: #2563EB !important;
  background: #EFF6FF !important;
  box-shadow: 0 0 0 2px #2563EB !important;
}

.fleet-driver-card.no-gps {
  opacity: 0.82;
}

/* Painel Flutuante do Percurso do Dia sobre o Mapa */
.fleet-route-overlay-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  min-width: 320px;
  max-width: 380px;
  animation: slideInDown 0.25s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fleet-route-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #F1F5F9;
}

.fleet-route-overlay-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fleet-route-overlay-close {
  background: #F1F5F9;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #64748B;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fleet-route-overlay-close:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.fleet-route-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.fleet-route-stat-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
}

.fleet-route-stat-box .stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.fleet-route-stat-box .stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0284C7;
  margin-top: 0.15rem;
}

.fleet-route-date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1E40AF;
  margin-bottom: 0.65rem;
}

.fleet-route-date-input {
  border: 1px solid #93C5FD;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #1E3A8A;
}

/* Marcadores no Mapa para o Percurso */
.history-point-start {
  background: #10B981;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 12px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.45);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.history-point-end {
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 12px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.45);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.history-point-stop {
  background: #F59E0B;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}


/* ================= TOUCH & INSTANT TAP OPTIMIZATION (NO DELAY) ================= */
#driver-app-view * {
  -webkit-tap-highlight-color: transparent !important;
}

#driver-app-view button,
#driver-app-view a,
#driver-app-view input,
#driver-app-view select,
#driver-app-view textarea,
#driver-app-view .btn-driver-main-step,
#driver-app-view .btn-card-nav,
#driver-app-view .btn-clean-ghost,
#driver-app-view .driver-clean-pill,
#driver-app-view .star-btn,
#driver-app-view .driver-chip-btn,
#driver-app-view .driver-nav-item,
#driver-app-view .btn-unit-pill,
#driver-app-view .driver-step-node {
  touch-action: manipulation !important;
  cursor: pointer;
}

/* Immediate tactile pressed feedback in 30ms */
#driver-app-view button:active,
#driver-app-view .btn-driver-main-step:active,
#driver-app-view .btn-card-nav:active,
#driver-app-view .driver-action-btn-main:active {
  transform: scale(0.97) !important;
  filter: brightness(0.92);
  transition: transform 0.03s ease-out !important;
}

/* ================= BOTÃO FLUTUANTE PERMANENTE DE PARADA ================= */
.driver-fab-parada {
  position: fixed;
  right: 1.15rem;
  bottom: 4.75rem;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #B45309;
  color: #FFFFFF;
  border: 1.5px solid #FDE68A;
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.4);
  cursor: pointer;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease-out, background 0.12s ease-out;
}

.driver-fab-parada:active {
  transform: scale(0.93) !important;
  background: #92400E;
}

.btn-header-parada {
  background: #FEF3C7 !important;
  color: #B45309 !important;
  border: 1.5px solid #FDE68A !important;
  border-radius: 8px !important;
  padding: 0.35rem 0.65rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  cursor: pointer;
  touch-action: manipulation !important;
}

.btn-header-parada:active {
  transform: scale(0.95) !important;
}

/* ================= TELA DEDICADA DE REGISTRO DE PARADA / EVENTUALIDADE ================= */
.driver-parada-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.driver-parada-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  background: linear-gradient(135deg, rgba(8, 127, 189, 0.09) 0%, rgba(18, 49, 75, 0.04) 100%);
  border: 1.5px solid rgba(8, 127, 189, 0.2);
  border-radius: 16px;
}

.driver-parada-hero-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(145deg, #087FBD 0%, #06679B 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(8, 127, 189, 0.28);
}

.driver-parada-hero-content {
  flex: 1;
}

.driver-parada-hero-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #12314B;
  letter-spacing: -0.01em;
}

.driver-parada-hero-sub {
  margin: 0;
  font-size: 0.78rem;
  color: #5A7184;
  line-height: 1.4;
}

.driver-parada-trip-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.parada-trip-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.parada-trip-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.parada-trip-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: #12314B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-form-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.driver-parada-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.driver-parada-type-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 0.85rem 0.8rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  transition: border-color 0.12s ease-out, background 0.12s ease-out, transform 0.08s ease-out, box-shadow 0.12s ease-out;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
}

.driver-parada-type-card:active {
  transform: scale(0.97);
}

.driver-parada-type-card.active {
  border-color: #087FBD;
  background: #F0F9FF;
  box-shadow: 0 0 0 2px rgba(8, 127, 189, 0.2);
}

.parada-card-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
}

.parada-card-texts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.parada-card-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #12314B;
}

.driver-parada-type-card.active .parada-card-name {
  color: #0369A1;
}

.parada-card-desc {
  font-size: 0.7rem;
  color: #64748B;
  line-height: 1.25;
}

.parada-card-radio {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease-out;
}

.driver-parada-type-card.active .parada-card-radio {
  border-color: #087FBD;
  background: #087FBD;
}

.driver-parada-type-card.active .parada-card-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* Bloco de Hodômetro */
.driver-parada-km-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 1rem;
}

.driver-parada-km-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 0.35rem;
}

.driver-parada-km-field {
  width: 100%;
  padding: 0.85rem 4rem 0.85rem 1rem !important;
  border: 2px solid #087FBD !important;
  border-radius: 12px !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #12314B !important;
  background: #FFFFFF !important;
  letter-spacing: 0.02em;
}

.driver-parada-km-field:focus {
  outline: none;
  border-color: #0284C7 !important;
  box-shadow: 0 0 0 4px rgba(8, 127, 189, 0.16) !important;
}

.driver-parada-km-unit {
  position: absolute;
  right: 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0369A1;
  background: #E0F2FE;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  pointer-events: none;
  letter-spacing: 0.04em;
}

.driver-parada-km-feedback {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #5A7184;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.driver-parada-icon-input svg {
  position: absolute;
  left: 0.95rem;
  pointer-events: none;
  color: #64748B;
}

.driver-parada-text-input {
  width: 100%;
  padding: 0.85rem 0.95rem 0.85rem 2.65rem !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 12px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #12314B !important;
  background: #FFFFFF !important;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

.driver-parada-text-input:focus {
  outline: none;
  border-color: #087FBD !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 189, 0.15) !important;
}

.driver-parada-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 0.86rem;
  color: #12314B;
  background: #FFFFFF;
  resize: none;
  font-family: inherit;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

.driver-parada-textarea:focus {
  outline: none;
  border-color: #087FBD;
  box-shadow: 0 0 0 3px rgba(8, 127, 189, 0.15);
}

.btn-driver-confirmar-parada {
  margin-top: 0.25rem;
  min-height: 54px;
}

.btn-driver-parada-cancelar {
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: #64748B;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease-out;
  touch-action: manipulation !important;
}

.btn-driver-parada-cancelar:active {
  background: #F1F5F9;
  color: #334155;
  transform: scale(0.98);
}

/* Banner de Parada Ativa no "Em Rota" */
.driver-parada-active-banner {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border: 1.5px solid #FDE68A;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.95rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

.driver-parada-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.driver-parada-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.driver-parada-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #B45309;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.driver-parada-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.driver-parada-banner-text strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #78350F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-parada-banner-text span {
  font-size: 0.75rem;
  color: #92400E;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-parada-retomar {
  background: #059669 !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 0.65rem 1rem !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  transition: transform 0.1s ease-out, background 0.1s ease-out;
  touch-action: manipulation !important;
}

.btn-parada-retomar:active {
  transform: scale(0.95);
  background: #047857 !important;
}

.btn-driver-emrota-parada {
  margin-top: 0.75rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 14px;
  color: #B45309;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.1s ease-out, background 0.1s ease-out;
  touch-action: manipulation !important;
}

.btn-driver-emrota-parada:active {
  transform: scale(0.97);
  background: #FEF3C7;
}


.btn-driver-card-parada {
  margin-top: 0.65rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1rem;
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  color: #B45309;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.1s ease-out, background 0.1s ease-out, border-color 0.1s ease-out;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
}

.btn-driver-card-parada:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
}

.btn-driver-card-parada:active {
  transform: scale(0.98);
  background: #FDE68A;
}


.btn-driver-card-parada {
  margin-top: 0.65rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1rem;
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  color: #B45309;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.1s ease-out, background 0.1s ease-out, border-color 0.1s ease-out;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
}

.btn-driver-card-parada:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
}

.btn-driver-card-parada:active {
  transform: scale(0.98);
  background: #FDE68A;
}
