/* e4-inputs.css: the INPUT BOXES of the facelift (lane redesign-inputs, builder 2; Bob 9:34 PM MT 11-17 point 4: a different
   box size, not the same toggle button, not the same instructions). Loaded after e4-panel.css (overlay section 81, e4 RI81).
   Visual only. Colours are the design seat's tokens (--e4r-*, css/e4-redesign.css, phone design 0.4 sepia); the fallback after
   each comma is the same value, so these boxes look right with or without that file. Boxes covered:
   search dialog (box, result target, example lines), reference dialog (passage box, verse tick box),
   Bible chooser (filter box). The study bar's three header boxes are the design file's section 4. */

/* ---------- search dialog: the box ---------- */
#searchSelectionModal textarea#userTextInput {
  display: block; width: 100% !important; max-width: 100%; height: 56px !important; min-height: 56px; resize: none; box-sizing: border-box;
  font: 400 19px/1.3 var(--e4r-serif, 'Source Serif 4', Georgia, serif) !important;
  color: var(--e4r-ink, #1f1c17); background-color: var(--e4r-paper, #fbf9f4);
  border: 2px solid var(--e4r-tan-line, #dccfae); border-radius: 12px; padding-top: 14px !important; padding-bottom: 14px !important;
  padding-left: 18px; padding-right: 18px; /* not !important: the design file's 48 px left space for its search ring wins when it is loaded */
}
#searchSelectionModal textarea#userTextInput:focus {
  outline: 0; border-color: var(--e4r-acc, #8a4f1d); background-color: #ffffff; box-shadow: 0 0 0 4px var(--e4r-accs, #f3dfc6);
}
#searchSelectionModal textarea#userTextInput::placeholder { color: var(--e4r-mut, #7a7368); font-style: italic; }

/* ---------- search dialog: "Show results in" is a button group (js/e4/e4_inputs.js; look from e4 RP7 in e4-theme.css) ---------- */
#searchSelectionModal #displayLocForm { display: inline-flex; align-items: center; gap: 8px; }
#searchSelectionModal #displayLocForm > label { margin: 0; font: 600 13px var(--e4r-sans, 'Source Sans 3', sans-serif); color: var(--e4r-tan-mut, #86765c); }
#searchSelectionModal #displayLocForm .e4-loc-group > .btn.e4-loc { border-radius: 999px; margin-left: 4px; padding: 4px 14px; border-width: 1.5px; }
#searchSelectionModal #displayLocForm .e4-loc-group > .btn.e4-loc:first-child { margin-left: 0; }

/* ---------- search dialog: each example above its plain line (the design file draws them as cards; this also holds on a phone) ---------- */
#searchSelectionModal #basic_search_help_text li > b:first-child { display: block; }

/* ---------- study bar: the Passage box that says "Passage: ..." itself has no second small label (js/e4/e4_inputs.js) ---------- */
html body #columnHolder .passageOptionsGroup .argSummary > button.select-reference[data-e4-nolabel]::before { content: none !important; display: none !important; }

/* ---------- reference dialog: the passage box ---------- */
#passageSelectionModal textarea#enterYourPassage {
  display: block; width: calc(100% - 32px) !important; max-width: none; height: 52px !important; min-height: 52px; resize: none; box-sizing: border-box;
  margin: 10px 16px 6px !important; padding: 13px 16px !important;
  font: 400 17px/1.3 var(--e4r-serif, 'Source Serif 4', Georgia, serif) !important;
  color: var(--e4r-ink, #1f1c17); background-color: var(--e4r-paper, #fbf9f4);
  border: 2px solid var(--e4r-tan-line, #dccfae); border-radius: 12px;
}
#passageSelectionModal textarea#enterYourPassage:focus {
  outline: 0; border-color: var(--e4r-acc, #8a4f1d); background-color: #ffffff; box-shadow: 0 0 0 4px var(--e4r-accs, #f3dfc6);
}
#passageSelectionModal textarea#enterYourPassage::placeholder { color: var(--e4r-mut, #7a7368); font-style: italic; }

/* ---------- reference dialog: "Pick a verse too" is a tick box, not a sliding switch ---------- */
#passageSelectionModal #modalonoffswitch { display: inline-flex !important; flex-direction: row-reverse; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
#passageSelectionModal #modalonoffswitch #select_verse_number { font: 600 14px var(--e4r-sans, 'Source Sans 3', sans-serif); color: var(--e4r-ink, #1f1c17); padding: 0; }
#passageSelectionModal #modalonoffswitch .onoffswitch2 { width: auto !important; height: auto !important; float: none !important; margin: 0; background: none; border: 0; }
#passageSelectionModal #modalonoffswitch .onoffswitch2-label { display: none !important; }
#passageSelectionModal #modalonoffswitch .onoffswitch2-checkbox {
  display: inline-block !important; position: static !important; opacity: 1 !important; visibility: visible !important;
  width: 20px; height: 20px; margin: 0; accent-color: var(--e4r-acc, #8a4f1d); cursor: pointer;
}
#passageSelectionModal #modalonoffswitch .onoffswitch2-checkbox:focus-visible { outline: 2px solid var(--e4r-acc, #8a4f1d); outline-offset: 2px; }

/* ---------- Bible chooser: the filter box ---------- */
#bibleVersions input#enterYourTranslation {
  height: 40px !important; min-width: 240px; box-sizing: border-box; padding: 0 14px;
  font: 400 16px/1.2 var(--e4r-sans, 'Source Sans 3', sans-serif) !important;
  color: var(--e4r-ink, #1f1c17); background-color: var(--e4r-paper, #fbf9f4);
  border: 2px solid var(--e4r-tan-line, #dccfae); border-radius: 10px;
}
#bibleVersions input#enterYourTranslation:focus {
  outline: 0; border-color: var(--e4r-acc, #8a4f1d); background-color: #ffffff; box-shadow: 0 0 0 4px var(--e4r-accs, #f3dfc6);
}
#bibleVersions input#enterYourTranslation::placeholder { color: var(--e4r-mut, #7a7368); font-style: italic; }

/* ---------- search range box (the "Books:" link opens it): same box as the search box ---------- */
#searchSelectionModal textarea#enterRange {
  display: block; width: calc(100% - 32px) !important; max-width: none; height: 52px !important; min-height: 52px; resize: none; box-sizing: border-box;
  margin: 8px 16px !important; padding: 13px 16px !important;
  font: 400 17px/1.3 var(--e4r-serif, 'Source Serif 4', Georgia, serif) !important;
  color: var(--e4r-ink, #1f1c17); background-color: var(--e4r-paper, #fbf9f4);
  border: 2px solid var(--e4r-tan-line, #dccfae); border-radius: 12px;
}
#searchSelectionModal textarea#enterRange:focus {
  outline: 0; border-color: var(--e4r-acc, #8a4f1d); background-color: #ffffff; box-shadow: 0 0 0 4px var(--e4r-accs, #f3dfc6);
}
#searchSelectionModal textarea#enterRange::placeholder { color: var(--e4r-mut, #7a7368); font-style: italic; }

/* ---------- settings (gear) menu: each section on its own background, with a bar of its own colour (Bob, design 0.4 file 01
   line 125: "give each section its own background, so people see the chunks"). Phone design 0.4 tokens only. ---------- */
.passageOptionsGroup .dropdown-menu[role=menu] h2 {
  margin: 0; padding: 10px 14px 6px; text-transform: uppercase; letter-spacing: .1em;
  font: 700 11px/1.2 var(--e4r-sans, 'Source Sans 3', sans-serif); color: var(--e4r-acc, #8a4f1d);
}
.passageOptionsGroup .dropdown-menu[role=menu] > div:first-child { background-color: var(--e4r-tan-bg, #f4ecd8); border-left: 4px solid var(--e4r-tan-accs, #e6c99a); padding-bottom: 6px; }
.passageOptionsGroup .dropdown-menu[role=menu] > .displayOptionsContainer { display: block; background-color: var(--e4r-paper, #fbf9f4); border-left: 4px solid var(--e4r-acc, #8a4f1d); padding-bottom: 6px; }
.passageOptionsGroup .dropdown-menu[role=menu] > ul:last-of-type,
.passageOptionsGroup .dropdown-menu[role=menu] > h2:last-of-type { background-color: var(--e4r-tan, #eadfc4); border-left: 4px solid var(--e4r-tan-mut, #86765c); } /* a tan token, not --e4r-bar: that token is the blue logo bar (COO 12 R2 ruling) */
.passageOptionsGroup .dropdown-menu[role=menu] > h2:last-of-type { margin-top: 0; }
.passageOptionsGroup .dropdown-menu[role=menu] ul { margin: 0; padding: 0 0 4px; list-style: none; }

/* ---------- copy dialog: tick boxes you can hit ---------- */
input.copyVersionCheckbox, input.copyNotesToggle, input.copyXrefsToggle {
  width: 18px; height: 18px; accent-color: var(--e4r-acc, #8a4f1d); vertical-align: -3px; margin-right: 4px; cursor: pointer;
}

/* ---------- the range screen keeps its footer: the design file hides `#searchSelectionModal .footer` (it is empty on the first
   screen), but on the range screen the footer holds the range box and the "Update search range" button. Higher specificity
   (:has counts its #id), so the order of the two files does not matter. ---------- */
html body #searchSelectionModal .footer:has(#enterRange),
html body #searchSelectionModal .footer:has(#updateRangeButton:not([style*="none"])) { display: block !important; }

/* ---------- gear menu rows: the design file's round 34 px button rule (`.passageOptionsGroup > .pull-right a`) also caught the
   menu's own rows and squeezed them to 34 px; rows go back to full width (specificity above that rule, so file order is free) ---------- */
html body #columnHolder .passageOptionsGroup > .pull-right .dropdown-menu a {
  display: block !important; width: auto !important; height: auto !important; margin-left: 0 !important;
  border-radius: 0 !important; justify-content: normal !important; align-items: normal !important;
}
