:root {
  --dark: #343a40;
  --light: #f8f9fa;
}

body {
  background: var(--light);
  overflow-x: hidden;
  padding-bottom: 60px;
  padding-top: 56px;
}

.navbar-dark {
  background: var(--dark);
}

.btn-home {
  color: #fff;
}

.btn-home .bi {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.card-hover {
  cursor: pointer;
  transition: transform 0.2s;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
}

.offcanvas-lg {
  background: var(--dark);
  color: #dee2e6;
}

#drawer .list-group-item {
  background: transparent;
  border: 0;
  color: #adb5bd;
}

#drawer .list-group-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

@media (min-width: 992px) {
  .offcanvas-lg {
    position: fixed;
    top: 56px !important;
    left: 0;
    width: 260px !important;
    height: calc(100vh - 56px);
    background-color: var(--dark) !important;
    color: var(--light);
    transform: none !important;
    visibility: visible !important;
    border-right: 1px solid #444;
    z-index: 1030;
  }

  .offcanvas-lg:not(.show) {
    visibility: visible !important;
    transform: none !important;
  }

  #drawer .offcanvas-body {
    display: block !important;
    padding: 0;
    overflow-y: auto;
    height: 100%;
  }

  #moduleContent {
    margin-left: 260px;
    padding-top: 1.5rem;
  }

  .faixa-translucida {
    position: fixed;
    top: 56px;
    left: 0;
    width: 260px;
    height: calc(100vh - 100px);
    /* 56px em cima + 56px embaixo */
    background-color: #444;
    z-index: 1;
    pointer-events: none;
    /* permite clicar nos elementos abaixo */
  }
}

#loginScreen {
  max-width: 380px;
  margin: auto;
  padding-top: 10vh;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--dark);
  color: #fff;
  padding: 0.5rem 1rem;
  text-align: right;
}

footer .user-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

footer .user-info .bi {
  font-size: 1rem;
}

footer button {
  margin-left: 1rem;
}

.menu-instrucao {
  color: #adb5bd;
  font-size: 0.9rem;
  padding: 1rem;
}

#alertArea {
  margin-bottom: 1rem;
  scroll-margin-top: 120px;
}

.alert {
  margin-bottom: 1rem;
}

#erroExclusao {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc3545 !important;
  /* vermelho bootstrap */
  background-color: #f8d7da !important;
  /* leve vermelho de fundo */
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.proposta-visualizacao {
  font-family: "Times New Roman", serif;
  color: #000;
  max-width: 800px;
  margin: auto;
  background: #fff;
}

@media print {
  body * {
    visibility: hidden;
  }

  .proposta-visualizacao,
  .proposta-visualizacao * {
    visibility: visible;
  }

  .proposta-visualizacao {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  #btnEditar {
    display: none;
  }
}

@media (max-width: 991px) {
  #manifestoView .text-end.d-print-none {
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  #manifestoView .text-end.d-print-none button,
  #manifestoView .text-end.d-print-none .form-check {
    margin: 0;
  }
}

@media (max-width: 575px) {
  #manifestoView .text-end.d-print-none {
    flex-direction: column;
  }
}
.form-switch-lg .form-check-input {
  width: 3em;
  height: 1.6em;
  cursor: pointer;
}
.form-switch-lg .form-check-input:checked {
  background-color: var(--verde-vibrante2);
}
#infoMatriz i {
  color: var(--azul-suave);
  margin-right: 5px;
}

.status-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #e8f5e9; /* verde claro */
  border: 1px solid #a5d6a7;
  padding: 6px 12px;
  border-radius: 6px;
  min-width: 110px;
}

.status-title {
  font-size: 0.75rem;
  font-weight: bold;
  color: #2e7d32;
  text-transform: capitalize;
}

.status-value {
  font-size: 0.85rem;
  font-weight: bold;
  color: #1b5e20;
}

.col-status {
  white-space: nowrap;
  vertical-align: middle;
}

.badge-clean {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #2e7d32; /* verde escuro */
  color: #2e7d32;
  background: #ffffff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 576px) {
  table.table td {
    padding: 0.55rem 0.75rem;
  }
}

.table-responsive {
  overflow-x: auto;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15);
}
