/* ==========================================================================
   eXo CRM — brand layer over Valex
   Loaded AFTER styles.min.css. Never edit styles.min.css.

   1. Tokens          5. Sidebar & header
   2. Typography      6. Components (cards, chips, score, timeline, kanban)
   3. Buttons         7. Vendor library skins (telerik grid and pickers, choices, select2, fullcalendar)
   4. Forms & tables  8. Overrides for icon families we do not ship
   ========================================================================== */

/* ===== 1. TOKENS =========================================================== */
:root {
  /* eXo brand palette — Brand & Design Guidelines v1.0 */
  --exo-green:        #1E4C37;
  --exo-green-deep:   #10271D;
  --exo-green-light:  #3B956C;
  --exo-amber:        #E28F30;
  --exo-amber-light:  #EFBF89;
  --exo-ink:          #212529;
  --exo-muted:        #6C757D;
  --exo-light:        #F8F9FA;
  --exo-sage:         #68897B;
  --exo-taupe:        #B4A996;
  --exo-slate:        #425C81;

  /* Valex levers. Brand Green is 9.8:1 on white, so it is safe as --primary-rgb
     (.btn-primary hardcodes color:#fff). Amber is 2.6:1 on white — accent only. */
  --primary-rgb:    30, 76, 55;
  --secondary-rgb:  104, 137, 123;
  --success-rgb:    59, 149, 108;
  --warning-rgb:    226, 143, 48;
  --info-rgb:       66, 92, 129;
  --danger-rgb:     176, 74, 58;
  --orange-rgb:     226, 143, 48;

  --body-bg-rgb:  248, 249, 250;
  --body-bg-rgb2: 255, 255, 255;
  --light-rgb:    244, 246, 245;
  --dark-rgb:     16, 39, 29;

  --default-text-color: #212529;
  --default-border:     #e6e8e7;
  --text-muted:         #6C757D;
  --custom-white:       #ffffff;
  --default-body-color: #212529;

  --default-font-family: 'Play', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --exo-display-font:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --default-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  --exo-shadow-lg:  0 24px 80px rgba(0, 0, 0, 0.12);
}

/* Dark mode is a neutral grey, not a dark green (client decision, 2026-10-09): the brand
   greens stay as accents (links, active items, primary buttons) and the surfaces are a mid
   grey that is easy on the eyes — the canvas a shade darker than the cards, sidebar, header
   and every floating surface, which all take --body-bg-rgb2 through --custom-white. */
[data-theme-mode="dark"] {
  --body-bg-rgb:  40, 43, 48;    /* canvas  #282b30 */
  --body-bg-rgb2: 50, 54, 60;    /* surfaces #32363c */
  --light-rgb:    64, 69, 76;    /* "light" fills #40454c */
  --default-border: rgba(255, 255, 255, 0.11);
  --default-text-color: #e9ecef;
  --text-muted: #a3aab2;
  /* The accent green reads lighter on grey than on white: links, table headings, ticks and
     the active menu item use this; buttons and active backgrounds take --primary-rgb. */
  --exo-green-light: #6CCB9F;
  /* NOT a typo away from #ffffff: the vendor paints dropdown menus, modals and
     other floating surfaces with var(--custom-white), so on dark it has to be an
     opaque dark colour. An 8-digit hex ending 00 makes every dropdown see-through. */
  --custom-white: rgb(var(--body-bg-rgb2));
  --primary-rgb: 70, 168, 124;   /* Brand Green is too dark on dark; a lighter Green Light for buttons and fills */
}
/* Header and menus: the vendor leaves the signed-in person's name black on a dark header and
   paints menu links in the link colour while a menu button keeps the text colour — every
   menu item reads in the text colour, in both modes, and the name follows the header. */
.dropdown-menu .dropdown-item { color: var(--default-text-color); }
.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus { color: var(--default-text-color); background-color: rgba(var(--primary-rgb), 0.08); }
[data-theme-mode="dark"] .dropdown-menu .dropdown-item:hover, [data-theme-mode="dark"] .dropdown-menu .dropdown-item:focus { color: #fff; background-color: rgba(255, 255, 255, 0.06); }
[data-theme-mode="dark"] .app-header .header-link, [data-theme-mode="dark"] .app-header .header-link .fw-bold { color: var(--default-text-color); }
[data-theme-mode="dark"] .app-header .header-link .text-muted { color: var(--text-muted) !important; }
/* The canvas is the darker shade so cards, sidebar and header stand off it; the vendor
   paints the body and the form controls with its own dark navy, which has no place here. */
[data-theme-mode="dark"] body { background-color: rgb(var(--body-bg-rgb)); }
[data-theme-mode="dark"] .form-control,
[data-theme-mode="dark"] .form-select,
[data-theme-mode="dark"] .form-check-input:not(:checked) {
  background-color: rgb(var(--body-bg-rgb)); border-color: var(--default-border); color: var(--default-text-color);
}
[data-theme-mode="dark"] .form-control:focus, [data-theme-mode="dark"] .form-select:focus { background-color: rgb(var(--body-bg-rgb)); color: var(--default-text-color); }
[data-theme-mode="dark"] .form-control::placeholder { color: var(--text-muted); }
[data-theme-mode="dark"] .form-control:disabled, [data-theme-mode="dark"] .form-control[readonly] { background-color: rgba(255, 255, 255, 0.05); }

/* ===== 2. TYPOGRAPHY ======================================================= */
body { font-family: var(--default-font-family); font-size: 0.875rem; line-height: 1.62; letter-spacing: 0; }
h1, h2, h3, h4, h5, h6,
.page-title, .card-title, .side-menu__label, .nav-link, .btn,
.breadcrumb, .form-label, .badge, .exo-num {
  font-family: var(--exo-display-font);
  letter-spacing: -0.01em;
}
h1, h2, h3, .card-title { font-weight: 700; }
.page-title { font-weight: 700; letter-spacing: -0.02em; }

.exo-eyebrow {
  font-family: var(--exo-display-font); font-weight: 700; font-size: 0.6875rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--exo-green);
}
[data-theme-mode="dark"] .exo-eyebrow { color: var(--exo-green-light); }
.exo-num { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.exo-lede { font-size: 0.9375rem; line-height: 1.65; color: var(--text-muted); max-width: 62ch; }
.exo-measure { max-width: 65ch; }
.text-amber { color: var(--exo-amber) !important; }
.bg-amber { background-color: var(--exo-amber) !important; color: var(--exo-green-deep) !important; }
.bg-amber-light { background-color: var(--exo-amber-light) !important; color: #7A5A2A !important; }
.bg-exo-green { background-color: var(--exo-green) !important; color: #fff !important; }

/* ===== 3. BUTTONS — pill radius per brand ================================== */
.btn { border-radius: 100px; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0; padding: 0.5rem 1.15rem; }
.btn-sm { padding: 0.3rem 0.85rem; font-size: 0.75rem; }
.btn-lg { padding: 0.7rem 1.6rem; font-size: 0.875rem; }
.btn-icon { border-radius: 100px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09); }
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:active { transform: translateY(0); }

/* The booking-equivalent action: amber, ink text, one per view. */
.btn-amber {
  background: var(--exo-amber); border-color: var(--exo-amber); color: var(--exo-green-deep);
}
.btn-amber:hover, .btn-amber:focus { background: #d0801f; border-color: #d0801f; color: var(--exo-green-deep); }
.btn-outline-amber { border: 1px solid var(--exo-amber); color: #9A5E12; background: transparent; }
.btn-outline-amber:hover { background: var(--exo-amber); color: var(--exo-green-deep); }
[data-theme-mode="dark"] .btn-outline-amber { color: var(--exo-amber); }

/* ===== 4. SURFACES, FORMS, TABLES ========================================== */
.card.custom-card {
  border-radius: 12px; border: 1px solid var(--default-border); box-shadow: none;
  background-color: var(--custom-white);
}
[data-theme-mode="dark"] .card.custom-card { background-color: rgb(var(--body-bg-rgb2)); }
.card.custom-card:hover { box-shadow: var(--default-shadow); }
.card.custom-card .card-header { border-bottom: 1px solid var(--default-border); padding: 1rem 1.25rem; }
.card.custom-card .card-title { font-size: 0.9375rem; margin-bottom: 0; }
.exo-panel { border-radius: 16px; }
.exo-flat:hover { box-shadow: none; }

.form-control, .form-select, .choices__inner {
  border-radius: 8px; font-family: var(--default-font-family); font-size: 0.8125rem;
}
.form-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 0.35rem; }
.form-control:focus, .form-select:focus { border-color: var(--exo-green-light); box-shadow: 0 0 0 3px rgba(59, 149, 108, 0.14); }

/* Validation (jQuery unobtrusive, exo-validation.js). A control that fails a rule carries
   .is-invalid from our highlight and .input-validation-error from unobtrusive; both read the
   same. The message is the field's <span asp-validation-for>, shown under the control. */
.form-control.input-validation-error, .form-select.input-validation-error, .form-check-input.input-validation-error {
  border-color: rgb(var(--danger-rgb));
}
.form-control.input-validation-error:focus, .form-select.input-validation-error:focus,
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(var(--danger-rgb), 0.16); }
.field-validation-error { display: block; margin-top: 0.3rem; color: rgb(var(--danger-rgb)); font-size: 0.75rem; line-height: 1.3; }
.field-validation-valid { display: none; }
.exo-role-option:has(input.input-validation-error), .exo-role-option:has(input.is-invalid) { border-color: rgb(var(--danger-rgb)); }

.table > :not(caption) > * > * { padding: 0.7rem 0.75rem; }
.table thead th {
  font-family: var(--exo-display-font); font-weight: 700; font-size: 0.6875rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--exo-green);
  border-bottom: 1.5px solid var(--exo-green); white-space: nowrap;
}
[data-theme-mode="dark"] .table thead th { color: var(--exo-green-light); border-bottom-color: rgba(59,149,108,.5); }
.table-hover > tbody > tr:hover > * { background-color: rgba(30, 76, 55, 0.035); }
[data-theme-mode="dark"] .table-hover > tbody > tr:hover > * { background-color: rgba(255,255,255,.04); }

/* ===== 5. SIDEBAR & HEADER ================================================= */
.app-sidebar { border-inline-end: 1px solid var(--default-border); }
.main-sidebar-header { border-inline-end: 1px solid var(--default-border); border-bottom: 1px solid var(--default-border); }
.main-sidebar-header .header-logo img { max-height: 34px; width: auto; }
.app-sidebar .side-menu__item { padding: 0.55rem 1.15rem; border-radius: 0; }
.app-sidebar .side-menu__label { font-size: 0.8125rem; font-weight: 500; }
.app-sidebar .slide__category {
  font-family: var(--exo-display-font); font-weight: 700; font-size: 0.625rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted);
  padding: 1.15rem 1.15rem 0.4rem;
}
.app-sidebar .side-menu__item { position: relative; }
.app-sidebar .slide.active .side-menu__item,
.app-sidebar .side-menu__item.active {
  background: rgba(30, 76, 55, 0.07); color: var(--exo-green); font-weight: 700;
}
/* The amber marker is a pseudo-element, not a border. A 3px inline-start border
   widens the active row's box and shunts its icon and label 3px right, so the
   whole menu jogs sideways as the active item moves down the list. */
.app-sidebar .slide.active .side-menu__item::before,
.app-sidebar .side-menu__item.active::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  width: 3px; background: var(--exo-amber);
}
[data-theme-mode="dark"] .app-sidebar .side-menu__item.active { background: rgba(59,149,108,.14); color: #fff; }
.app-sidebar .side-menu__item.active .side-menu__label { font-weight: 700; }

/* The vendor's menu icons are inline SVGs sized by their own viewBox; ours are
   icon-font glyphs. A glyph in a plain block box is laid out on the inherited
   34px line box, which drops it ~8px below the label it is supposed to sit beside.
   Centring the glyph inside its own box is what puts icon and text on one line. */
.app-sidebar .side-menu__icon {
  width: 18px; height: 18px; font-size: 1rem; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.app-sidebar .side-menu__label { line-height: 1.25; }
.app-sidebar .side-menu__item .badge { font-size: 0.625rem; padding: 0.2em 0.5em; }

.app-header { border-bottom: 1px solid var(--default-border); }
.header-logo .desktop-logo { max-height: 32px; width: auto; }
.main-header-container { min-height: 62px; }

/* The sandbox banner (iteration 28): on the sandbox host only (SandboxHostName in configuration),
   a red strip the full width of the window directly under the fixed header, so nobody mistakes the
   sandbox for the live system. The header ends at 63px (the 62px container plus its hairline); the
   strip is 2rem, and the content, the menu and the record's sticky side columns (§14) start that
   much lower — through a transparent top border, which adds to the vendor's own offsets (a 3.85rem
   margin on a desktop, a 3.75rem padding on a phone, 4rem on the menu) without restating any of
   them. Above the sidebar (z-index 103) and its phone overlay (101), below every dialog (1050+), so
   it really spans the page — over the menu too; the same red in both themes — it is a warning, not
   a surface. On a phone the sentence is dropped and the title alone is shown, whole. */
.exo-sandbox-banner {
  position: fixed; inset-block-start: 63px; inset-inline: 0; z-index: 104; height: 2rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0 1rem;
  background: #B42318; color: #fff; font-family: var(--exo-display-font); font-size: 0.75rem;
  letter-spacing: 0.04em; line-height: 1.2; text-align: center;
}
.exo-sandbox-banner i { font-size: 0.875rem; flex: 0 0 auto; }
.exo-sandbox-banner span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exo-sandbox-banner strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 575.98px) { .exo-sandbox-banner .exo-sandbox-text { display: none; } }
body.exo-sandbox .app-content { border-block-start: 2rem solid transparent; }
body.exo-sandbox .main-sidebar { border-block-start: 2rem solid transparent; }
/* On a phone the menu slides in from the top of the window over the header (the vendor hides the
   logo band there), so its items start below the banner only with the header's height added too. */
@media (max-width: 991.98px) { body.exo-sandbox .main-sidebar { border-block-start-width: calc(63px + 2rem); } }
.header-link-icon { font-size: 1.05rem; }

/* ===== 6. COMPONENTS ======================================================= */

/* --- fit score dial --- */
.exo-score { display: inline-flex; align-items: center; gap: 0.6rem; }
.exo-score-ring {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--exo-display-font); font-weight: 700; font-size: 0.875rem; flex: 0 0 auto;
}
.exo-score-ring span { background: var(--custom-white); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
[data-theme-mode="dark"] .exo-score-ring span { background: rgb(var(--body-bg-rgb2)); }
.exo-score-ring.lg { width: 76px; height: 76px; font-size: 1.375rem; }
.exo-score-ring.lg span { width: 62px; height: 62px; }

/* --- grade chips A/B/C/D --- */
.exo-grade {
  font-family: var(--exo-display-font); font-weight: 700; font-size: 0.6875rem;
  letter-spacing: 0.06em; padding: 0.2rem 0.6rem; border-radius: 100px; display: inline-block;
}
.exo-grade-a { background: var(--exo-green); color: #fff; }
.exo-grade-b { background: rgba(59, 149, 108, 0.16); color: #2b6e4f; }
.exo-grade-c { background: var(--exo-amber-light); color: #7A5A2A; }
.exo-grade-d { background: #ECEEF0; color: var(--exo-muted); }
[data-theme-mode="dark"] .exo-grade-b { color: #86d4ac; }
[data-theme-mode="dark"] .exo-grade-d { background: rgba(255,255,255,.08); color: #aab1b8; }

/* --- provenance: fact vs inference --- */
.exo-fact, .exo-infer { display: inline-flex; align-items: center; gap: 0.28rem; }
.exo-infer { color: var(--exo-slate); font-style: italic; }
.exo-infer::after {
  content: "est"; font-family: var(--exo-display-font); font-style: normal; font-weight: 700;
  font-size: 0.5625rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(66, 92, 129, 0.12); color: var(--exo-slate);
  padding: 0.05rem 0.32rem; border-radius: 100px;
}
[data-theme-mode="dark"] .exo-infer { color: #9db4d6; }
[data-theme-mode="dark"] .exo-infer::after { background: rgba(157,180,214,.16); color: #9db4d6; }
/* Valex pins bare <a> to a fixed dark green, which disappears on dark surfaces.
   Bootstrap's .text-* utilities are !important, so they still win where a link is
   deliberately muted or reset. */
a { color: var(--exo-green); }
a:hover { color: var(--exo-green-light); }
[data-theme-mode="dark"] a { color: var(--exo-green-light); }
[data-theme-mode="dark"] a:hover { color: var(--exo-amber-light); }

.exo-src { font-size: 0.6875rem; color: var(--text-muted); }
.exo-src a { color: var(--text-muted); text-decoration: underline dotted; }
.exo-src a:hover { color: var(--exo-green); }
.exo-stale { color: #9A5E12 !important; }

/* --- action card (Today list) --- */
.exo-action {
  display: flex; gap: 0.9rem; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid var(--default-border); background: var(--custom-white);
  transition: box-shadow .2s ease, transform .2s ease;
}
[data-theme-mode="dark"] .exo-action { background: rgb(var(--body-bg-rgb2)); }
.exo-action:hover { box-shadow: var(--default-shadow); transform: translateY(-2px); }
.exo-action.is-due { border-inline-start: 3px solid var(--exo-amber); }
.exo-action.is-overdue { border-inline-start: 3px solid #B04A3A; }
.exo-action > .flex-fill { min-width: 0; }
@media (max-width: 640px) {
  .exo-action { flex-wrap: wrap; }
  .exo-action > :last-child { width: 100%; text-align: start !important; }
}

/* --- stat tile --- */
.exo-stat .exo-stat-v { font-family: var(--exo-display-font); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1; }
.exo-stat .exo-stat-k { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.625rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-muted); }
.exo-stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; flex: 0 0 auto; }
/* Stat chips carry their colour inline so each KPI keeps its own hue. On dark
   surfaces those hues sink into the background, so lift them rather than
   flattening them all to one grey. */
[data-theme-mode="dark"] .exo-stat-icon { background: rgba(255, 255, 255, 0.07) !important; filter: brightness(1.9) saturate(1.1); }

/* --- kanban pipeline --- */
.exo-board { display: flex; gap: 0.85rem; overflow-x: auto; padding-bottom: 0.75rem; }
.exo-col { flex: 0 0 244px; background: rgba(30, 76, 55, 0.035); border-radius: 14px; padding: 0.75rem; }
[data-theme-mode="dark"] .exo-col { background: rgba(255,255,255,.035); }
.exo-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.65rem; padding: 0 0.2rem; }
.exo-col-head .t { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.02em; }
.exo-deal {
  background: var(--custom-white); border: 1px solid var(--default-border); border-radius: 10px;
  padding: 0.7rem 0.8rem; margin-bottom: 0.55rem; cursor: pointer; transition: box-shadow .2s, transform .2s;
}
[data-theme-mode="dark"] .exo-deal { background: rgb(var(--body-bg-rgb2)); }
.exo-deal:hover { box-shadow: var(--default-shadow); transform: translateY(-2px); }
.exo-deal .n { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.8125rem; line-height: 1.25; }

/* --- timeline --- */
.exo-timeline { position: relative; padding-inline-start: 1.6rem; }
.exo-timeline::before { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--default-border); }
.exo-tl-item { position: relative; padding-bottom: 1.25rem; }
.exo-tl-item::before {
  content: ""; position: absolute; inset-inline-start: -1.6rem; top: 4px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--custom-white); border: 2px solid var(--exo-green-light);
}
[data-theme-mode="dark"] .exo-tl-item::before { background: rgb(var(--body-bg-rgb2)); }
.exo-tl-item.is-ai::before { border-color: var(--exo-amber); }
.exo-tl-item.is-now::before { background: var(--exo-amber); border-color: var(--exo-amber); }
.exo-tl-when { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* --- stage rail (10 pipeline stages on the hotel record) --- */
.exo-rail { display: flex; gap: 3px; }
.exo-rail i { flex: 1; height: 6px; border-radius: 100px; background: var(--default-border); }
.exo-rail i.done { background: var(--exo-green-light); }
.exo-rail i.now { background: var(--exo-amber); }

/* --- header territory picker ---------------------------------------------
   .dropdown-item is display:block by default; these rows are three columns.
   The current row uses .is-current rather than .active because Bootstrap's own
   .dropdown-item.active paints a solid primary background and white text. */
/* The selector mirrors the vendor's own
   `.main-header-container .main-header-dropdown .dropdown-item { border-block-end: 1px … }`
   so it can win on specificity without !important. Rules plus rounded hover pills
   read as a table fighting a list; the pills carry the structure alone. */
.main-header-container .main-header-dropdown .exo-territory {
  display: flex; align-items: center; gap: 0.6rem;
  border-radius: 8px; padding: 0.45rem 0.6rem; font-size: 0.8125rem;
  border-block-end: 0;
}
.exo-territory:hover, .exo-territory:focus-visible { background: rgba(30, 76, 55, 0.06); }
[data-theme-mode="dark"] .exo-territory:hover,
[data-theme-mode="dark"] .exo-territory:focus-visible { background: rgba(255, 255, 255, 0.06); }
.exo-territory.is-all { font-weight: 700; }
.exo-territory-meta {
  font-family: var(--exo-display-font); font-weight: 700; font-size: 0.6875rem;
  white-space: nowrap; flex: 0 0 auto;
}
.exo-territory-bar {
  width: 34px; height: 5px; border-radius: 100px; flex: 0 0 auto; overflow: hidden;
  background: rgba(30, 76, 55, 0.12);
}
[data-theme-mode="dark"] .exo-territory-bar { background: rgba(255, 255, 255, 0.12); }
.exo-territory-bar span { display: block; height: 100%; border-radius: 100px; background: var(--exo-green-light); }
.exo-territory-tick { opacity: 0; color: var(--exo-green); font-size: 0.875rem; flex: 0 0 auto; }
[data-theme-mode="dark"] .exo-territory-tick { color: var(--exo-green-light); }
.exo-territory.is-current { background: rgba(30, 76, 55, 0.08); color: var(--exo-green); font-weight: 700; }
[data-theme-mode="dark"] .exo-territory.is-current { background: rgba(59, 149, 108, 0.16); color: #fff; }
.exo-territory.is-current .exo-territory-tick { opacity: 1; }
.territory-dropdown .header-link { padding-inline: 0.5rem; }
/* The name column is flex-fill, so it takes exactly the space left over and the
   longest label sits flush against its own box — zero slack, which means any
   slightly wider rendering (the bold current row, a longer region, a larger
   browser font) silently ellipsises it. Sized here for the longest real
   Bundesland name in bold, with headroom, and clamped so it can never overflow
   a narrow window. */
.exo-territory-menu { width: min(372px, calc(100vw - 1.5rem)); }

/* --- source pill --- */
.exo-pill {
  font-family: var(--exo-display-font); font-weight: 700; font-size: 0.625rem; letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem; border-radius: 100px; background: var(--exo-light); color: var(--exo-muted);
  display: inline-block; white-space: nowrap;
}
[data-theme-mode="dark"] .exo-pill { background: rgba(255,255,255,.08); color: #aab1b8; }
.exo-pill.ok { background: rgba(59, 149, 108, 0.14); color: #2b6e4f; }
.exo-pill.warn { background: rgba(226, 143, 48, 0.16); color: #9A5E12; }
.exo-pill.bad { background: rgba(176, 74, 58, 0.13); color: #8f3a2c; }
[data-theme-mode="dark"] .exo-pill.ok { color: #86d4ac; }
[data-theme-mode="dark"] .exo-pill.warn { color: var(--exo-amber-light); }
[data-theme-mode="dark"] .exo-pill.bad { background: rgba(241, 166, 156, 0.16); color: #F3B0A7; }
/* A modelled value (an inference, never a sourced fact) — the slate of .exo-infer. */
.exo-pill.model { background: rgba(66, 92, 129, 0.12); color: var(--exo-slate); }
[data-theme-mode="dark"] .exo-pill.model { background: rgba(157, 180, 214, 0.16); color: #9db4d6; }
/* A notice banner across the top of a page. Amber
   marks it as a signal: the tint and the icon only — the text stays ink, never amber. */
.exo-notice {
  display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.9rem 1.15rem;
  border-radius: 12px; border: 1px solid rgba(226, 143, 48, 0.35); border-inline-start: 4px solid var(--exo-amber);
  background: rgba(239, 191, 137, 0.2); color: var(--default-text-color); font-size: 0.8125rem;
}
.exo-notice-icon { color: var(--exo-amber); font-size: 1.25rem; line-height: 1; margin-top: 0.1rem; }
.exo-notice-title { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.8125rem; margin-bottom: 0.15rem; }
[data-theme-mode="dark"] .exo-notice { background: rgba(226, 143, 48, 0.1); border-color: rgba(226, 143, 48, 0.3); border-inline-start-color: var(--exo-amber); }
/* Two lines at most, then an ellipsis; the full text is in the title. */
.exo-clamp2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- green surfaces: the feature band and the auth art panel ---------------
   styles.min.css colours headings explicitly, so they do not inherit the white
   from a full-bleed green section. Both green surfaces need the same override. */
.exo-auth-art h1, .exo-auth-art h2, .exo-auth-art h3 { color: #fff; }
.exo-band, .card.custom-card.exo-band { background: var(--exo-green); color: #fff; border-radius: 16px; border-color: transparent; }
.card.custom-card.exo-band:hover { box-shadow: var(--exo-shadow-lg); }
.exo-band h1, .exo-band h2, .exo-band h3, .exo-band h4, .exo-band .card-title { color: #fff; }
.exo-band p, .exo-band .exo-lede { color: rgba(255, 255, 255, 0.62); }
.exo-band .exo-band-k { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.625rem; letter-spacing: 0.11em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.exo-band .exo-eyebrow { color: var(--exo-amber); }
.exo-band .exo-num { color: #fff; }
.exo-band .hair { border-color: rgba(255, 255, 255, 0.12) !important; }

/* --- empty state --- */
.exo-empty { text-align: center; padding: 3rem 1rem; }
.exo-empty i { font-size: 2.25rem; color: var(--exo-amber-light); display: block; margin-bottom: 0.75rem; }

/* --- avatar initials --- */
.exo-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  font-family: var(--exo-display-font); font-weight: 700; font-size: 0.75rem;
  background: rgba(30, 76, 55, 0.1); color: var(--exo-green);
}
.exo-avatar.sm { width: 26px; height: 26px; font-size: 0.625rem; }
.exo-avatar.lg { width: 48px; height: 48px; font-size: 0.9375rem; }
[data-theme-mode="dark"] .exo-avatar { background: rgba(59,149,108,.2); color: #86d4ac; }

/* --- weight slider row (score editor) --- */
.exo-weight { display: grid; grid-template-columns: 1fr 76px 52px; gap: 0.9rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--default-border); }
.exo-weight:last-child { border-bottom: 0; }
.form-range::-webkit-slider-thumb { background: var(--exo-green); }
.form-range::-moz-range-thumb { background: var(--exo-green); }

/* --- coverage scatter --- */
.exo-scatter { position: relative; width: 100%; aspect-ratio: 3 / 4; max-width: 380px; margin-inline: auto; }
.exo-scatter .grat { position: absolute; inset: 0; background-image: linear-gradient(rgba(30,76,55,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(30,76,55,.06) 1px, transparent 1px); background-size: 12.5% 12.5%; border-radius: 12px; }
[data-theme-mode="dark"] .exo-scatter .grat { background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); }
.exo-dot { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: var(--exo-green); opacity: .82; cursor: pointer; transition: transform .2s; }
.exo-dot:hover { transform: translate(-50%, -50%) scale(1.35); opacity: 1; }
.exo-dot.hot { background: var(--exo-amber); }

/* ===== 7. VENDOR SKINS ===================================================== */
/* Telerik (Kendo) grid — the eXo skin over the Fluent theme (fluent-main.css loads before this
   file). Every list in the system is a Kendo grid read one page at a time; the look follows the
   plain Bootstrap table it replaced: uppercase Poppins headings in Brand Green over a green
   rule, Play body text, hairline row borders, pill pager buttons, the current page in green.
   Long trigger text is allowed two lines, then ellipsis — one 40-character
   trigger must not set the height of every row in the table. */
.exo-clamp2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35;
}
.k-grid {
  font-family: var(--default-font-family); font-size: 0.8125rem; color: var(--default-text-color);
  background: transparent; border-color: var(--default-border); border-radius: 0;
}
.k-grid .k-table, .k-grid .k-grid-header, .k-grid .k-grid-content, .k-grid .k-table-tbody, .k-grid .k-grid-aria-root { background: transparent; color: inherit; }
.k-grid .k-grid-header { border-bottom: 0; padding-inline-end: 0 !important; }
.k-grid .k-table-th, .k-grid .k-grid-header th {
  font-family: var(--exo-display-font); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--exo-green); background: transparent; border-color: var(--exo-green); border-bottom-width: 1.5px; padding: 0.7rem 0.75rem; vertical-align: middle;
}
.k-grid .k-table-th .k-cell-inner, .k-grid .k-table-th .k-cell-inner > .k-link, .k-grid .k-table-th .k-link { color: inherit; padding: 0; margin: 0; }
.k-grid .k-table-th .k-sort-icon, .k-grid .k-table-th .k-sort-order { color: var(--exo-amber); }
/* Cells wrap like a plain table's (the theme clips them to one line with an ellipsis); a cell
   that must stay on one line says so with .text-nowrap, one that must truncate with .text-truncate. */
.k-grid .k-table-td, .k-grid td { border-color: var(--default-border); padding: 0.7rem 0.75rem; vertical-align: middle; background: transparent; color: inherit; white-space: normal; overflow-wrap: anywhere; }
.k-grid .k-table-row, .k-grid .k-table-alt-row, .k-grid tr.k-alt { background: transparent; color: inherit; }
.k-grid .k-table-alt-row > .k-table-td, .k-grid tr.k-alt > td { background: transparent; color: inherit; }
.k-grid .k-table-tbody .k-table-row:hover > .k-table-td, .k-grid tbody tr:hover > td { background-color: rgba(30, 76, 55, 0.035); }
[data-theme-mode="dark"] .k-grid .k-table-tbody .k-table-row:hover > .k-table-td, [data-theme-mode="dark"] .k-grid tbody tr:hover > td { background-color: rgba(255,255,255,.04); }
.k-grid .k-table-td.k-selected, .k-grid .k-table-row.k-selected > .k-table-td { background-color: rgba(30, 76, 55, 0.08); color: inherit; }
/* The sorted column: the Fluent theme paints it white; here a whisper of green, grey on dark. */
.k-grid .k-table-th.k-sorted, .k-grid .k-table-td.k-sorted, .k-grid .k-sorted { background-color: rgba(30, 76, 55, 0.03); color: inherit; }
[data-theme-mode="dark"] .k-grid .k-table-th.k-sorted, [data-theme-mode="dark"] .k-grid .k-table-td.k-sorted, [data-theme-mode="dark"] .k-grid .k-sorted { background-color: rgba(255, 255, 255, 0.03); }
.k-grid .k-table-th.text-end .k-cell-inner { justify-content: flex-end; }
.k-grid .k-table-th.text-end .k-cell-inner .k-link { justify-content: flex-end; }
.k-grid .k-grid-norecords, .k-grid .k-grid-norecords-template { color: var(--text-muted); font-size: 0.8125rem; border: 0; background: transparent; width: auto; height: auto; margin: 0; padding: 2rem 1rem; }
.k-grid .k-grid-norecords td { text-align: center; }
.k-grid .k-loading-mask { color: var(--exo-green); }
.k-grid .k-loading-color { background: var(--custom-white); opacity: .6; }
.k-grid .dropdown-menu { font-size: .8125rem; }
.k-grid .dropdown-item { padding: .45rem 1rem; }
/* The pager: Play for the summary, pills for the page buttons, the current page in Brand Green. */
.k-pager, .k-grid .k-grid-pager { background: transparent; border-color: var(--default-border); color: var(--text-muted); font-family: var(--default-font-family); font-size: 0.75rem; padding: 0.6rem 0.75rem; }
.k-pager .k-pager-numbers .k-button, .k-pager .k-button { border-radius: 100px; font-family: var(--exo-display-font); font-size: 0.75rem; min-width: 2rem; color: var(--default-text-color); border-color: transparent; background: transparent; }
.k-pager .k-pager-numbers .k-button:hover, .k-pager .k-button:hover { background: rgba(30, 76, 55, 0.08); color: var(--exo-green); }
.k-pager .k-pager-numbers .k-button.k-selected, .k-pager .k-pager-numbers .k-selected { background: var(--exo-green); color: #fff; border-color: var(--exo-green); }
.k-pager .k-pager-numbers .k-button.k-selected::before { display: none; }
.k-pager .k-pager-sizes .k-dropdownlist, .k-pager .k-dropdownlist, .k-pager .k-picker { border-radius: 100px; border-color: var(--default-border); background: transparent; color: var(--default-text-color); font-family: var(--default-font-family); font-size: 0.75rem; }
.k-pager .k-pager-info, .k-pager .k-pager-sizes { color: var(--text-muted); }
.k-pager .k-pager-sizes .k-dropdownlist, .k-pager .k-pager-sizes .k-picker { width: auto; min-width: 5.5rem; }
.k-animation-container .k-list-container, .k-animation-container .k-popup { font-family: var(--default-font-family); font-size: 0.8125rem; border-radius: 10px; border-color: var(--default-border); background: var(--custom-white); color: var(--default-text-color); box-shadow: var(--default-shadow); }
.k-animation-container .k-list-item.k-selected, .k-animation-container .k-list-item.k-selected:hover { background: var(--exo-green); color: #fff; }
.k-animation-container .k-list-item:hover { background: rgba(30, 76, 55, 0.08); }
/* Dark mode: the grey surfaces, the accent green for headings and the current page. */
[data-theme-mode="dark"] .k-grid { color: var(--default-text-color); border-color: var(--default-border); }
[data-theme-mode="dark"] .k-grid .k-table-th, [data-theme-mode="dark"] .k-grid .k-grid-header th { color: var(--exo-green-light); border-color: rgba(59,149,108,.5); }
[data-theme-mode="dark"] .k-pager, [data-theme-mode="dark"] .k-grid .k-grid-pager { color: var(--text-muted); }
[data-theme-mode="dark"] .k-pager .k-button { color: var(--default-text-color); }
[data-theme-mode="dark"] .k-pager .k-pager-numbers .k-button.k-selected { background: rgb(var(--primary-rgb)); border-color: rgb(var(--primary-rgb)); }
[data-theme-mode="dark"] .k-pager .k-dropdownlist, [data-theme-mode="dark"] .k-pager .k-picker { background: rgb(var(--body-bg-rgb)); color: var(--default-text-color); }
[data-theme-mode="dark"] .k-grid .k-loading-color { background: rgb(var(--body-bg-rgb2)); }
/* A grid with fixed column widths scrolls sideways inside its card rather than crushing the
   flexible column to nothing (a Kendo table is table-layout: fixed): each list has the width
   its columns need, and the record's small grids share one. */
.exo-grid-scroll, .exo-grid-sm { overflow-x: auto; }
#HotelGrid { min-width: 1380px; }
#UserGrid { min-width: 900px; }
#LogGrid { min-width: 820px; }
#ImportGrid { min-width: 900px; }
.exo-grid-sm .k-grid { min-width: 640px; }
#HotelGrid tbody tr[data-uid] { cursor: pointer; }
#HotelGrid .k-table-td { vertical-align: top; }
/* The small grids on a record's tabs: compact rows, no outer border. */
.exo-grid-sm .k-grid { border-width: 0; }
.exo-grid-sm .k-grid .k-table-th, .exo-grid-sm .k-grid .k-table-td { padding: 0.45rem 0.5rem; font-size: 0.75rem; }
.exo-grid-sm .k-grid .k-table-td { font-size: 0.75rem; }
.exo-grid-sm .k-pager { padding: 0.4rem 0.5rem; }
.exo-break { word-break: break-word; }

.choices__inner { min-height: 38px; padding: 0.25rem 0.5rem; }
.choices__list--dropdown .choices__item--selectable.is-highlighted { background: rgba(30, 76, 55, 0.08); }

/* Select2 — every <select> (exo-app.js EXOAPP.selects). The closed box copies .form-control
   exactly: same border, radius, font, padding and height (33.5px; 29.5px for .form-select-sm),
   so a list lines up with the inputs beside it. The vendor theme in styles.min.css sets these
   with !important, hence the !important here. */
.select2-container--default .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px) !important; min-height: 0 !important;
  border: 1px solid var(--input-border) !important; border-radius: 8px !important;
  background-color: var(--custom-white) !important; font-size: 0.8125rem; line-height: 1.5;
  display: flex !important; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  border: 0 !important; line-height: 1.5 !important; padding: 0 2.25rem 0 0.75rem !important;
  font-family: var(--default-font-family); font-size: 0.8125rem; color: var(--default-text-color) !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100% !important; top: 0 !important; right: 0.5rem !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--text-muted) transparent transparent transparent; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--text-muted) transparent; }
select.form-select-sm + .select2-container--default .select2-selection--single { height: calc(1.5em + 0.5rem + 2px) !important; }
select.form-select-sm + .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 0.5rem !important; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--exo-green-light) !important; box-shadow: 0 0 0 3px rgba(59, 149, 108, 0.14); outline: 0;
}
select.input-validation-error + .select2-container--default .select2-selection--single,
select.is-invalid + .select2-container--default .select2-selection--single { border-color: rgb(var(--danger-rgb)) !important; }
.select2-dropdown { z-index: 1060 !important; border: 1px solid var(--input-border) !important; border-radius: 8px !important; font-size: 0.8125rem; box-shadow: var(--default-shadow, 0 8px 24px rgba(0, 0, 0, 0.08)); }
.modal .select2-dropdown { z-index: 1061 !important; }
.select2-container--default .select2-search--dropdown { padding: 0.5rem; }
.select2-container--default .select2-search--dropdown .select2-search__field {
  border-radius: 8px !important; padding: 0.375rem 0.75rem; font-size: 0.8125rem; font-family: var(--default-font-family);
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--exo-green-light) !important; }
.select2-results__option { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: rgba(30, 76, 55, 0.08) !important; color: var(--default-text-color) !important; }
.select2-container--default .select2-results__option--selected,
.select2-container--default .select2-results__option--selected.select2-results__option--highlighted { background-color: rgb(var(--primary-rgb)) !important; color: #fff !important; }
[data-theme-mode="dark"] .select2-container--default .select2-selection--single,
[data-theme-mode="dark"] .select2-container--default .select2-search--dropdown .select2-search__field { background-color: rgb(var(--body-bg-rgb)) !important; border-color: var(--default-border) !important; }
[data-theme-mode="dark"] .select2-dropdown { border-color: var(--default-border) !important; }
[data-theme-mode="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: rgba(255, 255, 255, 0.06) !important; }

.fc .fc-toolbar-title { font-family: var(--exo-display-font); font-weight: 700; font-size: 1rem; }
.fc .fc-button { border-radius: 100px !important; font-family: var(--exo-display-font); font-weight: 700; font-size: 0.75rem; text-transform: none; }
.fc .fc-button-primary { background: var(--exo-green); border-color: var(--exo-green); }
.fc-event { border-radius: 6px; border: 0; font-size: 0.75rem; padding: 1px 4px; }

/* Telerik (Kendo) date and date-time pickers — every date box in the system (client decision,
   2026-11-10; flatpickr and the native date inputs are gone). The Fluent theme runs on its own
   variables, so the brand goes in through them, scoped to the pickers and the popups: Brand Green
   where Fluent paints its blue, the eXo border and surface colours, the form-control radius. The
   box itself copies .form-control (33.5px tall, 8px radius, Play 13px) so it lines up with the
   inputs beside it; the hidden box it posts through (input[data-exo-date] / [data-exo-datetime])
   carries the invalid state, which the picker mirrors. The popup is appended to body: Kendo lifts
   it above the dialog it was opened from by itself. */
.k-datepicker, .k-datetimepicker, .k-timepicker, .k-animation-container {
  --kendo-font-family: var(--default-font-family); --kendo-font-size: 0.8125rem;
  --kendo-color-primary: var(--exo-green); --kendo-color-primary-hover: var(--exo-green-deep); --kendo-color-primary-active: var(--exo-green-deep);
  --kendo-color-primary-on-surface: var(--exo-green); --kendo-color-primary-subtle: rgba(30, 76, 55, 0.08); --kendo-color-primary-subtle-hover: rgba(30, 76, 55, 0.14); --kendo-color-primary-subtle-active: rgba(30, 76, 55, 0.2);
  --kendo-color-border: var(--input-border); --kendo-color-border-alt: var(--exo-green-light);
  --kendo-color-app-surface: var(--custom-white); --kendo-color-surface: var(--custom-white); --kendo-color-surface-alt: var(--custom-white);
  --kendo-color-on-app-surface: var(--default-text-color); --kendo-color-subtle: var(--text-muted);
  --kendo-color-base: var(--custom-white); --kendo-color-base-hover: rgba(30, 76, 55, 0.06); --kendo-color-base-active: rgba(30, 76, 55, 0.1);
  --kendo-color-base-subtle: rgba(30, 76, 55, 0.06); --kendo-color-base-subtle-hover: rgba(30, 76, 55, 0.1); --kendo-color-base-subtle-active: rgba(30, 76, 55, 0.14);
  --kendo-hover-bg: rgba(30, 76, 55, 0.08); --kendo-selected-bg: var(--exo-green); --kendo-selected-text: #fff;
  --kendo-link-text: var(--default-text-color); --kendo-link-hover-text: var(--exo-green);
  --kendo-calendar-cell-selected-bg: var(--exo-green); --kendo-calendar-cell-selected-text: #fff; --kendo-calendar-cell-selected-shadow: none;
  --kendo-calendar-today-bg: var(--exo-amber-light); --kendo-calendar-today-text: var(--exo-ink); --kendo-calendar-today-hover-bg: var(--exo-amber); --kendo-calendar-today-hover-text: var(--exo-ink);
  --kendo-border-radius-md: 8px;
}
[data-theme-mode="dark"] .k-datepicker, [data-theme-mode="dark"] .k-datetimepicker, [data-theme-mode="dark"] .k-timepicker, [data-theme-mode="dark"] .k-animation-container {
  --kendo-color-primary: rgb(var(--primary-rgb)); --kendo-color-primary-hover: var(--exo-green-light); --kendo-color-primary-active: var(--exo-green-light); --kendo-color-primary-on-surface: var(--exo-green-light);
  --kendo-color-primary-subtle: rgba(255, 255, 255, 0.06); --kendo-color-primary-subtle-hover: rgba(255, 255, 255, 0.1); --kendo-color-primary-subtle-active: rgba(255, 255, 255, 0.14);
  --kendo-color-border: var(--default-border); --kendo-color-app-surface: rgb(var(--body-bg-rgb)); --kendo-color-surface: var(--custom-white); --kendo-color-surface-alt: var(--custom-white);
  --kendo-color-base: var(--custom-white); --kendo-color-base-hover: rgba(255, 255, 255, 0.06); --kendo-color-base-active: rgba(255, 255, 255, 0.1);
  --kendo-color-base-subtle: rgba(255, 255, 255, 0.06); --kendo-color-base-subtle-hover: rgba(255, 255, 255, 0.1); --kendo-color-base-subtle-active: rgba(255, 255, 255, 0.14);
  --kendo-hover-bg: rgba(255, 255, 255, 0.06); --kendo-selected-bg: rgb(var(--primary-rgb)); --kendo-calendar-cell-selected-bg: rgb(var(--primary-rgb));
  --kendo-link-hover-text: var(--exo-green-light);
}
/* The box: the form-control look, 33.5px tall, so a picker lines up with the inputs beside it. */
.k-datepicker, .k-datetimepicker, .k-timepicker {
  width: 100%; font-family: var(--default-font-family); font-size: 0.8125rem; line-height: 1.5;
  border: 1px solid var(--input-border); border-radius: 8px; background-color: var(--form-control-bg, var(--custom-white)); color: var(--default-text-color); box-shadow: none;
}
.k-datepicker .k-input-inner, .k-datetimepicker .k-input-inner, .k-timepicker .k-input-inner { padding: 0.375rem 0.75rem; font-size: 0.8125rem; line-height: 1.5; color: inherit; background: transparent; }
.k-datepicker .k-input-inner::placeholder, .k-datetimepicker .k-input-inner::placeholder { color: var(--text-muted); opacity: 1; }
.k-datepicker .k-input-button, .k-datetimepicker .k-input-button, .k-timepicker .k-input-button { color: var(--text-muted); background: transparent; border-color: transparent; box-shadow: none; padding-inline: 0.5rem; }
.k-datepicker .k-input-button:hover, .k-datetimepicker .k-input-button:hover { color: var(--exo-green); background: rgba(30, 76, 55, 0.06); }
.k-datepicker:hover, .k-datetimepicker:hover, .k-timepicker:hover { border-color: var(--input-border); }
.k-datepicker:focus-within, .k-datetimepicker:focus-within, .k-timepicker:focus-within,
.k-datepicker.k-focus, .k-datetimepicker.k-focus, .k-timepicker.k-focus { border-color: var(--exo-green-light); box-shadow: 0 0 0 3px rgba(59, 149, 108, 0.14); outline: 0; }
.k-datepicker.k-focus .k-input-inner, .k-datetimepicker.k-focus .k-input-inner, .k-datepicker .k-input-inner:focus, .k-datetimepicker .k-input-inner:focus { box-shadow: none; outline: 0; }
/* The hidden box the picker posts through carries the invalid state; the picker shows it. */
input[data-exo-date].is-invalid + .k-datepicker, input[data-exo-datetime].is-invalid + .k-datetimepicker,
input[data-exo-date].input-validation-error + .k-datepicker, input[data-exo-datetime].input-validation-error + .k-datetimepicker { border-color: rgb(var(--danger-rgb)); }
input[data-exo-date].is-invalid + .k-datepicker:focus-within, input[data-exo-datetime].is-invalid + .k-datetimepicker:focus-within { box-shadow: 0 0 0 3px rgba(var(--danger-rgb), 0.16); }
[data-theme-mode="dark"] .k-datepicker, [data-theme-mode="dark"] .k-datetimepicker, [data-theme-mode="dark"] .k-timepicker { background-color: rgb(var(--body-bg-rgb)); border-color: var(--default-border); color: var(--default-text-color); }
[data-theme-mode="dark"] .k-datepicker .k-input-button:hover, [data-theme-mode="dark"] .k-datetimepicker .k-input-button:hover { color: var(--exo-green-light); background: rgba(255, 255, 255, 0.06); }
/* The popup: the calendar (Poppins title, small uppercase weekday letters, Brand Green for the
   chosen day, Amber Light for today) and, on a date-time picker, the Date / Time switch and the
   time list; the footer buttons are pills. */
.k-animation-container .k-calendar-container, .k-animation-container .k-datetime-container { border-radius: 10px; border-color: var(--default-border); background: var(--custom-white); color: var(--default-text-color); box-shadow: var(--default-shadow, 0 8px 24px rgba(0, 0, 0, 0.1)); }
.k-calendar { font-family: var(--default-font-family); font-size: 0.8125rem; color: var(--default-text-color); background: transparent; border-color: transparent; }
.k-calendar .k-calendar-header, .k-calendar .k-header { background: transparent; }
.k-calendar .k-calendar-nav-fast, .k-calendar .k-calendar-title { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.8125rem; color: var(--exo-green); border-radius: 100px; }
.k-calendar .k-calendar-th, .k-calendar th { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.k-calendar .k-calendar-td .k-link { border-radius: 100px; }
.k-calendar .k-calendar-nav-prev, .k-calendar .k-calendar-nav-next, .k-calendar .k-nav-today, .k-calendar .k-calendar-nav-today { border-radius: 100px; font-family: var(--exo-display-font); font-weight: 700; color: var(--exo-green); }
.k-calendar .k-calendar-td.k-other-month .k-link, .k-calendar .k-other-month .k-link { color: var(--text-muted); opacity: 0.55; }
.k-datetime-buttongroup .k-button { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.75rem; }
.k-datetime-footer .k-button { border-radius: 100px; font-family: var(--exo-display-font); font-weight: 700; font-size: 0.75rem; }
.k-time-list .k-item, .k-time-list .k-time-list-item { font-family: var(--default-font-family); font-size: 0.8125rem; color: var(--default-text-color); }
.k-time-list .k-item:hover, .k-time-list .k-item.k-hover { color: var(--exo-green); }
[data-theme-mode="dark"] .k-time-list .k-item:hover { color: var(--exo-green-light); }
.k-time-header .k-time-now, .k-time-header .k-title { font-family: var(--exo-display-font); font-weight: 700; color: var(--exo-green); }
[data-theme-mode="dark"] .k-calendar .k-calendar-nav-fast, [data-theme-mode="dark"] .k-calendar .k-calendar-nav-prev, [data-theme-mode="dark"] .k-calendar .k-calendar-nav-next, [data-theme-mode="dark"] .k-calendar .k-nav-today, [data-theme-mode="dark"] .k-calendar .k-calendar-nav-today, [data-theme-mode="dark"] .k-time-header .k-time-now, [data-theme-mode="dark"] .k-time-header .k-title { color: var(--exo-green-light); }

/* ===== 8. ICON FAMILIES WE DO NOT SHIP ===================================== */
/* styles.min.css reaches for tabler (breadcrumb divider) and remixicon (accordion
   chevron). Neither font ships here, so replace the glyphs with characters. */
.breadcrumb-item + .breadcrumb-item::before { content: "/" !important; font-family: inherit !important; color: var(--text-muted); }
.accordion-button::after { background-image: none !important; content: "\F282"; font-family: "bootstrap-icons" !important; font-size: 0.75rem; transition: transform .2s; }
.accordion-button:not(.collapsed)::after { transform: rotate(180deg); }
.side-menu__angle::before { font-family: "feather" !important; }

/* ===== 9. PRINT ============================================================ */
@media print {
  .app-sidebar, .app-header, .footer, .exo-noprint { display: none !important; }
  .main-content { margin: 0 !important; padding: 0 !important; border: 0 !important; }
}

/* ===== 10. THE GATE — sign-in, authenticator, reset, verification, error ==== */
/* Two vertical halves: the brand panel (Brand Green in both modes, the white logo,
   the mark ghosted behind, the group's tagline) and the form. Below 992px the panel
   becomes a slim green band with the logo and the form takes the full width.
   Nothing on either side says what the system is for. */
.exo-gate { min-height: 100vh; min-height: 100dvh; background: var(--custom-white); margin: 0; }
[data-theme-mode="dark"] .exo-gate { background: rgb(var(--body-bg-rgb)); }
.exo-gate-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* The brand panel */
.exo-gate-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3rem 3.5rem;
  color: #fff;
  background: linear-gradient(160deg, var(--exo-green) 0%, #183E2D 55%, var(--exo-green-deep) 100%);
}
.exo-gate-panel-mark {
  position: absolute; z-index: -1; pointer-events: none;
  right: -14%; bottom: -8%; width: 82%; max-width: 760px; height: auto;
  opacity: .07;
}
.exo-gate-panel-glow {
  position: absolute; z-index: -1; pointer-events: none;
  left: -20%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 149, 108, .35), transparent);
}
.exo-gate-brand { display: inline-block; align-self: flex-start; }
.exo-gate-logo { height: 40px; width: auto; display: block; }
.exo-gate-panel-copy { max-width: 30rem; padding-block: 2rem; }
.exo-gate-panel-dash { display: block; width: 56px; height: 4px; background: var(--exo-amber); border-radius: 2px; margin-bottom: 1.5rem; }
.exo-gate-panel-title {
  font-family: var(--exo-display-font); font-weight: 700; font-size: clamp(1.9rem, 2.6vw, 2.75rem);
  line-height: 1.12; letter-spacing: -.02em; color: #fff; margin: 0 0 1.25rem;
}
.exo-gate-panel-dot { color: var(--exo-amber); }
.exo-gate-panel-text { font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, .78); max-width: 26rem; margin: 0; }
.exo-gate-panel-foot { font-size: .75rem; color: rgba(255, 255, 255, .55); margin: 0; }

/* The form side */
.exo-gate-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem 2rem; }
.exo-gate-form { width: 100%; max-width: 420px; }
.exo-gate-title { font-family: var(--exo-display-font); font-weight: 700; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .5rem; }
.exo-gate-lede { color: var(--text-muted); font-size: .875rem; line-height: 1.6; margin-bottom: 1.75rem; }
.exo-gate-foot { text-align: center; font-size: .75rem; color: var(--text-muted); margin: 1rem 0 0; }
.exo-gate-legal { font-size: .6875rem; color: var(--text-muted); margin: 2rem 0 0; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .exo-gate-form { animation: exo-gate-rise .45s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes exo-gate-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 1199.98px) {
  .exo-gate-panel { padding: 2.5rem 2.5rem; }
}
@media (max-width: 991.98px) {
  .exo-gate-split { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .exo-gate-panel { padding: 1.1rem 1.25rem; justify-content: flex-start; }
  .exo-gate-panel-copy, .exo-gate-panel-foot, .exo-gate-panel-mark, .exo-gate-panel-glow { display: none; }
  .exo-gate-logo { height: 30px; }
  .exo-gate-main { padding: 2rem 1.25rem 1.5rem; justify-content: flex-start; }
}
/* "Keep me signed in": the plain tick box had a hairline border (the vendor's --input-border) and
   was missed. It is now a switch on its own bordered row with a title and a one-line hint; the row
   turns green when it is on, and the whole row is the label, so anywhere on it toggles it. */
.exo-gate-remember {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; margin: 0 0 1.5rem; padding: 0.75rem 0.95rem; min-height: 0;
  border: 1px solid var(--input-border); border-radius: 10px; background: var(--custom-white); cursor: pointer; user-select: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.exo-gate-remember:hover { border-color: var(--exo-green-light); }
.exo-gate-remember:has(.form-check-input:checked) { border-color: var(--exo-green); background: rgba(30, 76, 55, 0.05); }
.exo-gate-remember:has(.form-check-input:focus-visible) { border-color: var(--exo-green-light); box-shadow: 0 0 0 3px rgba(59, 149, 108, 0.2); }
.exo-gate-remember .form-check-input {
  flex: 0 0 auto; order: 2; width: 2.75em; height: 1.5em; margin: 0; cursor: pointer; float: none;
  border: 1px solid #8b9490; background-color: #dfe3e1; box-shadow: none;
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
}
.exo-gate-remember .form-check-input:checked { background-color: var(--exo-green); border-color: var(--exo-green); }
/* Bootstrap paints the knob blue while the switch has the focus; it stays white here. */
.exo-gate-remember .form-check-input:focus { box-shadow: none; --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e"); }
.exo-gate-remember-text { flex: 1 1 auto; order: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.exo-gate-remember-title { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.8125rem; color: var(--default-text-color); line-height: 1.3; }
.exo-gate-remember-hint { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
[data-theme-mode="dark"] .exo-gate-remember { background: rgb(var(--body-bg-rgb)); border-color: var(--default-border); }
[data-theme-mode="dark"] .exo-gate-remember:has(.form-check-input:checked) { border-color: var(--exo-green-light); background: rgba(108, 203, 159, 0.08); }
[data-theme-mode="dark"] .exo-gate-remember .form-check-input { border-color: rgba(255, 255, 255, 0.35); background-color: rgba(255, 255, 255, 0.14); }
[data-theme-mode="dark"] .exo-gate-remember .form-check-input:checked { background-color: rgb(var(--primary-rgb)); border-color: rgb(var(--primary-rgb)); }

.exo-captcha { display: flex; justify-content: center; }
.exo-captcha .g-recaptcha { transform-origin: center; }
@media (max-width: 360px) { .exo-captcha .g-recaptcha { transform: scale(.9); } }

.exo-pass { position: relative; }
.exo-pass .form-control { padding-inline-end: 2.75rem; }
.exo-pass-toggle {
  position: absolute; inset-inline-end: .25rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--text-muted); padding: .4rem .6rem; line-height: 1; border-radius: 100px;
}
.exo-pass-toggle:hover { color: var(--exo-green); }
[data-theme-mode="dark"] .exo-pass-toggle:hover { color: var(--exo-green-light); }

.exo-otp {
  font-family: var(--exo-display-font); font-weight: 700; font-size: 1.5rem;
  letter-spacing: .4em; text-align: center; padding-inline-start: .4em;
}
.exo-steps { font-size: .8125rem; color: var(--text-muted); padding-inline-start: 1.1rem; margin-bottom: 1.25rem; }
.exo-steps li { margin-bottom: .35rem; }
.exo-qr-wrap { display: flex; justify-content: center; }
.exo-qr { display: block; width: 240px; height: 240px; border-radius: 12px; border: 1px solid var(--default-border); background: #fff; padding: 10px; }
@media (max-width: 360px) { .exo-qr { width: 208px; height: 208px; } }

/* The live password checklist (_PasswordRules + exo-password-policy.js) */
.exo-pw-rules { display: grid; gap: .3rem; font-size: .75rem; color: var(--text-muted); margin: .5rem 0 0; }
.exo-pw-rules li { display: flex; align-items: center; gap: .5rem; transition: color .2s; }
.exo-pw-rules li i { font-size: .875rem; line-height: 1; flex: 0 0 auto; }
.exo-pw-rules li.is-met { color: var(--exo-green); }
.exo-pw-rules li.is-met i { color: var(--exo-green); }
.exo-pw-rules li.is-unmet { color: rgb(var(--danger-rgb)); }
[data-theme-mode="dark"] .exo-pw-rules li.is-met, [data-theme-mode="dark"] .exo-pw-rules li.is-met i { color: var(--exo-green-light); }
.exo-secret { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border: 1px solid var(--default-border); border-radius: 8px; padding: .5rem .75rem; }
.exo-secret code { font-size: .8125rem; letter-spacing: .06em; word-break: break-all; color: var(--default-text-color); }

/* ===== 11. USERS ============================================================ */
.exo-table-search { position: relative; min-width: 260px; }
.exo-table-search .bi { position: absolute; inset-inline-start: .7rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .8rem; pointer-events: none; }
.exo-table-search .form-control { padding-inline-start: 2rem; }

/* ===== 12. SYSTEM SETTINGS AND SYSTEM CHANGES ============================== */
/* System settings spans the whole page (2026-10-13): the vendor frames every .tab-pane with a
   border and padding of its own, which inset the settings inside the card; here the card body
   is the frame, and the tab strip runs the full width of the card header. */
#exo-system-settings .card-header-tabs { width: 100%; }
#exo-system-settings .tab-pane { border: 0; padding: 0; }
.exo-settings { display: grid; gap: 0; }
.exo-setting { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--default-border); }
.exo-setting:last-child { border-bottom: 0; }
.exo-setting-text { flex: 1 1 auto; max-width: 60ch; }
.exo-setting-value { flex: 0 0 auto; width: 9rem; text-align: end; }
.exo-setting-value .form-control { text-align: end; }
.exo-setting-value .form-switch { display: flex; justify-content: flex-end; padding-top: .35rem; }
.exo-setting-value .form-check-input { width: 2.6em; height: 1.4em; margin: 0; cursor: pointer; }
@media (max-width: 575.98px) {
  .exo-setting { flex-direction: column; gap: .75rem; }
  .exo-setting-value { width: 100%; text-align: start; }
  .exo-setting-value .form-switch { justify-content: flex-start; }
}
.exo-changes { display: grid; gap: .6rem; }
.exo-changes li { display: flex; align-items: flex-start; gap: .75rem; font-size: .8125rem; line-height: 1.55; }
.exo-changes .exo-pill { flex: 0 0 auto; margin-top: .15rem; min-width: 7rem; justify-content: center; }
.exo-change-text { flex: 1 1 auto; }
.exo-changes-more summary { cursor: pointer; }
.exo-iteration .card-header { align-items: flex-start; }

/* ===== 13. LOGS ============================================================ */
.exo-log-table th { white-space: nowrap; }
.exo-sort { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.exo-sort::after { content: "\2195"; opacity: .35; margin-inline-start: .35rem; font-size: .8em; }
.exo-sort.is-sorted::after { opacity: 1; color: var(--exo-amber); }
.exo-sort.is-sorted[data-direction="asc"]::after { content: "\2191"; }
.exo-sort.is-sorted[data-direction="desc"]::after { content: "\2193"; }
.exo-log-message { font-size: .8125rem; max-width: 42ch; overflow-wrap: anywhere; }
.exo-log-delta { margin-top: .25rem; }
.exo-log-delta summary { cursor: pointer; }
.exo-log-delta code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-muted); }
.exo-log-pager .page-link { border-radius: 100px !important; margin-inline: 2px; }
/* The pager carries .d-flex, whose !important display would otherwise beat the hidden attribute. */
.exo-log-pager[hidden] { display: none !important; }
.exo-email-frame { width: 100%; height: min(70vh, 720px); border: 1px solid var(--default-border); border-radius: 8px; background: #fff; }
.exo-email-attachments { display: flex; flex-wrap: wrap; align-items: center; }
.exo-log-detail-message { font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.exo-log-detail-facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; font-size: .8125rem; margin: 0; }
.exo-log-detail-facts dt { color: var(--text-muted); font-weight: 400; }
.exo-log-detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.exo-log-delta-table td, .exo-log-delta-table th { font-size: .8125rem; overflow-wrap: anywhere; }
.exo-role-options { display: grid; gap: .6rem; }
.exo-role-option {
  display: flex; align-items: flex-start; gap: .85rem; padding: .8rem 1rem; cursor: pointer;
  border: 1px solid var(--default-border); border-radius: 12px; transition: border-color .2s, background-color .2s;
}
.exo-role-option:hover { border-color: var(--exo-green-light); }
.exo-role-option:has(input:checked) { border-color: var(--exo-green); background: rgba(30, 76, 55, .05); }
[data-theme-mode="dark"] .exo-role-option:has(input:checked) { background: rgba(59, 149, 108, .12); }
.exo-role-option .form-check-input { margin-top: .3rem; flex: 0 0 auto; }
.exo-role-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(30, 76, 55, .08); color: var(--exo-green); font-size: 1rem;
}
[data-theme-mode="dark"] .exo-role-icon { background: rgba(59, 149, 108, .18); color: #86d4ac; }
.table .dropdown-menu { font-size: .8125rem; }
.table .dropdown-item { padding: .45rem 1rem; }

/* ===== 14. HOTELS =========================================================== */
/* Prospects / Hotels, the map explorer and a company's record: the maps, the pins, the
   popups, the explorer layout, the chips, the record's tabs and tables. The maps get their own
   stacking context so Leaflet's panes and controls (z-index up to 1000) stay under the sticky
   header and the menus. */

/* --- maps --- */
.exo-map { width: 100%; height: 480px; border-radius: 12px; overflow: hidden; background: #e9ece9; position: relative; z-index: 0; isolation: isolate; }
.exo-map.mini { height: 320px; }
.exo-map-full { position: absolute; inset: 0; height: auto; border-radius: 0; }
[data-theme-mode="dark"] .exo-map { background: #1f2226; }
[data-theme-mode="dark"] .exo-tiles { filter: invert(1) hue-rotate(185deg) brightness(.82) contrast(.88) saturate(.55); }
.leaflet-container { font-family: var(--default-font-family); font-size: 0.8125rem; }
.leaflet-container a { color: var(--exo-green); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--custom-white); color: var(--default-text-color); box-shadow: var(--exo-shadow-lg); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.45; }
.leaflet-popup-close-button { color: var(--text-muted) !important; }
.leaflet-bar, .leaflet-control-layers { border: 1px solid var(--default-border) !important; box-shadow: var(--default-shadow) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-bar a, .leaflet-control-layers { background: var(--custom-white) !important; color: var(--default-text-color) !important; border-bottom-color: var(--default-border) !important; }
.leaflet-control-layers-expanded { padding: 8px 12px; font-size: 0.75rem; }
.leaflet-control-attribution { background: rgba(255,255,255,.75) !important; font-size: 0.625rem; }
[data-theme-mode="dark"] .leaflet-control-attribution { background: rgba(50, 54, 60, .85) !important; color: #aab1b8; }
[data-theme-mode="dark"] .leaflet-control-attribution a { color: var(--exo-green-light); }
.leaflet-control-scale-line { border-color: var(--text-muted); color: var(--default-text-color); background: rgba(255,255,255,.6); }

.exo-pin { filter: drop-shadow(0 3px 3px rgba(0,0,0,.28)); transition: transform .15s ease; transform-origin: bottom center; }
.exo-pin:hover, .exo-pin.is-active { transform: scale(1.18); z-index: 2000 !important; }
.exo-pin.is-active { filter: drop-shadow(0 0 0 3px rgba(226,143,48,.55)) drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.exo-dot span { display: block; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); opacity: .9; }
.exo-dot:hover span { opacity: 1; transform: scale(1.3); }

.exo-pop { min-width: 240px; }
.exo-pop-name { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.875rem; line-height: 1.25; margin-bottom: .15rem; }
.exo-pop-figs { display: grid; grid-template-columns: repeat(4, auto); gap: .25rem .75rem; margin: .5rem 0; }
.exo-pop-figs span { display: block; font-size: 0.5625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-family: var(--exo-display-font); font-weight: 700; }
.exo-pop-figs b { font-size: 0.8125rem; }
.exo-pop-match { font-size: 0.75rem; background: rgba(30,76,55,.06); border-radius: 8px; padding: .4rem .6rem; }
[data-theme-mode="dark"] .exo-pop-match { background: rgba(255,255,255,.06); }

.exo-legend { background: var(--custom-white); border: 1px solid var(--default-border); border-radius: 10px; padding: .6rem .8rem; box-shadow: var(--default-shadow); font-size: 0.6875rem; line-height: 1.3; }
.exo-legend-t { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.5625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .35rem; }
.exo-legend-row { display: flex; align-items: center; gap: .5rem; margin: .2rem 0; white-space: nowrap; }
.exo-legend-row i { width: 12px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: inline-grid; place-items: center; flex: 0 0 auto; border: 1.5px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.exo-legend-row i b { transform: rotate(45deg); color: #fff; font-size: 8px; font-style: normal; }
.exo-legend-row i.dot { width: 10px; height: 10px; border-radius: 50%; transform: none; }

/* --- map explorer page --- */
.exo-explorer { display: grid; grid-template-columns: 380px 1fr; gap: 0; height: calc(100vh - 62px - 8.5rem); min-height: 560px; border: 1px solid var(--default-border); border-radius: 14px; overflow: hidden; background: var(--custom-white); }
[data-theme-mode="dark"] .exo-explorer { background: rgb(var(--body-bg-rgb2)); }
.exo-explorer-side { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--default-border); }
.exo-explorer-head { padding: .9rem 1rem .6rem; border-bottom: 1px solid var(--default-border); }
.exo-explorer-list { flex: 1; overflow: auto; padding: .5rem; position: relative; }
.exo-explorer-map { position: relative; min-height: 0; }
.exo-place { display: flex; gap: .7rem; padding: .6rem .7rem; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.exo-place:hover { background: rgba(30,76,55,.05); }
[data-theme-mode="dark"] .exo-place:hover { background: rgba(255,255,255,.05); }
.exo-place.is-active { border-color: var(--exo-amber); background: rgba(226,143,48,.08); }
.exo-place-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: .35rem; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.3); }
.exo-place .n { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.8125rem; line-height: 1.25; }
.exo-place .m { font-size: 0.6875rem; color: var(--text-muted); }
.exo-place .f { font-size: 0.6875rem; display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .15rem; }
.exo-place .f b { font-weight: 700; }
@media (max-width: 991px) {
  .exo-explorer { grid-template-columns: 1fr; height: auto; }
  .exo-explorer-side { border-inline-end: 0; border-bottom: 1px solid var(--default-border); max-height: 42vh; }
  .exo-explorer-map { height: 60vh; }
}

/* --- chips & filters --- */
.exo-chip { font-family: var(--exo-display-font); font-weight: 600; font-size: 0.75rem; padding: .3rem .8rem; border-radius: 100px; border: 1px solid var(--default-border); background: var(--custom-white); color: var(--default-text-color); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.exo-chip:hover { border-color: var(--exo-green-light); }
.exo-chip.is-on { background: var(--exo-green); border-color: var(--exo-green); color: #fff; }
[data-theme-mode="dark"] .exo-chip { background: rgb(var(--body-bg-rgb2)); }
[data-theme-mode="dark"] .exo-chip.is-on { background: var(--exo-green-light); border-color: var(--exo-green-light); color: #10271D; }
.exo-chip i.sw { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.exo-chip .ct { font-size: 0.625rem; opacity: .7; }

.exo-complete { display: inline-flex; align-items: center; gap: .45rem; }
.exo-complete-bar { width: 54px; height: 6px; border-radius: 100px; background: rgba(0,0,0,.08); overflow: hidden; }
[data-theme-mode="dark"] .exo-complete-bar { background: rgba(255,255,255,.12); }
.exo-complete-bar span { display: block; height: 100%; background: var(--exo-taupe); border-radius: 100px; }
.exo-complete-bar.ok span { background: var(--exo-green-light); }
.exo-complete-bar.warn span { background: var(--exo-amber); }

/* --- stat tiles --- */
.exo-kpi { display: flex; align-items: center; gap: .9rem; }
.exo-kpi .exo-stat-v { font-size: 1.5rem; }
.exo-kpi-sub { font-size: 0.6875rem; color: var(--text-muted); }
.exo-hero { position: relative; overflow: hidden; }
.exo-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(226,143,48,.18); pointer-events: none; }

/* --- the dashboard table --- */

/* --- record page --- */
.exo-kv { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: .45rem 1rem; font-size: .8125rem; }
.exo-kv dt { color: var(--text-muted); font-weight: 600; }
.exo-kv dd { margin: 0; word-break: break-word; }
.exo-tree td:first-child { white-space: normal; }
.exo-tree tr.lvl-0 td { font-weight: 700; }
.exo-tree tr.lvl-0 td:first-child { background: rgba(30,76,55,.04); }
.exo-raw { max-height: 70vh; overflow: auto; font-size: .75rem; background: rgba(30,76,55,.04); border-radius: .5rem; padding: 1rem; }
[data-theme-mode="dark"] .exo-raw { background: rgba(255,255,255,.04); color: #e9edeb; }
.exo-scroll { max-height: 520px; overflow: auto; }
.exo-years th, .exo-years td { white-space: nowrap; text-align: right; }
.exo-years th:first-child, .exo-years td:first-child { text-align: left; position: sticky; left: 0; background: var(--custom-white, #fff); z-index: 1; }
.exo-section-title { font-weight: 700; font-size: .875rem; margin: 1.5rem 0 .75rem; font-family: var(--exo-display-font); }
.exo-section-title:first-child { margin-top: 0; }
.nav-tabs .nav-link { white-space: nowrap; }
.exo-fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem 1.2rem; }
.exo-fact-grid .v { font-family: var(--exo-display-font); font-weight: 700; font-size: 0.9375rem; line-height: 1.2; }
.exo-nearby { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem 0; border-bottom: 1px dashed var(--default-border); font-size: .75rem; }
.exo-nearby:last-child { border-bottom: 0; }

/* --- the record's layout (iteration 27): the profile | the tabbed work area | the association cards ---
   Laid out the way a HubSpot record is. One column on a phone; from 1200px the profile column on the
   left with the association cards under it and the work area beside; from 1600px three columns, the
   two side columns sticky with their own thin scrollbar so the work area scrolls on its own. */
/* Bootstrap ships no min-width utility; a flex item that must truncate its text needs one (the
   assignee, the decision makers, the contact lines), or the row pushes the page wider than a phone. */
.min-w-0 { min-width: 0 !important; }
.exo-record { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.exo-record > * { min-width: 0; }
.exo-record .card.custom-card { margin-bottom: 1rem; }
.exo-record-main .card.custom-card { margin-bottom: 0; }
@media (min-width: 1200px) {
  .exo-record { grid-template-columns: 300px minmax(0, 1fr); }
  .exo-record-left { grid-column: 1; grid-row: 1; }
  .exo-record-right { grid-column: 1; grid-row: 2; }
  .exo-record-main { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1600px) {
  .exo-record { grid-template-columns: 300px minmax(0, 1fr) 300px; }
  .exo-record-left { grid-column: 1; grid-row: 1; }
  .exo-record-main { grid-column: 2; grid-row: 1; }
  .exo-record-right { grid-column: 3; grid-row: 1; }
  .exo-record-side { position: sticky; top: calc(62px + 1rem); max-height: calc(100vh - 62px - 2rem); overflow-y: auto; scrollbar-width: thin; }
  body.exo-sandbox .exo-record-side { top: calc(62px + 2rem + 1rem); max-height: calc(100vh - 62px - 4rem); }
}

/* The profile: a square brand-green avatar with the initials, the name, the pills, the quick actions. */
.exo-avatar.xl { width: 64px; height: 64px; font-size: 1.25rem; border-radius: 16px; }
.exo-profile-avatar { background: var(--exo-green); color: #fff; }
[data-theme-mode="dark"] .exo-profile-avatar { background: var(--exo-green-light); color: var(--exo-green-deep); }
.exo-profile .exo-pill { margin-bottom: .15rem; }

/* The quick actions under the name: one circle and a label per action, every circle Brand Green on
   hover; the workflow step is the one amber action on the page. */
.exo-quick { display: flex; gap: .25rem; border-top: 1px solid var(--default-border); padding-top: .9rem; }
.exo-quick .dropdown { flex: 1 1 0; display: flex; min-width: 0; }
.exo-quick-btn { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; background: none; border: 0; padding: .25rem .1rem; border-radius: 10px; color: var(--default-text-color); }
.exo-quick-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--default-border); background: var(--custom-white); color: var(--exo-green); font-size: 1rem; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.exo-quick-icon.is-amber { background: var(--exo-amber); border-color: var(--exo-amber); color: var(--exo-green-deep); }
.exo-quick-btn:hover .exo-quick-icon, .exo-quick-btn:focus-visible .exo-quick-icon, .exo-quick-btn[aria-expanded="true"] .exo-quick-icon { background: var(--exo-green); border-color: var(--exo-green); color: #fff; }
.exo-quick-btn:focus-visible { outline: 2px solid var(--exo-green-light); outline-offset: 2px; }
.exo-quick-label { font-family: var(--exo-display-font); font-weight: 700; font-size: .625rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
[data-theme-mode="dark"] .exo-quick-icon { background: rgb(var(--body-bg-rgb2)); color: var(--exo-green-light); }
[data-theme-mode="dark"] .exo-quick-icon.is-amber { background: var(--exo-amber); color: var(--exo-green-deep); }
[data-theme-mode="dark"] .exo-quick-btn:hover .exo-quick-icon, [data-theme-mode="dark"] .exo-quick-btn:focus-visible .exo-quick-icon { background: var(--exo-green-light); border-color: var(--exo-green-light); color: var(--exo-green-deep); }

/* "About this company": the label over the value, as a HubSpot property list reads. */
.exo-props { display: flex; flex-direction: column; gap: .7rem; }
.exo-prop dt { font-family: var(--exo-display-font); font-weight: 700; font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .1rem; }
.exo-prop dd { margin: 0; font-size: .8125rem; font-weight: 600; word-break: break-word; }
.exo-prop dd .exo-src { font-weight: 400; }
.exo-about .card-footer { background: rgba(30,76,55,.04); border-top: 1px solid var(--default-border); padding: .75rem 1.25rem; }
[data-theme-mode="dark"] .exo-about .card-footer { background: rgba(255,255,255,.04); }

/* The work area's tabs: underlined, a count beside a label; the Activities sub-tabs are pills. */
.exo-record-tabs > .card-header { padding: 0 .5rem; }
.exo-record-tabs .nav-tabs { border-bottom: 1px solid var(--default-border); scrollbar-width: thin; }
.exo-record-tabs .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: .9rem .85rem; font-size: .8125rem; color: var(--text-muted); margin-bottom: -1px; background: transparent; }
.exo-record-tabs .nav-tabs .nav-link:hover { color: var(--exo-green); }
.exo-record-tabs .nav-tabs .nav-link.active { color: var(--exo-green); border-bottom-color: var(--exo-green); }
[data-theme-mode="dark"] .exo-record-tabs .nav-tabs .nav-link:hover, [data-theme-mode="dark"] .exo-record-tabs .nav-tabs .nav-link.active { color: var(--exo-green-light); border-bottom-color: var(--exo-green-light); }
.exo-tab-count { display: inline-block; font-family: var(--exo-display-font); font-size: .625rem; font-weight: 700; padding: .05rem .4rem; border-radius: 100px; background: rgba(30,76,55,.1); color: var(--exo-green); margin-inline-start: .2rem; vertical-align: middle; line-height: 1.4; }
.exo-tab-count.is-bad { background: rgba(176,74,58,.13); color: #8f3a2c; }
[data-theme-mode="dark"] .exo-tab-count { background: rgba(255,255,255,.1); color: #aab1b8; }
[data-theme-mode="dark"] .exo-tab-count.is-bad { background: rgba(241,166,156,.16); color: #F3B0A7; }
.exo-subnav { gap: .35rem; }
.exo-subnav .nav-link { font-size: .75rem; padding: .35rem .8rem; border-radius: 100px; color: var(--default-text-color); border: 1px solid var(--default-border); background: transparent; }
.exo-subnav .nav-link:hover { border-color: var(--exo-green-light); }
.exo-subnav .nav-link.active { background: var(--exo-green); border-color: var(--exo-green); color: #fff; }
.exo-subnav .nav-link.active .exo-tab-count { background: rgba(255,255,255,.2); color: #fff; }
[data-theme-mode="dark"] .exo-subnav .nav-link.active { background: var(--exo-green-light); border-color: var(--exo-green-light); color: var(--exo-green-deep); }
[data-theme-mode="dark"] .exo-subnav .nav-link.active .exo-tab-count { background: rgba(16,39,29,.2); color: var(--exo-green-deep); }

/* Overview: the data highlights (hairline cells), the recent activity rows, the inline empty state. */
.exo-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--default-border); border: 1px solid var(--default-border); border-radius: 12px; overflow: hidden; }
.exo-highlights > div { background: var(--custom-white); padding: .8rem 1rem; min-width: 0; }
[data-theme-mode="dark"] .exo-highlights > div { background: rgb(var(--body-bg-rgb2)); }
.exo-hl-k { font-family: var(--exo-display-font); font-weight: 700; font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .2rem; }
.exo-hl-v { font-family: var(--exo-display-font); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.exo-activity { border: 1px solid var(--default-border); border-radius: 12px; overflow: hidden; }
.exo-activity-row { display: flex; gap: .8rem; align-items: flex-start; padding: .75rem 1rem; border-bottom: 1px solid var(--default-border); }
.exo-activity-row:last-child { border-bottom: 0; }
.exo-activity-row.is-next { background: rgba(226,143,48,.07); }
.exo-activity-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: rgba(30,76,55,.08); color: var(--exo-green); font-size: .9rem; }
.exo-activity-icon.is-start { background: var(--exo-green); color: #fff; }
.exo-activity-icon.is-amber { background: var(--exo-amber); color: var(--exo-green-deep); }
.exo-activity-when { font-size: .6875rem; color: var(--text-muted); white-space: nowrap; flex: 0 0 auto; padding-top: .2rem; }
[data-theme-mode="dark"] .exo-activity-icon { background: rgba(255,255,255,.07); color: var(--exo-green-light); }
[data-theme-mode="dark"] .exo-activity-icon.is-start { background: var(--exo-green-light); color: var(--exo-green-deep); }
.exo-empty-inline { padding: 1.5rem 1rem; border: 1px dashed var(--default-border); border-radius: 12px; }
.exo-clamp6 { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) { .exo-activity-row { flex-wrap: wrap; } .exo-activity-when { width: 100%; padding-inline-start: calc(32px + .8rem); padding-top: 0; } }

/* The association cards on the right: a collapsible header with a count and one action, the body
   beneath. The assigned-user card is green when somebody works the company, a dashed outline and a
   hollow avatar when nobody does yet. */
.exo-assoc-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; }
.exo-assoc-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; padding: 0; font-family: var(--exo-display-font); font-weight: 700; font-size: .8125rem; color: var(--default-text-color); min-width: 0; }
.exo-assoc-toggle i { font-size: .7rem; color: var(--text-muted); transition: transform .2s ease; }
.exo-assoc-toggle[aria-expanded="false"] i { transform: rotate(-90deg); }
.exo-assoc-count { font-family: var(--exo-display-font); font-size: .625rem; font-weight: 700; padding: .05rem .45rem; border-radius: 100px; background: rgba(30,76,55,.1); color: var(--exo-green); line-height: 1.4; }
[data-theme-mode="dark"] .exo-assoc-count { background: rgba(255,255,255,.1); color: #aab1b8; }
.exo-assoc-body { padding: 0 1rem 1rem; }
.exo-assignee { background: rgba(30,76,55,.08); border: 1px solid rgba(30,76,55,.18); }
.exo-assignee.none { background: transparent; border: 1px dashed var(--default-border); }
.exo-assignee .exo-avatar-empty { background: transparent; border: 1px dashed var(--text-muted); color: var(--text-muted); font-size: 1.1rem; }
[data-theme-mode="dark"] .exo-assignee { background: rgba(59,149,108,.12); border-color: rgba(59,149,108,.3); }
[data-theme-mode="dark"] .exo-assignee.none { background: transparent; border-color: var(--default-border); }
.exo-next-followup { background: rgba(226,143,48,.1); border-radius: 10px; padding: .7rem .85rem; }
[data-theme-mode="dark"] .exo-next-followup { background: rgba(226,143,48,.14); }
.exo-contact-line { display: flex; align-items: center; gap: .5rem; font-size: .75rem; margin-bottom: .35rem; min-width: 0; }
.exo-contact-line > i { color: var(--text-muted); flex: 0 0 auto; }
.exo-contact-line > a, .exo-contact-line > .text-truncate { min-width: 0; }

/* An amended fact: the value a person corrected, with who and when in the title. Amber is the
   signal — the tint and the pencil only; the text stays ink. */
.exo-amended {
  display: inline-flex; align-items: center; gap: .25rem; font-family: var(--exo-display-font); font-weight: 700; font-size: 0.5625rem;
  letter-spacing: .08em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 100px;
  background: rgba(226, 143, 48, 0.16); color: #9A5E12; cursor: help; vertical-align: middle; white-space: nowrap;
}
[data-theme-mode="dark"] .exo-amended { background: rgba(226, 143, 48, 0.2); color: var(--exo-amber-light); }
.exo-amended i { font-size: .625rem; }

/* The record's dialogs: a form in clearly separated sections (a titled header with an icon and a
   hint, the fields on a faint panel beneath), the add-note visibility switch, the Actions menu. */
.exo-form-section { border: 1px solid var(--default-border); border-radius: .75rem; margin-bottom: 1rem; overflow: hidden; }
.exo-form-section:last-child { margin-bottom: 0; }
.exo-form-section-head { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: rgba(30,76,55,.05); border-bottom: 1px solid var(--default-border); }
[data-theme-mode="dark"] .exo-form-section-head { background: rgba(255,255,255,.05); }
.exo-form-section-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--exo-green); color: #fff; font-size: .9rem; }
.exo-form-section-title { font-family: var(--exo-display-font); font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--exo-green); line-height: 1.2; }
[data-theme-mode="dark"] .exo-form-section-title { color: var(--exo-green-light); }
.exo-form-section-hint { font-size: .6875rem; color: var(--text-muted); }
.exo-form-section-body { padding: 1rem; }
.exo-form-section .form-label { font-size: .75rem; font-weight: 700; margin-bottom: .25rem; }
.exo-note-visibility { background: rgba(226,143,48,.1); }
[data-theme-mode="dark"] .exo-note-visibility { background: rgba(226,143,48,.12); }
.exo-note-text { white-space: pre-line; word-break: break-word; }
.exo-actions-menu { min-width: 200px; font-size: .8125rem; }
.exo-item-actions .btn-icon { width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; font-size: .75rem; }
.exo-item-actions .exo-item-remove:hover { color: #B04A3A; }
.exo-item-modal .select2-container { z-index: 1061; }
.exo-actions-menu .dropdown-item { padding: .5rem 1rem; }
/* The menu's section headers: General over the everyday items, Danger zone over the permanent ones. */
.exo-actions-menu .dropdown-header { font-family: var(--exo-display-font); font-weight: 700; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: .5rem 1rem .25rem; margin: 0; line-height: 1.2; }
.exo-actions-menu .dropdown-header.exo-actions-head-danger { color: rgb(var(--danger-rgb)); }
.exo-actions-menu .dropdown-item.text-danger:hover, .exo-actions-menu .dropdown-item.text-danger:focus { background: rgba(var(--danger-rgb), .08); color: rgb(var(--danger-rgb)) !important; }
[data-theme-mode="dark"] .exo-actions-menu .dropdown-header.exo-actions-head-danger, [data-theme-mode="dark"] .exo-actions-menu .dropdown-item.text-danger { color: #E07A68 !important; }
[data-theme-mode="dark"] .exo-actions-menu .dropdown-item.text-danger:hover, [data-theme-mode="dark"] .exo-actions-menu .dropdown-item.text-danger:focus { background: rgba(224,122,104,.16); }
/* The workflow timeline (the mock's .exo-timeline on real data): a hairline with a dot per step; the pending
   follow-up on top in amber, the step that started the workflow in Brand Green. */
.exo-timeline { position: relative; padding-inline-start: 1.6rem; }
.exo-timeline::before { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--default-border); }
.exo-tl-item { position: relative; padding-bottom: 1.25rem; }
.exo-tl-item:last-child { padding-bottom: .25rem; }
.exo-tl-item::before { content: ""; position: absolute; inset-inline-start: -1.6rem; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--custom-white); border: 2px solid var(--exo-green-light); }
.exo-tl-item.is-start::before { background: var(--exo-green); border-color: var(--exo-green); }
.exo-tl-item.is-now::before { background: var(--exo-amber); border-color: var(--exo-amber); }
.exo-tl-when { font-family: var(--exo-display-font); font-weight: 700; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.exo-workflow-timeline { max-width: 760px; }
/* The dashboard's follow-ups: the mock's action rows. */
.exo-followup-icon { background: rgba(30,76,55,.08); color: var(--exo-green); }
[data-theme-mode="dark"] .exo-followup-icon { color: var(--exo-green-light); }
/* The scroll-to-top button sat over a dialog's footer at phone width; it steps back while a dialog is open. */
body.modal-open .scrollToTop { display: none !important; }
/* The dialogs scroll inside themselves, never the page behind them. The vendor paints body with
   overflow-x: clip, which makes the page's overflow-y compute to auto and defeats the
   overflow: hidden Bootstrap puts on body while a modal is open — so the page scrolled under the
   dialog and its Save button was out of reach. The lock is restated with weight, the dialog's
   height is bound (the vendor leaves .modal-dialog-scrollable without one) and scrolling cannot
   chain out of the dialog's body. */
body.modal-open { overflow: hidden !important; }
html:has(body.modal-open) { overflow: hidden; }
.modal, .modal-body { overscroll-behavior: contain; }
.modal-dialog-scrollable { height: calc(100% - var(--bs-modal-margin, .5rem) * 2); }
.modal-dialog-scrollable .modal-content { max-height: 100%; overflow: hidden; }
.modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }

/* The explorer's search and chips sit over the map on a phone; the record's tabs scroll sideways. */
@media (max-width: 575.98px) { .exo-map { height: 320px; } }

@media print {
  .app-sidebar, .app-header, .page-header-breadcrumb .right-content, .nav-tabs, .footer, .leaflet-control-container, .exo-quick { display: none !important; }
  .tab-pane { display: block !important; opacity: 1 !important; }
  .exo-record { display: block; }
  .exo-record-side { position: static; max-height: none; overflow: visible; }
  .main-content { margin: 0 !important; padding: 0 !important; border: 0 !important; }
}
