/* Reportes — tarjeta hero con el detalle a la izquierda y un mockup
   dibujado de la planilla a la derecha, para que no quede solo texto
   angosto y un botón perdidos en una pantalla ancha. */

.reporte-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--space-6);
  padding: var(--space-10) var(--space-8);
  max-width: 860px;
}

.reporte-hero-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.reporte-hero-preview {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.reporte-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-container);
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.reporte-card-icon svg { width: 30px; height: 30px; }

.reporte-card-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
}

.reporte-card-description {
  margin: 0 0 var(--space-4);
  max-width: 640px;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

.reporte-card-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.reporte-card-cols li {
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: var(--color-bg-input);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.reporte-card-btn {
  min-width: 220px;
  justify-content: center;
}

/* ── Mockup de la planilla — dibujado en CSS, no una imagen real ── */
.sheet-preview {
  width: 100%;
  max-width: 760px;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-container);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
}

.sheet-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}

.sheet-dot { width: 9px; height: 9px; border-radius: 50%; }
.sheet-dot--red { background: #ED6A5E; }
.sheet-dot--yellow { background: #F4BF4F; }
.sheet-dot--green { background: #61C554; }

.sheet-preview-filename {
  margin-left: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: 'SFMono-Regular', Consolas, monospace;
}

.sheet-grid {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-surface);
}

.sheet-row {
  display: grid;
  grid-template-columns: 22px 1.3fr 1.3fr 1.1fr 1.05fr 1fr 1.15fr 0.85fr;
}

.sheet-row--letters {
  background: var(--color-bg-input);
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: var(--weight-medium);
}
.sheet-row--letters span {
  padding: 3px 6px;
  text-align: center;
  border-right: 1px solid var(--color-border-light);
}

.sheet-rownum {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-input);
  color: var(--color-text-muted);
  font-size: 10px;
  border-right: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.sheet-cell {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--color-text-secondary);
  border-right: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-cell.mono { font-family: 'SFMono-Regular', Consolas, monospace; }

.sheet-row--head .sheet-cell {
  font-weight: var(--weight-semibold);
  color: var(--color-text-heading);
  background: var(--color-primary-bg);
}
.sheet-row--head .sheet-rownum { background: var(--color-primary-bg); }

.sheet-pill {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 9.5px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
.sheet-pill--ok { background: var(--color-success-bg); color: var(--color-success-strong); }
.sheet-pill--partial { background: var(--color-warning-bg); color: var(--color-warning-strong); }

.sheet-row--fade { position: relative; }
.sheet-row--fade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--color-bg-surface) 92%);
}

.sheet-preview-more {
  padding: 8px 14px;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border-light);
}

@media (max-width: 900px) {
  .sheet-preview { transform: none; max-width: 100%; }
}

/* La maqueta de 7 columnas apretadas en ~300px queda ilegible (cada celda
   se reduce a una tira con "…"). Es puramente decorativa — los nombres de
   columna ya están listados aparte como chips de texto — se oculta sin
   perder información. */
@media (max-width: 860px) {
  .sheet-preview { display: none; }

  /* Sin cancelar acá, .main-content-scroll llega a 40px de padding-top
     (components.css, nunca reseteado en esta página) y queda una franja
     del canvas por encima del header "hero" antes de la curva. .surface
     ya está en 0 acá (esta página no carga productos.css, que es la que
     le suma padding a .surface por debajo de 720px en otras páginas). */
  .main-content--surface .main-content-scroll { padding-top: 0; }
}
