/**
 * Calculator styles (modern form card + results)
 */

.calculator-block {
  margin-top: 1rem;
}

/* Breadcrumb spacing on calculator pages:
   move breadcrumbs down ~20px (more space above, less below). */
.calculator-page .breadcrumbs {
  margin-top: calc(-1rem + 20px);
  margin-bottom: calc(1.25rem - 20px);
}

.aof-calculator {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #f8fafc; /* very light gray to clearly indicate "calculator area" */
  padding: 1.25rem;
  margin: 1rem 0 1.25rem 0;
}

.aof-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aof-calc-field label {
  display: block;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.aof-calc-field input,
.aof-calc-field select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
}

.aof-calc-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.aof-calc-section-title {
  margin-top: 14px;
  font-weight: 900;
  color: #0f172a;
}

.aof-calc-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.aof-calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px 10px;
}

.aof-calc-row-remove {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  color: #0f172a;
}

.aof-calc-row-remove:hover {
  background: #f1f5f9;
}

.aof-calc-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  background: #ff6b35;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.aof-calc-btn-secondary {
  background: #0f172a;
}

.aof-calc-btn:hover {
  filter: brightness(0.98);
}

.aof-calc-hint {
  color: #64748b;
  font-size: 0.9rem;
}

.aof-calc-results {
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.aof-calc-results.hidden {
  display: none;
}

.aof-calc-status {
  font-weight: 800;
  margin-bottom: 8px;
}

.aof-calc-status.good {
  color: #15803d;
}

.aof-calc-status.bad {
  color: #b91c1c;
}

.aof-calc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.aof-calc-kpi {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}

.aof-calc-kpi .label {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.aof-calc-kpi .value {
  font-weight: 900;
  color: #0f172a;
}

.aof-calc-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.aof-calc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.aof-calc-table th,
.aof-calc-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 0.92rem;
}

.aof-calc-table th {
  color: #64748b;
  font-weight: 900;
  background: #fff;
}

/* Sidebar "Próximo jogo" odds table on calculator pages:
   keep it compact and contained inside the sidebar column. */
.calculator-page .sidebar .odds-table {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.calculator-page .sidebar .odds-comparison {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.calculator-page .sidebar .odds-comparison th,
.calculator-page .sidebar .odds-comparison td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
}

.calculator-page .sidebar .odds-comparison th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 900;
}

.calculator-page .sidebar .odds-comparison td:first-child,
.calculator-page .sidebar .odds-comparison th:first-child {
  text-align: left;
  width: 42%;
}

.calculator-page .sidebar .odds-comparison th:last-child,
.calculator-page .sidebar .odds-comparison td:last-child {
  border-right: none;
}

.calculator-page .sidebar .odds-comparison tr:last-child td {
  border-bottom: none;
}

.calculator-page .sidebar .odds-link {
  padding: 0.2rem 0.35rem;
}

@media (max-width: 768px) {
  .aof-calc-grid {
    grid-template-columns: 1fr;
  }
  .aof-calc-kpis {
    grid-template-columns: 1fr;
  }
  .aof-calc-row {
    grid-template-columns: 1fr;
  }
  .aof-calc-row-remove {
    justify-self: end;
  }
}


