/* Form rows on one grid, on every themed page (owner's Corrections 1, 2026-11-12: reference/corrections/2026-11-12,
   pictures 02 and 03 and "THE SAME PROBLEMS ELSEWHERE"). Loaded after bizbox-theme.css by the five shells, beside
   bizbox-date-field.css and bizbox-filters.css. Alignment and style only: no field, name or value changes.
   The pages found and fixed are listed in reports/visual-checks/corrections-1/README.md ("Other pages").

   1. Two fields side by side start on the same line: each label on the same line as its neighbour, the field under
      it, help text below. (The form grid lined fields up at the bottom, so a help line, an error message or a taller
      box in one column pushed that column's label up and the rows drifted.) */
.bb-stage .bb-fgrid>.bb-field{justify-content:flex-start}

/* 2. Phone fields (the site-wide control of courier-contact-validation.js: a country / calling-code choice and the
      number): side by side inside one row, both the height of a normal field, drawn as the approved select and
      input. A message written under the number takes the line below. */
:root .bb-stage .business-phone{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;width:100%;min-width:0;max-width:100%}
:root .bb-stage .business-phone>select{flex:0 0 130px;width:130px!important;min-width:0!important;max-width:130px;height:34px;min-height:0;box-sizing:border-box;margin:0;padding:0 26px 0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;font:inherit;font-size:13.5px;color:var(--bb-text);box-shadow:none}
:root .bb-stage .business-phone>input{flex:1 1 0;width:auto!important;min-width:110px!important;max-width:none;height:34px;min-height:0;box-sizing:border-box;margin:0;padding:0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff;font:inherit;font-size:13.5px;color:var(--bb-text);box-shadow:none}
:root .bb-stage .business-phone>input::placeholder{color:#8b93a1;opacity:1}
:root .bb-stage .business-phone>:not(select):not(input){flex:1 0 100%}
:root .bb-stage .business-phone>select:disabled,:root .bb-stage .business-phone>input:disabled{background-color:var(--bb-subtle)}

/* 3. Searchable choice boxes inside a form field (courier-inline-choice.js: Ordered by, Company location, Requester,
      Answer type and the like) are the height of a normal field and drawn as the approved select, so the row they
      share with another field stays level. Same widget and choices; only the closed box changes. */
.bb-stage .bb-field .inline-choice{position:relative}
.bb-stage .bb-field .inline-choice-toggle{display:block;width:100%;height:34px;min-height:0;box-sizing:border-box;padding:0 30px 0 10px;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;font:inherit;font-size:13.5px;font-weight:400;line-height:32px;color:var(--bb-text);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.bb-stage .bb-field .inline-choice-caret{display:none}

/* 4. A time on its own (typed hour:minute with AM / PM; the date-and-time field is drawn by bizbox-date-field.css):
      one field the height of a normal field, AM / PM inside it on the right. */
:root .bb-stage .bb-field>.business-time{display:flex;flex-wrap:nowrap;align-items:center;gap:0;box-sizing:border-box;width:100%;height:34px;min-height:0;border:1px solid var(--bb-border-2);border-radius:var(--bb-r);background:#fff}
:root .bb-stage .bb-field>.business-time>input{flex:1 1 auto!important;width:auto!important;min-width:0!important;height:32px;margin:0;padding:0 4px 0 10px;border:0;border-radius:var(--bb-r);background:transparent;font:inherit;font-size:13.5px;color:var(--bb-text);box-shadow:none}
:root .bb-stage .bb-field>.business-time>select{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:32px;margin:0;padding:0 24px 0 6px;border:0;border-radius:var(--bb-r);appearance:none;-webkit-appearance:none;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;font:inherit;font-size:13.5px;color:var(--bb-text);cursor:pointer}
:root .bb-stage .bb-field>.business-time>:is(input,select):focus-visible{outline:2px solid var(--bb-focus);outline-offset:-2px}
