/* Scoped to .soapcalc so it doesn't touch the theme. Fonts and colors inherit from the theme. */
.soapcalc { --sc-accent: #2c562c; --sc-line: rgba(0,0,0,.15); --sc-soft: rgba(0,0,0,.04); max-width: 760px; margin: 1.5em 0; }
.soapcalc *, .soapcalc *::before, .soapcalc *::after { box-sizing: border-box; }
.soapcalc .sc-card { border: 1px solid var(--sc-line); border-radius: 8px; padding: 1em 1.1em; margin-bottom: 1em; background: var(--sc-soft); }
.soapcalc h3 { margin: 0 0 .7em; font-size: 1.1em; }
.soapcalc .sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8em 1em; }
.soapcalc .sc-field { display: flex; flex-direction: column; gap: .25em; margin: 0; }
.soapcalc .sc-label { font-weight: 600; font-size: .9em; }
.soapcalc small { opacity: .7; font-size: .8em; }
.soapcalc input, .soapcalc select { width: 100%; padding: .45em .55em; font: inherit; border: 1px solid var(--sc-line); border-radius: 5px; background: #fff; color: #222; min-height: 2.4em; }
.soapcalc input:focus, .soapcalc select:focus { outline: 2px solid var(--sc-accent); outline-offset: 1px; }
.soapcalc table { width: 100%; border-collapse: collapse; margin: 0 0 .8em; }
.soapcalc th, .soapcalc td { text-align: left; padding: .35em .4em; border-bottom: 1px solid var(--sc-line); vertical-align: middle; }
.soapcalc .sc-oils td:nth-child(2) { width: 32%; }
.soapcalc .sc-oils td:last-child, .soapcalc .sc-oils th:last-child { width: 2.5em; text-align: center; }
.soapcalc .sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.soapcalc .sc-rm { border: 0; background: none; font-size: 1.4em; line-height: 1; cursor: pointer; color: inherit; opacity: .55; padding: .2em .4em; }
.soapcalc .sc-rm:hover { opacity: 1; color: #a00; }
.soapcalc .sc-btn { font: inherit; padding: .5em 1em; border-radius: 5px; border: 1px solid var(--sc-accent); background: var(--sc-accent); color: #fff; cursor: pointer; }
.soapcalc .sc-btn:hover { filter: brightness(1.15); }
.soapcalc .sc-result td:nth-child(n+2), .soapcalc .sc-result th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.soapcalc .sc-sub td { font-weight: 600; }
.soapcalc .sc-key td { font-weight: 700; color: var(--sc-accent); }
.soapcalc .sc-warn:empty { display: none; }
.soapcalc .sc-warn { background: #fff4d6; color: #5a4300; border-left: 4px solid #e0a800; padding: .5em .7em; margin: 0 0 .8em; border-radius: 4px; }
.soapcalc .sc-meta { font-size: .9em; opacity: .8; margin: 0 0 .8em; }
.soapcalc .sc-note { font-size: .85em; opacity: .75; }
@media (max-width: 480px) { .soapcalc .sc-card { padding: .8em; } .soapcalc .sc-oils td:nth-child(2) { width: 38%; } }
@media print {
  body.sc-printing * { visibility: hidden; }
  body.sc-printing .sc-print-me, body.sc-printing .sc-print-me * { visibility: visible; }
  body.sc-printing .sc-print-me { position: absolute; left: 0; top: 0; width: 100%; }
  .soapcalc .sc-btn, .soapcalc .sc-rm { display: none; }
}
.soapcalc .sc-qtable td { vertical-align: top; }
.soapcalc .sc-tip { display: block; font-size: .78em; opacity: .65; }
.soapcalc .sc-qtable td:nth-child(2) { font-weight: 700; }
.soapcalc .sc-low, .soapcalc .sc-high { color: #a15c00; }
.soapcalc .sc-range { display: block; }
.soapcalc .sc-bar { position: relative; display: block; height: 8px; width: 110px; margin: .3em 0 0 auto; border-radius: 4px; background: var(--sc-line); }
.soapcalc .sc-band { position: absolute; left: 25%; width: 50%; top: 0; bottom: 0; border-radius: 4px; background: var(--sc-accent); opacity: .35; }
.soapcalc .sc-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--sc-accent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.soapcalc .sc-dot.sc-low, .soapcalc .sc-dot.sc-high { background: #e08a00; }
.soapcalc .sc-oils .sc-lockcell { width: 3em; text-align: center; font-size: .85em; }
.soapcalc .sc-oils td:nth-child(2) { width: 28%; }
.soapcalc input[type=checkbox] { width: auto; min-height: 0; accent-color: var(--sc-accent); }
.soapcalc .sc-qtable tr:not(.sc-trow) td { border-bottom: 0; padding-bottom: .1em; }
.soapcalc .sc-trow td { padding-top: 0; }
.soapcalc .sc-target { display: flex; align-items: center; gap: .6em; font-size: .85em; }
.soapcalc .sc-target label { display: flex; align-items: center; gap: .2em; white-space: nowrap; cursor: pointer; }
.soapcalc .sc-slider { flex: 1; min-height: 0; padding: 0; border: 0; background: none; accent-color: var(--sc-accent); }
.soapcalc .sc-slider:disabled { opacity: .35; }
.soapcalc .sc-tval { min-width: 2.5em; text-align: right; font-weight: 700; opacity: .35; }
.soapcalc .sc-trow.sc-on .sc-tval { opacity: 1; }
.soapcalc .sc-mark { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; background: #222; border-radius: 1px; }
.soapcalc .sc-actions { display: flex; gap: .6em; flex-wrap: wrap; margin: .4em 0 .6em; }
.soapcalc .sc-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.soapcalc .sc-ghost { background: transparent; color: var(--sc-accent); }
.soapcalc .sc-solve ul { margin: 0 0 .8em; padding-left: 1.2em; }
.soapcalc .sc-solve li small { display: block; opacity: .8; }
.soapcalc .sc-solve .sc-miss { color: #a15c00; }
.soapcalc .sc-hint { font-weight: 600; margin: 0 0 .8em; }
.soapcalc .sc-notes details { border-top: 1px solid var(--sc-line); padding: .45em 0; }
.soapcalc .sc-notes summary { cursor: pointer; font-weight: 700; padding: .15em 0; }
.soapcalc .sc-notes summary:hover { color: var(--sc-accent); }
.soapcalc .sc-notes ul { margin: .4em 0 .2em; padding-left: 1.2em; }
.soapcalc .sc-notes li { margin: .3em 0; line-height: 1.45; }
@media print { body.sc-printing .sc-notes { display: none; } }
