/* Estilos da página Centro de Alertas (extraídos de centro-alertas.html). */
:root {
      --fundo: #f0f4f8;
      --muted: #64748b;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
      background: var(--fundo);
      color: var(--texto);
    }
    .shell {
      display: grid;
      grid-template-columns: 220px 1fr;
      min-height: 100vh;
      min-height: 100dvh;
      min-width: 0;
    }
    @media (max-width: 1023px) {
      .shell { grid-template-columns: 1fr; }
      .side-nav { display: none; }
    }
    .side-nav {
      background: var(--pesa-azul-escuro);
      color: #e2e8f0;
      padding: 1.25rem 0.9rem;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }
    .side-brand {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.35rem 0.5rem 1.1rem;
      text-decoration: none;
      color: #fff;
      border-bottom: 1px solid rgba(255,255,255,0.12);
      margin-bottom: 0.75rem;
    }
    .side-brand img {
      width: 42px; height: 42px; border-radius: 999px; object-fit: cover;
      background: #fff;
    }
    .side-brand strong { display: block; font-size: 0.92rem; }
    .side-brand span { font-size: 0.7rem; color: #94a3b8; }
    .side-spacer { flex: 1; }
    .side-meta {
      font-size: 0.72rem;
      color: #94a3b8;
      padding: 0.75rem 0.5rem 0.25rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      margin-top: 0.5rem;
    }
    .main { display: flex; flex-direction: column; min-width: 0; }
    .topbar {
      background: #fff;
      border-bottom: 1px solid var(--pesa-borda);
      padding: 0.85rem 1.5rem;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }
    .greet h1 {
      margin: 0;
      font-size: 1.45rem;
      color: #0f172a;
    }
    .greet .sub {
      margin-top: 0.25rem;
      font-size: 0.88rem;
      color: var(--muted);
    }
    .top-actions {
      display: flex;
      gap: 0.45rem;
      flex-wrap: wrap;
      align-items: center;
    }
    .btn {
      border-radius: 999px;
      padding: 0.45rem 0.95rem;
      font-size: 0.8rem;
      font-weight: 700;
      border: 1px solid var(--pesa-borda);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      text-decoration: none;
      background: #ffffff;
      color: var(--texto);
    }
    .btn:hover { border-color: var(--pesa-azul-claro); }
    .btn-primary {
      background: var(--pesa-accent);
      border-color: var(--pesa-accent);
      color: #ffffff;
    }
    .btn-primary:hover { filter: brightness(1.05); }
    .btn-alert {
      background: var(--critica);
      border-color: var(--critica);
      color: #ffffff;
    }
    .btn-heat {
      background: #f97316;
      border-color: #ea580c;
      color: #ffffff;
    }
    .btn-outline {
      background: #ffffff;
      border-color: var(--pesa-borda);
      color: var(--texto);
    }
    .content {
      padding: 1.25rem 1.5rem 2rem;
      flex: 1;
      width: 100%;
    }

    .layout {
      display: grid;
      grid-template-columns: minmax(0, 3fr) 260px;
      gap: 1rem;
      width: 100%;
      max-width: 1280px;
    }
    @media (max-width: 980px) {
      .layout {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .alertas-wrapper {
      background: #ffffff;
      border-radius: 14px;
      border: 1px solid var(--pesa-borda);
      padding: 1rem 1.1rem 1.15rem;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }
    .alertas-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.75rem;
    }
    .alertas-header-left {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      color: var(--texto);
    }
    .alert-icon { display: none; }
    .alertas-header-title {
      font-weight: 700;
      font-size: 1rem;
      color: #0f172a;
    }
    .alertas-header-sub {
      font-size: 0.84rem;
      color: var(--muted);
    }

    .resumo-faixas {
      display: grid;
      grid-template-columns: minmax(140px, 0.9fr) minmax(0, 3.1fr);
      gap: 0.75rem;
      font-size: 0.8rem;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: none;
    }
    @media (max-width: 820px) {
      .resumo-faixas { grid-template-columns: 1fr; }
    }
    .alertas-ativos-topo {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 0.2rem;
      padding: 0.85rem 1rem;
      border-radius: 14px;
      border: 1px solid var(--pesa-borda);
      background: #fff;
    }
    .alertas-ativos-label {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--muted);
      font-weight: 700;
    }
    .alertas-ativos-count {
      font-size: 1.7rem;
      font-weight: 800;
      color: #0f172a;
      line-height: 1;
    }
    .alertas-ativos-sub {
      font-size: 0.75rem;
      color: var(--muted);
    }
    .faixas-pills {
      margin-top: 0;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.55rem;
    }
    @media (max-width: 820px) {
      .faixas-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    .faixa-pill {
      border-radius: 14px;
      padding: 0.75rem 0.85rem;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.4rem;
      font-size: 0.78rem;
      background: #ffffff;
      border: 1px solid #e8eef4;
      box-shadow: none;
      min-height: 88px;
    }
    .faixa-pill-label {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      font-weight: 700;
      color: #334155;
    }
    .faixa-pill-label span.icon {
      width: 34px;
      height: 34px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      line-height: 1;
      flex-shrink: 0;
    }
    .faixa-pill-valor {
      font-weight: 800;
      font-size: 1.35rem;
      color: #0f172a;
    }
    .faixa-pill-critica .faixa-pill-label span.icon {
      background: rgba(255, 255, 255, 0.55);
      font-size: 1.35rem;
    }
    .faixa-pill-critica {
      border-left: 3px solid var(--critica);
      background: linear-gradient(135deg, #fee2e2, #fecaca);
      color: inherit;
    }
    .faixa-pill-critica .faixa-pill-label,
    .faixa-pill-critica .faixa-pill-valor { color: #991b1b; }
    .faixa-pill-alta .faixa-pill-label span.icon {
      background: rgba(255, 255, 255, 0.55);
      font-size: 1.35rem;
    }
    .faixa-pill-alta {
      border-left: 3px solid var(--alta);
      background: linear-gradient(135deg, #ffedd5, #fed7aa);
      color: inherit;
    }
    .faixa-pill-alta .faixa-pill-label,
    .faixa-pill-alta .faixa-pill-valor { color: #9a3412; }
    .faixa-pill-media .faixa-pill-label span.icon {
      background: rgba(255, 255, 255, 0.55);
      font-size: 1.35rem;
    }
    .faixa-pill-media {
      border-left: 3px solid var(--media);
      background: linear-gradient(135deg, #fef9c3, #fde68a);
      color: inherit;
    }
    .faixa-pill-media .faixa-pill-label,
    .faixa-pill-media .faixa-pill-valor { color: #854d0e; }
    .faixa-pill-baixa .faixa-pill-label span.icon {
      background: rgba(255, 255, 255, 0.55);
      font-size: 1.35rem;
    }
    .faixa-pill-baixa {
      border-left: 3px solid var(--baixa);
      background: linear-gradient(135deg, #dcfce7, #bbf7d0);
      color: inherit;
    }
    .faixa-pill-baixa .faixa-pill-label,
    .faixa-pill-baixa .faixa-pill-valor { color: #166534; }

    .barra-filtros {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      padding: 0.75rem 0.85rem;
      border-radius: 14px;
      background: #f8fafc;
      border: 1px solid #e8eef4;
      font-size: 0.8rem;
    }
    .filtros-titulo-wrap {
      display: none;
    }
    .filtros-niveis-contador {
      display: none;
      padding: 0.12rem 0.45rem;
      border-radius: 999px;
      background: rgba(0, 66, 122, 0.08);
      border: 1px solid rgba(31, 111, 178, 0.35);
      color: #0f3b68;
      font-size: 0.72rem;
      font-weight: 600;
      white-space: nowrap;
    }
    .filtros-row-principal {
      display: grid;
      grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(120px, 1fr)) auto auto;
      gap: 0.45rem;
      align-items: center;
    }
    @media (max-width: 1100px) {
      .filtros-row-principal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    @media (max-width: 640px) {
      .filtros-row-principal { grid-template-columns: 1fr; }
    }
    .filtros-row-principal select,
    .filtros-avancados select {
      border-radius: 999px;
      border: 1px solid var(--pesa-borda);
      background: #ffffff;
      font-size: 0.78rem;
      padding: 0.4rem 0.7rem;
      color: var(--texto);
      width: 100%;
      min-height: 2.15rem;
    }
    .campo-pesquisa {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.3rem 0.7rem;
      border-radius: 999px;
      border: 1px solid var(--pesa-borda);
      background: #fff;
      min-height: 2.15rem;
    }
    .campo-pesquisa input {
      border: none;
      outline: none;
      font-size: 0.78rem;
      background: transparent;
      min-width: 0;
      width: 100%;
    }
    .btn-mais-filtros {
      white-space: nowrap;
      min-height: 2.15rem;
    }
    .btn-mais-filtros[aria-expanded="true"] {
      background: rgba(13, 148, 136, 0.1);
      border-color: var(--pesa-accent);
      color: #0f766e;
    }
    .filtros-badge-ativos {
      display: none;
      margin-left: 0.25rem;
      min-width: 1.2rem;
      height: 1.2rem;
      padding: 0 0.35rem;
      border-radius: 999px;
      background: var(--pesa-accent);
      color: #fff;
      font-size: 0.68rem;
      font-weight: 800;
      align-items: center;
      justify-content: center;
    }
    .filtros-badge-ativos.visivel { display: inline-flex; }
    .filtros-avancados {
      display: none;
      border-top: 1px solid #e2e8f0;
      padding-top: 0.7rem;
      gap: 0.75rem;
      flex-direction: column;
    }
    .filtros-avancados.aberto { display: flex; }
    .filtros-grupo {
      background: #fff;
      border: 1px solid #e8eef4;
      border-radius: 12px;
      padding: 0.65rem 0.75rem;
    }
    .filtros-grupo h4 {
      margin: 0 0 0.5rem;
      font-size: 0.75rem;
      font-weight: 800;
      color: #0f172a;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }
    .filtros-grupo-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.45rem;
    }
    @media (max-width: 980px) {
      .filtros-grupo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 560px) {
      .filtros-grupo-grid { grid-template-columns: 1fr; }
    }
    .filtros-hint {
      margin: 0;
      font-size: 0.72rem;
      color: var(--muted);
    }
    .filtro-chip-group {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
    }
    .filtro-chip { display: none; }
    .faixa-pill {
      cursor: pointer;
      transition: transform 0.12s ease, box-shadow 0.12s ease;
    }
    .faixa-pill:hover { transform: translateY(-1px); }
    .faixa-pill.ativo-filtro {
      box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12), 0 0 0 4px rgba(13, 148, 136, 0.35);
    }
    .alertas-ativos-topo {
      cursor: pointer;
    }
    .alertas-ativos-topo.ativo-filtro {
      box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08), 0 0 0 4px rgba(0, 66, 122, 0.25);
    }
    .campo-filtros-extra { display: none; }
    .barra-filtros .linha-limpar { display: none; }

    .lista-alertas {
      margin-top: 0.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      max-height: 60vh;
      overflow-y: auto;
    }
    .alert-card {
      border-radius: 12px;
      padding: 0.75rem 0.85rem;
      border: 1px solid #e8eef4;
      background: #ffffff;
      font-size: 0.82rem;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .alert-card:hover {
      border-color: #cbd5e1;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }
    .alert-card-critica {
      background: linear-gradient(90deg, #ffebee, #ffcdd2);
      border-color: #ffcdd2;
      border-left: 3px solid var(--critica);
    }
    .alert-card-alta {
      background: linear-gradient(90deg, #fff3e0, #ffe0b2);
      border-color: #ffe0b2;
      border-left: 3px solid var(--alta);
    }
    .alert-card-media {
      background: linear-gradient(90deg, #fffde7, #fff9c4);
      border-color: #fff9c4;
      border-left: 3px solid var(--media);
    }
    .alert-card-baixa {
      background: linear-gradient(90deg, #f0fdf4, #dcfce7);
      border-color: #86efac;
      border-left: 3px solid var(--baixa);
    }
    .alert-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
    }
    .alert-card-nome {
      font-weight: 600;
    }
    .alert-card-badge {
      border-radius: 999px;
      padding: 0.15rem 0.6rem;
      font-size: 0.7rem;
      background: rgba(255, 255, 255, 0.75);
      border: 1px solid rgba(0, 0, 0, 0.04);
    }
    .alert-card-body {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      font-size: 0.78rem;
      color: #7c716a;
    }
    .alert-card-body span {
      display: block;
    }
    .alert-card-footer {
      margin-top: 0.1rem;
      font-size: 0.75rem;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
    }

    .alert-card-status {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }
    .badge-status {
      display: inline-flex;
      align-items: center;
      padding: 0.1rem 0.45rem;
      border-radius: 999px;
      font-size: 0.7rem;
      font-weight: 600;
    }
    .badge-vermelho { background:#fee2e2; color:#b91c1c; }
    .alert-card-actions {
      display: inline-flex;
      gap: 0.3rem;
    }
    .alert-card-actions .btn-alerta {
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.6);
      background: #ffffff;
      padding: 0.1rem 0.55rem;
      font-size: 0.7rem;
      cursor: pointer;
    }
    .alert-card-plan {
      font-size: 0.72rem;
      color: #1d4ed8;
      cursor: pointer;
      text-decoration: underline;
    }

    /* Painel lateral direito */
    .painel-lateral {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      font-size: 0.8rem;
    }
    .painel-bloco {
      background: #ffffff;
      border-radius: 14px;
      border: 1px solid var(--pesa-borda);
      padding: 0.9rem 1rem;
      box-shadow: none;
    }
    .painel-bloco h3 {
      margin: 0 0 0.35rem;
      font-size: 0.95rem;
      color: #0f172a;
    }
    .painel-bloco-sub {
      font-size: 0.78rem;
      color: var(--muted);
      margin-bottom: 0.35rem;
    }
    .resumo-lista {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .resumo-item {
      display: flex;
      justify-content: space-between;
      padding: 0.35rem 0;
      border-top: 1px solid #eef2f7;
      align-items: baseline;
    }
    .resumo-item:first-child {
      border-top: none;
    }
    .resumo-label {
      color: var(--muted);
    }
    .resumo-valor {
      font-weight: 700;
      color: #0f172a;
    }
    .resumo-valor-critico {
      color: var(--critica);
    }

    .acoes-grid {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      margin-top: 0.25rem;
    }
    .acao-card {
      border-radius: 10px;
      padding: 0.55rem 0.65rem;
      font-size: 0.78rem;
      border: 1px solid #e8eef4;
      background: #f8fafc;
      color: #475569;
    }
    .acao-card strong {
      display: block;
      margin-bottom: 0.15rem;
      color: #0f172a;
    }
    .acao-cor-critica {
      border-left: 3px solid var(--critica);
      background: #fff;
    }
    .acao-cor-engajamento {
      border-left: 3px solid var(--alta);
      background: #fff;
    }
    .acao-cor-financeiro {
      border-left: 3px solid var(--pesa-azul-claro);
      background: #fff;
    }
    .acao-cor-outros {
      border-left: 3px solid var(--pesa-accent);
      background: #fff;
    }

    .legenda-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin-top: 0.35rem;
    }
    .legenda-pill {
      border-radius: 999px;
      padding: 0.2rem 0.65rem;
      font-size: 0.72rem;
      border: 1px solid #e8eef4;
      background: #f8fafc;
      color: #475569;
    }
    .legenda-pill span {
      font-weight: 600;
      margin-right: 0.25rem;
    }

    .ca-centro-extras {
      margin-top: 0.35rem;
      padding-top: 0.85rem;
      border-top: 1px dashed rgba(0, 0, 0, 0.1);
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 0.75rem;
      align-items: start;
    }

    .ca-fila-rematricula {
      margin: 0.85rem 0 0.5rem;
      padding: 0.85rem 1rem;
    }
    .ca-fila-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    .ca-fila-header h3 { margin: 0 0 0.2rem; }
    .ca-fila-filtros {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 0.65rem 0 0.5rem;
    }
    .ca-fila-filtros input,
    .ca-fila-filtros select {
      font-size: 0.82rem;
      padding: 0.35rem 0.5rem;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      min-width: 140px;
    }
    .ca-fila-filtros input { flex: 1; min-width: 180px; }
    .ca-fila-msg {
      font-size: 0.8rem;
      color: #64748b;
      padding: 0.45rem 0;
    }
    .ca-fila-lista {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      max-height: 420px;
      overflow: auto;
    }
    .ca-fila-item {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) auto minmax(120px, 0.7fr) minmax(140px, 0.8fr);
      gap: 0.5rem;
      align-items: center;
      padding: 0.55rem 0.65rem;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      background: #fff;
      font-size: 0.8rem;
    }
    .ca-fila-item-nome { font-weight: 600; color: #0f172a; }
    .ca-fila-item-meta { color: #64748b; font-size: 0.72rem; margin-top: 0.1rem; }
    .ca-fila-score {
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: #9a3412;
    }
    .ca-fila-score small { display: block; font-weight: 500; color: #94a3b8; font-size: 0.65rem; }
    .ca-fila-item select {
      font-size: 0.75rem;
      padding: 0.25rem;
      border-radius: 4px;
      border: 1px solid #cbd5e1;
      width: 100%;
    }
    .ca-fila-sla { color: #b91c1c; font-size: 0.68rem; font-weight: 600; }
    @media (max-width: 720px) {
      .ca-fila-item {
        grid-template-columns: 1fr 1fr;
      }
    }
    .ca-centro-extras > .painel-bloco {
      min-width: 0;
    }
    @media (max-width: 720px) {
      .ca-centro-extras {
        grid-template-columns: 1fr;
      }
    }

    .alert-card-footer-baixa-risco {
      justify-content: flex-start;
      flex-wrap: wrap;
      gap: 0.35rem;
    }

    /* Modal de detalhes do estudante (Centro de Alertas) */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.45);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 40;
      padding: 1rem;
    }
    .modal-overlay.aberto {
      display: flex;
    }
    .modal-sheet {
      background: #ffffff;
      border-radius: 20px;
      max-width: 430px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
      padding: 0;
    }
    .modal-header {
      padding: 0.75rem 1rem;
      background: var(--pesa-azul-escuro);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      border-radius: 20px 20px 0 0;
    }
    .modal-header h2 {
      margin: 0;
      font-size: 1rem;
    }
    .modal-header span {
      display: block;
      font-size: 0.78rem;
      color: #cbd2e1;
    }
    .modal-close {
      border: none;
      background: none;
      color: #e5e9f0;
      font-size: 1rem;
      cursor: pointer;
    }
    .modal-body {
      padding: 0.8rem 0.9rem 1rem;
      background: #f3f6fa;
      border-radius: 0 0 20px 20px;
    }
    .modal-section {
      border-radius: 14px;
      background: #ffffff;
      padding: 0.7rem 0.75rem;
      margin-bottom: 0.6rem;
      border: 1px solid var(--pesa-borda);
      font-size: 0.82rem;
    }
    .modal-section-title {
      font-weight: 600;
      margin-bottom: 0.25rem;
      color: var(--pesa-azul-escuro);
      font-size: 0.86rem;
    }
    .modal-section small {
      color: #7b8794;
      font-size: 0.76rem;
    }
    .reco-panel {
      background: linear-gradient(135deg, #e0f2fe, #eff6ff);
      border-radius: 14px;
      padding: 0.7rem 0.8rem;
      margin-bottom: 0.6rem;
      border: 1px solid #bfdbfe;
      font-size: 0.8rem;
    }
    .reco-header {
      display: flex;
      gap: 0.5rem;
      align-items: flex-start;
      margin-bottom: 0.4rem;
    }
    .reco-icon { font-size: 1.25rem; }
    .reco-title { font-weight: 600; color: #0f172a; }
    .reco-sub { font-size: 0.75rem; color: #64748b; }
    .reco-urgencia {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: 0.35rem;
    }
    .badge-urgencia {
      border-radius: 999px;
      padding: 0.1rem 0.6rem;
      font-size: 0.72rem;
      font-weight: 600;
    }
    .badge-urgencia-1 { background:#e5e7eb;color:#111827; }
    .badge-urgencia-2 { background:#fef9c3;color:#92400e; }
    .badge-urgencia-3 { background:#fed7aa;color:#9a3412; }
    .badge-urgencia-4 { background:#fee2e2;color:#b91c1c; }
    .reco-proxima-acao { margin-bottom: 0.3rem; color:#0f172a; }
    .reco-list { list-style:none; margin:0; padding:0; }
    .reco-list li {
      display:flex;
      justify-content:space-between;
      padding:0.15rem 0;
      font-size:0.78rem;
    }
    .badge-conf {
      border-radius:999px;
      padding:0.05rem 0.45rem;
      font-size:0.7rem;
      background:#eef2ff;
      color:#4338ca;
    }
    .reco-footer {
      display:flex;
      justify-content:flex-end;
      margin-top:0.4rem;
    }
    .modal-grid-2 {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.4rem;
      margin-top: 0.35rem;
    }
    .modal-pill {
      border-radius: 12px;
      background: #f8fafc;
      border: 1px solid #dde2eb;
      padding: 0.4rem 0.45rem;
      font-size: 0.78rem;
    }
    .modal-pill span {
      display: block;
      color: #7b8794;
      font-size: 0.75rem;
    }
    .modal-pill strong {
      display: block;
      margin-top: 0.1rem;
      font-size: 0.98rem;
      color: #102a43;
    }
    .modal-chart {
      background: #f8fafc;
      border-radius: 12px;
      border: 1px solid #dde2eb;
      padding: 0.45rem;
      height: 130px;
      margin-top: 0.3rem;
    }
    .modal-chart svg {
      width: 100%;
      height: 100%;
      display: block;
    }
    .modal-grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.35rem;
      margin-top: 0.35rem;
    }
    .modal-tag {
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid #dde2eb;
      padding: 0.35rem 0.4rem;
      font-size: 0.76rem;
    }
    .modal-progress {
      height: 5px;
      border-radius: 999px;
      background: #dde2eb;
      overflow: hidden;
      margin-top: 0.25rem;
    }
    .modal-progress span {
      display: block;
      height: 100%;
      background: #2e7d32;
    }
    .modal-badge-ok {
      border-radius: 999px;
      background: #e3f9e5;
      border: 1px solid #c1eac5;
      padding: 0.18rem 0.6rem;
      font-size: 0.75rem;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      color: #237b4b;
      margin-top: 0.3rem;
    }
    .modal-list {
      list-style: none;
      padding: 0;
      margin: 0.25rem 0 0;
      font-size: 0.78rem;
    }
    .modal-list li {
      padding: 0.25rem 0;
      border-top: 1px dashed #dde2eb;
    }
    .modal-list li:first-child {
      border-top: none;
    }
    .pesa-footer {
      margin-top: auto;
      background: var(--pesa-azul-escuro, #02213d);
      color: #e2e8f0;
      padding: 1rem 1.5rem;
      font-size: 0.8rem;
    }
    .pesa-footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      align-items: flex-start;
      justify-content: space-between;
    }
    .pesa-footer-brand strong,
    .pesa-footer-contato strong,
    .pesa-footer-empresa strong { display: block; margin-bottom: 0.25rem; color: #fff; font-size: 0.85rem; }
    .pesa-footer-brand span,
    .pesa-footer-contato span,
    .pesa-footer-empresa span { display: block; color: #94a3b8; }
    .pesa-footer-contato a { color: #7dd3fc; text-decoration: none; }
    .pesa-footer-contato a:hover { text-decoration: underline; }
    .pesa-footer-copy { width: 100%; text-align: center; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.1); color: #94a3b8; font-size: 0.75rem; }

    .notes-panel { margin-top: 0.4rem; }
    .notes-panel .notes-toolbar { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.6rem; }
    .notes-panel .notes-search { flex: 1; min-width: 140px; padding: 0.3rem 0.55rem; border-radius: 999px; border: 1px solid #d1dce5; font-size: 0.78rem; background:#ffffff; }
    .notes-panel .notes-search::placeholder { color:#9ca3af; }
    .notes-panel .notes-filters { display:flex; gap:0.35rem; align-items:center; }
    .notes-panel .notes-filters .notes-select {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.25rem 0.65rem;
      border-radius: 999px;
      border: 1px solid #d1dce5;
      font-size: 0.75rem;
      background:#ffffff;
      cursor:pointer;
    }
    .notes-panel .notes-filters .notes-select span.label {
      color:#6b7280;
    }
    .notes-panel .notes-filters .notes-select span.value {
      font-weight:500;
      color:#065f46;
    }
    .notes-panel .notes-filters .notes-select select {
      position:absolute;
      inset:0;
      opacity:0;
      cursor:pointer;
    }
    .notes-panel .notes-form { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.6rem; padding: 0.5rem 0; border-bottom: 1px dashed #e1e7f0; }
    .notes-panel .notes-form textarea { resize: vertical; min-height: 56px; padding: 0.3rem 0.4rem; border-radius: 8px; border: 1px solid #d1dce5; font-size: 0.78rem; }
    .notes-panel .notes-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
    .notes-panel .notes-list { max-height: 220px; overflow-y: auto; }
    .notes-panel .note-card { background: #f8fafc; border-radius: 10px; padding: 0.45rem 0.6rem 0.5rem; margin-bottom: 0.4rem; border-left: 4px solid #94a3b8; font-size: 0.78rem; }
    .notes-panel .note-card.note-geral { border-left-color: #64748b; }
    .notes-panel .note-card.note-academico { border-left-color: #1e40af; }
    .notes-panel .note-card.note-financeiro { border-left-color: #b45309; }
    .notes-panel .note-card.note-comportamental { border-left-color: #7c3aed; }
    .notes-panel .note-card.note-saude { border-left-color: #dc2626; }
    .notes-panel .note-card.prioridade-baixa { border-left-color: #22c55e; }
    .notes-panel .note-card.prioridade-media { border-left-color: #eab308; }
    .notes-panel .note-card.prioridade-alta { border-left-color: #f97316; }
    .notes-panel .note-card.prioridade-critica { border-left-color: #dc2626; }
    .notes-panel .note-card .note-meta { font-size: 0.7rem; color: #647d98; margin-top: 0.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; align-items:center; }
    .notes-panel .note-pills { display:flex; flex-wrap:wrap; gap:0.25rem; }
    .notes-panel .note-pill {
      display:inline-flex;
      align-items:center;
      gap:0.25rem;
      padding:0.05rem 0.45rem;
      border-radius:999px;
      font-size:0.68rem;
      background:#e5e7eb;
      color:#374151;
      font-weight:500;
    }
    .notes-panel .note-pill.prioridade-media { background:#fef3c7;color:#92400e; }
    .notes-panel .note-pill.prioridade-alta { background:#fee2e2;color:#b91c1c; }
    .notes-panel .note-pill.prioridade-baixa { background:#dcfce7;color:#166534; }
    .notes-panel .note-pill.prioridade-critica { background:#fee2e2;color:#991b1b;border:1px solid #fecaca; }
    .notes-panel .note-card .note-actions { margin-top: 0.2rem; }
    .notes-panel .note-card .note-actions button { padding: 0.15rem 0.4rem; margin-right: 0.25rem; border-radius: 6px; border: 1px solid #d1dce5; background: #fff; font-size: 0.7rem; cursor: pointer; }
    .notes-panel .notes-empty { text-align: center; padding: 1rem; color: #94a3b8; font-size: 0.8rem; }
    .notes-panel .notes-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.72rem; color: #647d98; }
    .notes-panel .notes-export-import { margin-top: 0.4rem; display: flex; gap: 0.35rem; }
    .notes-panel .notes-export-import button { padding: 0.2rem 0.5rem; border-radius: 6px; border: 1px solid #d1dce5; background: #fff; font-size: 0.72rem; cursor: pointer; }

    /* Histórico de intervenções - estilo cartão vazio */
    .int-history-card {
      background:#f8fafc;
      border-radius:12px;
      padding:0.75rem 0.85rem;
      border:1px solid #e1e7f0;
      font-size:0.8rem;
    }
    .int-history-header {
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:0.5rem;
      margin-bottom:0.4rem;
    }
    .int-history-header .title {
      font-weight:600;
      color:#102a43;
    }
    .int-history-header .subtitle {
      font-size:0.74rem;
      color:#64748b;
      margin-top:0.1rem;
    }
    .int-history-header .btn-int-nova {
      padding:0.25rem 0.6rem;
      border-radius:999px;
      border:none;
      background:#00427a;
      color:#ffffff;
      font-size:0.76rem;
      cursor:pointer;
    }
    .int-history-empty-body {
      text-align:center;
      padding:0.5rem 0.25rem 0.25rem;
      color:#64748b;
      font-size:0.78rem;
    }
    .int-history-empty-body p {
      margin:0 0 0.5rem;
    }
    .int-history-empty-body .btn-int-primeira {
      padding:0.35rem 0.75rem;
      border-radius:999px;
      border:none;
      background:#1d4ed8;
      color:#ffffff;
      font-size:0.78rem;
      cursor:pointer;
    }
  
