/* =============================================================================
   Administração — Estilos compartilhados
   ============================================================================= */

/* ─── Sidebar nav-link ativo ─────────────────────────────────────────────────── */
.nav-sidebar .nav-link.active {
  background-color: #3080bd !important;
  color: #fff !important;
}

.nav-sidebar .nav-link.active i {
  color: #fff !important;
}

/* ─── Loading Modal ──────────────────────────────────────────────────────────── */
.loading-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-content {
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 25px 35px;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.spinner {
  display: block;
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: #4aa3ff;
  border-radius: 50%;
  animation: admin-spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes admin-spin {
  to { transform: rotate(360deg); }
}

/* ─── DataTables ─────────────────────────────────────────────────────────────── */
.datatable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.datatable-header .dataTables_length {
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.datatable-header .dataTables_length label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* ─── Botões de Ação ─────────────────────────────────────────────────────────── */
.btn-view,
.btn-delete {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}

.btn-view {
  color: #0d6efd;
  border: 2px solid #0d6efd;
}

.btn-view:hover {
  background: #0d6efd;
  color: #fff;
  transform: scale(1.1);
}

.btn-delete {
  color: #dc3545;
  border: 2px solid #dc3545;
}

.btn-delete:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.1);
}

.btn-view i,
.btn-delete i {
  font-size: 15px;
}

/* ─── Input Ano (remove setas do type=number) ───────────────────────────────── */
.input-ano::-webkit-outer-spin-button,
.input-ano::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-ano[type=number] {
  -moz-appearance: textfield;
}

/* ─── Botão Sticky (Salvar) ──────────────────────────────────────────────────── */
.sticky-save {
  position: sticky;
  bottom: 1rem;
  z-index: 100;
  text-align: right;
  padding: 0.75rem 0;
}

.sticky-save .btn {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ─── Select2 ────────────────────────────────────────────────────────────────── */
.select2-selection {
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
}
.share-buttons {
    display: flex;
    gap: 10px;
}

.btn-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-facebook { background-color: #1877F2; }
.btn-twitter { background-color: #000; }
.btn-linkedin { background-color: #0A66C2; }
.btn-whatsapp { background-color: #25D366; }

.btn-social:hover {
    transform: scale(1.1);
    opacity: 0.85;
}
:root {
    --azul: #0e5ee6;
    --azul-esc: #0b4ab4;
    --cinza-claro: #f5f7fb;
    --cinza-borda: #e6e9f2;
    --texto-suave: #6b7280;
    --radius: 16px;
}

body {
    color: #111827
}

.navbar-brand span.logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700
}

.logo-badge {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e6ecff;
    color: #2742ff;
    font-weight: 800
}

.hero {
    background: linear-gradient(135deg, var(--azul), var(--azul-esc));
    color: #fff;
    padding: 48px 0 24px
}

.hero .search-card {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 20px;
    border-radius: var(--radius)
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: #103f9d1f;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: .85rem
}

.chip i {
    font-size: .85em
}

.pill {
    display: inline-block;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: #eceefe;
    color: #2742ff;
    font-weight: 600;
    font-size: .8rem
}

.btn-ghost {
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .12);
    --bs-btn-border-color: transparent
}

.card {
    border: 1px solid var(--cinza-borda);
    border-radius: var(--radius)
}

.card .btn-sm {
    padding: .35rem .6rem;
    border-radius: 10px
}

.section-title {
    font-weight: 700;
    font-size: 1.1rem
}

.quick-filters .btn-check:checked+label {
    background: #e9efff;
    border-color: #c8d8ff;
    color: #1437c8
}

.quick-filters label {
    border-radius: 999px
}

.link-muted {
    color: var(--texto-suave);
    text-decoration: none
}

.link-muted:hover {
    color: #0b4ab4
}

footer {
    border-top: 1px solid var(--cinza-borda);
    background: #fff
}

.fs-7 {
    font-size: .9rem
}

.fs-8 {
    font-size: .8rem
}

.form-check-input {
    transform: scale(1.150);
}

.form-check-input:checked {
    background-color: white !important;
    border-color: white !important;
}

.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='black' d='M6.173 9.753l2.733 2.733 5.394-5.394a.75.75 0 111.06 1.06l-6.424 6.425a.75.75 0 01-1.06 0L5.113 10.82a.75.75 0 111.06-1.06z'/%3e%3c/svg%3e") !important;
}
/*


 */

:root { --header-height: 61px; }


.hover-border-primary:hover {
    border-color: #007bff !important;
}

.bg-hover-gray:hover {
    background-color: #f9f9f9;
}

@media print {
  /* Esconde tudo */
  body * {
    visibility: hidden;
  }

  /* Mostra apenas o main e o conteúdo dele */
  main,
  main * {
    visibility: visible;
  }

  /* Ajusta o posicionamento para ocupar a página */
  main {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .shadow {
    box-shadow: none !important;
  }

  body {
    background: #fff !important;
  }

  [vw],
  [vw-access-button],
  [vw-plugin-wrapper],
  .vw-plugin-top-wrapper {
    display: none !important;
    visibility: hidden !important;
  }
}
