/* Simplification pass (owner, 2026-10-05): leadership pages. */

/* Hint text as a faint placeholder, so a box reads as empty. */
.ui-faint-ph::placeholder { opacity: .55; }

/* A small text link where a button was (Offer letter template). */
.ui-small-link { font-size: .85rem; }

/* Labels above their boxes (Invoicing: Prepared, Due). */
.form-row label.ui-stacked-label { display: flex; flex-direction: column; gap: 4px; }

/* A form on one line: value, button, short note. */
.ui-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ui-dollar { display: inline-flex; align-items: center; gap: 4px; }

/* Page heading with its main buttons on the right (Proposals). */
.page-head.ui-head-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.ui-head-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* An add/create row whose button lines up with the boxes beside it. */
.ui-create-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.ui-create-row > label { flex: 1 1 14rem; min-width: 0; }
.ui-create-row > button { flex: 0 0 auto; }

/* Performance: year chooser, tools menu and the readiness checklist. */
.ui-year-form { gap: .5rem; align-items: center; margin-bottom: .5rem; }
.ui-year-form label { display: inline-flex; align-items: center; gap: .5rem; }
.ui-perf-nav .ui-current, .ui-perf-nav [aria-current="page"] { border-color: var(--accent); }
.ui-menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ui-menu-list a { display: block; padding: 6px 4px; }
.ui-menu-list a[aria-current="page"] { font-weight: 700; }
.ui-subswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: -.4rem 0 1rem; }
.ui-subswitch a { padding: 6px 14px; font-size: .88rem; text-decoration: none; color: var(--text); }
.ui-subswitch a[aria-current="page"] { background: var(--accent); color: var(--on-primary, #fff); font-weight: 600; }
.ui-readiness td, .ui-readiness th { vertical-align: top; }
.ui-check { display: inline-flex; width: 1.4rem; height: 1.4rem; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: .85rem; cursor: default; }
.ui-check-yes { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.ui-check-no { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }

/* Permissions: one line per page, and a quiet mark where a cell cannot change. */
.permissions-grid th.ui-perm-page { text-align: left; white-space: nowrap; max-width: 20rem; overflow: hidden; text-overflow: ellipsis; }
.ui-perm-desc { font-weight: normal; }
.permissions-grid td.ui-perm-cell { text-align: center; min-width: 6rem; }
.ui-perm-fixed { display: inline-flex; width: 1.15rem; height: 1.15rem; align-items: center; justify-content: center; color: var(--text-light); opacity: .7; }

/* Labor categories: delete as a small plain button in its own column. */
.lcat-row > button.ui-lcat-del { width: auto; justify-self: start; font-size: .78rem; padding: 3px 10px; min-height: 0; white-space: nowrap; }
.lcat-row > button.ui-lcat-del:disabled { opacity: .45; cursor: not-allowed; }

/* Spending: blocked categories summarized on one line. */
.ui-blocked-cats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.ui-blocked-cats > span { flex: 1 1 18rem; min-width: 0; }

/* Accounting: dates at the portal's usual height; first-run message. */
.ac .ac-period input[type="date"] { min-height: 0; padding: 8px 10px; margin-top: 4px; max-width: 11rem; }
.ac .ac-first-run { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ac .ac-first-run p { margin: 0; }

/* Opportunities: each search term with its switch and remove in fixed places. */
.ui-terms { list-style: none; margin: 0; padding: 0; }
.ui-term { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ui-term.is-off .ui-term-name { color: var(--text-light); }
.ui-term-name { overflow-wrap: anywhere; }
.ui-switch { position: relative; width: 36px; height: 20px; border-radius: 999px; border: 1px solid var(--field-line); background: var(--surface-2); cursor: pointer; padding: 0; vertical-align: middle; }
.ui-switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.ui-switch-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px var(--shadow); transition: left .15s; }
.ui-switch[aria-checked="true"] .ui-switch-knob { left: 18px; }
.ui-remove { border: 0; background: none; color: var(--text-light); font-size: 1.15rem; line-height: 1; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; padding: 0; }
.ui-remove:hover { background: var(--surface-2); color: var(--danger); }

/* Outside reviewers: shared files as file icons, each with a small remove. */
.ui-file-grid { margin-top: 14px; }
.ui-file-tile { position: relative; }
.ui-file-tile .ui-file-remove { position: absolute; top: 2px; right: 2px; }

/* Mileage review: the status filters and the view switch on one row. */
.ui-mileage-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: .6rem 0; }
.ui-mileage-toolbar .mileage-inbox-filters, .ui-mileage-toolbar .ui-mileage-mode { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ui-mileage-toolbar .ui-mileage-mode { padding-left: 16px; border-left: 1px solid var(--line); }

/* Intelligence briefings: three short boxes in one form; a setup problem
   shown beside its own setting. */
.ui-intel-form > fieldset > .admin-box { margin: 0 0 1rem; }
.ui-field-problem { color: var(--warn); font-size: .88rem; margin: .4rem 0; }

/* Tiles that open their details over the page (Rollout). */
.ui-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.ui-tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.ui-rollout-todo { border-left: 4px solid var(--warn); }
.ui-rollout-ok { border-left: 4px solid var(--ok); }
.ui-tile-open { border: 0; background: none; padding: 0; text-align: left; font: inherit; font-weight: 600; color: var(--heading); cursor: pointer; overflow-wrap: anywhere; }
.ui-tile-open:hover { color: var(--accent); text-decoration: underline; }
.ui-rollout-hold { margin: .2rem 0 0; }

/* A tick on the same line as its words (Careers). */
.form-grid label.ui-check-line { flex-direction: row; align-items: center; gap: 8px; }

/* Benefit cards as team members see them, with the editing controls under. */
.ui-admin-tiles .tile { display: flex; flex-direction: column; }
.ui-tile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
