/* ========================================
   HEADER COM BARRA SUPERIOR - RODRIGUES COLCHÕES
   ======================================== */
.bg-nav, .bg-backoffice{
  background-color: #f8f9fa !important;
}
.titulo-tabela{
  font-size: 12px;
  text-transform: uppercase;
  color: #6c757d;
}

/* Barra superior azul */
.top-bar {
  background-color: #007bff;
  padding: 0.5rem 0;
  border-bottom: 1px solid #0056b3;
}

.top-bar .text-white {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Navbar principal - Design Flat com melhor contraste */
.navbar {
  background-color: #f8f9fa;
  padding: 1rem 0;
  -webkit-box-shadow: none;
          box-shadow: none;
  margin-bottom: 0;
  border-bottom: 1px solid #e9ecef;
}

/* Logo da navbar */
.navbar-logo {
  height: 50px;
  width: auto;
  max-width: 180px;
}

.navbar-brand {
  padding: 0;
  margin: 0;
}

/* Botão hambúrguer customizado - Design Flat */
.navbar-toggler {
  padding: 0.5rem;
  font-size: 1.25rem;
  border: none !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  background: transparent;
}

.navbar-toggler:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 24px;
  height: 24px;
}

/* ========================================
   DROPDOWN MOBILE - REMOVE ARROW DO MENU_MOBILE
   ======================================== */

/* Remove o ícone de arrow (seta) especificamente do dropdown menu_mobile */
#menu_mobile.dropdown-toggle::after {
  display: none !important;
}

/* Remove a seta em todas as variações do Bootstrap dropdown-toggle para o menu_mobile */
#menu_mobile.dropdown-toggle::before {
  display: none !important;
}

/* ========================================
   INPUTS BOOTSTRAP - ALTURA MÍNIMA 46PX
   ======================================== */

/* Inputs padrão do Bootstrap */
.form-control {
  min-height: 46px;
  padding: 0.75rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #ced4da;
  -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #0056b3;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
          box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Select dropdown */
.form-select {
  min-height: 46px;
  padding: 0.75rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #ced4da;
  -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

.form-select:focus {
  border-color: #0056b3;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
          box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Textarea - altura mínima proporcional */
.form-control[rows] {
  min-height: 46px;
}

/* Inputs de tamanho grande */
.form-control-lg,
.form-select-lg {
  min-height: 54px;
  padding: 1rem 1rem;
  border-radius: 6px;
}

/* Inputs de tamanho pequeno */
.form-control-sm,
.form-select-sm {
  min-height: 38px;
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
}

/* Input groups - altura mínima para textos e botões */
.input-group .input-group-text {
  min-height: 46px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 4px;
}

.input-group .btn {
  min-height: 46px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/* Range inputs - altura ajustada */
.form-range {
  height: 46px;
  padding: 0;
}

/* Color inputs */
.form-control-color {
  min-height: 46px;
  width: 46px;
  border-radius: 4px;
}

/* File inputs */
input[type="file"].form-control {
  min-height: 46px;
  padding: 0.625rem 0.75rem;
}

/* ========================================
   STEP INDICATORS - BARRA DE PROGRESSO
   ======================================== */

/* Container dos indicadores de step */
.step-indicators {
  margin-bottom: 2rem;
  padding: 1rem 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/* Item individual do step - Layout vertical (círculo em cima, texto embaixo) */
.step-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
  z-index: 2;
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
}

/* Círculo do step */
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background-color: #e9ecef;
  border: 2px solid #e9ecef;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.875rem;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  z-index: 3;
  margin-bottom: 0.5rem;
}

/* Estado ativo do círculo */
.step-circle.active {
  background-color: #0056b3;
  border-color: #0056b3;
  color: white;
}

/* Estado completo do círculo */
.step-circle.completed {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

/* Linha conectora entre steps */
.step-line {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 2px;
  background-color: #e9ecef;
  margin: 0 1rem;
  position: relative;
  z-index: 1;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -ms-flex-item-align: start;
      align-self: flex-start;
  margin-top: 20px; /* Alinha com o meio do círculo */
}

/* Linha ativa */
.step-line.active {
  background-color: #0056b3;
}

/* Linha completa */
.step-line.completed {
  background-color: #28a745;
}

/* Label do step - Agora fica abaixo do círculo */
.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  text-align: center;
  white-space: nowrap;
  margin-top: 0;
}

/* Label ativo */
.step-item:has(.step-circle.active) .step-label {
  color: #0056b3;
  font-weight: 600;
}

/* Label completo */
.step-item:has(.step-circle.completed) .step-label {
  color: #28a745;
  font-weight: 600;
}

/* Fallback para navegadores que não suportam :has() */
.step-item .step-circle.active ~ .step-label,
.step-item .step-circle.active + .step-label {
  color: #0056b3;
  font-weight: 600;
}

.step-item .step-circle.completed ~ .step-label,
.step-item .step-circle.completed + .step-label {
  color: #28a745;
  font-weight: 600;
}

/* Responsividade dos step indicators */
@media (max-width: 767.98px) {
  .step-circle {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .step-line {
    margin: 0 0.5rem;
    margin-top: 17px; /* Ajusta para o círculo menor */
  }

  .step-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }

  .step-line {
    margin: 0 0.25rem;
    margin-top: 15px; /* Ajusta para o círculo menor */
  }

  .step-indicators {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
  }

  .step-label {
    font-size: 0.75rem;
  }
}

/* Animações dos steps */
.step-circle {
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-circle.active {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

.step-circle.completed {
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-animation: stepComplete 0.5s ease-in-out;
          animation: stepComplete 0.5s ease-in-out;
}

@-webkit-keyframes stepComplete {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes stepComplete {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

/* ========================================
   FORMULÁRIOS RESPONSIVOS - CLEAN
   ======================================== */

/* Card do formulário */
.card {
  border-radius: 8px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

/* Form groups responsivos */
.form-group {
  position: relative;
  margin-bottom: 1.25rem;
}

/* Labels com melhor espaçamento */
.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Form text com melhor visibilidade */
.form-text {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Checkboxes e radios melhorados */
.form-check {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  margin-left: -1.5rem;
}

.form-check-input:checked {
  background-color: #0056b3;
  border-color: #0056b3;
}

.form-check-label {
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
  font-weight: 400;
  color: #495057;
}

/* Botões responsivos */
.btn.w-100 {
  min-height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/* Alerts responsivos */
.alert {
  border-radius: 6px;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.alert i {
  font-size: 1.1rem;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 3px solid #17a2b8;
}

/* ========================================
   QR CODE & COLABORADOR - LAYOUT ALTURA TOTAL
   ======================================== */

/* Container principal com altura mínima - permite scroll */
.min-vh-100.d-flex.flex-column {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Mantém o comportamento original do vh-100 */
.vh-100.d-flex.flex-column {
  min-height: 100vh;
  overflow: hidden;
}

/* Header com informações do colaborador */
.bg-primary.text-white {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

/* Cards de informações do colaborador */
.bg-white.bg-opacity-10 {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.bg-white.bg-opacity-10:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3);
}

/* QR Code container centralizado */
.qr-code-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
}

/* Estilo do QR Code */
.qr-code-image {
  min-width: 280px;
  min-height: 280px;
  width: 100%;
  height: auto;
  border: 3px solid #e9ecef;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 1rem;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
          box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-animation: qrFadeIn 0.5s ease-in-out;
          animation: qrFadeIn 0.5s ease-in-out;
}

.qr-code-image:hover {
  border-color: #0056b3;
  -webkit-box-shadow: 0 0.75rem 1.5rem rgba(0, 86, 179, 0.2);
          box-shadow: 0 0.75rem 1.5rem rgba(0, 86, 179, 0.2);
  -webkit-transform: scale(1.02);
          transform: scale(1.02);
}

/* Animação do QR Code */
@-webkit-keyframes qrFadeIn {
  from {
    opacity: 0;
    -webkit-transform: scale(0.9) translateY(20px);
            transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
  }
}
@keyframes qrFadeIn {
  from {
    opacity: 0;
    -webkit-transform: scale(0.9) translateY(20px);
            transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
  }
}

/* Estados de loading, erro e sucesso */
.flex-fill.d-flex.align-items-center.justify-content-center {
  min-height: 0;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

/* Loading spinner personalizado */
.spinner-border.text-primary {
  border-color: #0056b3;
  border-right-color: transparent;
  -webkit-animation: spinner-border 0.75s linear infinite;
          animation: spinner-border 0.75s linear infinite;
}

/* Footer fixo */
.border-top.bg-white {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background-color: #f8f9fa !important;
  border-top: 2px solid #e9ecef !important;
}

/* Alerts personalizados */
.alert-warning {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
  font-weight: 500;
}

.alert-danger {
  background-color: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
  font-weight: 500;
}

/* Texto de instruções */
.text-secondary.small {
  font-size: 0.875rem;
  color: #6c757d !important;
  font-weight: 400;
}

/* ========================================
   RESPONSIVIDADE PARA QR CODE & COLABORADOR
   ======================================== */

/* Desktop */
@media (min-width: 992px) {
  .qr-code-image {
    max-width: 320px;
    max-height: 320px;
  }
  
  .bg-primary.text-white .h4 {
    font-size: 1.75rem;
  }
  
  .bg-white.bg-opacity-10 {
    padding: 1.25rem !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
  .qr-code-image {
    max-width: 300px;
    max-height: 300px;
  }
  
  .bg-primary.text-white .h4 {
    font-size: 1.5rem;
  }
  
  .bg-white.bg-opacity-10 {
    padding: 1rem !important;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .qr-code-image {
    max-width: 250px;
    max-height: 250px;
    padding: 0.75rem;
    border-width: 2px;
  }
  
  .bg-primary.text-white {
    padding: 1.5rem !important;
  }
  
  .bg-primary.text-white .h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem !important;
  }
  
  .bg-white.bg-opacity-10 {
    padding: 0.75rem !important;
  }
  
  .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
  
  .text-start strong {
    font-size: 0.8rem;
  }
  
  .text-start span {
    font-size: 0.9rem;
  }
}

/* Mobile pequeno */
@media (max-width: 575.98px) {
  .qr-code-image {
    max-width: 220px;
    max-height: 220px;
    padding: 0.5rem;
  }
  
  .bg-primary.text-white {
    padding: 1rem !important;
  }
  
  .bg-primary.text-white .h4 {
    font-size: 1.1rem;
  }
  
  .bg-white.bg-opacity-10 {
    padding: 0.5rem !important;
  }
  
  .row.g-3 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
  
  .col-6 {
    padding: 0 0.25rem;
  }
  
  .text-start strong {
    font-size: 0.75rem;
    margin-bottom: 0.25rem !important;
  }
  
  .text-start span {
    font-size: 0.85rem;
    line-height: 1.2;
  }
  
  .btn {
    font-size: 0.85rem;
    padding: 0.625rem 1rem;
  }
}

/* ========================================
   ESTILOS ESPECÍFICOS PARA DADOS DO COLABORADOR
   ======================================== */

/* Labels dos dados */
.text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

/* Valores dos dados */
.h5.mb-0 {
  font-weight: 600;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* Responsividade dos valores */
@media (max-width: 767.98px) {
  .h5.mb-0 {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .h5.mb-0 {
    font-size: 0.9rem;
  }
}

/* Ícones nos dados */
.fas.fa-id-card,
.fas.fa-qrcode {
  color: rgba(255, 255, 255, 0.9);
}

/* Transições suaves */
.bg-white.bg-opacity-10,
.qr-code-image,
.btn {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Hover effects */
.bg-white.bg-opacity-10:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

/* ========================================
   VARIAÇÃO DE CORES PARA CONTRASTE
   ======================================== */

/* Opção 1: Navbar clara com borda */
.navbar-light-contrast {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

/* Opção 2: Navbar azul clara */
.navbar-blue-light {
  background-color: #e3f2fd;
  border-bottom: 1px solid #bbdefb;
}

/* Opção 3: Navbar azul escura */
.navbar-blue-dark {
  background-color: #1976d2;
  border-bottom: 1px solid #1565c0;
}

.navbar-blue-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-blue-dark .btn-outline-primary {
  color: #ffffff;
  border-color: #ffffff;
  background-color: transparent;
}

.navbar-blue-dark .btn-outline-primary:hover {
  color: #1976d2;
  background-color: #ffffff;
  border-color: #ffffff;
}

.navbar-blue-dark .btn-primary {
  color: #1976d2;
  background-color: #ffffff;
  border-color: #ffffff;
}

.navbar-blue-dark .btn-primary:hover {
  color: #ffffff;
  background-color: transparent;
  border-color: #ffffff;
}

/* Opção 4: Navbar cinza moderna */
.navbar-gray-modern {
  background-color: #495057;
  border-bottom: 1px solid #343a40;
}

.navbar-gray-modern .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-gray-modern .btn-outline-primary {
  color: #ffffff;
  border-color: #007bff;
  background-color: transparent;
}

.navbar-gray-modern .btn-outline-primary:hover {
  color: #ffffff;
  background-color: #007bff;
  border-color: #007bff;
}

.navbar-gray-modern .btn-primary {
  color: #ffffff;
  background-color: #007bff;
  border-color: #007bff;
}

.navbar-gray-modern .btn-primary:hover {
  color: #ffffff;
  background-color: #0056b3;
  border-color: #0056b3;
}

/* ========================================
   LAYOUT SEM ESPAÇAMENTOS
   ======================================== */

/* Remove espaçamentos do header e main */
header {
  margin: 0;
  padding: 0;
}

main {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Container fixed do Bootstrap */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ========================================
   ESTILOS GERAIS FLAT
   ======================================== */

/* Reset para design flat */
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #212529;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

/* Links gerais */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Remover todos os efeitos de sombra e gradientes */
.shadow,
.shadow-sm,
.shadow-lg {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

/* Variáveis CSS para design flat */
:root {
  --primary-color: #0056b3;
  --primary-hover: #004085;
  --border-color: #e9ecef;
  --text-color: #212529;
  --bg-color: #ffffff;
  --navbar-bg: #f8f9fa;
  --top-bar-bg: #007bff;
  --transition: all 0.2s ease;
}

/* Utilitários flat */
.flat-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.5rem;
}

.flat-button {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}

.flat-button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: white;
}

.flat-button-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}

.flat-button-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* ========================================
   LEITOR DE QR CODE - PORTARIA MOBILE
   ======================================== */

/* Container do leitor QR - Otimizado para mobile */
#reader {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e9ecef;
  background-color: #f8f9fa;
  min-height: 300px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
}

/* Estilo do video do leitor - Responsivo */
#reader video {
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Canvas do QR scanner - Responsivo */
#reader canvas {
  border-radius: 6px;
  max-width: 100% !important;
  height: auto !important;
}

/* Overlay para indicar atividade do scanner */
#reader.scanning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid #17a2b8;
  border-radius: 8px;
  -webkit-animation: scannerPulse 2s infinite;
          animation: scannerPulse 2s infinite;
  pointer-events: none;
  z-index: 10;
}

@-webkit-keyframes scannerPulse {
  0% {
    border-color: #17a2b8;
    opacity: 1;
  }
  50% {
    border-color: #138496;
    opacity: 0.5;
  }
  100% {
    border-color: #17a2b8;
    opacity: 1;
  }
}

@keyframes scannerPulse {
  0% {
    border-color: #17a2b8;
    opacity: 1;
  }
  50% {
    border-color: #138496;
    opacity: 0.5;
  }
  100% {
    border-color: #17a2b8;
    opacity: 1;
  }
}

/* Status indicator no scanner */
#reader .qr-status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(23, 162, 184, 0.9);
  color: white;
}

/* Card de resultado do QR Code - Animação melhorada */
.alert.alert-light.border {
  -webkit-animation: slideInUp 0.4s ease-out;
          animation: slideInUp 0.4s ease-out;
  border-radius: 8px;
  border-color: #28a745 !important;
  border-width: 2px !important;
}

@-webkit-keyframes slideInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* Conteúdo do resultado QR - Melhor legibilidade */
#reader-result {
  font-family: 'Courier New', monospace;
}

/* ---
  INÍCIO DAS REGRAS PERSONALIZADAS PARA PADDING RESPONSIVO - RODRIGUES COLCHÕES
--- */

/* Container com registros: .container-lg.bg-white */
.container-lg.bg-white {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 576px) {
  .container-lg.bg-white {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* Header (primeiro container-lg):
   use px-2 mobile e px-0 a partir de md */
.header-container {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
@media (min-width: 768px) {
  .header-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Micro-espaço extra em telas pequenas: margem inferior para separar dropdown e tabela */
@media (max-width: 576px) {
  .dropdown-margin-bottom-sm {
    margin-bottom: 0.75rem;
  }
}

/* ---
  FIM DAS REGRAS PERSONALIZADAS DE PADDING RESPONSIVO
--- */

/* ========================================
   BOTÕES LOGIN E CADASTRO - 100% LARGURA MOBILE
   ======================================== */

/* Botões de login e cadastro ocupam 100% largura em mobile */
@media (max-width: 767.98px) {
  /* Navbar collapse - torna os botões full width em mobile */
  .navbar-collapse .navbar-nav {
    width: 100%;
  }
  
  .navbar-collapse .navbar-nav .nav-item {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .navbar-collapse .navbar-nav .nav-item:last-child {
    margin-bottom: 0;
  }
  
  /* Botões de login e cadastro - largura total em mobile */
  .navbar-collapse .navbar-nav .nav-item .btn {
    width: 100%;
    display: block;
    text-align: center;
    margin-right: 0;
  }
  
  /* Remove margem direita do botão cadastrar em mobile */
  .navbar-collapse .navbar-nav .nav-item.me-2 {
    margin-right: 0 !important;
  }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 575.98px) {
  .navbar-collapse .navbar-nav .nav-item .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-height: 50px;
  }
}

/* ========================================
   VALIDAÇÃO DE FORMULÁRIOS - CPF E TELEFONE
   ======================================== */

/* Estados de validação melhorados */
.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 4.6l1.4 1.4-1.4 1.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Animação de foco para inputs com formatação */
.form-control[inputmode="numeric"],
.form-control[inputmode="tel"] {
  -webkit-transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

.form-control[inputmode="numeric"]:focus,
.form-control[inputmode="tel"]:focus {
  border-color: #0056b3;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
          box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
  background-color: #f8f9ff;
}

/* Indicador visual durante formatação */
.form-control.formatting {
  background-color: #f0f8ff;
  border-color: #17a2b8;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

/* Tooltip de erro personalizado */
.invalid-tooltip {
  position: absolute;
  top: 100%;
  z-index: 5;
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #fff;
  background-color: #dc3545;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  -webkit-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
          box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ========================================
   SELEÇÃO DE VEÍCULOS - PORTARIA
   ======================================== */

/* Cards de seleção de veículos */
.vehicle-card {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.vehicle-card:hover {
  border-color: #0056b3;
  -webkit-box-shadow: 0 0.25rem 0.5rem rgba(0, 86, 179, 0.15);
          box-shadow: 0 0.25rem 0.5rem rgba(0, 86, 179, 0.15);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  background-color: #f8f9ff;
}

.vehicle-card:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-box-shadow: 0 0.125rem 0.25rem rgba(0, 86, 179, 0.2);
          box-shadow: 0 0.125rem 0.25rem rgba(0, 86, 179, 0.2);
}

/* Estados do card de veículo */
.vehicle-card.selected {
  border-color: #28a745;
  background-color: #f8fff8;
  -webkit-box-shadow: 0 0.25rem 0.5rem rgba(40, 167, 69, 0.2);
          box-shadow: 0 0.25rem 0.5rem rgba(40, 167, 69, 0.2);
}

.vehicle-card .card-body {
  padding: 1rem;
}

/* Responsividade dos cards de veículo */
@media (max-width: 575.98px) {
  .vehicle-card .card-body {
    padding: 0.75rem;
  }
  
  .vehicle-card .fw-bold {
    font-size: 0.9rem;
  }
  
  .vehicle-card small {
    font-size: 0.75rem;
  }
  
  .vehicle-card .fas.fa-car {
    font-size: 1.25rem !important;
  }
}

/* Animação de entrada para os cards de veículo */
.vehicle-card {
  -webkit-animation: vehicleCardFadeIn 0.3s ease-out;
          animation: vehicleCardFadeIn 0.3s ease-out;
}

@-webkit-keyframes vehicleCardFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes vehicleCardFadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(10px);
            transform: translateY(10px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* Indicador de seleção para cards de veículo */
.vehicle-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent transparent #28a745 transparent;
  opacity: 0;
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
}

.vehicle-card.selected::after {
  opacity: 1;
}

.vehicle-card.selected::before {
  content: '✓';
  position: absolute;
  top: 0;
  right: 2px;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 10;
}

/* Header do card de seleção de veículos */
.card-header.bg-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
  border-bottom: 1px solid #d39e00;
}

/* Ícone de carros no header */
.fas.fa-cars {
  font-size: 1.1rem;
}

/* Texto informativo na seleção */
.text-muted .fas.fa-info-circle {
  color: #17a2b8 !important;
  font-size: 1rem;
}

/* Estilo para o header do card de veículo selecionado */
.card-header.bg-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
  border-bottom: 1px solid #117a8b;
}

/* Botão de troca de veículo */
.card-header .btn-light.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ========================================
   PESQUISA DE COLABORADOR - DEBUG E RESULTADO
   ======================================== */

/* Container de debug */
.debug-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0.75rem 0;
}

.debug-container pre {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 0.5rem;
  font-size: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  word-break: break-all;
  white-space: pre-wrap;
}

.debug-container .text-muted {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Card de resultado da pesquisa */
.search-result-card {
  -webkit-animation: fadeInUp 0.4s ease-out;
          animation: fadeInUp 0.4s ease-out;
  border: 2px solid #28a745;
  border-radius: 8px;
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(15px);
            transform: translateY(15px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(15px);
            transform: translateY(15px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* Estados de loading melhorados */
.search-loading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 1rem;
}

.search-loading .spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.25em;
}

.search-loading .text-muted {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* Error state styling */
.search-error {
  background-color: #f8d7da;
  border: 2px solid #dc3545;
  color: #721c24;
}

.search-error .fas.fa-exclamation-triangle {
  color: #dc3545;
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

/* Success state styling */
.search-success {
  background-color: #d4edda;
  border: 2px solid #28a745;
  color: #155724;
}

.search-success .fas.fa-check-circle {
  color: #28a745;
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

/* Warning state styling */  
.search-warning {
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
}

.search-warning .fas.fa-info-circle {
  color: #ffc107;
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

/* Responsive adjustments for search components */
@media (max-width: 575.98px) {
  .debug-container {
    padding: 0.5rem;
  }
  
  .debug-container pre {
    font-size: 0.7rem;
    max-height: 150px;
  }
  
  .search-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .offcanvas-body {
    padding: 1rem;
  }
}

/* Form styling within offcanvas */
.offcanvas .form-group {
  margin-bottom: 1rem;
}

.offcanvas .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.offcanvas .form-control:focus {
  border-color: #0056b3;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
          box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Button states in offcanvas */
.offcanvas .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.offcanvas .btn .spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* ========================================
   CARD DE COLABORADOR ENCONTRADO - ALINHAMENTO MELHORADO
   ======================================== */

/* Melhorias específicas para o card de colaborador encontrado */
.search-result-card .card-body {
  padding: 1.5rem;
}

/* Container dos dados do colaborador com alinhamento flex */
.search-result-card .d-flex.align-items-center {
  min-height: 2.5rem;
  gap: 0.5rem;
}

/* Ícones dos dados do colaborador */
.search-result-card .fas {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: #0056b3 !important;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

/* Labels dos dados */
.search-result-card strong {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

/* Valores dos dados */
.search-result-card span.text-dark {
  color: #212529 !important;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

/* Label do seletor de veículo */
.search-result-card .form-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.search-result-card .form-label .fas {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: #0056b3 !important;
}

/* Seletor de veículo com melhor espaçamento */
.search-result-card .form-select {
  margin-top: 0.25rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.95rem;
}

.search-result-card .form-select:focus {
  border-color: #0056b3;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
          box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Responsividade para o card de colaborador */
@media (max-width: 767.98px) {
  .search-result-card .card-body {
    padding: 1.25rem;
  }
  
  .search-result-card .d-flex.align-items-center {
    min-height: 2.25rem;
  }
  
  .search-result-card .fas {
    font-size: 0.9rem;
    width: 18px;
  }
  
  .search-result-card strong {
    font-size: 0.85rem;
  }
  
  .search-result-card span.text-dark {
    font-size: 0.9rem;
  }
  
  .search-result-card .form-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .search-result-card .card-body {
    padding: 1rem;
  }
  
  .search-result-card .d-flex.align-items-center {
    min-height: 2rem;
    gap: 0.375rem;
  }
  
  .search-result-card .fas {
    font-size: 0.85rem;
    width: 16px;
  }
  
  .search-result-card strong {
    font-size: 0.8rem;
  }
  
  .search-result-card span.text-dark {
    font-size: 0.85rem;
  }
  
  .search-result-card .form-label {
    font-size: 0.8rem;
    gap: 0.375rem;
  }
}

/* Animação suave para os dados */
.search-result-card .d-flex.align-items-center {
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.search-result-card .d-flex.align-items-center:hover {
  background-color: rgba(0, 86, 179, 0.02);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
}
.dropdown-item{
  font-size: 13px;
  cursor: pointer;
}