@import url("variables.css");

body.page-hora-pico {
  background:
    radial-gradient(ellipse 80% 45% at 12% -8%, rgba(42, 157, 143, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 61, 58, 0.06), transparent 46%),
    var(--dc-paper);
  font-family: var(--font-body);
  color: var(--dc-ink);
}

.hp-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px 40px;
  display: grid;
  gap: 16px;
}

.hp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: end;
}

.hp-toolbar label {
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dc-muted);
}

.hp-toolbar input[type="date"] {
  border: 1px solid var(--dc-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  min-width: 150px;
  background: var(--dc-white);
  color: var(--dc-ink);
}

.hp-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hp-chip {
  border: 1px solid rgba(42, 157, 143, 0.35) !important;
  color: var(--dc-teal-deep) !important;
  background: rgba(42, 157, 143, 0.08) !important;
}

.hp-chip.is-active {
  background: var(--dc-teal) !important;
  border-color: var(--dc-teal) !important;
  color: #fff !important;
}

.hp-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hp-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--dc-white);
  border: 1px solid var(--dc-line);
  border-radius: var(--radius-card);
  box-shadow: var(--dc-shadow);
  min-width: 0;
}

.hp-kpi__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(42, 157, 143, 0.12);
  color: var(--dc-teal-deep);
}

.hp-kpi__icon svg {
  width: 22px;
  height: 22px;
}

.hp-kpi--pico .hp-kpi__icon {
  background: rgba(197, 106, 26, 0.14);
  color: #c56a1a;
}

.hp-kpi--carga .hp-kpi__icon {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}

.hp-kpi__text {
  min-width: 0;
}

.hp-kpi__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dc-muted);
}

.hp-kpi__value {
  margin: 2px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dc-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hp-kpi__hint {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--dc-muted);
  font-weight: 600;
}

.page-hora-pico .panel__head {
  justify-content: flex-start;
  gap: 10px;
}

.page-hora-pico .panel__head-icon {
  display: inline-flex;
  color: var(--dc-teal);
}

.hp-insight {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(197, 106, 26, 0.22);
  background: rgba(197, 106, 26, 0.08);
  color: var(--dc-navy);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-insight[hidden] {
  display: none;
}

.hp-insight svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #c56a1a;
}

.hp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 16px 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dc-muted);
}

.hp-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hp-legend__item::before {
  content: "";
  width: 14px;
  height: 8px;
  border-radius: 4px;
}

.hp-legend__item--clientes::before {
  background: rgba(42, 157, 143, 0.85);
}

.hp-legend__item--staff::before {
  height: 3px;
  width: 18px;
  background: #0f3d3a;
  border-radius: 99px;
}

.hp-th {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hp-th svg {
  width: 14px;
  height: 14px;
  color: var(--dc-teal-deep);
}

.hp-cmp {
  min-width: 120px;
  display: grid;
  gap: 4px;
}

.hp-cmp__row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 6px;
  align-items: center;
}

.hp-cmp__row span {
  height: 7px;
  border-radius: 99px;
  background: rgba(15, 61, 58, 0.08);
  overflow: hidden;
  display: block;
}

.hp-cmp__row span i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.hp-cmp__row--c i {
  background: #2a9d8f;
}

.hp-cmp__row--a i {
  background: #0f3d3a;
}

.hp-carga {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.hp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hp-table th,
.hp-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--dc-line);
  text-align: left;
}

.hp-table th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dc-muted);
}

.hp-table td {
  color: var(--dc-navy);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.hp-table tr.is-pico {
  background: rgba(197, 106, 26, 0.1);
}

.hp-table tr.is-pico td {
  color: #8a4b12;
}

.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(197, 106, 26, 0.16);
  color: #8a4b12;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hp-empty {
  text-align: center;
  color: var(--dc-muted);
  padding: 22px 8px;
}

@media (max-width: 980px) {
  .hp-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hp-shell {
    padding: 12px 14px 32px;
  }

  .hp-kpis {
    grid-template-columns: 1fr;
  }

  .hp-chart-body {
    height: 260px;
  }
}
