﻿/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 1 !important;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: modalIn 0.18s ease;
}
@@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}
.modal-header-text {
  flex: 1;
}
.modal-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}
.modal-titulo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}
.modal-fechar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f5f5f5;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.15s;
  margin-left: 0.75rem;
}
.modal-fechar:hover {
  background: #e0e0e0;
}

/* ===== BTN CANCELAR ===== */
.btn-cancelar {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.btn-cancelar:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

/* ===== AVISO LGPD ===== */
.lgpd-aviso {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #1565c0;
}
.lgpd-aviso--warn {
  background: #fff8e1;
  border-color: #ffe082;
  color: #f57f17;
}
.lgpd-aviso-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.lgpd-aviso strong {
  display: block;
  margin-bottom: 0.25rem;
}
.lgpd-aviso p {
  margin: 0;
  opacity: 0.9;
}

/* ===== SEÃ‡ÃƒO ===== */
.lgpd-secao {
  margin-top: 2rem;
}
.lgpd-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #f0f0f0;
}
.lgpd-titulo i {
  color: var(--red-accent);
}
.lgpd-desc {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 1.2rem;
}
.lgpd-vazio {
  color: #aaa;
  font-size: 0.9rem;
}

/* ===== CONSENTIMENTOS ===== */
.lgpd-consentimentos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lgpd-consent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lgpd-consent-tipo {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.9rem;
}
.lgpd-consent-data {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 0.15rem;
}
.lgpd-consent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.lgpd-badge--ok {
  background: #e8f5e9;
  color: #2e7d32;
}
.lgpd-badge--rev {
  background: #ffebee;
  color: var(--red-critical);
}

/* ===== ALERTA ===== */
.lgpd-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}
.lgpd-alert--ok {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.lgpd-alert--error {
  background: #ffebee;
  color: var(--red-critical);
  border: 1px solid #ffcdd2;
}

/* ===== DIREITOS GRID ===== */
.lgpd-direitos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.lgpd-direito-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border: 1.5px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s;
}
.lgpd-direito-card:hover {
  border-color: var(--red-accent);
}
.lgpd-direito-card--pendente {
  border-color: #ffe082;
  background: #fffdf0;
}
.lgpd-direito-icon {
  font-size: 1.5rem;
  color: var(--red-accent);
  margin-bottom: 0.2rem;
}
.lgpd-direito-card strong {
  font-size: 0.95rem;
  color: #1a1a1a;
}
.lgpd-direito-card p {
  font-size: 0.82rem;
  color: #777;
  margin: 0;
  flex: 1;
}
.lgpd-btn-solicitar {
  margin-top: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: var(--red-accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}
.lgpd-btn-solicitar:hover {
  background: var(--red-error);
}
.lgpd-btn-solicitar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lgpd-badge-pendente {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #fff8e1;
  color: #f57f17;
  font-size: 0.78rem;
  font-weight: 600;
  align-self: flex-start;
}

/* ===== HISTÃ“RICO SOLICITAÃ‡Ã•ES ===== */
.lgpd-solicitacoes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.lgpd-solicitacao-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  gap: 1rem;
  flex-wrap: wrap;
}
.lgpd-solicitacao-tipo {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.9rem;
}
.lgpd-solicitacao-data {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 0.15rem;
  display: block;
}
.lgpd-solicitacao-resposta {
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.35rem;
  display: block;
}

/* ===== STATUS BADGES LGPD ===== */
.lgpd-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.lgpd-status-pendente {
  background: #fff8e1;
  color: #f57f17;
}
.lgpd-status-emanÃ¡lise,
.lgpd-status-emanalise {
  background: #e3f2fd;
  color: #1565c0;
}
.lgpd-status-concluida {
  background: #e8f5e9;
  color: #2e7d32;
}
.lgpd-status-negada {
  background: #ffebee;
  color: var(--red-critical);
}

/* ===== DPO LISTA ===== */
.dpo-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dpo-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.dpo-row-info {
  flex: 1;
  min-width: 0;
}
.dpo-row-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}
.dpo-nome {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}
.dpo-email {
  font-size: 0.82rem;
  color: #888;
  display: block;
  margin-bottom: 0.4rem;
}
.dpo-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #aaa;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.dpo-motivo,
.dpo-resposta {
  font-size: 0.85rem;
  color: #555;
  margin: 0.3rem 0 0;
}
.dpo-acoes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 200px;
}

.rh-status-btn--blue {
  border-color: #1976d2;
  color: #1565c0;
}
.rh-status-btn--blue:hover {
  background: #e3f2fd;
}
.rh-status-btn--purple {
  border-color: #7b1fa2;
  color: #6a1b9a;
}
.rh-status-btn--purple:hover {
  background: #f3e5f5;
}
.rh-status-btn--active {
  background: var(--red-accent) !important;
  color: #fff !important;
  border-color: var(--red-accent) !important;
}

/* ===== PAINEL DPO â€” LAYOUT ===== */
.dpo-section {
    padding: 2.5rem 1.5rem 4rem;
    min-height: 51dvh;
}

.dpo-page-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* â”€â”€ KPIs â”€â”€ */
.dpo-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .dpo-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .dpo-kpis {
    grid-template-columns: 1fr;
  }
}

.dpo-kpi {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  border-left: 5px solid transparent;
}
.dpo-kpi--yellow {
  border-color: #f9a825;
}
.dpo-kpi--blue {
  border-color: #1976d2;
}
.dpo-kpi--green {
  border-color: #388e3c;
}
.dpo-kpi--gray {
  border-color: #9e9e9e;
}

.dpo-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.dpo-kpi--yellow .dpo-kpi-icon {
  background: #fff8e1;
  color: #f9a825;
}
.dpo-kpi--blue .dpo-kpi-icon {
  background: #e3f2fd;
  color: #1976d2;
}
.dpo-kpi--green .dpo-kpi-icon {
  background: #e8f5e9;
  color: #388e3c;
}
.dpo-kpi--gray .dpo-kpi-icon {
  background: #f5f5f5;
  color: #757575;
}

.dpo-kpi-body {
  display: flex;
  flex-direction: column;
}
.dpo-kpi-num {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}
.dpo-kpi-label {
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* â”€â”€ Filtros â”€â”€ */
.dpo-filtro-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}
.dpo-filtro-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #aaa;
  white-space: nowrap;
}
.dpo-filtro-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dpo-filtro-btn {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #e0e0e0;
  background: transparent;
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.dpo-filtro-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}
.dpo-filtro-btn--ativo {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.dpo-filtro-btn--ativo:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

/* â”€â”€ Empty state â”€â”€ */
.dpo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: #ccc;
}
.dpo-empty i {
  font-size: 3rem;
}
.dpo-empty p {
  font-size: 0.95rem;
  color: #bbb;
  margin: 0;
}

/* â”€â”€ AÃ§Ãµes inline â”€â”€ */
.dpo-acoes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 75%;
}
.dpo-acoes-btns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

/* ── Preview da resposta inline ── */
.dpo-resposta-preview {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  flex-wrap: wrap;
}
.dpo-resposta-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.dpo-resposta-trecho {
  font-size: 0.82rem;
  color: #555;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dpo-resposta-ver {
  background: none;
  border: 1.5px solid #cbd5e0;
  border-radius: 6px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dpo-resposta-ver:hover {
  background: #f0f0f0;
  border-color: #aaa;
  color: #222;
}

/* ── Paginação ── */
.dpo-paginacao {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.dpo-pag-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dpo-pag-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #bbb;
}
.dpo-pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.dpo-pag-btn--ativo {
  background: #cb0000;
  border-color: #cb0000;
  color: #fff;
}
.dpo-pag-btn--ativo:hover:not(:disabled) {
  background: #a30000;
  border-color: #a30000;
}
.dpo-pag-info {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: #aaa;
  font-weight: 500;
}

/* ── Modal de resposta completa ── */
.dpo-resp-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.dpo-resp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.dpo-resp-modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.5rem;
}
.dpo-resp-pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}


