/* =============================================================================
   mc-core.css — the Mission Control design system, shared with Hope Channel CRM.

   Copied VERBATIM from HCIMissionControl/public/css/app.css (tokens, nav,
   sign-in, page header, type utilities, toolbar buttons, pills, toasts,
   confirm dialogs, and the .ea-wk-* panel/table/stat family that MC's own
   /projects, /statements and /accounts pages wear).

   Don't edit it here. Change the rule in Mission Control and re-copy the
   section, so the two apps can't drift. CRM-specific rules, and the Bootstrap
   theme layer that maps Bootstrap's components onto these tokens, live in
   /admin.css.
   ============================================================================= */

/* ============ Mission Control design tokens (data/wireframe/HANDOFF.md) ============ */
:root {
  --page-bg: #eef0f3;
  --surface: #ffffff;
  --panel: #f6f7f9;
  --ink: #1f2733;
  --ink-2: #3a4453;
  --muted: #5a6472;
  --muted-2: #66707d;
  --faint: #98a1ad;
  --border: rgba(0, 0, 0, 0.08);
  /* A drawn card/control edge, as against --border's wash. The value the
     strategic planner's cards have always used: it is on :root so the shared
     .mc-toolbar-btn can reach it from any page, and --sp-card-border now
     points here so there is one hex rather than two that drift. */
  --card-border: #e3e9ee;
  --track: rgba(0, 0, 0, 0.06);
  --accent: #f0b849;
  --accent-ink: #b07d12;
  /* Budget lines excluded from the budget (brown + strikethrough) — see the
     .mc-excluded block at the end of this file. */
  --excluded-ink: #7a4a1e;
  --dark: #12161d;
  --dark-ribbon: #1b2029;

  /* Status tones. Until the EA cycle desk there was no shared vocabulary for
     "this passed / this needs a look / this is blocking" — every page invented
     its own greens and reds inline — so these are the one set, and a new status
     colour belongs here rather than in a rule.
     Three shades of each because a status has three jobs on a page: the INK of
     an icon or a figure, the BACKGROUND of the row or chip carrying it, and the
     BORDER between them. `--ok-on-dark` exists because #2f9e63 on the dark
     ribbon measures under 3:1 and disappears; the same green is fine on white.
     `--*-text` is the darker tone used for words inside a tinted chip, where
     the ink tone would be too light to read at 12px. */
  --ok: #2f9e63;
  --ok-on-dark: #5cc98c;
  --ok-bg: #f2f9f5;
  --ok-border: #cfe6da;
  /* A placed/matched thing: its own chip pair, deeper than --ok because the
     text sits on a tint rather than on white. */
  --ok-deep: #1f6b41;
  --ok-chip-bg: #e8f4ec;
  --warn: #e0a52f;
  --warn-bg: #fdf9f0;
  --warn-bg-2: #fdf3e0;
  /* The faintest of the three — a whole row tinted, where anything stronger
     would read as an error rather than as "answered, but not by a document". */
  --warn-bg-3: #fffdf7;
  --warn-border: #f0d49a;
  --warn-border-2: #e0bc70;
  --warn-text: #7a5a10;
  --bad: #c9424f;
  /* The stronger red, for a 3px status bar where the softer one is too quiet. */
  --bad-strong: #dc3545;
  --bad-bg: #fdf5f6;
  --bad-bg-2: #fbe3e5;
  --bad-bg-3: #fff8f8;
  --bad-border: #e5a6ad;
  --bad-text: #8a1c28;

  /* Every small caret / chevron / ▲▼ control in the app is sized from this
     one value — the Lightbox rollup cards, the Expenses folder tree, the EA
     row and trip chevrons, and the strategic plan planner's collapse and
     reorder buttons. They were each set locally at 0.6-0.75rem and read as
     too small to aim at, so this is the single knob: raise it here and every
     one of them grows together. Sized in rem so it doesn't inherit the
     shrunken font-size of whatever row it happens to sit in.
     Note the carets themselves are Bootstrap's bi-caret-*-fill icons, NOT
     the ▸/▾ characters they started as: those are Unicode's *small* triangle
     glyphs, whose ink fills about half their em box, so they read as tiny
     next to a heading however far this value is pushed. */
  --caret-size: 1rem;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

body {
  background: var(--page-bg);
  font-family: var(--font-body);
  color: var(--ink);
}
a {
  color: var(--accent-ink);
}
a:hover {
  color: #8a5f08;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 99px;
  border: 2px solid var(--page-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.22);
}
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* ---------- shared nav (AppNav.dc.html) ---------- */
.mc-navbar {
  background: var(--dark) !important;
  height: 54px;
  font-family: var(--font-body);
}
.mc-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.mc-navbar .navbar-brand i {
  color: var(--accent);
}
.mc-navbar .nav-link {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  padding: 7px 13px;
  transition: 0.12s;
}
.mc-navbar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.mc-navbar .nav-link.active {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
}
.mc-navbar .btn-sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12.5px;
}
.mc-navbar .btn-sync:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.mc-navbar .nav-cog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  transition: 0.12s;
}
.mc-navbar .nav-cog:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.mc-navbar .nav-cog.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.mc-navbar .nav-user {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 19px;
  transition: 0.12s;
}
.mc-navbar .nav-user:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.mc-navbar .nav-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

/* ---------- sign-in page ---------- */
.mc-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mc-login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.mc-login-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.mc-login-brand i {
  color: var(--accent);
  margin-right: 8px;
}
.mc-login-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 500;
}
.mc-login-google:hover {
  background: #000;
  color: #fff;
}

/* ---------- page header strip ---------- */
.mc-page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 26px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  background: linear-gradient(180deg, #ffffff, var(--panel));
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: -1.5rem -1.5rem 1.5rem;
}
.mc-page-header .mc-diamond {
  width: 16px;
  height: 16px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 3px;
  flex-shrink: 0;
}
.mc-page-header .mc-kicker-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.mc-page-header .mc-kicker-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  margin-top: 5px;
}
.mc-page-header .mc-header-right {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #6b7480;
  text-align: right;
  line-height: 1.5;
}

.mc-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
}
.mc-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.mc-mono {
  font-family: var(--font-mono);
}

/* ---------- toolbar buttons ----------
   The one pill every page-level toolbar action wears. It started as
   .sp-export-btn on the strategic planner and was lifted here the moment the
   Budget Builder needed the same button — the same "extract when a second
   caller asks the same question" move lib/plan-meta.js and MCHighlight made,
   and for the same reason: two toolbars a click apart that styled their
   actions differently read as two different applications.

   It is deliberately NOT Bootstrap's .btn. These are page actions of equal
   standing — Review, Spell check, History, Add line — where btn-primary picks
   one of them out as THE thing to press, which on a toolbar of five is a claim
   none of them can support. Every colour is a token: the Bootstrap defaults it
   replaces were #0d6efd and #6c757d, two colours in no palette this app has.

   Add --icon for an icon-only button, which needs its horizontal padding
   evened up once the label is gone. */
.mc-toolbar-btn,
.mc-toolbar-btn:hover {
  text-decoration: none;
}
.mc-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  white-space: nowrap;
}
.mc-toolbar-btn:hover:not(:disabled) {
  background: var(--panel);
  color: var(--ink);
}
.mc-toolbar-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
/* A toolbar action that is a TOGGLE rather than a one-shot — /org's Edit,
   which the page stays in. Filled dark rather than the app's amber accent:
   amber already means live/money here (the Live badge, every plan total), and
   a pressed button means neither. Nothing else about the pill changes, so the
   row keeps its shape as one of its buttons goes on and off. */
.mc-toolbar-btn.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.mc-toolbar-btn.is-active:hover {
  background: var(--dark-ribbon);
  border-color: var(--dark-ribbon);
  color: #fff;
}
.mc-toolbar-btn--icon {
  padding-left: 9px;
  padding-right: 9px;
}
/* A count carried INSIDE a toolbar pill — the Budget Builder's unmapped-items
   button. The Lightbox's own signpost wears .lb-unmapped-badge in a corner,
   which is right for an icon-only square and wrong on a pill that already has
   a label to sit beside: a corner badge on a rounded text button hangs off
   the curve. Amber for the same reason the badge is, and it collapses to
   nothing (`d-none`) at zero rather than reading "0 to fix". */
.mc-toolbar-count {
  min-width: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #1b1b1b;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

/* Generic colored pill, shared by the HCI Products Settings tab and the org
   chart's product chips below — HCI Product "Type" (Product/Experimental =
   brown, Metric = green, anything else = neutral gray). Solid enough to
   read on its own (not just a tinted background) since it needs to work
   both inline in a table cell and inside a chip that already has its own
   background. */
.mc-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.mc-pill-brown {
  background: #6f4518;
  color: #fff3e6;
}
.mc-pill-green {
  background: #1e7a4d;
  color: #e8fff2;
}
.mc-pill-yellow {
  background: #b8860b;
  color: #fffbe6;
}
.mc-pill-gray {
  background: var(--track);
  color: var(--muted);
}

/* ============ Toasts (public/js/toast.js) ============ */
.mc-toast-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.mc-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}
.mc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.mc-toast-icon {
  display: flex;
  flex-shrink: 0;
  font-size: 16px;
}
.mc-toast-success .mc-toast-icon { color: #198754; }
.mc-toast-error .mc-toast-icon { color: #dc3545; }
.mc-toast-info .mc-toast-icon { color: #0d6efd; }
.mc-toast-msg {
  flex: 1;
}
.mc-toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  padding: 0 0 0 4px;
}
.mc-toast-close:hover {
  color: #fff;
}
/* The one button a toast can carry (opts.action) — an Undo beside the change
   it would put back. Outlined rather than filled: the toast is already a
   coloured object on the page, and a solid button inside one reads as the
   toast's own subject rather than as something to press. The literals are
   deliberate: a toast is dark in either theme, so a token that flips would
   put dark text on dark. */
.mc-toast-action {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 12px;
  white-space: nowrap;
}
.mc-toast-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ============ Confirm dialogs (public/js/confirm.js) ============
   Deliberately NOT a Bootstrap modal — see the header of that file: nearly
   every confirm in this app is raised from inside one, and Bootstrap doesn't
   stack. So this is its own overlay with its own backdrop, at a z-index above
   Bootstrap's modal (1055) and below the toasts (2000), which is the right
   order: a refusal reported by a toast has to be readable over the dialog
   that produced it. */
.mc-confirm {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(18, 22, 29, 0.45);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.mc-confirm.is-visible {
  opacity: 1;
}
/* The dialog hides its own optional parts with the `hidden` attribute, and
   the display rules below would otherwise outspecify the UA's own [hidden].
   Bootstrap's reboot already says this; stating it here means the module
   does not depend on that. */
.mc-confirm [hidden] {
  display: none !important;
}
.mc-confirm-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  padding: 20px;
  font-family: var(--font-body);
  transform: translateY(-6px);
  transition: transform 0.15s ease;
}
.mc-confirm.is-visible .mc-confirm-box {
  transform: translateY(0);
}
.mc-confirm-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.mc-confirm-msg {
  font-size: 14px;
  color: var(--ink-2);
  margin: 10px 0 0;
}
/* What the confirm is FOR: "this cannot be undone" with no idea what "this"
   is, is a dialog nobody can weigh — so the consequences go here, quietly,
   under the question rather than inside it. */
.mc-confirm-detail {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 0;
}
.mc-confirm-field {
  display: block;
  margin: 14px 0 0;
}
.mc-confirm-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.mc-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
/* The app's own button, not Bootstrap's: .btn-primary resolves to #0d6efd,
   a blue in no palette here — the same finding the .mc-toolbar-btn block
   documents. */
.mc-confirm-btn {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mc-confirm-btn:hover {
  background: var(--panel);
  border-color: var(--muted-2);
}
.mc-confirm-btn.is-primary {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.mc-confirm-btn.is-primary:hover {
  background: var(--dark-ribbon);
  border-color: var(--dark-ribbon);
}
.mc-confirm-btn.is-danger {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.mc-confirm-btn.is-danger:hover {
  background: var(--bad-text);
  border-color: var(--bad-text);
}
.mc-confirm-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============ Workspace panels, tables and stat tiles (.ea-wk-*) ============ */
/* ---- the three figures ------------------------------------------------- */
.ea-wk-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ea-wk-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ea-wk-statcap {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.ea-wk-statnum {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
/* An amount is read digit by digit against the ones above and below it. */
.ea-wk-statnum.is-money {
  font-family: var(--font-mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.ea-wk-statof {
  font-size: 17px;
  color: var(--faint);
  font-weight: 500;
}
.ea-wk-statsub {
  font-size: 11.5px;
  color: var(--muted);
}

.ea-wk-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
}
.ea-wk-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.ea-wk-tbtn {
  flex: none;
}
.ea-wk-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 180px;
  display: flex;
  align-items: center;
}
.ea-wk-search > i {
  position: absolute;
  left: 11px;
  color: var(--faint);
  font-size: 13px;
  pointer-events: none;
}
.ea-wk-search input {
  width: 100%;
  padding: 7px 32px 7px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
}
.ea-wk-search input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--muted-2);
}
/* The browser's own search-cancel button sits where this one does and cannot
   be styled to match, so it is removed rather than left doubled up. */
.ea-wk-search input::-webkit-search-cancel-button {
  display: none;
}
.ea-wk-clear {
  position: absolute;
  right: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
}
.ea-wk-clear:hover {
  background: var(--track);
  color: var(--ink);
}

.ea-wk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  /* Below this the six columns stop being readable; the panel is full width by
     then, so it is the page that scrolls rather than a box inside it. */
  min-width: 560px;
}
.ea-wk-table thead th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  white-space: nowrap;
  /* The header stays put while the pile is worked down. It sticks to the top
     of the scrolling page, so it clears the EA's fixed header. */
  position: sticky;
  top: var(--ea-sticky-h, 0px);
  z-index: 1;
}
.ea-wk-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--track);
  vertical-align: middle;
}
.ea-wk-table tbody tr:last-child td {
  border-bottom: 0;
}
/* Without the panel's clip, a hovered or selected last row would square off the
   card's bottom corners. */
.ea-wk-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 11px;
}
.ea-wk-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 11px;
}
.ea-wk-row {
  cursor: pointer;
}
.ea-wk-row:hover td {
  background: var(--panel);
}
/* The selected row is what the document column is showing. A left edge rather
   than a fill, so it stays legible over the hover state. */
.ea-wk-row.is-on td {
  background: var(--warn-bg-3);
}
.ea-wk-row.is-on td:first-child {
  box-shadow: inset 3px 0 0 var(--dark);
}
.ea-wk-th-state,
.ea-wk-td-state {
  width: 26px;
  padding-right: 0 !important;
}
.ea-wk-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.ea-wk-dot.is-unread {
  background: var(--warn);
}
/* Read, but still missing an account or a department — the row that needs work
   done to it, so it keeps the amber of the unread state as a ring. */
.ea-wk-dot.is-uncoded {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--warn);
}
/* Coded, and only a confirmation away: a neutral ring, since nothing is missing
   from it. Four states rather than three, because "nothing coded yet" and
   "coded, awaiting a tick" are different jobs. */
.ea-wk-dot.is-todo {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
.ea-wk-dot.is-done {
  background: var(--ok);
}
.ea-wk-num {
  text-align: right;
}
/* A numeric column's HEADING has to sit over its numbers. `.ea-wk-table thead
   th` sets text-align: left and outspecifies a lone class, so every
   `th.ea-wk-num` on every surface wearing these classes — the EA workspace's
   seven, the projects list's four, the accounts page's — rendered left while
   the figures under it ran right. */
.ea-wk-table thead th.ea-wk-num {
  text-align: right;
}
.ea-wk-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ea-wk-cur {
  color: var(--muted);
  font-size: 11px;
}
.ea-wk-supplier {
  font-weight: 500;
  min-width: 124px;
}
/* The two coded columns ellipsise rather than wrap: an account name and a
   department name are both long, and a table whose rows are different heights
   is much harder to run an eye down. */
/* Nine columns have to fit a panel of about 900px without the wrap being able
   to scroll (an overflow there would make it a scroll container and strand the
   sticky header). So the three long text columns are capped and ellipsised,
   with the full value in each cell's title. */
.ea-wk-acct {
  color: var(--ink-2);
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ea-wk-dept {
  color: var(--ink-2);
  max-width: 152px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ea-wk-blank {
  color: var(--faint);
  font-style: italic;
  font-size: 12px;
}

/* ============ Filter chips and toolbar selects (.pl-*, the /projects list) ============ */
.pl-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.pl-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 3px 11px;
  white-space: nowrap;
}
.pl-chip:hover {
  color: var(--ink);
  border-color: var(--muted-2);
}
.pl-chip.is-active {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
  background: var(--warn-bg);
}
/* A chip whose count has fallen to zero under the other filters stays
   readable but says so — hiding it would make the row of chips jump about as
   you type, which is worse than a quiet one. */
.pl-chip.is-empty {
  opacity: 0.45;
}
.pl-chip-n {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
}
.pl-chip.is-active .pl-chip-n {
  color: var(--accent-ink);
}
.pl-selects {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.pl-selects select {
  width: auto;
}

