/* Design system — calm, professional, dense where it matters.
   Neutral surfaces, one accent, color used for meaning (status, department, venue) as dots/bars/soft tints. */
@font-face { font-family: "Inter CE"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

html[data-theme="light"], :root {
  --ce-bg: var(--tk-ground); --ce-surface: var(--tk-white); --ce-surface-2: var(--tk-tray); --ce-border: var(--tk-line); --ce-border-strong: var(--tk-line-strong);
  --ce-text: var(--tk-charcoal); --ce-text-2: var(--tk-text-2); --ce-muted: var(--tk-slate); --ce-subtle: var(--tk-slate);
  --ce-accent: var(--brand-text); --ce-accent-2: var(--brand-text-2); --ce-accent-soft: var(--brand-50);
  --ce-header: var(--tk-charcoal); --ce-header-2: var(--tk-charcoal-2); --ce-header-text: var(--tk-white);
  --ce-ok: var(--tk-ok); --ce-warn: var(--tk-warn); --ce-bad: var(--tk-bad);
  --ce-radius: var(--tk-r-card); --ce-radius-sm: var(--tk-r-field);
  --ce-shadow: var(--tk-depth-card); --ce-shadow-lg: var(--tk-depth-raised);
  --ce-font: "Inter CE", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ce-well: var(--tk-tray); --ce-well-depth: var(--tk-depth-well); --ce-raised: var(--tk-depth-raised);
  --ce-main: var(--tk-charcoal); --ce-main-hover: var(--tk-charcoal-2); --ce-main-text: var(--tk-white);
  --ce-main-depth: var(--tk-fill-edge), 0 1px 2px rgb(var(--tk-ink-rgb) / .24), 0 6px 14px -6px rgb(var(--tk-ink-rgb) / .45);
  --ce-pressed-bg: var(--brand-50); --ce-pressed: inset 0 1px 2px rgb(var(--brand-rgb) / .22), inset 0 0 0 1px var(--ce-chip-ring); --ce-chip-ring: var(--brand-100);
  --ce-ring: 0 0 0 2px var(--brand-700), 0 0 0 6px rgb(var(--brand-rgb) / .16);
  --ce-ok-tint: var(--tk-ok-tint); --ce-ok-ink: var(--tk-ok-ink); --ce-bad-tint: var(--tk-bad-tint); --ce-bad-ink: var(--tk-bad-ink);
  --ce-warn-tint: var(--tk-warn-tint); --ce-warn-ink: var(--tk-warn-ink);

  /* Django admin variables, mapped onto the system */
  --primary: var(--brand-700); --secondary: var(--tk-charcoal); --accent: var(--tk-white); --primary-fg: var(--tk-white);
  --body-fg: var(--ce-text-2); --body-bg: var(--ce-bg); --body-quiet-color: var(--ce-muted); --body-medium-color: var(--ce-text-2); --body-loud-color: var(--ce-text);
  --header-color: var(--ce-header-text); --header-branding-color: var(--tk-white); --header-bg: var(--ce-header); --header-link-color: var(--ce-header-text);
  --breadcrumbs-fg: var(--ce-muted); --breadcrumbs-link-fg: var(--ce-text-2); --breadcrumbs-bg: transparent;
  --link-fg: var(--ce-accent); --link-hover-color: var(--ce-accent-2); --link-selected-fg: var(--ce-accent-2);
  --hairline-color: var(--ce-border); --border-color: var(--ce-border-strong);
  --darkened-bg: var(--ce-surface-2); --selected-bg: var(--ce-pressed-bg); --selected-row: var(--ce-pressed-bg);
  --error-fg: var(--ce-bad-ink); --message-success-bg: var(--ce-ok-tint); --message-warning-bg: var(--ce-warn-tint); --message-error-bg: var(--ce-bad-tint);
  --button-fg: var(--ce-text); --button-bg: var(--ce-surface); --button-hover-bg: var(--ce-surface-2);
  --default-button-bg: var(--ce-main); --default-button-hover-bg: var(--ce-main-hover);
  --delete-button-bg: var(--tk-bad); --delete-button-hover-bg: var(--ce-bad-ink);
  --close-button-bg: var(--ce-surface); --close-button-hover-bg: var(--ce-surface-2);
  --object-tools-fg: var(--ce-text); --object-tools-bg: var(--ce-surface); --object-tools-hover-bg: var(--ce-surface-2);
  --font-family-primary: var(--ce-font);
}

/* ---------- base */
html, body { background: var(--ce-bg); }
body { font-family: var(--ce-font); font-size: 14px; color: var(--ce-text-2); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4 { color: var(--ce-text); letter-spacing: -.01em; }
#content > h1, .ce-h1 { font-size: 22px; font-weight: 650; margin: 2px 0 16px; color: var(--ce-text); }
a:link, a:visited { color: var(--link-fg); }
.ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.ic.lg { width: 20px; height: 20px; }
.muted { color: var(--ce-muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar */
#header.ce-top { display: flex; align-items: center; gap: 6px; padding: 0 16px; height: 52px; background: var(--ce-header);
  color: var(--ce-header-text); flex-wrap: nowrap; border-bottom: 1px solid #ffffff10; position: sticky; top: 0; z-index: 900; }
.ce-brand { display: flex; align-items: center; gap: 9px; color: #fff !important; text-decoration: none !important; font-weight: 700;
  font-size: 15px; letter-spacing: -.01em; margin-right: 10px; white-space: nowrap; }
.ce-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-700); display: grid;
  place-items: center; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.ce-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.ce-nav > .ce-dd > button, .ce-nav > a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 7px;
  color: var(--ce-header-text) !important; text-decoration: none !important; font-size: 13.5px; font-weight: 500; background: none;
  border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ce-nav > .ce-dd > button:hover, .ce-nav > a:hover, .ce-nav > .on, .ce-dd.open > button { background: #ffffff12; color: #fff !important; }
.ce-nav .ic { opacity: .85; }
.ce-dd { position: relative; }
.ce-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--ce-surface);
  border: 0; border-radius: var(--tk-r-inner); box-shadow: var(--ce-shadow-lg); padding: 6px; z-index: 950; }
.ce-menu.right { left: auto; right: 0; }
/* nav-rail: the gear menu holds Look & templates too, so a long menu scrolls inside the window instead of running off it */
.ce-menu { max-height: calc(100 * var(--ce-vh, 1vh) - 72px); overflow-y: auto; }
.ce-dd.open > .ce-menu { display: block; }
.ce-menu a, .ce-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px;
  color: var(--ce-text-2) !important; text-decoration: none !important; font-size: 13.5px; background: none; border: 0; cursor: pointer;
  font-family: inherit; text-align: left; }
.ce-menu a:hover, .ce-menu button:hover { background: var(--ce-surface-2); color: var(--ce-text) !important; }
.ce-menu .ic { color: var(--ce-muted); }
.ce-menu small { margin-left: auto; padding-left: 12px; flex: none; color: var(--ce-text); font-weight: 800; font-size: 12px; }
.ce-menu a, .ce-menu button { box-sizing: border-box; }  /* keeps counts inside the menu */
.ce-menu hr { border: 0; border-top: 1px solid var(--ce-border); margin: 6px 4px; }
.ce-menu .lbl { padding: 6px 10px 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ce-subtle); font-weight: 600; }
.ce-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ce-bad); color: #fff; font-size: 12px;
  font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.ce-badge.soft { background: var(--ce-accent-soft); color: var(--ce-accent); }
.ce-search { position: relative; width: clamp(180px, calc(22 * var(--ce-vw, 1vw)), 340px); margin: 0 6px; }
#header .ce-search input[type=search] { width: 100%; box-sizing: border-box; height: 34px; border-radius: 8px; border: 1px solid #ffffff1c; background: #ffffff0d;
  color: #fff; padding: 0 12px 0 34px; font: 13.5px var(--ce-font); outline: none; }
#header .ce-search input::placeholder { color: var(--tk-quiet-dark); }
#header .ce-search input[type=search]:focus { background: #fff; color: var(--ce-text); border-color: var(--ce-accent); }
.ce-search > .ic { position: absolute; left: 11px; top: 9px; color: var(--tk-quiet-dark); pointer-events: none; }
.ce-search kbd { position: absolute; right: 9px; top: 8px; font: 12px var(--ce-font); color: var(--tk-quiet-dark); border: 1px solid #ffffff24;
  border-radius: 4px; padding: 0 5px; }
.ce-results { display: none; position: absolute; top: 40px; left: 0; right: 0; min-width: 380px; background: var(--ce-surface);
  border: 0; border-radius: var(--tk-r-inner); box-shadow: var(--ce-shadow-lg); padding: 6px; z-index: 960;
  max-height: calc(70 * var(--ce-vh, 1vh)); overflow: auto; }
.ce-results.show { display: block; }
.ce-results .grp { padding: 8px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ce-subtle); font-weight: 600; }
.ce-results a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 6px; color: var(--ce-text-2) !important;
  text-decoration: none !important; }
.ce-results a.act, .ce-results a:hover { background: var(--ce-pressed-bg); }
.ce-results a span.s { margin-left: auto; color: var(--ce-subtle); font-size: 12px; white-space: nowrap; }
.ce-results .empty { padding: 14px; color: var(--ce-muted); }
.ce-iconbtn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--ce-header-text);
  background: none; border: 0; cursor: pointer; }
.ce-iconbtn:hover, .ce-dd.open > .ce-iconbtn { background: #ffffff12; color: #fff; }
.ce-iconbtn .ce-badge { position: absolute; top: 2px; right: 0; }
.ce-new { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--brand-700);
  color: var(--brand-on-700); border: 0; font: 600 13px var(--ce-font); cursor: pointer; }
.ce-new:hover { background: var(--brand-800); }
.ce-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
  border: 0; cursor: pointer; }
.ce-userhead { padding: 10px; border-bottom: 1px solid var(--ce-border); margin-bottom: 6px; }
.ce-userhead b { display: block; color: var(--ce-text); }
.ce-userhead span { font-size: 12px; color: var(--ce-muted); }
/* tighter bar on laptop screens: keep the words, drop the arrows, shrink search, brand mark only */
/* html.ce-narrow / ce-tight are set by ceFit from the *scaled* width (a media query would read the raw window). */
html.ce-narrow .ce-nav > .ce-dd > button .ic.sm { display: none; }
html.ce-narrow .ce-nav > .ce-dd > button, html.ce-narrow .ce-nav > a { padding: 7px 8px; gap: 6px; }
html.ce-narrow .ce-brand { font-size: 0; gap: 0; margin-right: 6px; }
html.ce-narrow .ce-search { width: clamp(150px, calc(15 * var(--ce-vw, 1vw)), 220px); }
html.ce-narrow .ce-search kbd { display: none; }
html.ce-tight .ce-nav > a span, html.ce-tight .ce-nav > .ce-dd > button span { display: none; }
@media (max-width: 760px) { .ce-search { display: none; } #header.ce-top { overflow-x: auto; flex-shrink: 0; } }

/* open-screen tabs */
#ce-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 16px; background: var(--ce-header); border-bottom: 1px solid var(--ce-border);
  scrollbar-width: thin; }
#ce-tabs:empty { display: none; }
.ce-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; border-radius: 7px 7px 0 0; margin-top: 4px;
  color: var(--tk-quiet-dark) !important; font-size: 12.5px; font-weight: 500; text-decoration: none !important; white-space: nowrap; }
.ce-tab:hover { color: #fff !important; background: #ffffff0d; }
.ce-tab.on { background: var(--ce-bg); color: var(--ce-text) !important; }
.ce-tab .x { opacity: .5; font-size: 14px; line-height: 1; padding: 0 3px; border-radius: 4px; }
.ce-tab .x:hover { opacity: 1; background: #ffffff22; }
@media (max-width: 760px) { #ce-tabs { display: none; } }

/* ---------- admin chrome: Django admin's own parts on the look's shared parts (look-2-parts) */
div.breadcrumbs { padding: 12px 24px 0; background: transparent; color: var(--ce-muted); font-size: 12.5px; border: 0; }
div.breadcrumbs a { color: var(--ce-text-2); }
#content { padding: 18px 24px 32px; }
/* cards: modules and inline groups rest on the ground (no border, radius 18); a module inside a card stays flat */
.module, fieldset.module, .inline-group { background: var(--ce-surface); border: 0; border-radius: var(--tk-r-card);
  box-shadow: var(--ce-shadow); overflow: hidden; }
.inline-group .module, .inline-group fieldset.module, .module .module, .module fieldset.module { box-shadow: none; border-radius: 0; background: transparent; }
.module h2, .module caption, .inline-group h2, fieldset.module h2 { background: var(--ce-surface); color: var(--ce-text); font-family: var(--tk-font-display); font-weight: 700;
  font-size: 15px; letter-spacing: -.005em; text-transform: none; padding: 13px 18px 11px; border-bottom: 1px solid var(--ce-border); }
.module caption a, .module h2 a { color: var(--ce-text) !important; }
html fieldset .fieldset-heading, html fieldset .inline-heading, html :not(.inline-related) .collapse summary { border: 0; border-bottom: 1px solid var(--ce-border);
  background: var(--ce-surface); color: var(--ce-text); }  /* Django draws these in the header color with a dark frame */
#nav-sidebar { background: var(--ce-surface); border-right: 1px solid var(--ce-border); }
#nav-sidebar .module { border: 0; box-shadow: none; border-radius: 0; margin-bottom: 6px; background: transparent; }
#nav-sidebar .module caption { background: transparent; border: 0; padding: 12px 14px 4px; font-family: var(--ce-font); font-size: 12px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ce-subtle); font-weight: 600; }
#nav-sidebar .module caption a { color: var(--ce-subtle) !important; }
#nav-sidebar th, #nav-sidebar td { border: 0; padding: 6px 14px; font-size: 13px; }
#nav-sidebar th a { color: var(--ce-text-2) !important; font-weight: 500; }
#nav-sidebar tr.current-model { background: var(--ce-pressed-bg); }
#nav-sidebar tr.current-model th a { color: var(--ce-accent) !important; }
#nav-sidebar .addlink { font-size: 0; }
#nav-sidebar .addlink::before { font-size: 16px; }
#nav-filter { border-radius: var(--tk-r-field); border: 1px solid transparent; margin: 10px; width: calc(100% - 20px); padding: 7px 10px; }
.toggle-nav-sidebar { background: var(--ce-surface); border-right: 1px solid var(--ce-border); }
/* fields: a well at rest (radius 12); focused, the field rises to white with a 2 px ring and a soft halo in the company
   color; errors ring red with the message as a flat red tint */
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=tel], input[type=date],
input[type=time], input[type=search], input[type=datetime-local], textarea, select, .vTextField { border: 1px solid transparent; border-radius: var(--tk-r-field);
  padding: 6px 10px; font-family: var(--ce-font); background: var(--ce-well); box-shadow: var(--ce-well-depth); color: var(--ce-text); }
input:focus, textarea:focus, select:focus { border-color: transparent !important; outline: none; background: var(--ce-surface); box-shadow: var(--ce-ring); }
input[readonly], input:disabled, textarea:disabled, select:disabled { box-shadow: none; opacity: .75; }
html .errors input, html .errors select, html .errors textarea, html td ul.errorlist + input, html td ul.errorlist + select, html td ul.errorlist + textarea, html .errors .select2-selection { border-color: transparent !important; box-shadow: 0 0 0 2px var(--tk-bad), 0 0 0 6px rgb(var(--tk-bad-rgb) / .14) !important; }
.errornote, ul.errorlist li { background: var(--ce-bad-tint); color: var(--ce-bad-ink); border: 0; border-radius: var(--tk-r-field); box-shadow: none; }
.errornote { padding: 10px 14px; font-weight: 600; }
ul.errorlist li { padding: 5px 10px; margin: 0 0 4px; font-size: 13px; }
ul.errorlist { margin: 0 0 6px; background: transparent; }
/* lookup boxes (select2) match the fields */
html .select2-container--admin-autocomplete .select2-selection--single, html .select2-container--admin-autocomplete .select2-selection--multiple {
  background: var(--ce-well); border: 1px solid transparent; border-radius: var(--tk-r-field); box-shadow: var(--ce-well-depth); }
html .select2-container--admin-autocomplete.select2-container--focus .select2-selection, html .select2-container--admin-autocomplete.select2-container--open .select2-selection {
  background: var(--ce-surface); border-color: transparent; box-shadow: var(--ce-ring); }
html .select2-container--admin-autocomplete.select2-container--open .select2-selection--single, html .select2-container--admin-autocomplete.select2-container--open .select2-selection--multiple { border-radius: var(--tk-r-field); }
html .select2-container--admin-autocomplete .select2-selection--single .select2-selection__rendered { color: var(--ce-text); }
html .select2-container--admin-autocomplete .select2-dropdown { background: var(--ce-surface); border: 0; border-radius: var(--tk-r-field); box-shadow: var(--ce-shadow-lg); overflow: hidden; }
html .select2-container--admin-autocomplete .select2-search--dropdown .select2-search__field { background: var(--ce-well); border: 1px solid transparent; border-radius: 10px; box-shadow: var(--ce-well-depth); }
html .select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] { background: var(--ce-pressed-bg); color: var(--ce-text); }
html .select2-container--admin-autocomplete .select2-results__option[aria-selected=true] { background: var(--ce-surface-2); color: var(--ce-text); }
html .select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice { background: var(--ce-pressed-bg); border: 0; border-radius: var(--tk-r-pill);
  box-shadow: inset 0 0 0 1px var(--ce-chip-ring); color: var(--ce-text); }
/* buttons: pills. Save (and Search, Add, the event header's main action) in charcoal with its top highlight; the rest
   white and raised; Delete red. Pressed goes down 1 px; disabled is flat. */
.button, input[type=submit], input[type=button], .submit-row input, a.button { border-radius: var(--tk-r-pill); font-family: var(--ce-font); font-weight: 600;
  padding: 8px 16px; border: 0; background: var(--ce-surface); color: var(--ce-text); box-shadow: var(--ce-raised); }
.button:hover, input[type=submit]:hover, input[type=button]:hover, .submit-row input:hover, a.button:hover { background: var(--ce-surface-2); }
.button.default, input[type=submit].default, .submit-row input.default, #changelist-search input[type=submit], #toolbar input[type=submit], .object-tools a.addlink, .ce-btn.primary, .ce-main { background: var(--ce-main); color: var(--ce-main-text) !important; box-shadow: var(--ce-main-depth); }
.button.default:hover, input[type=submit].default:hover, .submit-row input.default:hover, #changelist-search input[type=submit]:hover, #toolbar input[type=submit]:hover, .object-tools a.addlink:hover, .ce-btn.primary:hover, .ce-main:hover { background: var(--ce-main-hover); }
.button:active, input[type=submit]:active, input[type=button]:active, a.button:active, .ce-btn:active, .object-tools a:active { transform: translateY(1px); box-shadow: var(--ce-shadow); }
.button:disabled, .button.disabled, input[type=submit]:disabled, input[type=button]:disabled, .ce-btn:disabled, .ce-btn[aria-disabled=true] {
  box-shadow: none !important; opacity: .5; transform: none; cursor: default; }
html .submit-row a.deletelink, html a.deletelink.button, html .button.delete, html .ce-btn.danger { background: var(--tk-bad); color: var(--tk-white) !important; border-radius: var(--tk-r-pill);
  box-shadow: var(--tk-fill-edge), 0 4px 10px -4px rgb(var(--tk-bad-rgb) / .55); }
html .submit-row a.deletelink:hover, html a.deletelink.button:hover, html .button.delete:hover, html .ce-btn.danger:hover { background: var(--ce-bad-ink); }
/* the list search's button: Django's changelists.css types its own grey (1,1,2), so this one names the form too */
html #toolbar form input[type=submit] { border: 0; background: var(--ce-main); color: var(--ce-main-text); box-shadow: var(--ce-main-depth); border-radius: var(--tk-r-pill);
  padding: 0 16px; font: 600 13px var(--ce-font); height: 34px; }
html #toolbar form input[type=submit]:hover { background: var(--ce-main-hover); }
html .submit-row a.closelink { border-radius: var(--tk-r-pill); background: var(--ce-surface); color: var(--ce-text); box-shadow: var(--ce-raised); }
html .submit-row { background: var(--ce-surface); border: 0; border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); }
html #changelist .actions, html #changelist-filter, html #changelist .paginator { background: var(--ce-surface); }
html #changelist .actions { border-bottom: 1px solid var(--ce-border); }
html #changelist-filter { border: 0; border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); }
html #changelist-filter h2 { background: transparent; color: var(--ce-text); text-transform: none; font-family: var(--tk-font-display); font-weight: 700; font-size: 15px; }
html #changelist-filter h3 { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ce-subtle); }
html #changelist-filter li { padding-left: 0; }
html #changelist-filter li a { display: inline-block; padding: 3px 10px; border-radius: var(--tk-r-pill); }
html #changelist-filter li a:hover { background: var(--ce-surface-2); }
html #changelist-filter li.selected { border-left: 0; padding-left: 0; margin-left: 0; }
html #changelist-filter li.selected a { background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); color: var(--ce-text) !important; font-weight: 600; }
/* change lists: a resting card with quiet headers and hairline rows; the picked row is the company's 50 */
html #changelist .results { background: var(--ce-surface); border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); }
/* Django's own lists: #changelist is the card itself, so the table and the filter panel inside it stay flat */
html #changelist.module .results { box-shadow: none; border-radius: 0; }
html #changelist.module #changelist-filter { box-shadow: none; border-radius: 0; border-left: 1px solid var(--ce-border); }
html #changelist table thead th, html .inline-group thead th, html .inline-group .tabular th { background: var(--ce-surface); color: var(--ce-muted); font-size: 12.5px; text-transform: none;
  letter-spacing: 0; font-weight: 600; border-top: 0; border-bottom: 1px solid var(--ce-border); }
html #changelist table thead th a, html .inline-group thead th a { color: var(--ce-muted); }
html #changelist table tbody tr:hover td, html #changelist table tbody tr:hover th { background: var(--ce-surface-2); }
html #changelist table tbody tr.selected td, html #changelist table tbody tr.selected th { background: var(--ce-pressed-bg); }
#result_list td, #result_list th { border-bottom: 1px solid var(--ce-border); padding: 9px 10px; font-size: 13.5px; vertical-align: middle; }
#result_list tbody tr:last-child td, #result_list tbody tr:last-child th { border-bottom: 0; }
html #toolbar { background: transparent; border: 0; padding: 0 0 10px; }
html #toolbar form input[type=text] { width: min(420px, calc(60 * var(--ce-vw, 1vw))); height: 34px; }
html #toolbar form #searchbar { height: 34px; box-sizing: border-box; padding: 0 12px; border: 1px solid transparent; font-size: 14px; vertical-align: middle; }  /* Django sizes it by id (2,0,1) */
html #changelist .toplinks { padding: 6px 14px 10px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
html #changelist .toplinks a { margin: 0; }
/* Age of open proposals and prospects: amber, then red */
.ce-age { white-space: nowrap; }
.ce-age-warn { color: var(--ce-warn-ink); font-weight: 800; }
.ce-age-late { color: var(--ce-bad-ink); font-weight: 800; }
.object-tools a:link, .object-tools a:visited { background: var(--ce-surface); color: var(--ce-text); border: 0; box-shadow: var(--ce-raised);
  border-radius: var(--tk-r-pill); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; padding: 8px 14px; }
.object-tools a:hover { background: var(--ce-surface-2); }
.object-tools a.addlink:link, .object-tools a.addlink:visited { background: var(--ce-main); color: var(--ce-main-text); box-shadow: var(--ce-main-depth); }
.object-tools a.addlink:hover { background: var(--ce-main-hover); }
/* messages, the practice-copy band and the updating band: flat tints from the status tokens, never raised */
ul.messagelist li { border-radius: var(--tk-r-field); margin: 0 24px 8px; font-size: 13.5px; box-shadow: none; background-color: var(--ce-ok-tint); color: var(--ce-ok-ink); }
ul.messagelist li.warning { background-color: var(--ce-warn-tint); color: var(--ce-warn-ink); }
ul.messagelist li.error { background-color: var(--ce-bad-tint); color: var(--ce-bad-ink); }
ul.messagelist li.info, ul.messagelist li.debug { background-color: var(--ce-surface-2); color: var(--ce-text-2); }
ul.messagelist li a { color: inherit; }
.ce-practice, .ce-updating { background: var(--ce-warn-tint); color: var(--ce-warn-ink); border-bottom: 0; box-shadow: none; padding: 6px 20px; font-size: 13px; text-align: center; }
.ce-updating { font-weight: 700; text-align: left; padding: 8px 20px; }
/* paginators follow the picked state */
html .paginator { color: var(--ce-muted); }
html .paginator a:link, html .paginator a:visited { border-radius: var(--tk-r-pill); background: transparent; color: var(--ce-text-2); padding: 3px 9px; }
html .paginator a:hover { background: var(--ce-surface-2); }
html .paginator .this-page { display: inline-block; border-radius: var(--tk-r-pill); background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); color: var(--ce-text); padding: 3px 9px; }
.help, .help-tooltip { color: var(--ce-muted); }
.aligned label { color: var(--ce-text-2); font-weight: 500; }
.form-row { border-bottom: 1px solid var(--ce-border); }
.inline-group .tabular td, .inline-group .tabular th { border-bottom: 1px solid var(--ce-border); }
#footer { display: none; }
/* empty: a well */
.ce-empty { margin: 10px 14px; padding: 18px 14px; color: var(--ce-muted); text-align: center; font-size: 13px; background: var(--ce-well);
  box-shadow: var(--ce-well-depth); border-radius: var(--tk-r-inner); }

/* ---------- chips and labels. A status, venue or department label is a colored dot and the word; a plain chip is a
   pill in the company's 50 with a 100 ring; counts are in the company color. */
.chip, .pill, .ns-state, .st { display: inline !important; background: none !important; border: 0 !important; border-radius: 0 !important;
  padding: 0 !important; box-shadow: none !important; font-weight: 500 !important; text-transform: none; letter-spacing: 0;
  font-size: max(12px, .92em) !important; white-space: nowrap; line-height: inherit !important; color: var(--ce-text-2) !important; }
.chip[style*="--c"]::before, .pill[style*="--c"]::before { content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.chip i, .pill i { display: none !important; }
.chip:not([style*="--c"]), .ce-chip { display: inline-flex !important; align-items: center; gap: 6px; padding: 2px 10px !important; border-radius: var(--tk-r-pill) !important;
  background: var(--ce-pressed-bg) !important; box-shadow: inset 0 0 0 1px var(--ce-chip-ring) !important; color: var(--ce-text) !important; line-height: 18px !important; }
.ce-badge, .ce-badge.soft { background: none !important; color: var(--ce-accent) !important; padding: 0 !important; min-width: 0 !important;
  height: auto !important; border-radius: 0 !important; font-weight: 800 !important; font-size: 12px !important; font-variant-numeric: tabular-nums; }

/* ---------- cards & widgets (shared by dashboard, reports, fleet): resting cards, headings in Bricolage */
.ce-card { background: var(--ce-surface); border: 0; border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); }
.ce-card > header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--ce-border); }
.ce-card > header h3 { margin: 0; font-family: var(--tk-font-display); font-size: 15px; font-weight: 700; color: var(--ce-text); letter-spacing: -.005em; }
.ce-card > header > .ic { display: none; }
.ce-card > header .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.ce-card > header .tools a { color: var(--ce-accent); font-weight: 600; text-decoration: none; }
.ce-card > header .tools a:hover { color: var(--ce-accent-2); }
.ce-card .body { padding: 12px 18px; }
.ce-list { list-style: none; margin: 0; padding: 0; }
.ce-list > li, .ce-list > a { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--ce-border);
  color: var(--ce-text-2); text-decoration: none; font-size: 13.5px; }
.ce-list > li:first-child, .ce-list > a:first-child { border-top: 0; }
.ce-list > a:hover, .ce-list > li:hover { background: var(--ce-surface-2); }
.ce-list > .ce-empty, .ce-list > .ce-empty:hover { border-top: 0; display: block; background: var(--ce-well); }
.ce-list .r { margin-left: auto; text-align: right; white-space: nowrap; color: var(--ce-muted); font-size: 12.5px; }
.ce-list .t { font-weight: 550; color: var(--ce-text); }
.ce-list .sub { font-size: 12.5px; color: var(--ce-muted); }
.ce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ce-subtle)); flex: none; }
.ce-stat { padding: 14px 16px; }
.ce-stat .k { font-size: 12.5px; color: var(--ce-muted); display: flex; align-items: center; gap: 6px; }
.ce-stat .v { font-size: 26px; font-weight: 650; color: var(--ce-text); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ce-stat .d { font-size: 12px; margin-top: 2px; color: var(--ce-muted); }
.ce-stat .d.up { color: var(--ce-ok-ink); } .ce-stat .d.down { color: var(--ce-bad-ink); }
.ce-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: var(--tk-r-pill); border: 0;
  background: var(--ce-surface); box-shadow: var(--ce-raised); color: var(--ce-text) !important; font: 600 13px var(--ce-font); text-decoration: none !important; cursor: pointer; }
.ce-btn:hover { background: var(--ce-surface-2); }
.ce-btn.ghost { box-shadow: none; background: transparent; color: var(--ce-accent) !important; }
.ce-btn.ghost:hover { background: var(--ce-pressed-bg); }
/* segmented choices: pills in a well, the picked one pressed in */
.ce-seg { display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: var(--tk-r-pill); background: var(--ce-well); box-shadow: var(--ce-well-depth); }
.ce-seg a, .ce-seg button { padding: 5px 12px; font: 600 12.5px var(--ce-font); color: var(--ce-muted) !important; text-decoration: none !important;
  background: transparent; border: 0; border-radius: var(--tk-r-pill); cursor: pointer; }
.ce-seg a:hover, .ce-seg button:hover { color: var(--ce-text) !important; }
.ce-seg .on { background: var(--ce-pressed-bg); color: var(--ce-text) !important; box-shadow: var(--ce-pressed); }
.ce-pagehead { display: flex; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 18px; }
.ce-pagehead h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ce-text); }
.ce-pagehead .sub { color: var(--ce-muted); font-size: 13.5px; margin-top: 3px; }
.ce-pagehead .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
a.peek { color: inherit; text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, currentColor 45%, transparent); }
a.peek:hover { color: var(--ce-accent) !important; border-bottom-color: var(--ce-accent); }
.ce-list a.peek, .ce-list .t a.peek { border-bottom: 0; }

/* ---------- quick-look popup (peek) + window popup */
.ce-scrim { position: fixed; inset: 0; background: rgb(var(--tk-ink-rgb) / .38); backdrop-filter: blur(1px); z-index: 1000; opacity: 0;
  transition: opacity .12s; pointer-events: none; }
.ce-scrim.show { opacity: 1; pointer-events: auto; }
.ce-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, calc(96 * var(--ce-vw, 1vw))); background: var(--ce-surface); z-index: 1001;
  box-shadow: var(--ce-shadow-lg); transform: translateX(102%); transition: transform .16s ease; display: flex; flex-direction: column;
  border-left: 0; }
.ce-drawer.show { transform: none; }
.ce-drawer > header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--ce-border); }
.ce-drawer > header .k { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ce-subtle); font-weight: 600; }
.ce-drawer > header .sp { flex: 1; }
.ce-drawer .scroll { overflow: auto; flex: 1; }
.ce-window { position: fixed; inset: calc(4 * var(--ce-vh, 1vh)) calc(4 * var(--ce-vw, 1vw)); background: var(--ce-surface); z-index: 1002; border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow-lg);
  display: none; flex-direction: column; overflow: hidden; border: 0; }
.ce-window.show { display: flex; }
/* The Event Quick Look (quick add / event summary): about two thirds of the screen; full screen on a phone.
   --ce-vw, not vw: the page is zoomed (Text size, ceFit), and a plain vw beside px shrank the window to a third of a
   scaled 4K screen. new-event-window-fit: the New event window grows to "full" once a client is picked (its page
   asks with postMessage, ce.js). */
.ce-window[data-size="quick-look"] { inset: calc(5 * var(--ce-vh, 1vh)) max(calc(14 * var(--ce-vw, 1vw)), calc(50 * var(--ce-vw, 1vw) - 640px)); }
.ce-window[data-size="full"] { inset: 12px; }
@media (max-width: 760px) { .ce-window[data-size="quick-look"], .ce-window[data-size="full"] { inset: 0; border-radius: 0; } }
.ce-window > header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--ce-border); background: var(--ce-surface-2); }
.ce-window > header b { font-size: 13.5px; color: var(--ce-text); }
.ce-window iframe { flex: 1; border: 0; width: 100%; background: #fff; }
.pk-head { padding: 18px 18px 12px; }
.pk-head .eyebrow { font-size: 12px; color: var(--ce-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pk-head h2 { margin: 6px 0 4px; font-size: 20px; font-weight: 650; color: var(--ce-text); }
.pk-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ce-border); }
.pk-grid > div { padding: 10px 18px; border-bottom: 1px solid var(--ce-border); }
.pk-grid > div:nth-child(odd) { border-right: 1px solid var(--ce-border); }
.pk-grid .k { font-size: 12px; color: var(--ce-muted); }
.pk-grid .v { font-size: 13.5px; color: var(--ce-text); font-weight: 500; margin-top: 2px; word-break: break-word; }
.pk-sec { padding: 14px 18px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ce-subtle); font-weight: 600; }
.pk-money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ce-border); border-bottom: 1px solid var(--ce-border); }
.pk-money > div { padding: 12px 18px; border-right: 1px solid var(--ce-border); }
.pk-money > div:last-child { border-right: 0; }
.pk-money .k { font-size: 12px; color: var(--ce-muted); }
.pk-money .v { font-size: 16px; font-weight: 650; color: var(--ce-text); font-variant-numeric: tabular-nums; }
.pk-photo { width: 100%; max-height: 220px; object-fit: cover; border-bottom: 1px solid var(--ce-border); }
.pk-loading { padding: 40px; text-align: center; color: var(--ce-muted); }

/* ---------- dashboard grid */
/* Home: two equal columns with one shared middle gutter; a card is Half or Full. Cards side by side match heights. */
.ce-dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, calc(1.2 * var(--ce-vw, 1vw)), 20px); align-items: stretch; }
.ce-w { grid-column: span 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.ce-w[data-w="12"] { grid-column: 1 / -1; }
.ce-w[hidden] { display: none !important; }  /* widgets turned off in Customize stay off */
.ce-w > .ce-card { flex: 1; display: flex; flex-direction: column; min-height: 0; }
html.ce-onecol .ce-dash { grid-template-columns: minmax(0, 1fr); }
.ce-dash.editing .ce-w { outline: 2px dashed var(--ce-border-strong); outline-offset: 5px; border-radius: var(--tk-r-card); cursor: grab; }
.ce-dash.editing .ce-w.drag { opacity: .45; }
.ce-dash.editing .ce-w.over { outline-color: var(--ce-accent); }
.ce-wtools { display: none; position: absolute; top: 8px; right: 8px; z-index: 5; gap: 2px; background: var(--ce-well); border: 0;
  border-radius: var(--tk-r-pill); padding: 3px; box-shadow: var(--ce-well-depth); }
.ce-dash.editing .ce-wtools { display: flex; }
.ce-wtools button { border: 0; background: none; color: var(--ce-muted); cursor: pointer; padding: 3px 9px; border-radius: var(--tk-r-pill); font: 600 12px var(--ce-font); }
.ce-wtools button:hover { color: var(--ce-text); }
.ce-wtools button.on { background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); color: var(--ce-text); }
.ce-dash.editing .ce-card { pointer-events: none; }
.ce-panel { display: none; margin-bottom: 16px; }
.ce-panel.show { display: block; }
.ce-panel .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; padding: 12px 14px; }
.ce-panel label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: var(--tk-r-inner); cursor: pointer;
  font-size: 13px; color: var(--ce-text-2); background: var(--ce-surface-2); }
.ce-panel label:hover { background: var(--ce-well); }
.ce-panel label:has(input:checked) { background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); color: var(--ce-text); }  /* Customize: the picked options */
.ce-ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--rc, var(--ce-accent)) calc(var(--p) * 1%), var(--ce-border) 0);
  display: grid; place-items: center; flex: none; }
.ce-ring > div { width: 68px; height: 68px; border-radius: 50%; background: var(--ce-surface); display: grid; place-items: center; font-weight: 700;
  color: var(--ce-text); font-size: 16px; }
.ce-bar { height: 6px; border-radius: 999px; background: var(--ce-border); overflow: hidden; }
.ce-bar > i { display: block; height: 100%; background: var(--c, var(--ce-accent)); border-radius: 999px; }
.ce-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 12px 14px; }
.ce-week > a { border: 1px solid var(--ce-border); border-radius: var(--tk-r-inner); padding: 8px; text-decoration: none; color: var(--ce-text-2); min-height: 64px; }
.ce-week > a:hover { border-color: var(--ce-accent); }
.ce-week .d { font-size: 12px; color: var(--ce-muted); }
.ce-week .n { font-size: 20px; font-weight: 650; color: var(--ce-text); }
.ce-week .today { border-color: transparent; background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); }
.ce-week .bars { display: flex; gap: 2px; margin-top: 6px; flex-wrap: wrap; }
.ce-week .bars i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.ce-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 12px 14px; }
.ce-quick a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 0; border-radius: var(--tk-r-inner); text-decoration: none;
  color: var(--ce-text-2) !important; font-size: 13px; font-weight: 550; background: var(--ce-surface); box-shadow: var(--ce-raised);
  transition: box-shadow .15s ease, transform .15s ease; }
.ce-quick a:hover { background: var(--ce-surface-2); color: var(--ce-text) !important; transform: translateY(-1px); }
.ce-quick a:active { box-shadow: var(--ce-shadow); transform: translateY(1px); }
.ce-quick a .ic { color: var(--qc, var(--ce-muted)); }
.ce-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ce-kpis > a { border-right: 1px solid var(--ce-border); text-decoration: none; color: inherit; }
.ce-kpis > a:last-child { border-right: 0; }
.ce-kpis > a:hover { background: var(--ce-surface-2); }

/* inside a popup window (iframe): no app chrome, the page reads like a dialog */
html.ce-in-window #header, html.ce-in-window #ce-tabs, html.ce-in-window div.breadcrumbs, html.ce-in-window #nav-sidebar,
html.ce-in-window .toggle-nav-sidebar { display: none !important; }
html.ce-in-window #ce-az { display: none !important; }
html.ce-in-window .main.shifted > #nav-sidebar + .content, html.ce-in-window .main > .content { max-width: 100%; }
html.ce-in-window #content { padding-top: 14px; }

#header .ce-search input[type=search] { padding-left: 34px !important; }
#header .ce-search input:focus ~ kbd, #header .ce-search input:not(:placeholder-shown) ~ kbd { display: none; }
#header .ce-search input[type=search]:focus + kbd { display: none; }
.ce-search:focus-within > .ic { color: var(--ce-muted); z-index: 1; }
.ce-results a span.s { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.ce-results a > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#dietary_needs-group td.original p { display: none; }
#dietary_needs-group { border-left: 3px solid var(--ce-bad); }


#header .ce-badge, .ce-top .ce-badge { color: var(--tk-bad-light) !important; }

/* back · refresh · forward, after Fleet (0.1.7) */
.ce-histnav { display: inline-flex; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 1px solid #ffffff1f; }
.ce-histnav button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 7px;
  background: transparent; color: var(--tk-quiet-dark); cursor: pointer; }
.ce-histnav button:hover { background: #ffffff14; color: #fff; }
/* A–Z quick find under the top bar (0.1.7) */
.ce-az { flex: none; position: sticky; top: 52px; z-index: 899; display: flex; align-items: center; gap: 2px; padding: 3px 16px; background: var(--tk-charcoal); border-bottom: 1px solid #ffffff14; overflow-x: auto; max-width: 100%; box-sizing: border-box; }
.ce-az b { color: var(--tk-warn); font-size: 12px; font-weight: 800; letter-spacing: .06em; margin-right: 8px; white-space: nowrap; }
.ce-az button { min-width: 26px; height: 24px; border: 0; border-radius: 5px; background: transparent; color: var(--tk-quiet-dark); font: 700 12.5px var(--ce-font);
  cursor: pointer; padding: 0 5px; }
.ce-az button:hover, .ce-az button.on { background: var(--brand-700); color: var(--brand-on-700); }
@media print { .ce-az, .ce-histnav { display: none !important; } }

/* Click-to-call (core/phone.py, ce.js initTel) */
a.ce-tel { color: inherit; text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, currentColor 45%, transparent); white-space: nowrap; }
a.ce-tel:hover { color: var(--ce-accent) !important; border-bottom-color: var(--ce-accent); }
.ce-tel-wrap { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; vertical-align: middle; }
.ce-tel-wrap > input { flex: 1 1 auto; min-width: 0; }
a.ce-tel-btn { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; vertical-align: middle;
  border-radius: var(--tk-r-pill); border: 0; box-shadow: var(--ce-raised); color: var(--ce-accent) !important; background: var(--ce-surface); }
a.ce-tel-btn:hover { background: var(--ce-pressed-bg); }
a.ce-tel-btn[hidden] { display: none; }
a.ce-tel-btn .ic { width: 15px; height: 15px; opacity: 1; }

/* Event tab row: the same on the event page, the Menu & Items builder, Staffing and Floor plan (events/tabs.py).
   look-2-parts: the current tab is pressed in (the company's 50 with an inset), each tab keeps its colored dot. */
.ev-tabs { display: flex; flex-wrap: nowrap; gap: 2px; padding: 6px 10px; border-top: 1px solid var(--ce-border); position: relative; z-index: 5; }  /* one line; what doesn't fit goes under More */
.ev-tabs a, .ev-tabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; white-space: nowrap;  /* 5 px tighter than with the dots: the 14 px icon takes it, so as many tabs fit as before */
  text-decoration: none; font: 600 13.5px var(--ce-font, inherit); color: var(--ce-muted); border: 0; border-radius: var(--tk-r-pill);
  background: none; cursor: pointer; }
.ev-tabs a:hover, .ev-tabs button:hover, .ev-tabs a:focus-visible, .ev-tabs button:focus-visible { color: var(--ce-text); background: var(--ce-surface-2); }
.ev-tabs a.on, .ev-tabs button.on { color: var(--ce-text); background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); }
.ev-tabs .ev-ti { width: 14px; height: 14px; color: var(--t); flex: none; vertical-align: 0; }  /* a small icon in the tab's own color (was a dot) */
.ev-tabs small { font-size: 12px; font-weight: 700; background: var(--ce-pressed-bg); color: var(--ce-accent); box-shadow: inset 0 0 0 1px var(--ce-chip-ring);
  border-radius: var(--tk-r-pill); padding: 1px 7px; }  /* counts in the company color */
.ev-tabs a.err::after { content: "!"; position: absolute; top: 2px; right: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--tk-bad-ink); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center; }
.ev-tabs a.go::after { content: "↗"; font-size: 12px; opacity: .6; }
.ev-tabs .sep { width: 1px; flex: none; background: var(--ce-border); margin: 6px 4px; }
.ev-tabs .ev-more { position: relative; display: flex; margin-left: auto; }
.ev-tabs .ev-more[hidden] { display: none; }
.ev-tabs .ev-more-btn b { font-size: 12px; opacity: .7; }
.ev-tabs .ev-more-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px; background: var(--ce-surface);
  border: 0; border-radius: var(--tk-r-inner); box-shadow: var(--ce-shadow-lg); flex-direction: column; z-index: 50; }
.ev-tabs .ev-more-menu.open { display: flex; }
.ev-tabs .ev-more-menu a, .ev-tabs .ev-more-menu button { border-radius: 10px; padding: 8px 10px; width: 100%; text-align: left; }
.ev-tabs .ev-more-menu a:hover, .ev-tabs .ev-more-menu button:hover { background: var(--ce-surface-2); }
.ev-tabs .ev-more-menu .on { background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); }
.ev-tabs .ev-more-menu .sep { width: auto; height: 1px; margin: 4px 6px; }

/* ---------- the event header: one component on the event page, the builder, Staffing and Floor plan (events/_event_head.html).
   A resting card; its main action in charcoal, the rest white and raised (look-2-parts). */
  .ev-head { position: sticky; top: 0; z-index: 30; background: var(--ce-surface); border: 0;
    border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); margin: 0 0 14px; }
  .ev-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px 8px; flex-wrap: wrap; }
  .ev-top h1 { margin: 0; font-size: 20px; line-height: 1.2; color: var(--ce-text); display: block !important; font-family: var(--tk-font-display); font-weight: 700; letter-spacing: -.01em; }
  .ev-top .meta { font-size: 13px; color: var(--ce-muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
  .ev-top .meta b { color: var(--ce-text); font-weight: 600; }
  .ev-money { display: flex; gap: 16px; margin-left: auto; align-items: center; }
  .ev-money div { text-align: right; } .ev-money span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ce-muted); }
  .ev-money b { font-size: 17px; font-variant-numeric: tabular-nums; } .ev-money .due { color: var(--ce-bad-ink); } .ev-money .paid { color: var(--ce-ok-ink); }
  .ev-nav a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 0; box-shadow: var(--ce-raised);
    border-radius: var(--tk-r-pill); background: var(--ce-surface); text-decoration: none; font-size: 18px; color: var(--ce-text); }
  .ev-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; align-items: center; }
  .ev-acts .b, .ev-acts .ce-dd > button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: var(--tk-r-pill);
    border: 0; background: var(--ce-surface); box-shadow: var(--ce-raised); color: var(--ce-text) !important;
    font: 600 13px var(--ce-font, inherit); text-decoration: none; cursor: pointer; }  /* one raised style; the icon carries the color */
  .ev-acts .b:hover, .ev-acts .ce-dd > button:hover { background: var(--ce-surface-2); }
  .ev-acts .b:active, .ev-acts .ce-dd > button:active { transform: translateY(1px); box-shadow: var(--ce-shadow); }
  .ev-acts .b svg, .ev-acts .ce-dd > button svg { width: 15px; height: 15px; color: var(--c); }
  .ev-acts .b.main { background: var(--ce-main); color: var(--ce-main-text) !important; box-shadow: var(--ce-main-depth); } .ev-acts .b.main svg { color: var(--ce-main-text); }
  .ev-acts .b.main:hover { background: var(--ce-main-hover); }
  .ev-acts .ce-dd { position: relative; } .ev-acts .sp { flex: 1; }
  .ev-acts .ce-menu a svg { color: var(--c); }
  /* the BEO button (was a tab): pressed in while the BEO section is showing, and the tabs' red "!" when that section holds an error */
  .ev-acts .b.on { background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); }
  .ev-acts .b.ev-beo { position: relative; }
  .ev-acts .b[hidden] { display: none; }  /* Reset layout is for Customize mode only: the button's own display rule was showing it all the time, and with the BEO button the row then ran to a second line at 1366 and 1440 */
  .ev-acts .b.ev-beo.err::after { content: "!"; position: absolute; top: -4px; right: -4px; width: 15px; height: 15px; border-radius: 50%; background: var(--tk-bad-ink); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 15px; text-align: center; }
  @media (max-width: 900px) { .ev-money { margin-left: 0; width: 100%; } .ev-acts .sp { display: none; } }
.ev-head[data-here="items"], .ev-head[data-here="staffing"], .ev-head[data-here="layout"] { margin: 10px clamp(10px, calc(1.6 * var(--ce-vw, 1vw)), 28px) 12px; }
.ev-head .ev-tabs { border-top: 1px solid var(--ce-border); }
.ev-back { align-self: flex-start; margin-top: 3px; color: var(--ce-muted); text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap; }
.ev-back:hover { color: var(--ce-accent); }
/* the save pill: same words and place on all four screens */
.ev-save { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; font-size: 12.5px; color: var(--ce-muted); white-space: nowrap; }
.ev-save::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tk-ok); flex: none; }
.ev-save[data-state="dirty"] { color: var(--ce-warn-ink); font-weight: 700; } .ev-save[data-state="dirty"]::before { background: var(--tk-warn); }
.ev-save[data-state="saving"]::before { background: var(--tk-warn); animation: ev-pulse 1s infinite; }
.ev-save[data-state="err"] { color: var(--ce-bad-ink); font-weight: 700; } .ev-save[data-state="err"]::before { background: var(--tk-bad); }
@keyframes ev-pulse { 50% { opacity: .3; } }
.ev-save-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: var(--tk-r-pill); border: 0;
  background: var(--ce-main); color: var(--ce-main-text); box-shadow: var(--ce-main-depth); font: 700 12.5px var(--ce-font); cursor: pointer; }
.ev-save-btn[hidden] { display: none; }
.ev-save-btn kbd { font: 600 12px var(--ce-font); opacity: .8; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }

/* ---------- UX batch 1 (0.3.2.21), from the Oct 2026 UX audit (06_Project_Docs/.../ux-audit-2026-10-18.md) */
/* R1: links inside sentences and breadcrumbs are underlined, so they don't depend on color alone */
div.breadcrumbs a, ul.messagelist a,
:is(#content p, #content .help, #content div.help, .ev-tabhint span) a:not(.button, .ce-btn, .b, .b2, .addlink, .chip, .bc-chip, .f) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* R2: IDs, dates, money and names stay on one line; name columns get room */
#result_list td.field-number, #result_list th.field-number, #result_list td.field-event_date_dow, #result_list td.field-total,
#result_list td.field-balance, #result_list td.field-rep, #result_list td.field-ce_link_rep, #result_list td.field-guests_planned,
#result_list td.field-rac_id, #result_list th.field-rac_id, #result_list td.field-ce_link_sales_rep, #result_list td.field-sales_rep,
#result_list td.field-phone, #result_list td.field-next_action_date, #result_list td.field-price, #result_list td.field-cost,
#result_list td.field-margin, #result_list td.field-added_col, #result_list td.field-sent_col, #result_list td.field-age_col,
#result_list td.field-event_count, #result_list td.field-referral_count { white-space: nowrap; }
#result_list td.field-name, #result_list th.field-name { min-width: 190px; }
#result_list td.field-ce_link_account, #result_list td.field-account { min-width: 150px; }
#result_list td.field-tag_chips { min-width: 150px; }
#result_list td.field-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#result_list td.field-price input, #result_list td.field-cost input { width: 90px; min-width: 0; box-sizing: border-box; }
/* S1: optional columns (Columns menu) */
#result_list .ce-col-off { display: none !important; }
/* S2: Filters and Columns buttons next to the search box; the panel folds away */
.ce-filters-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-left: 8px; padding: 0 14px; border-radius: var(--tk-r-pill); cursor: pointer;
  border: 0; background: var(--ce-surface); box-shadow: var(--ce-raised); color: var(--ce-text); font: 600 13px var(--ce-font); vertical-align: middle; }
.ce-filters-btn .ic { width: 15px; height: 15px; }
.ce-list-tools { padding: 8px 0 10px; }
.ce-list-tools .ce-filters-btn:first-child { margin-left: 0; }
.ce-filters-btn b { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--ce-pressed-bg); color: var(--ce-accent); box-shadow: inset 0 0 0 1px var(--ce-chip-ring); font-size: 12px; line-height: 18px; text-align: center; }
.ce-filters-btn:hover { background: var(--ce-surface-2); }
.ce-filters-btn.on { background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); }
#changelist.ce-filters-off #changelist-filter { display: none; }
.ce-dd.ce-cols { position: relative; display: inline-block; }
.ce-dd.ce-cols .ce-menu { left: 8px; right: auto; top: 40px; min-width: 240px; padding: 8px; }
.ce-dd.ce-cols .ce-menu label { display: flex; align-items: center; gap: 8px; padding: 7px 8px; font-size: 13.5px; color: var(--ce-text); cursor: pointer; border-radius: 10px; }
.ce-dd.ce-cols .ce-menu label:hover { background: var(--ce-surface-2); }
.ce-dd.ce-cols .ce-menu [data-col-reset] { margin-top: 4px; width: 100%; border: 0; background: none; color: var(--ce-accent); font: 600 12.5px var(--ce-font); text-align: left; padding: 6px 8px; cursor: pointer; }
/* R4: buttons say "Save", not "SAVE" */
.submit-row input, .submit-row input.default, .submit-row a.closelink, .submit-row a.deletelink { text-transform: none !important; letter-spacing: 0 !important; }
/* S3: ✦ AI assistant (and </>) in the top bar */
#header #ai-fab.ce-in-bar { position: static; width: 34px; height: 34px; border-radius: 9px; font-size: 16px; box-shadow: none; flex: none; align-self: center; }
#header #dv-fab.ce-in-bar { position: static !important; width: 34px !important; height: 34px !important; border-radius: 9px !important; box-shadow: none !important; flex: none; align-self: center; font-size: 12px !important; }
#header #ai-fab.ce-in-bar:hover { transform: none; filter: brightness(1.1); }
#ai-panel { top: 60px; bottom: auto !important; }
/* S5: event form rows 48–52px on desktop */
#event_form fieldset.module .form-row { padding-top: 5px; padding-bottom: 5px; }
#event_form fieldset.module .form-row .help, #event_form fieldset.module .form-row div.help { margin-top: 2px; margin-bottom: 0; padding-top: 0; }
#event_form fieldset.module .form-multiline { row-gap: 8px; }
#event_form fieldset.module .form-multiline > div, #event_form fieldset.module .related-widget-wrapper { margin-bottom: 0; }
#event_form fieldset.module .form-row select, #event_form fieldset.module .form-row input { margin-bottom: 0; }
@media (pointer: coarse) { #event_form .form-row input, #event_form .form-row select { min-height: 44px; } }
/* S8: the More tab keeps one width */
.ev-tabs .ev-more-btn { width: 150px; justify-content: space-between; }
.ev-tabs .ev-more-btn .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; text-align: left; }
/* F1: lookup fields keep a quiet grey + and an "Open" link instead of icons */
.related-widget-wrapper-link.add-related img, .related-widget-wrapper-link.view-related img { display: none; }
.related-widget-wrapper-link.add-related::before { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--tk-r-pill);
  border: 0; background: var(--ce-surface); box-shadow: var(--ce-raised); color: var(--ce-muted); font: 600 16px/1 var(--ce-font); }
.related-widget-wrapper-link.add-related:hover::before { color: var(--ce-accent); }
.related-widget-wrapper-link.view-related::before { content: "Open"; font: 600 12.5px var(--ce-font); color: var(--ce-accent); text-decoration: underline; text-underline-offset: 2px; }
.related-widget-wrapper-link.view-related[href=""], .related-widget-wrapper-link.view-related:not([href]) { display: none; }
.related-widget-wrapper { gap: 4px 8px; align-items: center; }
/* F5: tips that can be put away */
[data-tip] { position: relative; }
[data-tip]:not(.ce-tip-off) { padding-right: 40px !important; }
.ce-tip-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: var(--tk-r-pill); border: 0; background: transparent; color: var(--ce-muted);
  font: 600 14px/1 var(--ce-font); cursor: pointer; }
.ce-tip-x:hover { background: var(--ce-surface-2); color: var(--ce-text); }
.ce-tip-off { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 4px !important; min-height: 28px; box-shadow: none !important; }
.ce-tip-off > :not(.ce-tip-x) { display: none !important; }
.ce-tip-off > .ce-tip-x { position: static; border: 0; box-shadow: var(--ce-raised); background: var(--ce-surface); border-radius: 999px; width: 26px; height: 26px; }
/* U8: A–Z letters are at least 28 × 28 */
.ce-az button { min-width: 28px; height: 28px; }
/* U5: the avatar shows the Waiting-on-you count when the bell isn't there */
.ce-avatar { position: relative; }
.ce-avatar .ce-badge { position: absolute; top: -5px; right: -7px; }

/* ---------- UX batch 2 (0.3.2.22) */
/* R3: nothing a person reads is under 12px. Django's own small text (help lines, inline table heads, "View on site"
   lines, result counts) is lifted here; our own rules were raised to 12px in place. */
.help, div.help, p.help, .help div, .helptext, span.small.quiet, span.small.quiet a, .inline-group thead th, .inline-group .tabular th,
td.original p, td.original p a, .inlinechangelink, .datetimeshortcuts, .datetimeshortcuts a, #changelist-filter li, #changelist-filter a,
.paginator, .object-tools a, .selector .selector-filter, .timezonewarning, fieldset .fieldBox .help { font-size: max(12px, 1em) !important; }
.help, div.help, p.help, .help div { font-size: 12px !important; }
small { font-size: max(12px, .83em); }
/* R3: work screens read at 14px (Open, the default). Compact (My settings → Density) keeps 13–13.5px text and tightens
   the padding, for people who want more rows; the 12px floor applies to both. */
html:not([data-density="compact"]) #result_list td, html:not([data-density="compact"]) #result_list th { font-size: 14px; }
html:not([data-density="compact"]) #content-main input[type=text], html:not([data-density="compact"]) #content-main input[type=number],
html:not([data-density="compact"]) #content-main input[type=email], html:not([data-density="compact"]) #content-main input[type=tel],
html:not([data-density="compact"]) #content-main input[type=date], html:not([data-density="compact"]) #content-main input[type=time],
html:not([data-density="compact"]) #content-main select, html:not([data-density="compact"]) #content-main textarea,
html:not([data-density="compact"]) .form-row .readonly, html:not([data-density="compact"]) .aligned label { font-size: 14px; }
html[data-density="compact"] #result_list td, html[data-density="compact"] #result_list th { padding: 5px 8px; font-size: 13.5px; }
html[data-density="compact"] #event_form fieldset.module .form-row { padding-top: 3px; padding-bottom: 3px; }
html[data-density="compact"] .ev-top { padding-top: 8px; padding-bottom: 4px; }
/* R6: dietary tags on one line, "+N" opens all of them with names (click or Enter, not hover) */
.ce-tags { white-space: nowrap; } .ce-tags .ce-tag { color: var(--ce-text); letter-spacing: .03em; }
details.ce-tags summary { list-style: none; cursor: pointer; } details.ce-tags summary::-webkit-details-marker { display: none; }
details.ce-tags .more { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--ce-border-strong);
  font-size: 12px; font-weight: 700; color: var(--ce-text-2); }
details.ce-tags[open] .more { background: var(--ce-surface-2); }
details.ce-tags ul { margin: 6px 0 0; padding: 6px 8px; list-style: none; white-space: normal; background: var(--ce-surface-2); border-radius: 8px; min-width: 180px; }
details.ce-tags li { font-size: 13px; padding: 1px 0; } details.ce-tags li b { display: inline-block; min-width: 48px; }
/* S7: very wide screens (layout width 2200px+, set by ceFit). Home goes to three columns; forms stop at 1400px so Save and
   Delete stay close, except the event screen (Jef, Nov 4, 2026: the Payments table "should span to 100%"), which uses the
   full width. Lists, Calendar Glance, the builder and the floor plan keep the full width. */
html.ce-wide .ce-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; }  /* half-width widgets fill the gaps */
html.ce-wide body.change-form:not(.model-event) #content { max-width: 1400px; }
html.ce-wide body.change-form:not(.model-event) .submit-row { max-width: 1400px; box-sizing: border-box; }
/* U11: A–Z quick find inside the search box */
.ce-azpop .ce-azgrid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; padding: 4px 10px 8px; }
.ce-azpop .ce-azgrid button { min-height: 32px; border: 0; border-radius: 10px; background: var(--ce-surface); box-shadow: var(--ce-raised); color: var(--ce-text);
  font: 700 13px var(--ce-font); cursor: pointer; }
.ce-azpop .ce-azgrid button:hover { background: var(--ce-surface-2); }
.ce-azpop .ce-azgrid button.on { background: var(--ce-pressed-bg); box-shadow: var(--ce-pressed); }
.ce-azfoot { padding: 6px 12px 10px; font-size: 12px; color: var(--ce-muted); border-top: 1px solid var(--ce-border); }
html .ce-search .ce-azfoot kbd { display: inline; position: static; color: var(--ce-text-2); font: 600 12px var(--ce-font); border: 1px solid var(--ce-border-strong); border-radius: 4px; padding: 0 4px; }
html:root .ce-topspace { min-height: 52px; padding: 0 !important; }
/* U10: the ? shortcut list and the J/K row highlight */
.ce-keys { display: none; position: fixed; inset: 0; z-index: 1200; background: rgb(var(--tk-ink-rgb) / .38); }
.ce-keys.show { display: grid; place-items: center; }
.ce-keys .in { background: var(--ce-surface); color: var(--ce-text); border-radius: 14px; box-shadow: var(--ce-shadow-lg); width: min(460px, calc(100% - 32px)); max-height: 80vh; overflow: auto; }
.ce-keys header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--ce-border); }
.ce-keys header button { border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--ce-muted); width: 32px; height: 32px; border-radius: 8px; }
.ce-keys table { width: 100%; border-collapse: collapse; } .ce-keys td { padding: 8px 16px; border-bottom: 1px solid var(--ce-border); font-size: 14px; }
.ce-keys td:last-child { text-align: right; white-space: nowrap; }
.ce-keys kbd { font: 600 12.5px var(--ce-font); border: 1px solid var(--ce-border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--ce-surface-2); }
#result_list tr.ce-kbd-row td, #result_list tr.ce-kbd-row th { background: var(--ce-pressed-bg) !important; }
#result_list tr.ce-kbd-row td:first-child { box-shadow: inset 3px 0 0 var(--ce-accent); }
/* S5 for every record page (not only events): shorter rows */
body.change-form fieldset.module .form-row { padding-top: 5px; padding-bottom: 5px; }
body.change-form fieldset.module .form-multiline { row-gap: 8px; }
body.change-form fieldset.module .form-multiline > div, body.change-form fieldset.module .related-widget-wrapper { margin-bottom: 0; }
html[data-density="compact"] body.change-form fieldset.module .form-row { padding-top: 3px; padding-bottom: 3px; }
/* S10: phone-only pieces of the Dock bottom bar stay hidden everywhere else */
.ce-morebtn, .ce-nav > .ce-phone-only { display: none !important; }
/* S10: the event header on a phone: the main button, an Actions menu for the rest, the save dot, and a link to the phone view */
.ev-acts-toggle, .ev-phone-link { display: none !important; }
.ev-headmore { display: none; }  /* mobile-sweep: the Details button is for phones only (shown in the 640 px block further down) */
@media (max-width: 760px) {
  .ev-acts:not(.open) > :not(.main):not(.ev-acts-toggle):not(.ev-save) { display: none !important; }
  .ev-acts.open { flex-direction: column; align-items: stretch; }
  .ev-acts.open > .b, .ev-acts.open > .ce-dd > button, .ev-acts.open > form > .b { width: 100%; box-sizing: border-box; height: 40px; justify-content: flex-start; }
  .ev-acts .ev-acts-toggle { display: inline-flex !important; }
  .ev-acts .sp, #ev-customize, #ev-customize-x { display: none !important; }
  .ev-phone-link { display: block !important; margin: 0 16px 10px; padding: 10px 12px; border-radius: 10px; background: var(--ce-accent-soft);
    color: var(--ce-accent) !important; font-weight: 700; text-decoration: none !important; }
  .ev-top { padding: 12px 14px 8px; } .ev-top h1 { font-size: 19px; }
  /* on a phone the event header is too tall to stay pinned; it scrolls away with the page */
  html .ev-head, html .ws-head { position: static; }
  .ev-money { gap: 12px; }
  /* record pages: fields stack instead of running off the right edge */
  body.change-form fieldset.module .form-row .flex-container, body.change-form fieldset.module .form-multiline { flex-wrap: wrap; }
  body.change-form fieldset.module .fieldBox { width: 100%; margin-right: 0 !important; flex-wrap: wrap; }
  body.change-form fieldset.module .form-row select, body.change-form fieldset.module .form-row input[type=text],
  body.change-form fieldset.module .form-row textarea, body.change-form .related-widget-wrapper { max-width: 100%; min-width: 0; }
  body.change-form fieldset.module .form-row label { width: auto; min-width: 0; padding-right: 8px; }
  #content { padding-left: 12px !important; padding-right: 12px !important; }
  /* wide tables scroll inside their card, not the whole page */
  /* mobile-sweep: "html" in front so a page's own <style> (.fn { overflow: hidden }) can't undo this */
  html .cm-card, html .fn, html .ws-body .card, html #changelist .results, html .sc-list-wrap { overflow-x: auto; }
  .ce-dash { gap: 12px; }
  .ce-week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 10px 8px; }
  .ce-week > a { padding: 6px 3px; min-width: 0; overflow: hidden; }
  .ce-week .n { font-size: 17px; }
  .ev-money { flex-wrap: wrap; row-gap: 6px; }
  .ce-w, .ce-card { min-width: 0; }
  /* list search bar: box and Search on one line, the count and Filters/Columns on the next */
  html #changelist-search > div { flex-wrap: wrap; gap: 8px; max-width: none; align-items: center; }
  html #toolbar form #searchbar { flex: 1 1 140px; width: auto; min-width: 0; height: 34px; margin: 0; }
  html #toolbar form input[type=submit] { height: 34px; padding: 0 12px; }
  html #changelist-search .small.quiet { flex: 1 0 100%; width: auto; order: 3; margin: 0; }
  #changelist-search .ce-filters-btn, #changelist-search .ce-cols { order: 2; }
  #changelist .actions { flex-wrap: wrap; row-gap: 6px; }
}
/* 0.3.4 Vendor manager: insurance status on the event's Vendors tab. House label style (bold uppercase colored words),
   with the icon kept so it never relies on color alone. */
.ce-ins { display:inline-flex; gap:5px; align-items:baseline; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
          font-size:max(12px, .86em); text-decoration:none !important; white-space:normal; line-height:1.35; }
.ce-ins.ok { color:var(--ce-ok-ink) !important; } .ce-ins.warn { color:var(--ce-warn-ink) !important; } .ce-ins.info { color:var(--ce-accent) !important; }
.ce-ins.bad { color:var(--ce-bad-ink) !important; } .ce-ins.none { color:var(--ce-muted) !important; }
#vendors-group td.field-insurance { min-width:160px; max-width:240px; }
#vendors-group td.field-name input, #vendors-group td.field-notes input { width:150px; }
#vendors-group td.field-contact input { width:190px; } #vendors-group td.field-override_reason input { width:220px; }

/* ===== look-2-parts: page headings and Home's cards (moved from dock.css, which keeps only the frame). Look port from
   the Cater HQ spec (Nov 2026), under license from Jef. ===== */
html:root #content > h1, html:root .ce-h1, html:root .ce-pagehead h1, html:root #content-main > h1 {
  font-family: var(--tk-font-display); font-weight: 700; letter-spacing: -.01em; }
html:root .ce-pagehead h1 { font-size: 30px; letter-spacing: -.02em; }
html:root .ce-dash { gap: 24px; }
html:root .ce-panel { border: 0; box-shadow: var(--ce-shadow); }
/* key numbers: a dark money card and resting number cards */
.dk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.dk-kpis .hero { grid-column: span 2; background: var(--tk-charcoal); color: #fff; border-radius: var(--tk-r-card); padding: 22px 24px;
  text-decoration: none !important; box-shadow: var(--tk-fill-edge), var(--ce-shadow); display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; }
html.ce-onecol .dk-kpis .hero { grid-column: auto; }
.dk-kpis .hero .k { color: var(--tk-quiet-dark); font-size: 13px; }
.dk-kpis .hero .v { font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; color: #fff; font-variant-numeric: tabular-nums; }
.dk-kpis .hero .d { color: var(--tk-quiet-dark); font-size: 13px; margin-top: 4px; }
.dk-kpis .c { background: var(--ce-surface); border-radius: var(--tk-r-card); padding: 20px 22px; box-shadow: var(--ce-shadow); text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease; }
.dk-kpis .c:hover, .dk-kpis .hero:hover { transform: translateY(-3px); box-shadow: var(--ce-raised); }
.dk-kpis .c .k { color: var(--ce-muted); font-size: 13px; }
.dk-kpis .c .v { color: var(--ce-text); font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dk-kpis .c .d { color: var(--ce-muted); font-size: 12.5px; margin-top: 4px; }
/* coming up: each event a resting card that lifts on hover */
.dk-sec > h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; font-family: var(--tk-font-display); font-size: 18px; font-weight: 700; color: var(--ce-text); }
.dk-sec > h3 a { margin-left: auto; font-family: var(--ce-font); font-size: 13px; font-weight: 600; color: var(--ce-accent) !important; text-decoration: none; }
.dk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.dk-ev { display: block; background: var(--ce-surface); border-radius: var(--tk-r-card); padding: 16px 18px; color: var(--ce-text) !important;
  text-decoration: none !important; box-shadow: var(--ce-shadow); transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.dk-ev:hover { transform: translateY(-3px); box-shadow: var(--ce-raised); }
.dk-ev::before { content: ""; position: absolute; left: 18px; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--v, var(--ce-subtle)); }
.dk-ev .top { display: flex; justify-content: space-between; gap: 8px; color: var(--ce-muted); font-size: 12.5px; }
.dk-ev .t { font-weight: 650; font-size: 15px; margin-top: 8px; line-height: 1.3; }
.dk-ev .m { color: var(--ce-muted); font-size: 13px; margin-top: 4px; }
.dk-ev .ft { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ce-border); font-size: 13px; }
.dk-ev .ft b { font-weight: 650; }
/* needs you: a numbered to-do list */
html:root .ce-w[data-id="attention"] .ce-list { counter-reset: dk; }
html:root .ce-w[data-id="attention"] .ce-list > a:not(.ce-empty), html:root .ce-w[data-id="attention"] .ce-list > li:not(.ce-empty) { counter-increment: dk; }
html:root .ce-w[data-id="attention"] .ce-list > a:not(.ce-empty) > .ce-dot,
html:root .ce-w[data-id="attention"] .ce-list > li:not(.ce-empty) > .ce-dot { width: 26px; height: 26px; background: var(--ce-well); border: 0; box-shadow: var(--ce-well-depth);
  display: grid; place-items: center; position: relative; }
html:root .ce-w[data-id="attention"] .ce-list > a:not(.ce-empty) > .ce-dot::after,
html:root .ce-w[data-id="attention"] .ce-list > li:not(.ce-empty) > .ce-dot::after { content: counter(dk); font-size: 12px; font-weight: 700; color: var(--ce-muted); }
html:root .ce-w[data-id="attention"] .ce-list > a .r { color: var(--ce-accent); font-weight: 600; }
html:root .ce-w[data-id="attention"] .ce-list > a .r::after { content: " →"; }
@media (max-width: 760px) { .dk-kpis .hero { grid-column: auto; } }
html:root .ce-dash.editing .dk-kpis, html:root .ce-dash.editing .dk-sec { pointer-events: none; }
/* counts on the charcoal frame and dock: a light red that reads on charcoal */
html:root #header .ce-badge, html:root .dk-dock .ce-badge { color: var(--tk-bad-light) !important; }

/* ---------- the overview band (look-3-overviews; look port from the Cater HQ spec (Nov 2026), under license from Jef).
   On three pages only: Home, an event and a client. Never on working screens or forms. The company's 800 step (900 when
   no words read on it, core/brand_scale.py band()) with fine 1 px lines at 135°; its words white or charcoal, the quiet
   ones a step softer, all at 4.5:1. The strip under the search pill and the breadcrumbs take the same color, so the band
   runs from the top of the page; the lines are fixed to the window so the three pieces meet without a seam.
   On a computer the colored area is about 264 px tall and the first row of cards rises 40 px over its edge. On a phone
   (760 px and narrower) the band is as tall as what it holds and nothing rises over it. */
:root { --ce-top-h: 38px; --ce-band-px: clamp(14px, calc(2 * var(--ce-vw, 1vw)), 36px); --ce-band-rise: 40px;
  --ce-band-paint: repeating-linear-gradient(135deg, rgb(var(--brand-band-on-rgb) / .08) 0 1px, transparent 1px 10px) fixed, var(--brand-band); }
html:root body:has(.ce-band) #content { padding-top: 0; padding-left: var(--ce-band-px); padding-right: var(--ce-band-px); }
html:root body:has(.ce-band) .ce-topspace, html:root body:has(.ce-band) div.breadcrumbs { background: var(--ce-band-paint); }
html:root body:has(.ce-band) div.breadcrumbs { color: var(--brand-band-quiet); padding-left: var(--ce-band-px); padding-right: var(--ce-band-px); margin: 0; }
html:root body:has(.ce-band) div.breadcrumbs a { color: var(--brand-band-on); }
html:root body:has(.ce-band) ul.messagelist { background: var(--ce-band-paint); margin: 0; padding: 10px 0 2px; }  /* a "saved" note sits on the band */
html:root body:has(.ce-band) ul.messagelist li { margin-left: var(--ce-band-px); margin-right: var(--ce-band-px); }
.ce-band { position: relative; box-sizing: border-box; min-height: var(--ce-band-h, 226px); display: flex; flex-direction: column; gap: 14px;
  margin: 0 calc(-1 * var(--ce-band-px)); padding: 22px var(--ce-band-px) calc(var(--ce-band-rise) + 26px);
  background: var(--ce-band-paint); color: var(--brand-band-on); }
.ce-band a:link, .ce-band a:visited { color: var(--brand-band-on); }
.ce-band a:hover { color: var(--brand-band-on); text-decoration-thickness: 2px; }
.ce-band :is(h1, h2, h3) { color: var(--brand-band-on) !important; }
.ce-band .quiet, .ce-band .sub { color: var(--brand-band-quiet); }
/* a chip on the band: the band moved away from its words (darker under white words, lighter under charcoal) */
.ce-band-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 11px; border-radius: var(--tk-r-pill);
  background: var(--brand-band-chip); color: var(--brand-band-on); font: 600 13px/1.2 var(--ce-font); white-space: nowrap; box-sizing: border-box; }
.ce-band-chip .ic { width: 14px; height: 14px; }
.ce-band-chip b { font-weight: 700; }
/* a white card or tile sitting on the band (the event's totals, its date, the client's balance, a status chip) */
.ce-band-card { background: var(--ce-surface); color: var(--ce-text); border-radius: var(--tk-r-inner); box-shadow: var(--ce-raised); }
/* the first row of cards rises over the band's edge */
.ce-band ~ .ce-rise, .ce-band ~ #content-main, .ev-band ~ .ev-bar { position: relative; margin-top: calc(-1 * var(--ce-band-rise)); }
.ce-band .ce-pagehead { margin: 0; align-items: flex-end; }
.ce-band .ce-pagehead h1, html:root .ce-band .ce-pagehead h1 { color: var(--brand-band-on); font-family: var(--tk-font-display); font-weight: 700;
  font-size: clamp(30px, calc(2.6 * var(--ce-vw, 1vw)), 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.ce-band .ce-pagehead .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 14px; }
/* Home: the greeting, the date, the role and what needs you; Version, Everyone / Just mine and Customize on the right */
.hm-band { justify-content: flex-end; }
.hm-band .ce-need { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hm-band .ce-need::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tk-warn); box-shadow: 0 0 0 2px var(--brand-band-chip); }
.hm-band .ce-ver { background: var(--brand-band-chip); color: var(--brand-band-on); border: 0; padding: 5px 11px; }
.hm-band .ce-seg { background: var(--brand-band-chip); box-shadow: none; }
.hm-band .ce-seg a { color: var(--brand-band-on) !important; }
.hm-band .ce-seg .on { background: var(--ce-surface); color: var(--ce-text) !important; box-shadow: var(--ce-raised); }
/* "Finish setting up": a flat tint on the band, never raised */
.ce-band-note { display: flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%; box-sizing: border-box; padding: 9px 14px;
  border-radius: var(--tk-r-inner); background: var(--brand-band-chip); font-size: 14px; text-decoration: none !important; }
.ce-band-note b { font-weight: 700; }
.ce-band-note:hover { text-decoration: underline !important; }
/* a widget in the first row of Home whose heading isn't on a card (Coming up) has that heading on the band */
.ce-onband .dk-sec > h3, .ce-onband .dk-sec > h3 a { color: var(--brand-band-on) !important; }
.ce-onband .dk-sec > h3 .ce-wrange { background: var(--brand-band-chip); color: var(--brand-band-on); }
/* Home's key numbers: one resting card, the number that matters most big */
.ce-w:has(> .dk-kpis) { container-type: inline-size; }
html:root .dk-kpis { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 0; background: var(--ce-surface);
  border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); overflow: hidden; }
html:root .dk-kpis > a { border-radius: 0; box-shadow: none; transform: none; padding: 22px 24px; border-left: 1px solid var(--ce-border); }
html:root .dk-kpis > a:first-child { border-left: 0; }
html:root .dk-kpis > a:hover { transform: none; box-shadow: none; background: var(--ce-surface-2); }
html:root .dk-kpis .c { background: transparent; }
html:root .dk-kpis .hero { grid-column: auto; background: transparent; color: var(--ce-text); }
html:root .dk-kpis .hero .k, html:root .dk-kpis .hero .d { color: var(--ce-muted); }
html:root .dk-kpis .hero .v { color: var(--ce-text); font: 700 var(--tk-text-big)/1 var(--tk-font-display); letter-spacing: -.03em; margin-top: 10px; }
html:root .dk-kpis .c .v { font: 700 var(--tk-text-figure)/1.1 var(--tk-font-display); margin-top: 10px; }
@container (max-width: 820px) {
  html:root .dk-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html:root .dk-kpis .hero { grid-column: 1 / -1; border-bottom: 1px solid var(--ce-border); }
  html:root .dk-kpis > .hero + a { border-left: 0; }
}
@container (max-width: 420px) {
  html:root .dk-kpis { grid-template-columns: minmax(0, 1fr); }
  html:root .dk-kpis > a { border-left: 0; border-top: 1px solid var(--ce-border); }
  html:root .dk-kpis > a:first-child { border-top: 0; }
  html:root .dk-kpis .hero .v { font-size: 44px; }
}
/* An event: back links (the breadcrumbs), the date tile, the status, number and name, chips for when, guests, place,
   client and rep, and the totals already on the page in a card on the right. The tabs and actions are a resting card
   rising over the band's edge; scrolled, the band slides away and that card stays pinned under the strip. */
.ev-head[data-here="form"] { background: none; box-shadow: none; border-radius: 0;
  top: calc(var(--ce-top-h) + var(--ce-band-rise) - var(--ev-band-h, 230px)); }
.ev-band { --ce-band-h: 200px; justify-content: center; }
.ev-band .ev-top { padding: 0; align-items: center; gap: 14px 18px; }
.ev-band .ev-top h1 { color: var(--brand-band-on); font-size: clamp(24px, calc(2 * var(--ce-vw, 1vw)), 32px); line-height: 1.15; letter-spacing: -.02em; }
.ev-band .ev-top .meta { margin-top: 10px; gap: 6px; font-size: 13px; color: var(--brand-band-on); }
.ev-band .ev-top .meta > :is(span, b), .ev-band .ev-top .meta > .chip { display: inline-flex !important; align-items: center; min-height: 26px; padding: 0 11px !important;
  border-radius: var(--tk-r-pill) !important; background: var(--brand-band-chip) !important; color: var(--brand-band-on) !important; font: 600 13px/1.2 var(--ce-font) !important;
  white-space: nowrap; box-sizing: border-box; gap: 4px; }
.ev-band .ev-top .meta b { color: inherit; font-weight: 700; }
.ev-band .ev-top .meta > .chip { background: var(--ce-surface) !important; color: var(--ce-text) !important; box-shadow: var(--ce-raised) !important; }
.ev-band .ev-top .meta > .ev-m-date > .ev-m-more { display: inline !important; min-height: 0; padding: 0 !important; background: none !important; }
.ev-band .ev-top .meta a { color: var(--brand-band-on) !important; }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 84px; padding: 10px 0 9px; text-align: center; }
.ev-date .mo { font: 700 12px/1 var(--ce-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ce-accent); }
.ev-date .dd { font: 700 34px/1 var(--tk-font-display); color: var(--ce-text); margin: 4px 0 3px; font-variant-numeric: tabular-nums; }
.ev-date .wd { font: 600 12.5px/1.2 var(--ce-font); color: var(--ce-muted); }
.ev-date .out { margin-top: 6px; padding: 2px 8px; border-radius: var(--tk-r-pill); background: var(--ce-pressed-bg); color: var(--ce-text); font: 600 12px/1.3 var(--ce-font); white-space: nowrap; }
.ev-band .ev-money { margin-left: auto; padding: 12px 16px; gap: 18px; background: var(--ce-surface); color: var(--ce-text); border-radius: var(--tk-r-inner); box-shadow: var(--ce-raised); align-self: center; }
.ev-band .ev-money a:link, .ev-band .ev-money a:visited, .ev-band .ev-headmore { color: var(--ce-text); }
.ev-band .ev-money { flex: none; } .ev-band .ev-nav { display: flex; gap: 6px; }
.ev-band .ev-money:not(:has(b)) { background: none; box-shadow: none; padding: 0; }  /* no totals for this login: just the arrows on the band */
.ev-band .ev-money b { font: 700 22px/1.15 var(--tk-font-display); }
.ev-band .ev-headmore { box-shadow: var(--ce-raised); }
@media (min-width: 901px) { .ev-band .ev-top { flex-wrap: nowrap; } .ev-band .ev-top > div:first-of-type { flex: 1 1 auto; min-width: 0; } }  /* the totals stay on the row; the chips wrap */
.ev-bar { background: var(--ce-surface); border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); padding-top: 12px; }
.ev-bar > .ev-tabs { border-top: 1px solid var(--ce-border); }
/* A client: name, stage and category, the main contact, and what they still owe; the page as it was under it */
.cl-band { --ce-band-h: 200px; justify-content: center; }
.cl-band .ce-band-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cl-band .ce-band-chips .ce-band-chip a { color: inherit; }
.cl-owed { padding: 14px 18px; min-width: 170px; }
.cl-owed span { display: block; font: 600 12.5px var(--ce-font); color: var(--ce-muted); }
.cl-owed b { display: block; font: 700 30px/1.15 var(--tk-font-display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.cl-owed b.due { color: var(--ce-bad-ink); } .cl-owed b.paid { color: var(--ce-ok-ink); }
.cl-owed small { display: block; color: var(--ce-muted); font-size: 12.5px; margin-top: 2px; }
.cl-band .right { align-items: flex-end; }
html:root .cl-band ul.object-tools { float: none; margin: 0; padding: 0; position: static; }
html:root .ce-band .object-tools a:link, html:root .ce-band .object-tools a:visited { color: var(--object-tools-fg); }
/* a phone: the band holds its words and nothing rises over it */
@media (max-width: 760px) {
  :root { --ce-top-h: 58px; --ce-band-px: 12px; --ce-band-rise: 0px; }
  .ce-band { min-height: 0; padding-top: 18px; padding-bottom: 20px; gap: 12px; }
  .ce-band ~ .ce-rise, .ce-band ~ #content-main, .ev-band ~ .ev-bar { margin-top: 14px; }
  .ce-band .ce-pagehead h1, html:root .ce-band .ce-pagehead h1 { font-size: 26px; }
  .ce-band .ce-pagehead .right { margin-left: 0; }
  .ev-band { padding-top: 14px; padding-bottom: 16px; }
  .ev-band .ev-top h1 { font-size: 20px; }
  .ev-band .ev-money { margin-left: 0; width: 100%; box-sizing: border-box; }
  .ev-date { display: none; }
  .ev-bar { padding-top: 8px; }
}
@media print { .ce-band { background: none; color: inherit; } }
/* the event header's small parts on the tokens (look-3-overviews) */
.ev-m-ops { color: var(--ce-text-2); font-weight: 800; }
.ev-here { margin: 6px 0 0; padding: 5px 12px; border-radius: 8px; background: var(--ce-accent-soft); color: var(--ce-accent); font-size: 13px; font-weight: 600; }

/* ===== look-4a-event-work: the screens used to run events, on the shared parts (look port from the Cater HQ spec
   (Nov 2026), under license from Jef). The screens keep their own class names (lessons, scripts and tests read them)
   and their layout; what they look like is here, once, on the tokens:
   resting cards with quiet headers in Bricolage (an old colored header bar is a small dot in front of the title), one
   charcoal main button per screen with the rest white and raised and Delete red, tabs / filters / toggles as pills
   that press in, warnings as flat status tints, fields as wells. Nothing here types a color. ===== */

/* --- shared part classes a screen can use directly */
.ce-hdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ce-subtle)); flex: none; margin-right: 8px; vertical-align: 1px; }
.ce-note { background: var(--ce-surface-2); color: var(--ce-text-2); border-radius: var(--tk-r-field); padding: 9px 13px; font-size: 13px; line-height: 1.45; }
.ce-note.warn { background: var(--ce-warn-tint); color: var(--ce-warn-ink); }
.ce-note.bad { background: var(--ce-bad-tint); color: var(--ce-bad-ink); }
.ce-note.ok { background: var(--ce-ok-tint); color: var(--ce-ok-ink); }
.ce-note.brand { background: var(--ce-pressed-bg); color: var(--ce-text); }
.ce-note a:link, .ce-note a:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* a status word: a dot and the word (never a filled bubble) */
.ce-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ce-text-2); white-space: nowrap; }
.ce-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ce-subtle); flex: none; }
.ce-state.ok::before { background: var(--tk-ok); } .ce-state.warn::before { background: var(--tk-warn); }
.ce-state.bad::before { background: var(--tk-bad); } .ce-state.info::before { background: var(--brand-700); }
.ce-state.ok { color: var(--ce-ok-ink); } .ce-state.warn { color: var(--ce-warn-ink); } .ce-state.bad { color: var(--ce-bad-ink); }
/* a count or level as a flat tint pill */
.ce-tint { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--tk-r-pill); font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap;
  background: var(--ce-surface-2); color: var(--ce-text-2); }
.ce-tint.ok { background: var(--ce-ok-tint); color: var(--ce-ok-ink); } .ce-tint.warn { background: var(--ce-warn-tint); color: var(--ce-warn-ink); }
.ce-tint.bad { background: var(--ce-bad-tint); color: var(--ce-bad-ink); }
/* loose pills (tabs and filters outside a well): the picked one pressed in */
.ce-pills { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.ce-pills > a, .ce-pills > button, .ce-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 0; border-radius: var(--tk-r-pill); background: transparent;
  color: var(--ce-muted) !important; font: 600 13px var(--ce-font); text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.ce-pills > a:hover, .ce-pills > button:hover, .ce-pill:hover { background: var(--ce-surface-2); color: var(--ce-text) !important; }
.ce-pills > .on, .ce-pill.on, .ce-pill[aria-pressed=true], .ce-pill[aria-selected=true] { background: var(--ce-pressed-bg); color: var(--ce-text) !important; box-shadow: var(--ce-pressed); }
.ce-btn.sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.ce-btn .ic { width: 15px; height: 15px; }
/* a quiet table inside a card */
.ce-table { width: 100%; border-collapse: collapse; }
.ce-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ce-muted); text-transform: none; letter-spacing: 0; padding: 9px 12px; border-bottom: 1px solid var(--ce-border); background: transparent; }
.ce-table td { padding: 8px 12px; border-bottom: 1px solid var(--ce-border); vertical-align: middle; font-size: 13.5px; }
.ce-table tbody tr:last-child td { border-bottom: 0; }
/* on Staffing and Floor plan the screen's own Save is the main button; the header's link to the builder is a raised one */
.ev-head[data-here="staffing"] .ev-acts .b.main, .ev-head[data-here="layout"] .ev-acts .b.main { background: var(--ce-surface); color: var(--ce-text) !important; box-shadow: var(--ce-raised); }
.ev-head[data-here="staffing"] .ev-acts .b.main svg, .ev-head[data-here="layout"] .ev-acts .b.main svg { color: var(--c, var(--ce-muted)); }
.ev-head[data-here="staffing"] .ev-acts .b.main:hover, .ev-head[data-here="layout"] .ev-acts .b.main:hover { background: var(--ce-surface-2); }

/* --- the shared parts, applied to each screen's own classes */
.sa h1, .nx h1, .sch-bar h1, .sc-bar h1, .wf.bm .wfh h1, .wf.kp .wfh h1, .re-top h1 { font-family: var(--tk-font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: var(--ce-text); }
.st-body .fn, .sa-bar, .nx form.f, .sa-sum div, .nx .sumry div, .sa-day, .nx > table, .bc-box, .bcl-ev, .rv .box, .sch-card, .sch-pane, .sc-card,
.sc-panel, .ws-body .card, .fp .panel, .fp .stage, .ims-side, .ims-desc, .me .pane { background: var(--ce-surface); border: 0; border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); }
.bcl-ev .bc-box { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.st-body .fn > header { background: transparent; border: 0; border-bottom: 1px solid var(--ce-border); color: var(--ce-text); }
.st-body .fn > header h3, .bcl-ev h3, .rv .box h3, .sc-ag h4, .sc-list caption, .ws-body .fn-head h2, .ws-body .tot-card h3, .ims-side h2,
.ims-desc h3, .me .pane > header h2 { font-family: var(--tk-font-display); font-weight: 700; font-size: 15px; letter-spacing: -.005em; color: var(--ce-text); text-transform: none; }
.rv .kv b, .bc-tag, .sc-card h3, .fp h3 { font-size: 12.5px; font-weight: 600; color: var(--ce-muted); text-transform: none; letter-spacing: 0; }
.rv .check.info, .sch-new { background: var(--ce-surface-2); border: 0; border-radius: var(--tk-r-inner); box-shadow: none; }
.sa-empty, .bcl-none { background: var(--ce-well); box-shadow: var(--ce-well-depth); border: 0; border-radius: var(--tk-r-inner); color: var(--ce-muted); }
.st-bar .btn, .st-body .st-add, .st-body .st-drop, .st-body .st-del span, .sa .btn, .nx .btn, .sch-btn, .sc-btn, .ws-body .btn, .ws-modal .btn,
.ws-body .sec-btn, .ws-body .dd-acts button, .fp .b2, .re-tabs .b2, .ims-side .ims-btn, #ims-unfold, .me .btn, #pick .btn { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: var(--tk-r-pill); background: var(--ce-surface); color: var(--ce-text) !important; box-shadow: var(--ce-raised); font: 600 13px var(--ce-font); text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.st-bar .btn:hover, .st-body .st-add:hover, .st-body .st-drop:hover, .st-body .st-del span:hover, .sa .btn:hover, .nx .btn:hover, .sch-btn:hover,
.sc-btn:hover, .ws-body .btn:hover, .ws-modal .btn:hover, .ws-body .sec-btn:hover, .ws-body .dd-acts button:hover, .fp .b2:hover, .re-tabs .b2:hover,
.ims-side .ims-btn:hover, #ims-unfold:hover, .me .btn:hover, #pick .btn:hover { background: var(--ce-surface-2); }
.st-bar .btn:active, .st-body .st-add:active, .st-body .st-drop:active, .st-body .st-del span:active, .sa .btn:active, .nx .btn:active,
.sch-btn:active, .sc-btn:active, .ws-body .btn:active, .ws-modal .btn:active, .ws-body .sec-btn:active, .ws-body .dd-acts button:active,
.fp .b2:active, .re-tabs .b2:active, .ims-side .ims-btn:active, #ims-unfold:active, .me .btn:active, #pick .btn:active { transform: translateY(1px); box-shadow: var(--ce-shadow); }
.st-bar .btn:disabled, .st-body .st-add:disabled, .st-body .st-drop:disabled, .st-body .st-del span:disabled, .sa .btn:disabled, .nx .btn:disabled,
.sch-btn:disabled, .sc-btn:disabled, .ws-body .btn:disabled, .ws-modal .btn:disabled, .ws-body .sec-btn:disabled, .ws-body .dd-acts button:disabled,
.fp .b2:disabled, .re-tabs .b2:disabled, .ims-side .ims-btn:disabled, #ims-unfold:disabled, .me .btn:disabled, #pick .btn:disabled { box-shadow: none; opacity: .5; transform: none; cursor: default; }
.st-bar .btn[hidden], .st-body .st-add[hidden], .st-body .st-drop[hidden], .st-body .st-del span[hidden], .sa .btn[hidden], .nx .btn[hidden],
.sch-btn[hidden], .sc-btn[hidden], .ws-body .btn[hidden], .ws-modal .btn[hidden], .ws-body .sec-btn[hidden], .ws-body .dd-acts button[hidden],
.fp .b2[hidden], .re-tabs .b2[hidden], .ims-side .ims-btn[hidden], #ims-unfold[hidden], .me .btn[hidden], #pick .btn[hidden] { display: none; }
.st-bar .btn.pri, .sa-bar button.btn, .nx .btn.go, .sch-bar .sch-btn.primary, .ws-body .btn.pri, .ws-modal .btn.pri, .fp .b2.pri, .me .btn.pri { background: var(--ce-main); color: var(--ce-main-text) !important; box-shadow: var(--ce-main-depth); border: 0; }
.st-bar .btn.pri:hover, .sa-bar button.btn:hover, .nx .btn.go:hover, .sch-bar .sch-btn.primary:hover, .ws-body .btn.pri:hover,
.ws-modal .btn.pri:hover, .fp .b2.pri:hover, .me .btn.pri:hover { background: var(--ce-main-hover); }
.fp .b2.danger { background: var(--tk-bad); color: var(--tk-white) !important; border: 0; box-shadow: var(--tk-fill-edge), 0 4px 10px -4px rgb(var(--tk-bad-rgb) / .55); }
.fp .b2.danger:hover { background: var(--ce-bad-ink); }
.bcl-bar a.f, .sch-tabs button, .sc-seg a, .mb-tab, .mb-cat, .seg3 button, .re-tabs a, .it-tabs a { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--tk-r-pill); background: transparent; color: var(--ce-muted) !important; box-shadow: none; font: 600 13px var(--ce-font); text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.bcl-bar a.f:hover, .sch-tabs button:hover, .sc-seg a:hover, .mb-tab:hover, .mb-cat:hover, .seg3 button:hover, .re-tabs a:hover, .it-tabs a:hover { background: var(--ce-surface-2); color: var(--ce-text) !important; }
.bcl-bar a.f[hidden], .sch-tabs button[hidden], .sc-seg a[hidden], .mb-tab[hidden], .mb-cat[hidden], .seg3 button[hidden], .re-tabs a[hidden],
.it-tabs a[hidden] { display: none; }
.bcl-bar a.f.on, .sch-tabs button.on, .sc-seg a.on, .sc-railbtn[aria-expanded="true"], .mb-tab.on, .mb-cat.on, .seg3 button.on, .re-tabs a.on,
.it-tabs a.on { background: var(--ce-pressed-bg); color: var(--ce-text) !important; box-shadow: var(--ce-pressed); border-color: transparent; }
.sc-seg, .seg3 { display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: var(--tk-r-pill); background: var(--ce-well); box-shadow: var(--ce-well-depth); }
.sc-seg[hidden], .seg3[hidden] { display: none; }
.mb-tab small, .mb-cat small, .it-tabs a small { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 0; border-radius: var(--tk-r-pill); background: var(--ce-pressed-bg); color: var(--ce-text); box-shadow: inset 0 0 0 1px var(--ce-chip-ring); font-weight: 600; }
.mb-tab small[hidden], .mb-cat small[hidden], .it-tabs a small[hidden] { display: none; }
.st-body .ns-tag, .sa-p { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 0; border-radius: var(--tk-r-pill); background: var(--ce-surface-2); color: var(--ce-text-2); box-shadow: inset 0 0 0 1px var(--ce-border); font-weight: 600; }
.st-body .ns-tag[hidden], .sa-p[hidden] { display: none; }
.st-body .fn tr.is-open td, .sa-p.lv-amber, .bc-n.look, .rv .check.warn, .wf.bm .note.warn, .wf.kp .note.warn { background: var(--ce-warn-tint); color: var(--ce-warn-ink); border-color: transparent; box-shadow: none; }
.sa-p.lv-red, .bc-n.fix, .bcl-unpub, .rv .check.bad, .sch-err, .sc-off, .wf.bm .note.bad, .wf.kp .note.bad { background: var(--ce-bad-tint); color: var(--ce-bad-ink); border-color: transparent; box-shadow: none; }
.bc-n.ok, .rv .check.ok, .wf.bm .note.ok, .wf.kp .note.ok { background: var(--ce-ok-tint); color: var(--ce-ok-ink); border-color: transparent; box-shadow: none; }
.rv .note { background: var(--ce-pressed-bg); color: var(--ce-text); border-color: transparent; box-shadow: none; }
.st-body .open, .sa-sum .amber b, .sa-evs .bare { color: var(--ce-warn-ink); }
.st-body .st-del:hover .go, .st-body .st-del input:checked ~ .undo, .sa-sum .red b, .bc-fixword, .sch-row > label.req, .sch-guests label.req,
.sch-new label.req, .sch-seeday-off, .sch-new .msg { color: var(--ce-bad-ink); }
.st-body .fn th, .nx th, .rq th, .sc-month th, .sc-list th, .ws-body table.grid th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ce-muted); text-transform: none; letter-spacing: 0; background: transparent; border-bottom: 1px solid var(--ce-border); }
.sch-seeday { background: var(--ce-surface); border: 0; border-radius: var(--tk-r-inner); box-shadow: var(--ce-shadow-lg); }

/* --- Staffing, the Nowsta export page and Shifts ahead */
.st-body .fn > header::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tk-dot-violet); flex: none; align-self: center; }
.st-body .fn tr.add td { background: var(--ce-surface-2); }
.st-body .st-del input:focus-visible + span { box-shadow: var(--ce-ring); }
/* Nowsta states: a dot and the words (the bubble went in look-2-parts) */
.ns-state::before, .nx .st::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ce-subtle); margin-right: 6px; vertical-align: 1px; }
.ns-new::before, .nx .st-new::before { background: var(--ce-text); }
.ns-changed::before, .nx .st-changed::before { background: var(--tk-warn); }
.ns-sent::before, .nx .st-sent::before { background: var(--tk-ok); }
@media screen and (max-width: 640px) {
  .st-body .fn tr.is-open { background: var(--ce-warn-tint); }
  .st-body .fn tr.is-open td { background: transparent; }
  .st-body .fn tr.add:not([hidden]) { background: var(--ce-surface-2); }
  .st-body .fn tr.add td { background: transparent; }
}
/* Shifts ahead: a day is a card; an amber or red day carries its level as a dot before the date */
.sa-day { margin-bottom: 8px; }
.sa-day > summary { border-radius: var(--tk-r-card); }
.sa-day.lv-amber .sa-date::before, .sa-day.lv-red .sa-date::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--tk-warn); }
.sa-day.lv-red .sa-date::before { background: var(--tk-bad); }
.sa-key i.amber { background: var(--tk-warn); } .sa-key i.red { background: var(--tk-bad); }
.sa-sum b, .nx .sumry b { font-family: var(--tk-font-display); font-variant-numeric: tabular-nums; }
.sa-week h2 { font-family: var(--ce-font); }
.nx > table { overflow: hidden; }
.nx tbody tr:last-child td { border-bottom: 0; }
/* --- the BEO check (events/_beo_check.html, the box on an event and the list for the coming days) and reviews */
.bc-box { margin-top: 12px; padding: 12px 16px; }
.bc-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bc-head .muted { font-size: 12.5px; }
.bc-n, .bcl-unpub { display: inline-block; font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: var(--tk-r-pill); line-height: 18px; }
.bc-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.bc-list li { list-style: none; padding: 5px 0 5px 16px; font-size: 13.5px; position: relative; }
.bc-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--tk-warn); }
.bc-list li.fix::before { background: var(--tk-bad); }
.bc-tag { display: inline-block; min-width: 74px; }
.bc-list a { font-weight: 600; white-space: nowrap; }
.rv .check, .rv .note { border-radius: var(--tk-r-field); }
.rv .kv b { margin-bottom: 1px; }
/* --- the Event Quick Look and Calendar Glance */
.sch-bar h1 { font-size: 20px; }
.sc-off { font-weight: 700; line-height: 1.3; }
.sc-card h3 { font-family: var(--ce-font); }
/* Django stripes table rows with the page color; the calendar's tables sit on their own cards */
.sc-month tbody tr, .sc-year tbody tr, .sc-list tbody tr, .sc-mini tbody tr, .sc-month thead tr, .sc-year thead tr, .sc-list thead tr { background: transparent; }
.sc-month { box-shadow: var(--ce-shadow); }
.sc-list { border-radius: var(--tk-r-field); }
/* --- the Menu & Items builder */
.ws-body .dd-acts button.dd-new, .ws-body tr.addrow .add-line { color: var(--ce-accent) !important; }
.ws-body .btn svg { width: 14px; height: 14px; }
.mb-tab small, .mb-cat small { color: var(--ce-accent); line-height: 16px; }
/* --- bar math and kitchen prep setup: their notes are flat tints, their focus is the shared ring */
.wf.bm .note, .wf.kp .note { border: 0; border-radius: var(--tk-r-field); }
.wf.bm .note a, .wf.kp .note a { color: inherit; }
.wf.bm a:focus-visible, .wf.bm button:focus-visible, .wf.bm summary:focus-visible, .wf.kp a:focus-visible, .wf.kp button:focus-visible, .wf.kp summary:focus-visible { outline: none; box-shadow: var(--ce-ring); }
.wf.bm input:focus-visible, .wf.bm select:focus-visible, .wf.kp input:focus-visible, .wf.kp select:focus-visible { outline: none; }
.wf.bm .wfh .sub, .wf.kp .wfh .sub { color: var(--ce-muted); }
/* --- the floor plan and the room editor */
.fp h3 { font-family: var(--ce-font); }
.fp .cnt tr { background: transparent; }
/* --- the Items list and the menu editor */
.it-tabs a small { color: var(--ce-accent); line-height: 16px; }
.me .btn svg { width: 14px; height: 14px; }
/* the Items list is typed into and saved: Save is its main button, so Add item and Search are raised ones */
html body.model-item.change-list .object-tools a.addlink:link, html body.model-item.change-list .object-tools a.addlink:visited,
html body.model-item.change-list #toolbar form input[type=submit] { background: var(--ce-surface); color: var(--ce-text) !important; box-shadow: var(--ce-raised); }
html body.model-item.change-list .object-tools a.addlink:hover, html body.model-item.change-list #toolbar form input[type=submit]:hover { background: var(--ce-surface-2); }
/* ===== end look-4a-event-work ===== */

/* ===== look-4b-money-sales-stock: the money, sales and stock screens on the shared parts
   (look port from the Cater HQ spec (Nov 2026), under license from Jef). Reports, sales and commission, leaderboards, the books, QuickBooks, tax
   areas, inventory, the Bulk Editor and Fleet. Like look-4a, each screen keeps its own class names (lessons, page
   scripts and tests read them) and its layout; how it looks is here, on the tokens: resting cards with quiet Bricolage
   headers (an old colored header bar is a dot before the title), one charcoal main button per screen, the rest white
   and raised, Delete red, tabs / filters / toggles as pills that press in, warnings as flat tints, fields as wells.
   Tables with numbers: figures right-aligned in tabular numerals, totals bold on a quiet tray, a negative amount in
   the bad token. Nothing here types a color. No figure on any screen changes. ===== */

/* --- shared helpers a screen can use directly */
/* words in a color that means something (a giveaway kind, a budget version, a rep's color): the color darkened on white
   until it reads. Set the color with style="--c:var(--tk-…)" or from the data. */
.ce-ink { color: color-mix(in srgb, var(--c, var(--ce-text)) 60%, var(--tk-charcoal)); }
/* a negative amount, an overdue figure */
.ce-neg { color: var(--ce-bad-ink); }
/* a figure tile: a resting card, its label after a small dot in the meaning's color, the figure in Bricolage */
.ce-fig { background: var(--ce-surface); border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); padding: 14px 18px; box-sizing: border-box; min-width: 0; }
.ce-fig > b { display: block; font: 700 var(--tk-text-figure)/1.1 var(--tk-font-display); letter-spacing: -.01em; color: var(--ce-text); font-variant-numeric: tabular-nums; }
.ce-fig > span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ce-muted); }
.ce-fig[style*="--c"] > span::before, .ce-fig.dot > span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, var(--ce-subtle)); margin-right: 7px; vertical-align: 1px; }
/* the totals row of a table with numbers */
.ce-totrow > td, .ce-totrow > th { font-weight: 700; background: var(--ce-surface-2); color: var(--ce-text); }

/* --- the shared parts, applied to each screen's own classes */
.rh-top h1, .rs h1, .lm h1, .le h1, .cm h1 { font-family: var(--tk-font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: var(--ce-text); }
.rh-tile, .rs fieldset, .cr-filters, .cr-tile, .ag-filters, .dr-bar, .dr-sum > div, .ce-scroll-x:has(> .cr-table), .ce-scroll-x:has(> table.dr),
.ag-wrap, .rh-sec > div > .rh-saved, .rh-sec > .rh-saved, .lm .ce-scroll-x, .le fieldset, .cm .box, .le .pv, .qb div, .qb-form,
.ce-scroll-x:has(> .qb-t), .ic-card, .fnav ~ .strip > div, .fl-figs > .card { background: var(--ce-surface); border: 0; border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); }
.rs legend, .rh-sec h3, .le legend, .cm .box h2, .le .pv h2, .ic-card > summary h3 { font-family: var(--tk-font-display); font-weight: 700; font-size: 15px; letter-spacing: -.005em; color: var(--ce-text); text-transform: none; }
.cr-filters label, .ag-filters label, .dr-bar label, .dr-sum .k { font-size: 12.5px; font-weight: 600; color: var(--ce-muted); text-transform: none; letter-spacing: 0; }
.cm .box .box, .le .pick ol, .bud .g td { background: var(--ce-surface-2); border: 0; border-radius: var(--tk-r-inner); box-shadow: none; }
.rh-search, .ic-none { background: var(--ce-well); box-shadow: var(--ce-well-depth); border: 0; border-radius: var(--tk-r-inner); color: var(--ce-muted); }
.rh-new, .rs button, .lm .mv, .le .pick li button, .cm button, .le button.default, .le button.button, .lm .act button { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: var(--tk-r-pill); background: var(--ce-surface); color: var(--ce-text) !important; box-shadow: var(--ce-raised); font: 600 13px var(--ce-font); text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.rh-new:hover, .rs button:hover, .lm .mv:hover, .le .pick li button:hover, .cm button:hover, .le button.default:hover, .le button.button:hover,
.lm .act button:hover { background: var(--ce-surface-2); }
.rh-new:active, .rs button:active, .lm .mv:active, .le .pick li button:active, .cm button:active, .le button.default:active, .le button.button:active,
.lm .act button:active { transform: translateY(1px); box-shadow: var(--ce-shadow); }
.rh-new:disabled, .rs button:disabled, .lm .mv:disabled, .le .pick li button:disabled, .cm button:disabled, .le button.default:disabled,
.le button.button:disabled, .lm .act button:disabled { box-shadow: none; opacity: .5; transform: none; cursor: default; }
.rh-new[hidden], .rs button[hidden], .lm .mv[hidden], .le .pick li button[hidden], .cm button[hidden], .le button.default[hidden],
.le button.button[hidden], .lm .act button[hidden] { display: none; }
.rh-new, .rs button.default, .cr-filters button.default, .ag-filters button.default, .dr-bar button.default, .le button.default, .cm button.default,
.fnav ~ div > .bar button.default { background: var(--ce-main); color: var(--ce-main-text) !important; box-shadow: var(--ce-main-depth); border: 0; }
.rh-new:hover, .rs button.default:hover, .cr-filters button.default:hover, .ag-filters button.default:hover, .dr-bar button.default:hover,
.le button.default:hover, .cm button.default:hover, .fnav ~ div > .bar button.default:hover { background: var(--ce-main-hover); }
.lm .del, .cm form:has(input[name=action][value$="_remove"]) button { background: var(--tk-bad); color: var(--tk-white) !important; border: 0; box-shadow: var(--tk-fill-edge), 0 4px 10px -4px rgb(var(--tk-bad-rgb) / .55); }
.lm .del:hover, .cm form:has(input[name=action][value$="_remove"]) button:hover { background: var(--ce-bad-ink); }
.lm .tg, .lg-tabs a, .subtabs a, .ic-bar a.f { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--tk-r-pill); background: transparent; color: var(--ce-muted) !important; box-shadow: none; font: 600 13px var(--ce-font); text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.lm .tg:hover, .lg-tabs a:hover, .subtabs a:hover, .ic-bar a.f:hover { background: var(--ce-surface-2); color: var(--ce-text) !important; }
.lm .tg[hidden], .lg-tabs a[hidden], .subtabs a[hidden], .ic-bar a.f[hidden] { display: none; }
.lg-tabs a.on, .subtabs a.on, .ic-bar a.f.on { background: var(--ce-pressed-bg); color: var(--ce-text) !important; box-shadow: var(--ce-pressed); border-color: transparent; }
.lm .tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 0; border-radius: var(--tk-r-pill); background: var(--ce-surface-2); color: var(--ce-text-2); box-shadow: inset 0 0 0 1px var(--ce-border); font-weight: 600; }
.lm .tag[hidden] { display: none; }
.cm .warn { background: var(--ce-warn-tint); color: var(--ce-warn-ink); border-color: transparent; box-shadow: none; }
.le .errs { background: var(--ce-bad-tint); color: var(--ce-bad-ink); border-color: transparent; box-shadow: none; }
.rs .sug, .rs .act-clear { color: var(--ce-warn-ink); }
.rs .act-set { color: var(--ce-ok-ink); }
.rh-saved th, .rs th, .cr-table th, .ag-sum th, .ag-table th, table.dr th, .lm th, .cm table.t th, table.fin th, table.qb-t th, table.fl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ce-muted); text-transform: none; letter-spacing: 0; background: transparent; border-bottom: 1px solid var(--ce-border); }
.cr-table td:not(:first-child), .ag-sum td:not(:first-child), .ag-table td.n, table.dr td.n, .rs td.n, .cm table.t .num, table.fin td.n,
table.fin th.n, table.fl td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-tile b, .dr-sum div b, .qb b, .fnav ~ .strip b, .fl-fig { font-family: var(--tk-font-display); font-weight: 700; font-size: var(--tk-text-figure); line-height: 1.1; letter-spacing: -.01em; color: var(--ce-text); font-variant-numeric: tabular-nums; }
.cm .neg, table.fin .neg, table.fin td.neg { color: var(--ce-bad-ink); }

/* --- Reports hub, report setup, the closing, aging and donations reports */
.rh-top .sub, .rh-tile small, .rh-empty, .rh-note { color: var(--ce-muted); }
.rh-search:focus-within { background: var(--ce-surface); box-shadow: var(--ce-ring); }
.rh-search input, .rh-search input:focus { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; color: var(--ce-text); font: 14px var(--ce-font); }
.rh-search .ic { color: var(--ce-muted); }
.rh-sec h2 { font-family: var(--tk-font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ce-text); text-transform: none; }
.rh-sec h3 { font-size: 14px; color: var(--ce-muted); }
.rh-tile { text-decoration: none !important; color: var(--ce-text) !important; transition: transform .18s ease, box-shadow .18s ease; }
.rh-tile:hover { transform: translateY(-2px); box-shadow: var(--ce-raised); }
.rh-tile .ib { border-radius: var(--tk-r-field); background: color-mix(in srgb, var(--c, var(--ce-subtle)) 15%, var(--ce-surface)); color: color-mix(in srgb, var(--c, var(--ce-subtle)) 70%, var(--ce-text)); }
.rh-tile b { font-weight: 650; }
.rh-saved { border-radius: var(--tk-r-card); overflow: hidden; background: var(--ce-surface); }
.rh-saved td { border-top: 1px solid var(--ce-border); color: var(--ce-text); }
.rh-saved td a { font-weight: 650; }
.rs fieldset legend { font-size: 16px; }
.rs fieldset > p, .rs .muted { color: var(--ce-muted); }
.rs td { border-top: 1px solid var(--ce-border); }
.rs td.n { color: var(--ce-muted); }
.rs .sug, .rs .act-set, .rs .act-clear { font-weight: 700; }
.rs .act-kept { color: var(--ce-muted); font-weight: 700; }
.rs .save { background: var(--ce-bg); }
.cr-tile span { color: var(--ce-muted); font-weight: 600; }
.cr-tile span::before, .dr-sum .k::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ce-subtle)); margin-right: 7px; vertical-align: 1px; }
.dr-sum .k::before { display: none; }
.cr-table td { border-top: 1px solid var(--ce-border); color: var(--ce-text); }
.cr-table tr:first-child th { border-top: 0; }
.cr-table .pct { font-weight: 700; } .cr-table .pct.ok { color: var(--ce-ok-ink); } .cr-table .pct.warn { color: var(--ce-warn-ink); } .cr-table .pct.bad { color: var(--ce-bad-ink); }
.cr-table + *, .ce-scroll-x:has(> .cr-table) { margin-bottom: 22px; }
.ce-scroll-x:has(> .cr-table) .cr-table { margin-bottom: 0; }
.cr-table .bar { background: var(--ce-well); box-shadow: var(--ce-well-depth); }
.cr-table .bar i.won, p.legend .dot.won { background: var(--tk-out-won); } .cr-table .bar i.cancelled, p.legend .dot.cancelled { background: var(--tk-out-cancelled); }
.cr-table .bar i.lost, p.legend .dot.lost { background: var(--tk-out-lost); } .cr-table .bar i.open, p.legend .dot.open { background: var(--tk-out-open); }
p.legend { color: var(--ce-text-2); }
.ag-sum { background: var(--ce-surface); border-radius: var(--tk-r-card); box-shadow: var(--ce-shadow); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.ag-sum td { border-top: 1px solid var(--ce-border); color: var(--ce-text); }
.ag-table td { border-top: 1px solid var(--ce-border); color: var(--ce-text); }
.ag-none { color: var(--ce-muted); }
.ag-wrap .ag-table { margin: 0; }
table.dr td { border-top: 1px solid var(--ce-border); }
.dr-sum > div { color: var(--ce-muted); font-size: 13px; }
/* --- leaderboards, commission */
.lm table { background: var(--ce-surface); }
.lm .ce-scroll-x { overflow: hidden; overflow-x: auto; }
.lm td { border-top: 1px solid var(--ce-border); }
.lm .nm { font-weight: 650; color: var(--ce-text) !important; text-decoration: none; }
.lm .nm:hover { text-decoration: underline; }
.lm .w, .lm .muted { color: var(--ce-muted); }
/* a switch that's on is pressed in, in the booked green (the words say "green switch") */
.lm .tg.on { background: var(--ce-ok-tint); color: var(--ce-ok-ink) !important; box-shadow: inset 0 1px 2px rgb(var(--tk-ink-rgb) / .12), inset 0 0 0 1px color-mix(in srgb, var(--tk-ok) 35%, transparent); }
.lm .tg:not(.on) { box-shadow: inset 0 0 0 1px var(--ce-border); }
.lm .tag { font-weight: 600; }
.lm .mv:disabled, .le .pick li button:disabled { box-shadow: none; opacity: .45; }
.le .row > label, .le .lab { font-weight: 600; color: var(--ce-text); font-size: 13px; }
.le .w { color: var(--ce-muted); }
.le .pick ol { border-radius: var(--tk-r-field); }
.le .pick li { border-top: 1px solid var(--ce-border); }
.le .pick li:first-child { border-top: 0; }
.le .errs { border: 0; border-radius: var(--tk-r-field); }
.le .save, .cm .save { background: var(--ce-bg); }
.le .pv { border: 0; }
.le .pv h2 { background: transparent; color: var(--ce-text); border-bottom: 1px solid var(--ce-border); }
.le .pv h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tk-dot-violet); margin-right: 8px; flex: none; }
.cm .box h2 { font-size: 17px; background: none; text-transform: none; letter-spacing: 0; }
.cm .muted { color: var(--ce-muted); }
.cm .warn { border: 0; border-radius: var(--tk-r-field); }
.cm .warn a { color: inherit; text-decoration: underline; }
.cm table.t td { border-top: 1px solid var(--ce-border); }
.cm table.t thead th, .cm table.t tr:first-child > td { border-top: 0; }
.cm table.t tr.tot td, .cm table.t tfoot td { font-weight: 700; background: var(--ce-surface-2); color: var(--ce-text); }
.cm .pill.paid, .cm .pill.open { display: inline-flex !important; border-radius: var(--tk-r-pill) !important; font-weight: 600 !important; line-height: 18px !important; }
.cm .pill.paid { background: var(--ce-ok-tint) !important; color: var(--ce-ok-ink) !important; }
.cm .pill.open { background: var(--ce-warn-tint) !important; color: var(--ce-warn-ink) !important; }
.cm button { padding: 6px 14px; font-size: 13px; }
.cm .box .box { background: var(--ce-surface-2) !important; box-shadow: inset 0 0 0 1px var(--ce-border); }  /* over its own style="" */
.cm .opt { border-radius: var(--tk-r-field); }
.cm .opt:hover { background: var(--ce-surface-2); }
.cm .opt input { accent-color: var(--brand-700); }
.cm .sub { color: var(--ce-text); }
/* --- the books, budgets, QuickBooks */
.lg-tabs a .ic { width: 15px; height: 15px; }
table.fin td { border-top: 1px solid var(--ce-border); color: var(--ce-text); }
table.fin tr:first-child th { border-top: 0; }
table.fin tr.sec td { font-weight: 650; color: var(--ce-text); background: var(--ce-surface-2); }
table.fin tr.tot td { font-weight: 700; color: var(--ce-text); background: var(--ce-surface-2); }
table.fin tr.grand td { font-weight: 700; color: var(--ce-text); background: var(--ce-surface-2); box-shadow: inset 0 1px 0 var(--ce-border-strong); }
.bud .g td { font-weight: 700; color: var(--ce-text); border-radius: 0; }
.bud input.c { font-variant-numeric: tabular-nums; min-height: 0; }
table.fin .good { color: var(--ce-ok-ink); }
.ce-okink { color: var(--ce-ok-ink); }
.qb div { color: var(--ce-muted); }
.qb-form label { color: var(--ce-muted); font-weight: 600; }
table.qb-t td { border-top: 1px solid var(--ce-border); color: var(--ce-text); }
table.qb-t .n { font-variant-numeric: tabular-nums; }
/* --- inventory check: a count is a flat tint; a finding is a line with a dot (red to fix, amber to look at) */
.ic-n { border-radius: var(--tk-r-pill); font-weight: 700; background: var(--ce-surface-2); color: var(--ce-text-2); }
.ic-n.fix { background: var(--ce-bad-tint); color: var(--ce-bad-ink); } .ic-n.look { background: var(--ce-warn-tint); color: var(--ce-warn-ink); }
.ic-sum, .ic-card .help, .ic-card > summary .area { color: var(--ce-muted); }
.ic-card > summary .area { font-size: 12.5px; font-weight: 600; }
.ic-card > summary:hover { background: var(--ce-surface-2); border-radius: var(--tk-r-card); }
.ic-list li { border-left: 0; }
.ic-list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--tk-warn); }
.ic-list li.fix::before { background: var(--tk-bad); }
.ic-twins th { color: var(--ce-muted); }
.ic-twins td { border-top: 1px solid var(--ce-border); }
.ic-twins td.n, .ic-twins th.n { font-variant-numeric: tabular-nums; }
.ic-twins .off { color: var(--ce-muted); }
/* --- Fleet */
.fnav ~ .strip span { color: var(--ce-muted); font-weight: 600; }
.fnav ~ .strip span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ce-subtle)); margin-right: 7px; vertical-align: 1px; }
.fnav ~ div > .bar input[type=search] { border-radius: var(--tk-r-pill); }
.fnav ~ div > .bar button.default, .fnav.fl-run button.default { padding: 8px 18px; min-height: 36px; }
table.fl td { border-top: 1px solid var(--ce-border); }
table.fl tbody tr:hover { background: var(--ce-surface-2); }
table.fl a.u { color: var(--ce-text) !important; }
table.fl .d { border-radius: var(--tk-r-pill); font-weight: 700; font-variant-numeric: tabular-nums; }
table.fl .d.ok { background: var(--ce-ok-tint); color: var(--ce-ok-ink); } table.fl .d.soon { background: var(--ce-warn-tint); color: var(--ce-warn-ink); }
table.fl .d.overdue { background: var(--ce-bad-tint); color: var(--ce-bad-ink); } table.fl .d.none { color: var(--ce-muted); font-weight: 500; }
table.fl .sv.overdue { color: var(--ce-bad-ink); font-weight: 700; } table.fl .sv.soon { color: var(--ce-warn-ink); font-weight: 700; }
.card.att > a { border-top: 1px solid var(--ce-border); color: var(--ce-text) !important; }
.fl-figs > .card { color: var(--ce-muted); font-size: 13px; }
.fl-figs > .card .fl-fig { font-size: 28px; }
.fnav ~ .hero .muted { color: var(--ce-muted); }
/* ===== end look-4b-money-sales-stock ===== */

/* ===== mobile-cleanup (0.5.52): phones and tablets only, screen only. Nothing here applies on a laptop or in print. ===== */
/* Menu & Items and Charges at tablet width: the item table scrolls inside its card instead of widening the page */
@media screen and (max-width: 900px) {
  .ws-body .card { overflow-x: auto; }
}
@media screen and (max-width: 640px) {
  /* the ✦ button: smaller, tucked into the corner just above the bottom bar, so it covers less of the page */
  html:root body #header #ai-fab.ce-in-bar { position: fixed !important; width: 40px !important; height: 40px !important; right: 6px !important;
    bottom: calc(var(--ce-bar-h, 62px) + 6px) !important; font-size: 18px !important; opacity: .92; }
  /* while the assistant panel is open on a phone the button would sit on its footer; the panel's own X and Esc close it */
  body:has(#ai-panel.on) #header #ai-fab.ce-in-bar { visibility: hidden; }
  /* Timeline & Checklist: each row becomes a small card with a label over every field, instead of a table 1800 px wide */
  #timeline-group thead, #checklist-group thead, #timeline-group td.original, #checklist-group td.original { display: none; }
  #timeline-group table, #timeline-group tbody, #timeline-group tr:not(.empty-form), #timeline-group td,
  #checklist-group table, #checklist-group tbody, #checklist-group tr:not(.empty-form), #checklist-group td { display: block; width: auto; box-sizing: border-box; }
  #timeline-group tr:not(.empty-form), #checklist-group tr:not(.empty-form) { padding: 8px 12px; border-bottom: 1px solid var(--ce-border); }
  #timeline-group td, #checklist-group td { border-bottom: 0 !important; padding: 4px 0 !important; }
  #timeline-group td::before, #checklist-group td::before { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--ce-muted); }
  #timeline-group td.field-time::before { content: "Time"; } #timeline-group td.field-what::before { content: "What"; }
  #timeline-group td.field-department::before, #checklist-group td.field-department::before { content: "Department"; }
  #timeline-group td.field-show_to_client::before { content: "Show to client"; }
  #checklist-group td.field-task::before { content: "Task"; } #checklist-group td.field-assigned_to::before { content: "Assigned to"; }
  #checklist-group td.field-due_date::before { content: "Due date"; } #checklist-group td.field-done_on::before { content: "Done on"; }
  #checklist-group td.field-done_by::before { content: "Done by"; } #checklist-group td.field-done_at::before { content: "Done at"; }
  #checklist-group td.field-photo::before { content: "Photo"; } #checklist-group td.field-note::before { content: "Note"; }
  #timeline-group td.delete::before, #checklist-group td.delete::before { content: "Remove"; }
  #timeline-group td input[type=text], #checklist-group td input[type=text], #checklist-group td textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
  #timeline-group td select, #checklist-group td select { max-width: 100%; }
}

/* mobile-sweep: a short event header on a phone. One line of number and name, one of status, date and guests, then the
   tabs. Totals, the place and client, the phone-view link, the actions and the unsent-changes bar fold under Details.
   While a lesson is running the header stays whole, as before, so its steps still find what they point at. The
   lesson says so with html.tr-on (tour.js), from the moment it starts looking for a step's control: going by the box
   alone folded the header again each time the box was hidden to look, so the page changed shape under the lesson
   (lesson-phone-fix). The box test stays for a page that still holds an older tour.js. */
@media screen and (max-width: 640px) {
  .ev-headmore { display: inline-flex; align-items: center; gap: 4px; flex: none; align-self: flex-start; height: 36px; padding: 0 10px; margin-left: auto;
    border: 0; box-shadow: var(--ce-raised); border-radius: var(--tk-r-pill); background: var(--ce-surface); color: var(--ce-text);
    font: 600 13.5px var(--ce-font); cursor: pointer; position: relative; }
  .ev-headmore svg { width: 15px; height: 15px; transition: transform .15s; }
  .ev-head.ev-open .ev-headmore svg { transform: rotate(180deg); }
  .ev-head:has(#ev-hold-bar, .pp-changed) .ev-headmore::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--tk-warn); border: 2px solid var(--ce-surface); }
  html.tr-on .ev-headmore, body:has(#tr-card:not([hidden])) .ev-headmore { display: none; }
  .ev-head[data-here="items"], .ev-head[data-here="staffing"], .ev-head[data-here="layout"] { margin-top: 6px; margin-bottom: 8px; }
  body.model-event.change-form div.breadcrumbs { display: none; }
  .ev-top { align-items: flex-start; gap: 6px 8px; }
  .ev-top > .ev-back { flex: 0 0 100%; }
  .ev-top > div:first-of-type { flex: 1 1 0; min-width: 0; }
  html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-top { padding-bottom: 6px; }
  html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-top h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px; }
  html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-top .meta { gap: 2px 8px; margin-top: 2px; font-size: 12.5px; }
  html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-back, html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-m-more, html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-money, html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-phone-link, html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) #ev-hold-bar, html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .pp,
  html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-acts > :not(.ev-save) { display: none !important; }
  html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-acts:has(.ev-save[data-state="saved"]) { display: none; }
  html:not(.tr-on) body:not(:has(#tr-card:not([hidden]))) .ev-head:not(.ev-open) .ev-acts { padding-bottom: 6px; }
}
/* mobile-sweep: on a phone a wide table that has no card of its own scrolls inside this box, not the whole page
   (phones only, so a sticky table header on a computer keeps sticking to the page) */
@media screen and (max-width: 760px) { .ce-scroll-x { overflow-x: auto; max-width: 100%; } }
/* mobile-sweep: record pages on a phone. Boxes and wrappers inside a row never run wider than the row (notes boxes were
   610 px wide, tax schedule pickers ran under the edge); a checklist photo box fits its card. */
@media screen and (max-width: 760px) {
  body.change-form fieldset.module .form-row .form-multiline > div, body.change-form fieldset.module .form-row .fieldBox,
  body.change-form fieldset.module .form-row .related-widget-wrapper { min-width: 0; max-width: 100%; }
  body.change-form fieldset.module .form-row textarea { width: 100% !important; box-sizing: border-box; }
  body.change-form fieldset.module .form-row .related-widget-wrapper { flex-wrap: wrap; }
  body.change-form fieldset.module .form-row .related-widget-wrapper select { min-width: 0; max-width: 100%; flex: 1 1 160px; }
  #checklist-group td input[type=file] { max-width: 100%; }
}
/* mobile-sweep: a row of choices (.ce-seg) wraps on a phone instead of cutting off the last ones */
@media screen and (max-width: 640px) { .ce-seg { flex-wrap: wrap; max-width: 100%; } }
/* mobile-sweep: on a phone, pickers, boxes and buttons in the page are at least 36 px tall, so a finger can hit them
   (many were 24 to 31 px). Links in text, tick boxes, the leaderboard dots and arrows, and the two-list pickers' arrow
   buttons keep their size. */
@media screen and (max-width: 640px) {
  #content select:not([multiple]),
  #content input:is(:not([type]), [type=text], [type=number], [type=email], [type=tel], [type=search], [type=date], [type=time], [type=password], [type=url], [type=submit], [type=button]),
  #content button:not(.lbx-dot):not(.lbx-arrow):not(.ce-tip-x):not([class*="selector-"]) { min-height: 36px; }
}
/* mobile-sweep: number and date boxes on record pages show their whole value on a phone */
@media screen and (max-width: 640px) {
  body.change-form fieldset.module .form-row input:is([type=number], .vIntegerField, .vBigIntegerField) { min-width: 96px; }
  body.change-form .inline-group fieldset.module td input[type=text]:is(.vDateField, .vTimeField) { min-width: 104px; }
}
