/* ==========================================================================
   SAVE — Tema 2026 (direção "Institucional arredondado", aprovada no protótipo)
   --------------------------------------------------------------------------
   Camada carregada por ÚLTIMO (depois de style.css, toast.css e enhance.css).
   É só apresentação: reaproveita as classes que o sistema já usa e não altera
   layout estrutural nem lógica. Para desativar, remova o <link> no header.php.
   ========================================================================== */

:root {
  --t-navy: #0e1b33;
  --t-navy-2: #1a2b4b;
  --t-accent: #2b7de9;
  --t-accent-2: #5aa0ff;
  --t-accent-ink: #1f63bd;
  --t-ink: #1a2130;
  --t-muted: #64748b;
  --t-muted-2: #46556b;
  --t-line: rgba(15, 23, 42, 0.08);
  --t-bg: #f4f6f9;
  --t-surface: #ffffff;
  --t-soft: #f1f5fb;
  --t-radius: 18px;
  --t-radius-sm: 12px;
  --t-radius-xs: 10px;
  --t-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
  --t-shadow-hover: 0 18px 40px rgba(2, 6, 23, 0.14);
  --t-shadow-accent: 0 8px 18px rgba(43, 125, 233, 0.30);
  --t-ok: #2E7D5B;   --t-ok-bg: #e6f6ee;
  --t-warn: #b7791f; --t-warn-bg: #fff4e0;
  --t-bad: #B3261E;  --t-bad-bg: #fdecec;
  --t-info-bg: #e8f1fd;
  --primary-color: var(--t-accent);
  --primary-hover: var(--t-accent-ink);
  --sv-accent: var(--t-accent);
  --sv-accent-strong: var(--t-accent-ink);
  --sv-radius: var(--t-radius-sm);
  --sv-radius-lg: var(--t-radius);
  --sv-shadow-sm: var(--t-shadow);
  --sv-shadow-md: var(--t-shadow-hover);
  --sv-focus: 0 0 0 4px rgba(43, 125, 233, 0.16);
  --sidebar-width: 264px;
}

/* --------------------------------------------------------------------------
   1. Tipografia e fundo
   -------------------------------------------------------------------------- */
body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--t-ink);
  -webkit-font-smoothing: antialiased;
}
body:not(.login-page) {
  background-color: var(--t-bg);
  background-image: none;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.01em; color: var(--t-ink); }
a { color: var(--t-accent); }
a:hover { color: var(--t-accent-ink); }

/* --------------------------------------------------------------------------
   2. Barra lateral (mantém IDs/estrutura do header.php)
   -------------------------------------------------------------------------- */
.sidebar {
  background: radial-gradient(600px 300px at 20% -10%, rgba(43, 125, 233, 0.35), transparent 60%), var(--t-navy);
  box-shadow: none;
  padding: 0 0 12px;
}
.sidebar-header {
  text-align: left;
  padding: 22px 16px 8px;
  border-bottom: 0;
}
.sidebar-brand-row {
  justify-content: space-between;
  padding: 4px 8px 12px;
  padding-right: 8px;
}
.sidebar-brand {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.sidebar-brand i {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--t-accent), var(--t-accent-2));
  box-shadow: var(--t-shadow-accent);
  font-size: 16px;
  color: #fff;
  margin: 0 !important;
}
.sidebar-brand-img {
  width: 38px; height: 38px; border-radius: 12px; background: #fff; object-fit: cover;
  box-shadow: var(--t-shadow-accent); flex: 0 0 auto;
}
.sidebar .sidebar-brand-img { width: 34px; height: 34px; border-radius: 11px; }
.sidebar-brand-text { font-weight: 800; font-size: 18px; letter-spacing: 0.02em; }
.sidebar-subtitle {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: -6px 8px 12px 56px;
  line-height: 1.3;
}
.sidebar-notif-btn {
  position: static;
  transform: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
}
.sidebar-notif-btn:hover { background: rgba(255, 255, 255, 0.14); }
.sidebar-notif-btn:active { transform: none; }
.sidebar-notif-badge {
  top: -4px; right: -4px;
  transform: none;
  background: #ff8a93;
  color: var(--t-navy);
  box-shadow: 0 0 0 2px var(--t-navy);
}
.sv-entity-card {
  margin: 0 4px 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 3px;
  text-align: left;
}
.sv-entity-card__label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}
.sv-entity-card .user-info {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 !important; padding: 0; font-size: 13.5px; font-weight: 700;
  color: #fff; opacity: 1;
}
.sv-entity-card .user-info--welcome { font-weight: 400; font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.sv-entity-card .user-info--welcome strong { font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.sv-entity-card .user-info span[style] { display: none; } /* rótulo "Nome Fantasia:" antigo */
.sv-entity-card .user-info strong[style] { display: inline-flex !important; align-items: center; gap: 8px; }

.sidebar-menu { display: flex; flex-direction: column; gap: 4px; padding: 0 16px 8px; flex: 1; }
.menu-category {
  padding: 12px 12px 4px;
  font-size: 10.5px; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}
.sidebar-menu .nav-link {
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 14px;
  border: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.sidebar-menu .nav-link i { width: 18px; text-align: center; font-size: 15px; margin: 0 !important; }
.sidebar-menu .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}
.sidebar-menu .nav-link.active {
  background: var(--t-accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--t-shadow-accent);
}
.sidebar-menu .nav-link.text-danger { color: #ff8a93 !important; font-weight: 600; }
.sidebar-menu .nav-link.text-danger:hover { background: rgba(255, 138, 147, 0.12); }
.sidebar-version { margin-top: auto; padding: 14px 14px 4px; font-size: 11px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.04em; }
.sv-side-indicator { display: none !important; }

body.sidebar-collapsed .sidebar-subtitle,
body.sidebar-collapsed .sv-entity-card,
body.sidebar-collapsed .sidebar-brand-text { display: none; }
body.sidebar-collapsed .sidebar-menu .nav-link { justify-content: center; padding: 11px 0; }
body.sidebar-collapsed .sidebar-menu .nav-link:hover { transform: none; }

/* --------------------------------------------------------------------------
   3. Topo da página (vidro) e área principal
   -------------------------------------------------------------------------- */
.main-content { padding: 24px 32px 32px; }
body:not(.login-page) .page-header {
  margin: -24px -32px 24px;
  padding: 14px 32px;
  gap: 14px;
  background-color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--t-line);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
}
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.sidebar-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--t-line);
  background: #fff;
  color: var(--t-muted-2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.sidebar-toggle:hover { background: var(--t-soft); }

/* --------------------------------------------------------------------------
   4. Cartões
   -------------------------------------------------------------------------- */
.card, .card-premium, .sv-grid, .kpi-card {
  border-radius: var(--t-radius);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: var(--t-shadow);
  background: var(--t-surface);
  overflow: hidden;
}
.card-header, .card-premium > .card-header {
  padding: 18px 24px 12px;
  border-bottom: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--t-ink);
  border-radius: 0;
}
.card-body { padding: 16px 24px 22px; }
.card + .card { margin-top: 0; }
.kpi-card { transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--t-shadow-hover); }
.kpi-card--primary, .kpi-card--success, .kpi-card--warning, .kpi-card--danger { border-left: 1px solid rgba(15, 23, 42, 0.05); }
.sv-grid-header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, #2b7de9, #1f63bd) !important;
  color: #fff !important;
  padding: 14px 20px !important;
  border-radius: 0 !important;
}
.sv-grid-header__title { color: #fff !important; font-weight: 800 !important; font-size: 15px !important; letter-spacing: 0.02em; text-transform: uppercase; }
.sv-grid-header__title i { color: #fff; opacity: 0.95; margin-right: 4px; }
.sv-grid-header .btn-primary { margin-left: auto; background: #fff; border-color: #fff; color: var(--t-accent-ink); box-shadow: 0 4px 12px rgba(2, 6, 23, 0.15); }
.sv-grid-header .btn-primary:hover { background: #eaf2ff; border-color: #eaf2ff; color: var(--t-accent-ink); }
.sv-grid-header form .form-control { min-width: 240px; background: #fff; border-color: rgba(255, 255, 255, 0.65); }
.sv-grid-header .text-muted { color: rgba(255, 255, 255, 0.9) !important; }

/* Entrada suave dos cartões (uma vez, ao carregar) */
@media (prefers-reduced-motion: no-preference) {
  .main-content .card, .main-content .card-premium, .main-content .sv-grid, .main-content .kpi-card {
    animation: t-rise 0.5s ease both;
  }
  .main-content .card:nth-of-type(2), .main-content .kpi-card:nth-of-type(2) { animation-delay: 0.06s; }
  .main-content .card:nth-of-type(3), .main-content .kpi-card:nth-of-type(3) { animation-delay: 0.12s; }
  .main-content .card:nth-of-type(4), .main-content .kpi-card:nth-of-type(4) { animation-delay: 0.18s; }
  @keyframes t-rise { from { opacity: 0.001; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */
.btn {
  border-radius: var(--t-radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: var(--t-radius-xs); }
.btn-primary { background: var(--t-accent); border-color: var(--t-accent); box-shadow: 0 6px 16px rgba(43, 125, 233, 0.25); }
.btn-primary:hover { background: var(--t-accent-ink); border-color: var(--t-accent-ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43, 125, 233, 0.28); }
.btn-primary:active { transform: translateY(0); }
.btn-outline-primary { color: var(--t-accent); border-color: rgba(43, 125, 233, 0.5); background: #fff; }
.btn-outline-primary:hover { background: var(--t-info-bg); color: var(--t-accent-ink); border-color: var(--t-accent); }
.btn-secondary, .btn-outline-secondary { background: var(--t-soft); color: var(--t-ink); border-color: transparent; }
.btn-secondary:hover, .btn-outline-secondary:hover { background: #e4eaf3; color: var(--t-ink); }
.btn-outline-danger { color: var(--t-bad); border-color: rgba(179, 38, 30, 0.35); background: #fff; }
.btn-outline-danger:hover { background: var(--t-bad-bg); color: var(--t-bad); border-color: var(--t-bad); }
.btn-danger { background: var(--t-bad); border-color: var(--t-bad); }
.btn-success { background: var(--t-ok); border-color: var(--t-ok); color: #fff; }
.btn-warning { background: var(--t-warn); border-color: var(--t-warn); color: #fff; }
.btn:focus-visible { outline: 0; box-shadow: var(--sv-focus); }
.btn:disabled, .btn.is-disabled { opacity: 0.55; transform: none; box-shadow: none; cursor: not-allowed; }
.sv-btn-icon { border-radius: var(--t-radius-xs); transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.sv-btn-icon:hover { transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   6. Formulários
   -------------------------------------------------------------------------- */
.form-label { font-size: 12.5px; font-weight: 700; color: var(--t-muted-2); margin-bottom: 6px; }
.form-control, select.form-control, textarea.form-control {
  border-radius: var(--t-radius-sm);
  border: 1.5px solid #e6ebf3;
  padding: 10px 14px;
  font-size: 14px;
  min-height: 44px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
textarea.form-control { min-height: 96px; }
.form-control:hover { border-color: rgba(43, 125, 233, 0.45); }
.form-control:focus { border-color: var(--t-accent); box-shadow: var(--sv-focus); }
.form-control:disabled, .form-control[readonly] { background: #f5f7fb; color: var(--t-muted-2); }

/* --------------------------------------------------------------------------
   7. Tabelas
   -------------------------------------------------------------------------- */
.table { border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--t-muted); font-weight: 700;
  background: transparent;
  border-bottom: 1px solid var(--t-line);
  padding: 10px 16px;
}
.table td { padding: 13px 16px; border-bottom: 1px solid rgba(15, 23, 42, 0.05); vertical-align: middle; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover td { background: #f5f8fd; }
.table tbody tr:nth-child(even) td { background: transparent; }
.table tbody tr:nth-child(even):hover td { background: #f5f8fd; }
.table tbody tr:last-child td { border-bottom: 0; }
.sv-grid__scroll { border-radius: 0; }

/* --------------------------------------------------------------------------
   8. Badges, progresso, abas, alertas, modais, toasts
   -------------------------------------------------------------------------- */
.badge, .sv-badge-status, .sv-chip {
  border-radius: 999px !important;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.sv-badge-status--success { background: var(--t-ok-bg); color: var(--t-ok); }
.sv-badge-status--secondary { background: #eef2f7; color: var(--t-muted-2); }
.progress { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--t-accent), var(--t-accent-2)); }
.progress-bar[style*="warning"] { background: linear-gradient(90deg, #d99a2b, #f2bf5a) !important; }
.progress-bar[style*="danger"] { background: linear-gradient(90deg, var(--t-bad), #e27a74) !important; }
@media (prefers-reduced-motion: no-preference) {
  .progress-bar { animation: t-grow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: left; }
  @keyframes t-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.nav-tabs { gap: 6px; }
.nav-tabs .nav-link { border-radius: 999px; font-weight: 600; font-size: 13px; padding: 7px 14px; color: var(--t-muted-2); }
.nav-tabs .nav-link.active { background: var(--t-accent); color: #fff; border-color: var(--t-accent); }
.alert { border-radius: var(--t-radius-sm); border: 1px solid transparent; }
.modal-content { border-radius: var(--t-radius); box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35); }
.toast { border-radius: var(--t-radius-sm); }

/* --------------------------------------------------------------------------
   9. Login (index.php) — duas colunas: marca à esquerda, cartão à direita.
      As outras telas públicas (protocolo, ativação, comprovante) continuam no
      .login-container antigo, só com o cartão refinado.
   -------------------------------------------------------------------------- */
body.login-page {
  background: linear-gradient(160deg, #0e1b33 0%, #14295a 55%, #1d3f86 100%);
  min-height: 100vh;
}
.lg-split {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
}
.lg-orb {
  position: absolute; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(43, 125, 233, 0.55), transparent 65%);
}
.lg-orb--1 { left: -120px; top: -140px; width: 520px; height: 520px; }
.lg-orb--2 { right: 30%; bottom: -220px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(90, 160, 255, 0.35), transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
  .lg-orb { animation: t-drift 14s ease-in-out infinite alternate; }
  .lg-orb--2 { animation-delay: -6s; }
  @keyframes t-drift { from { transform: translate(0, 0); } to { transform: translate(30px, -24px); } }
}
.lg-brand {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 64px 72px;
  color: #fff;
}
.lg-brand__logo { display: flex; align-items: center; gap: 12px; }
.lg-brand__logo i {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--t-accent), var(--t-accent-2));
  box-shadow: 0 10px 24px rgba(43, 125, 233, 0.4);
  font-size: 18px;
}
.lg-brand__logo span { font-weight: 800; font-size: 22px; letter-spacing: 0.02em; }
.lg-brand__img {
  width: min(100%, 120px); height: auto; display: block;
  background: #fff; border-radius: 14px; padding: 8px 10px 11px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
}
.wizard-hero h1 img { width: 44px; height: 44px; border-radius: 12px; background: #fff; vertical-align: middle; margin-right: 6px; }
.lg-brand__copy { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.lg-brand__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.lg-brand__title { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.lg-brand__text { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); max-width: 46ch; }
.lg-brand__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.lg-brand__chips span {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px; font-weight: 600;
}
.lg-brand__foot { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }
.lg-panel { position: relative; display: grid; place-items: center; padding: 48px 32px; }
.lg-card {
  width: 100%; max-width: 440px;
  background: #fff;
  border-radius: 24px;
  padding: 40px 40px 32px;
  box-sizing: border-box;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  display: flex; flex-direction: column; gap: 22px;
}
@media (prefers-reduced-motion: no-preference) {
  .lg-card { animation: t-card 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes t-card { from { opacity: 0.001; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
}
.lg-card__head { display: flex; flex-direction: column; gap: 6px; }
.lg-card__head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.lg-card__head span { font-size: 14px; color: var(--t-muted); }
.lg-card form { display: flex; flex-direction: column; gap: 14px; }
.lg-card .input-group { margin: 0; }
.lg-card .input-group i { left: 16px; color: var(--t-muted); }
.lg-card .input-group .form-control {
  height: 52px; min-height: 52px;
  padding-left: 46px;
  border-radius: 14px;
  background: #f5f7fb;
  border: 1.5px solid #e6ebf3;
  font-size: 14.5px;
}
.lg-card .input-group .form-control:hover { border-color: rgba(43, 125, 233, 0.45); background: #fff; }
.lg-card .input-group .form-control:focus { border-color: var(--t-accent); box-shadow: var(--sv-focus); background: #fff; }
.lg-card .save-captcha { margin: 2px 0; min-height: 70px; }
.lg-card .btn-login {
  height: 52px; margin: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--t-accent), #3d8ff0);
  text-transform: none; letter-spacing: 0;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 10px 22px rgba(43, 125, 233, 0.28);
}
.lg-card .btn-login:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(43, 125, 233, 0.35); }
.lg-divider { display: flex; align-items: center; gap: 12px; color: #94a3b8; font-size: 12px; }
.lg-divider::before, .lg-divider::after { content: ""; flex: 1; height: 1px; background: #e6ebf3; }
.lg-card .btn-outline-primary {
  height: 48px; margin: 0;
  border-radius: 14px;
  border: 1.5px solid #dbe4f0;
  color: var(--t-ink); font-weight: 700; font-size: 14px;
}
.lg-card .btn-outline-primary i { color: var(--t-accent); }
.lg-card .btn-outline-primary:hover:not(.is-disabled) { background: var(--t-soft); border-color: rgba(43, 125, 233, 0.5); color: var(--t-ink); }
.lg-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.lg-links .forgot-password { display: inline; width: auto; margin: 0; font-size: 13px; text-align: left; }
.lg-links .forgot-password--muted { color: var(--t-muted); text-align: right; }
.lg-card .save-humano { margin: 0; }
@media (max-width: 960px) {
  .lg-split { grid-template-columns: minmax(0, 1fr); }
  .lg-brand { padding: 18px 18px 6px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 8px; align-items: start; }
  .lg-brand__logo { grid-column: 1; grid-row: 1 / span 2; }
  .lg-brand__img { width: 92px; padding: 6px 8px 9px; border-radius: 12px; }
  .lg-brand__copy { display: contents; }
  .lg-brand__eyebrow { grid-column: 2; grid-row: 1; font-size: 10px; letter-spacing: 0.1em; }
  .lg-brand__title { grid-column: 2; grid-row: 2; font-size: 20px; line-height: 1.15; }
  .lg-brand__text { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; max-width: none; }
  .lg-brand__chips { grid-column: 1 / -1; margin-top: 0; gap: 6px; }
  .lg-brand__chips span { font-size: 11px; padding: 4px 10px; }
  .lg-brand__foot { display: none; }
  .lg-panel { padding: 6px 16px 32px; min-width: 0; }
  .lg-card { padding: 28px 20px; min-width: 0; max-width: 100%; }
  .lg-card .save-captcha, .lg-card .cf-turnstile { min-width: 0; max-width: 100%; overflow: hidden; }
  body.login-page { overflow-x: hidden; }
  /* 16px evita o zoom automático que iPhone/alguns Android aplicam ao tocar em campo com letra menor */
  .lg-card .input-group .form-control, .lg-card .form-control { font-size: 16px; }
}
@media (max-width: 400px) {
  .lg-panel { padding: 6px 10px 28px; }
  .lg-card { padding: 22px 14px 20px; border-radius: 18px; }
  .lg-brand { padding: 14px 12px 6px; }
}

/* Demais telas públicas: só o cartão ganha o acabamento novo */
.login-card { border-radius: 24px; box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35); padding: 2.25rem; }
.login-header h1 { font-weight: 800; letter-spacing: 0.02em; }

/* Cabeçalhos de grade antigos tinham texto branco sobre fundo escuro; agora o fundo é claro */
.sv-grid-header [style*="255,255,255"], .sv-grid-header [style*="255, 255, 255"] { color: rgba(255, 255, 255, 0.9) !important; }
.sv-grid-header .btn:not(.btn-primary) { color: #fff; }
.sv-grid-header .btn-primary, .sv-grid-header .btn-primary i { color: var(--t-accent-ink); }
.lg-links .forgot-password { white-space: nowrap; }
.lg-links .forgot-password--muted { white-space: normal; }

/* --------------------------------------------------------------------------
   10. Menu lateral COMPACTO (vence as regras da enhance.css por especificidade)
   -------------------------------------------------------------------------- */
:root { --sidebar-width: 236px; }
.sidebar { padding: 0; }
.sidebar .sidebar-header { padding: 14px 12px 6px; }
.sidebar .sidebar-brand-row { padding: 0 4px 8px; }
.sidebar .sidebar-brand i { width: 34px; height: 34px; font-size: 15px; border-radius: 11px; }
.sidebar .sidebar-brand-text { font-size: 17px; }
.sidebar .sidebar-subtitle { display: none; }
.sidebar .sidebar-notif-btn { width: 32px; height: 32px; }
.sidebar .sv-entity-card { margin: 0 0 6px; padding: 9px 12px; gap: 2px; }
.sidebar .sv-entity-card__label { font-size: 10px; }
.sidebar .sv-entity-card .user-info { font-size: 12.5px; }
.sidebar .sv-entity-card .user-info--welcome { font-size: 11.5px; }
.sidebar .sidebar-menu { padding: 0 10px 6px; gap: 1px; }
.sidebar .sidebar-menu .menu-category,
.sidebar .sidebar-menu > .menu-category:first-child {
  margin: 4px 0 0; padding: 8px 10px 3px;
  border-top: 0; font-size: 10px; letter-spacing: 0.1em;
}
.sidebar .sidebar-menu .nav-link,
.sidebar .sidebar-menu.sv-tem-indicador .nav-link {
  margin: 0; padding: 8px 12px;
  border-radius: 10px; font-size: 13.5px; gap: 10px; position: relative;
}
.sidebar .sidebar-menu .nav-link i { font-size: 14px; width: 18px; }
.sidebar .sidebar-menu .nav-link:hover,
.sidebar .sidebar-menu.sv-tem-indicador .nav-link:hover { background-color: rgba(255, 255, 255, 0.08); }
.sidebar .sidebar-menu .nav-link.active,
.sidebar .sidebar-menu.sv-tem-indicador .nav-link.active {
  background-color: var(--t-accent);
  box-shadow: var(--t-shadow-accent);
  color: #fff;
}
.sidebar .sidebar-menu .nav-link.active::before { display: none; }
.sidebar .sidebar-menu .sidebar-version { margin-top: auto; padding: 10px 12px 2px; }
.sidebar .sidebar-menu .nav-link.text-danger { margin-bottom: 4px; }
.sidebar .sidebar-menu .sidebar-version { order: 1; }
.sidebar .sidebar-menu #pwaInstallLink { order: 2; padding: 5px 12px; font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 500; }
.sidebar .sidebar-menu #pwaInstallLink i { font-size: 12px; }
.sidebar .sidebar-menu .nav-link.text-danger { order: 3; }
.sidebar .sidebar-menu .nav-link.active .fa,
.sidebar .sidebar-menu .nav-link.active .fas { color: #fff; }
body.sidebar-collapsed .sidebar .sidebar-menu .nav-link { margin: 0; padding: 8px 0; justify-content: center; }
.sidebar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 999px; }
body.sidebar-collapsed .sidebar .sidebar-brand-row { flex-direction: column; align-items: center; gap: 8px; padding: 0 0 6px; }
body.sidebar-collapsed .sidebar .sidebar-brand { justify-content: center; }
body.sidebar-collapsed .sidebar .sidebar-notif-btn { width: 34px; height: 34px; }
body.sidebar-collapsed .sidebar .sidebar-menu { padding: 0 8px 6px; }
body.sidebar-collapsed .sidebar .sidebar-menu #pwaInstallLink { padding: 5px 0; }

/* --------------------------------------------------------------------------
   11. RESPONSIVO — tablet (≤ 1024), celular (≤ 900) e celular pequeno (≤ 600)
   -------------------------------------------------------------------------- */
html, body { max-width: 100%; }
body:not(.login-page) { overflow-x: hidden; }
.main-content { min-width: 0; }
.main-content img, .main-content svg, .main-content video { max-width: 100%; height: auto; }
.nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs .nav-link { white-space: nowrap; flex: 0 0 auto; }
.sv-grid__scroll, .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.lg-card .save-captcha { align-items: center; }
.lg-card .cf-turnstile { display: flex; justify-content: center; }

@media (max-width: 1024px) {
  .main-content { padding: 20px 20px 28px; }
  body:not(.login-page) .page-header { margin: -20px -20px 20px; padding: 12px 20px; }
  .card-body { padding: 16px 18px 20px; }
  .card-header, .sv-grid-header { padding: 16px 18px 10px !important; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 280px; }
  .main-content { padding: 14px 14px 28px; width: 100%; margin-left: 0; }
  body:not(.login-page) .page-header {
    margin: -14px -14px 14px; padding: 10px 14px; gap: 10px;
    position: sticky; top: 0;
  }
  .page-title { font-size: 17px; line-height: 1.2; }
  .sidebar-toggle { flex: 0 0 38px; }

  /* Menu lateral vira gaveta (regras de abertura vêm do style.css) */
  .sidebar { width: var(--sidebar-width); }
  .sidebar .sidebar-menu .nav-link { min-height: 44px; }

  /* Linhas flexíveis passam a quebrar; nada mais empurra a tela para o lado */
  .main-content .d-flex { flex-wrap: wrap; }
  .main-content .d-flex > * { min-width: 0; }
  .main-content form.d-flex { width: 100%; }
  .main-content .justify-between > .d-flex { width: 100%; }

  /* Campos com largura fixa no HTML antigo (width: 520px, 110px...) */
  .main-content .form-control,
  .main-content select.form-control,
  .main-content .js-searchable-select { width: 100% !important; max-width: 100% !important; min-width: 0 !important; flex: 1 1 100%; }
  .main-content .form-group { flex: 1 1 100% !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin-bottom: 12px; }
  .main-content .form-group[style*="width"] { width: 100% !important; }
  .main-content [style*="min-width: 3"], .main-content [style*="min-width: 2"] { min-width: 0 !important; }
  .main-content .searchable-select, .main-content .ss-wrap { width: 100% !important; max-width: 100% !important; }

  /* Filtros do Pró-Gestão / Boas Práticas */
  .pg-filtros-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .pg-filtros-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
  .pg-filtros-form .form-control { width: 100% !important; max-width: 100% !important; }
  .pg-filtros-row .btn { flex: 1 1 auto; }

  /* Tabelas: rolam dentro do cartão, nunca cortam nem esticam a página */
  .card-body > .table, .card > .table, .container > .table {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap;
  }
  .table th, .table td { padding: 10px 12px; }
  .sv-grid__scroll .table { min-width: 640px; }

  /* Cabeçalhos de cartão com botão à direita */
  .sv-grid-header { flex-wrap: wrap; gap: 10px; }
  .sv-grid-header .btn-primary { margin-left: 0; }
  .sv-grid-header form .form-control { min-width: 0; }

  /* Botões em linha ocupam a largura toda */
  .main-content .btn { max-width: 100%; }
  .main-content .d-flex > .btn { flex: 1 1 auto; }

  /* Ações flutuantes (diagnóstico/boas práticas) */
  .diag-floating-actions { left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; }
  .diag-floating-actions .btn { flex: 1; }

  /* Modais e popover de notificações */
  .modal-content { width: calc(100vw - 20px) !important; max-width: calc(100vw - 20px) !important; margin: 10px auto; }
  .notif-popover { left: 10px !important; right: 10px !important; width: auto !important; }

  .lg-links { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lg-links .forgot-password--muted { text-align: left; }
  .login-container { padding: 28px 14px 24px; }
  .login-card { padding: 1.5rem; }
}

@media (max-width: 600px) {
  .main-content { padding: 12px 12px 28px; }
  body:not(.login-page) .page-header { margin: -12px -12px 12px; padding: 10px 12px; }
  .card-body { padding: 14px 14px 18px; }
  .card-header, .sv-grid-header { padding: 14px 14px 8px !important; }
  h2 { font-size: 20px; }
  .main-content .d-flex.justify-between > * { flex: 1 1 100%; }
  .main-content .d-flex.justify-between > div:last-child { display: flex; gap: 8px; }
  .main-content .d-flex.justify-between > div:last-child .btn { flex: 1; }
  .btn { padding: 10px 14px; }
}
@media (max-width: 900px) {
  /* Select pesquisável (searchable_select.js) copia a largura fixa do <select> */
  .main-content .ss-container, .main-content .ss-display, .main-content .ss-dropdown { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .main-content .d-flex > .ss-container { flex: 1 1 100%; }
  /* Cartões lado a lado (dashboard) empilham */
  .main-content .d-flex > .card, .main-content .d-flex > .card-premium, .main-content .d-flex > .sv-grid { flex: 1 1 100% !important; min-width: 0 !important; max-width: 100%; }
  /* Filtros do Pró-Gestão / Boas Práticas (a tela define nowrap) */
  .pg-filtros-row { flex-wrap: wrap !important; }
  .pg-filtros-form { flex: 1 1 100%; flex-wrap: wrap !important; }
  .pg-filtros-form .form-control, .pg-filtro-ano, .pg-filtro-entidade { max-width: 100% !important; width: 100% !important; }
  .pg-filtros-row form[style*="margin:0"] { flex: 1 1 auto; }
  .pg-filtros-row .btn, .pg-filtros-row form .btn { width: 100%; }
  /* Texto "Bem-vindo" do dashboard */
  .main-content span.text-muted[style*="nowrap"] { white-space: normal !important; }
}
@media (max-width: 900px) {
  .sv-grid__scroll .table td, .sv-grid__scroll .table th { white-space: nowrap; }
  .sv-grid__scroll .table td:first-child { max-width: 220px; white-space: normal; }
}
@media (max-width: 900px) {
  .pg-filtros-form { min-width: 0 !important; }
  .table .d-flex, td .d-flex, th .d-flex { flex-wrap: nowrap !important; }
  .table .d-flex > * { flex: 0 0 auto !important; }
}
/* Tabelas largas rolam na horizontal em vez de quebrar cada célula em 4 linhas */
.sv-grid__scroll .table td, .sv-grid__scroll .table th { white-space: nowrap; }
.sv-grid__scroll .table td:first-child { white-space: normal; max-width: 260px; }
.main-content h5 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lg-brand__foot--mobile { display: none; }
@media (max-width: 900px) {
  .lg-brand__foot--mobile { display: block; text-align: center; margin-top: 18px; font-size: 12px; color: rgba(255,255,255,0.55); }
  .lg-panel { grid-auto-rows: max-content; }
}
@media (max-width: 900px) {
  /* Formulários dentro de linhas flex (filtros de Boas Práticas etc.) ocupam a linha inteira */
  .main-content .d-flex > form { flex: 1 1 100% !important; width: 100%; min-width: 0; }
  .main-content .d-flex > form.d-flex { flex-wrap: wrap; }
  .main-content .d-flex > form .ss-container, .main-content .d-flex > form .form-control { width: 100% !important; }
}

/* Cartões não podem cortar menus suspensos (select pesquisável do filtro de entidade) */
.card, .card-premium { overflow: visible; }
.card > .table, .card-premium > .table { border-radius: var(--t-radius); }
.sv-grid, .kpi-card { overflow: hidden; }
.ss-dropdown { z-index: 1200; }

/* --------------------------------------------------------------------------
   12. Diagnóstico Inicial (Pró-Gestão) — mesmo visual do formulário público:
       faixa colorida por princípio, perguntas em cartões com filete lateral
   -------------------------------------------------------------------------- */
#diagnosticoForm > fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#diagnosticoForm > fieldset > .card {
  border-radius: 16px; border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--t-shadow); overflow: hidden; margin-bottom: 22px;
}
#diagnosticoForm > fieldset > .card > .card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.02em;
  background: linear-gradient(135deg, #2b7de9, #1f63bd);
}
#diagnosticoForm > fieldset > .card > .card-header::before {
  content: "\f3ed"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 16px; opacity: 0.95;
}
#diagnosticoForm > fieldset > .card > .card-header strong { color: #fff; font-weight: 800; }
#diagnosticoForm > fieldset > .card:nth-of-type(2) > .card-header { background: linear-gradient(135deg, #0e8f7e, #0a6d60); }
#diagnosticoForm > fieldset > .card:nth-of-type(3) > .card-header { background: linear-gradient(135deg, #e0632f, #c24a1b); }
#diagnosticoForm > fieldset > .card > .card-body { padding: 18px 20px 8px; background: #fbfcfe; }

/* Cartão de cada pergunta */
#diagnosticoForm > fieldset > .card > .card-body > .card {
  border-radius: 14px; margin-bottom: 14px; overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06); border-left: 4px solid #2b7de9;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.05);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
#diagnosticoForm > fieldset > .card > .card-body > .card:hover { box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08); }
#diagnosticoForm > fieldset > .card > .card-body > .card.diag-untouched { border-left-color: #2b7de9; }
#diagnosticoForm > fieldset > .card > .card-body > .card.diag-pending { border-left-color: var(--danger-color, #d64545); }
#diagnosticoForm > fieldset > .card > .card-body > .card.diag-pending::after {
  content: ""; position: absolute; top: 18px; right: 20px; width: 10px; height: 10px; border-radius: 999px;
  border: 2px solid var(--danger-color, #d64545); background: #fff;
}
#diagnosticoForm > fieldset > .card > .card-body > .card.diag-answered { border-left-color: var(--t-ok); }
#diagnosticoForm > fieldset > .card > .card-body > .card.diag-answered::after {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; top: 14px; right: 16px; width: 24px; height: 24px; border-radius: 999px;
  background: var(--t-ok-bg); color: var(--t-ok); font-size: 11px; display: grid; place-items: center;
}
#diagnosticoForm > fieldset > .card > .card-body > .card { position: relative; }
#diagnosticoForm > fieldset > .card > .card-body > .card > .card-body { padding: 16px 44px 14px 18px; background: #fff; }
#diagnosticoForm > fieldset > .card > .card-body > .card .card-body > p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
#diagnosticoForm > fieldset > .card > .card-body > .card .card-body > p strong { font-weight: 700; color: var(--t-ink); }
#diagnosticoForm > fieldset > .card > .card-body > .card .card-body > p br + * , 
#diagnosticoForm .card-body > p > br { display: block; content: ""; margin-top: 2px; }

/* Opções: linhas clicáveis inteiras */
#diagnosticoForm .flex-column > label { display: flex; align-items: flex-start; gap: 10px; flex-wrap: nowrap; }
#diagnosticoForm .flex-column > label {
  margin: 0; padding: 7px 10px; border-radius: 10px; cursor: pointer;
  font-size: 14px; line-height: 1.4; transition: background 0.15s ease;
}
#diagnosticoForm .flex-column > label:hover { background: var(--t-soft); }
#diagnosticoForm .flex-column > label input[type="checkbox"], #diagnosticoForm .flex-column > label input[type="radio"] {
  width: 18px; height: 18px; margin: 0 4px 0 0; accent-color: #2b7de9; flex: 0 0 18px;
}
#diagnosticoForm > fieldset > .card:nth-of-type(2) label.d-flex input { accent-color: #0e8f7e; }
#diagnosticoForm > fieldset > .card:nth-of-type(3) label.d-flex input { accent-color: #e0632f; }
#diagnosticoForm .flex-column > label:has(input:checked) { background: var(--t-info-bg); }
#diagnosticoForm .diag-exclusive-group { gap: 2px !important; }
#diagnosticoForm input[type="text"].form-control, #diagnosticoForm input[type="number"].form-control, #diagnosticoForm textarea.form-control, #diagnosticoForm select.form-control { max-width: 100%; }
#diagnosticoForm fieldset[disabled] .flex-column > label { cursor: default; }
#diagnosticoForm fieldset[disabled] .flex-column > label:hover { background: transparent; }
@media (max-width: 600px) {
  #diagnosticoForm > fieldset > .card > .card-header { padding: 12px 14px; font-size: 13.5px; }
  #diagnosticoForm > fieldset > .card > .card-body { padding: 12px 10px 4px; }
  #diagnosticoForm > fieldset > .card > .card-body > .card > .card-body { padding: 14px 36px 12px 14px; }
}

/* --------------------------------------------------------------------------
   13. Boas Práticas — critérios no mesmo visual do Diagnóstico Inicial
   -------------------------------------------------------------------------- */
#criterios > fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#criterios > fieldset > .card {
  border-radius: 16px; border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--t-shadow); overflow: hidden; margin-bottom: 22px;
}
#criterios > fieldset > .card > .card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; color: #fff; background: linear-gradient(135deg, #2b7de9, #1f63bd);
}
#criterios > fieldset > .card:nth-of-type(2) > .card-header { background: linear-gradient(135deg, #0e8f7e, #0a6d60); }
#criterios > fieldset > .card:nth-of-type(3) > .card-header { background: linear-gradient(135deg, #e0632f, #c24a1b); }
#criterios > fieldset > .card > .card-header > div:first-child { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#criterios > fieldset > .card > .card-header > div:first-child::before {
  content: "\f091"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 16px; opacity: 0.95;
}
#criterios > fieldset > .card > .card-header strong { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
#criterios > fieldset > .card > .card-header .text-muted {
  color: #fff !important; opacity: 0.92; margin-top: 0 !important; font-size: 12.5px !important;
  background: rgba(255, 255, 255, 0.16); padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
#criterios > fieldset > .card > .card-header .diag-legend { color: #fff; margin-left: 0; opacity: 0.95; }
#criterios > fieldset > .card > .card-header .diag-legend-dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }
#criterios > fieldset > .card > .card-body { padding: 18px 20px 8px; background: #fbfcfe; }

#criterios .boas-item-card {
  position: relative; border-radius: 14px; margin-bottom: 14px; overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06); border-left: 4px solid #2b7de9;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.05); transition: box-shadow 0.18s ease;
}
#criterios .boas-item-card:hover { box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08); }
#criterios .boas-item-card.diag-untouched { border-left-color: #2b7de9; }
#criterios .boas-item-card.diag-pending { border-left-color: var(--danger-color, #d64545); }
#criterios .boas-item-card.diag-answered { border-left-color: var(--t-ok); }
#criterios .boas-item-card > .card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: #fff; border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
#criterios .boas-item-card > .card-header strong { flex: 1 1 auto; font-size: 14.5px; font-weight: 700; color: var(--t-ink); line-height: 1.45; }
#criterios .boas-item-card > .card-header .badge {
  flex: 0 0 auto; background: var(--t-info-bg) !important; color: var(--t-accent-ink) !important;
  font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px;
}
#criterios .boas-item-card > .card-header::after {
  font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; order: 3;
}
#criterios .boas-item-card.diag-answered > .card-header::after { content: "\f00c"; background: var(--t-ok-bg); color: var(--t-ok); }
#criterios .boas-item-card.diag-pending > .card-header::after { content: ""; width: 10px; height: 10px; margin: 0 7px; border: 2px solid var(--danger-color, #d64545); background: #fff; }
#criterios .boas-item-card > .card-body { padding: 16px 18px 14px; background: #fff; }
#criterios .boas-item-card .boas-sub-title {
  margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-accent);
}
#criterios .boas-item-card .flex-fill > p { font-size: 13.5px; color: var(--t-muted); }
#criterios .boas-item-card .flex-column > label {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 7px 10px; border-radius: 10px; cursor: pointer;
  font-size: 14px; line-height: 1.4; transition: background 0.15s ease;
}
#criterios .boas-item-card .flex-column > label:hover { background: var(--t-soft); }
#criterios .boas-item-card .flex-column > label:has(input:checked) { background: var(--t-info-bg); }
#criterios .boas-item-card .flex-column > label input[type="radio"] { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: #2b7de9; }
#criterios .boas-item-card .flex-column > label .ml-1 { margin-left: 0 !important; }
#criterios .boas-item-card textarea.form-control { border-radius: 12px; font-family: inherit; font-size: 13.5px; min-height: 110px; }
#criterios fieldset[disabled] .boas-item-card .flex-column > label { cursor: default; }
#criterios fieldset[disabled] .boas-item-card .flex-column > label:hover { background: transparent; }
@media (max-width: 600px) {
  #criterios > fieldset > .card > .card-header { padding: 12px 14px; }
  #criterios > fieldset > .card > .card-body { padding: 12px 10px 4px; }
  #criterios .boas-item-card > .card-header, #criterios .boas-item-card > .card-body { padding: 12px 14px; }
}
@media (min-width: 900px) {
  #criterios .boas-item-card .flex-md-row { flex-direction: row; align-items: flex-start; }
  #criterios .boas-item-card .flex-md-row > .flex-fill:first-child { flex: 0 0 40%; max-width: 40%; }
  #criterios .boas-item-card .flex-md-row > .flex-fill:last-child { flex: 1 1 auto; min-width: 0; }
}

/* --------------------------------------------------------------------------
   14. Boas Práticas — relatório
   -------------------------------------------------------------------------- */
#relatorios .bp-blocos-title, #relatorios .bp-details-start h5 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-muted); margin: 0 0 4px;
}
#relatorios .bp-blocos-sub { font-size: 12.5px !important; margin-bottom: 12px; }
#relatorios .bp-details-start { margin: 26px 0 12px; }
#relatorios .bp-blocos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#relatorios .bp-bloco-card {
  position: relative; background: #fff; border: 1px solid rgba(15, 23, 42, 0.06); border-radius: 16px;
  padding: 16px 18px 18px; box-shadow: var(--t-shadow); overflow: hidden;
}
#relatorios .bp-bloco-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: #2b7de9; }
#relatorios .bp-tom-2.bp-bloco-card::before { background: #0e8f7e; }
#relatorios .bp-tom-3.bp-bloco-card::before { background: #e0632f; }
#relatorios .bp-bloco-name { font-size: 15px; font-weight: 800; color: var(--t-ink); margin-bottom: 8px; }
#relatorios .bp-bloco-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
#relatorios .bp-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: var(--t-soft); color: var(--t-muted); font-weight: 600; font-size: 12px;
}
#relatorios .bp-chip strong { color: var(--t-ink); font-weight: 800; }
#relatorios .bp-chip--ok { background: var(--t-ok-bg); color: var(--t-ok); }
#relatorios .bp-chip--ok strong { color: var(--t-ok); }
#relatorios .bp-chip--zero { background: var(--t-warn-bg); color: var(--t-warn); }
#relatorios .bp-chip--zero strong { color: var(--t-warn); }
#relatorios .bp-chip--miss { background: #fdecec; color: #c0392b; }
#relatorios .bp-chip--miss strong { color: #c0392b; }
#relatorios .bp-bloco-bar { margin-top: 12px; height: 8px; border-radius: 999px; overflow: hidden; background: #eef2f7; display: flex; }

#relatorios .bp-detalhe-card {
  border-radius: 16px; border: 1px solid rgba(15, 23, 42, 0.06); box-shadow: var(--t-shadow); overflow: hidden; margin-bottom: 22px;
}
#relatorios .bp-detalhe-card > .card-header {
  padding: 14px 20px; color: #fff; background: linear-gradient(135deg, #2b7de9, #1f63bd);
}
#relatorios .bp-tom-2.bp-detalhe-card > .card-header { background: linear-gradient(135deg, #0e8f7e, #0a6d60); }
#relatorios .bp-tom-3.bp-detalhe-card > .card-header { background: linear-gradient(135deg, #e0632f, #c24a1b); }
#relatorios .bp-detalhe-card > .card-header > div:first-child { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#relatorios .bp-detalhe-card > .card-header > div:first-child::before {
  content: "\f091"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 16px; opacity: 0.95;
}
#relatorios .bp-detalhe-card > .card-header strong { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
#relatorios .bp-detalhe-card > .card-header .text-muted {
  color: #fff !important; opacity: 0.95; margin-top: 0 !important; font-size: 12.5px !important;
}
#relatorios .bp-detalhe-card > .card-header > div:first-child .text-muted {
  background: rgba(255, 255, 255, 0.16); padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
#relatorios .bp-detalhe-card > .card-header .kpi-bar { background: rgba(255, 255, 255, 0.25); border-radius: 999px; overflow: hidden; }
#relatorios .bp-detalhe-card > .card-header .kpi-bar-fill { background: #fff; border-radius: 999px; }
#relatorios .bp-detalhe-card > .card-body { padding: 6px 12px 10px; }
#relatorios .bp-detalhe-card .table { margin: 0; border-collapse: separate; border-spacing: 0; }
#relatorios .bp-detalhe-card .table th {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-muted); font-weight: 800;
  background: transparent; border-bottom: 1px solid rgba(15, 23, 42, 0.08); padding: 12px 10px;
}
#relatorios .bp-detalhe-card .table td { padding: 11px 10px; border-bottom: 1px solid rgba(15, 23, 42, 0.05); vertical-align: middle; font-size: 13.5px; }
#relatorios .bp-detalhe-card .table tbody tr:last-child td { border-bottom: 0; }
#relatorios .bp-detalhe-card .table tbody tr:nth-child(even) td { background: transparent; }
#relatorios .bp-detalhe-card .table tbody tr:hover td { background: var(--t-soft); }
#relatorios .bp-detalhe-card .table td:first-child strong {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 9px;
  background: var(--t-soft); color: var(--t-ink); font-size: 12.5px; font-weight: 800;
}
#relatorios .bp-resp-pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3;
}
#relatorios .bp-resp-pill--ok { background: var(--t-ok-bg); color: var(--t-ok); }
#relatorios .bp-resp-pill--zero { background: var(--t-warn-bg); color: var(--t-warn); }
#relatorios .bp-resp-pill--miss { background: #fdecec; color: #c0392b; }
@media (max-width: 1024px) { #relatorios .bp-blocos-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  #relatorios .bp-detalhe-card > .card-header { padding: 12px 14px; }
  #relatorios .bp-detalhe-card > .card-header > div:last-child { min-width: 0 !important; width: 100%; }
}
@media print {
  #relatorios .bp-detalhe-card > .card-header, #relatorios .bp-bloco-card::before, #relatorios .bp-resp-pill, #relatorios .bp-chip {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
@media (max-width: 900px) {
  #relatorios .bp-detalhe-card > .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #relatorios .bp-detalhe-card .table { min-width: 720px; }
}

/* --------------------------------------------------------------------------
   15. Pró-Gestão — relatório do Diagnóstico Inicial
   -------------------------------------------------------------------------- */
#relatorios .card:has(> .pg-top-summary) {
  border-radius: 16px; border: 1px solid rgba(15, 23, 42, 0.06); box-shadow: var(--t-shadow); overflow: hidden;
}
#relatorios .pg-top-summary { padding: 18px 20px; gap: 18px; }
#relatorios .pg-top-summary-left > div { font-size: 14px; line-height: 1.5; }
#relatorios .pg-top-summary-left strong, #relatorios .pg-top-summary-right strong { color: var(--t-ink); }
#relatorios .pg-top-actions-title {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-muted);
}
#relatorios .pg-top-actions-sub { font-size: 13px; }
#relatorios .pg-btn-download {
  border-radius: 12px; font-weight: 700; box-shadow: 0 6px 16px rgba(43, 125, 233, 0.22); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#relatorios .pg-btn-download:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43, 125, 233, 0.28); }
#relatorios .pg-btn-download.is-disabled { box-shadow: none; opacity: 0.55; }
#relatorios .pg-target-bar { height: 10px; border-radius: 999px; overflow: hidden; }
#relatorios .pg-target-dot { border-radius: 999px; }

#relatorios .pg-rel-bloco {
  border-radius: 16px; border: 1px solid rgba(15, 23, 42, 0.06); box-shadow: var(--t-shadow); overflow: hidden; margin-bottom: 22px;
}
#relatorios .pg-rel-bloco > .card-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: #fff;
  background: linear-gradient(135deg, #2b7de9, #1f63bd);
}
#relatorios .pg-rel-bloco > .card-header::before {
  content: "\f3ed"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 16px; opacity: 0.95;
}
#relatorios .pg-rel-bloco.pg-tom-2 > .card-header { background: linear-gradient(135deg, #0e8f7e, #0a6d60); }
#relatorios .pg-rel-bloco.pg-tom-3 > .card-header { background: linear-gradient(135deg, #e0632f, #c24a1b); }
#relatorios .pg-rel-bloco > .card-header strong { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
#relatorios .pg-rel-bloco > .card-body { padding: 6px 12px 10px; }
#relatorios .pg-rel-bloco .table { margin: 0; border-collapse: separate; border-spacing: 0; }
#relatorios .pg-rel-bloco .table th {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-muted); font-weight: 800;
  background: transparent; border-bottom: 1px solid rgba(15, 23, 42, 0.08); padding: 12px 10px; white-space: nowrap;
}
#relatorios .pg-rel-bloco .table td {
  padding: 12px 10px; border-bottom: 1px solid rgba(15, 23, 42, 0.05); vertical-align: top; font-size: 13.5px; line-height: 1.5;
}
#relatorios .pg-rel-bloco .table tbody tr:last-child td { border-bottom: 0; }
#relatorios .pg-rel-bloco .table tbody tr:nth-child(even) td { background: transparent; }
#relatorios .pg-rel-bloco .table tbody tr:hover td { background: var(--t-soft); }
#relatorios .pg-rel-bloco .table td:first-child strong {
  display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 9px;
  background: var(--t-soft); color: var(--t-ink); font-size: 12.5px; font-weight: 800;
}
#relatorios .pg-rel-bloco .badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
#relatorios .pg-rel-bloco .badge.pg-st--ok { background: var(--t-ok-bg); color: var(--t-ok); }
#relatorios .pg-rel-bloco .badge.pg-st--abaixo { background: var(--t-warn-bg); color: var(--t-warn); }
#relatorios .pg-rel-bloco .badge.pg-st--nao { background: #fdecec; color: #c0392b; }
#relatorios .pg-rel-list { padding-left: 0 !important; list-style: none; margin: 0; font-size: 13px; }
#relatorios .pg-rel-list li { position: relative; padding-left: 16px; margin: 2px 0; }
#relatorios .pg-rel-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 999px; background: var(--t-ok);
}
#relatorios .pg-rel-list--falta li::before { background: #c0392b; }
@media (max-width: 900px) {
  #relatorios .pg-rel-bloco > .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #relatorios .pg-rel-bloco .table { min-width: 900px; }
}
@media (max-width: 600px) {
  #relatorios .pg-rel-bloco > .card-header { padding: 12px 14px; }
  #relatorios .pg-top-summary { padding: 14px; }
}
@media print {
  #relatorios .pg-rel-bloco > .card-header, #relatorios .pg-rel-bloco .badge, #relatorios .pg-rel-list li::before {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
#relatorios .pg-rel-bloco .badge.pg-lv { background: var(--t-soft); color: var(--t-ink); border: 1px solid rgba(15, 23, 42, 0.08); }
@media (max-width: 900px) {
  #relatorios .pg-top-summary > .pg-top-summary-left, #relatorios .pg-top-summary > .pg-top-summary-right, #relatorios .pg-top-summary > .pg-top-summary-actions {
    flex: 1 1 100% !important; min-width: 0 !important; max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   16. Solicitações — grade compacta que cabe na tela sem rolagem lateral
   -------------------------------------------------------------------------- */
.sv-table-solic { width: 100%; table-layout: auto; font-size: 12.5px; }
.sv-grid__scroll .sv-table-solic td, .sv-grid__scroll .sv-table-solic th, .sv-table-solic td, .sv-table-solic th {
  white-space: normal !important; padding: 9px 7px; vertical-align: middle; overflow-wrap: anywhere; line-height: 1.35;
}
.sv-table-solic th { font-size: 11px; letter-spacing: 0.06em; }
.sv-table-solic td:first-child { max-width: none; }
.sv-table-solic .badge { white-space: nowrap; font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.sv-table-solic td:nth-child(4), .sv-table-solic td:nth-child(6) { white-space: nowrap !important; }
.sv-table-solic td:nth-child(10) { min-width: 84px; }
.sv-table-solic td.no-print-col .d-flex { flex-direction: column; align-items: stretch; gap: 4px !important; }
.sv-table-solic td.no-print-col .btn { width: 100%; white-space: nowrap; padding: 4px 8px; font-size: 11.5px; line-height: 1.3; border-radius: 8px; }
.sv-table-solic td.no-print-col form { width: 100%; }
@media (max-width: 1100px) {
  .sv-table-solic { font-size: 12px; }
  .sv-table-solic td, .sv-table-solic th { padding: 7px 5px; }
}
.sv-table-solic th { white-space: nowrap !important; }
.sv-table-solic td:nth-child(2), .sv-table-solic td:nth-child(9), .sv-table-solic td:nth-child(10) { white-space: nowrap !important; }

/* --------------------------------------------------------------------------
   17. Barra de filtros das listas (usuários, entidades)
   -------------------------------------------------------------------------- */
.sv-filtros {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px 12px; align-items: end;
  padding: 14px 20px; margin: 0; background: #f7f9fc; border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.sv-filtros label { display: block; font-size: 12px; font-weight: 700; color: var(--t-muted); margin: 0 0 4px; letter-spacing: 0.02em; }
.sv-filtros .form-control { width: 100%; min-width: 0; height: 40px; background: #fff; }
.sv-filtros .sv-f-4 { grid-column: span 4; }
.sv-filtros .sv-f-3 { grid-column: span 3; }
.sv-filtros .sv-f-2 { grid-column: span 2; }
.sv-filtros .sv-f-acoes { grid-column: span 2; display: flex; gap: 8px; justify-content: flex-end; }
.sv-filtros .sv-f-acoes .btn { height: 40px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sv-filtros-resumo { padding: 10px 20px 0; font-size: 13px; color: var(--t-muted); }
@media (max-width: 1100px) {
  .sv-filtros .sv-f-4, .sv-filtros .sv-f-3 { grid-column: span 6; }
  .sv-filtros .sv-f-2 { grid-column: span 3; }
  .sv-filtros .sv-f-acoes { grid-column: span 6; }
}
@media (max-width: 600px) {
  .sv-filtros { padding: 12px 14px; }
  .sv-filtros .sv-f-4, .sv-filtros .sv-f-3, .sv-filtros .sv-f-2, .sv-filtros .sv-f-acoes { grid-column: span 12; }
  .sv-filtros .sv-f-acoes .btn { flex: 1; justify-content: center; }
}
.sv-filtros .sv-f-1 { grid-column: span 1; }
@media (max-width: 1100px) { .sv-filtros .sv-f-1 { grid-column: span 3; } }
@media (max-width: 600px) { .sv-filtros .sv-f-1 { grid-column: span 12; } }

/* --------------------------------------------------------------------------
   18. Pró-Gestão — pilares P1/P2/P3 (lista de requisitos)
   -------------------------------------------------------------------------- */
.pg-pilar { --pg-cor: #2b7de9; --pg-cor-2: #1f63bd; --pg-cor-bg: #eaf2ff; }
.pg-pilar.pg-tom-2 { --pg-cor: #0e8f7e; --pg-cor-2: #0a6d60; --pg-cor-bg: #e6f5f2; }
.pg-pilar.pg-tom-3 { --pg-cor: #e0632f; --pg-cor-2: #c24a1b; --pg-cor-bg: #fdeee6; }
.pg-pilar-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 16px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--pg-cor), var(--pg-cor-2)); box-shadow: var(--t-shadow);
}
.pg-pilar-titulo { display: flex; flex-direction: column; gap: 2px; }
.pg-pilar-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.pg-pilar-titulo strong { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }
.pg-pilar-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-pilar-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.pg-pilar-chip i { opacity: 0.9; font-size: 12px; }

.pg-pilar-resumo { border-radius: 16px; border: 1px solid rgba(15, 23, 42, 0.06); box-shadow: var(--t-shadow); overflow: hidden; }
.pg-pilar-resumo > .card-body { padding: 14px 20px 16px; position: relative; }
.pg-pilar-resumo > .card-body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #eef2f7;
}
.pg-pilar-resumo > .card-body::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--pg-prog, 0%); z-index: 1;
  background: linear-gradient(90deg, var(--pg-cor), var(--pg-cor-2)); transition: width 0.4s ease;
}
.pg-pilar-resumo > .card-body > .text-muted { font-size: 13.5px !important; color: var(--t-ink) !important; }
.pg-pilar-resumo > .card-body > .text-muted strong { font-weight: 800; }
.pg-pilar-resumo [id$="-obrigatorios-count"] {
  display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; margin: 0 2px;
  border-radius: 8px; background: var(--pg-cor-bg); color: var(--pg-cor); font-weight: 800;
}
.pg-pilar-resumo .pro-gestao-legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.pg-pilar-resumo .pro-gestao-legend-item {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--t-soft); font-size: 12px; font-weight: 600; color: var(--t-muted);
}
.pg-pilar-resumo .pro-gestao-legend-dot { width: 9px; height: 9px; border-radius: 999px; margin: 0; }

.tab-pane .pro-gestao-accordion { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.tab-pane .pro-gestao-req {
  border: 1px solid rgba(15, 23, 42, 0.07); border-left-width: 5px; border-radius: 14px;
  margin: 0; background: #fff; box-shadow: 0 2px 8px rgba(2, 6, 23, 0.05);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.tab-pane .pro-gestao-req:hover { box-shadow: 0 8px 20px rgba(2, 6, 23, 0.09); }
.tab-pane .pro-gestao-req-header { padding: 13px 16px; gap: 12px; background: #fff; transition: background 0.15s ease; }
.tab-pane .pro-gestao-req-header:hover { background: #f7f9fc; }
.tab-pane .pro-gestao-req-toggle-input:checked + .pro-gestao-req-header { background: #f4f8ff; border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.tab-pane .pro-gestao-req-num {
  min-width: 48px; padding: 6px 8px; border-radius: 10px; font-weight: 800; font-size: 13px; letter-spacing: 0.02em;
  background: #2b7de9; box-shadow: 0 4px 10px rgba(43, 125, 233, 0.25);
}
#p2 .pro-gestao-req-num { background: #0e8f7e; box-shadow: 0 4px 10px rgba(14, 143, 126, 0.25); }
#p3 .pro-gestao-req-num { background: #e0632f; box-shadow: 0 4px 10px rgba(224, 99, 47, 0.25); }
.tab-pane .pro-gestao-req-badges .badge {
  font-size: 10.5px !important; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: 0.03em;
}
.tab-pane .badge-obrigatorio { background: var(--t-ok-bg); border-color: transparent; color: var(--t-ok); }
.tab-pane .badge-auditoria { background: var(--t-warn-bg); border-color: transparent; color: var(--t-warn); }
.tab-pane .pro-gestao-req-title { font-size: 14.5px; font-weight: 600; color: var(--t-ink); line-height: 1.45; flex: 1 1 auto; }
.tab-pane .pro-gestao-req-toggle {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  background: var(--t-soft); color: var(--t-muted); transition: background 0.15s ease, color 0.15s ease;
}
.tab-pane .pro-gestao-req-toggle i { font-size: 12px; transition: transform 0.2s ease; }
.tab-pane .pro-gestao-req-header:hover .pro-gestao-req-toggle { background: var(--t-info-bg); color: var(--t-accent); }
.tab-pane .pro-gestao-req-body { padding: 18px 18px 16px; background: #fbfcfe; }
.tab-pane .pro-gestao-req-section-title {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-accent); margin-bottom: 4px;
}
.tab-pane .pro-gestao-req-body textarea.form-control { border-radius: 12px; font-size: 13.5px; }
.tab-pane .pro-gestao-info-link { font-weight: 600; }
.tab-pane .pro-gestao-info { border-radius: 12px; }
.tab-pane .pg-timeline { border-radius: 12px; border-color: rgba(15, 23, 42, 0.08); }
.tab-pane .pg-timeline-card { border-radius: 10px; }
@media (max-width: 600px) {
  .pg-pilar-head { padding: 14px; border-radius: 14px; }
  .pg-pilar-titulo strong { font-size: 16px; }
  .pg-pilar-chip { white-space: normal; }
  .tab-pane .pro-gestao-req-header { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .tab-pane .pro-gestao-req-title { flex-basis: 100%; order: 3; }
  .tab-pane .pro-gestao-req-toggle { margin-left: auto; }
  .tab-pane .pro-gestao-req-body { padding: 14px; }
}
.tab-pane .pro-gestao-req.is-animando .pro-gestao-req-body { display: block !important; overflow: hidden; }
.tab-pane .pro-gestao-req-toggle-input:checked + .pro-gestao-req-header .pro-gestao-req-toggle i { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .tab-pane .pro-gestao-req-body, .tab-pane .pro-gestao-req { transition: none; } }
.tab-pane .pro-gestao-req.pro-gestao-req-status-pendente { border-left-color: #e53935; }
.tab-pane .pro-gestao-req.pro-gestao-req-status-msg, .tab-pane .pro-gestao-req.pro-gestao-req-status-esclarecimento { border-left-color: #f2c200; }
.tab-pane .pro-gestao-req.pro-gestao-req-status-anexo { border-left-color: #fb8c00; }
.tab-pane .pro-gestao-req.pro-gestao-req-status-completo { border-left-color: #2E7D5B; }
.tab-pane .pro-gestao-req.pro-gestao-req-status-atrasado { border-left-color: #8e24aa; }
.pg-pilar-meta .pg-pilar-btn { border-color: rgba(255, 255, 255, 0.55); }

/* --------------------------------------------------------------------------
   19. Contador de sessão (menu lateral) e aviso de sessão expirada
   -------------------------------------------------------------------------- */
.sidebar-session-timer {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 8px;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; line-height: 1; cursor: default; user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-session-timer i { font-size: 11px; opacity: 0.8; }
.sidebar-session-timer.is-atencao { background: rgba(255, 193, 7, 0.18); color: #ffd666; }
.sidebar-session-timer.is-critico { background: rgba(229, 57, 53, 0.22); color: #ff8a80; animation: sv-timer-pulse 1s ease-in-out infinite; }
@keyframes sv-timer-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.sidebar .sidebar-brand-row .sidebar-notif-btn { margin-left: 0; }
body.sidebar-collapsed .sidebar .sidebar-session-timer { margin: 0; padding: 4px 8px; }
body.sidebar-collapsed .sidebar .sidebar-session-timer i { display: none; }
@media (prefers-reduced-motion: reduce) { .sidebar-session-timer.is-critico { animation: none; } }

.sv-sessao-modal {
  position: fixed; inset: 0; z-index: 30000; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(14, 27, 51, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sv-sessao-card {
  width: 100%; max-width: 440px; background: #fff; border-radius: 18px; padding: 28px 26px 22px; text-align: center;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35); animation: sv-sessao-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes sv-sessao-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.sv-sessao-icone {
  width: 64px; height: 64px; border-radius: 999px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--t-info-bg); color: var(--t-accent); font-size: 26px;
}
.sv-sessao-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--t-ink); }
.sv-sessao-card p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--t-muted); }
.sv-sessao-card .btn { min-width: 140px; justify-content: center; }
.sidebar-session-timer { padding: 2px 7px; font-size: 10.5px; letter-spacing: 0.03em; margin-right: 6px; opacity: 0.9; }
.sidebar .sidebar-brand-row { gap: 6px; }
.sidebar .sidebar-brand { min-width: 0; }

/* --------------------------------------------------------------------------
   20. Cadastro da entidade — aba Projetos (exercícios por ano)
   -------------------------------------------------------------------------- */
.ex-projeto { margin-top: 4px; }
.ex-projeto--boas_praticas .sv-grid-header { background: linear-gradient(135deg, #0e8f7e, #0a6d60) !important; }
.ex-header-chip { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ex-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; background: #fbfcfe; }
.ex-vazio { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--t-warn-bg); color: var(--t-warn); font-size: 13.5px; font-weight: 600; }
.ex-card { border: 1px solid rgba(15, 23, 42, 0.07); border-left: 5px solid var(--t-ok); border-radius: 14px; background: #fff; padding: 14px 16px; box-shadow: 0 2px 8px rgba(2, 6, 23, 0.05); display: flex; flex-direction: column; gap: 12px; }
.ex-card.is-encerrado { border-left-color: #b8c2d1; background: #fafbfd; }
.ex-card__topo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ex-ano { display: inline-flex; align-items: center; gap: 10px; }
.ex-ano__num { display: inline-grid; place-items: center; min-width: 64px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--t-navy); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.ex-card.is-encerrado .ex-ano__num { background: #6b7a90; }
.ex-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ex-status--ok { background: var(--t-ok-bg); color: var(--t-ok); }
.ex-status--off { background: #eceff4; color: #5b6b82; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--t-muted); flex: 1 1 auto; }
.ex-meta i { margin-right: 4px; opacity: 0.8; }
.ex-acoes { display: flex; gap: 8px; margin-left: auto; }
.ex-form-inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.ex-card__campos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px 12px; align-items: end; margin: 0; }
.ex-card__campos .form-group { margin: 0; grid-column: span 3; }
.ex-card__campos .form-group.ex-obs { grid-column: span 4; }
.ex-card__campos .form-group.ex-salvar { grid-column: span 2; }
.ex-card__campos .form-control, .ex-liberar .form-control { height: 38px; }
.ex-card__campos .btn, .ex-liberar .btn { height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.ex-pdf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: #f3f6fb; border: 1px dashed rgba(15, 23, 42, 0.12); }
.ex-pdf__info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.ex-pdf__rotulo { font-weight: 700; color: var(--t-ink); }
.ex-pdf__rotulo i { color: #c0392b; margin-right: 4px; }
.ex-pdf__nome { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t-muted); }
.ex-pdf__acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-pdf__acoes input[type="file"] { max-width: 260px; height: 34px; padding: 4px 8px; font-size: 12.5px; }
.ex-liberar { margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(43, 125, 233, 0.25); background: #f4f8ff; }
.ex-liberar__titulo { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--t-accent); margin-bottom: 10px; }
.ex-liberar__campos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.ex-liberar__campos .form-group { margin: 0; grid-column: span 2; }
.ex-liberar__campos .form-group.ex-obs { grid-column: span 4; }
.ex-liberar__campos .form-group.ex-salvar { grid-column: span 2; }
@media (max-width: 1100px) {
  .ex-card__campos .form-group, .ex-liberar__campos .form-group { grid-column: span 6 !important; }
  .ex-card__campos .form-group.ex-obs, .ex-liberar__campos .form-group.ex-obs { grid-column: span 12 !important; }
}
@media (max-width: 600px) {
  .ex-body { padding: 12px; }
  .ex-card__campos .form-group, .ex-liberar__campos .form-group { grid-column: span 12 !important; }
  .ex-acoes { margin-left: 0; width: 100%; }
  .ex-pdf__nome { max-width: 100%; white-space: normal; }
}
.pg-ex-badge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: middle; }
.pg-ex-badge.is-liberado { background: var(--t-ok-bg); color: var(--t-ok); }
.pg-ex-badge.is-encerrado { background: #eceff4; color: #5b6b82; }

/* Filtro compacto de exercícios e modais da aba Projetos */
.ex-filtro { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 6px 10px; border-radius: 999px; background: #f2f6fc; border: 1px solid rgba(15, 23, 42, 0.06); }
.ex-filtro__rotulo { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-muted); white-space: nowrap; }
.ex-filtro__rotulo i { color: var(--t-accent); margin-right: 4px; }
.ex-filtro .form-control { height: 30px; padding: 2px 26px 2px 10px; font-size: 12.5px; border-radius: 999px; width: auto; min-width: 140px; max-width: 190px; background-position: right 8px center; }
.ex-filtro__resultado { font-size: 12px; color: var(--t-muted); margin-left: auto; white-space: nowrap; }
.sv-grid-header .ex-btn-novo { margin-left: auto; }
.ex-modal { position: fixed; inset: 0; z-index: 30000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(14, 27, 51, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ex-modal[hidden] { display: none !important; }
.ex-modal__card { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35); animation: sv-sessao-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ex-modal__card--largo { max-width: 1000px; }
.ex-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
.ex-modal__head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--t-ink); }
.ex-modal__head-acoes { display: flex; align-items: center; gap: 10px; }
.ex-modal__fechar { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--t-muted); cursor: pointer; padding: 0 4px; }
.ex-modal__fechar:hover { color: var(--t-ink); }
.ex-modal__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.ex-modal__body .form-group { margin: 0; }
.ex-modal__body--pdf { padding: 0; height: 78vh; }
.ex-modal__body--pdf iframe { width: 100%; height: 100%; border: 0; display: block; background: #f4f6fa; }
.ex-modal__sub { margin: 0; font-size: 13.5px; color: var(--t-muted); }
.ex-modal__aviso { padding: 10px 12px; border-radius: 10px; background: var(--t-warn-bg); color: var(--t-warn); font-size: 13px; font-weight: 600; }
.ex-modal__icone { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; background: #fdecec; color: #c0392b; font-size: 22px; margin: 0 auto 4px; }
.ex-modal__card--alerta .ex-modal__body { text-align: center; }
.ex-modal__card--alerta .ex-modal__body p { margin: 0; font-size: 14px; line-height: 1.5; }
.ex-modal__nota { color: var(--t-muted); font-size: 13px !important; }
.ex-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid rgba(15, 23, 42, 0.06); }
.ex-modal [hidden] { display: none !important; }
@media (max-width: 600px) {
  .ex-filtro { border-radius: 14px; }
  .ex-filtro .form-control { flex: 1 1 140px; max-width: none; }
  .ex-filtro__resultado { margin-left: 0; flex-basis: 100%; }
  .sv-grid-header .ex-btn-novo { margin-left: 0; }
  .ex-modal__body--pdf { height: 70vh; }
}
.ex-modal__icone--info { background: var(--t-info-bg); color: var(--t-accent); }

/* Seletor de arquivo estilizado (aba Projetos) */
.ex-arquivo { position: relative; display: inline-flex; align-items: center; gap: 10px; max-width: 340px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px dashed rgba(43, 125, 233, 0.45); background: #fff; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; margin: 0; }
.ex-arquivo:hover { border-color: var(--t-accent); background: #f4f8ff; }
.ex-arquivo.is-cheio { border-style: solid; border-color: var(--t-ok); background: var(--t-ok-bg); }
.ex-arquivo__btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--t-info-bg); color: var(--t-accent-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ex-arquivo.is-cheio .ex-arquivo__btn { background: #fff; color: var(--t-ok); }
.ex-arquivo__nome { font-size: 12.5px; color: var(--t-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-arquivo.is-cheio .ex-arquivo__nome { color: var(--t-ok); font-weight: 600; }
.ex-arquivo input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ex-pdf__acoes .btn { white-space: nowrap; }
@media (max-width: 600px) { .ex-arquivo { max-width: 100%; width: 100%; } }
.ex-modal__erro { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 40px 20px; text-align: center; color: var(--t-muted); }
.ex-modal__erro i { font-size: 34px; color: #c0392b; }
.ex-modal__erro strong { font-size: 16px; color: var(--t-ink); }
.ex-modal__erro span { font-size: 13.5px; max-width: 420px; }

/* --------------------------------------------------------------------------
   21. Layout compacto: menos espaço entre topo, filtros e conteúdo
   -------------------------------------------------------------------------- */
.main-content { padding: 14px 22px 26px; }
body:not(.login-page) .page-header { margin: -14px -22px 14px; padding: 8px 20px; gap: 12px; }
.page-title { font-size: 19px; }
.sidebar-toggle { width: 34px; height: 34px; }
.main-content > .d-flex.mb-4, .main-content > .mb-4 { margin-bottom: 10px; }
.main-content > .d-flex.mb-4 .text-muted { font-size: 13px; }
.main-content > .card.mb-4 { margin-bottom: 10px; }
.main-content > .card > .card-body.pg-filtros-row,
.main-content > .card > .card-body.d-flex.align-center.gap-2,
.main-content > .card > .card-body.d-flex.gap-2 { padding: 8px 14px !important; gap: 10px; min-height: 0; }
.pg-filtros-row .form-control, .pg-filtros-row .btn, .pg-filtros-row .ss-container .ss-main,
.main-content > .card > .card-body.d-flex .form-control, .main-content > .card > .card-body.d-flex .btn { height: 36px; min-height: 36px; padding-top: 0; padding-bottom: 0; }
.pg-filtros-row > strong, .main-content > .card > .card-body.d-flex > strong { font-size: 13px; }
.card-body { padding: 14px 18px 18px; }
.card-header { padding: 12px 18px 8px; }
.card > .card-header .nav-tabs { margin: 0; }
.nav-tabs .nav-link { padding: 6px 12px; }
.sv-grid-header { padding: 10px 16px !important; }
.alert { padding: 10px 14px; margin-bottom: 10px; }
.sv-filtros { padding: 10px 16px; }
.sv-filtros-resumo { padding: 8px 16px 0; }
h5.mb-3, .main-content h5 { margin-bottom: 10px; }
.pg-doc-card > .card-header strong { display: inline-flex; align-items: center; gap: 8px; }
.pg-doc-card > .card-header strong i { color: #c0392b; }
.pg-doc-texto { font-size: 13.5px; color: var(--t-ink); margin-bottom: 10px; }
.pg-doc-nota { font-size: 12px; color: var(--t-muted); margin-top: 8px; }
.ex-pdf__data { font-size: 12px; color: var(--t-muted); }
.ex-pdf__data i { margin-right: 3px; opacity: 0.8; }
@media (max-width: 900px) {
  .main-content { padding: 12px 14px 24px; }
  body:not(.login-page) .page-header { margin: -12px -14px 12px; padding: 8px 14px; }
}
.sv-table-usuarios td:first-child { min-width: 230px; max-width: 320px; }
.sv-table-usuarios td:nth-child(3) { white-space: normal !important; max-width: 460px; }

/* --------------------------------------------------------------------------
   22. Imagens protegidas: sem arrastar, sem toque longo (iOS) e sem seleção
   -------------------------------------------------------------------------- */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* --------------------------------------------------------------------------
   23. Relatórios (relatorios.php): abas, indicadores, semáforo, tabelas e impressão
   -------------------------------------------------------------------------- */
.rel-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rel-filtros form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; flex: 1 1 auto; }
.rel-filtros .form-control { height: 40px; }
.rel-filtros .rel-filtro-entidade { min-width: 280px; max-width: 620px; flex: 1 1 320px; }
.rel-filtros .rel-filtro-ano { min-width: 250px; max-width: 320px; }
.rel-page > .card-body { padding: 16px 18px 20px; }
.rel-aba-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rel-aba-toolbar h3 { margin: 0; font-size: 17px; font-weight: 800; }
.rel-aba-toolbar .rel-aba-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-sec { margin: 18px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-muted); }
.rel-tabela { overflow: auto; border: 1px solid rgba(15, 23, 42, 0.07); border-radius: 12px; }
.rel-tabela table { margin: 0; width: 100%; }
.rel-tabela th { white-space: nowrap; }
.rel-tabela td { vertical-align: top; }
.rel-tabela .rel-col-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rel-tabela .rel-mono { font-family: Consolas, "Courier New", monospace; font-size: 11px; word-break: break-all; }
.rel-tabela tr.rel-linha-erro td { background: #fff5f6; }
.rel-tabela tr.rel-linha-alerta td { background: #fffbea; }
.rel-tabela tr.rel-linha-grupo td { background: var(--t-soft); font-weight: 800; }
.rel-tabela ul { margin: 0; padding-left: 18px; }
.rel-tabela ul li { margin: 0 0 2px; }
.rel-obs { color: var(--t-muted); font-size: 12px; }
.rel-selo { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.rel-selo--ok { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.rel-selo--alerta { background: #fff8e1; color: #8d6e00; border-color: #ffe082; }
.rel-selo--erro { background: #ffebee; color: #c62828; border-color: #ef9a9a; }
.rel-selo--neutro { background: #f1f4f8; color: #546e7a; border-color: #d5dde6; }
.rel-selo--info { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.rel-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.rel-kpi { border: 1px solid rgba(15, 23, 42, 0.07); border-radius: 12px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.rel-kpi__rotulo { font-size: 12px; color: var(--t-muted); font-weight: 600; }
.rel-kpi__valor { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.rel-kpi__valor small { font-size: 13px; font-weight: 600; color: var(--t-muted); }
.rel-kpi__extra { font-size: 12px; color: var(--t-muted); }
.rel-kpi--ok { border-left: 4px solid #43a047; }
.rel-kpi--alerta { border-left: 4px solid #f9a825; }
.rel-kpi--erro { border-left: 4px solid #e53935; }
.rel-kpi--info { border-left: 4px solid #1e88e5; }
.rel-semaforo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rel-semaforo li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(15, 23, 42, 0.07); background: #fff; }
.rel-semaforo li::before { content: ""; width: 12px; height: 12px; border-radius: 999px; flex: 0 0 auto; }
.rel-semaforo li.is-vermelho::before { background: #e53935; }
.rel-semaforo li.is-amarelo::before { background: #f9a825; }
.rel-semaforo li.is-verde::before { background: #43a047; }
.rel-semaforo .rel-semaforo__qtd { margin-left: auto; font-weight: 800; }
.rel-semaforo a { color: inherit; text-decoration: none; }
.rel-semaforo a:hover { text-decoration: underline; }
.rel-duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rel-bloco { border: 1px solid rgba(15, 23, 42, 0.07); border-radius: 12px; padding: 12px 14px; background: #fff; }
.rel-bloco h4 { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.rel-bloco dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13px; }
.rel-bloco dt { color: var(--t-muted); font-weight: 600; }
.rel-bloco dd { margin: 0; }
.rel-filtro-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 12px; }
.rel-filtro-inline label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--t-muted); }
.rel-filtro-inline .form-control { height: 38px; min-width: 150px; }
.rel-print-header, .rel-print-footer { display: none; }
@media (max-width: 720px) {
  .rel-filtros .rel-filtro-entidade, .rel-filtros .rel-filtro-ano { min-width: 0; max-width: none; width: 100%; }
}
@media print {
  body.rel-print-mode * { visibility: hidden !important; }
  body.rel-print-mode .rel-page .tab-pane.active, body.rel-print-mode .rel-page .tab-pane.active * { visibility: visible !important; }
  body.rel-print-mode .rel-page .tab-pane.active { position: absolute; left: 0; top: 0; width: 100%; padding: 0; }
  body.rel-print-mode .rel-page { border: 0; box-shadow: none; }
  body.rel-print-mode .rel-print-header { display: flex; gap: 14px; align-items: flex-start; border-bottom: 2px solid #0e2b57; padding-bottom: 8px; margin-bottom: 12px; }
  body.rel-print-mode .rel-print-header__marca img { width: 64px; height: auto; }
  body.rel-print-mode .rel-print-header__titulo { font-size: 16px; font-weight: 800; color: #0e2b57; }
  body.rel-print-mode .rel-print-header__ent { font-size: 13px; margin-top: 2px; }
  body.rel-print-mode .rel-print-header__meta { font-size: 10.5px; color: #475569; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  body.rel-print-mode .rel-print-footer { display: block; position: fixed; bottom: 0; left: 0; right: 0; font-size: 9.5px; color: #64748b; border-top: 1px solid #cbd5e1; padding-top: 3px; }
  body.rel-print-mode .rel-aba-toolbar .rel-aba-acoes, body.rel-print-mode .rel-filtro-inline, body.rel-print-mode .rel-filtro-cliente { display: none !important; }
  body.rel-print-mode .rel-tabela { overflow: visible; border: 0; }
  body.rel-print-mode .rel-tabela table { font-size: 10.5px; }
  body.rel-print-mode .rel-tabela th, body.rel-print-mode .rel-tabela td { padding: 4px 6px; }
  body.rel-print-mode thead { display: table-header-group; }
  body.rel-print-mode tr { break-inside: avoid; }
  body.rel-print-mode .rel-kpis { grid-template-columns: repeat(4, 1fr); }
  body.rel-print-mode .rel-kpi, body.rel-print-mode .rel-bloco, body.rel-print-mode .rel-semaforo li { break-inside: avoid; box-shadow: none; }
  body.rel-print-mode * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* Relatórios: barra de filtros e faixa de contexto compactas (uma linha, controles baixos) */
.rel-filtros-card { margin-bottom: 8px !important; }
.rel-filtros-card > .card-body { padding: 8px 12px !important; }
.rel-filtros { gap: 8px; }
.rel-filtros > strong { font-size: 13px; }
.rel-filtros form { flex-wrap: nowrap; gap: 8px; min-width: 0; }
.rel-filtros .form-control, .rel-filtros .ss-display { height: 34px !important; min-height: 34px !important; padding: 4px 10px !important; font-size: 13px !important; line-height: 1.3; }
.rel-filtros .ss-container { flex: 1 1 auto; min-width: 200px; max-width: none; }
.rel-filtros .rel-filtro-entidade { flex: 1 1 auto; min-width: 200px; max-width: none; }
.rel-filtros .rel-filtro-ano { flex: 0 0 auto; width: 250px; min-width: 0; max-width: none; }
.rel-filtros .btn { height: 34px; padding: 5px 12px; font-size: 13px; }
.rel-contexto-aviso { padding: 5px 12px !important; margin: 0 0 8px !important; font-size: 12.5px !important; line-height: 1.35; border-radius: 10px; }
@media (max-width: 900px) {
  .rel-filtros form { flex-wrap: wrap; }
  .rel-filtros .rel-filtro-ano { width: 100%; }
}
/* Relatórios: identidade visual (faixas por pilar, pílulas de código, indicadores com tom, tabelas) */
.rel-faixa { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; color: #fff; margin: 18px 0 10px; background: linear-gradient(135deg, var(--rel-cor), var(--rel-cor-2)); box-shadow: var(--t-shadow); }
.rel-tom-0 { --rel-cor: #0e2b57; --rel-cor-2: #1f4b8f; --rel-cor-bg: #eaf0f8; }
.rel-tom-1 { --rel-cor: #2b7de9; --rel-cor-2: #1f63bd; --rel-cor-bg: #e8f1fd; }
.rel-tom-2 { --rel-cor: #0e8f7e; --rel-cor-2: #0a6d60; --rel-cor-bg: #e6f5f2; }
.rel-tom-3 { --rel-cor: #e0632f; --rel-cor-2: #c24a1b; --rel-cor-bg: #fdeee6; }
.rel-faixa__titulo { display: flex; flex-direction: column; gap: 2px; }
.rel-faixa__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.rel-faixa__titulo strong { font-size: 16px; font-weight: 800; }
.rel-faixa__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rel-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 12px; font-weight: 700; white-space: nowrap; }
.rel-chip--forte { background: #fff; color: var(--rel-cor-2); }
.rel-cod { display: inline-grid; place-items: center; min-width: 46px; padding: 5px 8px; border-radius: 10px; font-weight: 800; font-size: 12.5px; color: #fff; background: #2b7de9; box-shadow: 0 4px 10px rgba(43, 125, 233, 0.25); white-space: nowrap; }
.rel-cod--P2 { background: #0e8f7e; box-shadow: 0 4px 10px rgba(14, 143, 126, 0.25); }
.rel-cod--P3 { background: #e0632f; box-shadow: 0 4px 10px rgba(224, 99, 47, 0.25); }
.rel-cod--neutro { background: #46556b; box-shadow: none; }
.rel-sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; padding-left: 10px; border-left: 4px solid var(--t-accent); color: var(--t-ink); font-size: 12.5px; }
.rel-aba-toolbar h3 { display: flex; align-items: center; gap: 10px; }
.rel-aba-toolbar h3 i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--t-accent), var(--t-accent-2)); box-shadow: var(--t-shadow-accent); font-size: 14px; }
.rel-kpi { position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 2px 8px rgba(2, 6, 23, 0.05); background: linear-gradient(135deg, #fff, var(--rel-kpi-bg, #f7f9fc)); }
.rel-kpi::after { content: var(--rel-kpi-glifo, "\f111"); font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 12px; top: 8px; font-size: 34px; opacity: 0.10; color: var(--rel-kpi-cor, #46556b); }
.rel-kpi__valor { font-size: 26px; color: var(--t-ink); }
.rel-kpi--ok { --rel-kpi-bg: #eef8f1; --rel-kpi-cor: #2e7d32; --rel-kpi-glifo: "\f058"; }
.rel-kpi--alerta { --rel-kpi-bg: #fff7e6; --rel-kpi-cor: #b26a00; --rel-kpi-glifo: "\f071"; }
.rel-kpi--erro { --rel-kpi-bg: #fdecee; --rel-kpi-cor: #c62828; --rel-kpi-glifo: "\f057"; }
.rel-kpi--info { --rel-kpi-bg: #eaf2fd; --rel-kpi-cor: #1f63bd; --rel-kpi-glifo: "\f05a"; }
.rel-kpi--neutro { --rel-kpi-bg: #f3f5f8; --rel-kpi-cor: #46556b; --rel-kpi-glifo: "\f111"; border-left: 4px solid #b0bec5; }
.rel-tabela { box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04); }
.rel-tabela thead th { background: linear-gradient(180deg, #f6f9fd, #edf2f9); color: #0e2b57; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid #dbe4f0; }
.rel-tabela tbody tr:nth-child(even) td { background: #fafcff; }
.rel-tabela tbody tr:hover td { background: #f1f6fd; }
.rel-tabela tr.rel-linha-erro td, .rel-tabela tr.rel-linha-erro:nth-child(even) td { background: #fff5f6; }
.rel-tabela tr.rel-linha-alerta td, .rel-tabela tr.rel-linha-alerta:nth-child(even) td { background: #fffbea; }
.rel-bloco { border-top: 4px solid var(--rel-cor, var(--t-accent)); box-shadow: 0 2px 8px rgba(2, 6, 23, 0.05); background: linear-gradient(180deg, var(--rel-cor-bg, #f7f9fc), #fff 64px); }
.rel-bloco h4 { display: flex; align-items: center; gap: 8px; color: var(--rel-cor-2, var(--t-ink)); }
.rel-bloco h4 i { color: var(--rel-cor, var(--t-accent)); }
.rel-semaforo li.is-vermelho { background: #fff5f6; border-color: #f3c1c6; }
.rel-semaforo li.is-amarelo { background: #fffbea; border-color: #f3e2a2; }
.rel-semaforo li.is-verde { background: #f1faf3; border-color: #bfe3c7; }
.rel-page > .card-body { background: linear-gradient(180deg, #f8fafd, #fff 160px); }
@media print { .rel-faixa { break-inside: avoid; box-shadow: none; } .rel-kpi::after { display: none; } }
/* Relatórios: indicadores compactos (uma linha baixa por cartão) */
.rel-kpis { gap: 8px; margin: 4px 0 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.rel-kpi { padding: 7px 12px 8px; gap: 1px; border-radius: 12px; }
.rel-kpi__rotulo { font-size: 11.5px; line-height: 1.25; }
.rel-kpi__valor { font-size: 19px; line-height: 1.15; }
.rel-kpi__valor small { font-size: 11.5px; }
.rel-kpi__extra { font-size: 11px; line-height: 1.3; }
.rel-kpi::after { font-size: 22px; top: 6px; right: 10px; }
/* Relatórios: indicadores em linha nas abas de detalhe (Diagnóstico, Pilares, Boas Práticas, Evidências) */
#diagnostico .rel-kpis, #pilares .rel-kpis, #boas_praticas .rel-kpis, #evidencias .rel-kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; margin: 2px 0 6px; }
#diagnostico .rel-kpi, #pilares .rel-kpi, #boas_praticas .rel-kpi, #evidencias .rel-kpi { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "rotulo valor" "extra extra"; align-items: center; column-gap: 10px; padding: 4px 10px 5px; border-radius: 10px; }
#diagnostico .rel-kpi__rotulo, #pilares .rel-kpi__rotulo, #boas_praticas .rel-kpi__rotulo, #evidencias .rel-kpi__rotulo { grid-area: rotulo; font-size: 11px; }
#diagnostico .rel-kpi__valor, #pilares .rel-kpi__valor, #boas_praticas .rel-kpi__valor, #evidencias .rel-kpi__valor { grid-area: valor; font-size: 16px; line-height: 1.1; text-align: right; }
#diagnostico .rel-kpi__valor small, #pilares .rel-kpi__valor small, #boas_praticas .rel-kpi__valor small, #evidencias .rel-kpi__valor small { font-size: 10.5px; }
#diagnostico .rel-kpi__extra, #pilares .rel-kpi__extra, #boas_praticas .rel-kpi__extra, #evidencias .rel-kpi__extra { grid-area: extra; font-size: 10.5px; line-height: 1.25; }
#diagnostico .rel-kpi::after, #pilares .rel-kpi::after, #boas_praticas .rel-kpi::after, #evidencias .rel-kpi::after { display: none; }
/* Relatórios: padrão único dos indicadores em todas as abas (linha, um pouco maiores que a versão anterior) */
.rel-page .rel-kpis { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.rel-page .rel-kpi { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "rotulo valor" "extra extra"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 8px 13px 9px; border-radius: 12px; }
.rel-page .rel-kpi__rotulo { grid-area: rotulo; font-size: 12.5px; line-height: 1.25; }
.rel-page .rel-kpi__valor { grid-area: valor; font-size: 20px; line-height: 1.1; text-align: right; }
.rel-page .rel-kpi__valor small { font-size: 12px; }
.rel-page .rel-kpi__extra { grid-area: extra; font-size: 12px; line-height: 1.3; }
.rel-page .rel-kpi::after { display: none; }
/* Relatórios: indicadores um pouco mais altos (mais respiro) */
.rel-page .rel-kpi { padding: 12px 14px 13px; row-gap: 4px; min-height: 84px; }
.rel-page .rel-kpi__rotulo { font-size: 13px; }
.rel-page .rel-kpi__valor { font-size: 22px; }
.rel-page .rel-kpi__extra { font-size: 12.5px; }
/* Relatórios: indicadores clicáveis e modal de visualização rápida */
.rel-kpis--clicaveis .rel-kpi[data-rel-modal] { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.rel-kpis--clicaveis .rel-kpi[data-rel-modal]:hover, .rel-kpis--clicaveis .rel-kpi[data-rel-modal]:focus-visible { transform: translateY(-2px); box-shadow: var(--t-shadow-hover); outline: none; }
.rel-kpis--clicaveis .rel-kpi[data-rel-modal]::before { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--t-accent); opacity: 0.55; }
.rel-kpis--clicaveis .rel-kpi[data-rel-modal]:hover::before { opacity: 1; }
.rel-modal-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.48); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 9999; }
.rel-modal-backdrop.open { display: flex; }
.rel-modal { width: 100%; max-width: 920px; max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--t-shadow-hover); }
.rel-modal__cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: #fff; background: linear-gradient(135deg, #0e2b57, #1f4b8f); }
.rel-modal__titulo { font-weight: 800; font-size: 15px; }
.rel-modal__fechar { border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; width: 30px; height: 30px; border-radius: 999px; font-size: 18px; line-height: 1; cursor: pointer; }
.rel-modal__fechar:hover { background: rgba(255, 255, 255, 0.32); }
.rel-modal__corpo { padding: 14px 16px; overflow: auto; }
.rel-modal__corpo .rel-tabela { margin-bottom: 10px; }
.rel-modal__corpo .rel-sec { margin-top: 10px; }
.rel-modal__rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--t-line); background: #fafcff; }
.rel-modal-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: var(--t-soft); }
.rel-modal-kv span { color: var(--t-muted); font-weight: 600; }
@media print { .rel-modal-backdrop { display: none !important; } }
.rel-filtros .rel-btn-limpar { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.rel-modal__corpo .rel-cod { margin-right: 6px; }
/* Relatórios: impressão do resumo aberto no modal */
.rel-modal__print-cab, .rel-modal__print-rod { display: none; }
@media print {
  body.rel-print-modal-mode * { visibility: hidden !important; }
  body.rel-print-modal-mode .rel-modal-backdrop, body.rel-print-modal-mode .rel-modal-backdrop * { visibility: visible !important; }
  body.rel-print-modal-mode .rel-modal-backdrop { display: block !important; position: absolute; inset: auto; top: 0; left: 0; right: 0; padding: 0; background: none; z-index: auto; }
  body.rel-print-modal-mode .rel-modal { max-width: none; max-height: none; width: 100%; border-radius: 0; box-shadow: none; overflow: visible; display: block; }
  body.rel-print-modal-mode .rel-modal__cabecalho, body.rel-print-modal-mode .rel-modal__rodape { display: none !important; }
  body.rel-print-modal-mode .rel-modal__corpo { overflow: visible; padding: 0; }
  body.rel-print-modal-mode .rel-modal__print-cab { display: block; }
  body.rel-print-modal-mode .rel-print-header { display: flex; gap: 14px; align-items: flex-start; border-bottom: 2px solid #0e2b57; padding-bottom: 8px; margin-bottom: 12px; }
  body.rel-print-modal-mode .rel-print-header__marca img { width: 64px; height: auto; }
  body.rel-print-modal-mode .rel-print-header__titulo { font-size: 16px; font-weight: 800; color: #0e2b57; }
  body.rel-print-modal-mode .rel-print-header__ent { font-size: 13px; margin-top: 2px; }
  body.rel-print-modal-mode .rel-print-header__meta { font-size: 10.5px; color: #475569; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  body.rel-print-modal-mode .rel-modal__print-rod { display: block; }
  body.rel-print-modal-mode .rel-print-footer { display: block; position: fixed; bottom: 0; left: 0; right: 0; font-size: 9.5px; color: #64748b; border-top: 1px solid #cbd5e1; padding-top: 3px; }
  body.rel-print-modal-mode .rel-modal-kv { background: #f1f5f9; break-inside: avoid; }
  body.rel-print-modal-mode .rel-tabela { overflow: visible; border: 0; }
  body.rel-print-modal-mode .rel-tabela table { font-size: 10.5px; }
  body.rel-print-modal-mode .rel-tabela th, body.rel-print-modal-mode .rel-tabela td { padding: 4px 6px; }
  body.rel-print-modal-mode thead { display: table-header-group; }
  body.rel-print-modal-mode tr { break-inside: avoid; }
  body.rel-print-modal-mode * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* Relatórios: pílula de código como atalho para a tela de origem */
.rel-cod[data-rel-ir] { cursor: pointer; transition: box-shadow 0.15s ease, filter 0.15s ease; }
.rel-cod[data-rel-ir]:hover { filter: brightness(1.08); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28); }
.rel-cod[data-rel-ir]:focus-visible { outline: 2px solid #0e2b57; outline-offset: 2px; }
.rel-cod__mao { font-size: 9px; opacity: 0.7; }
.rel-modal-backdrop--ir { z-index: 10000; }
.rel-modal--pequeno { max-width: 520px; }
.rel-ir-pergunta { font-size: 14px; margin: 0 0 6px; }
@media print { .rel-cod__mao { display: none !important; } }
/* Item aberto a partir do relatório: destaque temporário */
.pg-ir-destaque { animation: pgIrDestaque 2.8s ease-out 1; border-radius: 12px; }
@keyframes pgIrDestaque {
  0% { box-shadow: 0 0 0 0 rgba(43, 125, 233, 0.55); background-color: rgba(43, 125, 233, 0.12); }
  60% { box-shadow: 0 0 0 6px rgba(43, 125, 233, 0); background-color: rgba(43, 125, 233, 0.06); }
  100% { box-shadow: 0 0 0 0 rgba(43, 125, 233, 0); background-color: transparent; }
}
.rel-cod[data-rel-ir] { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
/* Relatórios: barra de abas rolável mostra sombra do lado onde há mais abas */
.rel-page .card-header .nav-tabs {
  background-image:
    linear-gradient(to right, #eef2f9, #eef2f9),
    linear-gradient(to left, #eef2f9, #eef2f9),
    linear-gradient(to right, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0)),
    linear-gradient(to left, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0));
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 26px 100%, 26px 100%, 16px 100%, 16px 100%;
  background-attachment: local, local, scroll, scroll;
  scroll-behavior: smooth;
}
