/* =========================================================
   SUIFARMA — JAZZMIN ADMIN
   ========================================================= */

/* =========================
   CORES DA MARCA
   ========================= */

/* Sidebar inteira */
.main-sidebar {
  background-color: #1f4e79 !important; /* Azul Suifarma */
}

/* Topo da sidebar (logo) */
.main-sidebar .brand-link {
  background-color: #1f4e79 !important;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

/* Item ativo do menu */
.nav-sidebar .nav-item > .nav-link.active {
  background-color: #f2c200 !important; /* Amarelo Suifarma */
  color: #000 !important;
  font-weight: 600;
}

/* Ícone do item ativo */
.nav-sidebar .nav-item > .nav-link.active i {
  color: #000 !important;
}

/* Hover no item ativo */
.nav-sidebar .nav-item > .nav-link.active:hover {
  background-color: #e0b400 !important;
}

/* =========================
   AÇÕES (submit row) — TOPO E RODAPÉ
   Alinhadas à direita, com gap, e responsivas
   ========================= */

/* Use SEMPRE o seletor real do Jazzmin/Django */
.change-form .submit-row.jazzy-submit-row {
  /* mata floats antigos sem bagunçar flex */
  float: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;

  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  margin: 12px 0 !important;
}

/* Normaliza TODOS os tipos de “botão” que aparecem ali */
.change-form .submit-row.jazzy-submit-row input[type="submit"],
.change-form .submit-row.jazzy-submit-row button,
.change-form .submit-row.jazzy-submit-row a,
.change-form .submit-row.jazzy-submit-row .btn {
  height: 38px !important;          /* padrão bootstrap */
  padding: 6px 14px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;

  width: auto !important;
  white-space: nowrap !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  /* evita “btn-block” e similares */
  flex: 0 0 auto !important;
}

/* Se algum botão vier com btn-sm (tipo histórico), sobe pro mesmo tamanho */
.change-form .submit-row.jazzy-submit-row .btn-sm {
  height: 38px !important;
  padding: 6px 14px !important;
  font-size: 14px !important;
}

/* Mata btn-block quando aparecer */
.change-form .submit-row.jazzy-submit-row .btn-block {
  width: auto !important;
  display: inline-flex !important;
}

/* =========================
   RESPONSIVO (MOBILE)
   - empilha com 100% de largura
   ========================= */
@media (max-width: 576px) {
  .change-form .submit-row.jazzy-submit-row {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .change-form .submit-row.jazzy-submit-row > * {
    flex: 1 1 100% !important;
  }

  .change-form .submit-row.jazzy-submit-row input[type="submit"],
  .change-form .submit-row.jazzy-submit-row button,
  .change-form .submit-row.jazzy-submit-row a,
  .change-form .submit-row.jazzy-submit-row .btn {
    width: 100% !important;
    white-space: normal !important;
    height: auto !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
}

/* =========================
   AJUSTES VISUAIS
   ========================= */

.change-form .card {
  margin-bottom: 15px;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 0;
}


/* ===============================
   LOGIN — LOGO RESPONSIVA
   =============================== */
/* ===============================
   LOGIN — LOGO COM MESMA LARGURA DO FORM
   =============================== */

/* A login-box já define a largura do formulário */
.login-box {
  width: 100%;
  max-width: 360px; /* padrão AdminLTE */
}

/* Área da logo segue exatamente a largura do form */
.login-logo {
  width: 100%;
  margin: 0 auto 20px;
  text-align: center;
}

/* Logo ocupa toda a largura do form */
.login-logo img {
  width: 100%;
  max-width: 100%;   /* chave do ajuste */
  height: auto;
  display: block;
}

/* Mobile: mantém proporção sem esmagar */
@media (max-width: 576px) {
  .login-box {
    max-width: 90vw; /* respiro lateral no celular */
  }

  .login-logo {
    margin-bottom: 16px;
  }
}
