/* StaffMeMine — the controls, one standard across the site (1460; Sal, 2026-10-06: "this kind of things should be standard
   throughout the website"). Linked by every live page after its own styles. Element rules fill the gaps where a page gave a
   control no class; a page's own class rules (.db-input, .pp-input, .db-select…) keep the same measures, so the two agree.
   The standard — rules/ui-conventions.md "The controls":
     · one height (36px) for text inputs, selects and buttons that sit in a row; one gap (12px) between them; radius 6px
     · a select is drawn by us (no native arrow): the same border, padding and chevron everywhere
     · a file is picked through a button, never the browser's raw "Choose File / No file chosen" strip:
         <label class="db-btn smm-file"><span data-smm-file-name>📎 Choose the file</span><input type="file" …></label>
       smm-controls.js writes the chosen file's name onto the button
     · the primary action in a row reads "Submit"; secondary actions keep their words (Cancel, Change, Choose the file) */

:root {
  --smm-ctl-h: 36px;
  --smm-ctl-gap: 12px;
  --smm-ctl-radius: 6px;
  --smm-ctl-border: var(--color-border-primary, #d9dde3);
  --smm-ctl-focus: var(--color-brand-blue, #1E2D87);
  --smm-ctl-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235f6368' stroke-width='1.6'/></svg>");
}

/* ── selects: drawn by us, the same everywhere ─────────────────────── */
select:not([multiple]):not([size]):not([data-smm-raw]) {
  box-sizing: border-box;
  height: var(--smm-ctl-h);
  padding: 0 28px 0 10px;
  font: inherit;
  font-size: 13px;
  color: var(--color-text-primary, #1f2328);
  background-color: #fff;
  border: 1px solid var(--smm-ctl-border);
  border-radius: var(--smm-ctl-radius);
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--smm-ctl-chevron);
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
select:not([multiple]):not([size]):not([data-smm-raw]):focus {
  outline: none;
  border-color: var(--smm-ctl-focus);
  box-shadow: 0 0 0 3px rgba(30, 45, 135, 0.10);
}
select:disabled { opacity: .6; cursor: default; }

/* ── text-like inputs that carry a page's control class ───────────── */
input.db-input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
input.pp-input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  box-sizing: border-box;
  height: var(--smm-ctl-h);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--smm-ctl-border);
  border-radius: var(--smm-ctl-radius);
  background: #fff;
  color: var(--color-text-primary, #1f2328);
}
input.db-input:focus, input.pp-input:focus, textarea.db-input:focus, textarea.pp-input:focus {
  outline: none;
  border-color: var(--smm-ctl-focus);
  box-shadow: 0 0 0 3px rgba(30, 45, 135, 0.10);
}

/* ── the file picker is a button ──────────────────────────────────── */
.smm-file { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; max-width: 100%; }
.smm-file > span { overflow: hidden; text-overflow: ellipsis; }
.smm-file input[type="file"] { display: none !important; }

/* ── a row of controls: one height, one gap ────────────────────────── */
.smm-row, [data-claim1057-row], [data-idfix1451-row] { display: flex; align-items: center; gap: var(--smm-ctl-gap); flex-wrap: wrap; }
.smm-row .db-btn, .smm-row .pp-btn, .smm-row .btn,
[data-req1456] .db-btn, [data-claim1057-row] .db-btn, [data-idfix1451-row] .db-btn, [data-smm-resubmit], [data-smm-getcovered], [data-idfirst1452-go] {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; height: var(--smm-ctl-h); margin-top: 0; margin-bottom: 0; padding: 0 14px; font-size: 13px; white-space: nowrap;
}
