/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*= require checklist */
/*= require check_lists */
/*= require sweetalert2 */

.text-warning {
  color: #856404 !important;
  background-color: #fff3cd;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #ffeaa7;
}

.text-info {
  color: #07166d !important;
  background-color: #fff3cd;
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #ffeaa7;
}

/* Correção específica para ícones em tabelas de motoristas em dispositivos móveis */
@media (max-width: 768px) {
  .table .btn img.invertible {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    display: block !important;
    flex-shrink: 0 !important;
  }
  
  /* Garantir que todos os botões na tabela tenham o mesmo tamanho */
  .table .btn {
    min-width: 44px;
    min-height: 44px;
    padding: 7px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Estilo geral para garantir consistência */
.table .btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Oculta o checklist para usuários de manutenção */
body[data-user-maintenance="true"] .checklist-container {
  display: none !important;
}

/* Oculta a descrição do checklist para usuários de manutenção apenas no dialog de desbloquear */
body[data-user-maintenance="true"] .checklist-description {
  display: none !important;
}
