/* ======================================================
   CONTAINER
====================================================== */
.she360-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

/* ======================================================
   HEADER
====================================================== */
.she360-header {
  margin-bottom: 28px;
}

.she360-header h1 {
  font-size: 2.2rem;
  margin: 0;
}

.she360-header p {
  margin-top: 6px;
  color: #6b7280;
  font-weight: 500;
}


/* ======================================================
   ALERTA
====================================================== */
.she360-alert {
  background: #fff7ed;
  color: #b45309;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 22px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ======================================================
   IMPORTAÇÃO
====================================================== */
.she360-import {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.she360-import-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.she360-import .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.she360-import label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
}

.she360-import input[type="url"] {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.she360-import input[type="url"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.she360-import small {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ======================================================
   BOTÃO IMPORTAR (ANIMADO)
====================================================== */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
}

.button svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.button .border {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
}

.button .loading {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.6s ease;
}

.button:hover .loading {
  stroke-dashoffset: 0;
}

.txt-upload {
  position: relative;
  z-index: 2;
}

/* ======================================================
   FILTROS
====================================================== */
.she360-filtros,
.she360-filtros-avancados {
  margin-bottom: 22px;
}

.she360-filtros form,
.filtros-linha {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.she360-filtros select,
.filtros-linha input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.she360-filtros button,
.filtros-linha button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn-clear {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed #e5e7eb;
  color: #2563eb;
  font-weight: 700;
}

/* ======================================================
   DASHBOARD — LOOP ANIMADO (CORPORATIVO)
====================================================== */

.she360-dashboard {
  margin-top: 40px;
}

/* CARD */
.dashboard-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 100%;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05);

  /* 🔁 loop suave */
  animation: dashboardBreath 6s ease-in-out infinite;
}

/* camada de brilho sutil */
.dashboard-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  box-shadow:
    0 0 0 rgba(37, 99, 235, 0.0);

  animation: dashboardGlow 6s ease-in-out infinite;
}

/* HEADER */
.dashboard-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.dashboard-subtitle {
  font-size: 13px;
  color: #64748b;
}

/* CONTAINER DO GRÁFICO */
.grafico-container {
  position: relative;
  width: 100%;
  height: 300px;
}

/* ======================================================
   ANIMAÇÕES
====================================================== */

@keyframes dashboardBreath {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes dashboardGlow {
  0% {
    box-shadow:
      0 0 0 rgba(37, 99, 235, 0.0);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(37, 99, 235, 0.08);
  }
  100% {
    box-shadow:
      0 0 0 rgba(37, 99, 235, 0.0);
  }
}

/* ======================================================
   ACESSIBILIDADE — RESPEITA USUÁRIO
====================================================== */

@media (prefers-reduced-motion: reduce) {
  .dashboard-card,
  .dashboard-card::after {
    animation: none;
  }
}

/* ======================================================
   RESPONSIVO
====================================================== */

@media (max-width: 768px) {
  .grafico-container {
    height: 260px;
  }

  .dashboard-card {
    padding: 16px;
  }

  .dashboard-header h3 {
    font-size: 16px;
  }
}



/* ======================================================
   TABELA
====================================================== */
.she360-tabela {
  margin-top: 20px;
}

.she360-empty {
  text-align: center;
  font-size: 1rem;
  color: #6b7280;
  padding: 40px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

thead th {
  background: #f1f5f9;
  padding: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

tbody tr:hover {
  background: #f8fafc;
}

/* ======================================================
   PAGINAÇÃO
====================================================== */
.she360-paginacao-topo,
.she360-paginacao {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.she360-paginacao button {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.she360-paginacao button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pageInfo {
  font-weight: 700;
  color: #374151;
}

/* ======================================================
   RESPONSIVO
====================================================== */
@media (max-width: 768px) {
  .she360-container {
    padding: 20px 14px 60px;
  }

  .grafico-container {
    height: 260px;
  }

  .she360-filtros form,
  .filtros-linha {
    flex-direction: column;
    align-items: stretch;
  }
}
/* ======================================================
   ZONA DE PERIGO — DISCRETA
====================================================== */
/* ======================================================
   ZONA DE PERIGO — CENTRALIZADA E DISCRETA
====================================================== */

.she360-danger-zone {
  margin: 28px 0 18px;
  padding: 12px 16px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #fff5f5;
  border: 1px dashed #f3b4b4;
  border-radius: 14px;
}

/* FORM */
.she360-danger-zone form {
  margin: 0;
}

/* BOTÃO */
.she360-danger-zone .button.danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 18px;

  background: transparent;
  color: #b42318;

  border: 1px solid #f1c0c0;
  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s ease;
}

/* ÍCONE */
.she360-danger-zone .button.danger::before {
  content: "🗑️";
  font-size: 14px;
  opacity: 0.85;
}

/* HOVER */
.she360-danger-zone .button.danger:hover {
  background: #fee2e2;
  color: #991b1b;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

/* ACTIVE */
.she360-danger-zone .button.danger:active {
  transform: scale(0.96);
}

/* FOCO (A11Y) */
.she360-danger-zone .button.danger:focus-visible {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  outline-offset: 3px;
}

/* MOBILE */
@media (max-width: 600px) {
  .she360-danger-zone {
    padding: 14px;
  }

  .she360-danger-zone .button.danger {
    width: 100%;
    justify-content: center;
  }
}

/* ======================================================
   BOTÃO IMPORTAR — SHE360 (EFEITO COMPLETO)
====================================================== */

.btn-import {
  position: relative;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: #1f2937;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* CAMADA VISUAL */
.btn-import::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #f9fafb;
  z-index: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

/* TEXTO */
.btn-import span {
  position: relative;
  z-index: 2;
}

/* CONTAINER DAS LINHAS */
.btn-import i {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* LINHA SUPERIOR */
.btn-import i::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 75%;
  width: 8px;
  height: 4px;
  border: 1px solid #2563eb;
  background-color: #f9fafb;
  transform: translateX(-50%);
  transition: all 0.35s ease;
}

/* LINHA INFERIOR */
.btn-import i::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 25%;
  width: 8px;
  height: 4px;
  border: 1px solid #2563eb;
  background-color: #f9fafb;
  transform: translateX(-50%);
  transition: all 0.35s ease;
}

/* HOVER */
.btn-import:hover::before {
  border-color: #2563eb;
  background-color: #eff6ff;
}

.btn-import:hover {
  color: #2563eb;
}

/* ANIMAÇÃO */
.btn-import:hover i::before {
  width: 22px;
  left: 25%;
}

.btn-import:hover i::after {
  width: 22px;
  left: 75%;
}

/* ACTIVE */
.btn-import:active::before {
  background-color: #e0e7ff;
}

/* FOCO */
.btn-import:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

/* MOBILE */
@media (max-width: 600px) {
  .btn-import {
    width: 100%;
    text-align: center;
  }
}
/* ======================================================
   KPI GRID — ESTILO SAAS
====================================================== */

.she360-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-box {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;

  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);

  /* loop elegante */
  animation: kpiFloat 8s ease-in-out infinite;
}

/* brilho sutil */
.kpi-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: kpiGlow 8s ease-in-out infinite;
}

/* ÍCONE */
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 20px;
}

/* TEXTO */
.kpi-content {
  flex: 1;
}

.kpi-title {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.kpi-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
}

/* TREND */
.kpi-trend {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.kpi-trend.up {
  background: #ecfdf5;
  color: #059669;
}

.kpi-trend.down {
  background: #fef2f2;
  color: #dc2626;
}

/* ======================================================
   ANIMAÇÕES
====================================================== */

@keyframes kpiFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@keyframes kpiGlow {
  0% { box-shadow: 0 0 0 rgba(37, 99, 235, 0); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.06); }
  100% { box-shadow: 0 0 0 rgba(37, 99, 235, 0); }
}

/* ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
  .kpi-box,
  .kpi-box::after {
    animation: none;
  }
}
/* ======================================================
   COMPARATIVO DE SEMANAS
====================================================== */

.she360-comparativo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.comparativo-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.comparativo-card.destaque {
  border-color: #2563eb;
}

.comparativo-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.comparativo-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px;
}

.comparativo-trend {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.comparativo-trend.up {
  background: #ecfdf5;
  color: #059669;
}

.comparativo-trend.down {
  background: #fef2f2;
  color: #dc2626;
}
/* ======================================================
   META SEMANAL — VISUAL SAAS
====================================================== */

.she360-import.meta {
  border-left: 4px solid #2563eb;
  background: #ffffff;
}

/* FORM GROUP */
.she360-import.meta .form-group {
  gap: 8px;
}

/* LABEL */
.she360-import.meta label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* INPUT */
.she360-import.meta input[type="number"] {
  width: 100%;
  height: 46px;
  padding: 0 16px;

  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;

  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f9fafb;

  transition: all 0.2s ease;
}

.she360-import.meta input[type="number"]:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* TEXTO AUXILIAR */
.she360-import.meta small {
  font-size: 0.75rem;
  color: #64748b;
}

/* ======================================================
   BOTÃO SALVAR META
====================================================== */

.she360-import.meta .btn-import {
  margin-top: 10px;
  height: 46px;

  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;

  background: #2563eb;
  color: #ffffff;

  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.she360-import.meta .btn-import:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.she360-import.meta .btn-import::before {
  display: none; /* remove moldura antiga */
}

.she360-import.meta .btn-import span {
  z-index: 1;
}

/* ======================================================
   FEEDBACK DE META ATIVA (OPCIONAL)
====================================================== */

.meta-ativa {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-ativa::before {
  content: "🎯";
}
.badge-quantidade {
  background: #2563eb;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.tabela-wrapper {
  overflow-x: auto;
}

.btn-exportar {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin: 20px 0;

  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;

  padding: 10px 18px;

  border-radius: 6px;
  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  box-shadow: 0 3px 8px rgba(0,0,0,0.15);

  transition: all 0.2s ease;
}

.btn-exportar:hover {
  background: linear-gradient(135deg, #388e3c, #1b5e20);
  transform: translateY(-1px);
}

.btn-exportar:active {
  transform: translateY(0);
}

#rowsPerPage {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 6px 28px 6px 10px;
  font-size: 14px;

  border: 1px solid #cfcfcf;
  border-radius: 6px;

  background-color: #fff;
  cursor: pointer;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

#rowsPerPage:hover {
  border-color: #999;
}

#rowsPerPage:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46,125,50,0.15);
}