/* Operations History — isolated page styling */
.op-history-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.15rem 1.15rem;
  box-shadow: 0 8px 24px rgba(22, 37, 46, 0.035);
}

.op-history-eyebrow {
  color: var(--brand-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: .3rem;
}

.op-history-section-title {
  font-size: 1.08rem;
  font-weight: 750;
  margin-bottom: .2rem;
}

.op-history-kpi-value {
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: .25rem 0 .35rem;
}

.op-history-rank-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid #f0ece5;
}

.op-history-rank-row:last-child {
  border-bottom: 0;
}

.op-history-change {
  color: var(--text-muted);
  font-size: .88rem;
  text-align: right;
}

@media (max-width: 767px) {
  .op-history-panel {
    padding: .9rem;
  }
  .op-history-rank-row {
    flex-direction: column;
    gap: .15rem;
  }
  .op-history-change {
    text-align: left;
  }
}

.op-history-settings {
  display: inline-block;
  text-align: left;
  color: var(--text-muted);
  font-size: .86rem;
}

.op-history-settings summary {
  cursor: pointer;
  list-style: none;
  color: var(--brand-accent);
  font-weight: 700;
}

.op-history-settings summary::-webkit-details-marker {
  display: none;
}

.op-history-settings summary::before {
  content: "⚙ ";
  font-weight: 400;
}

.op-history-settings[open] {
  min-width: 255px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .7rem .8rem;
  box-shadow: 0 8px 24px rgba(22, 37, 46, 0.05);
}

.op-history-settings-body {
  max-width: 260px;
}


/* === OPERATIONS HISTORY SETTINGS BEIGE V3 === */

.op-history-settings,
.op-history-settings[open] {
    display: inline-block !important;
    width: 285px !important;
    min-width: 285px !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    background: #faf5ed !important;
    border: 1px solid #dfd2c1 !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 8px 22px rgba(44, 37, 28, 0.06) !important;
    color: #49545f !important;
    text-align: left !important;
}

.op-history-settings > summary {
    min-height: 24px !important;
    color: #087f76 !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
}

.op-history-settings-body {
    width: 100% !important;
    max-width: none !important;
    margin-top: 9px !important;
    padding-top: 10px !important;
    border-top: 1px solid #e4d8c9 !important;
}

.op-history-settings .input-group {
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

#op-history-max-prep {
    height: 38px !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-right: 0 !important;
    color: #213344 !important;
    box-shadow: none !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

#op-history-max-prep::-webkit-inner-spin-button,
#op-history-max-prep::-webkit-outer-spin-button {
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.op-history-settings .input-group-text {
    min-width: 52px !important;
    justify-content: center !important;
    background: #eee2d3 !important;
    border: 1px solid var(--border) !important;
    color: #53606d !important;
}

.op-history-settings > summary::after {
    content: "⌄" !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 7px !important;
    background: #eee4d7 !important;
}

.op-history-settings[open] > summary::after {
    content: "⌃" !important;
}

/* === END OPERATIONS HISTORY SETTINGS BEIGE V3 === */
