/* C036–C037: light-theme filters and monthly history details.
   Applies to every period and business filter; existing data and layout remain in place. */
html[data-theme="light"] #page .fv-history-view .fv-history-range {
  background: #fff;
  border-color: #d6c7e8;
}

html[data-theme="light"] #page .fv-history-view .movement-date-range {
  background: #f5effb;
  border-color: #d6c7e8;
}

html[data-theme="light"] #page .fv-history-view :is(.movement-date-range input, .history-search, .fv-origin-filter select) {
  background: #fff;
  border-color: #9475b5;
  color: #44305f;
}

html[data-theme="light"] #page .fv-history-view .history-search input {
  background: transparent;
  color: #44305f;
}

html[data-theme="light"] #page .fv-history-view :is(.movement-date-range input, .history-search input, .fv-origin-filter select) {
  font-size: 13px;
  line-height: 1.5;
}

html[data-theme="light"] #page .fv-history-view .fv-history-range input::placeholder {
  color: #665276;
  opacity: 1;
}

html[data-theme="light"] #page .fv-history-view :is(.movement-date-range label > span, .fv-origin-filter > span, .history-search > small) {
  color: #665276;
  font-size: 12px;
  line-height: 1.5;
}

html[data-theme="light"] #page .fv-history-view .fv-history-list-tools {
  border-color: #d6c7e8;
}

html[data-theme="light"] #page .fv-history-view .history-quick-ranges button {
  min-height: 38px;
  padding: 8px 11px;
  border-color: #9475b5;
  background: #fff;
  color: #665276;
  font-size: 12px;
  line-height: 1.4;
}

html[data-theme="light"] #page .fv-history-view .history-quick-ranges button.active {
  border-color: #6c42c7;
  background: #eee3fb;
  color: #4d2387;
  box-shadow: inset 0 0 0 1px #6c42c7;
}

html[data-theme="light"] #page .fv-history-view .history-quick-ranges button:hover {
  border-color: #6c42c7;
  color: #4d2387;
  background: #f5effb;
}

html[data-theme="light"] #page .fv-history-view .fv-history-export {
  min-height: 40px;
  font-size: 12px;
}

html[data-theme="light"] #page .fv-history-view .fv-history-preview {
  border-top: 1px solid #d6c7e8;
  background: #fff;
}

html[data-theme="light"] #page .fv-history-view .fv-history-detail-heading {
  padding: 12px;
  border: 1px solid #d6c7e8;
  border-radius: 12px;
  background: #f5effb;
}

html[data-theme="light"] #page .fv-history-view :is(.fv-history-detail-heading small, .fv-history-detail-heading > span) {
  color: #665276;
  font-size: 11px;
  line-height: 1.5;
}

html[data-theme="light"] #page .fv-history-view .fv-history-detail-heading b {
  color: #44305f;
  font-size: 14px;
  line-height: 1.5;
}

html[data-theme="light"] #page .fv-history-view .fv-history-ledger {
  scrollbar-color: #9475b5 transparent;
}

html[data-theme="light"] #page .fv-history-view .history-ledger-row {
  border-color: #e0d5ec;
}

html[data-theme="light"] #page .fv-history-view .history-ledger-row:hover {
  background: #f5effb;
}

html[data-theme="light"] #page .fv-history-view .history-ledger-row > div b {
  color: #44305f;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html[data-theme="light"] #page .fv-history-view .history-ledger-row > div small {
  color: #665276;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

html[data-theme="light"] #page .fv-history-view .history-ledger-row > strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] #page .fv-history-view .history-ledger-row > strong.positive { color: #106b4b; }
html[data-theme="light"] #page .fv-history-view .history-ledger-row > strong.negative { color: #a2324c; }
html[data-theme="light"] #page .fv-history-view .history-ledger-row > strong.neutral { color: #086a76; }

html[data-theme="light"] #page .fv-history-view .fv-history-range :is(button, input, select):focus-visible {
  outline: 2px solid #6c42c7;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  html[data-theme="light"] #page .fv-history-view :is(.movement-date-range input, .history-search input, .fv-origin-filter select) {
    min-height: 44px;
    font-size: 16px;
  }

  html[data-theme="light"] #page .fv-history-view .history-search {
    height: auto;
    min-height: 46px;
  }

  html[data-theme="light"] #page .fv-history-view .history-search > small {
    flex-shrink: 0;
    white-space: nowrap;
  }

  html[data-theme="light"] #page .fv-history-view :is(.history-quick-ranges button, .fv-history-export) {
    min-height: 44px;
  }

  html[data-theme="light"] #page .fv-history-view .fv-history-detail-heading {
    flex-wrap: wrap;
    gap: 6px;
  }
}
