/* STEP 230 — Vehicle MMR valuation: readable Day Mode.
   The MMR section was added before the v166 theme system and hard-codes dark
   summary cards. Target only the MMR section in genuine Day Mode; don't alter
   Night Mode, values, valuation calculations, saves, or print styles. */
@media screen {
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel {
    background:#ffffff !important;
    border-color:#b5d1e4 !important;
    color:#14344e !important;
    color-scheme:light;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .panel-head {
    background:#edf5fb !important;
    border-color:#bad2e2 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .panel-head h3 {
    color:#113551 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel :is(.muted,.field label,small) {
    color:#365d79 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .mmr-summary-grid > div {
    background:#eaf3fa !important;
    border:1px solid #afc8dc !important;
    box-shadow:none !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .mmr-summary-grid > div > small {
    color:#335b78 !important;
    font-weight:750;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .mmr-summary-grid > div > strong {
    color:#123651 !important;
  }
  /* The signed MMR-to-cost value stays color coded and high-contrast. */
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .mmr-summary-grid .mmr-compare-up {
    color:#0b7045 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .mmr-summary-grid .mmr-compare-down {
    color:#a52636 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .mmr-summary-grid .mmr-compare-unset {
    color:#49657d !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .field input {
    background:#ffffff !important;
    color:#173b56 !important;
    border-color:#afcbdc !important;
    color-scheme:light;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .field input::placeholder {
    color:#52718b !important;
    opacity:1 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-panel .field input:focus-visible {
    outline:2px solid #087bbb !important;
    outline-offset:1px;
  }
}

/* The standalone MMR capture dialog also contained hard-coded night colors.
   This uses the same active app theme flag while preserving its handlers. */
@media screen {
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog {
    background:#fff !important;
    border-color:#b5d1e4 !important;
    color:#14344e !important;
    color-scheme:light;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog .mmr-inapp-header {
    background:#edf5fb !important;
    border-bottom-color:#b7cfdf !important;
    color:#153b56 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog .mmr-inapp-header small,
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog :is(.mmr-clean-note,.mmr-clean-last,.mmr-clean-entry small,.mmr-clean-info p) {
    color:#3a617b !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog :is(.mmr-clean-info,.mmr-clean-entry) {
    background:#f2f8fc !important;
    border-color:#b5cfe1 !important;
    color:#183950 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog :is(.mmr-clean-info h3,.mmr-clean-vin strong,.mmr-clean-entry label) {
    color:#153952 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog .mmr-clean-eyebrow,
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog .mmr-clean-vin span {
    color:#315e7e !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog .mmr-clean-vin,
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog #mmr-capture-btn + input + p,
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog .mmr-clean-info > div[style*="background:#0a233a"] {
    background:#e7f2fa !important;
    border-color:#b4ccdd !important;
    color:#254e69 !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog :is(input:not([type=file]),textarea) {
    background:#fff !important;
    color:#183b54 !important;
    border:1px solid #a8c9dd !important;
    color-scheme:light !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog :is(input,textarea)::placeholder {
    color:#536f85 !important;
    opacity:1;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog :is(#mmr-capture-status,.mmr-clean-note) {
    color:#305f7d !important;
  }
  html[data-ld227-theme="day"] body:not(.parts-green-theme) .mmr-clean-dialog button.secondary {
    background:#e5f0f8 !important;
    border-color:#abc9dd !important;
    color:#1a4767 !important;
  }
}
