@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

.gerente-layout .content {
  font-family: 'Sora', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gerente-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 22px;
}

.gerente-dash-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(8, 14, 28, 0.96), rgba(15, 23, 42, 0.92)),
    radial-gradient(420px at 16% 2%, rgba(37, 99, 235, 0.14), transparent 60%);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(148, 163, 184, 0.05);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.gerente-dash-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -100px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
  pointer-events: none;
}

.gerente-dash-hero-main,
.gerente-dash-hero-side {
  position: relative;
  z-index: 1;
}

.gerente-dash-hero .eyebrow {
  color: rgba(226, 232, 240, 0.85);
}

.dashboard-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.gerente-dash-hero .subtitle {
  color: rgba(203, 213, 225, 0.95);
}

.dashboard-subtitle {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

.gerente-dash-hero-side {
  display: grid;
  gap: 10px;
  min-width: 300px;
}

.gerente-dash-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 42, 0.58);
  color: #cbd5e1;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gerente-dash-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gerente-dash-mini {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.4);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.gerente-dash-mini-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.gerente-dash-mini strong {
  font-size: 18px;
  line-height: 1;
}

.gerente-dash-kpis {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gerente-dash-kpi-card {
  min-height: 0;
  padding: 16px 18px;
  border-color: rgba(125, 211, 252, 0.24);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.94), rgba(15, 23, 42, 0.86));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.3);
  gap: 8px;
}

.gerente-dash-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gerente-dash-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  background: rgba(2, 132, 199, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gerente-dash-kpi-icon svg {
  width: 16px;
  height: 16px;
  fill: #7dd3fc;
}

.gerente-dash-kpi-link {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  padding: 5px 9px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gerente-dash-kpi-link:hover {
  border-color: rgba(56, 189, 248, 0.62);
  background: rgba(14, 116, 144, 0.18);
}

.gerente-dash-kpi-value {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.card-title {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-desc {
  font-size: 12px;
  color: #94a3b8;
}

.gerente-dash-charts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gerente-chart-card {
  min-height: 0;
  padding: 18px;
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.9), rgba(8, 14, 28, 0.78));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.3);
  gap: 16px;
}

.gerente-chart-card .section-head {
  align-items: flex-start;
}

.gerente-chart-card .section-head h2 {
  font-size: 18px;
}

.chart-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.chart-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.gerente-chart-card .tag {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
  color: #bfdbfe;
}

.gerente-chart-card--wide {
  grid-column: 1 / -1;
}

.gerente-chart-wrap {
  position: relative;
  height: 300px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.56), rgba(15, 23, 42, 0.32)),
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 42%);
  overflow: hidden;
  padding: 10px;
}

.gerente-chart-wrap--donut {
  height: 300px;
}

.gerente-chart-empty {
  height: 100%;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.36);
}

.gerente-chart-fallback,
.gerente-chart-fallback svg {
  width: 100%;
  height: 100%;
}

.gerente-chart-grid {
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 1;
}

.gerente-chart-axis {
  fill: #94a3b8;
  font-size: 11px;
}

.gerente-chart-area {
  fill: rgba(56, 189, 248, 0.16);
}

.gerente-chart-line {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gerente-chart-point {
  fill: #0f172a;
  stroke: #38bdf8;
  stroke-width: 2;
}

.gerente-bars-fallback {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 12px;
  align-items: end;
}

.gerente-bar-item {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.gerente-bar-value {
  font-size: 12px;
  color: #e2e8f0;
  text-align: center;
}

.gerente-bar-track {
  height: 172px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.44);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 10px 8px;
}

.gerente-bar-fill {
  width: 100%;
  border-radius: 12px 12px 8px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.gerente-bar-label {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
  text-align: center;
  line-height: 1.4;
}

.gerente-hbars-fallback {
  height: 100%;
  display: grid;
  gap: 12px;
  align-content: start;
}

.gerente-hbar-item {
  display: grid;
  gap: 8px;
}

.gerente-hbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gerente-hbar-label {
  font-size: 13px;
  color: #e2e8f0;
}

.gerente-hbar-value {
  font-size: 12px;
  color: #cbd5e1;
}

.gerente-hbar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.gerente-hbar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.gerente-donut-fallback {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.gerente-donut-svg {
  width: 100%;
  height: auto;
}

.gerente-donut-track,
.gerente-donut-segment {
  fill: none;
  stroke-width: 24;
  transform: rotate(-90deg);
  transform-origin: 110px 110px;
}

.gerente-donut-track {
  stroke: rgba(148, 163, 184, 0.14);
}

.gerente-donut-total-label {
  fill: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gerente-donut-total-value {
  fill: #f8fafc;
  font-size: 24px;
  font-weight: 800;
}

.gerente-donut-legend {
  display: grid;
  gap: 10px;
}

.gerente-donut-legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.38);
  font-size: 13px;
}

.gerente-donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.gerente-donut-legend-item strong {
  color: #f8fafc;
}

@media (max-width: 1280px) {
  .gerente-dash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .gerente-dash-hero {
    flex-direction: column;
  }

  .gerente-dash-hero-side {
    min-width: 100%;
  }

  .gerente-dash-charts {
    grid-template-columns: 1fr;
  }

  .gerente-dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gerente-chart-card--wide {
    grid-column: auto;
  }

  .gerente-chart-wrap,
  .gerente-chart-wrap--donut {
    height: 260px;
  }

  .gerente-donut-fallback {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gerente-donut-legend {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .gerente-dash-kpis,
  .gerente-dash-mini-grid {
    grid-template-columns: 1fr;
  }

  .gerente-bars-fallback {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
