/* settings screens: rules beyond src/ui/style.css (Categorieën en regels, Problemen, Weergave). */

/* Weergave: a choice, each saying what it does */
.display .choices { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.display .choice { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 4px; border-radius: 10px; cursor: pointer; }
.display .choice:has(input:checked) { background: var(--accent-bg); }
.display .choice input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.display .choice > span { display: flex; flex-direction: column; gap: 2px; }

.settings .intro { margin: 0 0 6px; }
.settings .icon-hint { margin: 0 0 4px; }

/* a category row: its total this year at the right */
.cats .tx .amt { flex: none; }
.cats .tx .amt.pos { background: var(--in-bg); color: var(--pos); padding: 2px 8px; border-radius: 7px; margin-right: -8px; }
.cat-detail .cat-rules { margin-top: 4px; }
.cat-detail .teaser-h { margin-top: 8px; padding: 0; border: 0; }
.cat-detail .pays { margin-top: 4px; }
.cat-detail select.chip { min-height: 32px; font-size: 13px; }

/* rename and merge, in place */
.editform { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.editform .btns { margin-top: 0; }
.editform p { margin: 0; }
input.inp.name {
  font: inherit; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--fg); width: 100%;
}
.editform .msg:empty { display: none; }
.editform .msg.failed { padding: 8px 12px; }

/* the rules */
.rules .tx { cursor: default; }
.rules .tx:hover { background: transparent; }
.rules .tx .btn { flex: none; }
.rule-line { margin: -4px 0 10px; }

/* Problemen */
.problems .import-msg { margin-top: 8px; }
.btn.import[disabled] { opacity: 0.6; cursor: progress; }
.prob-detail .figs { margin-top: 4px; }
.prob-detail .row { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.prob-detail .row:last-child { border-bottom: 0; }
.prob-detail code { font-size: 12.5px; background: var(--surface); padding: 1px 6px; border-radius: 5px; }
.prob-detail .docs { margin-top: 6px; }
.prob-detail .more { margin-top: 4px; }
/* what to do about it: prose with the lines to copy */
.prob-detail .remedy { margin-top: 12px; max-width: 640px; }
.prob-detail .remedy .teaser-h { padding: 0; border: 0; }
.prob-detail .remedy p, .prob-detail .remedy li { margin: 6px 0; line-height: 1.45; }
.prob-detail .remedy ul { margin: 6px 0; padding-left: 20px; }
.prob-detail pre.cfg { margin: 6px 0; padding: 8px 10px; background: var(--surface); border-radius: 8px; overflow-x: auto; }
.prob-detail pre.cfg code { padding: 0; background: none; font-size: 12.5px; }
