/*
 * Centrixa – project styles
 * Put overrides and new component styles here instead of editing styles.css,
 * so the theme files can be updated without losing changes.
 */

/* Icons rendered server-side by <x-icon> */
svg.acorn-icons {
  vertical-align: middle;
  flex-shrink: 0;
}

/* Theme's validation tooltip ('div.error') is absolutely positioned; keep the parent as the anchor */
.filled,
.top-label,
.form-floating,
.form-group {
  position: relative;
}

/* ── Loaders ─────────────────────────────────────────────────────────────
 * Top progress bar (#cx-progress, added by app.js) and a spinner on the button that
 * started a Livewire action ([data-loading], set by Livewire) or submitted a form (.cx-loading).
 */
#cx-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 0;
  height: 3px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  opacity: 0;
  pointer-events: none;
}

#cx-progress.active {
  opacity: 1;
  width: 85%;
  transition: width 10s cubic-bezier(0.08, 0.7, 0.2, 1), opacity 0.15s;
}

#cx-progress.done {
  width: 100%;
  opacity: 0;
  transition: width 0.2s ease-out, opacity 0.25s 0.15s;
}

.btn[data-loading],
.btn.cx-loading,
.dropdown-item[data-loading],
.nav-link[data-loading] {
  pointer-events: none;
}

.btn[data-loading]::after,
.btn.cx-loading::after,
.dropdown-item[data-loading]::after,
.nav-link[data-loading]::after {
  content: '';
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.5em;
  vertical-align: -0.125em;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  animation: cx-spin 0.7s linear infinite, cx-appear 0.01s linear 0.15s forwards;
}

/* Icon-only buttons: the spinner takes the icon's place */
.btn.btn-icon-only[data-loading] svg,
.btn.btn-icon-only.cx-loading svg {
  display: none;
}

.btn.btn-icon-only[data-loading]::after,
.btn.btn-icon-only.cx-loading::after {
  margin-left: 0;
}

@keyframes cx-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cx-appear {
  to {
    opacity: 1;
  }
}

/* Lists and tables being refreshed */
[wire\:loading\.class*='opacity-50'] {
  transition: opacity 0.15s;
}

/* ── Dialogs (SweetAlert2 in the theme's colours; app.js: Centrixa.confirm / alert / prompt) ── */
.cx-swal.swal2-container {
  z-index: 2060;
  padding: 1rem;
}

.cx-swal.swal2-backdrop-show {
  background: rgba(var(--dark-rgb, 14, 31, 36), 0.45);
}

.cx-swal .cx-swal-popup {
  background: var(--foreground);
  color: var(--body);
  border-radius: var(--border-radius-lg, 16px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  width: 26rem;
  max-width: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  font-family: var(--font);
}

.cx-swal .cx-swal-title {
  color: var(--body);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.5rem 0.5rem 0;
}

.cx-swal .cx-swal-text {
  color: var(--alternate);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.6rem 0.5rem 0;
}

.cx-swal .cx-swal-icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0.25rem auto 0.5rem;
  border-width: 0.18rem;
}

.cx-swal .cx-swal-icon .swal2-icon-content {
  font-size: 2rem;
}

.cx-swal .cx-swal-actions {
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.cx-swal .cx-swal-actions .btn {
  min-width: 7rem;
}

.cx-swal .swal2-input.form-control {
  margin: 1rem 0.5rem 0;
  width: auto;
  height: auto;
  border: 1px solid var(--separator);
  background: var(--foreground);
  color: var(--body);
  border-radius: var(--border-radius-md, 10px);
  box-shadow: none;
  font-size: 1rem;
}

.cx-swal .swal2-input.form-control:focus {
  border-color: rgba(var(--primary-rgb), 1);
}

.cx-swal .cx-swal-validation {
  background: transparent;
  color: var(--danger);
  font-size: 0.85rem;
}

.cx-swal .cx-swal-validation::before {
  background-color: var(--danger);
}

.cx-swal .swal2-success-circular-line-left,
.cx-swal .swal2-success-circular-line-right,
.cx-swal .swal2-success-fix {
  background-color: var(--foreground) !important;
}

@keyframes cx-swal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes cx-swal-out {
  to { opacity: 0; transform: scale(0.98); }
}

.cx-swal-show {
  animation: cx-swal-in 0.16s ease-out;
}

.cx-swal-hide {
  animation: cx-swal-out 0.12s ease-in forwards;
}

/* ── Purchase progress strip (<x-purchases.progress>): Ordered → Received → Billed → Paid ── */
.cx-progress { display: flex; }
.cx-step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; min-width: 0; padding: 0 .25rem; }
.cx-step:not(:last-child)::after { content: ''; position: absolute; top: .9rem; left: calc(50% + 1.2rem); right: calc(-50% + 1.2rem); height: 2px; background: var(--separator); }
.cx-step-done:not(:last-child)::after { background: var(--success); }
.cx-step-partial:not(:last-child)::after { background: linear-gradient(90deg, var(--warning) 50%, var(--separator) 50%); }
.cx-dot { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: .35rem;
    font-size: .8rem; font-weight: 600; background: var(--foreground); border: 2px solid var(--separator); color: var(--muted); }
.cx-step-done .cx-dot { background: var(--success); border-color: var(--success); color: #fff; }
.cx-step-partial .cx-dot { border-color: var(--warning); color: var(--warning); background: linear-gradient(90deg, rgba(var(--warning-rgb), .25) 50%, var(--foreground) 50%); }
.cx-step-stopped .cx-dot { border-color: var(--danger); color: var(--danger); }
.cx-step-skip .cx-dot { border-style: dashed; }
.cx-text { min-width: 0; }
.cx-label { font-weight: 600; color: var(--body); font-size: .9rem; white-space: nowrap; }
.cx-step-todo .cx-label, .cx-step-skip .cx-label { color: var(--muted); }
.cx-tag { font-size: .62rem; font-weight: 600; text-transform: uppercase; color: var(--warning); margin-left: .3rem; letter-spacing: .03em; }
.cx-detail { font-size: .78rem; color: var(--alternate); line-height: 1.25; }
.cx-next { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; padding: .55rem .8rem; border-radius: var(--border-radius-md, .5rem);
    background: rgba(var(--primary-rgb), .08); color: var(--body); font-size: .88rem; }
.cx-next-done { background: rgba(var(--success-rgb), .1); }
@media (max-width: 767.98px) {
    .cx-progress { flex-direction: column; gap: .5rem; }
    .cx-step { flex-direction: row; align-items: center; text-align: left; gap: .6rem; }
    .cx-step:not(:last-child)::after { display: none; }
    .cx-dot { margin-bottom: 0; flex: 0 0 1.8rem; }
    .cx-next { flex-wrap: wrap; }
}

/* Small status chips in purchase lists */
.cx-chips { display: flex; flex-wrap: wrap; gap: .25rem; }
.cx-chip { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; border-radius: 1rem; padding: .05rem .5rem; border: 1px solid var(--separator); color: var(--muted); white-space: nowrap; }
.cx-chip-done { border-color: var(--success); color: var(--success); }
.cx-chip-partial { border-color: var(--warning); color: var(--warning); }
.cx-chip-bad { border-color: var(--danger); color: var(--danger); }

/* Page title actions: on phones every button gets its own full-width row */
@media (max-width: 767.98px) {
    .cx-actions > * { flex: 1 1 100%; margin-bottom: 0 !important; }
    .cx-actions .d-inline-block { display: block !important; }
    .cx-actions .btn-group { display: flex; width: 100%; }
    .cx-actions .btn-group > .btn:first-child { flex: 1 1 auto; }
}

/* ── Help: articles, the side panel and the ? next to titles ── */
.cx-help-btn { vertical-align: middle; margin-left: .35rem; padding: 0 .25rem !important; }
.cx-help-btn:hover { color: var(--primary) !important; }
.cx-help-panel.offcanvas-end { width: 440px; max-width: 100vw; }
.cx-help { line-height: 1.6; }
.cx-help h2 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; color: var(--primary); font-family: var(--font-heading); }
.cx-help h3 { font-size: .95rem; margin: 1.1rem 0 .4rem; font-weight: 600; }
.cx-help ol, .cx-help ul { padding-left: 1.3rem; }
.cx-help li { margin-bottom: .3rem; }
.cx-help strong { color: var(--body); }
.cx-help code { font-size: .85em; }
.cx-help table { font-size: .88rem; }
.cx-help .cx-tip { border-left: 3px solid var(--primary); background: rgba(var(--primary-rgb), .07); padding: .6rem .9rem; margin: 1rem 0; border-radius: 0 .4rem .4rem 0; }
.cx-help .cx-tip p:last-child { margin-bottom: 0; }

/* Getting-started checklist on the dashboard */
.cx-check { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--separator-light, var(--separator)); }
.cx-check:last-child { border-bottom: 0; }
.cx-check-mark { flex: 0 0 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--separator); display: flex; align-items: center; justify-content: center; color: #fff; }
.cx-check-done .cx-check-mark { background: var(--success); border-color: var(--success); }
.cx-check-done .cx-check-title { text-decoration: line-through; color: var(--muted); }

/* ── 0.11.4: date fields (Acorn's date picker, <x-form.date>) ─────────────── */
.date-input { padding-right: 2.1rem; cursor: pointer; }
.date-input.form-control-sm { padding-right: 1.9rem; }
.date-input-icon { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; line-height: 0; }
.date-input.w-auto { width: 9.5rem !important; }
.datepicker.datepicker-dropdown { padding: .6rem; border-radius: var(--border-radius-md, .75rem); box-shadow: 0 6px 24px rgba(0, 0, 0, .14); border: 1px solid var(--separator-light, #eee); background: var(--foreground, #fff); }
.datepicker table tr td, .datepicker table tr th { width: 2.2rem; height: 2.1rem; border-radius: .5rem; font-size: .85rem; }
.datepicker table tr td.today { background: rgba(var(--primary-rgb), .12) !important; color: var(--primary) !important; font-weight: 700; }
.datepicker table tr td.active, .datepicker table tr td.active.active, .datepicker table tr td span.active { background: var(--primary) !important; color: #fff !important; text-shadow: none; }
.datepicker table tr td.day:hover, .datepicker table tr td span:hover { background: rgba(var(--primary-rgb), .08); }
.datepicker table tr td.disabled, .datepicker table tr td.disabled:hover { color: var(--muted); opacity: .45; background: transparent; }
.datepicker .datepicker-switch { font-weight: 700; color: var(--body); }
.datepicker tfoot tr th { padding-top: .35rem; color: var(--primary); font-weight: 600; }

/* 0.11.5: the till shows a scanned item at once while the server adds it */
.cx-pos-pending { opacity: .65; }
.cx-pos-cart:has(.cx-pos-pending) .cx-pos-empty { display: none; }

/* 0.11.6 / 0.11.7: the connection light */
.cx-no-net { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 30, 40, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cx-no-net.d-none { display: none !important; }
.cx-no-net .card { max-width: 440px; }

/* 0.11.6: dashboard */
.cx-dash-greeting { font-family: var(--font-heading, inherit); font-size: 1.45rem; font-weight: 500; color: var(--alternate); }
.cx-dash-action { transition: transform .12s ease, box-shadow .12s ease; }
.cx-dash-action:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.cx-dash-action-icon { background: rgba(var(--primary-rgb, 30,168,231), .1); color: var(--primary); }
.cx-dash-action .text-small { color: var(--body); }
.cx-dash-action-primary { background: var(--primary); }
.cx-dash-action-primary .text-small { color: #fff; }
.cx-dash-action-primary .cx-dash-action-icon { background: rgba(255,255,255,.2); color: #fff; }

/* 0.11.10: dashboard tabs (Sales, Point of Sale, Inventory, Purchases, Finance, Repairs) */
.cx-dash-card-title { font-family: var(--font-heading, inherit); font-size: 1rem; font-weight: 700; color: var(--alternate); }
.cx-dash-kpi { color: inherit; overflow: hidden; }
.cx-dash-kpi .card-body { min-height: 118px; }
.cx-dash-kpi-icon { width: 2.4rem; height: 2.4rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.cx-dash-kpi-value { font-family: var(--font-heading, inherit); font-size: 1.3rem; font-weight: 800; color: var(--alternate); line-height: 1.25; white-space: nowrap; }
.cx-dash-change { font-size: .75rem; font-weight: 700; color: var(--muted); }
.cx-dash-change.is-good { color: var(--success); }
.cx-dash-change.is-bad { color: var(--danger); }
.cx-dash-spark { margin: 0 -1.25rem; }
.cx-tone-primary { background: var(--primary); }
.cx-tone-secondary { background: var(--secondary); }
.cx-tone-gold { background: #F2AE3A; color: #0E1F24 !important; }
.cx-tone-purple { background: #7B61BA; }
.cx-tone-danger { background: var(--danger); }
.cx-tone-warning { background: var(--warning); }
.cx-tone-slate { background: #5B6B8C; }
.cx-dash-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; color: var(--body); }
a.cx-dash-row:hover .text-alternate { color: var(--primary) !important; }
.cx-dash-avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: rgba(var(--primary-rgb, 11,110,107), .12); color: var(--primary); font-weight: 700; font-size: .85rem; }
.cx-dash-avatar.cx-tone-primary, .cx-dash-avatar.cx-tone-secondary, .cx-dash-avatar.cx-tone-gold { color: #fff; }
.cx-dash-avatar.cx-tone-gold { color: #0E1F24; }
.cx-dash-rank { width: 1.8rem; height: 1.8rem; border-radius: .5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--separator-light); color: var(--alternate); font-weight: 700; font-size: .8rem; }
.cx-dash-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.cx-dash-band { background: var(--primary); color: #fff; border-radius: .75rem; padding: .75rem 1rem; margin-top: 1rem; }
.cx-dash-band-value { font-family: var(--font-heading, inherit); font-weight: 800; font-size: 1.15rem; }
.cx-dash-band-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); margin-top: .5rem; overflow: hidden; }
.cx-dash-band-track > div { height: 100%; background: #F2AE3A; border-radius: 3px; }
.cx-dash-ring { --p: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--separator-light) 0); }
.cx-dash-ring span { width: 2rem; height: 2rem; border-radius: 50%; background: var(--foreground); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: var(--alternate); }
.cx-dash-table th { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: none; border-bottom-width: 1px; white-space: nowrap; }
.cx-dash-table td { font-size: .85rem; }
.cx-dash-badge { font-size: .68rem; font-weight: 600; }
.cx-dash-tab { transition: opacity .15s ease; }

.cx-dash-row > .flex-grow-1, .cx-dash-kpi .flex-grow-1 { min-width: 0; }
.cx-dash-link { font-weight: 600; }

/* 0.12.7: toasts (Centrixa.notify, bootstrap-notify with a template): a card with an icon, heading, coloured edge and
   a countdown bar; light and dark themes follow the theme's colours */
div[data-notify=container].cx-toast { --cx-tone: var(--primary); --cx-tone-rgb: var(--primary-rgb);
  display: flex !important; align-items: flex-start; gap: .75rem; width: 380px; max-width: calc(100vw - 24px); padding: .9rem 2.4rem .95rem .9rem;
  background: var(--foreground); color: var(--body); border: 1px solid rgba(var(--cx-tone-rgb), .25); border-left: 4px solid var(--cx-tone);
  border-radius: var(--border-radius-md, 10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .06); overflow: hidden; }
div[data-notify=container].cx-toast-success { --cx-tone: var(--success); --cx-tone-rgb: var(--success-rgb); }
div[data-notify=container].cx-toast-danger { --cx-tone: var(--danger); --cx-tone-rgb: var(--danger-rgb); }
div[data-notify=container].cx-toast-warning { --cx-tone: var(--warning); --cx-tone-rgb: var(--warning-rgb); }
div[data-notify=container].cx-toast-info { --cx-tone: var(--info); --cx-tone-rgb: var(--info-rgb); }
.cx-toast-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--cx-tone); background: rgba(var(--cx-tone-rgb), .12); }
.cx-toast-icon svg { display: block; }
.cx-toast-body { min-width: 0; flex: 1; padding-top: 1px; }
.cx-toast-title { font-family: var(--font-heading, inherit); font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--alternate); margin-bottom: 2px; }
.cx-toast-text { font-size: .86rem; line-height: 1.45; color: var(--body); overflow-wrap: anywhere; }
.cx-toast-text:empty { display: none; }
.cx-toast-close { position: absolute; top: .55rem; right: .55rem; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease, color .15s ease; }
.cx-toast-close:hover, .cx-toast-close:focus-visible { background: rgba(var(--body-rgb), .08); color: var(--body); outline: none; }
.cx-toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(var(--cx-tone-rgb), .12); }
.cx-toast-bar .progress-bar { height: 100%; background: var(--cx-tone); opacity: .7; transition: width .1s linear; }
@keyframes cx-toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cx-toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(16px); } }
.cx-toast-in { animation: cx-toast-in .22s ease-out both; }
.cx-toast-out { animation: cx-toast-out .2s ease-in both; }
@media (max-width: 575.98px) { .cx-toast { width: calc(100vw - 24px); } }
@media (prefers-reduced-motion: reduce) { .cx-toast-in, .cx-toast-out { animation: none; } }

/* 0.15.0: CRM — timeline, path (stages), kanban board, calendar, follow-up rows */
.cx-tone-success { background: var(--success); }
.cx-tone-muted { background: var(--muted); }
.cx-timeline-icon { color: #fff; }
.cx-timeline .heading { font-size: .95rem; }
.cx-path { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.cx-path-step { position: relative; flex: 1 0 auto; min-width: 7rem; display: flex; align-items: center; justify-content: center; padding: .5rem 1rem .5rem 1.35rem;
    font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: center; border: 0; color: var(--alternate); background: var(--separator-light);
    clip-path: polygon(0 0, calc(100% - .7rem) 0, 100% 50%, calc(100% - .7rem) 100%, 0 100%, .7rem 50%); white-space: nowrap; }
.cx-path-step:first-child { clip-path: polygon(0 0, calc(100% - .7rem) 0, 100% 50%, calc(100% - .7rem) 100%, 0 100%); border-radius: var(--border-radius-md, .5rem) 0 0 var(--border-radius-md, .5rem); padding-left: 1rem; }
.cx-path-step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, .7rem 50%); border-radius: 0 var(--border-radius-md, .5rem) var(--border-radius-md, .5rem) 0; }
.cx-path-step.is-done { background: rgba(var(--primary-rgb, 11,110,107), .14); color: var(--primary); }
.cx-path-step.is-current { background: var(--primary); color: #fff; }
.cx-path-step.is-end { background: var(--success); color: #fff; }
.cx-path-step.is-end.cx-path-danger { background: var(--danger); }
.cx-path-step.is-end.cx-path-warning { background: var(--warning); }
button.cx-path-step:hover:not(.is-current) { filter: brightness(.95); cursor: pointer; }
.cx-kanban { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .75rem; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.cx-kanban-col { flex: 0 0 17rem; max-width: 85vw; background: var(--separator-light); border-radius: var(--border-radius-lg, .75rem); padding: .75rem; border-top: 3px solid transparent; }
.cx-kanban-primary { border-top-color: var(--primary); }
.cx-kanban-success { border-top-color: var(--success); }
.cx-kanban-danger { border-top-color: var(--danger); }
.cx-kanban-warning { border-top-color: var(--warning); }
.cx-kanban-head { padding: 0 .25rem .6rem; }
.cx-kanban-list { min-height: 4rem; display: flex; flex-direction: column; gap: .5rem; }
.cx-kanban-list > .card { cursor: grab; }
.cx-kanban-list > .card:active { cursor: grabbing; }
.cx-kanban-ghost { opacity: .4; }
.cx-kanban-drop { flex: 0 0 11rem; }
.cx-kanban-drop .cx-kanban-list { min-height: 7rem; border: 2px dashed var(--separator); border-radius: var(--border-radius-md, .5rem); align-items: center; justify-content: center; }
.cx-deal-card .card-body { padding: .75rem .9rem; }
.cx-deal-card.is-overdue { box-shadow: inset 3px 0 0 var(--danger); }
.cx-deal-card.is-hold { opacity: .75; }
.cx-calendar .fc .fc-button { display: none; }
.cx-calendar .fc-event { cursor: pointer; border-radius: .4rem; }
.cx-calendar .fc-theme-standard td, .cx-calendar .fc-theme-standard th, .cx-calendar .fc-theme-standard .fc-scrollgrid { border-color: var(--separator-light); }
.cx-calendar .fc-col-header-cell-cushion, .cx-calendar .fc-daygrid-day-number { color: var(--alternate); }
.cx-fu { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--separator-light); }
.cx-fu:last-child { border-bottom: 0; }
.cx-fu-icon { width: 2.25rem; height: 2.25rem; border-radius: .7rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.cx-fu-time { font-weight: 700; font-size: .8rem; white-space: nowrap; }
.cx-outcomes { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem; }
.cx-outcomes .btn { text-align: left; white-space: normal; display: flex; align-items: center; gap: .5rem; }
.cx-score { height: 6px; border-radius: 3px; background: var(--separator-light); overflow: hidden; }
.cx-score > div { height: 100%; background: var(--primary); }
.cx-quick .btn { margin: 0 .35rem .35rem 0; }
@media (max-width: 575.98px) { .cx-fu { flex-wrap: wrap; } .cx-fu > .d-flex:last-child { width: 100%; justify-content: flex-start !important; padding-left: 3rem; } }
.cx-calendar .fc-timegrid-slot { height: 2.4em; }

/* 0.15.3: lets long text shrink and truncate inside flex rows (used by many CRM rows) */
.min-width-0 { min-width: 0 !important; }

/* 0.15.4: property photos (CRM › Properties) */
.cx-prop-photo { width: 100%; height: 11rem; object-fit: cover; }
.cx-prop-hero { width: 100%; max-height: 22rem; object-fit: cover; border-radius: var(--border-radius-md, .5rem); }
.cx-prop-thumb { width: 4.5rem; height: 3.25rem; object-fit: cover; border-radius: .35rem; }

/* 0.15.7: report screens — filters in one line of equal boxes; the table's heading stays on top while scrolling
   (and the totals at the bottom), bigger text, headings that sort */
.cx-filter-bar .select2-container--bootstrap4 .select2-selection { border-color: transparent !important; box-shadow: 0 4px 10px rgba(0, 0, 0, .03) !important; }
.cx-filter-bar .select2-container--bootstrap4 .select2-selection__placeholder { color: var(--muted); }
.cx-report-scroll { max-height: calc(100vh - 6rem); min-height: 16rem; overflow: auto; }
.cx-report-table { font-size: .9rem; }
.cx-report-table td.text-small, .cx-report-table .text-small { font-size: .875rem !important; }
.cx-report-table code { font-size: .74rem; display: inline-block; min-width: 12rem; max-width: 15rem; white-space: normal; word-break: break-all; }
.cx-report-table thead th { position: sticky; top: 0; z-index: 2; background: var(--foreground); color: var(--alternate); font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding-top: .7rem; padding-bottom: .7rem; box-shadow: inset 0 -1px 0 var(--separator); border-bottom: 0; }
.cx-report-table tfoot td { position: sticky; bottom: 0; z-index: 1; background: var(--foreground); box-shadow: inset 0 1px 0 var(--separator); }
.cx-report-table tbody tr:hover > * { background: rgba(var(--primary-rgb), .04); }
.cx-th-sort { all: unset; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; }
.cx-th-sort:hover, .cx-th-sort:focus-visible { color: var(--primary); }
.cx-th-sort:focus-visible { outline: 2px solid rgba(var(--primary-rgb), .4); outline-offset: 2px; border-radius: .2rem; }
.cx-th-arrow { font-size: .65rem; opacity: .45; }
th.cx-sorted { color: var(--primary) !important; }
th.cx-sorted .cx-th-arrow { opacity: 1; }
@media (max-width: 767.98px) { .cx-report-scroll { max-height: 70vh; } }

/* 0.15.8: a field's message as a line under it (not a bubble over it) — for long messages such as the sign-in page's */
.cx-error-below div.error,
.cx-error-below.filled div.error,
.cx-error-below .filled div.error {
  position: static !important;
  transform: none !important;
  display: block;
  margin-top: .4rem;
  padding: .45rem .7rem;
  border-radius: var(--border-radius-md, .5rem);
  background: rgba(var(--danger-rgb, 207, 46, 46), .08);
  border-left: 3px solid var(--danger);
  color: var(--danger) !important;
  font-size: .85rem;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  box-shadow: none;
}
.cx-error-below div.error::before,
.cx-error-below div.error::after { display: none !important; }
