/* fieldops-panel.css — the project's Field ops card, Settings → Field ops, and For you's confirmation buttons
   (Field-ops build, 2026-10-24). Uses the portal's own tokens where they exist; plain fallbacks otherwise. */
.fo-card .fo-sec { border-top: 1px solid var(--line, #e5e2dc); padding: 10px 0 4px; }
.fo-card .fo-sec:first-of-type { border-top: 0; }
.fo-h { font-size: 14px; margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fo-small { font-size: 12.5px; }
.fo-items { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.fo-items > li { border: 1px solid var(--line, #e5e2dc); border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; }
.fo-item-h { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; width: 100%; flex-wrap: wrap; }
.fo-item-h:focus-visible { outline: 2px solid var(--accent, #2f6f5e); outline-offset: 2px; }
.fo-item-b { margin-top: 8px; display: grid; gap: 8px; }
.fo-pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--chip, #f1efe9); white-space: nowrap; }
.fo-badge { font-size: 11.5px; padding: 1px 6px; border-radius: 4px; background: #e8f0ff; color: #24427a; }
.fo-closed .fo-pill { background: #e7f3ec; color: #245c3c; }
.fo-c-unconfirmed { background: #fff1d6; color: #7a4b00; }
.fo-c-declined { background: #fde3e1; color: #8a1f17; }
.fo-c-confirmed { background: #e7f3ec; color: #245c3c; }
.fo-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 720px) { .fo-lanes { grid-template-columns: 1fr; } }
.fo-lane { border-radius: 8px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.fo-lane h4 { margin: 0; font-size: 13px; }
.fo-lane h4 span { font-weight: 400; }
.fo-lane-client { background: #eef5ff; border: 1px solid #c9dcf7; }
.fo-lane-internal { background: #fbf5e8; border: 1px dashed #d9c48f; }
.fo-msg { margin: 0; font-size: 13px; }
.fo-row, .fo-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fo-form { flex-direction: column; align-items: stretch; }
.fo-form > *, .fo-row > input, .fo-row > select { max-width: 100%; }
.fo-lane textarea, .fo-form textarea, .fo-sec textarea { width: 100%; box-sizing: border-box; }
.fo-num { width: 5em; }
.fo-when { font-variant-numeric: tabular-nums; margin-right: 6px; }
.fo-sw { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.fo-field { display: grid; gap: 4px; margin: 8px 0; }
.fo-out { min-height: 1.2em; font-size: 13px; }
.fo-add > summary { list-style: none; display: inline-block; margin-top: 4px; }
.fo-add > summary::-webkit-details-marker { display: none; }
.fo-confirm { display: flex; gap: 6px; margin-top: 4px; }
.fo-confirm-done { color: #245c3c; }

/* wave146-settings-look: the Settings pane rides the standard set-card
 * patterns — switch rows and fields take the set-form metrics. */
.fo-settings .fo-sw { margin: 12px 0; gap: 10px; }
.fo-settings .fo-grouph { margin: 20px 0 2px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #68707d); }
.fo-settings .fo-sw input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: #2A095E; flex: none; }
.fo-settings h3 { font-size: 14px; margin: 20px 0 6px; color: var(--ink); }
.fo-settings .fo-field { font-size: 13px; font-weight: 600; margin: 12px 0 0; }
.fo-settings .fo-field input, .fo-settings .fo-field textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; background: #fff; color: var(--ink); font-weight: 400;
}
.fo-settings .fo-field input[type="number"] { width: 7em; }
.fo-settings .fo-small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fo-settings .fo-row { margin-top: 16px; }

/* wave269-surveys: the Closeout survey block inside Handover — pending link row, the per-survey question editor,
 * and the answers read in the project. */
.fo-sv { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line, #e5e2dc); display: grid; gap: 6px; }
.fo-sv > p { margin: 0; }
.fo-sv .fo-h { margin: 0; }
.fo-sv-link { flex: 1 1 260px; min-width: 0; font-size: 12.5px; padding: 5px 8px; border: 1px solid var(--line, #e5e2dc); border-radius: 6px; background: var(--chip, #f7f6f2); color: inherit; }
.fo-sv-done { background: #e7f3ec; color: #245c3c; }
.fo-sv-ed { border: 1px solid var(--line, #e5e2dc); border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.fo-sv-ed > p { margin: 0; }
.fo-sv-qs { margin: 0; padding-left: 1.6em; display: grid; gap: 6px; }
.fo-sv-qs li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fo-sv-qs input[data-fo-sv-label] { flex: 1 1 240px; min-width: 0; }
.fo-sv-res { display: grid; gap: 0; border: 1px solid var(--line, #e5e2dc); border-radius: 8px; overflow: hidden; }
.fo-sv-a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; font-size: 13px; border-top: 1px solid var(--line, #e5e2dc); flex-wrap: wrap; }
.fo-sv-a:first-child { border-top: 0; }
.fo-sv-a-text { flex-direction: column; gap: 2px; }
.fo-sv-q { color: var(--muted, #66727e); }
.fo-sv-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.fo-sv-stars { color: #a86f00; letter-spacing: 1px; white-space: nowrap; }
.fo-sv-off { color: #d9d4c9; }
/* wave276-surveydefaults: Settings → Field ops — Closeout survey, default questions */
.fo-svd .fo-sv-ed { margin-top: 6px; }
.fo-svd-list { margin: 6px 0; padding-left: 1.6em; display: grid; gap: 4px; font-size: 13.5px; }

/* wave279-fieldops-look (2026-10-30): presentation ONLY — no markup, handler
 * or wording changes. Micheal on the project page's Field ops card: "lets make
 * the bottom of dashboard look better and dont need a bar that big."
 * · Record handover is a normal content-width button: the .fo-form column
 *   stretch (align-items: stretch) no longer applies to buttons in the
 *   Handover section. It stays gold — the section's one main action.
 * · Form paragraphs stop adding browser-default margins on top of the form's
 *   own gap, and section paragraphs take the neighbouring Reviews card's
 *   rhythm (.rv-line: margin 0 0 8px) instead of the default 1em.
 * · Schedule checks read as a compact list: slim hairline rows instead of
 *   stacked boxes, the Exterior toggle right-aligned — the same checkboxes
 *   with the same change handlers, only the row dressing changes. */
.fo-card .fo-form > p { margin: 0; }
.fo-card [data-fo-sec="handover"] .fo-form > .btn { align-self: flex-start; }
.fo-card .fo-sec > p { margin: 0 0 8px; }
.fo-card [data-fo-sec="schedule"] .fo-items { gap: 0; margin: 2px 0 4px; }
.fo-card [data-fo-sec="schedule"] .fo-items > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid var(--line, #e5e2dc); border-radius: 0; padding: 4px 2px; font-size: 13.5px; }
.fo-card [data-fo-sec="schedule"] .fo-items > li:last-child { border-bottom: 0; }
.fo-card [data-fo-sec="schedule"] .fo-items .fo-when { margin-right: 0; }
.fo-card [data-fo-sec="schedule"] .fo-items > li > label { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: none; }

/* wave289-fieldops-buttons (2026-10-30): presentation ONLY — the two add-form
 * action buttons (Punch list "Add", Field change orders "Create draft") sit
 * as direct .btn children of a .fo-form inside details.fo-add, and the form's
 * column stretch made them full-width bars. Same one-line cure as wave279's
 * Handover rule, scoped to the add forms only: content width, left-aligned.
 * Both stay gold — each is its section's one main action. */
.fo-card .fo-add .fo-form > .btn { align-self: flex-start; }
