/*
 * Borem Core UI isolation layer.
 *
 * Loaded after third-party/template CSS and before Borem component CSS.  The
 * reset deliberately has low specificity so Borem's component rules remain
 * authoritative while WordPress theme rules are removed from the app tree.
 */

:where(.borem-app, .borem-ui-root, .borem-preloader),
:where(.borem-app, .borem-ui-root, .borem-preloader) :where(
  a, abbr, address, area, article, aside, audio,
  b, bdi, bdo, blockquote, br, button,
  canvas, caption, cite, code, col, colgroup,
  data, datalist, dd, del, details, dfn, dialog, div, dl, dt,
  em, embed,
  fieldset, figcaption, figure, footer, form,
  h1, h2, h3, h4, h5, h6, header, hgroup, hr,
  i, iframe, img, input, ins,
  kbd,
  label, legend, li, link,
  main, map, mark, menu, meter,
  nav, noscript,
  object, ol, optgroup, option, output,
  p, picture, pre, progress,
  q,
  ruby,
  s, samp, search, section, select, slot, small, source, span, strong, sub, summary, sup,
  table, tbody, td, template, textarea, tfoot, th, thead, time, tr, track,
  u, ul,
  var, video,
  wbr
) {
  all: revert;
  box-sizing: border-box;
}

:where(.borem-app, .borem-ui-root, .borem-preloader) :where(*, *::before, *::after) {
  box-sizing: border-box;
}

/* Neutralize decorative pseudo-elements supplied by common WordPress themes.
   Borem component CSS is loaded later and can intentionally add them back. */
:where(.borem-app, .borem-ui-root) :where(a, button, input, select, textarea, label, summary)::before,
:where(.borem-app, .borem-ui-root) :where(a, button, input, select, textarea, label, summary)::after {
  content: none;
}

:where(.borem-app, .borem-ui-root) {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-align: left;
  text-indent: 0;
  text-transform: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(.borem-app, .borem-ui-root)[data-borem-theme="dark"],
[data-borem-theme="dark"] :where(.borem-ui-root) {
  color-scheme: dark;
}

:where(.borem-app, .borem-ui-root) :where(div, section, article, aside, header, footer, main, nav, form, fieldset) {
  min-width: 0;
}

:where(.borem-app, .borem-ui-root) :where(h1, h2, h3, h4, h5, h6, p, blockquote, figure, pre, dl, dd) {
  margin: 0;
}

:where(.borem-app, .borem-ui-root) :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.borem-app, .borem-ui-root) :where(h1, h2, h3, h4, h5, h6, strong, b, label, legend, th) {
  color: inherit;
  font-family: inherit;
}

:where(.borem-app, .borem-ui-root) h1 { font-size: 2rem; line-height: 1.2; font-weight: 750; }
:where(.borem-app, .borem-ui-root) h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 750; }
:where(.borem-app, .borem-ui-root) h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
:where(.borem-app, .borem-ui-root) h4 { font-size: 1rem; line-height: 1.35; font-weight: 700; }
:where(.borem-app, .borem-ui-root) h5,
:where(.borem-app, .borem-ui-root) h6 { font-size: .875rem; line-height: 1.4; font-weight: 700; }

:where(.borem-app, .borem-ui-root) :where(a, a:visited) {
  color: #1769aa;
  text-decoration: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
}
:where(.borem-app, .borem-ui-root) a:hover { color: #0e5f9f; text-decoration: underline; }

:where(.borem-app, .borem-ui-root) :where(button, input, select, textarea, optgroup, option) {
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

:where(.borem-app, .borem-ui-root) :where(button, input, select, textarea) {
  margin: 0;
  max-width: 100%;
  border: 1px solid #ccd7e3;
  border-radius: 8px;
  background-color: #fff;
  background-image: none;
  color: #1c2733;
  box-shadow: none;
  outline: 0;
}

:where(.borem-app, .borem-ui-root) :where(
  input:not([type]),
  input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="tel"],
  input[type="password"], input[type="number"], input[type="date"], input[type="time"],
  input[type="datetime-local"], input[type="month"], input[type="week"],
  select, textarea
) {
  width: auto;
  min-height: 38px;
  padding: 8px 10px;
}

:where(.borem-app, .borem-ui-root) textarea {
  min-height: 82px;
  resize: vertical;
}

:where(.borem-app, .borem-ui-root) select {
  -webkit-appearance: auto;
  appearance: auto;
  cursor: pointer;
}

:where(.borem-app, .borem-ui-root) :where(option, optgroup) {
  background-color: #fff;
  color: #1c2733;
}

:where(.borem-app, .borem-ui-root) option:checked {
  background-color: #dcecff;
  color: #0f4f83;
}

:where(.borem-app, .borem-ui-root) :where(input[type="checkbox"], input[type="radio"]) {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  border-radius: 3px;
  accent-color: var(--borem-app-accent, var(--st-orange, #f05a28));
  vertical-align: middle;
}
:where(.borem-app, .borem-ui-root) input[type="radio"] { border-radius: 50%; }

:where(.borem-app, .borem-ui-root) input[type="file"] {
  min-height: 38px;
  padding: 4px;
  cursor: pointer;
}
:where(.borem-app, .borem-ui-root) input[type="file"]::file-selector-button {
  margin: -1px 8px -1px -1px;
  padding: 7px 10px;
  border: 1px solid #ccd7e3;
  border-radius: 7px;
  background: #f7f9fc;
  color: #27445f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

:where(.borem-app, .borem-ui-root) button {
  -webkit-appearance: none;
  appearance: none;
  min-height: 36px;
  padding: 7px 12px;
  cursor: pointer;
  text-align: center;
}

:where(.borem-app, .borem-ui-root) :where(input, textarea)::placeholder {
  color: #8190a1;
  opacity: 1;
}

:where(.borem-app, .borem-ui-root) :where(button, input, select, textarea):focus {
  border-color: var(--borem-app-accent, var(--st-orange, #f05a28));
  box-shadow: 0 0 0 3px rgba(240, 90, 40, .12);
  outline: 0;
}

:where(.borem-app, .borem-ui-root) :where(button, input, select, textarea):focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

:where(.borem-app, .borem-ui-root) :where(button, input, select, textarea):disabled,
:where(.borem-app, .borem-ui-root) :where(button, input, select, textarea)[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
}

:where(.borem-app, .borem-ui-root) fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
:where(.borem-app, .borem-ui-root) legend { margin: 0 0 6px; padding: 0; font-weight: 700; }
:where(.borem-app, .borem-ui-root) label { display: inline-block; margin: 0; cursor: default; }

:where(.borem-app, .borem-ui-root) table {
  width: auto;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  color: inherit;
  table-layout: auto;
}
:where(.borem-app, .borem-ui-root) :where(th, td) {
  height: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: none;
  vertical-align: top;
}

:where(.borem-app, .borem-ui-root) details { display: block; }
:where(.borem-app, .borem-ui-root) summary { display: list-item; cursor: pointer; }
:where(.borem-app, .borem-ui-root) hr { height: 1px; margin: 16px 0; border: 0; background: #e0e4e8; }
:where(.borem-app, .borem-ui-root) img { height: auto; max-width: 100%; border: 0; }
:where(.borem-app, .borem-ui-root) iframe { max-width: 100%; border: 0; }
:where(.borem-app, .borem-ui-root) code,
:where(.borem-app, .borem-ui-root) kbd,
:where(.borem-app, .borem-ui-root) samp,
:where(.borem-app, .borem-ui-root) pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

:where(.borem-app, .borem-ui-root) [hidden] { display: none !important; }

:where(.borem-app, .borem-ui-root) ::selection {
  background: rgba(23, 105, 170, .22);
  color: inherit;
}

/* The active theme often places shortcode output inside a constrained article,
   content or builder wrapper.  JavaScript marks only the app's ancestor chain
   with this class; these rules remove layout constraints without touching
   unrelated theme elements. */
html.borem-app-document,
body.borem-app-host {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f4f6f8 !important;
}

body.borem-app-host > .borem-app-host-shell,
body.borem-app-host .borem-app-host-shell {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.borem-app-host.borem-tech-modal-open,
body.borem-app-host.borem-location-modal-open,
body.borem-app-host.borem-wo-create-open,
body.borem-app-host.borem-wo-filter-open {
  overflow: hidden !important;
}

/* Hardening for the properties themes most frequently mark !important.
   Component-specific Borem rules continue to own sizing, color and layout. */
:where(.borem-app, .borem-ui-root) :where(button, input, select, textarea, optgroup, option) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

:where(.borem-app, .borem-ui-root) :where(a, button) {
  text-shadow: none !important;
}

:where(.borem-app, .borem-ui-root) :where(input, select, textarea) {
  -webkit-text-fill-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  :where(.borem-app, .borem-ui-root) *,
  :where(.borem-app, .borem-ui-root) *::before,
  :where(.borem-app, .borem-ui-root) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* ============================================================
   Borem Core — ServiceTrade-Faithful UI  v3.17
   Matches the ServiceTrade app aesthetic 1:1:
     - White sidebar with collapsible nav groups
     - Orange (#f05a28) accent for active states
     - Clean white content with subtle cards
     - Full expand/collapse sidebar with toggle
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --st-orange:      #f05a28;
  --st-orange-soft: #fff3ef;
  --borem-nav-active-color: var(--st-orange);
  --borem-nav-active-indicator: var(--st-orange);
  --borem-nav-active-bg: var(--st-orange-soft);
  --st-orange-mid:  #fde0d5;
  --st-blue:        #0d6efd;
  --st-blue-link:   #1a6cbf;
  --st-bg:          #f4f6f8;
  --st-surface:     #ffffff;
  --st-border:      #e0e4e8;
  --st-border-md:   #ccd2d8;
  --st-text:        #1c2733;
  --st-text-muted:  #6b7a8d;
  --st-text-label:  #8a95a0;
  /* Aliases — keep these last so they reference vars above */
  --st-card:   var(--st-surface);     /* alias: card backgrounds */
  --st-muted:  var(--st-text-muted);  /* alias: muted/dim text   */
  --db-slots:  28;                     /* dispatch board columns (overridden inline) */
  --st-shadow-sm:   0 1px 3px rgba(16,24,40,.07), 0 1px 2px rgba(16,24,40,.06);
  --st-shadow-md:   0 4px 8px rgba(16,24,40,.08), 0 1px 3px rgba(16,24,40,.06);
  --st-r:           8px;
  --st-r-sm:        6px;
  /* Sidebar dims */
  --st-sidebar-w:   220px;
  --st-sidebar-w-c: 64px;
}
[data-borem-theme="dark"] {
  --st-bg:         #0f1720;
  --st-surface:    #16202b;
  --st-border:     #2b3a49;
  --st-border-md:  #3d5063;
  --st-text:       #e8edf2;
  --st-text-muted: #94a3b8;
  --st-text-label: #607080;
  --st-shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --st-shadow-md:  0 4px 8px rgba(0,0,0,.32);
  --st-orange-soft:#2a1a14;
  --st-orange-mid: #3a2218;
  --st-card:   #1d2b38;               /* dark card background */
  --st-muted:  var(--st-text-muted);  /* alias */
}

/* ── Reset (scoped to .borem-app) ───────────────────────────── */
.borem-app, .borem-app * { box-sizing: border-box; }
.borem-app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--st-text);
  background: var(--st-bg);
  min-height: 100vh;
  /* Mobile: natural height so the page body can scroll */
}
.borem-app :where(h1,h2,h3,h4,h5,h6,p,ul,ol,li,dl) { margin:0; padding:0; }
.borem-app :where(ul,ol) { list-style: none; }
.borem-app a, .borem-app a:visited { color: var(--st-blue-link); text-decoration: none; }
.borem-app a:hover { text-decoration: underline; }
.borem-app button, .borem-app input, .borem-app select, .borem-app textarea {
  font: inherit; color: inherit; margin: 0; background-image: none;
}
.borem-app button { cursor: pointer; }
.borem-app img { max-width: 100%; border: 0; }
.borem-app table { border-collapse: separate; border-spacing: 0; }

/* ── App Layout ─────────────────────────────────────────────── */
@media (min-width: 980px) {
  /* Desktop: full-height locked layout — main area scrolls independently */
  .borem-app {
    display: flex;
    height: 100vh;
    overflow: hidden;
  }
}

/* ================================================================
   SIDEBAR  — ServiceTrade white sidebar with collapse support
   ================================================================ */
.borem-sidebar {
  width: var(--st-sidebar-w);
  flex: 0 0 var(--st-sidebar-w);
  background: var(--st-surface);
  border-right: 1px solid var(--st-border);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: width .22s ease, flex-basis .22s ease;
  position: relative;
  z-index: 20;
}
@media (min-width: 980px) {
  .borem-sidebar { display: flex; }
}

/* Collapsed state */
.borem-app.sidebar-collapsed .borem-sidebar {
  width: var(--st-sidebar-w-c);
  flex-basis: var(--st-sidebar-w-c);
}
.borem-app.sidebar-collapsed .borem-nav-text,
.borem-app.sidebar-collapsed .borem-nav-group-label,
.borem-app.sidebar-collapsed .borem-logo-wordmark,
.borem-app.sidebar-collapsed .borem-sidebar-profile-info,
.borem-app.sidebar-collapsed .borem-nav-children,
.borem-app.sidebar-collapsed .borem-nav-caret,
.borem-app.sidebar-collapsed .borem-nav-section-sep { display: none; }
.borem-app.sidebar-collapsed .borem-nav-link { justify-content: center; padding: 8px 0; }
.borem-app.sidebar-collapsed .borem-nav-ico { margin: 0; }
.borem-app.sidebar-collapsed .borem-logo { justify-content: center; padding: 14px 0 12px; }
.borem-app.sidebar-collapsed .borem-sidebar-footer { justify-content: center; padding: 10px 0; }
.borem-app.sidebar-collapsed .borem-sidebar-avatar { margin: 0; }

/* ── Logo ────────── */
.borem-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--st-border);
  flex-shrink: 0;
}
.borem-logo-img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; display: block; }
.borem-logo-wordmark {
  font-size: 16px; font-weight: 800; letter-spacing: .01em;
  color: var(--st-text); white-space: nowrap; overflow: hidden;
}

/* ── Sidebar toggle button (double-chevron, top-right of sidebar) ── */
.borem-sidebar-toggle-wrap {
  position: absolute; top: 14px; right: 10px; z-index: 5;
}
.borem-app.sidebar-collapsed .borem-sidebar-toggle-wrap { right: 0; left: 0; top: 14px; display: flex; justify-content: center; }
#borem-sidebar-toggle {
  background: transparent; border: 1px solid var(--st-border); border-radius: 5px;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  color: var(--st-text-muted); transition: background .12s, color .12s, border-color .12s;
  padding: 0; flex-shrink: 0;
}
#borem-sidebar-toggle:hover { background: var(--st-orange-soft); border-color: var(--st-orange); color: var(--st-orange); }

/* ── Nav scroll wrapper ─────────────────────────────────────── */
.borem-nav-wrapper {
  flex: 1; overflow-y: auto; overflow-x: hidden; overflow-y: auto;
  padding: 8px 8px 4px;
}
.borem-nav-wrapper::-webkit-scrollbar { width: 4px; }
.borem-nav-wrapper::-webkit-scrollbar-track { background: transparent; }
.borem-nav-wrapper::-webkit-scrollbar-thumb { background: var(--st-border); border-radius: 4px; }

.borem-nav { display: flex; flex-direction: column; gap: 1px; }

/* ── Nav section separator/label ─── */
.borem-nav-section-sep {
  height: 1px; background: var(--st-border); margin: 6px 4px;
}

/* ── Top-level nav link ─────────────────────────────────────── */
.borem-nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: var(--st-r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--st-text);
  text-decoration: none; white-space: nowrap;
  transition: background .1s, color .1s;
  border: none; background: transparent; width: 100%; text-align: left;
  position: relative;
}
.borem-nav-link:hover { background: var(--st-bg); color: var(--st-text); text-decoration: none; }
.borem-nav-link.active {
  color: var(--borem-nav-active-color); font-weight: 600;
  background: transparent;
}
.borem-nav-link.active[aria-current="page"] {
  background: var(--borem-nav-active-bg);
}
.borem-nav-link.active::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--borem-nav-active-indicator);
}
[data-borem-theme="dark"] .borem-nav-link:hover { background: rgba(255,255,255,.05); }

/* ── Nav icon ───────────────────────────────────────────────── */
.borem-nav-ico {
  flex: 0 0 20px; width: 20px; height: 20px;
  display: grid; place-items: center;
  color: var(--st-text-muted);
}
.borem-nav-link.active .borem-nav-ico { color: var(--borem-nav-active-color); }
.borem-nav-link:hover .borem-nav-ico { color: var(--st-text); }
.borem-ico { width: 18px; height: 18px; display: block; }

/* ── Nav groups (collapsible sections) ──────────────────────── */
.borem-nav-group { display: flex; flex-direction: column; }
.borem-nav-group summary,
.borem-nav-group summary::-webkit-details-marker { list-style: none; display: inline-flex; }
.borem-nav-group-summary {
  display: flex; align-items: center; width: 100%;
}
.borem-nav-caret {
  flex: 0 0 24px; width: 24px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--st-text-muted); transition: transform .18s ease;
  flex-shrink: 0;
}
.borem-nav-caret svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.borem-nav-group[open] .borem-nav-caret { transform: rotate(90deg); color: var(--st-text); }
.borem-nav-group.active > summary .borem-nav-caret { color: var(--borem-nav-active-color); }

.borem-nav-children {
  display: flex; flex-direction: column; gap: 1px;
  padding: 2px 0 4px 28px;
}
.borem-nav-children .borem-nav-link {
  font-size: 13px; color: var(--st-text-muted);
  padding: 5px 8px;
}
.borem-nav-children .borem-nav-link:hover { color: var(--st-text); background: var(--st-bg); }
.borem-nav-children .borem-nav-link.active { color: var(--borem-nav-active-color); background: transparent; font-weight: 600; }
.borem-nav-children .borem-nav-link.active[aria-current="page"] { background: var(--borem-nav-active-bg); }
.borem-nav-children .borem-nav-link.active::before { display: none; }

.borem-nav-spacer { height: 4px; }

/* ── Sidebar footer (profile) ───────────────────────────────── */
.borem-sidebar-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--st-border);
  padding: 8px;
  display: flex; flex-direction: column; gap: 1px;
}
.borem-sidebar-profile {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--st-r-sm);
  text-decoration: none; color: var(--st-text);
  transition: background .1s;
}
.borem-sidebar-profile:hover { background: var(--st-bg); text-decoration: none; }
.borem-sidebar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--st-orange); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.borem-sidebar-profile-info { min-width: 0; }
.borem-sidebar-profile-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.borem-sidebar-profile-role { font-size: 11px; color: var(--st-text-muted); }

/* ================================================================
   MAIN CONTENT AREA
   ================================================================ */
.borem-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--st-bg);
  /* Desktop: overflow auto lets main panel scroll inside 100vh */
  overflow: auto;
}
@media (max-width: 979px) {
  /* Mobile: let the page body scroll, not an inner container */
  .borem-main { overflow: visible; min-height: 0; }
}

/* ── Topbar ─────────────────────────────────────────────────── */
.borem-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 18px;
  height: 54px;
  background: var(--st-surface);
  border-bottom: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-sm);
  flex-shrink: 0;
}
.borem-topbar-left { display: flex; align-items: center; gap: 10px; }
.borem-page-title { font-size: 16px; font-weight: 700; color: var(--st-text); margin: 0; }
.borem-top-actions { display: flex; gap: 8px; align-items: center; }

/* Global search */
.borem-search { position: relative; }
.borem-search-ico {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--st-text-label); pointer-events: none;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round;
}
.borem-search input {
  padding: 6px 10px 6px 32px; border-radius: var(--st-r-sm);
  border: 1px solid var(--st-border); background: var(--st-bg);
  font-size: 13px; min-height: 32px; min-width: 220px; width: 100%;
  color: var(--st-text); transition: border-color .12s, box-shadow .12s;
}
.borem-search input:focus { outline: none; border-color: var(--st-orange); box-shadow: 0 0 0 3px rgba(240,90,40,.12); }
.borem-search input::placeholder { color: var(--st-text-label); }

/* Topbar avatar */
.borem-topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--st-orange); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  text-decoration: none; flex-shrink: 0;
  transition: opacity .12s;
}
.borem-topbar-avatar:hover { opacity: .85; text-decoration: none; }

/* ================================================================
   BUTTONS
   ================================================================ */
.borem-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--st-r-sm);
  border: 1px solid var(--st-border); background: var(--st-surface);
  font-size: 13px; font-weight: 500; color: var(--st-text);
  min-height: 32px; white-space: nowrap; cursor: pointer;
  text-decoration: none;
  transition: background .1s, border-color .1s, color .1s, box-shadow .1s;
}
.borem-btn:hover { background: var(--st-bg); border-color: var(--st-border-md); color: var(--st-text); text-decoration: none; }
.borem-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(240,90,40,.15); border-color: var(--st-orange); }
.borem-btn:active { transform: translateY(1px); }
.borem-btn.primary { background: var(--st-orange); color: #fff; border-color: var(--st-orange); }
.borem-btn.primary:hover { background: #d94e20; border-color: #d94e20; }
.borem-btn[disabled], .borem-btn:disabled { opacity: .55; cursor: not-allowed; }
.borem-btn-sm { padding: 4px 9px; font-size: 12px; min-height: 28px; }
.borem-icon-btn {
  width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center;
  border-radius: var(--st-r-sm); border: 1px solid var(--st-border); background: var(--st-surface);
  color: var(--st-text-muted); cursor: pointer; transition: all .1s;
}
.borem-icon-btn:hover { background: var(--st-bg); border-color: var(--st-border-md); color: var(--st-text); }
.borem-icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(240,90,40,.15); border-color: var(--st-orange); }

/* ================================================================
   STATUS BADGES  — ST badge system
   ================================================================ */
.st-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.3;
}
.st-badge.primary     { background: var(--st-orange); color: #fff; }
.st-badge.secondary   { background: var(--st-border); color: var(--st-text-muted); }
.st-badge.warning     { background: #fff3cd; color: #856404; border: 1px solid #ffd86e; }
.st-badge.success     { background: #d4edda; color: #155724; border: 1px solid #b8dfc3; }
.st-badge.danger      { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.st-badge.soft-primary  { background: var(--st-orange-soft); color: var(--st-orange); border: 1px solid var(--st-orange-mid); }
.st-badge.soft-secondary{ background: var(--st-bg); color: var(--st-text-muted); border: 1px solid var(--st-border); }
.st-badge.soft-warning  { background: #fff8ed; color: #c07000; border: 1px solid #fde599; }
.st-badge.soft-success  { background: #edfaf4; color: #0f7a50; border: 1px solid #b5ebd2; }

/* ── Specific job status badges ── */
.badge-unscheduled { background: var(--st-orange-soft); color: var(--st-orange); border: 1px solid var(--st-orange-mid); }
.badge-scheduled   { background: #e8f3ff; color: #1a6cbf; border: 1px solid #b8d4f0; }
.badge-in-progress { background: #fff8ed; color: #c07000; border: 1px solid #fde599; }
.badge-completed   { background: #edfaf4; color: #0f7a50; border: 1px solid #b5ebd2; }
.badge-cancelled   { background: var(--st-bg); color: var(--st-text-muted); border: 1px solid var(--st-border); }
.badge-secondary   { background: var(--st-bg); color: var(--st-text-muted); border: 1px solid var(--st-border); }

/* ================================================================
   CONTENT LAYOUT
   ================================================================ */
.borem-content { padding: 18px 20px 28px; flex: 1; max-width: 100%; min-width: 0; }

/* ── Cards ── */
.borem-card {
  background: var(--st-surface); border: 1px solid var(--st-border);
  border-radius: var(--st-r); box-shadow: var(--st-shadow-sm);
}
.borem-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--st-border);
}
.borem-card-head h2 { font-size: 14px; font-weight: 700; color: var(--st-text); margin: 0; }
.borem-card-body { padding: 12px 14px 14px; min-width: 0; max-width: 100%; }

/* ── Grid layouts ── */
.borem-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1060px) { .borem-grid { grid-template-columns: 2fr 1fr; } }
.borem-card-wide { grid-column: 1 / -1; }
@media (min-width: 1060px) { .borem-card-wide { grid-column: 1 / 2; } }

.borem-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 780px) { .borem-grid2 { grid-template-columns: 1fr; } }

/* ── Filters toolbar ── */
.borem-filters {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.borem-filters input,
.borem-filters select {
  padding: 5px 8px; border-radius: var(--st-r-sm); border: 1px solid var(--st-border);
  background: var(--st-surface); font-size: 13px; min-height: 30px; color: var(--st-text);
}
.borem-filters input:focus, .borem-filters select:focus {
  outline: none; border-color: var(--st-orange); box-shadow: 0 0 0 3px rgba(240,90,40,.1);
}

/* ── Table ── */
.borem-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; width: 100%; }
.borem-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.borem-table th {
  padding: 9px 12px; text-align: left; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--st-text-muted);
  background: var(--st-bg); border-bottom: 1px solid var(--st-border);
  position: sticky; top: 0; z-index: 1; white-space: nowrap;
}
.borem-table td {
  padding: 10px 12px; text-align: left; font-size: 13px; color: var(--st-text);
  border-bottom: 1px solid rgba(224,228,232,.7); vertical-align: middle;
}
.borem-table tbody tr:hover { background: var(--st-orange-soft); }
.borem-table a { color: var(--st-blue-link); text-decoration: none; }
.borem-table a:hover { text-decoration: underline; }

/* ── Form fields ── */
.borem-field-group { display: grid; gap: 4px; }
.borem-label { font-size: 12px; font-weight: 600; color: var(--st-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.borem-input {
  padding: 7px 10px; border-radius: var(--st-r-sm); border: 1px solid var(--st-border);
  background: var(--st-surface); font-size: 13px; color: var(--st-text);
  transition: border-color .12s, box-shadow .12s; width: 100%;
}
.borem-input:focus { outline: none; border-color: var(--st-orange); box-shadow: 0 0 0 3px rgba(240,90,40,.1); }
.borem-select { appearance: none; -webkit-appearance: none; }
textarea.borem-input { resize: vertical; min-height: 80px; }

/* ── KPI widget ── */
.borem-kpi { padding: 14px 16px; }
.borem-kpi .k { font-size: 11px; font-weight: 700; color: var(--st-text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.borem-kpi .v { font-size: 28px; font-weight: 800; color: var(--st-text); line-height: 1; }
.borem-kpi .v.orange { color: var(--st-orange); }

/* ── Donut chart ── */
.borem-donut { position: relative; width: 140px; height: 140px; margin: 8px auto; }
.borem-donut svg { width: 140px; height: 140px; transform: rotate(-90deg); }
.borem-donut circle { fill: none; stroke-width: 14; }
.borem-donut circle.bg { stroke: rgba(0,0,0,.06); }
.borem-donut circle.fg { stroke: var(--st-orange); stroke-linecap: round; stroke-dasharray: 270; stroke-dashoffset: 270; transition: stroke-dashoffset .4s ease; }
.borem-donut .center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.borem-donut .num { font-size: 28px; font-weight: 900; }
.borem-donut .label { font-size: 11px; letter-spacing: .1em; color: var(--st-text-muted); }

/* ── Legend ── */
.borem-legend { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.borem-legend .item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--st-text-muted); }
.borem-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--st-orange); }

/* ── Results / autocomplete dropdown ── */
.borem-results { margin-top: 4px; max-height: 180px; overflow: auto; border: 1px solid var(--st-border); border-radius: var(--st-r-sm); background: var(--st-surface); box-shadow: var(--st-shadow-md); }
.borem-results:empty { display: none; }
.borem-results a, .borem-results-option { display: block; padding: 7px 10px; text-decoration: none; font-size: 13px; color: var(--st-text); border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; }
.borem-results a:hover, .borem-results-option:hover { background: var(--st-orange-soft); }
.borem-results .muted { padding: 8px 10px; }

/* ── Misc utilities ── */
.muted { color: var(--st-text-muted); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.borem-spacer { flex: 1; }
.borem-divider { height: 1px; background: var(--st-border); margin: 10px 0; }
.borem-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.borem-inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.borem-inline-actions-end { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.borem-field-full { grid-column: 1 / -1; }
.borem-field-action-end { align-self: end; }
.borem-space-top-xs { margin-top: 6px; }
.borem-space-top-sm { margin-top: 10px; }
.borem-space-top-md { margin-top: 14px; }
.borem-space-top-lg { margin-top: 18px; }
.borem-space-bottom-sm { margin-bottom: 10px; }
.borem-space-bottom-md { margin-bottom: 14px; }
.borem-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px 20px; }
.borem-kv-item .label { font-size: 11px; font-weight: 700; color: var(--st-text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.borem-kv-item .value { font-size: 13px; color: var(--st-text); }

/* ── Panel (inline highlight box) ── */
.borem-panel { padding: 10px 12px; border: 1px solid var(--st-border); border-radius: var(--st-r); background: var(--st-bg); }
.borem-panel-inline { padding: 10px 12px; border: 1px solid var(--st-border); border-radius: var(--st-r-sm); background: var(--st-bg); }

/* ── Spinner ── */
.borem-spinner { display: inline-block; width: 14px; height: 14px; border-radius: 99px; border: 2px solid rgba(255,255,255,.5); border-top-color: transparent; margin-left: 6px; vertical-align: middle; animation: boremSpin .7s linear infinite; }
.borem-spinner.dark { border-color: rgba(28,39,51,.2); border-top-color: var(--st-orange); }
@keyframes boremSpin { to { transform: rotate(360deg); } }

/* ── ST Sub-header bar (under topbar) ── */
.st-sub-header {
  background: var(--st-surface); border-bottom: 1px solid var(--st-border);
  padding: 0 20px;
  display: flex; align-items: center; gap: 0;
  flex-shrink: 0;
}
.st-sub-header-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 13px; font-weight: 500;
  color: var(--st-text-muted); border: none; background: transparent;
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: color .1s, border-color .1s;
}
.st-sub-header-btn:hover { color: var(--st-text); border-bottom-color: var(--st-border); }
.st-sub-header-btn.active { color: var(--st-orange); border-bottom-color: var(--st-orange); font-weight: 600; }
.st-sub-header-spacer { flex: 1; }

/* ── Job detail page ── */
.st-job-page { display: flex; flex-direction: column; }
.st-job-header {
  background: var(--st-surface); border-bottom: 1px solid var(--st-border);
  padding: 14px 20px 10px;
}
.st-job-header-title-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.st-job-title { font-size: 16px; font-weight: 700; color: var(--st-text); }
.st-job-meta-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.st-job-actions-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: var(--st-surface); border-bottom: 1px solid var(--st-border);
  padding: 6px 20px;
}

/* ── Job overview details grid ── */
.st-job-overview {
  background: var(--st-surface); border: 1px solid var(--st-border);
  border-radius: var(--st-r); padding: 16px 20px; margin-bottom: 16px;
}
.st-job-overview-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px 24px;
  margin-bottom: 14px;
}
.st-job-overview-meta-item .item-label {
  font-size: 11px; font-weight: 700; color: var(--st-text-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px;
}
.st-job-overview-meta-item .item-value { font-size: 13px; color: var(--st-text); }
.st-job-overview-meta-item .item-value a { color: var(--st-blue-link); }

/* ── Accordion sections ── */
.st-accordion { margin-bottom: 14px; border: 1px solid var(--st-border); border-radius: var(--st-r); overflow: hidden; background: var(--st-surface); }
.st-accordion-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; background: var(--st-surface); cursor: pointer;
  border-bottom: 1px solid var(--st-border); user-select: none;
}
.st-accordion-header:hover { background: var(--st-bg); }
.st-accordion-title { font-size: 14px; font-weight: 700; color: var(--st-text); }
.st-accordion-count { font-size: 12px; color: var(--st-text-muted); background: var(--st-bg); padding: 1px 8px; border-radius: 10px; border: 1px solid var(--st-border); }
.st-accordion-caret { width: 16px; height: 16px; color: var(--st-text-muted); transition: transform .18s; }
.st-accordion-caret svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.st-accordion[open] .st-accordion-caret { transform: rotate(180deg); }
.st-accordion-body { padding: 12px 16px; }

/* ── Quick actions bar (right side of ST) ── */
.st-quick-actions {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px;
  background: var(--st-surface); border: 1px solid var(--st-border);
  border-right: none; border-radius: var(--st-r) 0 0 var(--st-r);
  padding: 6px 4px; box-shadow: var(--st-shadow-md); z-index: 30;
}
.st-quick-action-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--st-r-sm); border: none; background: transparent;
  color: var(--st-text-muted); cursor: pointer; transition: background .1s, color .1s;
}
.st-quick-action-btn:hover { background: var(--st-orange-soft); color: var(--st-orange); }
.st-quick-action-btn.danger:hover { background: #fef2f2; color: #dc2626; }

/* ── Attachment / media grid ── */
.borem-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
.borem-media-card { border: 1px solid var(--st-border); border-radius: var(--st-r); overflow: hidden; background: var(--st-surface); }
.borem-media-thumb { aspect-ratio: 4/3; background: var(--st-bg); overflow: hidden; display: grid; place-items: center; }
.borem-media-thumb img, .borem-media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.borem-media-meta { padding: 8px 10px; }
.borem-media-title { font-size: 12px; font-weight: 600; word-break: break-all; }
.borem-media-sub { font-size: 11px; color: var(--st-text-muted); margin-top: 2px; }

/* ── Upload progress ── */
.borem-upload-progress { display: grid; gap: 8px; margin-top: 10px; }
.borem-upload-row { padding: 10px 12px; border-radius: var(--st-r); border: 1px solid var(--st-border); background: var(--st-bg); }
.borem-upload-row-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.borem-upload-name { font-weight: 700; word-break: break-all; font-size: 13px; }
.borem-upload-state { font-size: 12px; color: var(--st-text-muted); white-space: nowrap; }
.borem-upload-bar { height: 6px; width: 100%; border-radius: 999px; overflow: hidden; background: var(--st-border); }
.borem-upload-fill { height: 100%; width: 0%; border-radius: 999px; background: var(--st-orange); transition: width .18s ease; }

/* ── Service line picker ── */
.borem-service-line-picker { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--st-border); border-radius: var(--st-r); background: var(--st-bg); }
.borem-service-line-picker-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.borem-service-line-picker-toolbar input[type="search"] { flex: 1; min-width: 200px; padding: 7px 10px; border: 1px solid var(--st-border); border-radius: var(--st-r-sm); background: var(--st-surface); font-size: 13px; }
.borem-service-line-picker-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; max-height: 260px; overflow: auto; }
.borem-service-line-option { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--st-border); border-radius: var(--st-r); background: var(--st-surface); cursor: pointer; transition: border-color .1s; }
.borem-service-line-option:hover { border-color: var(--st-orange); background: var(--st-orange-soft); }
.borem-service-line-option-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--st-r-sm); background: var(--st-bg); display: grid; place-items: center; border: 1px solid var(--st-border); overflow: hidden; }
.borem-service-line-option-icon img { width: 24px; height: 24px; object-fit: contain; }
.borem-service-line-icon-fallback { font-size: 11px; font-weight: 800; color: var(--st-text-muted); }
.borem-service-line-option-copy strong, .borem-service-line-option-copy small { display: block; }
.borem-service-line-option-copy small { color: var(--st-text-muted); font-size: 11px; }
.borem-service-line-cell { display: flex; align-items: center; gap: 8px; }
.borem-service-line-preview { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--st-r-sm); background: var(--st-bg); display: grid; place-items: center; border: 1px solid var(--st-border); overflow: hidden; }
.borem-service-line-preview img { width: 24px; height: 24px; object-fit: contain; }
.borem-table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 900px) { .borem-service-line-picker-results { grid-template-columns: 1fr; } }

/* ── Rule editor ── */
.borem-rule-editor { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--st-border); border-radius: var(--st-r); background: var(--st-bg); }
.borem-rule-editor-table { display: grid; gap: 8px; }
.borem-rule-editor-head, .borem-rule-editor-row { display: grid; grid-template-columns: 1.1fr .95fr .7fr 1.15fr auto; gap: 8px; align-items: center; }
.borem-rule-editor-head span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-text-muted); }
.borem-rule-editor-row input { width: 100%; padding: 6px 9px; border: 1px solid var(--st-border); border-radius: var(--st-r-sm); background: var(--st-surface); font-size: 13px; }
.borem-rule-editor-actions { display: flex; justify-content: flex-start; }
@media (max-width: 900px) { .borem-rule-editor-head { display: none; } .borem-rule-editor-row { grid-template-columns: 1fr; } }

/* ── Editor textarea ── */
.borem-editor textarea { border: 1px solid var(--st-border); border-radius: var(--st-r-sm); padding: 8px 10px; background: var(--st-surface); font-size: 13px; color: var(--st-text); resize: vertical; width: 100%; }
.borem-editor textarea:focus { outline: none; border-color: var(--st-orange); box-shadow: 0 0 0 3px rgba(240,90,40,.1); }

/* ── Drag edit mode ── */
.borem-editing .borem-card { outline: 2px dashed rgba(240,90,40,.3); cursor: grab; }
.borem-editing .borem-card:active { cursor: grabbing; }
.borem-card.dragging { opacity: .55; }

/* ── Tech Day specific ── */
.borem-tech-day-shell { display: grid; gap: 16px; min-height: calc(100vh - 200px); }
.borem-tech-day-progress { display: grid; gap: 8px; max-width: 940px; margin: 0 auto; width: 100%; }
.borem-tech-day-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 4px; }
.borem-tech-day-steps li { display: grid; gap: 3px; padding: 7px; border-radius: 8px; background: var(--st-bg); border: 1px solid transparent; opacity: .6; }
.borem-tech-day-steps li span { width: 18px; height: 18px; border-radius: 50%; background: var(--st-border); color: var(--st-text-muted); display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.borem-tech-day-steps li strong { font-size: 11px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.borem-tech-day-steps li small { display: none; }
.borem-tech-day-steps li.is-active { opacity: 1; background: var(--st-orange-soft); border-color: var(--st-orange-mid); }
.borem-tech-day-steps li.is-active span { background: var(--st-orange); color: #fff; }
.borem-tech-day-steps li.is-complete span { background: #edfaf4; color: #0f7a50; }
.borem-tech-day-main { background: var(--st-surface); border: 1px solid var(--st-border); border-radius: 20px; padding: 26px; min-height: 65vh; max-width: 940px; margin: 0 auto; width: 100%; box-shadow: var(--st-shadow-md); }
.borem-tech-day-hero { display: grid; justify-items: start; gap: 10px; padding: 0; min-height: 200px; }
.borem-tech-day-banner { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.borem-tech-day-banner.is-online { background: #edfaf4; color: #155724; }
.borem-tech-day-banner.is-offline { background: #fff8ed; color: #92680a; }
.borem-tech-day-prompt { display: grid; gap: 8px; }
.borem-tech-day-prompt .borem-subtitle { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--st-text-muted); }
.borem-tech-day-prompt h3 { margin: 0; font-size: 36px; line-height: .98; letter-spacing: -.04em; }
.borem-tech-day-prompt p { margin: 0; color: var(--st-text-muted); font-size: 14px; line-height: 1.45; }
.borem-tech-day-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.borem-tech-day-actions#techday-primary-actions .borem-btn { min-height: 50px; padding: 0 20px; border-radius: 14px; font-size: 15px; }
.borem-tech-day-actions#techday-primary-actions .borem-btn.primary { box-shadow: 0 12px 28px rgba(240,90,40,.18); }
.borem-tech-day-utility { display: grid; gap: 8px; }
.borem-tech-day-section { padding: 0; border: 0; background: transparent; }
.borem-tech-day-job, .borem-tech-day-log, .borem-tech-day-note, .borem-tech-day-jobs { padding: 0; border: 0; background: transparent; }

/* ── Time / timesheet ── */
.borem-time-summary, .borem-time-tech, .borem-time-log, .borem-time-team { margin-bottom: 12px; }

/* ── Location page ── */
.borem-loc-page-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--st-text-muted); margin-bottom: 4px; }
.borem-loc-section { display: grid; gap: 8px; }
.borem-loc-detail-section { margin-bottom: 14px; }
.borem-loc-detail-section-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 6px; border-bottom: 1px solid var(--st-border); margin-bottom: 10px; }
.borem-loc-detail-section-head h3 { font-size: 13px; font-weight: 700; }
.borem-loc-edit-shell { border: 1px solid var(--st-border); border-radius: var(--st-r); padding: 12px; background: var(--st-bg); }

/* ── Invoice/Quote tables ── */
.borem-inv-table th:last-child, .borem-inv-table td:last-child { text-align: right; }
.borem-inv-total-row td { font-weight: 700; border-top: 2px solid var(--st-border); }

/* ── Mobile nav ── */
.borem-mobile-nav { display: none; }
.borem-hamburger { display: grid; gap: 4px; }
.borem-hamburger span { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; }
.borem-mobile-menu { position: fixed; inset: 0; z-index: 80; overflow: hidden; }
.borem-mobile-menu[hidden] { display: none; }
.borem-mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.38); backdrop-filter: blur(8px); }
.borem-mobile-menu-sheet { position: relative; z-index: 1; height: 100dvh; max-height: 100dvh; padding: 14px 12px 28px; background: var(--st-surface); overflow-y: auto; }
.borem-mobile-menu-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--st-border); }
.borem-mobile-menu-head h2 { font-size: 20px; font-weight: 800; }
.borem-mobile-menu-body { display: grid; gap: 6px; }
.borem-mobile-menu-link { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--st-border); background: var(--st-bg); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--st-text); }
.borem-mobile-menu-link:hover { background: var(--st-orange-soft); border-color: var(--st-orange-mid); }
.borem-mobile-menu-link.active { color: var(--st-orange); background: var(--st-orange-soft); border-color: var(--st-orange-mid); }
.borem-mobile-menu-ico { width: 20px; height: 20px; color: var(--st-text-muted); }
.borem-mobile-menu-link.active .borem-mobile-menu-ico { color: var(--st-orange); }

@media (max-width: 979px) {
  .borem-mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 4px; background: var(--st-surface); border-top: 1px solid var(--st-border); box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
  .borem-main { padding-bottom: 68px; }
}
.borem-mnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; padding: 5px 4px; border-radius: 10px; border: 1px solid transparent; color: var(--st-text-muted); transition: all .12s; }
.borem-mnav-item:hover { background: var(--st-bg); }
.borem-mnav-item.active { color: var(--st-orange); background: var(--st-orange-soft); border-color: var(--st-orange-mid); }
.borem-mnav-ico { width: 20px; height: 20px; }
.borem-mnav-text { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }

/* ── PDF / Tech day PDF ── */
.borem-tech-pdf-sidebar { width: 260px; flex-shrink: 0; border-left: 1px solid var(--st-border); overflow-y: auto; padding: 12px; background: var(--st-bg); }

/* ── Subtable ── */
.borem-subtitle { font-size: 11px; color: var(--st-text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ── Responsive table overrides for mobile ── */
@media (max-width: 700px) {
  .borem-table { display: block; overflow-x: auto; }
  .borem-grid2 { grid-template-columns: 1fr; }
  .borem-rule-editor-head { display: none; }
  .borem-rule-editor-row { grid-template-columns: 1fr; }
  .borem-rule-editor-row .borem-btn { width: 100%; }
  .borem-inline-actions, .borem-inline-actions-end { display: grid; grid-template-columns: 1fr; }
  .borem-inline-actions > .borem-btn, .borem-inline-actions-end > .borem-btn, .borem-field-action-end > .borem-btn { width: 100%; }
}

/* ── Responsive mobile labels for tables ── */
@media (max-width: 700px) {
  .borem-table thead { display: none; }
  .borem-table tbody tr { display: block; border: 1px solid var(--st-border); border-radius: var(--st-r); margin-bottom: 8px; padding: 6px 0; }
  .borem-table tbody td { display: flex; justify-content: space-between; align-items: flex-start; padding: 5px 12px; border-bottom: 1px solid rgba(224,228,232,.5); gap: 10px; }
  .borem-table tbody td:last-child { border-bottom: none; }
  .borem-table tbody td::before { content: attr(data-label); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--st-text-muted); letter-spacing: .06em; white-space: nowrap; flex-shrink: 0; }

  #borem-schedule td:nth-child(1)::before{content:"Time"}
  #borem-schedule td:nth-child(3)::before{content:"Job"}
  #borem-schedule td:nth-child(4)::before{content:"Tech"}
  #borem-schedule td:nth-child(5)::before{content:"Location"}
  #borem-schedule td:nth-child(6)::before{content:"Done"}

  #borem-dispatch-table td:nth-child(1)::before{content:"Job"}
  #borem-dispatch-table td:nth-child(2)::before{content:"Status"}
  #borem-dispatch-table td:nth-child(3)::before{content:"Appointment"}
  #borem-dispatch-table td:nth-child(4)::before{content:"Tech"}
  #borem-dispatch-table td:nth-child(5)::before{content:"Location"}
  #borem-dispatch-table td:nth-child(6)::before{content:"Company"}

  #borem-def-table td:nth-child(1)::before{content:"ID"}
  #borem-def-table td:nth-child(2)::before{content:"Status"}
  #borem-def-table td:nth-child(3)::before{content:"Severity"}
  #borem-def-table td:nth-child(4)::before{content:"Location"}
  #borem-def-table td:nth-child(5)::before{content:"Asset"}
  #borem-def-table td:nth-child(6)::before{content:"Job"}

  #borem-wo-table td:nth-child(1)::before{content:"Job"}
  #borem-wo-table td:nth-child(2)::before{content:"Status"}
  #borem-wo-table td:nth-child(3)::before{content:"Customer"}
  #borem-wo-table td:nth-child(4)::before{content:"Location"}
  #borem-wo-table td:nth-child(5)::before{content:"Tech"}
  #borem-wo-table td:nth-child(6)::before{content:"Date"}

  #borem-quotes-table td:nth-child(1)::before{content:"Quote"}
  #borem-quotes-table td:nth-child(2)::before{content:"Customer"}
  #borem-quotes-table td:nth-child(3)::before{content:"Status"}
  #borem-quotes-table td:nth-child(4)::before{content:"Contract"}
  #borem-quotes-table td:nth-child(5)::before{content:"Work Order"}

  #borem-invoices-table td:nth-child(1)::before{content:"Invoice"}
  #borem-invoices-table td:nth-child(2)::before{content:"Customer"}
  #borem-invoices-table td:nth-child(3)::before{content:"Status"}
  #borem-invoices-table td:nth-child(4)::before{content:"Payment"}
  #borem-invoices-table td:nth-child(5)::before{content:"Balance"}
  #borem-invoices-table td:nth-child(6)::before{content:"Job"}

  #borem-users-table td:nth-child(1)::before{content:"Name"}
  #borem-users-table td:nth-child(2)::before{content:"Email"}
  #borem-users-table td:nth-child(3)::before{content:"Roles"}
  #borem-users-table td:nth-child(4)::before{content:"Company"}

  #borem-company-table td:nth-child(1)::before{content:"Company"}
  #borem-company-table td:nth-child(2)::before{content:"Address"}
  #borem-company-table td:nth-child(3)::before{content:"Contact"}
  #borem-company-table td:nth-child(4)::before{content:"Status"}

  #borem-contact-table td:nth-child(1)::before{content:"Contact"}
  #borem-contact-table td:nth-child(2)::before{content:"Role"}
  #borem-contact-table td:nth-child(3)::before{content:"Company"}
  #borem-contact-table td:nth-child(4)::before{content:"Location"}
  #borem-contact-table td:nth-child(5)::before{content:"Contact"}
}

/* ═══════════════════════════════════════════════════════════════════════════
   v3.18 — Drag-and-Drop Dispatch Board
   ═══════════════════════════════════════════════════════════════════════════ */

.borem-dispatch-card { overflow: hidden; }
.db-outer { min-width: 900px; }

.db-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--st-border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
}

.db-header-row {
  display: flex;
  background: var(--st-surface);
  border-bottom: 2px solid var(--st-border);
  position: sticky;
  top: 0;
  z-index: 3;
}

.db-corner {
  width: 110px;
  min-width: 110px;
  padding: 6px 8px;
  border-right: 1px solid var(--st-border);
  font-weight: 600;
  color: var(--st-muted);
  font-size: 11px;
}

.db-time-cell {
  flex: 1;
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--st-muted);
  border-right: 1px solid var(--st-border);
  min-width: 56px;
}

.db-tech-row {
  display: flex;
  border-bottom: 1px solid var(--st-border);
  min-height: 52px;
}
.db-tech-row:last-child { border-bottom: none; }

.db-tech-col {
  width: 110px;
  min-width: 110px;
  padding: 8px;
  border-right: 2px solid var(--st-border);
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 12px;
  background: var(--st-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-slots {
  flex: 1;
  position: relative;
  min-height: 52px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(100% / var(--db-slots, 28) - 1px),
    var(--st-border) calc(100% / var(--db-slots, 28) - 1px),
    var(--st-border) calc(100% / var(--db-slots, 28))
  );
}

.db-slots.db-drop-target { background-color: rgba(240,90,40,.07); }

.db-appointment {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: grab;
  user-select: none;
  background: var(--st-orange);
  color: #fff;
  border-left: 3px solid rgba(0,0,0,.2);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  z-index: 2;
  transition: opacity .15s;
  min-width: 40px;
}
.db-appointment:hover  { opacity: .85; }
.db-appointment.db-dragging { opacity: .5; cursor: grabbing; }

.db-status-scheduled    { background: #3b82f6; }
.db-status-in-progress  { background: #f59e0b; }
.db-status-complete     { background: #10b981; }
.db-status-canceled     { background: var(--st-muted); opacity:.6; }
.db-status-new          { background: var(--st-orange); }

.borem-kpi-mini { display:flex;flex-direction:column;align-items:center;gap:2px; }
.borem-kpi-mini span { font-size:20px;font-weight:700;color:var(--st-text); }
.borem-kpi-mini label { font-size:11px;color:var(--st-muted);cursor:default; }

/* ═══════════════════════════════════════════════════════════════════════════
   v3.18 — Job Detail (ST-Style)
   ═══════════════════════════════════════════════════════════════════════════ */

.st-job-page { display:flex;flex-direction:column;gap:0; }

.st-job-header { padding:0; }
.st-job-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  flex-wrap: wrap;
}
.st-job-header-actions { display:flex;gap:8px;flex-wrap:wrap;margin-top:4px; }

.st-job-body { align-items: flex-start; }

.st-job-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
}
.st-job-overview-meta-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--st-border);
}
.st-job-overview-meta-item:last-child { border-bottom: none; }
.st-job-overview-meta-item .item-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--st-muted);
  margin-bottom: 3px;
}
.st-job-overview-meta-item .item-value { font-size: 13px;font-weight:500;color:var(--st-text); }

.wo-appointment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--st-border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--st-bg);
  gap: 12px;
}
.wo-appointment-card:last-child { margin-bottom: 0; }
.wo-appt-left { display:flex;flex-direction:column;gap:3px;flex:1; }
.wo-appt-time { font-weight:600;font-size:14px; }
.wo-appt-tech { }
.wo-appt-actions { display:flex;gap:6px;align-items:center; }

.borem-back-link {
  font-size: 12px;
  color: var(--st-orange);
  text-decoration: none;
  font-weight: 500;
}
.borem-back-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   v3.18 — Appointment Modal
   ═══════════════════════════════════════════════════════════════════════════ */

#wo-appt-modal { position: fixed; inset: 0; z-index: 9000; display:flex;align-items:center;justify-content:center; }

.borem-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.borem-modal-dialog {
  position: relative;
  z-index: 2;
  background: var(--st-card);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.borem-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--st-border);
}
.borem-modal-head h3 { margin: 0; font-size: 16px; }
.borem-icon-btn { background:none;border:none;font-size:22px;cursor:pointer;color:var(--st-muted);line-height:1;padding:2px 6px; }
.borem-icon-btn:hover { color: var(--st-text); }
.borem-modal-body { padding: 16px 20px; }
.borem-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--st-border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   v3.18 — Action dropdown menu
   ═══════════════════════════════════════════════════════════════════════════ */

.borem-dropdown-menu {
  background: var(--st-card);
  border: 1px solid var(--st-border);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  min-width: 180px;
  overflow: hidden;
}

.borem-dropdown-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  color: var(--st-text);
  border-bottom: 1px solid var(--st-border);
}
.borem-dropdown-item:last-child { border-bottom: none; }
.borem-dropdown-item:hover { background: var(--st-surface); color: var(--st-orange); }

/* ═══════════════════════════════════════════════════════════════════════════
   v3.18 — Reporting Charts
   ═══════════════════════════════════════════════════════════════════════════ */

.rpt-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding: 0 4px 0;
}

.rpt-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
  cursor: default;
}

.rpt-bar {
  width: 100%;
  background: var(--st-orange);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: opacity .2s;
}
.rpt-bar-wrap:hover .rpt-bar { opacity:.7; }
.rpt-bar-label { font-size: 11px; color: var(--st-muted); text-align:center; }

.rpt-hbar-chart { display:flex;flex-direction:column;gap:8px; }
.rpt-hbar-row { display:flex;align-items:center;gap:8px; }
.rpt-hbar-label { width:120px;font-size:12px;color:var(--st-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0; }
.rpt-hbar-track { flex:1;height:14px;background:var(--st-border);border-radius:4px;overflow:hidden; }
.rpt-hbar-fill { height:100%;background:var(--st-orange);border-radius:4px;transition:width .4s; }
.rpt-hbar-val { width:70px;text-align:right;font-size:12px;font-weight:600;flex-shrink:0; }

.rpt-aging-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.rpt-aging-bucket {
  flex: 1;
  min-width: 100px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
.rpt-aging-bucket strong { display:block;font-size:13px;margin-bottom:4px; }
.rpt-aging-bucket span { font-size:16px;font-weight:700; }
.rpt-aging-bucket.orange { border-color:#f59e0b; }
.rpt-aging-bucket.orange span { color:#f59e0b; }
.rpt-aging-bucket.red { border-color:#ef4444; }
.rpt-aging-bucket.red span { color:#ef4444; }
.rpt-aging-bucket.dark-red { border-color:#991b1b;background:#fef2f2; }
.rpt-aging-bucket.dark-red span { color:#991b1b; }

.borem-grid2 { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.borem-kpi   { padding:16px;text-align:center; }
.borem-kpi .k { font-size:12px;color:var(--st-muted);margin-bottom:4px; }
.borem-kpi .v { font-size:22px;font-weight:700; }

/* ═══════════════════════════════════════════════════════════════════════════
   v3.18 — Inspection Forms
   ═══════════════════════════════════════════════════════════════════════════ */

.insp-sig-pad { display:flex;flex-direction:column;gap:6px; }
.borem-field-full { grid-column: 1 / -1; }

.st-accordion { border:1px solid var(--st-border);border-radius:8px;overflow:hidden; }
.st-accordion-header {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--st-surface);
  user-select: none;
}
.st-accordion-header::-webkit-details-marker { display: none; }
.st-accordion[open] .st-accordion-caret { transform: rotate(180deg); }
.st-accordion-caret { transition: transform .2s; }
.st-accordion-title { font-weight: 600; font-size: 14px; }
.st-accordion-body { padding: 16px 18px; border-top: 1px solid var(--st-border); }

/* ═══════════════════════════════════════════════════════════════════════════
   v3.18 — Media grid for attachments
   ═══════════════════════════════════════════════════════════════════════════ */

.borem-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.borem-media-card {
  border: 1px solid var(--st-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--st-surface);
}
.borem-media-thumb img { width:100%;height:80px;object-fit:cover;display:block; }
.borem-media-fallback { width:100%;height:80px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:var(--st-muted);background:var(--st-border); }
.borem-media-meta { padding:6px 8px; }
.borem-media-title { font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--st-text); }

/* ═══════════════════════════════════════════════════════════════════════════
   v3.18 — Utilities
   ═══════════════════════════════════════════════════════════════════════════ */

.text-danger { color: #ef4444; }
/* .text-sm and .muted defined above — aliases resolved via --st-muted var */
.borem-btn-sm { padding: 4px 10px; font-size: 12px; }
.borem-field-group { display:flex;flex-direction:column;gap:4px; }
.borem-label { font-size:12px;font-weight:600;color:var(--st-text); }
.borem-space-top-md { margin-top: 16px; }


/* ═══════════════════════════════════════════════════════════════════════
   v3.19 — Global Search Dropdown
   ═══════════════════════════════════════════════════════════════════════ */

.borem-global-search { position: relative; }
.borem-global-search .borem-search-ico { position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--st-muted);pointer-events:none;width:15px;height:15px; }
#borem-global-search { padding: 7px 10px 7px 32px; border:1px solid var(--st-border); border-radius:6px; background:var(--st-surface); color:var(--st-text); font-size:13px; outline:none; }
#borem-global-search:focus { border-color:var(--st-orange); }

.borem-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--st-card);
  border: 1px solid var(--st-border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
}

.gs-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--st-border);
  transition: background .1s;
}
.gs-result:last-child { border-bottom: none; }
.gs-result:hover { background: var(--st-surface); }
.gs-icon { font-size: 16px; flex-shrink: 0; }
.gs-text { flex: 1; min-width: 0; }
.gs-label { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-sub { font-size: 11px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-loading, .gs-empty { padding: 14px; text-align: center; color: var(--st-muted); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════════
   v3.19 — Deficiency Status Pills
   ═══════════════════════════════════════════════════════════════════════ */

.def-stat-pill { display: inline-flex; align-items: center; }

/* ═══════════════════════════════════════════════════════════════════════
   v3.19 — Service History Timeline
   ═══════════════════════════════════════════════════════════════════════ */

.borem-timeline { position: relative; padding-left: 28px; }
.borem-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--st-border);
}

.borem-timeline-item {
  position: relative;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.borem-timeline-dot {
  position: absolute;
  left: -22px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  border: 2px solid var(--st-card);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.borem-timeline-content { flex: 1; padding-bottom: 4px; }
.borem-timeline-date    { font-size: 11px; color: var(--st-muted); margin-bottom: 2px; }
.borem-timeline-label   { font-size: 13px; font-weight: 600; color: var(--st-text); }
.borem-timeline-sub     { font-size: 12px; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════════
   v3.19 — Map Schedule
   ═══════════════════════════════════════════════════════════════════════ */

#borem-schedule-map {
  z-index: 0;
}
.borem-schedule-guidance { margin: -2px 2px 0; }
.borem-schedule-map-card[hidden] { display: none; }
.leaflet-container { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════════════════
   v3.19 — Mobile Responsiveness (375px → 768px)
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .borem-app { flex-direction: column; }
  /* Mobile sidebar: shows only when .mobile-nav-open is set */
  .borem-sidebar { display: none; }
  /* Mobile overlay sidebar (shown when hamburger tapped) */
  .borem-mobile-menu-open .borem-sidebar {
    display: flex;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 90;
    width: min(280px, 85vw);
    overflow-y: auto; overflow-x: hidden;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .borem-sidebar.sidebar-open { max-height: 100vh; overflow-y: auto; }
  .borem-sidebar-toggle { display: flex; }
  .borem-content { padding: 12px; }
  .borem-topbar { padding: 8px 12px; gap: 8px; }
  #borem-global-search { width: 160px; }
  .borem-grid2 { grid-template-columns: 1fr; }
  .st-job-body { grid-template-columns: 1fr; }
  .st-job-meta-grid { grid-template-columns: 1fr; }
  .borem-modal-dialog { max-width: calc(100vw - 24px); margin: 12px; }
  .db-outer { min-width: unset; overflow-x: auto; }
  .rpt-aging-summary { grid-template-columns: 1fr 1fr; }
  .borem-card-head { flex-wrap: wrap; gap: 8px; }
  .borem-filters { flex-wrap: wrap; }
  #dispatch-board-grid { font-size: 10px; }
  .borem-topbar-left h1 { font-size: 16px; }
  table.borem-table thead th, table.borem-table tbody td { padding: 8px 6px; font-size: 12px; }
  .wo-appointment-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  #borem-global-search { width: 120px; font-size: 12px; }
  .borem-btn { padding: 7px 12px; font-size: 12px; }
  .borem-modal-dialog { max-height: 95vh; }
  .borem-timeline { padding-left: 20px; }
  .borem-timeline::before { left: 7px; }
  .borem-timeline-dot { left: -16px; width: 16px; height: 16px; font-size: 9px; }
}

/* Tech Day — Mobile-first */
@media (max-width: 768px) {
  .borem-tech-day-shell { flex-direction: column; }
  .borem-tech-day-progress { width: 100%; border-right: none; border-bottom: 1px solid var(--st-border); }
  .borem-time-shell { flex-direction: column; }
  .borem-dispatch-card { overflow-x: auto; }
}

/* Inspection forms — single column on small screens */
@media (max-width: 600px) {
  .borem-grid2 .borem-field-group { grid-column: 1 / -1; }
  #insp-form-wrap .borem-grid2 { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v3.20 — Completion Signature Canvas
   ═══════════════════════════════════════════════════════════════════════ */

#completion-sig-canvas {
  display: block;
  width: 100%;
  height: 140px;
  cursor: crosshair;
  background: #fff;
  border-radius: 4px;
  touch-action: none;
  user-select: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   v3.20 — Compliance Alerts
   ═══════════════════════════════════════════════════════════════════════ */

.compliance-alert-critical { color: #ef4444; font-weight: 700; }
.compliance-alert-warning  { color: #f59e0b; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   v3.20 — Labor Invoice Modal KPI grid
   ═══════════════════════════════════════════════════════════════════════ */

#labor-invoice-modal .borem-modal-dialog {
  max-height: 85vh;
  overflow-y: auto;
}


/* ═══════════════════════════════════════════════════════════════════════
   v3.21 — Project Management
   ═══════════════════════════════════════════════════════════════════════ */

.borem-grid4 { display:grid;grid-template-columns:repeat(4,1fr);gap:12px; }
@media(max-width:900px){ .borem-grid4 { grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px){ .borem-grid4 { grid-template-columns:1fr; } }

/* ═══════════════════════════════════════════════════════════════════════
   v3.21 — Email Template Editor
   ═══════════════════════════════════════════════════════════════════════ */

.et-template-row:hover { background: var(--st-surface); }
.et-custom .et-custom-badge { color: var(--st-orange); }

/* ═══════════════════════════════════════════════════════════════════════
   v3.21 — Form Builder
   ═══════════════════════════════════════════════════════════════════════ */

#fb-editor-body .borem-grid2 { gap:10px; }

/* ═══════════════════════════════════════════════════════════════════════
   v3.21 — Contract Renewals urgency colors
   ═══════════════════════════════════════════════════════════════════════ */

.cr-urgent   { color: #ef4444; font-weight: 700; }
.cr-warning  { color: #f59e0b; font-weight: 600; }
.cr-ok       { color: #10b981; }


/* ═══════════════════════════════════════════════════════════════════════
   v3.21 — Project Management
   ═══════════════════════════════════════════════════════════════════════ */

.fb-field-row { transition: background .1s; }
.fb-field-row:hover { background: var(--st-surface); }

.po-item-row input { font-size: 12px; }

/* Renewal summary bar re-uses rpt-aging-summary */

/* Form builder editor panel scrollable */
#form-editor-body { max-height: calc(100vh - 200px); overflow-y: auto; }


/* ═══════════════════════════════════════════════════════════════════════
   v3.21 — Project Management
   ═══════════════════════════════════════════════════════════════════════ */

.proj-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--st-border);
  padding: 0 4px;
  overflow-x: auto;
}
.proj-tab {
  padding: 10px 18px;
  border: none;
  background: none;
  color: var(--st-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.proj-tab.active {
  color: var(--st-orange);
  border-bottom-color: var(--st-orange);
}
.proj-tab:hover { color: var(--st-text); }

.proj-kpi-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 8px;
  padding: 14px 16px;
}
.proj-kpi-label { font-size: 11px; color: var(--st-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.proj-kpi-value { font-size: 20px; font-weight: 800; }

.fb-section { transition: box-shadow .15s; }
.fb-section:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.co-item-row input { font-size: 12px; }

/* ═══════════════════════════════════════════════════════════════════════
   v3.21 — Email Template Editor
   ═══════════════════════════════════════════════════════════════════════ */

#et-body {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.6;
  tab-size: 2;
}
#et-merge-tags button {
  font-family: monospace;
  font-size: 11px;
  padding: 3px 7px;
}


/* ═══════════════════════════════════════════════════════════════════════
   PASS 2 — CRM Pipeline Kanban
   ═══════════════════════════════════════════════════════════════════════ */
.crm-kanban { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; align-items:flex-start; }
.crm-kanban-col { flex:0 0 230px; background:var(--st-card); border-radius:8px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.crm-col-head { padding:10px 12px; color:#fff; display:flex; justify-content:space-between; align-items:center; font-size:13px; font-weight:700; }
.crm-col-body { padding:6px; max-height:70vh; overflow-y:auto; }
.crm-card { background:var(--st-surface); border:1px solid var(--st-border); border-radius:6px; padding:10px 12px; margin-bottom:6px; cursor:pointer; transition:box-shadow .15s, transform .1s; }
.crm-card:hover { box-shadow:0 2px 8px rgba(0,0,0,.1); transform:translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════════════
   PASS 2 — QR Scanner Modal
   ═══════════════════════════════════════════════════════════════════════ */
#qr-scanner-modal { z-index:9100; }
#qr-video { max-height:260px; }

/* ═══════════════════════════════════════════════════════════════════════
   PASS 2 — Refrigerant & Role Permission Tables
   ═══════════════════════════════════════════════════════════════════════ */
.role-cap-check { width:18px; height:18px; cursor:pointer; }

/* ════════════════════════════════════════════════════════════════════
   v3.23.1 — COMPREHENSIVE CSS AUDIT FIXES
   Screen-by-screen mobile + layout corrections
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. Global box model & overflow guards ──────────────────────────── */
.borem-app * { box-sizing: border-box; }

/* Every card, table, grid must never exceed the viewport */
.borem-card,
.borem-card-body,
.borem-content,
.borem-grid2,
.borem-grid4,
.borem-grid {
  max-width: 100%;
  min-width: 0;
}

/* Tables inside cards always scroll horizontally rather than busting out */
.borem-card-body .borem-table,
.borem-card > .borem-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* ── 2. Topbar — mobile collapse ────────────────────────────────────── */
@media (max-width: 600px) {
  .borem-topbar { padding: 0 10px; gap: 6px; height: 48px; }
  /* Hide search on very small screens to prevent overflow */
  .borem-search { display: none; }
  .borem-page-title { font-size: 14px; }
  .borem-topbar-left { gap: 6px; }
}
@media (max-width: 979px) {
  /* Search expands to fill available space on tablet */
  .borem-search { flex: 1; min-width: 0; }
  .borem-search input { min-width: 0; width: 100%; }
}

/* ── 3. Sidebar — mobile no-clip ────────────────────────────────────── */
@media (max-width: 979px) {
  /* Mobile menu drawer — override the overflow:hidden that clips content */
  .borem-mobile-menu .borem-sidebar { overflow-y: auto; }
}

/* ── 4. Content area — padding on mobile ───────────────────────────── */
@media (max-width: 979px) {
  .borem-content { padding: 10px 10px 80px; }
}
@media (max-width: 480px) {
  .borem-content { padding: 8px 8px 80px; }
}

/* ── 5. Card heads — wrap filter bars on mobile ─────────────────────── */
.borem-card-head { flex-wrap: wrap; }
.borem-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
@media (max-width: 640px) {
  .borem-filters { width: 100%; }
  .borem-filters .borem-input,
  .borem-filters .borem-select { flex: 1; min-width: 120px; }
  .borem-filters .borem-btn { white-space: nowrap; }
}

/* ── 6. Grids — collapse breakpoints ────────────────────────────────── */
@media (max-width: 640px) {
  .borem-grid2 { grid-template-columns: 1fr; }
  .borem-grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .borem-grid4 { grid-template-columns: 1fr; }
}

/* ── 7. KPI rows — scroll on mobile instead of wrapping badly ───────── */
.borem-kpi-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .borem-kpi-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .borem-kpi-box { flex: 0 0 130px; }
}

/* ── 8. Modal dialogs — never wider than viewport ───────────────────── */
.borem-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1;
}
.borem-modal-dialog {
  position: relative;
  z-index: 2;
  max-width: min(600px, calc(100vw - 20px));
  width: 100%;
  margin: 0 auto;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  /* On small screens modals slide up from the bottom */
  .borem-modal-dialog {
    max-width: 100vw;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
  }
}

/* ── 9. Work-order detail — action bar wraps ────────────────────────── */
#wo-action-bar,
.borem-wo-actions,
.wo-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ── 10. Dispatch board — horizontal scroll on all screens ──────────── */
#dispatch-board-grid,
.dispatch-board-grid {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
@media (max-width: 979px) {
  #dispatch-board-grid { min-width: 0; font-size: 11px; }
  .borem-dispatch-card { min-width: 160px; }
}

/* ── 11. Schedule map — full height on mobile ───────────────────────── */
#sched-map-wrap {
  position: relative;
  width: 100%;
}
#sched-map {
  width: 100%;
  max-width: 100%;
}
@media (max-width: 979px) {
  #sched-map { height: 300px; }
  #sched-queue-table { font-size: 12px; }
}

/* ── 12. Inspection form — input rows stack on mobile ──────────────── */
@media (max-width: 600px) {
  .insp-row { grid-template-columns: 1fr; }
  .insp-field-group { min-width: 0; }
}

/* ── 13. Invoice / quote line items — scroll on mobile ─────────────── */
@media (max-width: 700px) {
  .borem-line-items-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .borem-invoice-totals { font-size: 13px; }
}

/* ── 14. Tech-day — stack panels on mobile ──────────────────────────── */
@media (max-width: 700px) {
  .borem-tech-day-main { padding: 14px; border-radius: 12px; }
  .borem-tech-day-steps { display: none; } /* replaced by bottom progress bar */
  .borem-time-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
  .borem-time-actions .borem-btn { width: 100%; justify-content: center; }
}

/* ── 15. CRM Kanban — horizontal scroll on mobile ───────────────────── */
.crm-kanban {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  padding-bottom: 12px;
}
@media (max-width: 700px) {
  .crm-kanban-col { flex: 0 0 200px; }
  .crm-col-body { max-height: 50vh; }
}

/* ── 16. Project performance bars — constrain width ────────────────── */
.proj-kpi-card { min-width: 0; }
.proj-kpi-value { font-size: clamp(14px, 4vw, 20px); }

/* ── 17. Parts / inventory — responsive table cells ────────────────── */
@media (max-width: 700px) {
  .borem-parts-table td:nth-child(n+4) { display: none; }
  .borem-parts-table td:nth-child(1)::before { content: "Part"; }
  .borem-parts-table td:nth-child(2)::before { content: "Warehouse"; }
  .borem-parts-table td:nth-child(3)::before { content: "Qty"; }
}

/* ── 18. Purchase orders — responsive ───────────────────────────────── */
@media (max-width: 700px) {
  #po-table th:nth-child(n+5),
  #po-table td:nth-child(n+5) { display: none; }
}

/* ── 19. Reporting dashboard — responsive charts ────────────────────── */
.rpt-revenue-chart,
.rpt-bar-chart { overflow-x: auto; max-width: 100%; }
@media (max-width: 700px) {
  .rpt-aging-summary { flex-direction: column; }
  .rpt-aging-bucket { width: 100%; }
  .borem-kpi-mini { min-width: 80px; font-size: 11px; }
}

/* ── 20. Form builder — field rows on mobile ────────────────────────── */
@media (max-width: 600px) {
  .fb-field-row { grid-template-columns: 1fr auto auto auto; }
  .fb-field-row select { display: none; } /* use tap-to-change pattern */
}

/* ── 21. Refrigerant log — table scroll on mobile ───────────────────── */
@media (max-width: 700px) {
  #ref-log-table th:nth-child(n+7),
  #ref-log-table td:nth-child(n+7) { display: none; }
}

/* ── 22. Role permissions matrix — horizontal scroll ────────────────── */
.borem-perm-matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.borem-perm-matrix { min-width: 600px; }

/* ── 23. Back link ──────────────────────────────────────────────────── */
.borem-back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--st-text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .12s, color .12s;
}
.borem-back-link:hover { background: var(--st-bg); color: var(--st-orange); }

/* ── 24. Inline tag / badge overflow ────────────────────────────────── */
.st-badge { white-space: nowrap; }
.borem-tag-list { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── 25. Input groups — never overflow ──────────────────────────────── */
.borem-input,
.borem-select,
.borem-textarea {
  max-width: 100%;
}

/* ── 26. Fix inline styles from JS using --st-card / --st-muted ─────── */
/* These are used in JS innerHTML strings as var(--st-card) / var(--st-muted)
   Both now resolve via :root definitions above, but adding explicit fallback
   classes for components that also add class-based styling */
.timeline-dot   { background: var(--st-surface); border: 2px solid var(--st-border); border-radius: 50%; }
.crm-card       { background: var(--st-surface); }
.crm-kanban-col { background: var(--st-card, var(--st-surface)); }
.proj-kpi-card  { background: var(--st-surface); border: 1px solid var(--st-border); }

/* ── 27. borem-kpi-mini — used in reports + CRM ────────────────────── */
.borem-kpi-mini {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 100px;
  text-align: center;
}
.borem-kpi-mini span { display: block; font-size: 22px; font-weight: 800; color: var(--st-orange); }
.borem-kpi-mini label { display: block; font-size: 11px; color: var(--st-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ── 28. Service opportunities table wrapping ───────────────────────── */
@media (max-width: 700px) {
  #service-opp-table th:nth-child(n+5),
  #service-opp-table td:nth-child(n+5) { display: none; }
}

/* ── 29. Global search results — text overflow ──────────────────────── */
.gs-label { max-width: 100%; }
.gs-sub { color: var(--st-text-muted); } /* was var(--st-muted) — now explicit */

/* ── 30. Fix topbar overflow on all mobile sizes ────────────────────── */
.borem-topbar {
  flex-wrap: nowrap;
  min-width: 0;
}
.borem-topbar-left,
.borem-top-actions {
  min-width: 0;
  flex-shrink: 1;
}
@media (max-width: 420px) {
  .borem-top-actions .borem-btn:not(:first-child) { display: none; }
}

/* ── 31. Footer safe area on iPhone ─────────────────────────────────── */
.borem-mobile-nav {
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}
@media (max-width: 979px) {
  /* Extra bottom padding so last content isn't hidden behind mobile nav */
  .borem-content { padding-bottom: calc(68px + env(safe-area-inset-bottom) + 16px); }
}

/* ── 32. Tables — all instances get overflow protection ─────────────── */
.borem-table-wrap,
[style*="overflow-x: auto"] {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* ── 33. Fix hardcoded wide elements in JS-rendered templates ────────── */
/* The JS templates create tables with no wrapper — this catches them */
/* Non-borem-table tables (e.g. inline JS rendered) get scroll */
.borem-card-body table:not(.borem-table):not(.borem-perm-matrix):not(.borem-guide-table) {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}
/* Except preserve thead/tbody display for non-borem-table tables */
.borem-card-body table:not(.borem-table) thead { display: table-header-group; }
.borem-card-body table:not(.borem-table) tbody { display: table-row-group; }
.borem-card-body table:not(.borem-table) tfoot { display: table-footer-group; }

/* The catch-all above is too aggressive for .borem-table which has its own rules.
   Undo for borem-table children: */
.borem-card-body .borem-table thead { display: table-header-group; }
.borem-card-body .borem-table tbody { display: table-row-group; }

/* ── 34. Work-order tech-day photo row ───────────────────────────────── */
#wo-photo-row { flex-wrap: wrap; }

/* ── 35. Asset table on mobile ───────────────────────────────────────── */
@media (max-width: 700px) {
  .borem-tech-assets-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── 36. Offices table responsive ───────────────────────────────────── */
@media (max-width: 640px) {
  #offices-table th:nth-child(n+5),
  #offices-table td:nth-child(n+5) { display: none; }
}


/* ════════════════════════════════════════════════════════════════════
   v3.25 — Knowledge Base Styles
   ════════════════════════════════════════════════════════════════════ */

/* ── Article typography ────────────────────────────────────────────── */
.borem-kb-article-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--st-text);
}
.borem-kb-article-content h1 { font-size: 22px; font-weight: 800; margin: 0 0 16px; }
.borem-kb-article-content h2 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--st-border); }
.borem-kb-article-content h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; color: var(--st-orange); }
.borem-kb-article-content p  { margin: 0 0 12px; }
.borem-kb-article-content ul,
.borem-kb-article-content ol  { padding-left: 20px; margin: 8px 0 12px; }
.borem-kb-article-content li  { margin-bottom: 6px; }
.borem-kb-article-content code {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 12px;
}
.borem-kb-article-content strong { font-weight: 700; }
.borem-kb-article-content em     { font-style: italic; }

/* ── KB tables ──────────────────────────────────────────────────────── */
.borem-kb-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.borem-kb-table th {
  background: var(--st-dark, #1c2733);
  color: #fff;
  padding: 9px 12px;
  text-align: left;
  font-weight: 600;
}
.borem-kb-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--st-border);
  vertical-align: top;
}
.borem-kb-table tr:last-child td { border-bottom: none; }
.borem-kb-table tr:nth-child(even) td { background: var(--st-surface); }
.borem-kb-table td:first-child { font-weight: 600; }

/* ── Glossary definition list ───────────────────────────────────────── */
.borem-kb-glossary dt {
  font-weight: 700;
  font-size: 14px;
  color: var(--st-text);
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--st-border);
}
.borem-kb-glossary dd {
  margin: 6px 0 12px 0;
  font-size: 13px;
  line-height: 1.65;
  color: #374151;
}

/* ── Category card hover ────────────────────────────────────────────── */
.kb-cat-item:hover { background: var(--st-bg); }

/* ── Help panel article content — smaller scale ─────────────────────── */
#help-panel-body .borem-kb-article-content h2 { font-size: 14px; margin: 16px 0 8px; }
#help-panel-body .borem-kb-article-content h3 { font-size: 13px; margin: 12px 0 6px; }
#help-panel-body .borem-kb-table             { font-size: 12px; }
#help-panel-body .borem-kb-article-content p { font-size: 13px; }

/* ── Mobile responsiveness ──────────────────────────────────────────── */
@media (max-width: 700px) {
  #borem-help-center > div { flex-direction: column; }
  #kb-sidebar { width: 100%; }
  #borem-help-panel { width: 100vw; max-width: 100vw; }
  #borem-help-fab { bottom: 80px; right: 16px; width: 40px; height: 40px; font-size: 18px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   v3.25.7 — Jobs frontend modal/off-canvas UX polish
   ═══════════════════════════════════════════════════════════════════════ */
.borem-nav-group summary,
.borem-nav-group summary::-webkit-details-marker,
.borem-nav-group-summary {
  display: inline-flex;
  align-items: center;
  width: 100%;
  gap: 4px;
}
.borem-nav-group-summary .borem-nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.borem-loc-page {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 1.5rem;
}
.borem-loc-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--st-border);
}
.borem-loc-page-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -.03em;
}
.borem-loc-page-head p {
  max-width: 780px;
  margin: 0;
  color: var(--st-text-muted);
  line-height: 1.55;
}
.borem-loc-page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.borem-wo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.borem-wo-toolbar .borem-loc-toolbar-links {
  margin-left: auto;
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.borem-wo-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.borem-wo-filter-toggle::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  background: currentColor;
  clip-path: polygon(6% 12%, 94% 12%, 62% 50%, 62% 88%, 38% 88%, 38% 50%);
  opacity: .8;
}

#borem-wo-summary.borem-wo-summary,
.borem-wo-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
#borem-wo-summary.borem-wo-summary > div,
.borem-wo-summary > div {
  position: relative;
  padding: 16px 16px 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border: 1px solid var(--st-border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  overflow: hidden;
}
[data-borem-theme="dark"] #borem-wo-summary.borem-wo-summary > div,
[data-borem-theme="dark"] .borem-wo-summary > div {
  background: linear-gradient(180deg, rgba(31,41,55,.92), rgba(17,24,39,.78));
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
#borem-wo-summary.borem-wo-summary > div::before,
.borem-wo-summary > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--st-orange);
  opacity: .85;
}
#borem-wo-summary.borem-wo-summary span,
.borem-wo-summary span {
  display: block;
  color: var(--st-text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .075em;
  margin-bottom: 7px;
}
#borem-wo-summary.borem-wo-summary strong,
.borem-wo-summary strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--st-text);
}

.borem-wo-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: block;
  pointer-events: none;
  visibility: hidden;
}
.borem-wo-filter-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.borem-wo-filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .46);
  opacity: 0;
  transition: opacity .18s ease;
}
.borem-wo-filter-drawer.is-open .borem-wo-filter-backdrop { opacity: 1; }
.borem-wo-filter-sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, calc(100vw - 24px));
  height: 100%;
  background: var(--st-surface);
  border-left: 1px solid var(--st-border);
  box-shadow: -24px 0 50px rgba(15,23,42,.22);
  transform: translateX(104%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
}
.borem-wo-filter-drawer.is-open .borem-wo-filter-sheet { transform: translateX(0); }
.borem-wo-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--st-border);
}
.borem-wo-filter-head h3 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: -.02em;
}
.borem-wo-filter-sheet .borem-loc-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  padding: 18px 22px 24px;
  overflow-y: auto;
}
.borem-wo-filter-sheet label {
  display: block;
  margin: 0 0 6px;
  color: var(--st-text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .065em;
}
.borem-wo-filter-sheet input,
.borem-wo-filter-sheet select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--st-border);
  background: var(--st-bg);
  color: var(--st-text);
}
.borem-wo-filter-sheet input:focus,
.borem-wo-filter-sheet select:focus {
  outline: none;
  border-color: var(--st-orange);
  box-shadow: 0 0 0 3px rgba(240,90,40,.12);
}
.borem-wo-filter-sheet .borem-inline-actions-end {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, transparent, var(--st-surface) 24%);
}
.borem-wo-filter-open { overflow: hidden; }

#borem-wo-table {
  border: 1px solid var(--st-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--st-surface);
  box-shadow: 0 14px 30px rgba(15,23,42,.06);
}
#borem-wo-table th {
  background: color-mix(in srgb, var(--st-bg) 78%, var(--st-surface));
  border-bottom: 1px solid var(--st-border);
  padding: 12px 14px;
}
#borem-wo-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(148,163,184,.18);
}
#borem-wo-table tbody tr:last-child td { border-bottom: 0; }
#borem-wo-table tbody tr {
  transition: background .15s ease, transform .15s ease;
}
#borem-wo-table tbody tr:hover {
  background: color-mix(in srgb, var(--st-orange-soft) 72%, transparent);
}
#borem-wo-table .borem-data-link,
#borem-wo-table .borem-job-link {
  color: var(--st-blue-link);
  font-weight: 650;
  text-decoration: none;
}
#borem-wo-table .borem-data-link:hover,
#borem-wo-table .borem-job-link:hover {
  text-decoration: underline;
}
#borem-wo-table .borem-loc-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  #borem-wo-summary.borem-wo-summary,
  .borem-wo-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .borem-loc-page-head,
  .borem-wo-toolbar { flex-direction: column; align-items: stretch; }
  .borem-wo-toolbar .borem-loc-toolbar-links { margin-left: 0; justify-content: flex-start; }
  #borem-wo-summary.borem-wo-summary,
  .borem-wo-summary { grid-template-columns: 1fr; }
  .borem-wo-filter-sheet { width: 100%; }
}

@media (max-width: 700px) {
  #borem-wo-table td:nth-child(1)::before{content:"Job"}
  #borem-wo-table td:nth-child(2)::before{content:"Status"}
  #borem-wo-table td:nth-child(3)::before{content:"Due By"}
  #borem-wo-table td:nth-child(4)::before{content:"Appointment"}
  #borem-wo-table td:nth-child(5)::before{content:"Technician"}
  #borem-wo-table td:nth-child(6)::before{content:"Service Line"}
  #borem-wo-table td:nth-child(7)::before{content:"Location"}
  #borem-wo-table td:nth-child(8)::before{content:"Bill To"}
  #borem-wo-table td:nth-child(9)::before{content:"Owner"}
}

/* ============================================================
   v3.25.9 — ServiceTrade-inspired dashboard/job detail polish
   ============================================================ */
:root {
  --borem-app-bg: #eef3f8;
  --borem-panel-radius: 16px;
  --borem-panel-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 24px rgba(15, 23, 42, .05);
}
.borem-app {
  background: var(--borem-app-bg);
}
.borem-main {
  background: var(--borem-app-bg);
}
.borem-topbar {
  background: var(--st-surface);
  border-bottom: 1px solid #dce5ef;
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
}
.borem-page-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0f172a;
}
.borem-content {
  padding: 18px 24px 32px;
}
.borem-card {
  border-color: #d7e0ea;
  border-radius: var(--borem-panel-radius);
  box-shadow: var(--borem-panel-shadow);
  background: #fff;
}
.borem-card-head {
  border-bottom-color: #e6edf5;
  padding: 16px 18px 12px;
}
.borem-card-head h2,
.borem-card-head h3 {
  color: #0f2d4e;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.borem-card-body {
  padding: 16px 18px 18px;
}
.borem-btn,
.borem-icon-btn,
.borem-input,
.borem-select,
.borem-filters input,
.borem-filters select {
  border-color: #ccdae8;
  border-radius: 8px;
}
.borem-btn.primary,
.st-badge.primary {
  background: var(--borem-app-accent, var(--st-orange));
  border-color: var(--borem-app-accent, var(--st-orange));
}
.borem-btn:not(.primary):hover,
.borem-icon-btn:hover {
  border-color: var(--borem-app-accent, var(--st-orange));
  color: var(--borem-app-accent, var(--st-orange));
  background: var(--st-orange-soft);
}
.borem-table th {
  background: #f7f9fc;
  color: #64748b;
  border-bottom-color: #dbe5ef;
  font-size: 11px;
}
.borem-table td {
  border-bottom-color: #e7edf4;
  color: #24364a;
}
.borem-table tbody tr:hover {
  background: rgba(88,166,255,.07);
}
.borem-data-link,
.borem-link,
.borem-app a {
  color: var(--borem-app-accent, #1269b0);
}

/* Homepage dashboard shell */
.borem-home-shell {
  margin-bottom: 16px;
}
.borem-home-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--borem-app-accent, #0b67a7);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.borem-home-notice-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  font-weight: 800;
  flex: 0 0 24px;
}
.borem-home-notice strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.borem-home-notice span:not(.borem-home-notice-icon) {
  display: block;
  font-size: 12px;
  opacity: .92;
}
.borem-home-notice-close {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.borem-home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.borem-home-toolbar select {
  max-width: 170px;
  min-height: 32px;
  background: #fff;
}
.borem-home-grid {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
}
.borem-home-grid .borem-card[data-widget="schedule"] {
  grid-column: 1 / 2;
}
.borem-home-grid .borem-card[data-widget="deficiencies"] {
  grid-column: 2 / 3;
}
.borem-home-grid .borem-kpi {
  min-height: 88px;
}
.borem-kpi .k {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.borem-kpi .v {
  color: #0b365f;
  font-weight: 900;
}
.borem-donut circle.fg,
.borem-legend .dot,
#borem-wo-summary.borem-wo-summary > div::before,
.borem-wo-summary > div::before {
  background: var(--borem-app-accent, var(--st-orange));
  stroke: var(--borem-app-accent, var(--st-orange));
}
@media (max-width: 1060px) {
  .borem-home-grid { grid-template-columns: 1fr; }
  .borem-home-grid .borem-card[data-widget="schedule"],
  .borem-home-grid .borem-card[data-widget="deficiencies"] { grid-column: auto; }
}

/* Job detail: vertical, accordion-driven, with right action rail */
#wo-detail-page {
  position: relative;
  padding-right: 68px;
}
#wo-detail-page > div.st-job-body.borem-grid2.borem-grid2-top {
  display: block;
  gap: 0;
}
#wo-detail-page > div.st-job-body.borem-grid2.borem-grid2-top > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
#wo-detail-page .st-job-header {
  border-radius: var(--borem-panel-radius);
  border: 1px solid #d7e0ea;
  box-shadow: var(--borem-panel-shadow);
  margin-bottom: 14px;
}
#wo-detail-page .borem-card.borem-wo-accordion {
  overflow: hidden;
  margin-bottom: 0;
}
#wo-detail-page .borem-wo-accordion > .borem-card-head {
  cursor: pointer;
  user-select: none;
  min-height: 54px;
  padding: 14px 18px;
}
#wo-detail-page .borem-wo-accordion > .borem-card-head:hover {
  background: #f8fbff;
}
#wo-detail-page .borem-accordion-caret {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 8px;
  color: #7c93ac;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
#wo-detail-page .borem-wo-accordion.is-open .borem-accordion-caret {
  transform: rotate(180deg);
  color: var(--borem-app-accent, var(--st-orange));
  background: var(--st-orange-soft);
}
#wo-detail-page .borem-wo-accordion > .borem-card-body[hidden] {
  display: none;
}
.borem-wo-sticky-actions {
  position: fixed;
  right: 18px;
  top: 112px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(15,23,42,.14);
  backdrop-filter: blur(12px);
}
.borem-wo-sticky-actions button {
  width: 78px;
  min-height: 34px;
  border: 1px solid #ccdae8;
  border-radius: 10px;
  background: #f8fbff;
  color: #33516f;
  font-size: 12px;
  font-weight: 800;
}
.borem-wo-sticky-actions button:hover {
  color: #fff;
  background: var(--borem-app-accent, var(--st-orange));
  border-color: var(--borem-app-accent, var(--st-orange));
}
.borem-wo-sticky-actions button.danger:hover {
  background: #ef4444;
  border-color: #ef4444;
}
.borem-record-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.borem-record-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .34);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.borem-record-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--borem-app-bg);
}
.borem-alert-danger {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}
@media (max-width: 980px) {
  #wo-detail-page { padding-right: 0; }
  .borem-wo-sticky-actions {
    position: sticky;
    top: 8px;
    right: auto;
    flex-direction: row;
    overflow-x: auto;
    margin-bottom: 12px;
  }
  .borem-wo-sticky-actions button { flex: 1 0 auto; width: auto; }
}
[data-borem-theme="dark"] {
  --borem-app-bg: #0f1720;
}
[data-borem-theme="dark"] .borem-card,
[data-borem-theme="dark"] .borem-topbar,
[data-borem-theme="dark"] .borem-record-dialog,
[data-borem-theme="dark"] .borem-wo-sticky-actions {
  background: var(--st-surface);
  border-color: var(--st-border);
}
[data-borem-theme="dark"] .borem-page-title,
[data-borem-theme="dark"] .borem-card-head h2,
[data-borem-theme="dark"] .borem-card-head h3,
[data-borem-theme="dark"] .borem-kpi .v {
  color: var(--st-text);
}
[data-borem-theme="dark"] #wo-detail-page .borem-wo-accordion > .borem-card-head:hover,
[data-borem-theme="dark"] .borem-wo-sticky-actions button {
  background: rgba(255,255,255,.04);
}


/* v3.25.11 — glass preloader, focused record modals, and Job Detail polish */
.borem-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 12, .75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity .22s ease, visibility .22s ease;
}
.borem-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.borem-preloader-glass {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.18);
}
.borem-preloader-glass img { max-width: 76px; max-height: 76px; object-fit: contain; animation: boremPreloaderPulse 1.15s ease-in-out infinite; }
@keyframes boremPreloaderPulse { 0%,100%{transform:scale(1);opacity:.86} 50%{transform:scale(1.06);opacity:1} }
.borem-app-modal .borem-sidebar,
.borem-app-modal .borem-topbar,
.borem-app-modal .borem-mobile-menu-shell,
.borem-app-modal .borem-sidebar-toggle-wrap { display: none; }
.borem-app-modal .borem-main { margin-left: 0; width: 100%; min-height: 100vh; }
.borem-app-modal .borem-content { padding: 18px; }
.borem-app-modal #wo-detail-page { padding-right: 0; }
.borem-record-modal .borem-modal-backdrop { z-index: 1; }
.borem-record-dialog { z-index: 2; }

#wo-detail-page .borem-wo-detail-hero {
  padding: 26px 30px 24px;
  border-radius: 22px;
  min-height: 168px;
  background: #fff;
}
#wo-detail-page .borem-wo-detail-hero .st-job-header-top { align-items: flex-start; }
.borem-wo-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #15803d;
  font-size: 13px;
  font-weight: 800;
}
.borem-wo-hero-status-dot { width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
#wo-detail-page #wo-page-title { font-size: 20px; color: #24415f; margin: 0 0 10px; }
#wo-detail-page #wo-action-bar .borem-btn,
#wo-detail-page #wo-photo-row .borem-btn { border-radius: 8px; min-height: 28px; padding: 5px 10px; }
.borem-wo-sticky-actions {
  right: 18px;
  top: 96px;
  width: 58px;
  gap: 0;
  padding: 10px 0;
  align-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
}
.borem-wo-due-card {
  position: absolute;
  right: 72px;
  top: 0;
  width: 112px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #e5edf6;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
.borem-wo-due-card span { display:block; color: var(--borem-app-accent, #1769aa); font-size: 12px; font-weight: 900; margin-bottom: 5px; }
.borem-wo-due-card strong { display:block; color: #24415f; font-size: 15px; line-height: 1.25; }
.borem-wo-sticky-actions button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #7d9ac0;
  box-shadow: none;
  padding: 0;
  margin: 1px 0;
}
.borem-wo-sticky-actions button span { display: block; font-size: 20px; line-height: 42px; }
.borem-wo-sticky-actions button em { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.borem-wo-sticky-actions button:hover { background: #eef6ff; color: var(--borem-app-accent, #1769aa); border-color: transparent; }
.borem-wo-sticky-actions button.danger:hover { color: #ef4444; background:#fff1f2; }
.borem-map-card { display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid #dbe6f2; border-radius:14px; padding:14px; background:#f8fbff; }
.borem-comment-list { display:grid; gap:10px; }
.borem-comment-card { border:1px solid #dbe6f2; border-radius:12px; padding:12px 14px; background:#fbfdff; }
.borem-comment-card span { display:block; font-size:12px; font-weight:900; color:#607d9b; margin-bottom:5px; }
.borem-comment-card p { margin:0; color:#24415f; white-space:pre-wrap; }
@media (max-width: 980px) {
  .borem-wo-due-card { position: static; width: auto; min-height: 0; margin-right: 8px; }
  .borem-wo-sticky-actions { width:auto; align-items:center; padding:8px; }
}

/* v3.25.15 — Bulk import status modal */
#borem-import-status-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#borem-import-status-modal .borem-import-status-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, .72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  z-index: 1;
}
#borem-import-status-modal .borem-import-status-dialog {
  position: relative;
  z-index: 2;
  width: min(760px, 96vw);
  max-height: min(720px, 92vh);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 80px rgba(2, 8, 23, .34);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}
.borem-import-status-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(148,163,184,.22);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--st-accent, #2563eb) 18%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(248,250,252,.86));
}
.borem-import-kicker {
  color: var(--st-accent, #2563eb);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.borem-import-status-head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.borem-import-status-body {
  padding: 22px 24px;
}
.borem-import-step-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.borem-import-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.borem-import-step.is-active {
  color: #fff;
  background: var(--st-accent, #2563eb);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--st-accent, #2563eb) 22%, transparent);
}
.borem-import-step.is-done {
  color: #065f46;
  background: #d1fae5;
}
.borem-import-progress-shell {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.08);
  margin-bottom: 18px;
}
.borem-import-progress-bar {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--st-accent, #2563eb), color-mix(in srgb, var(--st-accent, #2563eb) 62%, #22c55e));
  transition: width .25s ease;
}
.borem-import-progress-bar.is-indeterminate {
  width: 35%;
  animation: boremImportIndeterminate 1.05s ease-in-out infinite;
}
@keyframes boremImportIndeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.borem-import-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.borem-import-status-grid > div {
  padding: 12px;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  background: #fff;
}
.borem-import-status-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.borem-import-status-grid strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
}
.borem-import-message {
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--st-accent, #2563eb) 8%, #fff);
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}
.borem-import-errors {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
  color: #991b1b;
  max-height: 160px;
  overflow: auto;
  font-size: 12px;
}
.borem-import-errors ul,
.borem-import-inline-result ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.borem-import-status-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid rgba(148,163,184,.22);
  background: rgba(248,250,252,.92);
}
.borem-import-inline-result {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(148,163,184,.22);
  background: #eff6ff;
}
.borem-import-inline-result.is-done {
  background: #d1fae5;
  border-color: #a7f3d0;
}
@media (max-width: 720px) {
  #borem-import-status-modal { padding: 12px; align-items: flex-end; }
  #borem-import-status-modal .borem-import-status-dialog { width: 100%; border-radius: 22px 22px 0 0; }
  .borem-import-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   v3.25.17 — App table integration + company detail polish
   ============================================================ */
.borem-card {
  padding: 30px;
}
.borem-card > .borem-card-head:first-child {
  margin: -30px -30px 0;
  padding: 20px 30px 14px;
}
.borem-card > .borem-card-body {
  margin: 0 -30px -30px;
  padding: 24px 30px 30px;
}
@media (max-width: 780px) {
  .borem-card { padding: 10px; }
  .borem-card > .borem-card-head:first-child {
    margin: -10px -10px 0;
    padding: 12px 10px 10px;
  }
  .borem-card > .borem-card-body {
    margin: 0 -10px -10px;
    padding: 12px 10px 10px;
  }
}
.borem-table-wrap,
.borem-card-body .borem-table-wrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid #e3ebf4;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
@media (min-width: 781px) {
  .borem-card-body .borem-table,
  .borem-card > .borem-table,
  table.borem-table {
    display: table;
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
}
.borem-table {
  width: 100%;
  min-width: 100%;
  background: transparent;
}
.borem-table th,
.borem-table td {
  border-color: #edf2f7;
}
.borem-table th {
  background: #f8fbfe;
  color: #53677f;
}
.borem-table td {
  background: #fff;
}
.borem-table tbody tr:last-child td {
  border-bottom: 0;
}
.borem-table tbody tr:hover td {
  background: rgba(18,105,176,.045);
}
.borem-card-body > table.borem-table,
.borem-card > table.borem-table {
  border: 1px solid #e3ebf4;
  border-radius: 12px;
  overflow: hidden;
}
.borem-wo-due-card {
  width: 150px;
}
.borem-wo-due-card strong {
  white-space: nowrap;
}

/* Company detail accordions */
.borem-location-detail-page .borem-loc-detail-section.borem-company-accordion {
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  margin-bottom: 12px;
}
.borem-location-detail-page .borem-company-accordion > .borem-loc-detail-section-head {
  cursor: pointer;
  user-select: none;
  min-height: 54px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7eef6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.borem-location-detail-page .borem-company-accordion > .borem-loc-detail-section-head:hover {
  background: #f8fbff;
}
.borem-location-detail-page .borem-company-accordion > .borem-loc-detail-section-head h3 {
  margin: 0;
}
.borem-location-detail-page .borem-company-accordion > .borem-loc-detail-section-head p {
  margin: 4px 0 0;
}
.borem-location-detail-page .borem-company-accordion .borem-company-accordion-caret {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  color: #7c93ac;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.borem-location-detail-page .borem-company-accordion.is-open .borem-company-accordion-caret {
  transform: rotate(180deg);
  color: var(--borem-app-accent, #1269b0);
  background: rgba(18,105,176,.08);
}
.borem-location-detail-page .borem-company-accordion > :not(.borem-loc-detail-section-head) {
  padding: 18px;
}
.borem-location-detail-page .borem-company-accordion > [hidden] {
  display: none;
}
.borem-location-detail-page .borem-company-accordion .borem-table-wrap,
.borem-location-detail-page .borem-company-accordion .borem-list {
  margin-top: 0;
}
@media (max-width: 780px) {
  .borem-location-detail-page .borem-company-accordion > .borem-loc-detail-section-head { padding: 12px; }
  .borem-location-detail-page .borem-company-accordion > :not(.borem-loc-detail-section-head) { padding: 12px; }
}
.borem-location-detail-page .borem-company-accordion > .borem-company-accordion-body {
  padding: 18px;
}
.borem-location-detail-page .borem-company-accordion > .borem-company-accordion-body[hidden] {
  display: none;
}
@media (max-width: 780px) {
  .borem-location-detail-page .borem-company-accordion > .borem-company-accordion-body { padding: 12px; }
}

/* v3.25.18: app-wide table/filter refinements */
.borem-card-body {
  max-width: -webkit-fill-available;
}
.borem-table-wrap,
.borem-card-body .borem-table-wrap,
.borem-card-body > table.borem-table,
.borem-card > table.borem-table,
table.borem-table,
.borem-table {
  border: 0;
}
.borem-table-wrap,
.borem-card-body .borem-table-wrap {
  box-shadow: none;
}
.borem-contact-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  width: 100%;
}
.borem-contact-filter-row .borem-loc-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 980px) {
  .borem-contact-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .borem-contact-filter-row {
    grid-template-columns: 1fr;
  }
  .borem-contact-filter-row .borem-loc-filter-actions {
    justify-content: stretch;
  }
  .borem-contact-filter-row .borem-loc-filter-actions .borem-btn {
    flex: 1 1 auto;
  }
}

/* v3.25.20: clearer label/value detail grids and destructive table actions */
.borem-meta-grid > div,
.borem-loc-meta-grid > div,
.borem-loc-rollup-grid > div,
.borem-loc-profile-grid > div,
#asset-meta > div,
#assetext-meta > div,
#assetext-services > div,
#assetext-related > div,
#borem-contract-details > div,
#borem-contract-summary > div {
  gap: 6px;
}
.borem-meta-grid > div > span,
.borem-loc-meta-grid > div > span,
.borem-loc-rollup-grid > div > span,
.borem-loc-profile-grid > div > span,
#asset-meta > div > span,
#assetext-meta > div > span,
#assetext-services > div > span,
#assetext-related > div > span,
#borem-contract-details > div > span,
#borem-contract-summary > div > span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.borem-meta-grid > div > span::after,
.borem-loc-meta-grid > div > span::after,
.borem-loc-rollup-grid > div > span::after,
.borem-loc-profile-grid > div > span::after,
#asset-meta > div > span::after,
#assetext-meta > div > span::after,
#assetext-services > div > span::after,
#assetext-related > div > span::after,
#borem-contract-details > div > span::after,
#borem-contract-summary > div > span::after {
  content: ':';
}
.borem-table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.borem-btn.borem-btn-danger {
  border-color: rgba(185, 28, 28, 0.28);
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.74);
}
.borem-btn.borem-btn-danger:hover {
  border-color: rgba(185, 28, 28, 0.48);
  background: rgba(254, 202, 202, 0.86);
}

/* v3.25.25: global borem table utilities */
.borem-table-count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--st-text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.borem-table th .borem-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.borem-table th .borem-table-sort:hover,
.borem-table th .borem-table-sort:focus-visible {
  color: var(--borem-app-primary, var(--primary, #1269b0));
  outline: none;
}
.borem-table-sort-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.borem-table-sort-icon {
  opacity: .55;
  font-size: 12px;
  line-height: 1;
  margin-left: auto;
}
.borem-table th.is-asc .borem-table-sort-icon,
.borem-table th.is-desc .borem-table-sort-icon {
  opacity: 1;
  color: var(--borem-app-primary, var(--primary, #1269b0));
}
.borem-table th.is-asc .borem-table-sort-icon::before { content: '↑'; }
.borem-table th.is-desc .borem-table-sort-icon::before { content: '↓'; }
.borem-table th.is-asc .borem-table-sort-icon,
.borem-table th.is-desc .borem-table-sort-icon { font-size: 0; }
.borem-table th.is-asc .borem-table-sort-icon::before,
.borem-table th.is-desc .borem-table-sort-icon::before { font-size: 12px; }
@media (max-width: 720px) {
  .borem-table-count { justify-content: flex-start; margin: 0 0 10px; }
}

/* v3.25.26: client-presentation polish for tables, exports, and action feedback */
.borem-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.92));
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.borem-table-tools .borem-table-count {
  margin: 0;
  justify-content: flex-start;
  white-space: nowrap;
}
.borem-table-tool-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.borem-table-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(280px, 42vw);
  margin: 0;
  color: var(--st-text-muted, #64748b);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.borem-table-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--st-text, #0f172a);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.borem-table-search input:focus {
  border-color: var(--borem-app-primary, var(--primary, #1269b0));
  box-shadow: 0 0 0 3px rgba(18, 105, 176, .12);
}
.borem-table-export[disabled] { opacity: .55; cursor: not-allowed; }
#borem-toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10050;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  pointer-events: none;
}
.borem-toast {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 16px;
  background: rgba(15, 23, 42, .94);
  color: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
  transform: translateY(10px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  pointer-events: auto;
}
.borem-toast.is-visible { transform: translateY(0); opacity: 1; }
.borem-toast-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--borem-app-primary, var(--primary, #1269b0));
}
.borem-toast-success .borem-toast-dot { background: #22c55e; }
.borem-toast-danger .borem-toast-dot { background: #ef4444; }
.borem-toast-copy { min-width: 0; font-size: 13px; font-weight: 650; line-height: 1.35; }
.borem-toast-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.borem-toast-close:hover { background: rgba(255,255,255,.20); }
@media (max-width: 720px) {
  .borem-table-tools { align-items: stretch; flex-direction: column; }
  .borem-table-tool-actions { justify-content: stretch; flex-wrap: wrap; }
  .borem-table-search { min-width: 100%; flex: 1 1 100%; }
  .borem-table-export { flex: 1 1 auto; }
  #borem-toast-host { right: 14px; bottom: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v3.26.0 — Client Presentation Release Polish
   ═══════════════════════════════════════════════════════════════════════ */
.borem-release-badge{display:inline-flex;align-items:center;gap:6px;margin-left:10px;padding:5px 9px;border-radius:999px;background:var(--st-orange-soft);color:var(--st-orange);font-size:11px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap}
.borem-command-pipeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 14px;padding:12px;background:linear-gradient(180deg,var(--st-card),var(--st-surface));border:1px solid var(--st-border);border-radius:14px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.borem-pipeline-step{display:flex;align-items:center;gap:8px;justify-content:center;min-height:44px;border:1px solid var(--st-border);border-radius:11px;background:var(--st-card);color:var(--st-text);font-size:12px;font-weight:700;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease}
.borem-pipeline-step span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:var(--st-bg);color:var(--st-muted);font-size:11px;font-weight:900}
.borem-pipeline-step:hover{transform:translateY(-1px);border-color:var(--st-orange);box-shadow:0 8px 18px rgba(15,23,42,.08)}
.borem-pipeline-step.is-done{background:rgba(16,185,129,.08);border-color:rgba(16,185,129,.24)}
.borem-pipeline-step.is-done span{background:#10b981;color:white}
.borem-pipeline-step.is-current{background:var(--st-orange-soft);border-color:var(--st-orange);color:var(--st-orange)}
.borem-pipeline-step.is-current span{background:var(--st-orange);color:white}
.borem-command-activity{margin-top:14px}
.borem-command-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.borem-command-chips span{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:12px;background:var(--st-bg);border:1px solid var(--st-border);font-size:12px;color:var(--st-muted);text-align:center}
.borem-command-chips strong{font-size:22px;line-height:1;color:var(--st-text)}
.borem-import-preflight{margin:12px 0;padding:12px 14px;border-radius:12px;background:var(--st-orange-soft);border:1px solid var(--st-orange-mid);font-size:12px;color:var(--st-text)}
.borem-import-preflight strong{display:block;margin-bottom:4px;color:var(--st-orange);font-size:13px}
.borem-import-preflight ul{margin:7px 0 0 18px;padding:0}.borem-import-preflight li{margin:3px 0}.borem-preflight-ok{margin-top:4px;color:#047857;font-weight:700}
.borem-empty-state{padding:32px;text-align:center;border:1px dashed var(--st-border);border-radius:14px;background:var(--st-bg)}.borem-empty-state h3{margin:0 0 6px}.borem-empty-state p{margin:0;color:var(--st-muted)}
.borem-search-dropdown{min-width:340px}.gs-result{position:relative}.gs-result:after{content:'Open';opacity:0;font-size:10px;font-weight:800;color:var(--st-orange);text-transform:uppercase;letter-spacing:.06em}.gs-result:hover:after{opacity:1}
@media (max-width:900px){.borem-command-pipeline{grid-template-columns:repeat(2,minmax(0,1fr))}.borem-command-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.borem-release-badge{display:none}.borem-search-dropdown{min-width:280px}}

/* ═══════════════════════════════════════════════════════════════════════
   v3.26.1 — My Company, roles, and Service Line modal polish
   ═══════════════════════════════════════════════════════════════════════ */
.borem-account-page{display:flex;flex-direction:column;gap:14px}.borem-account-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px;background:linear-gradient(135deg,var(--st-card),var(--st-surface))}.borem-account-hero-main h2{margin:4px 0 6px;font-size:28px;letter-spacing:-.03em}.borem-kicker{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;background:var(--st-orange-soft);color:var(--st-orange);font-weight:850;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.borem-account-hero-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.borem-account-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:start}.borem-account-profile-card .borem-card-body{padding:18px}.borem-account-savebar{justify-content:space-between;border-top:1px solid var(--st-border);background:var(--st-bg);border-radius:0 0 14px 14px}.borem-account-side{display:flex;flex-direction:column;gap:14px}.borem-account-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.borem-account-stats div{border:1px solid var(--st-border);border-radius:12px;background:var(--st-bg);padding:12px;text-align:center}.borem-account-stats strong{display:block;font-size:22px;line-height:1;color:var(--st-text)}.borem-account-stats span{display:block;margin-top:4px;color:var(--st-text-muted);font-size:12px;font-weight:650}.borem-account-links{display:flex;flex-direction:column;gap:6px}.borem-account-links a{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--st-border);border-radius:11px;padding:10px 12px;text-decoration:none;color:var(--st-text);font-weight:700;background:var(--st-bg)}.borem-account-links a:hover{border-color:var(--st-orange);background:var(--st-orange-soft);color:var(--st-orange)}.borem-readiness-meter{height:9px;border-radius:999px;background:var(--st-bg);border:1px solid var(--st-border);overflow:hidden;margin-bottom:8px}.borem-readiness-meter span{display:block;height:100%;background:var(--st-orange);border-radius:999px;transition:width .2s ease}.borem-readiness-list{display:flex;flex-direction:column;gap:6px}.borem-readiness-list div{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:650;color:var(--st-text-muted)}.borem-readiness-list div span{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:var(--st-bg);border:1px solid var(--st-border);font-size:11px}.borem-readiness-list div.is-done{color:#047857}.borem-readiness-list div.is-done span{background:#10b981;color:#fff;border-color:#10b981}.borem-role-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--st-border)}.borem-error-state{border-color:rgba(239,68,68,.25);background:rgba(239,68,68,.05)}.borem-service-line-modal .borem-modal-dialog{width:min(760px,calc(100vw - 28px));max-height:92vh;overflow:auto}.borem-service-line-form label,.borem-account-profile-card label{font-size:12px;font-weight:800;color:var(--st-text-muted);margin-bottom:5px;display:block}.borem-release-badge{text-transform:none;letter-spacing:0;font-size:12px;padding:4px 8px}
@media (max-width: 1000px){.borem-account-grid{grid-template-columns:1fr}.borem-account-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.borem-account-side .borem-card:last-child{grid-column:1/-1}}
@media (max-width: 720px){.borem-account-hero{align-items:flex-start;flex-direction:column}.borem-account-hero-main h2{font-size:23px}.borem-account-side{display:flex}.borem-account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.borem-role-row{align-items:flex-start;flex-direction:column}.borem-role-row .borem-btn{width:100%}}

/* v3.26.2 — location workflow, history, and tech mobile polish */
.borem-inline-check { display:flex; align-items:center; gap:8px; margin-top:8px; font-size:13px; color:var(--st-text); }
.borem-inline-check input { width:auto; }
.borem-inline-help { padding:10px 12px; border:1px solid var(--st-orange-mid); background:var(--st-orange-soft); border-radius:12px; font-size:13px; color:var(--st-text); }
.borem-btn-contact { border-color:var(--st-orange-mid); background:var(--st-orange-soft); color:var(--st-orange); font-weight:800; }
.borem-contact-popover { z-index:100000; display:grid; place-items:center; padding:18px; }
.borem-contact-popover-card { width:min(420px, calc(100vw - 32px)); padding:22px; border-radius:22px; }
.borem-contact-pop { display:grid; gap:12px; }
.borem-contact-pop h3 { margin:0; font-size:22px; letter-spacing:-.02em; }
.borem-contact-pop div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--st-border); }
.borem-contact-pop div:last-child { border-bottom:0; }
.borem-contact-pop span { color:var(--st-text-muted); font-weight:700; }
.borem-contact-pop strong { text-align:right; overflow-wrap:anywhere; }
.borem-timeline-filter { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.borem-timeline-category { display:inline-flex; margin-left:6px; padding:2px 7px; border-radius:999px; background:var(--st-bg); color:var(--st-text-muted); font-size:10px; text-transform:uppercase; letter-spacing:.05em; }
.borem-timeline-changes { margin-top:8px; padding:8px 10px; border:1px solid var(--st-border); border-radius:12px; background:var(--st-bg); font-size:12px; }
.borem-timeline-changes summary { cursor:pointer; font-weight:800; color:var(--st-text); }
.borem-timeline-changes div { margin-top:6px; display:flex; gap:6px; flex-wrap:wrap; }
.borem-timeline-changes em { color:var(--st-text-muted); font-style:normal; text-decoration:line-through; }

@media (max-width: 900px) {
  .borem-tech-day-card { padding:10px; overflow:hidden; }
  .borem-tech-day-shell { min-height:auto; width:100%; max-width:100%; gap:10px; display:grid; }
  .borem-tech-day-progress { max-width:100%; border:0; overflow:hidden; }
  .borem-tech-day-main { max-width:100%; min-height:auto; padding:18px; border-radius:18px; box-sizing:border-box; overflow:hidden; }
  .borem-tech-day-hero { min-height:auto; gap:12px; }
  .borem-tech-day-prompt h3 { font-size:clamp(28px, 7vw, 42px); line-height:1.02; }
  .borem-tech-day-actions#techday-primary-actions .borem-btn { width:100%; justify-content:center; min-height:54px; }
  .borem-tech-day-utility .borem-btn, .borem-tech-day-job .borem-btn { width:100%; justify-content:center; }
}
@media (max-width: 520px) {
  .borem-tech-day-card { margin-left:-4px; margin-right:-4px; }
  .borem-tech-day-main { padding:14px; border-radius:16px; }
  .borem-tech-day-banner { width:100%; justify-content:center; }
  .borem-tech-day-actions { width:100%; }
  .borem-loc-page-actions { width:100%; justify-content:stretch; display:grid; grid-template-columns:1fr; }
  .borem-loc-page-actions .borem-btn { width:100%; justify-content:center; }
}
#locd-title + .borem-btn-contact { margin-top:8px; justify-self:start; }

/* v3.26.3 — Location create company and address autocomplete polish */
.borem-results-create {
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(37,99,235,.02));
  color: var(--borem-app-primary, #2563eb);
}
.borem-results-create strong { display:inline-flex; align-items:center; gap:6px; }
.borem-results-empty { padding: 9px 11px; }
.borem-create-company-panel {
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(37,99,235,.05), rgba(255,255,255,.96));
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
}
.borem-create-company-panel-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.borem-create-company-panel-head strong { display:block; font-size:15px; color:var(--st-text, #0f172a); }
.borem-create-company-panel-head span { display:block; margin-top:2px; font-size:12px; color:var(--st-muted, #64748b); }
.borem-existing-company-snapshot { grid-column: 1 / -1; }
.borem-google-address[data-borem-google-unavailable="1"] {
  background-image: linear-gradient(90deg, rgba(250,204,21,.10), rgba(250,204,21,0));
}
.pac-container { z-index: 2147483647; border-radius: 12px; box-shadow: 0 18px 48px rgba(15,23,42,.16); border: 1px solid rgba(15,23,42,.08); }
@media (max-width: 720px) {
  .borem-create-company-panel { padding: 12px; border-radius: 14px; }
  .borem-create-company-panel-head { flex-direction:column; }
  .borem-create-company-panel-head .borem-btn { width:100%; justify-content:center; }
}

.borem-google-address-note {
  display:none;
  margin:6px 0 0;
  font-size:12px;
  line-height:1.35;
  color:var(--st-muted, #64748b);
}
.borem-google-address[data-borem-google-unavailable="1"] + .borem-google-address-note,
.borem-google-address-note:not([hidden]) {
  display:block;
}

/* ================================================================
   v3.26.6 — Mobile viewport containment and true table scrolling
   ================================================================ */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
.borem-app,
.borem-main,
.borem-content,
.borem-card,
.borem-card-body,
.borem-topbar,
.borem-mobile-nav,
.borem-mobile-menu-sheet {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}
.borem-main,
.borem-content,
.borem-card-body {
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  .borem-main,
  .borem-content,
  .borem-card-body { overflow-x: hidden; }
}

@media (max-width: 979px) {
  .borem-topbar {
    width: 100%;
    max-width: 100vw;
    min-height: 52px;
    height: auto;
    padding: 8px 10px;
    gap: 8px;
    overflow: hidden;
  }
  .borem-topbar-left {
    flex: 1 1 auto;
    min-width: 0;
  }
  .borem-page-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .borem-top-actions {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 62vw;
    justify-content: flex-end;
    overflow: hidden;
  }
  .borem-global-search,
  #borem-global-search-wrap {
    flex: 1 1 160px;
    min-width: 0;
    max-width: min(280px, 42vw);
  }
  #borem-global-search {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .borem-top-actions .borem-btn {
    padding-inline: 9px;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 640px) {
  .borem-top-actions { max-width: 48vw; }
  .borem-global-search,
  #borem-global-search-wrap { max-width: 34vw; }
  .borem-top-actions #borem-edit-widgets,
  .borem-top-actions a[href*="page=borem-tools"] { display: none; }
}
@media (max-width: 480px) {
  .borem-topbar { padding-inline: 8px; }
  .borem-top-actions { gap: 6px; max-width: 104px; }
  .borem-global-search,
  #borem-global-search-wrap { display: none; }
}

@media (max-width: 979px) {
  .borem-mobile-nav {
    width: 100%;
    max-width: 100vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 2px;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    overflow: hidden;
  }
  .borem-mnav-item {
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px;
    gap: 3px;
    overflow: hidden;
  }
  .borem-mnav-ico,
  .borem-mnav-ico .borem-ico {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
  .borem-mnav-text {
    max-width: 100%;
    font-size: clamp(8px, 2.35vw, 10px);
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .borem-mnav-text { display: none; }
  .borem-mnav-item { min-height: 44px; }
  .borem-main { padding-bottom: 58px; }
}

/* Tables are the only mobile elements allowed to scroll horizontally. Keep
   headers and body aligned by preserving native table layout on all sizes. */
.borem-table-wrap,
.borem-card-body .borem-table-wrap,
.borem-card > .borem-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 700px) {
  .borem-table,
  table.borem-table,
  .borem-card-body .borem-table,
  .borem-card > .borem-table {
    display: table;
    width: max-content;
    min-width: 100%;
    max-width: none;
    table-layout: auto;
    overflow: visible;
    border-collapse: separate;
    border-spacing: 0;
  }
  .borem-table thead,
  .borem-card-body .borem-table thead,
  #borem-loc-table > thead {
    display: table-header-group;
  }
  .borem-table tbody,
  .borem-card-body .borem-table tbody,
  #borem-loc-table > tbody {
    display: table-row-group;
  }
  .borem-table tr,
  .borem-table tbody tr,
  #borem-loc-table > tbody > tr {
    display: table-row;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .borem-table th,
  .borem-table td,
  .borem-table tbody td,
  #borem-loc-table > tbody > tr > td {
    display: table-cell;
    padding: 9px 10px;
    white-space: nowrap;
    vertical-align: middle;
    border-bottom: 1px solid rgba(224,228,232,.7);
  }
  .borem-table td::before,
  .borem-table tbody td::before,
  #borem-loc-table > tbody > tr > td::before {
    content: none;
    display: none;
  }
  .borem-table td a,
  .borem-table td strong,
  .borem-table td span {
    max-width: 280px;
  }
  #borem-loc-table td:nth-child(1),
  #borem-loc-table th:nth-child(1) { min-width: 190px; }
  #borem-loc-table td:nth-child(2),
  #borem-loc-table th:nth-child(2) { min-width: 220px; }
  #borem-loc-table td:nth-child(3),
  #borem-loc-table th:nth-child(3) { min-width: 190px; }
  #borem-loc-table td:nth-child(4),
  #borem-loc-table th:nth-child(4) { min-width: 120px; }
}

/* ================================================================
   v3.26.7 — Mobile menu theme polish and My Day compact field layout
   ================================================================ */
.borem-mobile-menu-sheet {
  padding-top: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.borem-mobile-menu-head {
  background: var(--st-surface, #fff);
  color: var(--st-text, #1c2733);
  margin: 0 -12px 12px;
  padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  border-bottom: 1px solid var(--st-border, #e0e4e8);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
[data-borem-theme="dark"] .borem-mobile-menu-head {
  background: var(--st-surface, #16202b);
  color: var(--st-text, #e8edf2);
  border-bottom-color: var(--st-border, #2b3a49);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .32);
}

@media (max-width: 979px) {
  .borem-tech-day-card,
  .borem-card.borem-tech-day-card {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding: 6px;
    border-radius: 14px;
  }
  .borem-tech-day-shell {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 0;
  }
  .borem-tech-day-progress {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  .borem-tech-day-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px;
    border-radius: 14px;
    min-height: auto;
  }
  .borem-tech-day-hero,
  .borem-tech-day-section,
  .borem-tech-day-job,
  .borem-tech-day-log,
  .borem-tech-day-note,
  .borem-tech-day-jobs,
  .borem-tech-day-utility {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-inline: 0;
  }
  .borem-tech-day-hero { gap: 8px; }
  .borem-tech-day-prompt { gap: 6px; }
  .borem-tech-day-prompt h3 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.04;
  }
  .borem-tech-day-prompt p {
    font-size: 13px;
    line-height: 1.4;
  }
  .borem-tech-day-actions,
  .borem-tech-day-actions#techday-primary-actions {
    width: 100%;
    gap: 7px;
  }
  .borem-tech-day-actions#techday-primary-actions .borem-btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 12px;
    border-radius: 12px;
  }
}
@media (max-width: 520px) {
  .borem-content:has(.borem-tech-day-shell),
  .borem-card-body:has(.borem-tech-day-shell) {
    padding-left: 6px;
    padding-right: 6px;
  }
  .borem-tech-day-card,
  .borem-card.borem-tech-day-card {
    margin-left: 0;
    margin-right: 0;
    padding: 4px;
    border-radius: 12px;
  }
  .borem-tech-day-main {
    padding: 8px;
    border-radius: 12px;
    box-shadow: none;
  }
  .borem-tech-day-banner {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* v3.26.9 — guided location creation + Command Center */
.borem-loc-create-grid{gap:18px}
.borem-loc-step{position:relative;border:1px solid var(--st-border);background:var(--st-card);border-radius:18px;padding:18px;box-shadow:0 12px 32px rgba(15,23,42,.06)}
.borem-loc-step-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--st-border)}
.borem-loc-step-head h4{margin:0 0 4px;font-size:17px;line-height:1.2}
.borem-loc-step-head p{margin:0;color:var(--st-muted);font-size:13px;line-height:1.35}
.borem-loc-step-badge{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:999px;background:var(--st-orange-soft);color:var(--st-orange);font-weight:800;border:1px solid var(--st-orange-mid)}
.borem-command-center{min-height:calc(100vh - 120px);display:flex;flex-direction:column;align-items:center;gap:22px;padding:clamp(24px,6vh,72px) 18px 36px;background:radial-gradient(circle at 50% 0%,var(--st-orange-soft),transparent 38%)}
.borem-command-hero{text-align:center;width:min(900px,100%);margin-top:clamp(12px,5vh,48px)}
.borem-command-kicker{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;color:var(--st-orange);margin-bottom:8px}
.borem-command-hero h2{font-size:clamp(32px,5vw,56px);line-height:1.02;margin:0 0 10px;color:var(--st-text)}
.borem-command-hero p{margin:0 auto 22px;max-width:680px;color:var(--st-muted);font-size:clamp(15px,2vw,18px);line-height:1.45}
.borem-command-search-wrap{position:relative;width:min(760px,100%);margin:0 auto;background:var(--st-card);border:1px solid var(--st-border);box-shadow:0 22px 55px rgba(15,23,42,.14);border-radius:22px;display:flex;align-items:center;gap:10px;padding:0 18px}
.borem-command-search-wrap .borem-search-ico{width:22px;height:22px;color:var(--st-muted);flex:0 0 auto}
#borem-command-search{width:100%;border:0;outline:0;background:transparent;box-shadow:none;font-size:18px;min-height:64px;color:var(--st-text)}
.borem-command-results{left:0;right:0;top:calc(100% + 10px);width:auto;text-align:left;z-index:60}
.borem-command-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;width:min(1120px,100%)}
.borem-command-logo{display:block;width:auto;max-width:150px;max-height:80px;object-fit:contain;margin:0 auto 16px}
.borem-command-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;text-decoration:none;color:var(--st-text);background:var(--st-card);border:1px solid var(--st-border);border-radius:18px;padding:20px 16px;min-height:142px;box-shadow:0 10px 28px rgba(15,23,42,.06);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.borem-command-card:hover,.borem-command-card:focus,.borem-command-card:active{text-decoration:none;transform:translateY(-2px);box-shadow:0 16px 36px rgba(15,23,42,.10);border-color:var(--st-orange-mid)}
.borem-command-card span{font-size:28px;line-height:1}.borem-command-card strong{font-size:15px;line-height:1.25}.borem-command-card small{color:var(--st-muted);line-height:1.35;max-width:150px}
.borem-command-widget-panel{width:min(1120px,100%);background:var(--st-card);border:1px solid var(--st-border);border-radius:20px;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.05)}
.borem-command-widget-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.borem-command-widget-head h3{margin:0;font-size:18px}
.borem-command-widget-config{display:flex;gap:12px;flex-wrap:wrap;background:var(--st-surface);border:1px solid var(--st-border);border-radius:14px;padding:10px;margin-bottom:14px}.borem-command-widget-config label{display:flex;align-items:center;gap:7px;font-weight:700;font-size:13px;color:var(--st-text)}
.borem-command-widgets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.borem-command-widget{border:1px dashed var(--st-border);border-radius:16px;padding:15px;background:var(--st-surface)}.borem-command-widget strong{display:block;margin-bottom:7px}.borem-command-widget p{margin:0 0 6px}.borem-command-widget small{color:var(--st-muted)}
@media (max-width:1000px){.borem-command-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.borem-command-widgets{grid-template-columns:1fr}}
@media (max-width:640px){.borem-command-center{padding:18px 10px 28px;min-height:calc(100vh - 84px)}.borem-command-hero{margin-top:18px}.borem-command-search-wrap{border-radius:16px;padding:0 12px}#borem-command-search{min-height:54px;font-size:15px}.borem-command-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.borem-command-card{padding:13px;border-radius:14px}.borem-command-widget-panel{padding:12px;border-radius:16px}.borem-command-widget-head{align-items:flex-start;flex-direction:column}.borem-loc-step{padding:12px;border-radius:14px}.borem-loc-step-head{gap:10px}.borem-loc-step-badge{width:30px;height:30px;flex-basis:30px}}

/* v3.26.10 — Command Center workspace widget layout + modal workflow polish */
.borem-command-analytics-widgets{margin-top:16px;width:100%}
.borem-command-analytics-widgets .borem-home-grid{width:100%;margin-top:0}
.borem-command-modal .borem-record-dialog{width:min(1180px,calc(100vw - 32px));height:min(880px,calc(100vh - 32px));max-height:calc(100vh - 32px)}
.borem-command-modal iframe{min-height:0}
@media (max-width:720px){
  .borem-command-modal .borem-record-dialog{width:100vw;height:100vh;max-height:100vh;border-radius:0}
  .borem-command-modal .borem-modal-head{padding:10px 12px;gap:8px}
  .borem-command-modal .borem-modal-head h3{font-size:16px}
  .borem-command-analytics-widgets{margin-top:12px}
}


/* v3.26.11 — Command Center card/modal refinement */
.borem-command-modal .borem-modal-head{display:flex;align-items:center;justify-content:space-between}
.borem-command-modal .borem-modal-actions{display:flex;align-items:center;gap:8px}
.borem-command-modal .borem-icon-btn{text-decoration:none}
.borem-command-modal.is-expanded .borem-record-dialog{width:100vw;height:100vh;max-height:100vh;border-radius:0}
.borem-command-modal.is-expanded iframe{height:calc(100vh - 58px)}
@media (max-width:640px){.borem-command-logo{max-width:120px;max-height:64px;margin-bottom:12px}.borem-command-card{min-height:118px;padding:14px 10px}.borem-command-card small{max-width:130px}.borem-command-modal .borem-modal-actions{gap:6px}.borem-command-modal .borem-btn-sm{padding:7px 9px;font-size:12px}.borem-command-modal.is-expanded iframe{height:calc(100vh - 52px)}}

/* v3.27 guided workflows */
.borem-location-create-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:9998;backdrop-filter:blur(3px)}
.borem-location-create-modal{position:fixed;z-index:9999;inset:24px;max-width:1120px;margin:auto;overflow:auto;background:var(--borem-card-bg,#fff);border-radius:24px;box-shadow:0 24px 80px rgba(15,23,42,.32);padding:24px}
.borem-location-create-modal[hidden],.borem-location-create-backdrop[hidden]{display:none}
body.borem-location-modal-open{overflow:hidden}.borem-loc-create-grid{gap:16px}.borem-loc-step{border:1px solid rgba(148,163,184,.32);border-radius:18px;background:rgba(255,255,255,.72)}
.borem-loc-step-head{align-items:flex-start}.borem-loc-step-badge{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;background:var(--st-orange,#2563eb);color:#fff;font-weight:800;flex:0 0 32px}.borem-inline-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.borem-extra-contacts{display:grid;gap:12px;margin-top:12px}.borem-extra-contact-card{border:1px dashed rgba(148,163,184,.6);border-radius:16px;padding:14px;background:rgba(248,250,252,.86)}.borem-extra-contact-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.borem-alert-warning{padding:12px 14px;border-radius:14px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}.borem-location-success{position:fixed;inset:0;z-index:10000;background:rgba(15,23,42,.55);display:grid;place-items:center;padding:20px}.borem-location-success[hidden]{display:none}.borem-location-success-card{max-width:560px;width:min(560px,100%);background:var(--borem-card-bg,#fff);border-radius:24px;padding:28px;box-shadow:0 24px 80px rgba(15,23,42,.32)}.borem-success-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.borem-job-create-simple{max-width:920px;background:rgba(248,250,252,.85);border:1px solid rgba(148,163,184,.28);border-radius:20px;padding:18px}.borem-service-extra{border:1px solid rgba(148,163,184,.32);border-radius:16px;padding:14px;background:#fff}.borem-radio-row{display:flex;gap:16px;flex-wrap:wrap}.borem-schedule-preference{background:rgba(59,130,246,.08);border:1px solid rgba(59,130,246,.18);border-radius:14px;padding:12px}.borem-unscheduled-panel{position:fixed;right:0;top:0;height:100vh;width:max(30vw,360px);max-width:94vw;background:var(--borem-card-bg,#fff);z-index:10020;box-shadow:-24px 0 60px rgba(15,23,42,.25);display:flex;flex-direction:column;border-left:1px solid rgba(148,163,184,.32)}.borem-unscheduled-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid rgba(148,163,184,.25)}.borem-unscheduled-head strong{display:block;font-size:18px}.borem-unscheduled-head span{display:block;color:var(--borem-muted,#64748b);font-size:13px}.borem-unscheduled-list{overflow:auto;padding:12px;display:grid;gap:10px}.borem-unscheduled-job{display:block;text-decoration:none;color:inherit;border:1px solid rgba(148,163,184,.28);border-radius:14px;padding:12px;background:rgba(248,250,252,.72)}.borem-unscheduled-job strong,.borem-unscheduled-job span{display:block}.borem-unscheduled-job span{font-size:12px;color:var(--borem-muted,#64748b);margin-top:3px}.borem-unscheduled-job p{margin:6px 0 0;font-size:13px;color:var(--borem-muted,#64748b)}
[data-borem-theme="dark"] .borem-location-create-modal,[data-borem-theme="dark"] .borem-location-success-card,[data-borem-theme="dark"] .borem-unscheduled-panel{background:#111827;color:#f8fafc}[data-borem-theme="dark"] .borem-loc-step,[data-borem-theme="dark"] .borem-extra-contact-card,[data-borem-theme="dark"] .borem-job-create-simple,[data-borem-theme="dark"] .borem-service-extra,[data-borem-theme="dark"] .borem-unscheduled-job{background:#0f172a;border-color:rgba(148,163,184,.28)}
@media(max-width:700px){.borem-location-create-modal{inset:0;border-radius:0;padding:14px}.borem-success-actions{grid-template-columns:1fr}.borem-unscheduled-panel{width:100vw;max-width:100vw}.borem-job-create-simple{padding:12px}.borem-loc-step{padding:12px}}

/* v3.27.1 — Job Detail scheduling UX polish */
#wo-detail-page .st-job-header-actions{align-items:center;justify-content:flex-end;}
#wo-detail-page #wo-action-bar .borem-btn.primary{box-shadow:0 10px 22px rgba(45,127,249,.18);}
#wo-detail-page #wo-photo-row{justify-content:flex-end;margin-top:10px;}
#wo-detail-page .st-job-meta-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:18px 24px;}
#wo-detail-page .st-job-overview-meta-item .item-label{text-transform:uppercase;letter-spacing:.045em;font-size:11px;color:var(--st-text-muted);font-weight:800;}
#wo-detail-page .st-job-overview-meta-item .item-value{font-size:14px;line-height:1.45;color:var(--st-text);}
#wo-appointments-body .wo-appointment-card{border:1px solid var(--st-border);border-radius:16px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--st-surface);box-shadow:0 8px 18px rgba(15,23,42,.04);}
#wo-appointments-body .wo-appointment-card + .wo-appointment-card{margin-top:10px;}
#wo-appointments-body .wo-appt-time{font-weight:750;color:var(--st-text);margin-top:4px;}
.borem-appointment-modal-v3271 .borem-modal-dialog,.borem-job-edit-modal-v3271 .borem-modal-dialog{max-width:min(760px,calc(100vw - 24px));width:100%;}
.borem-job-edit-modal-v3271 .borem-modal-dialog-wide{max-width:min(900px,calc(100vw - 24px));}
.borem-job-edit-modal-v3271 label,.borem-appointment-modal-v3271 label{font-weight:700;font-size:12px;color:var(--st-text);display:block;margin-bottom:6px;}
.borem-job-edit-modal-v3271 .borem-modal-body{gap:14px;}
@media (max-width:720px){
  #wo-detail-page .st-job-header-top{gap:14px;}
  #wo-detail-page .st-job-header-actions,#wo-detail-page #wo-photo-row{justify-content:flex-start;width:100%;}
  #wo-detail-page .st-job-meta-grid{grid-template-columns:1fr;gap:12px;}
  #wo-appointments-body .wo-appointment-card{align-items:flex-start;flex-direction:column;}
  #wo-appointments-body .wo-appt-actions{width:100%;display:flex;gap:8px;}
  #wo-appointments-body .wo-appt-actions .borem-btn{flex:1;}
}

/* v3.27.3 — Job create modal and focused Job Detail cleanup */
.borem-command-activity{display:none}
#borem-wo-create-backdrop{position:fixed;inset:0;z-index:10040;background:rgba(15,23,42,.52);backdrop-filter:blur(2px)}
#borem-wo-create-panel.borem-wo-create-modal{position:fixed;z-index:10041;inset:clamp(16px,4vh,42px) auto auto 50%;transform:translateX(-50%);width:min(960px,calc(100vw - 28px));max-height:calc(100vh - 32px);overflow:auto;background:var(--borem-card-bg,#fff);border:1px solid rgba(148,163,184,.28);border-radius:24px;box-shadow:0 28px 90px rgba(15,23,42,.35);padding:22px}
#borem-wo-create-panel.borem-wo-create-modal h3{margin:0 44px 16px 0;font-size:22px;font-weight:800;color:var(--borem-text,#0f172a)}
#borem-wo-create-panel.borem-wo-create-modal .borem-job-create-simple{max-width:none;background:transparent;border:0;border-radius:0;padding:0}
.borem-wo-create-close{position:absolute;right:16px;top:14px;z-index:2}
body.borem-wo-create-open{overflow:hidden}
@media(max-width:720px){#borem-wo-create-panel.borem-wo-create-modal{inset:8px auto auto 50%;width:calc(100vw - 16px);max-height:calc(100vh - 16px);border-radius:18px;padding:16px}.borem-success-actions{grid-template-columns:1fr}}
[data-borem-theme="dark"] #borem-wo-create-panel.borem-wo-create-modal{background:#111827;color:#f8fafc;border-color:rgba(148,163,184,.28)}

/* v3.27.8 service intake + asset deficiency polish */
.borem-service-repeater-row{border:1px solid var(--borem-border,#dbe3ef);border-radius:14px;padding:14px;margin:10px 0;background:var(--borem-surface,#fff)}
.borem-service-row-head{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;margin-bottom:12px}
.borem-service-extra h4{margin:0 0 10px;font-size:15px}
.borem-radio-row{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 12px}
.borem-alert-warning .borem-check-inline{font-weight:600;color:inherit}
.st-badge.soft-danger{background:#fee2e2;color:#991b1b;border-color:#fecaca}
@media(max-width:720px){.borem-service-row-head{grid-template-columns:1fr}.borem-radio-row{gap:8px}}

/* v3.27.10 — simplified technician asset completion flow */
.borem-tech-asset-punchlist td:first-child,
.borem-tech-asset-punchlist th:first-child{width:92px;text-align:center;font-weight:900;font-size:18px}
.borem-tech-asset-punchlist tr.is-complete{opacity:.68;background:rgba(16,185,129,.08)}
.borem-tech-asset-wizard{display:grid;gap:14px}
.borem-tech-asset-wizard label{display:grid;gap:8px;font-weight:800}
.borem-tech-asset-wizard input,.borem-tech-asset-wizard select{width:100%;min-height:46px;border:1px solid var(--st-border,#dbe3ef);border-radius:12px;padding:10px 12px;background:#fff;color:inherit}
.borem-signature-canvas{width:100%;min-height:140px;border:2px solid var(--st-border,#dbe3ef);border-radius:14px;background:#fff;touch-action:none;display:block}
.borem-tech-work-card .borem-field-full{display:grid;gap:8px;margin-bottom:12px;font-weight:800}
.borem-tech-work-card .borem-field-full input{min-height:44px;border:1px solid var(--st-border,#dbe3ef);border-radius:12px;padding:10px 12px}

/* v3.27.11 — DOT check upload workflow */
.borem-tech-dot-form {
  width: 100%;
  max-width: 520px;
  padding: 12px;
  margin: 0 0 10px;
  border: 1px solid var(--st-border, #e5e7eb);
  border-radius: 14px;
  background: var(--st-surface, #fff);
}
.borem-tech-dot-form label { display: grid; gap: 8px; font-weight: 700; }
.borem-tech-dot-form input[type="file"] { width: 100%; }

/* v3.27.14 — Technician My Day Step 4 simplification */
.borem-tech-day-banner[hidden]{display:none}
.borem-tech-day-main[data-techday-stage="job-brief"] #techday-primary-actions{
  justify-content:center;
  width:100%;
  margin-top:10px;
}
.borem-tech-day-main[data-techday-stage="job-brief"] #techday-primary-actions .borem-btn.primary{
  min-width:min(320px,100%);
  min-height:56px;
  border-radius:999px;
  font-size:17px;
  font-weight:900;
  box-shadow:0 16px 36px rgba(37,99,235,.22);
}
.borem-tech-step4-head{align-items:flex-start;gap:14px}
.borem-tech-step4-head h4{margin:0 0 6px;font-size:clamp(20px,3vw,28px);line-height:1.1}
.borem-tech-step4-subline{font-weight:800;color:var(--st-muted,#64748b);font-size:13px}
.borem-tech-step4-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:14px;border:1px solid var(--st-border,#dbe3ef);border-radius:18px;background:var(--st-surface,#f8fafc);padding:16px;margin:12px 0}
.borem-tech-step4-primary span,.borem-tech-step4-facts span{display:block;text-transform:uppercase;letter-spacing:.06em;font-size:11px;font-weight:900;color:var(--st-muted,#64748b);margin-bottom:3px}
.borem-tech-step4-primary strong{display:block;font-size:19px;line-height:1.2;color:var(--st-text,#0f172a)}
.borem-tech-step4-primary p{margin:7px 0 0;color:var(--st-muted,#64748b);line-height:1.45}
.borem-tech-step4-facts{display:grid;grid-template-columns:1fr;gap:10px}
.borem-tech-step4-facts div{border:1px solid rgba(148,163,184,.28);border-radius:13px;background:var(--st-card,#fff);padding:10px 12px}
.borem-tech-step4-facts strong{display:block;color:var(--st-text,#0f172a);font-size:14px;line-height:1.25}
.borem-tech-step4-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;margin-top:14px}
.borem-tech-step4-actions .borem-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;min-height:46px;white-space:normal;line-height:1.15}
.borem-tech-step4-actions .borem-btn span{font-size:16px;line-height:1}
@media(max-width:820px){
  .borem-tech-step4-card{grid-template-columns:1fr;padding:14px}
  .borem-tech-step4-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .borem-tech-step4-actions{grid-template-columns:1fr}
  .borem-tech-day-main[data-techday-stage="job-brief"] #techday-primary-actions .borem-btn.primary{width:100%}
}

/* v3.27.15 — Technician My Day Step 5 En Route simplification */
.borem-tech-day-main[data-techday-stage="enroute"] #techday-primary-actions{
  justify-content:center;
  width:100%;
  margin-top:12px;
}
.borem-tech-day-main[data-techday-stage="enroute"] #techday-primary-actions .borem-btn.primary{
  min-width:min(340px,100%);
  min-height:58px;
  border-radius:999px;
  font-size:17px;
  font-weight:900;
  box-shadow:0 16px 36px rgba(37,99,235,.22);
}
.borem-tech-day-main[data-techday-stage="enroute"] #techday-prompt-title,
.borem-tech-day-main[data-techday-stage="enroute"] #techday-prompt-body{
  text-align:center;
}
.borem-tech-step5-head h4{margin-top:2px}
.borem-tech-step5-card{align-items:stretch}
.borem-tech-step5-facts div:first-child{
  border-color:rgba(37,99,235,.25);
  background:linear-gradient(180deg,rgba(37,99,235,.08),rgba(255,255,255,.86));
}
.borem-tech-eta{font-size:18px;color:var(--st-text,#0f172a)}
.borem-tech-eta.is-loading{color:var(--st-muted,#64748b)}
.borem-tech-eta.is-ready{color:var(--st-orange,#f05a28)}
@media(max-width:520px){
  .borem-tech-day-main[data-techday-stage="enroute"] #techday-primary-actions .borem-btn.primary{width:100%}
}

/* v3.27.16 — Technician My Day Step 5/6 focused field screens */
.borem-tech-day-main[data-techday-stage="onsite"] #techday-primary-actions{
  justify-content:center;
  width:100%;
  margin-top:12px;
}
.borem-tech-day-main[data-techday-stage="onsite"] #techday-primary-actions .borem-btn.primary{
  min-width:min(340px,100%);
  min-height:58px;
  border-radius:999px;
  font-size:17px;
  font-weight:900;
  box-shadow:0 16px 36px rgba(37,99,235,.22);
}
.borem-tech-day-main[data-techday-stage="onsite"] #techday-prompt-title,
.borem-tech-day-main[data-techday-stage="onsite"] #techday-prompt-body{
  text-align:center;
}
.borem-tech-appointment-special{
  border-left:4px solid var(--st-orange,#f05a28);
  background:rgba(240,90,40,.06);
}
.borem-tech-appointment-special h5{
  color:var(--st-text,#0f172a);
}
@media(max-width:520px){
  .borem-tech-day-main[data-techday-stage="onsite"] #techday-primary-actions .borem-btn.primary{width:100%}
}

/* v3.27.18 — asset edit upload guard + My Day work modal/tab polish */
#techday-modal-root[hidden]{display:none}
#techday-modal-root{position:fixed;inset:0;z-index:10090;display:grid;place-items:center;padding:18px}
.borem-tech-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.borem-tech-modal-sheet{position:relative;z-index:1;width:min(760px,calc(100vw - 24px));max-height:calc(100vh - 28px);overflow:auto;background:var(--borem-card-bg,#fff);border:1px solid rgba(148,163,184,.32);border-radius:24px;box-shadow:0 28px 90px rgba(15,23,42,.34);color:var(--borem-text,#0f172a)}
.borem-tech-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid rgba(148,163,184,.25)}
.borem-tech-modal-head h3{margin:2px 0 0;font-size:20px;line-height:1.2}.borem-tech-modal-body{padding:20px}.borem-tech-modal-open{overflow:hidden}
.borem-tech-work-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.borem-tech-work-tab{min-height:74px;border:1px solid var(--st-border,#dbe3ef);border-radius:18px;background:var(--st-surface,#fff);display:grid;place-items:center;gap:3px;padding:10px;font-weight:850;box-shadow:0 8px 20px rgba(15,23,42,.045)}
.borem-tech-work-tab .borem-tech-work-tab-icon{font-size:22px;line-height:1}.borem-tech-work-tab strong{font-size:12px;color:var(--st-text-muted,#64748b)}
.borem-tech-work-tab.is-active{border-color:var(--st-orange,#2563eb);box-shadow:0 12px 26px rgba(37,99,235,.14);background:rgba(37,99,235,.08)}
.borem-tech-work-details .borem-tech-step4-facts{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));width:100%}
@media(max-width:720px){#techday-modal-root{padding:8px}.borem-tech-modal-sheet{width:calc(100vw - 16px);max-height:calc(100vh - 16px);border-radius:18px}.borem-tech-work-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.borem-tech-work-tab{min-height:66px}}
[data-borem-theme="dark"] .borem-tech-modal-sheet,[data-borem-theme="dark"] .borem-tech-work-tab{background:#111827;color:#f8fafc;border-color:rgba(148,163,184,.28)}

/* v3.27.19 — profile menu, managed job tags, multi-select fields, and reminder minimization */
.borem-profile-menu{position:relative;display:inline-flex;align-items:center}
.borem-profile-dropdown{position:absolute;right:0;top:calc(100% + 10px);z-index:10150;min-width:190px;padding:8px;background:var(--borem-card-bg,#fff);border:1px solid var(--st-border,#e2e8f0);border-radius:14px;box-shadow:0 18px 50px rgba(15,23,42,.18)}
.borem-profile-dropdown[hidden]{display:none}
.borem-profile-dropdown a{display:flex;align-items:center;min-height:40px;padding:9px 11px;border-radius:10px;color:var(--st-text,#0f172a);text-decoration:none;font-weight:700;font-size:13px}
.borem-profile-dropdown a:hover{background:rgba(148,163,184,.14)}
.borem-profile-dropdown .borem-profile-logout{color:#b42318;border-top:1px solid var(--st-border,#e2e8f0);margin-top:5px;padding-top:11px}
.borem-service-extra select[multiple]{min-height:126px;padding:8px;background-image:none}
.borem-job-tags{margin-top:14px;padding-top:14px;border-top:1px solid var(--st-border,#e2e8f0);display:grid;gap:8px}
.borem-tag-pills{display:flex;flex-wrap:wrap;gap:7px;min-height:28px;align-items:center}
.borem-job-tag-pill{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:rgba(37,99,235,.10);border:1px solid rgba(37,99,235,.18);font-size:12px;font-weight:800;color:var(--st-text,#0f172a)}
.borem-job-tags-editor{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.borem-job-tags-editor input{flex:1 1 280px;min-width:0}
.borem-unscheduled-content{display:flex;flex:1;min-height:0;flex-direction:column}
.borem-unscheduled-controls{display:flex;align-items:center;gap:6px}
.borem-unscheduled-panel.is-minimized{top:auto;bottom:18px;height:auto;width:min(360px,calc(100vw - 24px));border:1px solid rgba(148,163,184,.32);border-radius:16px;overflow:hidden;right:18px}
.borem-unscheduled-panel.is-minimized .borem-unscheduled-content{display:none}
.borem-unscheduled-panel.is-minimized .borem-unscheduled-head{border-bottom:0;padding:12px 14px}
[data-borem-theme="dark"] .borem-profile-dropdown{background:#111827;color:#f8fafc;border-color:rgba(148,163,184,.28)}
[data-borem-theme="dark"] .borem-profile-dropdown a,[data-borem-theme="dark"] .borem-job-tag-pill{color:#f8fafc}
@media(max-width:700px){.borem-job-tags-editor{align-items:stretch}.borem-job-tags-editor input,.borem-job-tags-editor button{width:100%}.borem-unscheduled-panel.is-minimized{right:12px;bottom:12px}}
.borem-profile-menu .borem-topbar-avatar{border:0;padding:0;cursor:pointer;font-family:inherit}

/* v3.27.20 — dropdown multiselect, quarter-hour scheduling, Jobs list, and Job Details visual refresh */
.borem-multiselect-source[hidden],.borem-quarter-source[hidden]{display:none}
.borem-dropdown-multiselect{position:relative;width:100%}
.borem-dropdown-multiselect-toggle{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;border:1px solid var(--st-border,#d8e0eb);border-radius:10px;background:var(--st-card,#fff);color:var(--st-text,#18324d);padding:9px 12px;font:inherit;cursor:pointer}
.borem-dropdown-multiselect-toggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--st-muted,#6b7f95)}
.borem-dropdown-multiselect-toggle.has-value span{color:var(--st-text,#18324d);font-weight:700}
.borem-dropdown-multiselect.is-open .borem-dropdown-multiselect-toggle{border-color:#2f7fd3;box-shadow:0 0 0 3px rgba(47,127,211,.12)}
.borem-dropdown-multiselect-menu{position:absolute;z-index:10180;left:0;right:0;top:calc(100% + 6px);padding:8px;background:var(--st-card,#fff);border:1px solid var(--st-border,#d8e0eb);border-radius:12px;box-shadow:0 18px 45px rgba(15,41,67,.18)}
.borem-dropdown-multiselect-menu[hidden]{display:none}
.borem-dropdown-multiselect-options{max-height:250px;overflow:auto;display:grid;gap:2px}
.borem-dropdown-multiselect-options label{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:8px;cursor:pointer;font-weight:650;color:var(--st-text,#18324d)}
.borem-dropdown-multiselect-options label:hover{background:#f0f6fd}
.borem-dropdown-multiselect-options input{width:16px;height:16px;min-height:0;margin:0;flex:0 0 auto}
.borem-dropdown-multiselect-clear{width:100%;margin-top:7px;padding:8px 10px;border:0;border-top:1px solid var(--st-border,#d8e0eb);background:transparent;color:#1769aa;font-weight:800;cursor:pointer;text-align:left}
.borem-quarter-picker{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr);gap:8px;width:100%}
.borem-quarter-picker.is-time{grid-template-columns:1fr}
.borem-quarter-picker input,.borem-quarter-picker select{width:100%;min-height:44px;border:1px solid var(--st-border,#d8e0eb);border-radius:10px;background:var(--st-card,#fff);color:var(--st-text,#18324d);padding:9px 11px;font:inherit}
@media(max-width:520px){.borem-quarter-picker{grid-template-columns:1fr}}

/* Jobs list modeled after the supplied reference table. */
#borem-wo-table{min-width:1360px;border-collapse:separate;border-spacing:0;background:#fff}
#borem-wo-table thead th{height:48px;padding:0 14px;background:#f8fafc;border-top:1px solid #e5ebf2;border-bottom:1px solid #e5ebf2;color:#7790aa;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap}
#borem-wo-table tbody td{padding:15px 14px;border-bottom:1px solid #e8edf3;color:#27445f;font-size:12px;vertical-align:middle;background:#fff}
#borem-wo-table tbody tr:hover td{background:#fbfdff}
#borem-wo-table th:first-child,#borem-wo-table td:first-child{padding-left:16px}
#borem-wo-table .borem-st-job-cell{display:grid;gap:4px;text-decoration:none;min-width:220px}
#borem-wo-table .borem-st-job-cell strong{font-size:12px;color:#1170c7;font-weight:800}
#borem-wo-table .borem-st-job-cell span{font-size:12px;color:#1170c7;font-weight:750;white-space:normal}
.borem-st-status{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:#b76500;font-weight:800;white-space:nowrap}
.borem-st-status i{width:7px;height:7px;border-radius:50%;background:#d88900;flex:0 0 7px}
.borem-st-status.is-active,.borem-st-status.is-complete,.borem-st-status.is-completed{color:#078c40}.borem-st-status.is-active i,.borem-st-status.is-complete i,.borem-st-status.is-completed i{background:#0aa04f}
.borem-st-status.is-inactive,.borem-st-status.is-canceled{color:#b42318}.borem-st-status.is-inactive i,.borem-st-status.is-canceled i{background:#dc2626}
.borem-st-substatus{color:#6d8195;white-space:nowrap}
.borem-st-job-type{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:3px 10px;border-radius:999px;background:#c9f8e5;color:#088c65;font-size:11px;font-weight:850;white-space:nowrap}
.borem-st-job-type.is-service-call{background:#cbefff;color:#0074a8}.borem-st-job-type.is-repair{background:#d8facd;color:#19851f}.borem-st-job-type.is-emergency{background:#fee2e2;color:#b42318}.borem-st-job-type.is-installation,.borem-st-job-type.is-project{background:var(--bo-primary-soft);color:var(--bo-primary)}
.borem-st-money{font-variant-numeric:tabular-nums;white-space:nowrap}.borem-st-company{font-weight:750;color:#1170c7;white-space:nowrap}.borem-st-date-range{display:grid;gap:2px;white-space:nowrap}.borem-st-date{white-space:nowrap}.borem-st-scheduled{display:inline-flex;align-items:center;gap:7px;color:#385a78;text-decoration:none;white-space:nowrap}.borem-st-scheduled>span{font-size:15px}
.borem-st-table-footer{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:11px 18px;background:#fff;border-top:0;color:#6e8499;font-size:12px}
.borem-loc-table-wrap:has(#borem-wo-table){border:1px solid #e2e8ef;border-radius:12px;overflow:auto;background:#fff;box-shadow:0 3px 12px rgba(34,67,101,.04)}

/* Job Details modeled after the supplied jobdeets reference. */
#wo-detail-page{gap:8px;background:#f4f8fb;margin:-18px;padding:0 18px 28px;min-height:100vh}
#wo-detail-page .borem-st-job-toolbar{border:0;border-radius:0;margin:0 -18px;padding:16px 44px 10px;background:#fff;box-shadow:0 1px 0 #e6edf4}
#wo-detail-page .borem-st-job-toolbar .st-job-header-top{align-items:center}
#wo-detail-page .borem-st-job-toolbar .st-job-kicker{display:none}
#wo-detail-page #wo-page-title{font-size:20px;margin:0 10px 0 0;display:inline-block;color:#132a42}
#wo-detail-page #wo-status-badge{display:inline-flex;vertical-align:middle;margin-left:4px;border-radius:5px;padding:5px 12px;font-size:11px;font-weight:850}
.borem-st-substatus-pill{display:inline-flex;align-items:center;min-height:28px;padding:4px 13px;background:#e5f0fd;color:#245b90;border-radius:5px;font-size:11px;font-weight:800}
#wo-detail-page .st-job-header-actions{margin-left:auto}
.borem-st-manage-job,.borem-st-actions-btn{min-height:36px;border-radius:6px;padding:8px 16px;font-size:12px;font-weight:800}
.borem-st-job-nav{display:flex;align-items:center;gap:20px;margin:0 -18px 8px;padding:0 44px 12px;background:#fff;border-bottom:1px solid #e4ebf2}
.borem-st-job-nav button{border:0;background:transparent;color:#4a6680;font:inherit;font-size:12px;font-weight:700;padding:5px 0;cursor:pointer}
.borem-st-overview-card,.borem-st-appointments-card{width:100%;border:1px solid #cfdeec;border-radius:14px;box-shadow:0 3px 12px rgba(31,73,112,.05);overflow:hidden}
.borem-st-overview-card>.borem-card-body{padding:20px 22px}
.borem-st-overview-top{display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,.8fr) auto;gap:24px;align-items:start}
.borem-st-overview-identity{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;row-gap:8px}.borem-st-service-dot{width:8px;height:8px;border-radius:50%;background:#08a24a}.borem-st-overview-identity>strong{font-size:12px;color:#0a8d3b}.borem-st-overview-identity h2{grid-column:1/-1;margin:5px 0 0;font-size:18px;color:#27445f}.borem-st-overview-links{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}.borem-st-overview-links span{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px;border-radius:5px;background:#e7f2ff;color:#1769aa;font-size:11px;font-weight:800}
.borem-st-overview-address{align-self:center;text-align:center;color:#425c73;font-size:12px;font-weight:650}
.borem-st-metrics{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:12px}.borem-st-metrics>div{min-width:135px;padding:12px 14px;border:1px solid #edf1f5;border-radius:16px;background:#fff;box-shadow:0 4px 13px rgba(35,67,98,.05)}.borem-st-metrics span,.borem-st-metrics strong,.borem-st-metrics small{display:block}.borem-st-metrics span{color:#1769aa;font-size:12px;font-weight:850}.borem-st-metrics strong{margin-top:5px;color:#0e4f83;font-size:18px}.borem-st-metrics small{margin-top:3px;color:#b36100;font-size:11px;font-weight:750}
#wo-detail-page .borem-job-tags{border:0;margin:12px 0 8px;padding:0}.borem-job-tag-pill{border:0;border-radius:5px;background:#0f6cad;color:#fff;min-height:24px;padding:3px 7px;text-transform:uppercase;font-size:10px;gap:7px;cursor:pointer}.borem-job-tag-pill b{font-size:12px}.borem-job-tag-add{width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#deebf8;color:#4581ba;font-size:20px;line-height:1;cursor:pointer}.borem-job-tags-editor[hidden]{display:none}
.borem-st-job-information{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:16px;padding:22px;border:1px solid #d3e0ec;border-radius:8px}.borem-st-info-column{display:grid;align-content:start;gap:18px}.borem-st-info-row{display:grid;gap:4px;color:#344f67}.borem-st-info-row>span{font-size:12px;font-weight:850}.borem-st-info-row strong{font-size:13px;font-weight:650}.borem-st-info-row small{display:block;font-size:12px;line-height:1.45;color:#334e66}.borem-st-info-row a{color:#1170c7;text-decoration:none}
#wo-detail-page #wo-description{min-height:90px;padding:8px 0 0;color:#3f5870;line-height:1.75}
#wo-detail-page .borem-st-appointments-card>.borem-card-head{padding:15px 20px;background:#fff;border-bottom:0}.borem-st-appt-count{margin-left:auto;order:2;display:inline-flex;align-items:center;min-height:30px;padding:5px 12px;border-radius:999px;background:#e4effb;color:#1769aa;font-size:11px;font-weight:850}.borem-st-appointments-card>.borem-card-head>.borem-btn{order:3}.borem-st-appointments-card>.borem-card-body{padding:8px 20px 20px}
#wo-detail-page>.st-job-body{margin-top:4px}
@media(max-width:1180px){.borem-st-overview-top{grid-template-columns:1fr 1fr}.borem-st-metrics{grid-column:1/-1}.borem-st-job-information{grid-template-columns:1fr 1fr}}
@media(max-width:760px){#wo-detail-page{margin:-12px;padding:0 10px 24px}#wo-detail-page .borem-st-job-toolbar{margin:0 -10px;padding:14px}.borem-st-job-nav{margin:0 -10px;padding:0 14px 10px;overflow:auto}.borem-st-overview-top,.borem-st-job-information{grid-template-columns:1fr}.borem-st-overview-address{text-align:left}.borem-st-metrics{grid-template-columns:1fr}.borem-st-overview-card>.borem-card-body{padding:15px}}
[data-borem-theme="dark"] .borem-dropdown-multiselect-toggle,[data-borem-theme="dark"] .borem-dropdown-multiselect-menu,[data-borem-theme="dark"] .borem-quarter-picker input,[data-borem-theme="dark"] .borem-quarter-picker select,[data-borem-theme="dark"] #borem-wo-table,[data-borem-theme="dark"] #borem-wo-table tbody td,[data-borem-theme="dark"] .borem-st-table-footer,[data-borem-theme="dark"] .borem-st-metrics>div{background:#111827;color:#f8fafc;border-color:rgba(148,163,184,.28)}


/* v3.27.20 final fidelity and pagination refinements */
#borem-wo-table thead th:not(:first-child)::after{content:"◆";display:inline-block;margin-left:9px;color:#a8b8c9;font-size:6px;transform:rotate(45deg);vertical-align:2px}
.borem-st-pagination{display:flex;align-items:center;gap:2px;margin-left:auto}
.borem-st-page{min-width:31px;height:31px;padding:0 8px;border:1px solid transparent;border-radius:5px;background:#fff;color:#0e5f9f;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.borem-st-page:hover:not(:disabled){background:#eef5fc}.borem-st-page.is-current{background:#0f69aa;color:#fff}.borem-st-page:disabled{opacity:.35;cursor:not-allowed}.borem-st-page-arrow{background:#edf4fb}.borem-st-page-gap{padding:0 4px;color:#6e8499}
#wo-detail-page .borem-st-title-block{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#wo-detail-page .borem-st-title-block>div:last-child{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#wo-detail-page .borem-st-title-block #wo-page-title{flex:0 1 auto}
.borem-st-status.is-in-progress{color:#1769aa}.borem-st-status.is-in-progress i{background:#2f7fd3}
.borem-st-status.is-scheduled{color:#7a5a00}.borem-st-status.is-scheduled i{background:#d8a300}
@media(max-width:700px){.borem-st-table-footer{align-items:flex-start;gap:10px;flex-direction:column}.borem-st-pagination{margin-left:0;max-width:100%;overflow:auto}}

/* ================================================================
   v4.3 — legacy high-specificity theme shield retired.
   Theme isolation is incorporated into the authoritative
   low-specificity component system lives in v43.css.
   ================================================================ */

/* v4.2.48 — tester workflow corrections */
.borem-topbar-left { display:flex; align-items:center; gap:10px; min-width:0; }
.borem-topbar-home {
  width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center;
  border:1px solid var(--st-border, #d9e2ec); border-radius:11px;
  background:var(--st-surface, #fff); color:var(--borem-app-accent, #1769aa);
  text-decoration:none; box-shadow:0 4px 12px rgba(15,23,42,.06);
}
.borem-topbar-home:hover { background:#eef6ff; border-color:#b9d5ed; }
.borem-topbar-home svg { width:20px; height:20px; }
.borem-kpi-action .k, .borem-kpi-action .v { display:block; }
.borem-kpi-action { appearance:none; width:100%; text-align:left; font:inherit; color:inherit; cursor:pointer; }
.borem-kpi-action:hover, .borem-kpi-action:focus-visible { transform:translateY(-1px); box-shadow:0 12px 28px rgba(15,23,42,.12); outline:2px solid transparent; border-color:var(--borem-app-accent, #1769aa); }
.borem-kpi-action::after { content:'View jobs →'; display:block; margin-top:8px; color:var(--borem-app-accent, #1769aa); font-size:12px; font-weight:800; }
.borem-dashboard-bucket-dialog, .borem-job-contacts-dialog { width:min(760px, calc(100vw - 32px)); height:auto; max-height:min(760px, calc(100vh - 32px)); }
.borem-dashboard-job-list, .borem-contact-picker-list { display:grid; gap:10px; }
.borem-dashboard-job-list a, .borem-contact-picker-card { display:grid; gap:5px; padding:14px 16px; border:1px solid var(--st-border, #dbe6f2); border-radius:12px; background:var(--st-surface, #fff); color:inherit; text-decoration:none; }
.borem-dashboard-job-list a:hover, .borem-contact-picker-card:hover { border-color:var(--borem-app-accent, #1769aa); background:#f7fbff; }
.borem-dashboard-job-list span, .borem-contact-picker-card span { color:var(--st-muted, #64748b); font-size:13px; }
.borem-clock-event-form { display:grid; grid-template-columns:minmax(130px, .7fr) minmax(220px, 2fr) auto auto; gap:8px; padding:12px 14px; border-top:1px solid var(--st-border, #dbe6f2); background:var(--st-soft, #f8fbff); }
.borem-clock-event-form[hidden] { display:none; }
.borem-clock-event-form select, .borem-clock-event-form input { min-height:38px; border:1px solid var(--st-border, #dbe6f2); border-radius:8px; padding:7px 10px; background:var(--st-surface, #fff); color:inherit; }
.borem-st-overview-links button { appearance:none; border:0; background:transparent; padding:0; color:inherit; font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
/* The previous fixed action rail covered job content. Keep actions in document flow. */
#wo-detail-page .borem-wo-sticky-actions {
  position:static; inset:auto; width:auto; margin:0 0 12px auto;
  flex-direction:row; align-items:center; justify-content:flex-end; gap:4px;
  padding:7px; overflow-x:auto; box-shadow:0 6px 18px rgba(15,23,42,.08);
}
#wo-detail-page .borem-wo-sticky-actions button { width:42px; flex:0 0 42px; margin:0; }
@media (max-width: 720px) {
  .borem-topbar-home { width:34px; height:34px; flex-basis:34px; }
  .borem-clock-event-form { grid-template-columns:1fr; }
  #wo-detail-page .borem-wo-sticky-actions { justify-content:flex-start; }
}
/*
 * Borem Core 4.9.0
 * Native professional application interface.
 * Darkone-inspired proportions, rebuilt for Borem's WordPress/PHP runtime.
 */

  html.borem-app-document,
  body.borem-app-host {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f3f4f8 !important;
  }

  body.borem-app-host :where(
    #page, #content, #primary, #main, main, article, .site, .site-content,
    .content-area, .site-main, .entry-content, .page-content,
    .wp-site-blocks, .wp-block-post-content, .elementor,
    .elementor-section-wrap, .elementor-widget-wrap,
    .elementor-widget, .elementor-shortcode, .container, .container-fluid
  ).borem-app-host-shell,
  body.borem-app-host .borem-app-host-shell {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.borem-app-host :where(
    header.site-header, footer.site-footer, .site-header, .site-footer,
    .entry-header, .page-header, .post-navigation, .comments-area,
    .wp-block-template-part, .elementor-location-header,
    .elementor-location-footer, #masthead, #colophon
  ) {
    display: none !important;
  }

  body.admin-bar.borem-app-host .borem-app,
  body.admin-bar.borem-app-host .borem-preloader {
    top: 32px !important;
    height: calc(100dvh - 32px) !important;
  }

  .borem-app[data-borem-ui-version],
  .borem-app[data-borem-ui-version] *,
  .borem-app[data-borem-ui-version] *::before,
  .borem-app[data-borem-ui-version] *::after,
  .borem-ui-root,
  .borem-ui-root *,
  .borem-ui-root *::before,
  .borem-ui-root *::after {
    box-sizing: border-box;
  }

  .borem-app[data-borem-ui-version] :where(a, a:hover, a:focus, a:active),
  .borem-ui-root :where(a, a:hover, a:focus, a:active) {
    text-decoration: none !important;
  }



  .borem-app[data-borem-ui-version],
  .borem-ui-root {
    --bo-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --borem-font-family: var(--bo-font);
    --bo-canvas: #f3f4f8;
    --bo-surface: #ffffff;
    --bo-surface-subtle: #f8f9fc;
    --bo-surface-raised: #ffffff;
    --bo-sidebar: #ffffff;
    --bo-sidebar-deep: #f8fafc;
    --bo-sidebar-hover: #f1f5f9;
    --bo-sidebar-text: #667085;
    --bo-sidebar-title: #101828;
    --bo-text: #2b3040;
    --bo-heading: #1c2130;
    --bo-muted: #7a8294;
    --bo-faint: #9ca3b4;
    --bo-border: #e5e7ef;
    --bo-border-strong: #d9dce7;
    --bo-primary: #2271b1;
    --bo-primary-hover: #105f9e;
    --bo-primary-soft: rgba(34,113,177,.10);
    --bo-primary-mid: rgba(34,113,177,.22);
    --bo-accent: #58a6ff;
    --bo-accent-hover: #4694ed;
    --bo-accent-soft: rgba(88,166,255,.12);
    --bo-accent-mid: rgba(88,166,255,.24);
    --bo-accent-shadow: rgba(88,166,255,.20);
    --bo-focus-ring: rgba(88,166,255,.22);
    --bo-link: var(--bo-primary);
    --bo-blue: #4b8ff7;
    --bo-blue-soft: #eaf3ff;
    --bo-green: #20a779;
    --bo-green-soft: #e7f8f2;
    --bo-amber: #e59a27;
    --bo-amber-soft: #fff5e3;
    --bo-red: #e05d68;
    --bo-red-soft: #ffedef;
    --bo-shadow-xs: 0 1px 2px rgba(30, 35, 50, .035);
    --bo-shadow-sm: 0 3px 12px rgba(35, 40, 55, .055);
    --bo-shadow-md: 0 12px 34px rgba(35, 40, 55, .10);
    --bo-radius-xs: 5px;
    --bo-radius-sm: 7px;
    --bo-radius-md: 10px;
    --bo-radius-lg: 14px;
    --bo-sidebar-w: 264px;
    --bo-sidebar-collapsed: 76px;
    --bo-topbar-h: 72px;
    --bo-control-h: 40px;
    --bo-transition: 160ms cubic-bezier(.2,.8,.2,1);
    --st-orange: var(--bo-accent);
    --st-orange-soft: var(--bo-accent-soft);
    --st-orange-mid: var(--bo-accent-mid);
    --st-bg: var(--bo-surface-subtle);
    --st-surface: var(--bo-surface);
    --st-border: var(--bo-border);
    --st-text: var(--bo-text);
    --st-text-muted: var(--bo-muted);
  }



  .borem-app[data-borem-ui-version],
  .borem-ui-root {
    color: var(--bo-text);
    font-family: var(--bo-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .borem-app[data-borem-ui-version] :where(h1,h2,h3,h4,h5,h6,p,ul,ol,dl,figure,blockquote),
  .borem-ui-root :where(h1,h2,h3,h4,h5,h6,p,ul,ol,dl,figure,blockquote) {
    margin: 0;
  }

  .borem-app[data-borem-ui-version] :where(h1,h2,h3,h4,h5,h6),
  .borem-ui-root :where(h1,h2,h3,h4,h5,h6) {
    color: var(--bo-heading);
    font-family: var(--bo-font);
    font-weight: 650;
    line-height: 1.25;
  }

  .borem-app[data-borem-ui-version] h1 { font-size: 22px; }
  .borem-app[data-borem-ui-version] h2 { font-size: 18px; }
  .borem-app[data-borem-ui-version] h3 { font-size: 15px; }
  .borem-app[data-borem-ui-version] h4 { font-size: 14px; }

  .borem-app[data-borem-ui-version] :where(a),
  .borem-ui-root :where(a) {
    color: var(--bo-link);
    cursor: pointer;
  }

  .borem-app[data-borem-ui-version] :where(button,input,select,textarea),
  .borem-ui-root :where(button,input,select,textarea) {
    font: inherit;
  }

  .borem-app[data-borem-ui-version] :where(button),
  .borem-ui-root :where(button) {
    color: inherit;
  }

  .borem-app[data-borem-ui-version] :where(svg),
  .borem-ui-root :where(svg) {
    display: block;
    flex: 0 0 auto;
  }

  .borem-app[data-borem-ui-version] .borem-ico,
  .borem-ui-root .borem-ico {
    width: 18px;
    height: 18px;
  }

  .borem-app[data-borem-ui-version] :where(.muted,.text-muted,.borem-muted) { color: var(--bo-muted); }
  .borem-app[data-borem-ui-version] :where(.text-sm,.borem-text-sm) { font-size: 12px; }
  .borem-app[data-borem-ui-version] [hidden] { display: none !important; }



  .borem-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    background: var(--bo-canvas, #f3f4f8);
  }

  .borem-preloader-glass {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid #e6e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--bo-shadow-md);
  }

  .borem-preloader-glass img { width: 30px; height: 30px; object-fit: contain; }

  .borem-app[data-borem-ui-version] {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--bo-canvas);
  }

  .borem-app[data-borem-ui-version].borem-app-modal { position: relative; height: auto; min-height: 100dvh; }

  .borem-app[data-borem-ui-version] .borem-sidebar {
    position: relative;
    z-index: 30;
    display: flex;
    width: var(--bo-sidebar-w);
    min-width: var(--bo-sidebar-w);
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    color: var(--bo-sidebar-text);
    background: linear-gradient(180deg, var(--bo-sidebar) 0%, var(--bo-sidebar-deep) 100%);
    box-shadow: 8px 0 28px rgba(18, 22, 32, .08);
    transition: width var(--bo-transition), min-width var(--bo-transition);
  }

  .borem-app[data-borem-ui-version].sidebar-collapsed .borem-sidebar {
    width: var(--bo-sidebar-collapsed);
    min-width: var(--bo-sidebar-collapsed);
  }

  .borem-app[data-borem-ui-version] .borem-logo {
    display: flex;
    height: var(--bo-topbar-h);
    min-height: var(--bo-topbar-h);
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .borem-app[data-borem-ui-version] .borem-logo-img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    border-radius: 8px;
  }

  .borem-app[data-borem-ui-version] .borem-logo-wordmark {
    min-width: 0;
    overflow: hidden;
    color: var(--bo-sidebar-title);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .borem-app[data-borem-ui-version] .borem-sidebar-toggle-wrap {
    position: absolute;
    top: 24px;
    right: -13px;
    z-index: 4;
    padding: 0;
  }

  .borem-app[data-borem-ui-version] #borem-sidebar-toggle {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    padding: 0;
    color: #727b8e;
    border: 1px solid var(--bo-border);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--bo-shadow-sm);
    cursor: pointer;
    transition: var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] #borem-sidebar-toggle:hover { color: var(--bo-accent); transform: translateY(-1px); }

  .borem-app[data-borem-ui-version] .borem-nav-wrapper {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
  }

  .borem-app[data-borem-ui-version] .borem-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 12px 22px;
  }

  .borem-app[data-borem-ui-version] :where(.borem-nav-link,.borem-nav-group-summary) {
    color: var(--bo-sidebar-text);
  }

  .borem-app[data-borem-ui-version] :where(.borem-nav-link,.borem-nav-group-summary) {
    position: relative;
    display: flex;
    min-width: 0;
    height: 42px;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--bo-sidebar-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: color var(--bo-transition), background var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] :where(.borem-nav-link,.borem-nav-group-summary):hover {
    color: #fff;
    background: var(--bo-sidebar-hover);
  }

  .borem-app[data-borem-ui-version] .borem-nav-link.active,
  .borem-app[data-borem-ui-version] .borem-nav-link[aria-current="page"],
  .borem-app[data-borem-ui-version] .borem-nav-group.active > .borem-nav-group-summary {
    color: #fff;
    background: var(--bo-accent-soft);
  }

  .borem-app[data-borem-ui-version] .borem-nav-link.active::before,
  .borem-app[data-borem-ui-version] .borem-nav-link[aria-current="page"]::before,
  .borem-app[data-borem-ui-version] .borem-nav-group.active > .borem-nav-group-summary::before {
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 4px;
    background: var(--bo-accent);
    content: "";
  }

  .borem-app[data-borem-ui-version] .borem-nav-ico {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    color: currentColor;
  }

  .borem-app[data-borem-ui-version] .borem-nav-ico .borem-ico { width: 18px; height: 18px; stroke-width: 1.8; }
  .borem-app[data-borem-ui-version] .borem-nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

  .borem-app[data-borem-ui-version] .borem-nav-group {
    display: block;
    margin: 0;
    border: 0;
  }

  .borem-app[data-borem-ui-version] .borem-nav-group > summary {
    display: flex;
    align-items: center;
    list-style: none;
    cursor: pointer;
  }

  .borem-app[data-borem-ui-version] .borem-nav-group > summary::-webkit-details-marker { display: none; }

  .borem-app[data-borem-ui-version] .borem-nav-caret {
    display: grid;
    width: 28px;
    height: 36px;
    margin-left: auto;
    place-items: center;
    color: #858da0;
    pointer-events: none;
    transition: transform var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] .borem-nav-caret svg { width: 13px; height: 13px; }
  .borem-app[data-borem-ui-version] details[open] > summary .borem-nav-caret { transform: rotate(90deg); }

  .borem-app[data-borem-ui-version] .borem-nav-children {
    display: grid;
    gap: 2px;
    padding: 3px 0 5px 32px;
  }

  .borem-app[data-borem-ui-version] .borem-nav-children .borem-nav-link {
    height: 34px;
    padding-left: 13px;
    color: #939caf;
    font-size: 12.5px;
  }

  .borem-app[data-borem-ui-version] .borem-nav-children .borem-nav-ico { display: none; }
  .borem-app[data-borem-ui-version] .borem-nav-section-sep { height: 1px; margin: 10px 10px; background: rgba(255,255,255,.065); }

  .borem-app[data-borem-ui-version] .borem-sidebar-footer {
    display: grid;
    gap: 4px;
    padding: 11px 12px 14px;
    border-top: 1px solid rgba(255,255,255,.065);
    background: rgba(0,0,0,.08);
  }

  .borem-app[data-borem-ui-version] .borem-sidebar-profile {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #e4e7ef;
    transition: var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] .borem-sidebar-profile:hover { background: rgba(255,255,255,.06); }
  .borem-app[data-borem-ui-version] .borem-sidebar-avatar,
  .borem-app[data-borem-ui-version] .borem-topbar-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bo-primary), var(--bo-accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
  }

  .borem-app[data-borem-ui-version] .borem-sidebar-profile-info { display: grid; min-width: 0; gap: 1px; }
  .borem-app[data-borem-ui-version] .borem-sidebar-profile-name { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .borem-app[data-borem-ui-version] .borem-sidebar-profile-role { overflow: hidden; color: #8992a5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

  .borem-app[data-borem-ui-version].sidebar-collapsed :where(.borem-logo-wordmark,.borem-nav-text,.borem-nav-caret,.borem-nav-children,.borem-sidebar-profile-info) { display: none; }
  .borem-app[data-borem-ui-version].sidebar-collapsed .borem-logo { justify-content: center; padding-inline: 0; }
  .borem-app[data-borem-ui-version].sidebar-collapsed .borem-nav { padding-inline: 11px; }
  .borem-app[data-borem-ui-version].sidebar-collapsed .borem-nav-link { justify-content: center; padding-inline: 0; }
  .borem-app[data-borem-ui-version].sidebar-collapsed .borem-nav-group-summary { justify-content: center; padding-inline: 0; }
  .borem-app[data-borem-ui-version].sidebar-collapsed .borem-sidebar-profile { justify-content: center; padding-inline: 0; }

  .borem-app[data-borem-ui-version] .borem-main {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    background: var(--bo-canvas);
  }

  .borem-app[data-borem-ui-version] .borem-topbar {
    position: relative;
    z-index: 20;
    display: flex;
    height: var(--bo-topbar-h);
    min-height: var(--bo-topbar-h);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 26px;
    border-bottom: 1px solid var(--bo-border);
    background: rgba(255,255,255,.94);
    box-shadow: var(--bo-shadow-xs);
    backdrop-filter: blur(12px);
  }

  .borem-app[data-borem-ui-version] .borem-topbar-left,
  .borem-app[data-borem-ui-version] .borem-top-actions {
    display: flex;
    min-width: 0;
    align-items: center;
  }

  .borem-app[data-borem-ui-version] .borem-topbar-left { gap: 11px; }
  .borem-app[data-borem-ui-version] .borem-top-actions { justify-content: flex-end; gap: 9px; }

  .borem-app[data-borem-ui-version] .borem-topbar-home {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: var(--bo-muted);
    border-radius: 8px;
    transition: var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] .borem-topbar-home:hover { color: var(--bo-accent); background: var(--bo-accent-soft); }
  .borem-app[data-borem-ui-version] .borem-topbar-home svg { width: 19px; height: 19px; }
  .borem-app[data-borem-ui-version] .borem-page-title { overflow: hidden; font-size: 18px; font-weight: 650; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }

  .borem-app[data-borem-ui-version] .borem-global-search {
    position: relative;
    display: flex;
    width: min(340px, 30vw);
    align-items: center;
  }

  .borem-app[data-borem-ui-version] .borem-global-search .borem-search-ico {
    position: absolute;
    left: 13px;
    z-index: 1;
    width: 17px;
    color: var(--bo-muted);
    pointer-events: none;
  }

  .borem-app[data-borem-ui-version] .borem-global-search input {
    width: 100% !important;
    min-height: 38px;
    padding: 0 14px 0 39px;
    border-color: transparent;
    border-radius: 9px;
    background: #f4f5f8;
  }

  .borem-app[data-borem-ui-version] .borem-global-search input:focus { border-color: var(--bo-accent); background: #fff; box-shadow: 0 0 0 3px var(--bo-focus-ring); }

  .borem-app[data-borem-ui-version] .borem-content {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 26px 42px;
    scroll-behavior: smooth;
  }

  .borem-app[data-borem-ui-version] .borem-content > * { width: 100%; max-width: 1680px; margin-inline: auto; }
  .borem-app[data-borem-ui-version] .borem-mobile-nav,
  .borem-app[data-borem-ui-version] .borem-mobile-menu { display: none; }



  .borem-app[data-borem-ui-version] :where(.borem-btn,.button,button.borem-btn),
  .borem-ui-root :where(.borem-btn,.button,button.borem-btn) {
    display: inline-flex;
    min-height: var(--bo-control-h);
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--bo-border-strong);
    border-radius: var(--bo-radius-sm);
    background: var(--bo-surface);
    color: #4a5162;
    box-shadow: none;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color var(--bo-transition), background var(--bo-transition), color var(--bo-transition), transform var(--bo-transition), box-shadow var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] :where(.borem-btn,.button,button.borem-btn):hover,
  .borem-ui-root :where(.borem-btn,.button,button.borem-btn):hover {
    border-color: #cfd2de;
    background: #f9f9fb;
    color: var(--bo-heading);
    transform: translateY(-1px);
  }

  .borem-app[data-borem-ui-version] :where(.borem-btn.primary,.borem-btn-primary,.button-primary),
  .borem-ui-root :where(.borem-btn.primary,.borem-btn-primary,.button-primary) {
    border-color: var(--bo-accent);
    background: var(--bo-accent);
    color: #fff;
    box-shadow: 0 5px 12px var(--bo-accent-shadow);
  }

  .borem-app[data-borem-ui-version] :where(.borem-btn.primary,.borem-btn-primary,.button-primary):hover,
  .borem-ui-root :where(.borem-btn.primary,.borem-btn-primary,.button-primary):hover {
    border-color: var(--bo-accent-hover);
    background: var(--bo-accent-hover);
    color: #fff;
  }

  .borem-app[data-borem-ui-version] .borem-btn-secondary { border-color: #d8dbe6; background: #fff; color: #434a5b; }
  .borem-app[data-borem-ui-version] .borem-btn-quiet { border-color: transparent; background: transparent; color: var(--bo-muted); }
  .borem-app[data-borem-ui-version] .borem-btn-quiet:hover { border-color: var(--bo-border); background: var(--bo-surface-subtle); color: var(--bo-heading); }
  .borem-app[data-borem-ui-version] .borem-btn-danger { border-color: var(--bo-red); background: var(--bo-red); color: #fff; }
  .borem-app[data-borem-ui-version] .borem-btn-sm { min-height: 32px; padding-inline: 11px; font-size: 11.5px; }
  .borem-app[data-borem-ui-version] .borem-btn-lg { min-height: 46px; padding-inline: 20px; }
  .borem-app[data-borem-ui-version] .borem-btn .borem-ico { width: 16px; height: 16px; }

  .borem-app[data-borem-ui-version] .borem-icon-btn,
  .borem-ui-root .borem-icon-btn {
    display: grid;
    width: 38px;
    height: 38px;
    min-width: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--bo-muted);
    cursor: pointer;
    transition: var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] .borem-icon-btn:hover,
  .borem-ui-root .borem-icon-btn:hover { border-color: var(--bo-border); background: #f6f6f9; color: var(--bo-accent); }
  .borem-app[data-borem-ui-version] .borem-theme-icon { width: 19px; height: 19px; }

  .borem-app[data-borem-ui-version] :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.borem-input,.borem-select),
  .borem-ui-root :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.borem-input,.borem-select) {
    width: auto;
    min-width: 0;
    min-height: var(--bo-control-h);
    margin: 0;
    padding: 9px 12px;
    color: var(--bo-text);
    border: 1px solid var(--bo-border-strong);
    border-radius: var(--bo-radius-sm);
    outline: 0;
    background: var(--bo-surface);
    box-shadow: none;
    font-size: 13px;
    line-height: 1.3;
    transition: border-color var(--bo-transition), box-shadow var(--bo-transition), background var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] :where(input,textarea)::placeholder,
  .borem-ui-root :where(input,textarea)::placeholder { color: #a2a8b6; opacity: 1; }

  .borem-app[data-borem-ui-version] :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.borem-input,.borem-select):focus,
  .borem-ui-root :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.borem-input,.borem-select):focus {
    border-color: var(--bo-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--bo-focus-ring);
  }

  .borem-app[data-borem-ui-version] textarea { min-height: 100px; resize: vertical; }
  .borem-app[data-borem-ui-version] :where(label,.borem-field-label) { color: #555d6e; font-size: 12px; font-weight: 600; }
  .borem-app[data-borem-ui-version] :where(.borem-field,.borem-form-field,.form-field) { display: grid; gap: 7px; min-width: 0; }
  .borem-app[data-borem-ui-version] :where(.borem-form-grid,.borem-fields-grid,.borem-grid-form) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 20px; }
  .borem-app[data-borem-ui-version] :where(.borem-form-actions,.borem-actions,.form-actions) { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 18px; }

  .borem-app[data-borem-ui-version] .borem-card,
  .borem-ui-root .borem-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius-md);
    background: var(--bo-surface);
    box-shadow: var(--bo-shadow-xs);
  }

  .borem-app[data-borem-ui-version] .borem-card + .borem-card { margin-top: 18px; }

  .borem-app[data-borem-ui-version] .borem-card-head,
  .borem-ui-root .borem-card-head {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--bo-border);
    background: var(--bo-surface);
  }

  .borem-app[data-borem-ui-version] .borem-card-head > div:first-child { min-width: 0; }
  .borem-app[data-borem-ui-version] .borem-card-head h2,
  .borem-app[data-borem-ui-version] .borem-card-head h3 { margin: 0; }
  .borem-app[data-borem-ui-version] .borem-card-head p { margin-top: 4px; color: var(--bo-muted); font-size: 11.5px; }
  .borem-app[data-borem-ui-version] .borem-card-body,
  .borem-ui-root .borem-card-body { padding: 18px; }

  .borem-app[data-borem-ui-version] .borem-eyebrow,
  .borem-app[data-borem-ui-version] :where(.borem-kicker,.borem-page-kicker,.borem-subtitle,.borem-command-kicker) {
    display: block;
    margin-bottom: 4px;
    color: var(--bo-accent);
    font-size: 9.5px;
    font-weight: 750;
    letter-spacing: .095em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .borem-app[data-borem-ui-version] .borem-section-heading,
  .borem-app[data-borem-ui-version] .borem-page-intro,
  .borem-app[data-borem-ui-version] .borem-workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .borem-app[data-borem-ui-version] :where(.borem-page-intro,.borem-workspace-toolbar) {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius-md);
    background: var(--bo-surface);
    box-shadow: var(--bo-shadow-xs);
  }

  .borem-app[data-borem-ui-version] :where(.borem-page-intro,.borem-workspace-toolbar) p { margin-top: 5px; color: var(--bo-muted); font-size: 12px; }

  .borem-app[data-borem-ui-version] :where(.borem-filters,.borem-cluster,.borem-toolbar-actions,.borem-action-row) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .borem-app[data-borem-ui-version] .borem-table-wrap,
  .borem-ui-root .borem-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }

  .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat),
  .borem-ui-root :where(table,.borem-table,.widefat) {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
    color: var(--bo-text);
    font-size: 12px;
  }

  .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) thead th,
  .borem-ui-root :where(table,.borem-table,.widefat) thead th {
    height: 43px;
    padding: 10px 13px;
    color: #7e8595;
    border: 0;
    border-bottom: 1px solid var(--bo-border);
    background: #fafafd;
    font-size: 9.5px;
    font-weight: 750;
    letter-spacing: .055em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) tbody td,
  .borem-ui-root :where(table,.borem-table,.widefat) tbody td {
    min-height: 52px;
    padding: 12px 13px;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid #eceef4;
    background: transparent;
  }

  .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) tbody tr:last-child td { border-bottom: 0; }
  .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) tbody tr { transition: background var(--bo-transition); }
  .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) tbody tr:hover { background: #fafafe; }
  .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) a { color: #3e4658; font-weight: 600; }
  .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) a:hover { color: var(--bo-accent); }

  .borem-app[data-borem-ui-version] :where(.borem-badge,.st-badge,.badge,.status-pill,.def-stat-pill),
  .borem-ui-root :where(.borem-badge,.st-badge,.badge,.status-pill,.def-stat-pill) {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3px 8px;
    border: 0;
    border-radius: 999px;
    background: #eef0f5;
    color: #697184;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
  }

  .borem-app[data-borem-ui-version] [data-status-tone="success"] { background: var(--bo-green-soft); color: #17845f; }
  .borem-app[data-borem-ui-version] [data-status-tone="warning"] { background: var(--bo-amber-soft); color: #b5700f; }
  .borem-app[data-borem-ui-version] [data-status-tone="danger"] { background: var(--bo-red-soft); color: #c74755; }
  .borem-app[data-borem-ui-version] [data-status-tone="info"] { background: var(--bo-blue-soft); color: #3475c8; }

  .borem-app[data-borem-ui-version] :where(.borem-tabs,.borem-record-tabs,.borem-section-nav,.nav-tabs) {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 2px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid var(--bo-border);
    border-radius: 9px;
    background: #f8f9fc;
    scrollbar-width: none;
  }

  .borem-app[data-borem-ui-version] :where(.borem-tabs,.borem-record-tabs,.borem-section-nav,.nav-tabs)::-webkit-scrollbar { display: none; }
  .borem-app[data-borem-ui-version] :where(.borem-tabs,.borem-record-tabs,.borem-section-nav,.nav-tabs) :where(a,button,.nav-link) {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--bo-muted);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
  }

  .borem-app[data-borem-ui-version] :where(.borem-tabs,.borem-record-tabs,.borem-section-nav,.nav-tabs) :where(.active,[aria-selected="true"],[aria-current="page"]) {
    background: #fff;
    color: var(--bo-heading);
    box-shadow: 0 1px 4px rgba(40,45,60,.08);
  }

  .borem-app[data-borem-ui-version] :where(.borem-modal,.borem-dialog,.borem-command-modal,.borem-drawer,.borem-offcanvas),
  .borem-ui-root :where(.borem-modal,.borem-dialog,.borem-command-modal,.borem-drawer,.borem-offcanvas) {
    color: var(--bo-text);
    font-family: var(--bo-font);
  }

  .borem-app[data-borem-ui-version] :where(.borem-modal-content,.borem-dialog-panel,.borem-command-modal-card),
  .borem-ui-root :where(.borem-modal-content,.borem-dialog-panel,.borem-command-modal-card) {
    overflow: hidden;
    border: 1px solid var(--bo-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(28,33,48,.20);
  }

  .borem-app[data-borem-ui-version] :where(.borem-empty,.empty-state,.borem-empty-state),
  .borem-ui-root :where(.borem-empty,.empty-state,.borem-empty-state) {
    display: grid;
    min-height: 180px;
    place-items: center;
    gap: 8px;
    padding: 30px;
    color: var(--bo-muted);
    border: 1px dashed var(--bo-border-strong);
    border-radius: var(--bo-radius-md);
    background: #fafafd;
    text-align: center;
  }

  .borem-app[data-borem-ui-version] .borem-empty-inline { padding: 18px; color: var(--bo-muted); font-size: 12px; text-align: center; }

  .borem-app[data-borem-ui-version] .borem-search-dropdown,
  .borem-ui-root .borem-search-dropdown {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--bo-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--bo-shadow-md);
  }

  .borem-app[data-borem-ui-version] :where(.gs-result,.borem-search-result) {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border-bottom: 1px solid #eef0f4;
    cursor: pointer;
  }

  .borem-app[data-borem-ui-version] :where(.gs-result,.borem-search-result):hover { background: #f8f8fd; }
  .borem-app[data-borem-ui-version] .gs-result:last-child { border-bottom: 0; }
  .borem-app[data-borem-ui-version] .gs-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--bo-accent-soft); color: var(--bo-accent); font-size: 0; }
  .borem-app[data-borem-ui-version] .gs-icon::before { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 4px; content: ""; }
  .borem-app[data-borem-ui-version] .gs-label { color: var(--bo-heading); font-size: 12px; font-weight: 650; }
  .borem-app[data-borem-ui-version] .gs-sub { margin-top: 2px; color: var(--bo-muted); font-size: 10.5px; }
  .borem-app[data-borem-ui-version] :where(.gs-loading,.gs-empty) { padding: 16px; color: var(--bo-muted); font-size: 12px; text-align: center; }

  .borem-app[data-borem-ui-version] #borem-edit-widgets { display: none; }
  .borem-app[data-borem-ui-version] .borem-profile-menu { position: relative; }
  .borem-app[data-borem-ui-version] .borem-topbar-avatar { cursor: pointer; box-shadow: none; }
  .borem-app[data-borem-ui-version] .borem-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    display: grid;
    min-width: 170px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid var(--bo-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--bo-shadow-md);
  }

  .borem-app[data-borem-ui-version] .borem-profile-dropdown a { padding: 9px 10px; border-radius: 6px; color: #4c5363; font-size: 12px; font-weight: 550; }
  .borem-app[data-borem-ui-version] .borem-profile-dropdown a:hover { background: #f6f6fa; color: var(--bo-heading); }
  .borem-app[data-borem-ui-version] .borem-profile-dropdown .borem-profile-logout { color: var(--bo-red); }

  .borem-help-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 8000;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--bo-accent, #58a6ff);
    color: #fff;
    box-shadow: 0 10px 24px var(--bo-accent-shadow);
    cursor: pointer;
  }

  .borem-help-fab .borem-ico { width: 19px; height: 19px; }
  .borem-help-panel {
    position: fixed;
    z-index: 8500;
    top: 0;
    right: -430px;
    display: flex;
    width: 410px;
    max-width: calc(100vw - 18px);
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--bo-border, #e5e7ef);
    background: #fff;
    box-shadow: -16px 0 42px rgba(28,33,48,.14);
    transition: right 220ms ease;
  }

  .borem-help-panel-head { display: flex; min-height: 64px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--bo-border); }
  .borem-help-panel-head > div { display: flex; align-items: center; gap: 9px; font-weight: 650; }
  .borem-help-panel-search { position: relative; display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--bo-border); }
  .borem-help-panel-search .borem-ico { position: absolute; left: 27px; width: 16px; color: var(--bo-muted); }
  .borem-help-panel-search input { width: 100%; padding-left: 37px; }
  .borem-help-panel-body { flex: 1 1 auto; overflow-y: auto; padding: 14px; }
  .borem-help-panel-footer { padding: 12px 14px; border-top: 1px solid var(--bo-border); }
  .borem-help-panel-footer a { display: flex; align-items: center; justify-content: space-between; color: var(--bo-accent); font-size: 12px; font-weight: 600; }



  .borem-app[data-borem-ui-version] .borem-dashboard { display: grid; gap: 20px; }

  .borem-app[data-borem-ui-version] .borem-dashboard-heading {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius-md);
    background: var(--bo-surface);
    box-shadow: var(--bo-shadow-xs);
  }

  .borem-app[data-borem-ui-version] .borem-dashboard-heading h2 { font-size: 22px; letter-spacing: -.02em; }
  .borem-app[data-borem-ui-version] .borem-dashboard-heading p { margin-top: 5px; color: var(--bo-muted); font-size: 12px; }
  .borem-app[data-borem-ui-version] .borem-dashboard-heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }

  .borem-app[data-borem-ui-version] .borem-dashboard-search { position: relative; }
  .borem-app[data-borem-ui-version] .borem-command-search-wrap {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
  }

  .borem-app[data-borem-ui-version] .borem-command-search-wrap > .borem-ico {
    position: absolute;
    left: 17px;
    z-index: 2;
    width: 18px;
    color: var(--bo-muted);
  }

  .borem-app[data-borem-ui-version] .borem-command-search-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 72px 0 47px;
    border-color: var(--bo-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--bo-shadow-xs);
    font-size: 13px;
  }

  .borem-app[data-borem-ui-version] .borem-command-search-wrap kbd {
    position: absolute;
    right: 12px;
    display: inline-flex;
    height: 24px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid var(--bo-border);
    border-bottom-color: #cfd2dd;
    border-radius: 5px;
    background: #fafafd;
    color: var(--bo-muted);
    box-shadow: 0 1px 0 #dfe2ea;
    font-family: var(--bo-font);
    font-size: 9px;
    font-weight: 650;
  }

  .borem-app[data-borem-ui-version] .borem-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
  }

  .borem-app[data-borem-ui-version] .borem-metric-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 106px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius-md);
    background: var(--bo-surface);
    box-shadow: var(--bo-shadow-xs);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--bo-transition), box-shadow var(--bo-transition), transform var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] .borem-metric-card:hover { border-color: #d5d1fb; box-shadow: var(--bo-shadow-sm); transform: translateY(-2px); }
  .borem-app[data-borem-ui-version] .borem-metric-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 10px; }
  .borem-app[data-borem-ui-version] .borem-metric-icon .borem-ico { width: 19px; height: 19px; stroke-width: 1.8; }
  .borem-app[data-borem-ui-version] .tone-brand { color: var(--bo-accent); background: var(--bo-accent-soft); }
  .borem-app[data-borem-ui-version] .tone-red { color: var(--bo-red); background: var(--bo-red-soft); }
  .borem-app[data-borem-ui-version] .tone-amber { color: var(--bo-amber); background: var(--bo-amber-soft); }
  .borem-app[data-borem-ui-version] .tone-blue { color: var(--bo-blue); background: var(--bo-blue-soft); }
  .borem-app[data-borem-ui-version] .borem-metric-copy { display: grid; min-width: 0; gap: 2px; }
  .borem-app[data-borem-ui-version] .borem-metric-label { color: var(--bo-muted); font-size: 10.5px; font-weight: 600; }
  .borem-app[data-borem-ui-version] .borem-metric-copy strong { color: var(--bo-heading); font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
  .borem-app[data-borem-ui-version] .borem-metric-copy small { overflow: hidden; color: var(--bo-faint); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
  .borem-app[data-borem-ui-version] .borem-metric-arrow { margin-left: auto; color: #bdc2cf; font-size: 17px; transition: transform var(--bo-transition), color var(--bo-transition); }
  .borem-app[data-borem-ui-version] .borem-metric-card:hover .borem-metric-arrow { color: var(--bo-accent); transform: translateX(3px); }

  .borem-app[data-borem-ui-version] .borem-quick-section {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius-md);
    background: var(--bo-surface);
    box-shadow: var(--bo-shadow-xs);
  }

  .borem-app[data-borem-ui-version] .borem-section-heading h3 { font-size: 15px; }
  .borem-app[data-borem-ui-version] .borem-command-actions { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
  .borem-app[data-borem-ui-version] .borem-command-card {
    display: flex;
    min-width: 0;
    min-height: 80px;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--bo-border);
    border-radius: 8px;
    background: #fbfbfd;
    color: var(--bo-text);
    transition: border-color var(--bo-transition), background var(--bo-transition), transform var(--bo-transition);
  }

  .borem-app[data-borem-ui-version] .borem-command-card:hover { border-color: var(--bo-accent-mid); background: #fff; transform: translateY(-1px); }
  .borem-app[data-borem-ui-version] .borem-command-card > span::before { content: none !important; display: none !important; }
  .borem-app[data-borem-ui-version] .borem-command-card-icon { display: grid; width: 34px !important; height: 34px !important; flex: 0 0 34px; place-items: center; margin: 0 !important; border-radius: 8px; background: var(--bo-accent-soft); color: var(--bo-accent); font-size: inherit !important; }
  .borem-app[data-borem-ui-version] .borem-command-card-icon .borem-ico { width: 16px; height: 16px; }
  .borem-app[data-borem-ui-version] .borem-command-card-copy { display: grid; min-width: 0; gap: 3px; }
  .borem-app[data-borem-ui-version] .borem-command-card strong { color: var(--bo-heading); font-size: 11.5px; font-weight: 650; }
  .borem-app[data-borem-ui-version] .borem-command-card small { overflow: hidden; color: var(--bo-muted); font-size: 9.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .borem-app[data-borem-ui-version] .borem-command-card-arrow { margin-left: auto; color: #c0c4cf; font-size: 15px; }

  .borem-app[data-borem-ui-version] .borem-command-widget-config {
    padding: 18px;
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius-md);
    background: var(--bo-surface);
    box-shadow: var(--bo-shadow-xs);
  }

  .borem-app[data-borem-ui-version] .borem-widget-config-head { display:flex;align-items:center;justify-content:space-between;gap:12px; }
  .borem-app[data-borem-ui-version] .borem-widget-config-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
  .borem-app[data-borem-ui-version] .borem-widget-config-grid label { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--bo-border); border-radius: 7px; background: #fafafd; font-size: 11px; }
  .borem-app[data-borem-ui-version] .borem-widget-config-grid input { accent-color: var(--bo-accent); }

  .borem-app[data-borem-ui-version] .borem-home-grid {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(280px,1fr);
    gap: 16px;
    align-items: start;
  }

  .borem-app[data-borem-ui-version] .borem-home-grid .borem-card + .borem-card { margin-top: 0; }
  .borem-app[data-borem-ui-version] .borem-dashboard-schedule { grid-column: 1; grid-row: span 3; }
  .borem-app[data-borem-ui-version] .borem-dashboard-deficiencies,
  .borem-app[data-borem-ui-version] .borem-dashboard-compliance,
  .borem-app[data-borem-ui-version] .borem-dashboard-happiness { grid-column: 2; }
  .borem-app[data-borem-ui-version] .borem-schedule-controls { justify-content: flex-end; }
  .borem-app[data-borem-ui-version] .borem-schedule-controls input { width: 138px; }
  .borem-app[data-borem-ui-version] .borem-schedule-controls select { max-width: 145px; }

  .borem-app[data-borem-ui-version] .borem-deficiency-summary { display: grid; grid-template-columns: 122px minmax(0,1fr); align-items: center; gap: 16px; min-height: 180px; }
  .borem-app[data-borem-ui-version] .borem-donut { position: relative; display: grid; width: 116px; height: 116px; place-items: center; color: var(--bo-heading); }
  .borem-app[data-borem-ui-version] .borem-donut svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
  .borem-app[data-borem-ui-version] .borem-donut circle { fill: none; stroke-width: 10; }
  .borem-app[data-borem-ui-version] .borem-donut .bg { stroke: #eef0f5; }
  .borem-app[data-borem-ui-version] .borem-donut .fg { stroke: var(--bo-accent); stroke-linecap: round; }
  .borem-app[data-borem-ui-version] .borem-donut .center { position: relative; display: grid; place-items: center; gap: 1px; }
  .borem-app[data-borem-ui-version] .borem-donut .num { font-size: 23px; }
  .borem-app[data-borem-ui-version] .borem-donut .label { color: var(--bo-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
  .borem-app[data-borem-ui-version] .borem-legend { display: grid; gap: 8px; }
  .borem-app[data-borem-ui-version] .borem-customer-happiness { display: grid; gap: 7px; min-height: 105px; align-content: center; }
  .borem-app[data-borem-ui-version] .borem-customer-happiness strong { color: var(--bo-heading); font-size: 23px; }
  .borem-app[data-borem-ui-version] .borem-customer-happiness p { color: var(--bo-muted); font-size: 11px; line-height: 1.5; }



  .borem-app[data-borem-ui-version] :where(.borem-page,.borem-record-page,.borem-workspace,.borem-tech-home) { display: grid; gap: 18px; }
  .borem-app[data-borem-ui-version] :where(.borem-grid,.borem-dashboard-grid,.borem-widget-grid,.borem-tech-home-grid) { gap: 16px; }
  .borem-app[data-borem-ui-version] .borem-tech-home-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .borem-app[data-borem-ui-version] .borem-tech-home-hero { background: linear-gradient(135deg,#2c3140,#363c4c); color: #fff; }
  .borem-app[data-borem-ui-version] .borem-tech-home-hero :where(h1,p,.borem-kicker) { color: #fff; }
  .borem-app[data-borem-ui-version] .borem-tech-home-hero .borem-card-body { padding: 26px; }

  .borem-app[data-borem-ui-version] :where(.borem-record-hero,.borem-company-hero,.borem-location-hero,.borem-job-hero) {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 21px;
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius-md);
    background: #fff;
    box-shadow: var(--bo-shadow-xs);
  }

  .borem-app[data-borem-ui-version] :where(.borem-record-hero,.borem-company-hero,.borem-location-hero,.borem-job-hero) h1 { font-size: 22px; }
  .borem-app[data-borem-ui-version] :where(.borem-record-hero,.borem-company-hero,.borem-location-hero,.borem-job-hero) p { margin-top: 5px; color: var(--bo-muted); font-size: 12px; }

  .borem-app[data-borem-ui-version] :where(.borem-record-layout,.borem-detail-layout,.borem-two-column) {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(270px,.85fr);
    gap: 16px;
    align-items: start;
  }

  .borem-app[data-borem-ui-version] :where(.borem-record-main,.borem-record-sidebar,.borem-detail-main,.borem-detail-sidebar) { display: grid; gap: 16px; }
  .borem-app[data-borem-ui-version] :where(.borem-list-toolbar,.borem-table-toolbar,.borem-filterbar,.borem-filter-bar) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--bo-border);
    border-radius: 8px;
    background: #fff;
  }

  .borem-app[data-borem-ui-version] :where(.borem-lifecycle,.borem-job-lifecycle,.borem-progress-steps) {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 15px 18px;
    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius-md);
    background: #fff;
  }

  .borem-app[data-borem-ui-version] :where(.borem-lifecycle-step,.borem-progress-step) {
    position: relative;
    display: flex;
    min-width: 132px;
    align-items: center;
    gap: 8px;
    color: var(--bo-muted);
    font-size: 10px;
    font-weight: 650;
  }

  .borem-app[data-borem-ui-version] :where(.borem-lifecycle-step,.borem-progress-step)::before { width: 24px; height: 24px; flex: 0 0 24px; border: 2px solid var(--bo-border-strong); border-radius: 50%; background: #fff; content: ""; }
  .borem-app[data-borem-ui-version] :where(.borem-lifecycle-step,.borem-progress-step).is-complete::before { border-color: var(--bo-green); background: var(--bo-green); box-shadow: inset 0 0 0 6px var(--bo-green); }
  .borem-app[data-borem-ui-version] :where(.borem-lifecycle-step,.borem-progress-step).is-current { color: var(--bo-heading); }
  .borem-app[data-borem-ui-version] :where(.borem-lifecycle-step,.borem-progress-step).is-current::before { border-color: var(--bo-accent); box-shadow: inset 0 0 0 5px #fff; background: var(--bo-accent); }

  .borem-app[data-borem-ui-version] :where(.borem-readiness,.borem-completion-readiness,.borem-checklist) { display: grid; gap: 8px; }
  .borem-app[data-borem-ui-version] :where(.borem-readiness-item,.borem-checklist-item) { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--bo-border); border-radius: 7px; background: #fafafd; font-size: 11.5px; }

  .borem-app[data-borem-ui-version] :where(.borem-activity-timeline,.borem-v42-timeline,.borem-timeline) { position: relative; display: grid; gap: 0; padding-left: 18px; }
  .borem-app[data-borem-ui-version] :where(.borem-activity-timeline,.borem-v42-timeline,.borem-timeline)::before { position: absolute; top: 8px; bottom: 8px; left: 5px; width: 1px; background: var(--bo-border); content: ""; }
  .borem-app[data-borem-ui-version] :where(.borem-activity-event,.borem-timeline-item) { position: relative; padding: 0 0 18px 18px; }
  .borem-app[data-borem-ui-version] :where(.borem-activity-event,.borem-timeline-item)::before { position: absolute; top: 5px; left: -17px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--bo-accent); box-shadow: 0 0 0 1px var(--bo-accent-mid); content: ""; }

  .borem-app[data-borem-ui-version] :where(.dispatch-shell,.borem-dispatch-workspace,.borem-schedule-workspace) { border: 1px solid var(--bo-border); border-radius: var(--bo-radius-md); background: #fff; box-shadow: var(--bo-shadow-xs); }
  .borem-app[data-borem-ui-version] :where(.db-grid,.dispatch-board-grid) { background: #fbfbfd; }

  .borem-app[data-borem-ui-version] .borem-v43-guided-form { overflow: hidden; border: 1px solid var(--bo-border); border-radius: var(--bo-radius-md); background: #fff; }
  .borem-app[data-borem-ui-version] .borem-v43-stepbar { display: flex; gap: 0; padding: 14px 18px; overflow-x: auto; border-bottom: 1px solid var(--bo-border); background: #fafafd; }
  .borem-app[data-borem-ui-version] .borem-v43-step { min-height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--bo-muted); font-size: 10.5px; font-weight: 650; }
  .borem-app[data-borem-ui-version] .borem-v43-step.is-active { background: var(--bo-accent-soft); color: var(--bo-accent); }
  .borem-app[data-borem-ui-version] .borem-v43-step-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--bo-border); }

  .borem-app[data-borem-ui-version] :where(.borem-kpi,.borem-stat-card,.stat-card) { padding: 16px; border: 1px solid var(--bo-border); border-radius: var(--bo-radius-md); background: #fff; box-shadow: var(--bo-shadow-xs); }
  .borem-app[data-borem-ui-version] :where(.borem-kpi .k,.borem-stat-label) { color: var(--bo-muted); font-size: 10.5px; font-weight: 600; }
  .borem-app[data-borem-ui-version] :where(.borem-kpi .v,.borem-stat-value) { color: var(--bo-heading); font-size: 24px; font-weight: 700; }

  .borem-app[data-borem-ui-version] :where(.notice,.borem-notice,.borem-alert) { padding: 12px 14px; border: 1px solid #d8dce7; border-left: 3px solid var(--bo-blue); border-radius: 7px; background: var(--bo-blue-soft); color: #355d8d; font-size: 11.5px; }
  .borem-app[data-borem-ui-version] :where(.notice-error,.borem-alert-danger) { border-left-color: var(--bo-red); background: var(--bo-red-soft); color: #9e3945; }
  .borem-app[data-borem-ui-version] :where(.notice-success,.borem-alert-success) { border-left-color: var(--bo-green); background: var(--bo-green-soft); color: #176f54; }

  .borem-app[data-borem-ui-version] .borem-editing [data-widget] { outline: 2px dashed var(--bo-accent-mid); outline-offset: 3px; cursor: grab; }
  .borem-app[data-borem-ui-version] .borem-v43-preset-hidden { display: none !important; }



  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version],
  html[data-borem-theme="dark"] .borem-ui-root {
    --bo-canvas: #171a21;
    --bo-surface: #20242d;
    --bo-surface-subtle: #252a34;
    --bo-surface-raised: #242933;
    --bo-sidebar: #20242d;
    --bo-sidebar-deep: #1b1f27;
    --bo-text: #d8dce6;
    --bo-heading: #f2f4f8;
    --bo-muted: #959dad;
    --bo-faint: #767e8e;
    --bo-border: #303641;
    --bo-border-strong: #3a414e;
    --bo-accent-soft: var(--bo-accent-soft);
    --bo-blue-soft: rgba(75,143,247,.16);
    --bo-green-soft: rgba(32,167,121,.16);
    --bo-amber-soft: rgba(229,154,39,.16);
    --bo-red-soft: rgba(224,93,104,.16);
  }

  html[data-borem-theme="dark"] body.borem-app-host { background: #171a21 !important; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-topbar { background: rgba(32,36,45,.94); }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.borem-input,.borem-select) { background: #252a34; color: var(--bo-text); }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.borem-input,.borem-select):focus { background: #272c36; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-global-search input,
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-command-search-wrap input { background: #252a34; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) thead th { background: #252a34; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) tbody tr:hover { background: #242932; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(table,.borem-table,.widefat) a { color: #dbe0ea; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(.borem-tabs,.borem-record-tabs,.borem-section-nav,.nav-tabs) { background: #1c2028; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(.borem-tabs,.borem-record-tabs,.borem-section-nav,.nav-tabs) :where(.active,[aria-selected="true"],[aria-current="page"]) { background: #2a303a; color: #fff; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(.borem-btn,.button,button.borem-btn) { background: #252a34; border-color: #3a414e; color: #d5dae4; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(.borem-btn,.button,button.borem-btn):hover { background: #2b303b; color: #fff; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(.borem-btn.primary,.borem-btn-primary,.button-primary) { background: var(--bo-accent); border-color: var(--bo-accent); color: #fff; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(.borem-empty,.empty-state,.borem-empty-state,.borem-command-card,.borem-widget-config-grid label) { background: #242932; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-search-dropdown,
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-profile-dropdown,
  html[data-borem-theme="dark"] .borem-help-panel { background: #20242d; }
  html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-command-search-wrap kbd { border-color: #3a414e; border-bottom-color: #444b58; background: #252a34; box-shadow: 0 1px 0 #171a21; }



  @media (max-width: 1280px) {
    .borem-app[data-borem-ui-version] .borem-dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .borem-app[data-borem-ui-version] .borem-command-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .borem-app[data-borem-ui-version] .borem-widget-config-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .borem-app[data-borem-ui-version] .borem-global-search { width: min(270px,28vw); }
  }

  @media (max-width: 1050px) {
    .borem-app[data-borem-ui-version] .borem-sidebar { width: var(--bo-sidebar-collapsed); min-width: var(--bo-sidebar-collapsed); }
    .borem-app[data-borem-ui-version] .borem-sidebar :where(.borem-logo-wordmark,.borem-nav-text,.borem-nav-caret,.borem-nav-children,.borem-sidebar-profile-info) { display: none; }
    .borem-app[data-borem-ui-version] .borem-logo { justify-content: center; padding-inline: 0; }
    .borem-app[data-borem-ui-version] .borem-nav { padding-inline: 11px; }
    .borem-app[data-borem-ui-version] .borem-nav-link { justify-content: center; padding-inline: 0; }
    .borem-app[data-borem-ui-version] .borem-sidebar-profile { justify-content: center; padding-inline: 0; }
    .borem-app[data-borem-ui-version] .borem-sidebar-toggle-wrap { display: none; }
    .borem-app[data-borem-ui-version] .borem-home-grid { grid-template-columns: 1fr; }
    .borem-app[data-borem-ui-version] .borem-dashboard-schedule,
    .borem-app[data-borem-ui-version] .borem-dashboard-deficiencies,
    .borem-app[data-borem-ui-version] .borem-dashboard-compliance,
    .borem-app[data-borem-ui-version] .borem-dashboard-happiness { grid-column: 1; grid-row: auto; }
    .borem-app[data-borem-ui-version] :where(.borem-record-layout,.borem-detail-layout,.borem-two-column) { grid-template-columns: 1fr; }
  }

  @media (max-width: 780px) {
    body.admin-bar.borem-app-host .borem-app,
    body.admin-bar.borem-app-host .borem-preloader { top: 46px !important; height: calc(100dvh - 46px) !important; }

    .borem-app[data-borem-ui-version] .borem-sidebar { display: none; }
    .borem-app[data-borem-ui-version] .borem-main { padding-bottom: 64px; }
    .borem-app[data-borem-ui-version] .borem-topbar { height: 60px; min-height: 60px; padding: 0 14px; }
    .borem-app[data-borem-ui-version] .borem-page-title { font-size: 16px; }
    .borem-app[data-borem-ui-version] .borem-topbar-home { display: none; }
    .borem-app[data-borem-ui-version] .borem-global-search { width: 38px; }
    .borem-app[data-borem-ui-version] .borem-global-search input { position: absolute; right: 0; width: 38px !important; padding: 0; opacity: 0; pointer-events: none; }
    .borem-app[data-borem-ui-version] .borem-global-search .borem-search-ico { left: 10px; z-index: 2; pointer-events: auto; }
    .borem-app[data-borem-ui-version] .borem-global-search.is-mobile-open { position: fixed; z-index: 120; top: 8px; right: 10px; left: 10px; width: auto; }
    .borem-app[data-borem-ui-version] .borem-global-search.is-mobile-open input { position: relative; width: 100% !important; padding: 0 14px 0 39px; opacity: 1; pointer-events: auto; box-shadow: 0 12px 34px rgba(25,30,45,.18); }
    .borem-app[data-borem-ui-version] .borem-top-actions > .borem-btn { display: none; }
    .borem-app[data-borem-ui-version] .borem-content { padding: 16px 14px 28px; }

    .borem-app[data-borem-ui-version] .borem-mobile-nav {
      position: fixed;
      z-index: 60;
      right: 0;
      bottom: 0;
      left: 0;
      display: grid;
      height: 64px;
      grid-template-columns: repeat(5,minmax(0,1fr));
      padding: 5px max(6px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));
      border-top: 1px solid var(--bo-border);
      background: rgba(255,255,255,.97);
      box-shadow: 0 -7px 24px rgba(30,35,50,.08);
      backdrop-filter: blur(12px);
    }

    .borem-app[data-borem-ui-version] .borem-mnav-item { display: grid; min-width: 0; place-items: center; align-content: center; gap: 3px; padding: 0; border: 0; background: transparent; color: var(--bo-muted); font-size: 9px; font-weight: 600; }
    .borem-app[data-borem-ui-version] .borem-mnav-item.active { color: var(--bo-accent); }
    .borem-app[data-borem-ui-version] .borem-mnav-ico { display: grid; width: 22px; height: 22px; place-items: center; }
    .borem-app[data-borem-ui-version] .borem-mnav-ico .borem-ico { width: 18px; height: 18px; }

    .borem-app[data-borem-ui-version] .borem-mobile-menu:not([hidden]) { position: fixed; inset: 0; z-index: 90; display: block; }
    .borem-app[data-borem-ui-version] .borem-mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(16,20,28,.52); backdrop-filter: blur(2px); }
    .borem-app[data-borem-ui-version] .borem-mobile-menu-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px,92vw); overflow-y: auto; background: var(--bo-surface); box-shadow: -16px 0 42px rgba(16,20,28,.22); }
    .borem-app[data-borem-ui-version] .borem-mobile-menu-head { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--bo-border); }
    .borem-app[data-borem-ui-version] .borem-mobile-menu-body { display: grid; gap: 4px; padding: 12px; }
    .borem-app[data-borem-ui-version] .borem-mobile-menu-link { display: flex; min-height: 44px; align-items: center; gap: 10px; padding: 0 11px; border-radius: 7px; color: var(--bo-text); }
    .borem-app[data-borem-ui-version] .borem-mobile-menu-link:hover { background: var(--bo-surface-subtle); }

    .borem-app[data-borem-ui-version] .borem-dashboard-heading { align-items: flex-start; flex-direction: column; padding: 18px; }
    .borem-app[data-borem-ui-version] .borem-dashboard-heading h2 { font-size: 20px; }
    .borem-app[data-borem-ui-version] .borem-dashboard-heading-actions { width: 100%; }
    .borem-app[data-borem-ui-version] .borem-dashboard-heading-actions .borem-btn { flex: 1 1 0; }
    .borem-app[data-borem-ui-version] .borem-dashboard-metrics { grid-template-columns: 1fr; gap: 10px; }
    .borem-app[data-borem-ui-version] .borem-metric-card { min-height: 88px; }
    .borem-app[data-borem-ui-version] .borem-command-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .borem-app[data-borem-ui-version] .borem-command-card { min-height: 72px; }
    .borem-app[data-borem-ui-version] .borem-command-search-wrap kbd { display: none; }
    .borem-app[data-borem-ui-version] .borem-command-search-wrap input { padding-right: 14px; }
    .borem-app[data-borem-ui-version] .borem-widget-config-grid { grid-template-columns: 1fr; }
    .borem-app[data-borem-ui-version] .borem-card-head { align-items: flex-start; flex-direction: column; }
    .borem-app[data-borem-ui-version] .borem-card-head > :where(.borem-filters,.borem-cluster) { width: 100%; }
    .borem-app[data-borem-ui-version] .borem-schedule-controls { justify-content: flex-start; }
    .borem-app[data-borem-ui-version] .borem-schedule-controls input,
    .borem-app[data-borem-ui-version] .borem-schedule-controls select { max-width: none; flex: 1 1 120px; }
    .borem-app[data-borem-ui-version] .borem-deficiency-summary { grid-template-columns: 1fr; justify-items: center; }
    .borem-app[data-borem-ui-version] :where(.borem-form-grid,.borem-fields-grid,.borem-grid-form,.borem-tech-home-grid) { grid-template-columns: 1fr; }
    .borem-app[data-borem-ui-version] :where(.borem-section-heading,.borem-page-intro,.borem-workspace-toolbar,.borem-record-hero,.borem-company-hero,.borem-location-hero,.borem-job-hero) { align-items: flex-start; flex-direction: column; }
    .borem-app[data-borem-ui-version] .borem-table-wrap { margin-inline: -18px; width: calc(100% + 36px); max-width: none; }
    .borem-app[data-borem-ui-version] .borem-table-wrap table { min-width: 700px; }
    .borem-help-fab { right: 14px; bottom: 78px; }
  }

  @media (max-width: 480px) {
    .borem-app[data-borem-ui-version] .borem-command-actions { grid-template-columns: 1fr; }
    .borem-app[data-borem-ui-version] .borem-quick-section { padding: 14px; }
    .borem-app[data-borem-ui-version] .borem-dashboard-heading-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .borem-app[data-borem-ui-version] .borem-dashboard-heading-actions .borem-btn { min-width: 0; padding-inline: 9px; }
    .borem-app[data-borem-ui-version] .borem-card-body { padding: 15px; }
    .borem-app[data-borem-ui-version] .borem-table-wrap { margin-inline: -15px; width: calc(100% + 30px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .borem-app[data-borem-ui-version] *,
    .borem-app[data-borem-ui-version] *::before,
    .borem-app[data-borem-ui-version] *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  }



  .borem-help-category,
  .borem-help-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--bo-surface-subtle, #f8f9fc);
    color: var(--bo-text, #2b3040);
    transition: 160ms ease;
  }
  .borem-help-category:hover,
  .borem-help-result:hover { border-color: var(--bo-border, #e5e7ef); background: #fff; }
  .borem-help-category-icon { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px; background: var(--bo-accent-soft, rgba(88,166,255,.12)); position: relative; }
  .borem-help-category-icon::before { position:absolute; inset:8px; border:1.8px solid var(--bo-accent,#58a6ff); border-radius:3px; content:""; }
  .borem-help-result { display:block; }
  .borem-help-result-title { color: var(--bo-heading,#1c2130); font-size:12px; font-weight:650; }
  .borem-help-result-excerpt { margin-top:3px; color:var(--bo-muted,#7a8294); font-size:10.5px; }



  .borem-app[data-borem-ui-version] .borem-create-menu-wrap { position: relative; }
  .borem-app[data-borem-ui-version] .borem-create-menu {
    position: absolute;
    z-index: 90;
    top: calc(100% + 9px);
    right: 0;
    display: grid;
    width: 286px;
    padding: 7px;
    border: 1px solid var(--bo-border);
    border-radius: 10px;
    background: var(--bo-surface);
    box-shadow: var(--bo-shadow-md);
  }
  .borem-app[data-borem-ui-version] .borem-create-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 8px 9px;
    border-radius: 7px;
    color: var(--bo-text);
  }
  .borem-app[data-borem-ui-version] .borem-create-menu a:hover { background: var(--bo-surface-subtle); }
  .borem-app[data-borem-ui-version] .borem-create-menu a > span:last-child { display:grid;gap:2px; }
  .borem-app[data-borem-ui-version] .borem-create-menu strong { color:var(--bo-heading);font-size:11.5px;font-weight:650; }
  .borem-app[data-borem-ui-version] .borem-create-menu small { color:var(--bo-muted);font-size:9.5px; }
  .borem-app[data-borem-ui-version] .borem-create-icon {
    position:relative;
    display:grid;
    width:32px;
    height:32px;
    flex:0 0 32px;
    place-items:center;
    border-radius:8px;
    background:var(--bo-accent-soft);
    color:var(--bo-accent);
  }
  .borem-app[data-borem-ui-version] .borem-create-icon::before {
    width:14px;
    height:14px;
    border:1.8px solid currentColor;
    border-radius:3px;
    content:"";
  }
  .borem-app[data-borem-ui-version] .borem-create-icon[data-icon="location"]::before { border-radius:50% 50% 50% 0; transform:rotate(-45deg);width:12px;height:12px; }
  .borem-app[data-borem-ui-version] .borem-create-icon[data-icon="job"]::before { border-radius:2px;box-shadow:inset 0 4px 0 var(--bo-accent-mid); }
  .borem-app[data-borem-ui-version] .borem-create-icon[data-icon="quote"]::before,
  .borem-app[data-borem-ui-version] .borem-create-icon[data-icon="invoice"]::before { border-radius:2px; }
  .borem-app[data-borem-ui-version] .borem-create-icon[data-icon="recurring"]::before { border-radius:50%;border-right-color:transparent; }

  .borem-app[data-borem-ui-version] .borem-wo-sticky-actions {
    position: static;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin:0 0 16px;
    padding:10px;
    border:1px solid var(--bo-border);
    border-radius:var(--bo-radius-md);
    background:var(--bo-surface);
    box-shadow:var(--bo-shadow-xs);
  }
  .borem-app[data-borem-ui-version] .borem-wo-due-card {
    display:grid;
    min-width:130px;
    gap:1px;
    padding:7px 10px;
    margin-right:auto;
    border-right:1px solid var(--bo-border);
  }
  .borem-app[data-borem-ui-version] .borem-wo-due-card span { color:var(--bo-muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em; }
  .borem-app[data-borem-ui-version] .borem-wo-due-card strong { color:var(--bo-heading);font-size:12px; }
  .borem-app[data-borem-ui-version] .borem-wo-sticky-actions > button {
    display:inline-flex;
    min-height:38px;
    align-items:center;
    gap:7px;
    padding:0 12px;
    border:1px solid var(--bo-border-strong);
    border-radius:7px;
    background:var(--bo-surface);
    color:var(--bo-text);
    font-size:11px;
    font-weight:600;
    cursor:pointer;
  }
  .borem-app[data-borem-ui-version] .borem-wo-sticky-actions > button:hover { border-color:var(--bo-accent-mid);background:var(--bo-accent-soft);color:var(--bo-accent); }
  .borem-app[data-borem-ui-version] .borem-wo-sticky-actions > button.danger:hover { border-color:#f0bbc0;background:var(--bo-red-soft);color:var(--bo-red); }
  .borem-app[data-borem-ui-version] .borem-wo-sticky-actions button span { display:grid;place-items:center; }
  .borem-app[data-borem-ui-version] .borem-wo-sticky-actions button .borem-ico { width:15px;height:15px; }
  .borem-app[data-borem-ui-version] .borem-wo-sticky-actions button em { font-style:normal; }


/* 4.4 professional icon normalization: one restrained, non-emoji UI language. */

  .borem-app[data-borem-ui-version] .borem-btn > .borem-ico {
    width: 15px;
    height: 15px;
    margin-right: 7px;
  }

  .borem-app[data-borem-ui-version] .borem-timeline-dot[data-event-type] {
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid var(--bo-surface);
    border-radius: 50%;
    background: var(--bo-muted);
    box-shadow: 0 0 0 1px var(--bo-border-strong);
    font-size: 0;
  }
  .borem-app[data-borem-ui-version] .borem-timeline-dot[data-event-type="job"] { background: var(--bo-blue); }
  .borem-app[data-borem-ui-version] .borem-timeline-dot[data-event-type="deficiency"] { background: var(--bo-red); }
  .borem-app[data-borem-ui-version] .borem-timeline-dot[data-event-type="inspection"] { background: var(--bo-green); }
  .borem-app[data-borem-ui-version] .borem-timeline-dot[data-event-type="data_update"] { background: var(--bo-muted); }

  .borem-app[data-borem-ui-version] .borem-compliance-clear {
    min-height: 180px;
  }
  .borem-app[data-borem-ui-version] .borem-compliance-clear .borem-empty-state-icon,
  .borem-app[data-borem-ui-version] .borem-kb-empty-icon {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: var(--bo-green-soft);
  }
  .borem-app[data-borem-ui-version] .borem-compliance-clear .borem-empty-state-icon::before {
    position: absolute;
    left: 12px;
    top: 13px;
    width: 18px;
    height: 10px;
    border-left: 2px solid var(--bo-green);
    border-bottom: 2px solid var(--bo-green);
    content: "";
    transform: rotate(-45deg);
  }
  .borem-app[data-borem-ui-version] .borem-kb-empty-icon {
    background: var(--bo-accent-soft);
  }
  .borem-app[data-borem-ui-version] .borem-kb-empty-icon::before {
    position: absolute;
    inset: 11px 13px;
    border: 2px solid var(--bo-accent);
    border-radius: 3px;
    content: "";
  }
  .borem-app[data-borem-ui-version] .borem-kb-empty-icon::after {
    position: absolute;
    left: 20px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: var(--bo-accent);
    content: "";
  }

  .borem-app[data-borem-ui-version] .borem-communication-icon,
  .borem-app[data-borem-ui-version] .borem-kb-icon {
    position: relative;
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 9px;
    background: var(--bo-accent-soft);
    color: var(--bo-accent);
  }
  .borem-app[data-borem-ui-version] .borem-kb-icon.is-large {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 11px;
  }
  .borem-app[data-borem-ui-version] :where(.borem-communication-icon,.borem-kb-icon)::before,
  .borem-app[data-borem-ui-version] :where(.borem-communication-icon,.borem-kb-icon)::after {
    position: absolute;
    content: "";
  }
  .borem-app[data-borem-ui-version] .borem-communication-icon::before {
    width: 14px;
    height: 10px;
    border: 1.7px solid currentColor;
    border-radius: 3px;
  }
  .borem-app[data-borem-ui-version] .borem-communication-icon[data-channel="phone"]::before {
    width: 7px;
    height: 14px;
    border-radius: 7px;
    transform: rotate(-35deg);
  }
  .borem-app[data-borem-ui-version] .borem-communication-icon[data-channel="portal"]::before {
    width: 14px;
    height: 14px;
    border-radius: 50%;
  }
  .borem-app[data-borem-ui-version] .borem-communication-icon[data-channel="manual"]::before,
  .borem-app[data-borem-ui-version] .borem-communication-icon[data-channel="system"]::before {
    width: 12px;
    height: 14px;
    border-radius: 2px;
  }

  .borem-app[data-borem-ui-version] .borem-kb-icon::before {
    width: 14px;
    height: 14px;
    border: 1.7px solid currentColor;
    border-radius: 4px;
  }
  .borem-app[data-borem-ui-version] .borem-kb-icon[data-kb-icon="jobs"]::before,
  .borem-app[data-borem-ui-version] .borem-kb-icon[data-kb-icon="operations"]::before {
    width: 14px;
    height: 10px;
    border-radius: 3px;
    box-shadow: inset 0 3px 0 var(--bo-accent-mid);
  }
  .borem-app[data-borem-ui-version] .borem-kb-icon[data-kb-icon="customers"]::before,
  .borem-app[data-borem-ui-version] .borem-kb-icon[data-kb-icon="projects"]::before {
    border-radius: 2px;
    box-shadow: inset 0 -5px 0 var(--bo-accent-soft);
  }
  .borem-app[data-borem-ui-version] .borem-kb-icon[data-kb-icon="reporting"]::before,
  .borem-app[data-borem-ui-version] .borem-kb-icon[data-kb-icon="sales"]::before {
    width: 14px;
    height: 12px;
    border: 0;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    transform: skewY(-25deg);
  }
  .borem-app[data-borem-ui-version] .borem-kb-icon[data-kb-icon="settings"]::before,
  .borem-app[data-borem-ui-version] .borem-kb-icon[data-kb-icon="admin"]::before {
    border-radius: 50%;
  }


/* ======================================================================
   Borem 4.5 application hardening and record/workspace composition
   Unlayered by design: this file is loaded after the legacy compatibility
   stylesheet, so its application rules reliably win the cascade.
   ====================================================================== */

.borem-app[data-borem-ui-version] {
  --bo-content-max: 1600px;
  --bo-section-gap: 18px;
}

/* Never expose internal release metadata as a title-adjacent UI pill. */
.borem-app[data-borem-ui-version] .borem-release-badge { display: none !important; }

/* Keep application links visually intentional regardless of theme rules. */
.borem-app[data-borem-ui-version] :where(a:not(.borem-btn):not(.borem-nav-link):not(.borem-command-card)) {
  text-decoration: none;
  text-underline-offset: 3px;
}
.borem-app[data-borem-ui-version] :where(.borem-link,.borem-data-link,.borem-job-link) {
  color: var(--bo-accent);
  font-weight: 600;
}
.borem-app[data-borem-ui-version] :where(.borem-link,.borem-data-link,.borem-job-link):hover {
  color: var(--bo-accent-hover);
  text-decoration: none;
}

/* Topbar: keep workspace actions focused and place admin utilities in profile. */
.borem-app[data-borem-ui-version] .borem-title-stack {
  display: grid;
  min-width: 0;
  gap: 1px;
}
.borem-app[data-borem-ui-version] .borem-breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--bo-muted);
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
}
.borem-app[data-borem-ui-version] .borem-breadcrumbs :where(a,span) {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
}
.borem-app[data-borem-ui-version] .borem-breadcrumbs a:hover { color: var(--bo-accent); }
.borem-app[data-borem-ui-version] .borem-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  display: grid;
  width: 220px;
  padding: 7px;
  border: 1px solid var(--bo-border);
  border-radius: 11px;
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-md);
}
.borem-app[data-borem-ui-version] .borem-profile-dropdown[hidden] { display: none !important; }
.borem-app[data-borem-ui-version] .borem-profile-dropdown :where(a,button) {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bo-text);
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}
.borem-app[data-borem-ui-version] .borem-profile-dropdown :where(a,button):hover {
  background: var(--bo-surface-subtle);
  color: var(--bo-heading);
}
.borem-app[data-borem-ui-version] .borem-profile-admin-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--bo-border);
}

/* Dashboard rhythm and responsive density. */
.borem-app[data-borem-ui-version] .borem-dashboard-heading-copy { min-width: 0; }
.borem-app[data-borem-ui-version] .borem-dashboard-heading-copy .borem-eyebrow,
.borem-app[data-borem-ui-version] .borem-section-heading .borem-eyebrow,
.borem-app[data-borem-ui-version] .borem-loc-page-kicker,
.borem-app[data-borem-ui-version] .borem-page-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--bo-accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.borem-app[data-borem-ui-version] .borem-command-actions {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.borem-app[data-borem-ui-version] .borem-command-card {
  min-height: 88px;
  padding: 14px;
}
.borem-app[data-borem-ui-version] .borem-command-card strong { font-size: 12.5px; }
.borem-app[data-borem-ui-version] .borem-command-card small {
  font-size: 10.5px;
  white-space: normal;
}
.borem-app[data-borem-ui-version] .borem-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Shared record-page navigation. */
.borem-app[data-borem-ui-version] .borem-v43-record-tabs {
  position: sticky;
  top: -24px;
  z-index: 12;
  display: flex;
  width: 100%;
  gap: 4px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--bo-border);
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--bo-shadow-xs);
  scrollbar-width: none;
  backdrop-filter: blur(12px);
}
.borem-app[data-borem-ui-version] .borem-v43-record-tabs::-webkit-scrollbar { display: none; }
.borem-app[data-borem-ui-version] .borem-v43-record-tabs button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bo-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.borem-app[data-borem-ui-version] .borem-v43-record-tabs button:hover {
  background: var(--bo-surface-subtle);
  color: var(--bo-heading);
}
.borem-app[data-borem-ui-version] .borem-v43-record-tabs button.is-active {
  background: var(--bo-accent-soft);
  color: var(--bo-accent);
}

/* Company and location records: convert the former one-piece card into a
   composed record workspace with a hero, section rail, and structured data. */
.borem-app[data-borem-ui-version] .borem-location-detail-page {
  display: grid;
  gap: var(--bo-section-gap);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.borem-app[data-borem-ui-version] .borem-location-detail-page > .borem-card-body {
  margin: 0;
  padding: 0;
  background: transparent;
}
.borem-app[data-borem-ui-version] .borem-loc-detail-head {
  display: flex;
  min-height: 132px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--bo-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 94% 16%, var(--bo-accent-soft), transparent 24%),
    linear-gradient(135deg,#fff 0%,var(--bo-accent-soft) 100%);
  box-shadow: var(--bo-shadow-xs);
}
.borem-app[data-borem-ui-version] .borem-loc-detail-head > div:first-child { min-width: 0; }
.borem-app[data-borem-ui-version] .borem-loc-detail-head h2 {
  margin: 0;
  color: var(--bo-heading);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.borem-app[data-borem-ui-version] .borem-loc-detail-head p {
  max-width: 720px;
  margin-top: 7px;
  color: var(--bo-muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.borem-app[data-borem-ui-version] .borem-loc-page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.borem-app[data-borem-ui-version] .borem-btn-contact {
  margin-top: 10px;
  border-color: var(--bo-accent-mid);
  background: var(--bo-accent-soft);
  color: var(--bo-accent);
}
.borem-app[data-borem-ui-version] .borem-location-detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1.85fr) minmax(300px,.75fr);
  gap: 18px;
  align-items: start;
}
.borem-app[data-borem-ui-version] :where(.borem-location-main,.borem-location-side) {
  display: grid;
  min-width: 0;
  gap: 16px;
}
.borem-app[data-borem-ui-version] .borem-loc-detail-section {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: 11px;
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-xs);
}
.borem-app[data-borem-ui-version] .borem-loc-detail-section-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 14px 17px;
  border-bottom: 1px solid var(--bo-border);
  background: var(--bo-surface);
}
.borem-app[data-borem-ui-version] .borem-loc-detail-section-head > div { min-width: 0; }
.borem-app[data-borem-ui-version] .borem-loc-detail-section-head h3 {
  margin: 0;
  color: var(--bo-heading);
  font-size: 13.5px;
  font-weight: 650;
}
.borem-app[data-borem-ui-version] .borem-loc-detail-section-head p {
  margin-top: 3px;
  color: var(--bo-muted);
  font-size: 10.5px;
}
.borem-app[data-borem-ui-version] .borem-loc-detail-section > :not(.borem-loc-detail-section-head) {
  margin: 0;
  padding: 17px;
}
.borem-app[data-borem-ui-version] :where(.borem-meta-grid,.borem-loc-meta-grid,.borem-loc-profile-grid) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.borem-app[data-borem-ui-version] :where(.borem-meta-grid,.borem-loc-meta-grid,.borem-loc-profile-grid) > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] :where(.borem-meta-grid,.borem-loc-meta-grid,.borem-loc-profile-grid) > div > span {
  display: block;
  color: var(--bo-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: normal;
}
.borem-app[data-borem-ui-version] :where(.borem-meta-grid,.borem-loc-meta-grid,.borem-loc-profile-grid) > div > span::after {
  display: none;
  content: none;
}
.borem-app[data-borem-ui-version] :where(.borem-meta-grid,.borem-loc-meta-grid,.borem-loc-profile-grid) > div > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--bo-heading);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}
.borem-app[data-borem-ui-version] .borem-loc-rollup-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.borem-app[data-borem-ui-version] .borem-loc-rollup-grid > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-loc-rollup-grid > div > span {
  color: var(--bo-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.borem-app[data-borem-ui-version] .borem-loc-rollup-grid > div > span::after { display: none; content: none; }
.borem-app[data-borem-ui-version] .borem-loc-rollup-grid > div > strong {
  color: var(--bo-heading);
  font-size: 21px;
  line-height: 1;
}
.borem-app[data-borem-ui-version] :where(.borem-list,.borem-loc-list) {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.borem-app[data-borem-ui-version] :where(.borem-list,.borem-loc-list) > li {
  padding: 12px 0;
  border-bottom: 1px solid var(--bo-border);
}
.borem-app[data-borem-ui-version] :where(.borem-list,.borem-loc-list) > li:first-child { padding-top: 0; }
.borem-app[data-borem-ui-version] :where(.borem-list,.borem-loc-list) > li:last-child { padding-bottom: 0; border-bottom: 0; }
.borem-app[data-borem-ui-version] .borem-loc-edit-shell > .borem-loc-detail-section-head {
  align-items: flex-start;
  flex-direction: column;
}
.borem-app[data-borem-ui-version] .borem-loc-edit-grid {
  display: grid;
  gap: 15px;
}
.borem-app[data-borem-ui-version] .borem-loc-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--bo-border);
  border-radius: 9px;
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-loc-section h4 {
  margin: 0 0 14px;
  color: var(--bo-heading);
  font-size: 12.5px;
}

/* Creation and edit forms. */
.borem-app[data-borem-ui-version] .borem-loc-page {
  display: grid;
  gap: 18px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.borem-app[data-borem-ui-version] .borem-loc-page-head,
.borem-app[data-borem-ui-version] .borem-page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--bo-border);
  border-radius: 11px;
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-xs);
}
.borem-app[data-borem-ui-version] .borem-loc-page-body,
.borem-app[data-borem-ui-version] .borem-loc-create-grid {
  display: grid;
  gap: 16px;
}
.borem-app[data-borem-ui-version] .borem-loc-step {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: 11px;
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-xs);
}
.borem-app[data-borem-ui-version] .borem-loc-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--bo-border);
}
.borem-app[data-borem-ui-version] .borem-loc-step-head + :where(.borem-grid2,.borem-grid,.borem-field-full) {
  padding: 17px;
}
.borem-app[data-borem-ui-version] .borem-loc-step-badge {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--bo-accent-soft);
  color: var(--bo-accent);
  font-size: 11px;
  font-weight: 750;
}
.borem-app[data-borem-ui-version] .borem-loc-step-head h4 { margin: 0; font-size: 13px; }
.borem-app[data-borem-ui-version] .borem-loc-step-head p { margin-top: 2px; color: var(--bo-muted); font-size: 10.5px; }
.borem-app[data-borem-ui-version] .borem-grid2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px 18px;
}
.borem-app[data-borem-ui-version] .borem-grid2 > div,
.borem-app[data-borem-ui-version] .borem-detail-form > div {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
}
.borem-app[data-borem-ui-version] .borem-field-full { grid-column: 1 / -1; }
.borem-app[data-borem-ui-version] .borem-form-progress {
  display: grid;
  grid-template-columns: repeat(var(--borem-step-count,4),minmax(0,1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: 9px;
  background: var(--bo-border);
}
.borem-app[data-borem-ui-version] .borem-form-progress span {
  min-width: 0;
  padding: 10px 8px;
  background: var(--bo-surface);
  color: var(--bo-muted);
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}
.borem-app[data-borem-ui-version] .borem-loc-create-actions {
  position: sticky;
  bottom: -42px;
  z-index: 9;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 0 0;
  background: linear-gradient(180deg,transparent,var(--bo-canvas) 26%);
}

/* Job record layout. */
.borem-app[data-borem-ui-version] .st-job-page {
  display: grid;
  gap: 16px;
}
.borem-app[data-borem-ui-version] .st-job-header {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--bo-border);
  border-radius: 11px;
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-xs);
}
.borem-app[data-borem-ui-version] .st-job-header-top,
.borem-app[data-borem-ui-version] .st-job-header-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.borem-app[data-borem-ui-version] .st-job-header h1 { font-size: 26px; letter-spacing: -.025em; }
.borem-app[data-borem-ui-version] .st-job-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 10px;
}
.borem-app[data-borem-ui-version] .st-job-meta-grid > div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .st-job-meta-grid :where(span,label) {
  color: var(--bo-muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.borem-app[data-borem-ui-version] .st-job-meta-grid strong { color: var(--bo-heading); font-size: 12.5px; }
.borem-app[data-borem-ui-version] .borem-job-progress {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  padding: 0 6px;
}
.borem-app[data-borem-ui-version] .borem-job-progress-step {
  position: relative;
  padding: 25px 7px 0;
  color: var(--bo-faint);
  font-size: 9.5px;
  font-weight: 650;
  text-align: center;
}
.borem-app[data-borem-ui-version] .borem-job-progress-step::before {
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 3px solid var(--bo-canvas);
  border-radius: 50%;
  background: var(--bo-border-strong);
  content: "";
  transform: translateX(-50%);
}
.borem-app[data-borem-ui-version] .borem-job-progress-step::after {
  position: absolute;
  top: 12px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--bo-border);
  content: "";
}
.borem-app[data-borem-ui-version] .borem-job-progress-step:first-child::after { display: none; }
.borem-app[data-borem-ui-version] .borem-job-progress-step.is-complete::before,
.borem-app[data-borem-ui-version] .borem-job-progress-step.is-current::before { background: var(--bo-accent); }
.borem-app[data-borem-ui-version] .borem-job-progress-step.is-complete::after { background: var(--bo-accent); }
.borem-app[data-borem-ui-version] .borem-job-progress-step.is-current { color: var(--bo-accent); }
.borem-app[data-borem-ui-version] :where(.st-accordion,.borem-v42-accordion,.borem-job-section) {
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: 11px;
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-xs);
}
.borem-app[data-borem-ui-version] .st-accordion-header {
  min-height: 58px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--bo-border);
  background: var(--bo-surface);
}

/* Workspaces, filters, lists, reports, and catalogs. */
.borem-app[data-borem-ui-version] :where(.borem-workspace,.borem-page-dispatch,.borem-kb-page,.borem-account-page) {
  display: grid;
  gap: 16px;
}
.borem-app[data-borem-ui-version] :where(.borem-filters,.borem-loc-filters,.borem-time-filters,.borem-wo-toolbar,.borem-workspace-toolbar) {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.borem-app[data-borem-ui-version] :where(.borem-filters,.borem-loc-filters,.borem-time-filters) > div {
  display: grid;
  min-width: 150px;
  gap: 6px;
}
.borem-app[data-borem-ui-version] :where(.borem-card-body,.borem-loc-page-body) > .borem-filters:first-child {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--bo-border);
  border-radius: 9px;
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-empty-state,
.borem-app[data-borem-ui-version] .empty-state,
.borem-app[data-borem-ui-version] .borem-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 28px;
  border: 1px dashed var(--bo-border-strong);
  border-radius: 10px;
  background: var(--bo-surface-subtle);
  color: var(--bo-muted);
  text-align: center;
}

/* Dark mode additions for newly composed routes. */
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(
  .borem-v43-record-tabs,.borem-loc-detail-head,.borem-loc-detail-section,
  .borem-loc-page-head,.borem-page-intro,.borem-loc-step,.st-job-header,
  .st-accordion,.borem-v42-accordion,.borem-job-section,.borem-profile-dropdown
) {
  border-color: #343b48;
  background: #242932;
  color: #d9dde6;
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(
  .borem-meta-grid,.borem-loc-meta-grid,.borem-loc-profile-grid
) > div,
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-loc-rollup-grid > div,
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-loc-section,
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .st-job-meta-grid > div {
  border-color: #343b48;
  background: #20252d;
}

@media (max-width: 1240px) {
  .borem-app[data-borem-ui-version] .borem-command-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .borem-app[data-borem-ui-version] .borem-location-detail-grid { grid-template-columns: minmax(0,1fr) 300px; }
}

@media (max-width: 980px) {
  .borem-app[data-borem-ui-version] .borem-location-detail-grid { grid-template-columns: 1fr; }
  .borem-app[data-borem-ui-version] .borem-location-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .borem-app[data-borem-ui-version] .borem-dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .borem-app[data-borem-ui-version] .borem-title-stack { gap: 0; }
  .borem-app[data-borem-ui-version] .borem-breadcrumbs { display: none; }
  .borem-app[data-borem-ui-version] .borem-loc-detail-head,
  .borem-app[data-borem-ui-version] .borem-loc-page-head,
  .borem-app[data-borem-ui-version] .borem-page-intro,
  .borem-app[data-borem-ui-version] .st-job-header-top,
  .borem-app[data-borem-ui-version] .st-job-header-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .borem-app[data-borem-ui-version] .borem-loc-detail-head { min-height: 0; padding: 18px; }
  .borem-app[data-borem-ui-version] .borem-loc-detail-head h2 { font-size: 23px; }
  .borem-app[data-borem-ui-version] .borem-loc-page-actions { width: 100%; justify-content: stretch; }
  .borem-app[data-borem-ui-version] .borem-loc-page-actions .borem-btn { flex: 1 1 auto; }
  .borem-app[data-borem-ui-version] :where(.borem-meta-grid,.borem-loc-meta-grid,.borem-loc-profile-grid,.borem-grid2) { grid-template-columns: 1fr; }
  .borem-app[data-borem-ui-version] .borem-location-side { grid-template-columns: 1fr; }
  .borem-app[data-borem-ui-version] .borem-command-actions { grid-template-columns: 1fr; }
  .borem-app[data-borem-ui-version] .borem-command-card { min-height: 76px; }
  .borem-app[data-borem-ui-version] .borem-form-progress { display: flex; overflow-x: auto; }
  .borem-app[data-borem-ui-version] .borem-form-progress span { min-width: 120px; }
  .borem-app[data-borem-ui-version] .borem-job-progress { overflow-x: auto; grid-template-columns: repeat(6,120px); }
  .borem-app[data-borem-ui-version] .borem-v43-record-tabs { top: -16px; }
}

/* Keep quick-action cards compact, horizontal, and scannable. */
.borem-app[data-borem-ui-version] .borem-command-card {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
}
.borem-app[data-borem-ui-version] .borem-command-card-icon {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px;
}
.borem-app[data-borem-ui-version] .borem-command-card-copy {
  align-items: start;
  text-align: left;
}

/* --------------------------------------------------------------------------
 * 4.6.0 route completion layer
 * Covers secondary operational screens that previously fell back to legacy
 * WordPress/plugin presentation. Keep every route inside the same app system.
 * -------------------------------------------------------------------------- */

.borem-app[data-borem-ui-version] .borem-btn-ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #5b6476;
}
.borem-app[data-borem-ui-version] .borem-btn-ghost:hover {
  border-color: var(--bo-border);
  background: var(--bo-surface-subtle);
  color: var(--bo-heading);
}

.borem-app[data-borem-ui-version] .borem-card-head-tight {
  min-height: 48px;
  padding: 12px 16px;
}
.borem-app[data-borem-ui-version] .borem-card-body-tight {
  padding: 14px 16px;
}

.borem-app[data-borem-ui-version] :where(
  .borem-detail-form-actions,
  .borem-loc-create-actions-tight
) {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--bo-border);
}

.borem-app[data-borem-ui-version] :where(
  .borem-loc-filter-grid,
  .borem-filter-grid-company,
  .borem-filter-grid-contract
) {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}
.borem-app[data-borem-ui-version] .borem-loc-filter-search {
  grid-column: span 2;
}
.borem-app[data-borem-ui-version] .borem-loc-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.borem-app[data-borem-ui-version] .borem-loc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.borem-app[data-borem-ui-version] .borem-loc-toolbar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.borem-app[data-borem-ui-version] .borem-loc-create-shell {
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-xs);
}
.borem-app[data-borem-ui-version] .borem-loc-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--bo-border);
  background: linear-gradient(135deg,var(--bo-surface) 0%,var(--bo-accent-soft) 100%);
}
.borem-app[data-borem-ui-version] .borem-loc-create-head h3 {
  margin-top: 3px;
  font-size: 18px;
}
.borem-app[data-borem-ui-version] .borem-loc-create-head p {
  max-width: 720px;
  margin-top: 5px;
  color: var(--bo-muted);
  font-size: 12.5px;
}
.borem-app[data-borem-ui-version] .borem-new-company-fields {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] :where(.borem-google-place-name,.borem-google-address) {
  padding-right: 38px;
  background-image: radial-gradient(circle at calc(100% - 19px) 50%,var(--bo-accent) 0 3px,transparent 4px);
  background-repeat: no-repeat;
}

.borem-app[data-borem-ui-version] .borem-location-detail-body {
  padding: 0;
}
.borem-app[data-borem-ui-version] .borem-loc-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.borem-app[data-borem-ui-version] .borem-loc-section-head h3 {
  font-size: 15px;
}
.borem-app[data-borem-ui-version] .borem-loc-section-head p {
  max-width: 720px;
  margin-top: 4px;
  color: var(--bo-muted);
  font-size: 12px;
}
.borem-app[data-borem-ui-version] .borem-loc-notes-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.borem-app[data-borem-ui-version] :where(.borem-upload,.borem-upload-form,.borem-loc-upload-form) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 13px;
  border: 1px dashed var(--bo-border-strong);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] :where(.borem-upload,.borem-upload-form) input[type="file"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 7px 9px;
  background: #fff;
}
.borem-app[data-borem-ui-version] :where(.borem-upload,.borem-upload-form) select {
  width: auto;
  min-width: 130px;
}
.borem-app[data-borem-ui-version] .borem-job-create-files {
  padding: 14px;
  border: 1px dashed var(--bo-border-strong);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-job-create-files p {
  margin-top: 7px;
}

.borem-app[data-borem-ui-version] .borem-attachment-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border: 1px dashed var(--bo-border-strong);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-attachment-list {
  display: flex;
  flex: 1 1 320px;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.borem-app[data-borem-ui-version] .borem-attachment-list:empty::before {
  content: "No attachments selected";
  align-self: center;
  color: var(--bo-muted);
  font-size: 12px;
}
.borem-app[data-borem-ui-version] .borem-attachment-list > * {
  overflow: hidden;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-sm);
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.borem-app[data-borem-ui-version] .borem-import-upload-card {
  margin-bottom: 18px;
  border-color: var(--bo-accent-mid);
  background: linear-gradient(135deg,var(--bo-accent-soft) 0%,var(--bo-surface) 64%);
  box-shadow: none;
}
.borem-app[data-borem-ui-version] .borem-import-support-note {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface-subtle);
}

.borem-app[data-borem-ui-version] .borem-time-card > .borem-card-body {
  padding: 0;
}
.borem-app[data-borem-ui-version] .borem-time-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.borem-app[data-borem-ui-version] .borem-time-summary {
  padding: 22px;
  border: 1px solid var(--bo-accent-mid);
  border-radius: var(--bo-radius-lg);
  background: linear-gradient(135deg,var(--bo-surface) 0%,var(--bo-accent-soft) 100%);
}
.borem-app[data-borem-ui-version] .borem-time-summary h3 {
  margin-top: 4px;
  font-size: 20px;
}
.borem-app[data-borem-ui-version] .borem-time-kpis {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-top: 17px;
}
.borem-app[data-borem-ui-version] .borem-time-kpis > * {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: rgba(255,255,255,.85);
}
.borem-app[data-borem-ui-version] :where(.borem-time-tech,.borem-time-log,.borem-time-team) {
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-surface);
}

.borem-app[data-borem-ui-version] .borem-kb-page {
  display: grid;
  gap: 18px;
}
.borem-app[data-borem-ui-version] .borem-kb-hero {
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg,var(--bo-primary) 0%,color-mix(in srgb,var(--bo-primary) 72%,#111827) 62%,var(--bo-accent) 145%);
  color: #fff;
  box-shadow: var(--bo-shadow-md);
}
.borem-app[data-borem-ui-version] .borem-kb-hero .borem-card-body {
  max-width: 880px;
  padding: 34px;
}
.borem-app[data-borem-ui-version] .borem-kb-hero :where(h1,p,.borem-kicker) {
  color: #fff;
}
.borem-app[data-borem-ui-version] .borem-kb-hero h1 {
  margin-top: 5px;
  font-size: 28px;
}
.borem-app[data-borem-ui-version] .borem-kb-hero > .borem-card-body > p:not(.borem-kicker) {
  max-width: 690px;
  margin-top: 8px;
  color: rgba(255,255,255,.74);
}
.borem-app[data-borem-ui-version] .borem-kb-search {
  position: relative;
  max-width: 640px;
  margin-top: 22px;
}
.borem-app[data-borem-ui-version] .borem-kb-search > span {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: #768095;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
}
.borem-app[data-borem-ui-version] .borem-kb-search input {
  min-height: 48px;
  padding-left: 42px;
  border: 0;
  box-shadow: 0 10px 28px rgba(12,16,27,.18);
}
.borem-app[data-borem-ui-version] .borem-kb-starts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.borem-app[data-borem-ui-version] .borem-kb-starts .borem-btn {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.09);
  color: #fff;
}
.borem-app[data-borem-ui-version] .borem-kb-starts .borem-btn:hover {
  background: rgba(255,255,255,.16);
}
.borem-app[data-borem-ui-version] .borem-kb-layout {
  display: grid;
  grid-template-columns: 255px minmax(0,1fr);
  align-items: start;
  gap: 18px;
}
.borem-app[data-borem-ui-version] .borem-kb-sidebar {
  position: sticky;
  top: 0;
}
.borem-app[data-borem-ui-version] .borem-kb-all {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--bo-radius-sm);
  background: var(--bo-accent-soft);
  color: var(--bo-accent);
  font-weight: 650;
  text-align: left;
}
.borem-app[data-borem-ui-version] .borem-kb-content {
  min-width: 0;
}
.borem-app[data-borem-ui-version] :where(#kb-article-list,#kb-article-content) {
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-xs);
}
.borem-app[data-borem-ui-version] #kb-article-content {
  padding: 24px;
}

.borem-app[data-borem-ui-version] .proj-tabs {
  overflow: hidden;
}
.borem-app[data-borem-ui-version] .proj-tab-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 7px;
  border-bottom: 1px solid var(--bo-border);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .proj-tab {
  min-height: 36px;
  padding: 8px 13px;
  border: 0;
  border-radius: var(--bo-radius-sm);
  background: transparent;
  color: var(--bo-muted);
  font-weight: 650;
  white-space: nowrap;
}
.borem-app[data-borem-ui-version] .proj-tab:hover {
  background: #fff;
  color: var(--bo-heading);
}
.borem-app[data-borem-ui-version] .proj-tab.active {
  background: var(--bo-accent);
  color: #fff;
  box-shadow: 0 4px 12px var(--bo-accent-mid);
}

.borem-app[data-borem-ui-version] .borem-invoice-print-page {
  max-width: 960px;
  margin-inline: auto;
}
.borem-app[data-borem-ui-version] .borem-invoice-print-page .borem-card-body {
  padding: 34px;
}

.borem-app[data-borem-ui-version] .borem-route-error {
  max-width: 720px;
  margin: 60px auto 0;
  border-color: #ffd4d8;
}
.borem-app[data-borem-ui-version] .borem-route-error .borem-card-head {
  background: var(--bo-red-soft);
}
.borem-app[data-borem-ui-version] :where(code,.code) {
  border-radius: 5px;
  background: #f0f1f6;
  color: #384052;
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size: .92em;
}
.borem-app[data-borem-ui-version] code {
  padding: 2px 5px;
}
.borem-app[data-borem-ui-version] :where(textarea.large-text,.large-text) {
  width: 100%;
}

.borem-app[data-borem-ui-version] .borem-mobile-menu-logout {
  margin-top: 10px;
  border-top: 1px solid var(--bo-border);
  color: var(--bo-red);
}
.borem-app[data-borem-ui-version] :where(.borem-theme-icon-dark,.borem-theme-icon-light) {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(
  .borem-new-company-fields,.borem-upload,.borem-upload-form,.borem-loc-upload-form,
  .borem-job-create-files,.borem-import-support-note,.borem-time-kpis > *,
  .borem-attachment-picker,.borem-attachment-list > *
) {
  border-color: #3a414e;
  background: #20252d;
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-loc-create-head {
  border-color: #343b48;
  background: linear-gradient(135deg,#242932 0%,color-mix(in srgb,var(--bo-primary) 18%,var(--bo-surface)) 100%);
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-time-summary {
  border-color: var(--bo-primary-mid);
  background: linear-gradient(135deg,#242932 0%,color-mix(in srgb,var(--bo-primary) 18%,var(--bo-surface)) 100%);
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(#kb-article-list,#kb-article-content) {
  border-color: #343b48;
  background: #242932;
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(code,.code) {
  background: #1d2129;
  color: #d5dae4;
}

@media (max-width: 980px) {
  .borem-app[data-borem-ui-version] :where(.borem-loc-filter-grid,.borem-filter-grid-company,.borem-filter-grid-contract) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .borem-app[data-borem-ui-version] .borem-kb-layout { grid-template-columns: 1fr; }
  .borem-app[data-borem-ui-version] .borem-kb-sidebar { position: static; }
  .borem-app[data-borem-ui-version] .borem-time-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .borem-app[data-borem-ui-version] :where(.borem-loc-filter-grid,.borem-filter-grid-company,.borem-filter-grid-contract) {
    grid-template-columns: 1fr;
  }
  .borem-app[data-borem-ui-version] .borem-loc-filter-search { grid-column: auto; }
  .borem-app[data-borem-ui-version] .borem-loc-filter-actions,
  .borem-app[data-borem-ui-version] .borem-loc-create-head,
  .borem-app[data-borem-ui-version] .borem-loc-section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .borem-app[data-borem-ui-version] .borem-loc-notes-grid,
  .borem-app[data-borem-ui-version] .borem-time-kpis {
    grid-template-columns: 1fr;
  }
  .borem-app[data-borem-ui-version] .borem-kb-hero .borem-card-body { padding: 24px 19px; }
  .borem-app[data-borem-ui-version] .borem-kb-hero h1 { font-size: 24px; }
  .borem-app[data-borem-ui-version] :where(.borem-upload,.borem-upload-form,.borem-loc-upload-form) {
    align-items: stretch;
    flex-direction: column;
  }
  .borem-app[data-borem-ui-version] :where(.borem-upload,.borem-upload-form) select,
  .borem-app[data-borem-ui-version] :where(.borem-upload,.borem-upload-form) .borem-btn {
    width: 100%;
  }
}

@media print {
  body.borem-app-host { overflow: visible !important; background: #fff !important; }
  .borem-app[data-borem-ui-version] { position: static; display: block; overflow: visible; background: #fff; }
  .borem-app[data-borem-ui-version] :where(.borem-sidebar,.borem-topbar,.borem-mobile-bottom-nav,.borem-help-fab,.borem-help-panel) { display: none !important; }
  .borem-app[data-borem-ui-version] .borem-main,
  .borem-app[data-borem-ui-version] .borem-content { display: block; overflow: visible; padding: 0; }
  .borem-app[data-borem-ui-version] .borem-invoice-print-page { max-width: none; border: 0; box-shadow: none; }
}

/* Single, CSS-independent utility glyphs for runtime-generated controls. */
.borem-app[data-borem-ui-version] .borem-close-glyph {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}
.borem-app[data-borem-ui-version] .borem-close-glyph::before,
.borem-app[data-borem-ui-version] .borem-close-glyph::after {
  position: absolute;
  top: 7px;
  left: 2px;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}
.borem-app[data-borem-ui-version] .borem-close-glyph::before { transform: rotate(45deg); }
.borem-app[data-borem-ui-version] .borem-close-glyph::after { transform: rotate(-45deg); }
.borem-app[data-borem-ui-version] .borem-inline-check {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--bo-green-soft);
  vertical-align: -3px;
}
.borem-app[data-borem-ui-version] .borem-inline-check::after {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid var(--bo-green);
  border-left: 1.5px solid var(--bo-green);
  content: "";
  transform: rotate(-45deg);
}
.borem-app[data-borem-ui-version] .borem-kb-search-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}
.borem-app[data-borem-ui-version] .borem-kb-search-icon .borem-ico {
  width: 18px;
  height: 18px;
}

.borem-app[data-borem-ui-version] .borem-readiness-item > .borem-readiness-indicator,
.borem-app[data-borem-ui-version] .borem-readiness-list > div > .borem-readiness-indicator {
  position: relative;
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid #e5aa54;
  border-radius: 50%;
  background: var(--bo-amber-soft);
}
.borem-app[data-borem-ui-version] .borem-readiness-item > .borem-readiness-indicator::before,
.borem-app[data-borem-ui-version] .borem-readiness-list > div > .borem-readiness-indicator::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bo-amber);
  content: "";
}
.borem-app[data-borem-ui-version] .borem-readiness-item.is-ready > .borem-readiness-indicator,
.borem-app[data-borem-ui-version] .borem-readiness-list > div.is-done > .borem-readiness-indicator {
  border-color: #8dd5bd;
  background: var(--bo-green-soft);
}
.borem-app[data-borem-ui-version] .borem-readiness-item.is-ready > .borem-readiness-indicator::before,
.borem-app[data-borem-ui-version] .borem-readiness-list > div.is-done > .borem-readiness-indicator::before {
  width: 7px;
  height: 4px;
  border-radius: 0;
  border-bottom: 1.5px solid var(--bo-green);
  border-left: 1.5px solid var(--bo-green);
  background: transparent;
  transform: rotate(-45deg);
}
.borem-app[data-borem-ui-version] .borem-expand-glyph {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.borem-app[data-borem-ui-version] .borem-expand-glyph::before {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
}

/* --------------------------------------------------------------------------
 * Field, technician, location-list, print and secondary dynamic components.
 * -------------------------------------------------------------------------- */

.borem-app[data-borem-ui-version] :where(.borem-loc-link,.borem-company-modal-link,.borem-record-modal-link) {
  color: var(--bo-heading);
  font-weight: 650;
}
.borem-app[data-borem-ui-version] :where(.borem-loc-link,.borem-company-modal-link,.borem-record-modal-link):hover {
  color: var(--bo-accent);
}
.borem-app[data-borem-ui-version] .borem-loc-companycol {
  display: grid;
  gap: 3px;
}
.borem-app[data-borem-ui-version] .borem-loc-address {
  max-width: 360px;
  color: #4f586b;
  line-height: 1.42;
}
.borem-app[data-borem-ui-version] .borem-loc-sitebits {
  display: grid;
  gap: 6px;
}
.borem-app[data-borem-ui-version] .borem-loc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.borem-app[data-borem-ui-version] .borem-loc-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--bo-accent-mid);
  border-radius: 999px;
  background: var(--bo-accent-soft);
  color: var(--bo-primary);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
}
.borem-app[data-borem-ui-version] .borem-jobs-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--bo-border-strong);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-surface-subtle);
  color: var(--bo-muted);
  text-align: center;
}
.borem-app[data-borem-ui-version] .borem-job-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--bo-accent-soft);
  color: var(--bo-accent);
}
.borem-app[data-borem-ui-version] .borem-owner-select {
  min-width: 180px;
}

.borem-app[data-borem-ui-version] .borem-tech-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--bo-border);
  border-radius: 999px;
  background: var(--bo-surface-subtle);
  color: #596174;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: capitalize;
}
.borem-app[data-borem-ui-version] :where(.borem-tech-detail-grid,.borem-tech-detail-list) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.borem-app[data-borem-ui-version] .borem-tech-detail-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-tech-detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.borem-app[data-borem-ui-version] .borem-tech-detail-stack {
  display: grid;
  gap: 7px;
}
.borem-app[data-borem-ui-version] .borem-tech-detail-stack p {
  padding-top: 7px;
  border-top: 1px solid var(--bo-border);
  color: #535c6e;
  font-size: 12px;
}
.borem-app[data-borem-ui-version] .borem-tech-detail-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-surface);
}

.borem-app[data-borem-ui-version] .borem-tech-home-time-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--bo-heading);
  font-size: 24px;
  font-weight: 700;
}
.borem-app[data-borem-ui-version] .borem-tech-home-time-total small {
  color: var(--bo-muted);
  font-size: 11px;
  font-weight: 500;
}
.borem-app[data-borem-ui-version] .borem-tech-home-week {
  display: grid;
  grid-template-columns: repeat(7,minmax(36px,1fr));
  align-items: end;
  gap: 8px;
  min-height: 110px;
  margin-top: 16px;
}
.borem-app[data-borem-ui-version] .borem-tech-home-day {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--bo-muted);
  font-size: 10px;
}
.borem-app[data-borem-ui-version] .borem-tech-home-bar {
  display: block;
  width: 16px;
  min-height: 4px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg,var(--bo-primary) 0%,var(--bo-accent) 100%);
}

.borem-app[data-borem-ui-version] :where(.borem-tech-job-head,.borem-tech-work-stage-head,.borem-tech-work-head,.borem-tech-route-head) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.borem-app[data-borem-ui-version] .borem-tech-job-summary {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-tech-job-notes {
  padding: 13px 14px;
  border-left: 3px solid var(--bo-accent);
  border-radius: 0 var(--bo-radius-sm) var(--bo-radius-sm) 0;
  background: var(--bo-accent-soft);
  color: #4f586b;
}
.borem-app[data-borem-ui-version] .borem-tech-job-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface);
}
.borem-app[data-borem-ui-version] .borem-tech-job-option:hover {
  border-color: var(--bo-accent-mid);
  box-shadow: var(--bo-shadow-xs);
}

.borem-app[data-borem-ui-version] .borem-tech-paperwork-list {
  display: grid;
  gap: 9px;
}
.borem-app[data-borem-ui-version] .borem-tech-paperwork-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface);
}

.borem-app[data-borem-ui-version] .borem-tech-route-overview {
  display: grid;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-surface);
}
.borem-app[data-borem-ui-version] .borem-tech-route-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--bo-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.borem-app[data-borem-ui-version] .borem-tech-route-stops {
  display: grid;
  gap: 8px;
}
.borem-app[data-borem-ui-version] .borem-tech-stop {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-tech-stop-index {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--bo-accent-soft);
  color: var(--bo-accent);
  font-size: 11px;
  font-weight: 700;
}

.borem-app[data-borem-ui-version] .borem-tech-work-shell {
  display: grid;
  gap: 14px;
}
.borem-app[data-borem-ui-version] .borem-tech-work-stage {
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-xs);
}
.borem-app[data-borem-ui-version] .borem-tech-work-stage-head {
  padding: 15px 17px;
  border-bottom: 1px solid var(--bo-border);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-tech-work-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border-bottom: 1px solid var(--bo-border);
}
.borem-app[data-borem-ui-version] .borem-tech-work-kpi {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-md);
  background: var(--bo-surface-subtle);
}
.borem-app[data-borem-ui-version] .borem-tech-work-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 17px;
  border-top: 1px solid var(--bo-border);
  background: var(--bo-surface-subtle);
}

.borem-app[data-borem-ui-version] .borem-tech-pdf-shell {
  position: fixed;
  inset: 18px;
  z-index: 10060;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  overflow: hidden;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-surface);
  box-shadow: 0 28px 90px rgba(17,22,35,.28);
}
.borem-app[data-borem-ui-version] .borem-tech-pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bo-border);
  background: #fff;
}
.borem-app[data-borem-ui-version] .borem-tech-pdf-layout {
  display: grid;
  grid-template-columns: 270px minmax(0,1fr) 310px;
  min-height: 0;
}
.borem-app[data-borem-ui-version] :where(.borem-tech-pdf-panel,.borem-tech-pdf-toolgroup) {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--bo-border);
  background: var(--bo-surface-subtle);
  overflow: auto;
}
.borem-app[data-borem-ui-version] .borem-tech-pdf-stage-wrap {
  min-width: 0;
  overflow: auto;
  padding: 24px;
  background: #e9ebf1;
}
.borem-app[data-borem-ui-version] .borem-tech-pdf-stage {
  position: relative;
  width: min(100%,900px);
  min-height: 720px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21,26,38,.16);
}
.borem-app[data-borem-ui-version] :where(.borem-tech-pdf-fields,.borem-tech-pdf-stamp-library) {
  display: grid;
  gap: 8px;
}
.borem-app[data-borem-ui-version] .borem-tech-pdf-field-card {
  padding: 10px;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-sm);
  background: #fff;
}
.borem-app[data-borem-ui-version] .borem-tech-pdf-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.borem-app[data-borem-ui-version] .borem-tech-pdf-mini-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin-top: 8px;
}
.borem-app[data-borem-ui-version] .borem-tech-pdf-page-label {
  color: var(--bo-muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}
.borem-app[data-borem-ui-version] .borem-tech-pdf-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.borem-app[data-borem-ui-version] .borem-time-log-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.borem-app[data-borem-ui-version] .borem-time-log-list > li {
  display: grid;
  grid-template-columns: minmax(120px,.7fr) minmax(160px,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bo-border);
}
.borem-app[data-borem-ui-version] .borem-time-log-list > li:last-child { border-bottom: 0; }
.borem-app[data-borem-ui-version] :where(.borem-time-locked,.borem-time-queued) {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
}
.borem-app[data-borem-ui-version] .borem-time-locked {
  background: var(--bo-green-soft);
  color: #167457;
}
.borem-app[data-borem-ui-version] .borem-time-queued {
  background: var(--bo-amber-soft);
  color: #946018;
}
.borem-app[data-borem-ui-version] .borem-time-team-table {
  width: 100%;
}

.borem-app[data-borem-ui-version] .borem-workspace-copy {
  min-width: 0;
}
.borem-app[data-borem-ui-version] .borem-workspace-copy h2 {
  margin-top: 2px;
  font-size: 19px;
}
.borem-app[data-borem-ui-version] .borem-workspace-copy p {
  margin-top: 4px;
  color: var(--bo-muted);
  font-size: 12px;
}

.borem-app[data-borem-ui-version] .borem-invoice-print-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--invoice-accent,var(--bo-accent));
}
.borem-app[data-borem-ui-version] .borem-invoice-print-logo {
  width: auto;
  max-width: 180px;
  height: 58px;
  object-fit: contain;
}
.borem-app[data-borem-ui-version] .borem-invoice-print-band {
  margin-block: 16px;
  padding: 12px 14px;
  border-radius: var(--bo-radius-sm);
  background: color-mix(in srgb,var(--invoice-accent,var(--bo-accent)) 8%,#fff);
}

.borem-app[data-borem-ui-version] .borem-guide-tip {
  padding: 12px 14px;
  border-left: 3px solid var(--bo-blue);
  border-radius: 0 var(--bo-radius-sm) var(--bo-radius-sm) 0;
  background: var(--bo-blue-soft);
  color: #42536e;
}
.borem-app[data-borem-ui-version] .borem-attachment-file-name {
  overflow: hidden;
  min-width: 0;
  color: var(--bo-heading);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.borem-app[data-borem-ui-version] .borem-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-sm);
  background: #fff;
  color: #586174;
}
.borem-app[data-borem-ui-version] .borem-modal-close:hover {
  background: var(--bo-surface-subtle);
  color: var(--bo-heading);
}

html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(
  .borem-tech-detail-card,.borem-tech-job-summary,.borem-tech-paperwork-card,
  .borem-tech-route-overview,.borem-tech-stop,.borem-tech-work-stage,
  .borem-tech-pdf-field-card,.borem-tech-detail-section,.borem-tech-job-option
) {
  border-color: #343b48;
  background: #242932;
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(
  .borem-tech-work-stage-head,.borem-tech-work-footer,.borem-tech-pdf-panel,
  .borem-tech-pdf-toolgroup
) {
  border-color: #343b48;
  background: #20252d;
}

@media (max-width: 1080px) {
  .borem-app[data-borem-ui-version] .borem-tech-pdf-layout {
    grid-template-columns: 220px minmax(0,1fr);
  }
  .borem-app[data-borem-ui-version] .borem-tech-pdf-layout > :last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--bo-border);
  }
}

@media (max-width: 780px) {
  .borem-app[data-borem-ui-version] :where(.borem-tech-detail-grid,.borem-tech-detail-list) {
    grid-template-columns: 1fr;
  }
  .borem-app[data-borem-ui-version] :where(.borem-tech-job-head,.borem-tech-work-stage-head,.borem-tech-work-head,.borem-tech-route-head) {
    align-items: stretch;
    flex-direction: column;
  }
  .borem-app[data-borem-ui-version] .borem-tech-paperwork-card {
    align-items: stretch;
    flex-direction: column;
  }
  .borem-app[data-borem-ui-version] .borem-time-log-list > li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .borem-app[data-borem-ui-version] .borem-tech-pdf-shell {
    inset: 0;
    border: 0;
    border-radius: 0;
  }
  .borem-app[data-borem-ui-version] .borem-tech-pdf-layout {
    grid-template-columns: 1fr;
  }
  .borem-app[data-borem-ui-version] .borem-tech-pdf-panel,
  .borem-app[data-borem-ui-version] .borem-tech-pdf-toolgroup {
    max-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--bo-border);
  }
  .borem-app[data-borem-ui-version] .borem-tech-pdf-stage-wrap { padding: 12px; }
}

.borem-app[data-borem-ui-version] .borem-mnav-menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.borem-app[data-borem-ui-version] .borem-tech-slide-intro {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--bo-accent-mid);
  border-radius: var(--bo-radius-md);
  background: linear-gradient(135deg,var(--bo-accent-soft),var(--bo-surface));
}
.borem-app[data-borem-ui-version] .borem-tech-slide-intro p {
  color: var(--bo-muted);
  font-size: 12px;
}


/* v4.9.0 mode-aware navigation and appearance controls */
.borem-app[data-borem-ui-version] .borem-sidebar {
  color: var(--bo-sidebar-text);
  border-right: 1px solid var(--bo-border);
  background: linear-gradient(180deg,var(--bo-sidebar) 0%,var(--bo-sidebar-deep) 100%);
  box-shadow: 6px 0 24px rgba(16,24,40,.035);
}
.borem-app[data-borem-ui-version] .borem-logo {
  border-bottom-color: var(--bo-border);
}
.borem-app[data-borem-ui-version] .borem-nav-wrapper {
  scrollbar-color: color-mix(in srgb,var(--bo-sidebar-text) 22%,transparent) transparent;
}
.borem-app[data-borem-ui-version] .borem-nav-link:hover,
.borem-app[data-borem-ui-version] .borem-nav-group-summary:hover {
  color: var(--bo-heading);
  background: var(--bo-sidebar-hover);
}
.borem-app[data-borem-ui-version] .borem-nav-link.active,
.borem-app[data-borem-ui-version] .borem-nav-link[aria-current="page"] {
  color: var(--bo-accent);
  background: var(--bo-accent-soft);
}
.borem-app[data-borem-ui-version] .borem-sidebar-profile {
  border-top-color: var(--bo-border);
  color: var(--bo-sidebar-text);
}
.borem-app[data-borem-ui-version] .borem-sidebar-profile:hover {
  color: var(--bo-heading);
  background: var(--bo-sidebar-hover);
}
.borem-app[data-borem-ui-version] .borem-sidebar-avatar {
  color: #fff;
  background: var(--bo-accent);
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] {
  --bo-sidebar: #20242d;
  --bo-sidebar-deep: #1b1f27;
  --bo-sidebar-hover: rgba(255,255,255,.065);
  --bo-sidebar-text: #aeb6c7;
  --bo-sidebar-title: #ffffff;
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-sidebar {
  border-right-color: #303641;
  box-shadow: 8px 0 28px rgba(8,10,16,.16);
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-logo,
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-sidebar-profile {
  border-color: rgba(255,255,255,.07);
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-nav-link:hover,
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-nav-group-summary:hover,
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-sidebar-profile:hover {
  color: #fff;
}
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-nav-link.active,
html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-nav-link[aria-current="page"] {
  color: #fff;
  background: color-mix(in srgb,var(--bo-accent) 24%,transparent);
}
.borem-profile-dropdown button.borem-profile-action,
.borem-profile-dropdown button.borem-profile-admin-action {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bo-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.borem-profile-dropdown button.borem-profile-action:hover,
.borem-profile-dropdown button.borem-profile-admin-action:hover {
  background: var(--bo-surface-subtle);
  color: var(--bo-heading);
}
.borem-appearance-dialog .borem-modal-dialog { width: min(520px,calc(100vw - 32px)); }
.borem-appearance-options { display:grid; gap:18px; }
.borem-theme-choice { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.borem-theme-choice button { min-height:76px; justify-content:flex-start; gap:10px; text-align:left; }
.borem-theme-choice button.is-active { border-color:var(--bo-accent); box-shadow:0 0 0 3px var(--bo-accent-soft); }
.borem-accent-picker { display:grid; grid-template-columns:58px minmax(0,1fr); gap:12px; align-items:center; }
.borem-accent-picker input[type="color"] { width:58px; min-height:44px; padding:3px; }
.borem-accent-presets { display:flex; flex-wrap:wrap; gap:8px; }
.borem-accent-swatch { width:30px; height:30px; min-height:30px; padding:0; border:2px solid var(--bo-surface); border-radius:50%; box-shadow:0 0 0 1px var(--bo-border); background:var(--swatch); }
.borem-accent-swatch:hover,.borem-accent-swatch.is-active { box-shadow:0 0 0 2px var(--bo-surface),0 0 0 4px var(--swatch); }
.borem-performance-note { display:flex; gap:9px; align-items:flex-start; padding:11px 12px; border:1px solid var(--bo-border); border-radius:8px; background:var(--bo-surface-subtle); color:var(--bo-muted); font-size:12px; }

/* Text-first action used where a real button triggers an in-place selection. */
.borem-app[data-borem-ui-version] .borem-link-button,
.borem-ui-root .borem-link-button {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bo-accent);
  font: inherit;
  font-weight: 650;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.borem-app[data-borem-ui-version] .borem-link-button:hover,
.borem-ui-root .borem-link-button:hover { color: var(--bo-accent-hover); }
.borem-app[data-borem-ui-version] .borem-link-button:focus-visible,
.borem-ui-root .borem-link-button:focus-visible {
  outline: 3px solid var(--bo-focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}

/* v4.9.0 action integrity states */
.borem-app[data-borem-ui-version] .borem-btn.is-disabled,
.borem-app[data-borem-ui-version] [aria-disabled="true"].borem-btn {
  cursor: not-allowed;
  opacity: .58;
  pointer-events: none;
}
.borem-app[data-borem-ui-version] .borem-inline-unavailable {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 8px;
  color: var(--bo-muted);
  font-size: 12px;
  font-weight: 600;
}
.borem-app[data-borem-ui-version] .borem-media-thumb.is-unavailable {
  cursor: default;
  opacity: .72;
}
.borem-app[data-borem-ui-version] .borem-menu-caret {
  width: 7px;
  height: 7px;
  margin-inline-start: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.borem-app[data-borem-ui-version] .borem-inline-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-inline-end: 6px;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}
.borem-app[data-borem-ui-version] .borem-inline-icon-attachment {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E");
}
.borem-app[data-borem-ui-version] .borem-inline-icon-contact {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   4.6.0 — Location modal stacking-context repair
   -------------------------------------------------------------------------- */
.borem-app[data-borem-ui-version] {
  --bo-z-modal-backdrop: 1000;
  --bo-z-modal: 1010;
}

.borem-app[data-borem-ui-version] > .borem-location-create-backdrop {
  position: absolute;
  inset: 0;
  z-index: var(--bo-z-modal-backdrop);
  background: rgba(17, 24, 39, .58);
  backdrop-filter: blur(3px);
}

.borem-app[data-borem-ui-version] > .borem-location-create-modal {
  position: absolute;
  inset: clamp(16px, 4vh, 38px);
  z-index: var(--bo-z-modal);
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  max-height: calc(100% - 32px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--bo-border);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-surface);
  box-shadow: 0 30px 100px rgba(17, 24, 39, .34);
}

.borem-app[data-borem-ui-version].borem-modal-active > :where(.borem-sidebar,.borem-main) {
  pointer-events: none;
  user-select: none;
}

.borem-app[data-borem-ui-version] > .borem-location-create-modal,
.borem-app[data-borem-ui-version] > .borem-location-create-modal * {
  pointer-events: auto;
  user-select: auto;
}

@media (max-width: 700px) {
  .borem-app[data-borem-ui-version] > .borem-location-create-modal {
    inset: 0;
    width: 100%;
    max-width: none;
    max-height: 100%;
    border: 0;
    border-radius: 0;
  }
}

/* ========================================================================== */
/* Borem 4.6.0 — authoritative brand, avatar, dashboard arrangement layer     */
/* ========================================================================== */

.borem-app[data-borem-ui-version],
.borem-ui-root {
  accent-color: var(--bo-accent);
}

/* Primary text accents come from Branding → Primary Color. */
.borem-app[data-borem-ui-version] :where(
  a:not(.borem-btn):not(.borem-nav-link):not(.borem-command-card):not(.borem-metric-card),
  .borem-eyebrow,
  .borem-kicker,
  .borem-page-kicker,
  .borem-loc-page-kicker,
  .borem-back-link
) {
  color: var(--bo-primary);
}

.borem-app[data-borem-ui-version] .borem-nav-link.active,
.borem-app[data-borem-ui-version] .borem-nav-link[aria-current="page"] {
  color: var(--bo-primary);
}

.borem-app[data-borem-ui-version] .borem-nav-link.active::before,
.borem-app[data-borem-ui-version] .borem-nav-link[aria-current="page"]::before {
  background: var(--bo-accent);
}

/* Standard application buttons use Branding → Accent Color with white text. */
.borem-app[data-borem-ui-version] :where(.borem-btn,.button,button.borem-btn):not(.borem-btn-secondary):not(.borem-btn-quiet):not(.borem-btn-danger):not(.borem-btn-ghost),
.borem-ui-root :where(.borem-btn,.button,button.borem-btn):not(.borem-btn-secondary):not(.borem-btn-quiet):not(.borem-btn-danger):not(.borem-btn-ghost) {
  border-color: var(--bo-accent);
  background: var(--bo-accent);
  color: #fff;
  box-shadow: 0 5px 14px var(--bo-accent-shadow);
}

.borem-app[data-borem-ui-version] :where(.borem-btn,.button,button.borem-btn):not(.borem-btn-secondary):not(.borem-btn-quiet):not(.borem-btn-danger):not(.borem-btn-ghost):hover,
.borem-ui-root :where(.borem-btn,.button,button.borem-btn):not(.borem-btn-secondary):not(.borem-btn-quiet):not(.borem-btn-danger):not(.borem-btn-ghost):hover {
  border-color: var(--bo-accent-hover);
  background: var(--bo-accent-hover);
  color: #fff;
}

.borem-app[data-borem-ui-version] .borem-btn-secondary,
.borem-ui-root .borem-btn-secondary {
  border-color: var(--bo-accent);
  background: var(--bo-accent);
  color: #fff;
  box-shadow: none;
}

.borem-app[data-borem-ui-version] .borem-btn-secondary:hover,
.borem-ui-root .borem-btn-secondary:hover {
  border-color: var(--bo-accent-hover);
  background: var(--bo-accent-hover);
  color: #fff;
}

.borem-app[data-borem-ui-version] .borem-btn-quiet,
.borem-app[data-borem-ui-version] .borem-btn-ghost,
.borem-ui-root :where(.borem-btn-quiet,.borem-btn-ghost) {
  border-color: transparent;
  background: transparent;
  color: var(--bo-primary);
  box-shadow: none;
}

.borem-app[data-borem-ui-version] .borem-btn-quiet:hover,
.borem-app[data-borem-ui-version] .borem-btn-ghost:hover,
.borem-ui-root :where(.borem-btn-quiet,.borem-btn-ghost):hover {
  border-color: var(--bo-primary-mid);
  background: var(--bo-primary-soft);
  color: var(--bo-primary-hover);
}

html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] :where(.borem-btn,.button,button.borem-btn):not(.borem-btn-secondary):not(.borem-btn-quiet):not(.borem-btn-danger):not(.borem-btn-ghost) {
  border-color: var(--bo-accent);
  background: var(--bo-accent);
  color: #fff;
}

html[data-borem-theme="dark"] .borem-app[data-borem-ui-version] .borem-btn-secondary {
  border-color: var(--bo-accent);
  background: var(--bo-accent);
  color: #fff;
}

/* Common Workflows: one evenly distributed row on desktop, icon above copy. */
.borem-app[data-borem-ui-version] .borem-command-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.borem-app[data-borem-ui-version] .borem-command-card {
  display: flex;
  min-width: 0;
  min-height: 154px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px 14px 18px;
  border-color: var(--bo-border);
  background: var(--bo-surface);
  color: var(--bo-text);
  text-align: center;
}

.borem-app[data-borem-ui-version] .borem-command-card:hover {
  border-color: var(--bo-accent-mid);
  background: var(--bo-surface);
  box-shadow: var(--bo-shadow-sm);
}

.borem-app[data-borem-ui-version] .borem-command-card-icon {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px;
  margin: 0 auto !important;
  border-radius: 12px;
  background: var(--bo-accent-soft);
  color: var(--bo-accent);
}

.borem-app[data-borem-ui-version] .borem-command-card-icon .borem-ico {
  width: 20px;
  height: 20px;
}

.borem-app[data-borem-ui-version] .borem-command-card-copy {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 6px;
  width: 100%;
  text-align: center;
}

.borem-app[data-borem-ui-version] .borem-command-card strong {
  color: var(--bo-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.borem-app[data-borem-ui-version] .borem-command-card small {
  display: block;
  overflow: visible;
  color: var(--bo-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  text-overflow: initial;
  white-space: normal;
}

.borem-app[data-borem-ui-version] .borem-command-card-arrow {
  display: none;
}

@media (max-width: 1120px) {
  .borem-app[data-borem-ui-version] .borem-command-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .borem-app[data-borem-ui-version] .borem-command-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .borem-app[data-borem-ui-version] .borem-command-actions { grid-template-columns: 1fr; }
}

/* Dashboard arrangement mode is visible and directly controlled by either entry point. */
.borem-app[data-borem-ui-version].borem-editing #borem-widget-grid {
  padding: 12px;
  border: 2px dashed var(--bo-accent-mid);
  border-radius: var(--bo-radius-lg);
  background: var(--bo-accent-soft);
}

.borem-app[data-borem-ui-version].borem-editing #borem-widget-grid [data-widget] {
  position: relative;
  outline: 2px solid transparent;
  cursor: grab;
  user-select: none;
}

.borem-app[data-borem-ui-version].borem-editing #borem-widget-grid [data-widget]::after {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  content: "Drag to arrange";
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--bo-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

.borem-app[data-borem-ui-version].borem-editing #borem-widget-grid [data-widget].dragging {
  opacity: .58;
  cursor: grabbing;
}

/* Current-user avatar. */
.borem-app[data-borem-ui-version] .borem-user-avatar-image,
.borem-ui-root .borem-user-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.borem-app[data-borem-ui-version] :where(.borem-sidebar-avatar,.borem-topbar-avatar,.borem-account-avatar-preview) {
  overflow: hidden;
  background: linear-gradient(135deg, var(--bo-primary), var(--bo-accent));
  color: #fff;
}

.borem-app[data-borem-ui-version] .borem-user-avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.borem-app[data-borem-ui-version] .borem-account-avatar-editor {
  display: flex;
  align-items: center;
  gap: 14px;
}

.borem-app[data-borem-ui-version] .borem-account-avatar-preview {
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  place-items: center;
  border: 3px solid var(--bo-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--bo-border), var(--bo-shadow-sm);
  font-size: 20px;
  font-weight: 750;
}

.borem-app[data-borem-ui-version] .borem-account-avatar-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.borem-app[data-borem-ui-version] .borem-account-avatar-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.borem-app[data-borem-ui-version] .borem-account-avatar-copy p {
  margin-top: 5px;
}

.borem-app[data-borem-ui-version] .borem-account-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.borem-app[data-borem-ui-version] #borem-account-avatar-status:not(:empty) {
  margin-top: 10px;
}

.borem-app[data-borem-ui-version] .borem-brand-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .borem-app[data-borem-ui-version] .borem-brand-color-grid { grid-template-columns: 1fr; }
  .borem-app[data-borem-ui-version] .borem-account-avatar-editor { align-items: flex-start; }
}

/* ========================================================================== */
/* Borem 4.6.0 — account upload reliability                                  */
/* ========================================================================== */
.borem-app[data-borem-ui-version] .borem-account-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.borem-app[data-borem-ui-version] .borem-account-avatar-upload-label {
  cursor: pointer;
  user-select: none;
}
.borem-app[data-borem-ui-version] .borem-account-avatar-upload-label.is-disabled {
  opacity: .62;
  pointer-events: none;
}
.borem-app[data-borem-ui-version] .borem-account-stats .borem-empty-state {
  grid-column: 1 / -1;
}

/* 4.8 integration acceptance panel */
.borem-app[data-borem-ui-version] #account-integration-diagnostics .borem-readiness-list { gap: 8px; }
.borem-app[data-borem-ui-version] #account-integration-diagnostics .borem-readiness-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--bo-border);
  border-radius: 8px;
  background: var(--bo-surface-subtle);
  color: var(--bo-text);
}
.borem-app[data-borem-ui-version] #account-integration-diagnostics .borem-readiness-row > div {
  display: block;
  min-width: 0;
  color: inherit;
}
.borem-app[data-borem-ui-version] #account-integration-diagnostics .borem-readiness-row strong { display: block; font-size: 12px; color: var(--bo-heading); }
.borem-app[data-borem-ui-version] #account-integration-diagnostics .borem-readiness-row .borem-badge {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
}
