/*
 * CondoPro app styles (plain CSS — Bootstrap 5 / Limitless).
 * Built to public/assets/app.css via npm run build:css.
 * Do not reintroduce a utility CSS framework or @apply-style directives.
 */

:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --panel: #ffffff;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --ring: #2563eb;
  --shadow: 0 16px 42px rgba(15, 23, 42, .08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-topbar {
  background: #172554;
  color: #fff;
}

.topbar-inner {
  display: grid;
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-block: 8px;
  font-size: 13px;
}

.topbar-inner p {
  margin: 0;
  color: #dbeafe;
  text-align: center;
}

.topbar-pill,
.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 800;
}

.topbar-pill {
  background: #fff;
  color: #1d4ed8;
}

.topbar-link {
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 12px;
  letter-spacing: .04em;
}

.brand-text {
  font-size: 18px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
}

.desktop-nav a:hover,
.footer-links a:hover {
  color: var(--foreground);
}

.language-pill {
  display: inline-flex;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  padding: 3px;
}

.language-pill a {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
}

.language-pill a.active {
  background: var(--primary);
  color: #fff;
}

.header-actions,
.hero-actions,
.portal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.mobile-menu-button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 1px rgba(43, 36, 53, .12);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-success {
  border-color: #059669;
  background: #059669;
  color: #fff;
  box-shadow: 0 1px 1px rgba(43, 36, 53, .12);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:focus-visible {
  border-color: #047857;
  background: #047857;
  color: #fff;
}

.btn-warning {
  border-color: #f58646;
  background: #f58646;
  color: #fff;
  box-shadow: 0 1px 1px rgba(43, 36, 53, .12);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning:focus-visible {
  border-color: #dd793f;
  background: #dd793f;
  color: #fff;
}

.btn-secondary {
  border-color: #247297;
  background: #247297;
  color: #fff;
  box-shadow: 0 1px 1px rgba(43, 36, 53, .12);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:focus-visible {
  border-color: #1f6180;
  background: #1f6180;
  color: #fff;
}

.btn-outline,
.btn-ghost,
.btn-outline-secondary {
  border-color: var(--border);
  background: #f8f9fa;
  color: #3b3347;
  box-shadow: 0 1px 1px rgba(43, 36, 53, .06);
}

.btn-ghost {
  border-color: transparent;
}

.btn-outline:hover,
.btn-ghost:hover,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary:focus-visible {
  border-color: #cbd5e1;
  background: #eef0f3;
  color: #1e293b;
}

.btn-light {
  border-color: #cbd5e1;
  background: #f8f9fa;
  color: #3b3347;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active,
.btn-light:focus-visible {
  border-color: #94a3b8;
  background: #eef0f3;
  color: #1e293b;
}

.btn-large {
  min-height: 46px;
  padding-inline: 18px;
}

.btn-small {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}

.btn-danger {
  border-color: #dc3545;
  background: #dc3545;
  color: #fff;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:focus-visible {
  border-color: #bb2d3b;
  background: #bb2d3b;
  color: #fff;
}

.app-confirm-modal.fade {
  opacity: 0;
  transition: opacity .15s linear;
}

.app-confirm-modal.show {
  opacity: 1;
}

.app-confirm-modal .modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
  transition: none;
  transform: none !important;
}

.app-confirm-modal.show .modal-dialog {
  transform: none !important;
}

.app-confirm-modal .modal-content {
  border: 1px solid rgba(0, 0, 0, .175);
  border-radius: .5rem;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.app-confirm-modal .modal-header,
.app-confirm-modal .modal-footer {
  border-color: #dee2e6;
}

.app-confirm-modal .modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.app-confirm-modal .modal-body p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .app-confirm-modal.fade,
  .app-confirm-modal .modal-dialog {
    transition: none;
  }
}

.mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--foreground);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 10px 16px 16px;
  background: var(--panel);
}

.mobile-menu[data-open="true"] {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  border-radius: 8px;
  padding: 10px;
  color: var(--muted-foreground);
  font-weight: 600;
}

.mobile-menu a:hover {
  background: var(--muted);
  color: var(--foreground);
}

.hero-section {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 48px;
}

.hero-copy h1,
.section-heading h2,
.operations-grid h2,
.portal-inner h2 {
  margin: 12px 0 0;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading h2,
.operations-grid h2,
.portal-inner h2 {
  font-size: clamp(30px, 4.5vw, 48px);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  padding: 5px 10px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-lede,
.section-heading p,
.operations-grid p {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted-foreground);
  font-size: 18px;
}

.hero-actions {
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 34px 0 0;
}

.hero-stats div,
.feature-card,
.checklist-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.hero-stats div {
  padding: 15px;
}

.hero-stats dt {
  font-size: 26px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--muted);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.media-panel {
  position: absolute;
  display: grid;
  gap: 2px;
  max-width: 240px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  padding: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
  font-size: 13px;
}

.media-panel span {
  color: var(--muted-foreground);
}

.media-panel-top {
  top: 18px;
  right: 18px;
}

.media-panel-bottom {
  bottom: 18px;
  left: 18px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
}

.section-band,
.operations-section,
.portal-strip {
  padding: 72px 0;
}

.section-band {
  background: var(--muted);
}

.section-heading {
  display: grid;
  gap: 0;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 220px;
  padding: 22px;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #134e4a;
  font-size: 12px;
  font-weight: 800;
}

.feature-card h3,
.checklist-panel h3 {
  margin: 18px 0 0;
  font-size: 18px;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted-foreground);
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 40px;
  align-items: start;
}

.checklist-panel {
  padding: 24px;
}

.checklist-panel ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.checklist-panel li {
  position: relative;
  padding-left: 26px;
  color: var(--muted-foreground);
}

.checklist-panel li::before {
  position: absolute;
  left: 0;
  top: 3px;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  content: "";
}

.checklist-panel li::after {
  position: absolute;
  left: 6px;
  top: 7px;
  width: 6px;
  height: 9px;
  border-right: 2px solid #0f766e;
  border-bottom: 2px solid #0f766e;
  content: "";
  transform: rotate(40deg);
}

.portal-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.portal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pricing-page-hero {
  padding: 64px 0 34px;
}

.pricing-page-hero h1 {
  max-width: 780px;
  margin: 12px 0 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

.pricing-plans {
  display: grid;
  gap: 22px;
}

.pricing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.pricing-toolbar p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 3px;
}

.pricing-toggle button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 8px 12px;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pricing-toggle button.active {
  background: var(--panel);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: grid;
  min-height: 438px;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.pricing-card.featured {
  border-color: #111827;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

.pricing-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  padding: 5px 9px;
  color: #1e40af;
  font-size: 11px;
  font-weight: 800;
}

.pricing-card-heading h3 {
  margin: 0;
  font-size: 20px;
}

.pricing-card-heading strong {
  display: block;
  margin-top: 12px;
  color: var(--foreground);
  font-size: 28px;
  line-height: 1.12;
}

.pricing-card-heading p {
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
}

.pricing-features {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  color: var(--foreground);
  font-size: 14px;
}

.pricing-features i {
  color: #0f766e;
}

.selected-plan-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 14px;
}

.selected-plan-panel div {
  display: grid;
  gap: 4px;
  text-align: right;
}

.selected-plan-panel strong {
  color: var(--foreground);
}

.selected-plan-panel span:not(.eyebrow) {
  color: var(--muted-foreground);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.property-portal-landing {
  min-height: 100vh;
  background: var(--background);
}

.property-portal-hero {
  display: grid;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  align-content: center;
  gap: 56px;
  padding-top: 42px;
  padding-right: clamp(24px, 6vw, 88px);
  padding-bottom: 42px;
  padding-left: clamp(24px, 6vw, 88px);
}

.property-portal-grid {
  display: grid;
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
}

.property-portal-copy h1 {
  margin: 10px 0 0;
  color: var(--foreground);
  font-size: clamp(38px, 6vw, 72px);
  line-height: .98;
  letter-spacing: 0;
}

.property-portal-copy p {
  margin: 18px 0 0;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1.6;
}

.property-portal-copy .property-portal-welcome {
  max-width: 68ch;
  white-space: pre-line;
}

.property-portal-primary {
  background: var(--property-accent, var(--primary)) !important;
  border-color: var(--property-accent, var(--primary)) !important;
}

.property-portal-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.property-portal-contact a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
  text-decoration: none;
}

.property-portal-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--muted);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.property-portal-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 920px) {
  .property-portal-grid {
    grid-template-columns: 1fr;
  }
}

.property-soon-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 18%, rgba(20, 184, 166, .12), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.property-soon-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  align-content: center;
  gap: 48px;
  padding-top: 42px;
  padding-right: clamp(24px, 6vw, 88px);
  padding-bottom: 42px;
  padding-left: clamp(24px, 6vw, 88px);
}

.property-soon-card {
  display: grid;
  width: 100%;
  min-height: 64vh;
  align-content: center;
  border-top: 1px solid rgba(108, 95, 199, .18);
  border-bottom: 1px solid rgba(108, 95, 199, .18);
  padding: clamp(28px, 6vw, 56px) 0;
}

.property-soon-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 22px;
}

.property-soon-card h1 {
  margin: 10px 0 0;
  color: var(--foreground);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.property-soon-card p {
  margin: 18px 0 0;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.65;
}

.property-soon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.property-soon-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 7px 11px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.property-maintenance-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 58%, #eef2ff 100%);
}

.property-maintenance-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  align-content: center;
  gap: 48px;
  padding-top: 42px;
  padding-right: clamp(24px, 6vw, 88px);
  padding-bottom: 42px;
  padding-left: clamp(24px, 6vw, 88px);
}

.property-maintenance-card {
  display: grid;
  max-width: 760px;
  min-height: 56vh;
  align-content: center;
  border-top: 1px solid rgba(217, 119, 6, .24);
  border-bottom: 1px solid rgba(79, 70, 229, .16);
  padding: clamp(28px, 6vw, 56px) 0;
}

.property-maintenance-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 22px;
}

.property-maintenance-card h1 {
  margin: 10px 0 0;
  color: var(--foreground);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.property-maintenance-card p {
  margin: 18px 0 0;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.65;
}

.register-section {
  padding: 64px 0 72px;
  background: #f8fafc;
}

.register-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.register-copy {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.register-copy h1,
.register-success h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.register-copy p,
.register-success p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 17px;
}

.register-note,
.register-panel,
.register-success {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.register-note {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.register-note span {
  color: var(--muted-foreground);
  font-size: 14px;
}

.register-panel {
  padding: 24px;
}

.register-panel .panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.register-panel .panel-heading h2 {
  margin: 0;
  font-size: 22px;
}

.register-panel .panel-heading p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
}

.public-register-form {
  gap: 18px;
}

.public-register-form input,
.public-register-form select,
.public-register-form textarea {
  width: 100%;
}

.register-success-section {
  min-height: 58vh;
  display: grid;
  align-items: center;
}

.register-success {
  display: grid;
  gap: 18px;
  max-width: 720px;
  padding: 34px;
}

.site-footer {
  padding: 38px 0;
}

.page-hero {
  padding: 72px 0;
}

.compact-page-hero {
  padding-bottom: 42px;
}

.page-hero-grid,
.contact-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 36px;
  align-items: start;
}

.page-hero h1,
.compact-page-hero h1 {
  max-width: 820px;
  margin: 12px 0 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero p,
.compact-page-hero p,
.copy-stack p,
.portal-inner p {
  margin: 18px 0 0;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.65;
}

.compact-media img {
  min-height: 320px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card.compact {
  min-height: 190px;
}

.feature-story-section {
  background: #f8fafc;
}

.feature-stories {
  display: grid;
  gap: 24px;
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.feature-story.reversed .story-visual {
  order: 2;
}

.story-visual {
  overflow: hidden;
  border-radius: 10px;
  background: var(--muted);
}

.story-visual img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.feature-story h3,
.module-detail h2,
.demo-role-card h2,
.help-category h2,
.demo-card h2,
.split-section h2,
.legal-content h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.14;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted-foreground);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  content: "\2713";
  font-size: 12px;
  font-weight: 900;
}

.testimonial-section,
.faq-section,
.feature-anchor-section {
  padding: 72px 0;
}

.testimonial-grid,
.faq-grid,
.demo-grid,
.help-category-grid,
.feature-anchor-grid {
  display: grid;
  gap: 16px;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid figure,
.faq-grid details,
.module-detail,
.demo-role-card,
.help-category,
.contact-card,
.demo-card,
.legal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.testimonial-grid figure {
  margin: 0;
  padding: 24px;
}

.testimonial-grid blockquote {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.7;
}

.testimonial-grid figcaption {
  margin-top: 18px;
  color: var(--foreground);
  font-weight: 800;
}

.testimonial-grid figcaption span {
  display: block;
  margin-top: 3px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid details {
  padding: 22px;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--foreground);
  font-weight: 800;
}

.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted-foreground);
}

.feature-anchor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-detail {
  scroll-margin-top: 120px;
  padding: 24px;
}

.module-index,
.category-meta,
.legal-updated,
.pricing-guarantee {
  display: inline-flex;
  width: fit-content;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-detail p,
.demo-role-card p,
.help-category p,
.demo-card p,
.legal-content p {
  margin: 12px 0 0;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.about-stat-panel {
  display: grid;
  gap: 14px;
  margin: 0;
}

.about-stat-panel div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}

.about-stat-panel dt {
  font-size: 34px;
  font-weight: 900;
}

.about-stat-panel dd {
  margin: 4px 0 0;
  color: var(--muted-foreground);
}

.copy-stack {
  display: grid;
  gap: 4px;
}

.help-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.help-stats span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  padding: 8px 12px;
  color: var(--muted-foreground);
}

.help-stats strong {
  color: var(--foreground);
}

.help-category-grid,
.demo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.help-category,
.demo-role-card,
.contact-card,
.demo-card {
  padding: 24px;
}

.category-meta {
  margin-top: 16px;
  color: var(--muted-foreground);
}

.contact-card {
  display: grid;
  gap: 18px;
}

.contact-card div {
  display: grid;
  gap: 4px;
}

.contact-card i {
  color: var(--primary);
  font-size: 20px;
}

.contact-card span {
  color: var(--muted-foreground);
}

.public-contact-form {
  gap: 18px;
}

.public-contact-form input,
.public-contact-form select,
.public-contact-form textarea {
  width: 100%;
}

.form-disclaimer {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.form-disclaimer a {
  color: var(--primary);
  font-weight: 800;
}

.demo-role-card {
  display: grid;
  gap: 18px;
}

.demo-role-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.demo-role-card dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}

.demo-role-card dt {
  color: var(--muted-foreground);
  font-weight: 700;
}

.demo-role-card dd {
  margin: 0;
  color: var(--foreground);
  font-weight: 800;
  word-break: break-word;
}

.legal-content {
  display: grid;
  max-width: 860px;
  gap: 24px;
  padding: 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.footer-brand {
  color: var(--foreground);
}

.footer-inner p {
  margin: 12px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: flex-end;
  gap: 10px 18px;
  font-weight: 600;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero-grid,
  .operations-grid,
  .page-hero-grid,
  .contact-grid,
  .split-section,
  .feature-story {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 320px;
  }

  .card-grid,
  .testimonial-grid,
  .faq-grid,
  .feature-anchor-grid,
  .help-category-grid,
  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-story.reversed .story-visual {
    order: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .portal-inner,
  .footer-inner,
  .register-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .register-copy {
    position: static;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 48px;
  }

  .pricing-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-toggle {
    width: 100%;
  }

  .pricing-toggle button {
    flex: 1;
  }

  .hero-stats,
  .card-grid,
  .testimonial-grid,
  .faq-grid,
  .feature-anchor-grid,
  .help-category-grid,
  .demo-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .media-panel {
    position: static;
    margin: 12px;
  }
}

.app-body {
  --background: #f6f5f8;
  --foreground: #2b2435;
  --muted: #faf9fb;
  --muted-foreground: #6f6878;
  --border: #dedbe5;
  --panel: #ffffff;
  --primary: #6c5fc7;
  --primary-foreground: #ffffff;
  --accent: #6c5fc7;
  --accent-soft: #f0ecff;
  --ring: #6c5fc7;
  --shadow: 0 1px 2px rgba(43, 36, 53, .08);
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-size: 13px;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 292px minmax(0, 1fr);
}

.client-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 252px minmax(0, 1fr);
}

.client-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  border-right: 1px solid var(--border);
  background: #fbfafc;
  padding: 18px 14px;
}

.client-sidebar-header {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.client-sidebar-header > span {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}

.client-main {
  min-width: 0;
}

.client-nav {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.client-nav-search {
  position: relative;
  display: block;
}

.client-nav-search i {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  display: grid;
  width: 16px;
  height: 100%;
  place-items: center;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  transform: none;
}

.client-nav-search i::before {
  line-height: 1;
}

.client-nav-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
  padding: 0 12px 0 34px;
  color: var(--foreground);
  font: inherit;
  outline: none;
}

.client-nav-search input:focus {
  border-color: #b8afe8;
  box-shadow: 0 0 0 3px rgba(108, 95, 199, .14);
}

.client-nav-groups {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
}

.client-nav-group {
  display: grid;
  gap: 4px;
}

.client-nav-group-toggle {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 7px 9px;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.client-nav-group-toggle:hover {
  background: #f1eff6;
  color: var(--foreground);
}

.client-nav-group-toggle i {
  font-size: 11px;
  transition: transform 140ms ease;
}

.client-nav-group-toggle[aria-expanded="true"] i {
  transform: rotate(90deg);
}

.client-nav-group-items {
  display: grid;
  gap: 3px;
}

.client-nav-empty {
  margin: 0;
  border-radius: 7px;
  background: #f1eff6;
  padding: 10px;
  color: var(--muted-foreground);
  font-weight: 600;
}

.client-nav-quota {
  justify-content: center;
  min-height: 38px;
  border-top: 1px solid var(--border);
  background: #e0f2f1;
  color: #263238;
}

.client-nav-quota .app-nav-icon {
  background: rgba(0, 150, 136, .12);
  color: #009688;
}

.client-nav-quota:hover,
.client-nav-quota.active {
  background: #b2dfdb;
  color: #263238;
}

#sidebarMain [data-client-sidebar-footer],
#sidebarMain [data-client-sidebar-support] {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 60px;
  max-height: 60px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#sidebarMain [data-client-sidebar-footer] .sidebar-nav-link,
#sidebarMain [data-client-sidebar-footer] .sidebar-nav-link:link,
#sidebarMain [data-client-sidebar-footer] .sidebar-nav-link:visited,
#sidebarMain [data-client-sidebar-footer] .sidebar-nav-link:hover,
#sidebarMain [data-client-sidebar-footer] .sidebar-nav-link.active {
  background: transparent;
  flex-wrap: nowrap;
  white-space: nowrap;
}

#sidebarMain [data-client-sidebar-footer] .sidebar-nav-link:hover,
#sidebarMain [data-client-sidebar-footer] .sidebar-nav-link.active {
  background-color: #b2dfdb; /* .teal-l4 */
}

#sidebarMain [data-client-sidebar-support] .sidebar-nav-link,
#sidebarMain [data-client-sidebar-support] .sidebar-nav-link:link,
#sidebarMain [data-client-sidebar-support] .sidebar-nav-link:visited {
  flex-wrap: nowrap;
  white-space: nowrap;
  min-height: 60px;
}

#sidebarMain [data-client-sidebar-support] #clientBugReportSidebarBtn:hover,
#sidebarMain [data-client-sidebar-support] #clientBugReportSidebarBtn:focus {
  background-color: #ffe0b2 !important; /* .orange-l4 */
}

#sidebarMain [data-client-sidebar-support] #clientLivechatSidebarBtn:hover,
#sidebarMain [data-client-sidebar-support] #clientLivechatSidebarBtn:focus {
  background-color: #bbdefb !important; /* .blue-l4 */
}

body:has(#clientLivechatSidebarBtn) #clientLivechatLauncher,
body.client-admin-layout:not(.client-focused-setup) #clientLivechatLauncher {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  height: 100vh;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  border-right: 1px solid var(--border);
  background: #ffffff;
  padding: 10px 8px;
}

.app-rail-brand,
.app-rail-item,
.app-rail-user {
  position: relative;
  display: grid;
  width: 42px;
  min-height: 42px;
  align-items: center;
  justify-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px;
  color: #4f465c;
  font-size: 12px;
  font-weight: 800;
}

.app-rail-brand {
  color: var(--foreground);
}

.app-rail-brand::after,
.app-rail-item::after,
.app-rail-user::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  z-index: 80;
  width: max-content;
  max-width: 220px;
  padding: 6px 9px;
  border: 1px solid #23202a;
  border-radius: 6px;
  background: #23202a;
  box-shadow: 0 10px 22px rgba(24, 19, 32, 0.18);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.app-rail-brand::before,
.app-rail-item::before,
.app-rail-user::before {
  position: absolute;
  top: 50%;
  left: calc(100% + 5px);
  z-index: 81;
  width: 8px;
  height: 8px;
  background: #23202a;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%) rotate(45deg);
  transition: opacity 120ms ease, transform 120ms ease;
}

.app-rail-brand:hover::after,
.app-rail-brand:hover::before,
.app-rail-brand:focus-visible::after,
.app-rail-brand:focus-visible::before,
.app-rail-item:hover::after,
.app-rail-item:hover::before,
.app-rail-item:focus-visible::after,
.app-rail-item:focus-visible::before,
.app-rail-user:hover::after,
.app-rail-user:hover::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.app-rail-brand:hover::before,
.app-rail-brand:focus-visible::before,
.app-rail-item:hover::before,
.app-rail-item:focus-visible::before,
.app-rail-user:hover::before {
  transform: translate(0, -50%) rotate(45deg);
}

.app-rail-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 18px;
}

.app-rail-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #f2f0f6;
  color: #5f566c;
  font-size: 14px;
  font-weight: 900;
}

.app-rail-item:hover,
.app-rail-item.active {
  border-color: #cfc9ef;
  background: var(--accent-soft);
  color: var(--primary);
}

.app-rail-brand .app-rail-icon,
.app-rail-item.active .app-rail-icon {
  background: var(--primary);
  color: var(--primary-foreground);
}

.nav-unread-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 9px;
  line-height: 1;
}

.app-rail-user {
  border-color: var(--border);
  background: var(--muted);
  color: var(--foreground);
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid var(--border);
  background: #fbfafc;
  padding: 0;
}

.app-sidebar-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  min-height: 72px;
  align-content: center;
  border-bottom: 1px solid var(--border);
  background: rgba(251, 250, 252, .96);
  padding: 16px 18px;
  backdrop-filter: blur(12px);
}

.app-sidebar-header span {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-sidebar-header strong {
  margin-top: 2px;
  color: var(--foreground);
  font-size: 18px;
  font-weight: 800;
}

.app-sidebar-content {
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.root-sidebar-nav {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.root-nav-search {
  position: relative;
  display: block;
}

.root-nav-search i {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  display: grid;
  width: 16px;
  height: 100%;
  place-items: center;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  transform: none;
}

.root-nav-search i::before {
  line-height: 1;
}

.root-nav-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
  padding: 0 12px 0 34px;
  color: var(--foreground);
  font: inherit;
  outline: none;
}

.root-nav-search input:focus {
  border-color: #b8afe8;
  box-shadow: 0 0 0 3px rgba(108, 95, 199, .14);
}

.root-nav-groups {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
}

.root-nav-group {
  display: grid;
  gap: 4px;
}

.root-nav-group-toggle {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 7px 9px;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.root-nav-group-toggle:hover {
  background: #f1eff6;
  color: var(--foreground);
}

.root-nav-group-toggle i {
  font-size: 11px;
  transition: transform 140ms ease;
}

.root-nav-group-toggle[aria-expanded="true"] i {
  transform: rotate(90deg);
}

.root-nav-group-items {
  display: grid;
  gap: 3px;
}

/*
 * Smooth, accordion-like expand/collapse for the Root left sidebar.
 *
 * The existing engine in public/assets/app.js drives groups open/closed by
 * toggling the `hidden` attribute on `[data-root-nav-items]`. The browser's
 * default `[hidden] { display: none }` is a hard cut, so here we override it
 * (Root scope only) and animate max-height + opacity instead, keeping the
 * one-group-open accordion behaviour and the JS contract unchanged.
 *
 * Scoped under [data-root-sidebar-nav] so the Owner/Client sidebars, which
 * reuse the same `.root-nav-group-items` class, are left exactly as they were.
 */
[data-root-sidebar-nav] .root-nav-group-items {
  overflow: hidden;
  max-height: 60rem;
  opacity: 1;
}

[data-root-sidebar-nav] .root-nav-group-items[hidden] {
  display: grid;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/*
 * The transition is enabled by app.js (data-root-nav-animate="on") one frame
 * after the initial accordion layout is applied, so page load never flashes
 * every group closed; only subsequent user toggles animate.
 */
[data-root-sidebar-nav][data-root-nav-animate="on"] .root-nav-group-items {
  transition: max-height 220ms ease, opacity 160ms ease;
}

[data-client-sidebar-nav] .root-nav-group-items {
  overflow: hidden;
  max-height: 60rem;
  opacity: 1;
}

[data-client-sidebar-nav] .root-nav-group-items[hidden] {
  display: grid;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

[data-client-sidebar-nav][data-client-nav-animate="on"] .root-nav-group-items {
  transition: max-height 220ms ease, opacity 160ms ease;
}

[data-client-sidebar-nav] {
  padding-right: 12px;
}

[data-client-sidebar-nav] .root-nav-group-toggle {
  justify-content: flex-start !important;
  gap: 8px !important;
  padding-right: 8px;
}

[data-client-sidebar-nav] .root-nav-group-toggle span {
  min-width: 0;
  flex: 0 1 auto !important;
  text-align: left !important;
}

[data-client-sidebar-nav] .root-nav-group-toggle i {
  margin-left: 0 !important;
  color: #94a3b8;
}

[data-client-sidebar-nav] .app-nav-item {
  justify-content: flex-start !important;
}

[data-client-sidebar-nav] .app-nav-item > span:not(.app-nav-icon):not(.nav-unread-count) {
  min-width: 0;
  flex: 1 1 auto !important;
  text-align: left !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-root-sidebar-nav][data-root-nav-animate="on"] .root-nav-group-items {
    transition: none;
  }

  [data-client-sidebar-nav][data-client-nav-animate="on"] .root-nav-group-items {
    transition: none;
  }
}

.root-nav-empty {
  margin: 0;
  border-radius: 7px;
  background: #f1eff6;
  padding: 10px;
  color: var(--muted-foreground);
  font-weight: 600;
}

.app-brand {
  display: flex;
  margin-bottom: 18px;
  padding: 0 8px 16px;
  border-bottom: 1px solid var(--border);
}

.app-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--primary);
}

.app-brand .brand-text {
  font-size: 15px;
  font-weight: 800;
}

.app-nav {
  display: grid;
  gap: 3px;
}

.app-nav-label,
.app-kicker {
  margin: 14px 8px 7px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-nav-item {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 5px 8px;
  color: #4f465c;
  font-size: 13px;
  font-weight: 600;
}

.app-nav-item:hover {
  background: #f1eff6;
  color: var(--foreground);
}

.app-nav-item.active {
  background: var(--accent-soft);
  color: var(--primary);
}

.app-nav-item.disabled {
  cursor: not-allowed;
  opacity: .55;
}

.app-nav-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: #f2f0f6;
  color: #6f6878;
  font-size: 12px;
  font-weight: 800;
}

.app-nav-item.active .app-nav-icon {
  background: #ffffff;
  color: var(--primary);
}

.nav-unread-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  place-items: center;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.app-main {
  min-width: 0;
  background: var(--background);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .92);
  padding: 7px 22px;
  backdrop-filter: blur(12px);
}

.client-main .app-topbar {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.client-shell.has-client-impersonation {
  min-height: calc(100vh - 44px);
}

.client-shell.has-client-impersonation .client-sidebar {
  top: 44px;
  height: calc(100vh - 44px);
}

.client-shell.has-client-impersonation .app-topbar {
  top: 44px;
}

.client-impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #075985;
  padding: 8px 22px;
}

.client-impersonation-banner > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.client-impersonation-banner i {
  color: #0284c7;
  font-size: 14px;
}

.client-impersonation-banner span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.client-impersonation-banner strong,
.client-impersonation-banner small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-impersonation-banner strong {
  font-size: 12px;
  line-height: 1.15;
}

.client-impersonation-banner small {
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
}

.owner-preview-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #075985;
  padding: 8px 22px;
}

.owner-preview-banner > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.owner-preview-banner i {
  color: #0284c7;
  font-size: 14px;
}

.owner-preview-banner span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.owner-preview-banner strong,
.owner-preview-banner small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-preview-banner strong {
  font-size: 12px;
  line-height: 1.15;
}

.owner-preview-banner small {
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
}

.client-property-switcher {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.client-property-switcher .form-field {
  width: min(32vw, 280px);
  min-width: 190px;
  gap: 0;
}

.owner-property-switcher {
  width: min(32vw, 300px);
  min-width: 210px;
  justify-self: end;
  gap: 0;
}

.owner-shell.has-owner-preview {
  min-height: calc(100vh - 44px);
}

.owner-shell.has-owner-preview .client-sidebar {
  top: 44px;
  height: calc(100vh - 44px);
}

.app-breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 600;
}

.app-breadcrumbs strong {
  color: var(--foreground);
}

.app-search {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfafc;
  padding: 0 10px;
  color: var(--muted-foreground);
}

.app-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  outline: 0;
}

.app-search i {
  display: grid;
  place-items: center;
  line-height: 1;
}

.app-search i::before {
  line-height: 1;
}

.app-search:focus-within {
  border-color: #b8b0df;
  box-shadow: 0 0 0 2px rgba(108, 95, 199, .14);
}

.app-view-site {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfafc;
  padding: 0 11px;
  color: #3b3347;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(43, 36, 53, .05);
}

.app-view-site:hover {
  border-color: #c8c1d5;
  background: #f2f0f6;
}

.app-topbar h1 {
  margin: 0;
  font-size: 18px;
}

.app-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-user-trigger {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 3px 6px;
  color: var(--foreground);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.app-user-trigger:hover,
.app-user-trigger[aria-expanded="true"] {
  background: #f4f1fb;
}

.app-user-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d8d1f2;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.app-user-label {
  min-width: 0;
}

.app-user strong,
.app-user span {
  display: block;
  font-size: 13px;
}

.app-user span {
  color: var(--muted-foreground);
}

.app-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 220px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(26, 19, 43, .16);
  padding: 6px;
}

.app-user-menu[hidden] {
  display: none !important;
}

.app-user-menu-header {
  border-bottom: 1px solid var(--border);
  margin: 0 0 4px;
  padding: 8px 9px 10px;
}

.app-user-menu-header strong,
.app-user-menu-header span {
  display: block;
}

.app-user-menu-header strong {
  color: var(--foreground);
  font-size: 13px;
}

.app-user-menu-header span {
  color: var(--muted-foreground);
  font-size: 12px;
}

.app-user-menu-item {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--foreground);
  padding: 7px 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
}

.app-user-menu-item:hover {
  background: #f4f1fb;
  color: var(--foreground);
}

.app-user-menu-button {
  cursor: pointer;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.app-content {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.root-module-shell {
  display: grid;
  width: 100%;
  min-height: calc(100vh - 92px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.root-module-header {
  min-height: 72px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.root-module-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 14px;
}

.root-module-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.root-module-header p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.root-module-content-container {
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.root-module-tabs {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 14px 0 0;
}

.root-module-filter {
  position: relative;
  display: flex;
  width: min(360px, 100%);
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
}

.root-module-filter i {
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
}

.root-module-filter input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--foreground);
  font: inherit;
  font-size: 13px;
  padding: 8px 10px 8px 34px;
}

.root-module-filter input:focus {
  border-color: var(--ring);
  outline: 2px solid rgba(17, 24, 39, .14);
  outline-offset: 1px;
}

.root-module-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.root-module-tab {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px 9px;
  transform: translateY(1px);
}

.root-module-tab:hover {
  background: var(--muted);
  color: var(--foreground);
}

.root-module-tab.active {
  border-color: var(--border);
  background: var(--background);
  color: var(--foreground);
}

.root-module-tab span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.root-module-tab strong {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
}

.root-module-tab.active strong {
  background: var(--foreground);
  color: var(--background);
}

.root-module-content-grid {
  display: grid;
  width: 100%;
  min-height: 100%;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.root-module-content-grid.has-left-panel {
  grid-template-columns: minmax(0, 1fr);
}

.root-module-side-panel[hidden] {
  display: none !important;
}

.root-module-side-panel {
  min-width: 250px;
  overflow: auto;
  background: var(--panel);
}

.root-module-side-panel-left {
  border-right: 1px solid var(--border);
}

.root-module-side-panel-right {
  border-left: 1px solid var(--border);
}

.root-module-content {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  gap: 14px;
  overflow: auto;
  padding: 16px 0 0;
  background: transparent;
}

.root-module-content > * {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
}

.root-module-content .app-panel,
.root-module-content .datatable-controls,
.root-module-content .app-table-panel,
.root-module-content .form-panel {
  width: 100%;
  max-width: none;
}

.root-module-content[aria-busy="true"] {
  cursor: wait;
  opacity: .72;
}

.root-module-footer {
  min-height: 60px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.app-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.app-page-heading h1,
.app-page-heading h2 {
  margin: 7px 0 0;
  font-size: 24px;
  line-height: 1.15;
}

.app-page-heading p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.page-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.page-heading-actions form {
  margin: 0;
}

.module-action-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.module-action-row form {
  margin: 0;
}

.app-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-stat-card,
.app-panel {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-stat-card {
  padding: 15px;
}

.app-stat-card span {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.app-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
}

.app-stat-card p {
  margin: 10px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.app-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 16px;
}

.client-stat-grid {
  margin-top: 18px;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat-grid .app-stat-card {
  padding: 12px;
}

.mini-stat-grid .app-stat-card strong {
  margin-top: 6px;
  font-size: 20px;
}

.root-chart-summary .app-stat-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.root-chart-dashboard {
  width: 100%;
  min-height: 100%;
  background: #f1f5f9;
}

.root-chart-scroll {
  width: 100%;
  padding: 16px;
}

.root-chart-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.root-chart-summary-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.root-chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 14px;
  margin-top: 14px;
}

.root-chart-panel {
  min-width: 0;
  padding: 16px;
}

.root-chart-panel-wide {
  grid-column: span 1;
}

.root-chart-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.root-chart-panel-header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.root-chart-panel-header p {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.root-chart-svg-frame {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
}

.root-chart-svg {
  display: block;
  width: 100%;
  height: 260px;
}

.root-chart-svg-grid {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.root-chart-svg-area {
  fill: rgba(37, 99, 235, 0.12);
  stroke: none;
}

.root-chart-svg-area-alt {
  fill: rgba(15, 118, 110, 0.12);
}

.root-chart-svg-bar {
  fill: rgba(37, 99, 235, 0.22);
}

.root-chart-svg-bar-alt {
  fill: rgba(15, 118, 110, 0.22);
}

.root-chart-svg-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.root-chart-svg-line-alt {
  stroke: #0f766e;
}

.root-chart-svg-label {
  fill: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}

.root-chart-axis-label {
  position: absolute;
  left: 12px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
}

.root-chart-axis-label-top {
  top: 10px;
}

.root-chart-axis-label-bottom {
  bottom: 36px;
}

.root-chart-value-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.root-chart-value-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.root-chart-value-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.root-chart-svg-area-late {
  fill: rgba(220, 38, 38, 0.12);
}

.root-chart-svg-bar-late {
  fill: rgba(220, 38, 38, 0.28);
}

.root-chart-svg-line-late {
  stroke: #dc2626;
}

/* Admin dashboard: keep Bootstrap rows/cards inside the flex shell (no page X-scroll). */
body.admin-root-layout #pageContent {
  min-width: 0;
  max-width: 100%;
}

/* DID order POS: catalog + cart sidebar must stay inside the Client pane. */
[data-did-pos],
[data-did-order-wizard],
[data-did-pos] form,
[data-did-order-wizard] form,
#didsFormContent,
#didsPageLayout {
  min-width: 0;
  max-width: 100%;
}
[data-did-pos] .row > [class*="col-"],
[data-did-order-wizard] .row > [class*="col-"] {
  min-width: 0;
}
[data-did-pos] .did-pos-body {
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}
[data-did-pos] .did-pos-catalog {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
[data-did-pos] .did-pos-catalog [data-did-results] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
[data-did-pos] .did-pos-cart {
  flex: 0 0 22.5rem;
  width: 22.5rem;
  max-width: 40%;
  min-height: 0;
  align-self: stretch;
}
[data-did-pos][data-did-pos-view="shop"] [data-did-checkout-pane] {
  display: none !important;
}
[data-did-pos][data-did-pos-view="checkout"] [data-did-shop-pane] {
  display: none !important;
}
[data-did-pos][data-did-pos-view="checkout"] [data-did-go-checkout] {
  display: none !important;
}
@media (max-width: 767.98px) {
  [data-did-pos] .did-pos-body {
    flex-direction: column;
    overflow-y: auto;
  }
  [data-did-pos] .did-pos-catalog {
    flex: 1 1 auto;
    min-height: 16rem;
  }
  [data-did-pos] .did-pos-cart {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    border-left: 0 !important;
    border-top: 1px solid var(--bs-border-color);
  }
}

.cp-dashboard-module,
.cp-dashboard-module #dashboardmodContent {
  min-width: 0;
  max-width: 100%;
}

.cp-dashboard-module .content {
  max-width: 100%;
  overflow-x: hidden;
}

.cp-dashboard-module .card,
.cp-dashboard-module .row > [class*="col-"] {
  min-width: 0;
}

.dashboard-striped-list > .list-group-item:nth-child(even) {
  background-color: #f8f9fa;
}

.root-chart-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.root-chart-donut-layout {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.root-chart-donut {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 22px #ffffff;
}

.root-chart-donut span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 800;
}

.root-chart-legend-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.root-chart-legend-label i {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.root-chart-empty {
  display: grid;
  min-height: 124px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.root-chart-bars {
  display: grid;
  gap: 12px;
}

.root-chart-bar-row {
  display: grid;
  gap: 7px;
}

.root-chart-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.root-chart-bar-label strong {
  font-size: 12px;
}

.root-chart-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.root-chart-bar-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0f766e);
}

.root-chart-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 190px;
}

.root-chart-columns.compact {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.root-chart-column {
  display: grid;
  grid-template-rows: minmax(110px, 1fr) auto auto;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.root-chart-column-track {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 110px;
  border-radius: 6px;
  background: #f8fafc;
}

.root-chart-column-track span {
  display: block;
  width: 62%;
  min-height: 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #2563eb, #0f766e);
}

.root-chart-column strong,
.root-chart-column small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.root-chart-column strong {
  font-size: 11px;
}

.root-chart-column small {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
}

.root-chart-generated {
  margin: 14px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

@media (max-width: 1199.98px) {
  .root-chart-summary-grid,
  .root-chart-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .root-chart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .root-chart-summary-grid,
  .root-chart-card-grid {
    grid-template-columns: 1fr;
  }

  .root-chart-donut-layout {
    grid-template-columns: 1fr;
  }
}

.root-provider-summary .app-stat-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.root-provider-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.root-provider-main {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.root-provider-sidebar {
  position: sticky;
  top: 14px;
  display: grid;
  max-height: calc(100vh - 132px);
  overflow: auto;
  align-self: start;
  scrollbar-gutter: stable;
}

.root-provider-sidebar-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
  padding: 14px;
}

.root-provider-sidebar-header h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.2;
}

.root-provider-sidebar-header p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.root-provider-sidebar-section {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding: 12px;
}

.root-provider-sidebar-section:first-of-type {
  border-top: 0;
}

.root-provider-sidebar-label {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.root-provider-sidebar-link,
.root-provider-surface-link {
  color: inherit;
  text-decoration: none;
}

.root-provider-sidebar-link {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 750;
  padding: 7px 9px;
}

.root-provider-sidebar-link:hover,
.root-provider-sidebar-link.active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.root-provider-sidebar-link strong {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 11px;
  padding: 0 6px;
}

.root-provider-surface-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px;
}

.root-provider-surface-link:hover {
  border-color: var(--border);
  background: var(--muted);
}

.root-provider-surface-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--foreground);
}

.root-provider-surface-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.root-provider-surface-text strong,
.root-provider-surface-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.root-provider-surface-text strong {
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.2;
}

.root-provider-surface-text small {
  color: var(--muted-foreground);
  font-size: 11px;
}

.root-provider-surface-status {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #94a3b8;
}

.root-provider-surface-status.status-active {
  background: #16a34a;
}

.root-provider-surface-status.status-pending {
  background: #f59e0b;
}

.root-provider-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.root-provider-filter-panel h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.root-provider-filter-panel p {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.root-provider-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.root-provider-category-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.root-provider-category-link:hover,
.root-provider-category-link.active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.root-provider-category-link strong {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 11px;
  padding: 0 6px;
}

.root-provider-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.root-provider-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 16px;
}

.root-provider-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.root-provider-card-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--foreground);
}

.root-provider-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.root-provider-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.root-provider-card-header p,
.root-provider-description {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.55;
}

.root-provider-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.root-provider-meta-grid > div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.root-provider-meta-grid span,
.root-provider-card-footer span {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.root-provider-meta-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.root-provider-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.root-provider-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 13px;
}

.root-provider-generated {
  margin: 14px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.property-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 14px;
}

.property-profile-hero .eyebrow {
  margin: 0 0 4px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.property-profile-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--root-panel-border, var(--border));
}

.definition-grid > div,
.compact-definition-list > div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--root-panel-border, var(--border));
  padding: 13px;
}

.definition-grid > div:nth-child(odd) {
  border-right: 1px solid var(--root-panel-border, var(--border));
}

.definition-grid dt,
.compact-definition-list dt {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.definition-grid dd,
.compact-definition-list dd {
  margin: 0;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.compact-definition-list {
  margin: 0;
  border-top: 1px solid var(--root-panel-border, var(--border));
}

.compact-definition-list > div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.compact-definition-list dt {
  grid-column: 1;
}

.compact-definition-list dd {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.property-color-swatch {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.danger-zone-panel {
  border-color: #fecaca;
  background: #fffafa;
}

.status-provisioned,
.status-completed {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.status-provisioning,
.status-queued,
.status-implementation,
.status-onboarding,
.status-setup {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.status-failed,
.status-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 980px) {
  .root-chart-layout,
  .root-provider-layout,
  .root-provider-filter-panel,
  .root-provider-card-grid,
  .property-profile-grid,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .root-provider-sidebar {
    position: static;
    max-height: none;
  }

  .root-provider-category-tabs {
    justify-content: flex-start;
  }

  .definition-grid > div:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .root-chart-columns,
  .root-chart-columns.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.forum-module-shell {
  margin-top: 16px;
}

.survey-module-shell {
  margin-top: 16px;
}

.announcement-module-shell {
  margin-top: 16px;
}

.forum-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding: 0 0 10px;
}

.forum-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 11px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 800;
}

.forum-tabs a:hover,
.forum-tabs a.active {
  border-color: var(--border);
  background: var(--panel);
  color: var(--foreground);
  text-decoration: none;
}

.forum-icon-chip {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--muted);
  color: var(--foreground);
}

.forum-pastel {
  --forum-pastel-bg: #d7ecff;
  --forum-pastel-fg: #1c5f8a;
  --forum-pastel-border: #a8d0f0;
}

.forum-pastel[data-forum-color="rose"] {
  --forum-pastel-bg: #fde4e8;
  --forum-pastel-fg: #8a3d4d;
  --forum-pastel-border: #f3c4cc;
}

.forum-pastel[data-forum-color="peach"] {
  --forum-pastel-bg: #ffe6d4;
  --forum-pastel-fg: #9a5a32;
  --forum-pastel-border: #f5c9a8;
}

.forum-pastel[data-forum-color="lemon"] {
  --forum-pastel-bg: #fff4c8;
  --forum-pastel-fg: #7a6420;
  --forum-pastel-border: #ead98a;
}

.forum-pastel[data-forum-color="mint"] {
  --forum-pastel-bg: #d8f3e4;
  --forum-pastel-fg: #2d6a4f;
  --forum-pastel-border: #a8dcc0;
}

.forum-pastel[data-forum-color="sky"] {
  --forum-pastel-bg: #d7ecff;
  --forum-pastel-fg: #1c5f8a;
  --forum-pastel-border: #a8d0f0;
}

.forum-pastel[data-forum-color="lavender"] {
  --forum-pastel-bg: #e8e0ff;
  --forum-pastel-fg: #53408a;
  --forum-pastel-border: #c8b8f0;
}

.forum-pastel[data-forum-color="lilac"] {
  --forum-pastel-bg: #f3dff8;
  --forum-pastel-fg: #6d3d7a;
  --forum-pastel-border: #e0bce8;
}

.forum-pastel[data-forum-color="blush"] {
  --forum-pastel-bg: #ffd9e4;
  --forum-pastel-fg: #8a3d5c;
  --forum-pastel-border: #f0b4c6;
}

.forum-pastel[data-forum-color="sand"] {
  --forum-pastel-bg: #f3e6d4;
  --forum-pastel-fg: #6e5340;
  --forum-pastel-border: #ddc8ae;
}

.forum-pastel[data-forum-color="aqua"] {
  --forum-pastel-bg: #d0f4ef;
  --forum-pastel-fg: #1a6b63;
  --forum-pastel-border: #9fdcd4;
}

.forum-icon-chip.forum-pastel {
  background: var(--forum-pastel-bg);
  color: var(--forum-pastel-fg);
  border-color: var(--forum-pastel-border);
}

.list-group-item.forum-pastel-row,
.forum-pastel-row {
  background: var(--forum-pastel-bg);
  background: color-mix(in srgb, var(--forum-pastel-bg) 48%, #fff);
  border-left: 4px solid var(--forum-pastel-border);
}

.card.forum-pastel-post,
.forum-pastel-post {
  background: var(--forum-pastel-bg);
  border-left: 4px solid var(--forum-pastel-border);
}

a.forum-pastel:hover,
a.forum-pastel:focus-visible {
  background: var(--forum-pastel-bg) !important;
  border-color: var(--forum-pastel-border);
  color: var(--forum-pastel-fg);
}

.card.forum-pastel-post > .card-header,
.card.forum-pastel-post > .card-header.bg-white,
.card.forum-pastel-post > .card-header.bg-transparent,
.card.forum-pastel-post > .card-body,
.card.forum-pastel-post > .card-footer,
.card.forum-pastel-row > .card-header,
.card.forum-pastel-row > .card-header.bg-white,
.card.forum-pastel-row > .card-header.bg-transparent,
.card.forum-pastel-row > .card-body {
  background-color: transparent;
}

.list-group-item.forum-pastel-post {
  background: var(--forum-pastel-bg);
  border-left: 4px solid var(--forum-pastel-border);
}

.table > tbody > tr.forum-pastel-row > * {
  background-color: color-mix(in srgb, var(--forum-pastel-bg) 48%, #fff);
  box-shadow: none;
}

.forum-pastel-avatar {
  background: var(--forum-pastel-bg);
  color: var(--forum-pastel-fg);
  border: 1px solid var(--forum-pastel-border);
}

.btn-small.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  min-width: 1.75rem;
  height: 1.75rem;
  min-height: 1.75rem;
  padding: 0;
  line-height: 1;
}

.forum-pastel-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--forum-pastel-border);
  border-radius: 999px;
  background: var(--forum-pastel-bg);
  color: var(--forum-pastel-fg);
  font-size: 0.75rem;
  font-weight: 700;
}

.forum-pastel-swatch-label {
  margin: 0;
  cursor: pointer;
}

.forum-pastel-swatch {
  display: block;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--forum-pastel-border);
  border-radius: 999px;
  background: var(--forum-pastel-bg);
  box-shadow: inset 0 0 0 2px #fff;
}

.forum-pastel-swatch-label input:focus-visible + .forum-pastel-swatch {
  outline: 2px solid var(--forum-pastel-fg);
  outline-offset: 2px;
}

.forum-pastel-swatch-label input:checked + .forum-pastel-swatch {
  border-color: var(--forum-pastel-fg);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--forum-pastel-fg);
}

.forum-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
}

.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.survey-response-list {
  display: grid;
  gap: 12px;
}

.survey-response-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.survey-response-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.survey-response-card header div {
  display: grid;
  gap: 2px;
}

.survey-response-card small {
  color: var(--muted-foreground);
}

.survey-answer-list {
  display: grid;
  gap: 8px;
}

.survey-answer-row {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.survey-answer-row span {
  color: var(--muted-foreground);
  font-weight: 700;
}

.owner-stat-grid {
  margin-top: 18px;
}

.client-dashboard-grid,
.client-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.client-onboarding-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-panel {
  padding: 16px;
}

.app-panel h2,
.app-panel h3 {
  margin: 0;
  font-size: 15px;
}

.app-panel-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 15px;
}

.client-onboarding-card {
  display: flex;
  min-height: 190px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.client-onboarding-action,
.panel-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.client-onboarding-action {
  justify-content: flex-end;
}

.client-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  background: #f0fdf4;
  color: #166534;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.client-flash-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.client-property-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.client-property-card {
  display: grid;
  gap: 16px;
}

.client-property-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-property-card-header .app-panel-icon {
  margin-bottom: 0;
}

.client-property-card-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.client-property-card-body p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.client-property-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.client-property-meta div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--muted);
  padding: 10px;
}

.client-property-meta dt {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-property-meta dd {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-property-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.client-property-actions form {
  margin: 0;
}

.client-property-note {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}

.client-properties-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 16px;
}

.client-properties-empty .app-panel-icon {
  margin-bottom: 4px;
}

.client-properties-empty p {
  margin: 0;
  color: var(--muted-foreground);
}

.client-owner-filter-panel {
  margin-top: 16px;
}

.client-owner-filter-form {
  display: flex;
  align-items: end;
  gap: 12px;
}

.client-owner-filter-form .form-field {
  flex: 1 1 320px;
}

.client-owner-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-owner-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.client-owner-card {
  display: grid;
  gap: 16px;
}

.client-owner-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-owner-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 13px;
  font-weight: 900;
}

.client-owner-card-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.client-owner-card-body p {
  margin: 7px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.client-owner-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.client-owner-meta div {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--muted);
  padding: 10px;
}

.client-owner-meta dt {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-owner-meta dd {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-owner-property {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 13px;
}

.client-owner-property i {
  margin-top: 2px;
  color: var(--primary);
}

.client-owner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.client-owners-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 16px;
}

.client-owners-empty .app-panel-icon {
  margin-bottom: 4px;
}

.client-owners-empty p {
  margin: 0;
  color: var(--muted-foreground);
}

.client-form-panel,
.client-properties-panel {
  margin-top: 16px;
}

.client-onboarding-card p,
.client-next-steps p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.client-next-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.panel-heading p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.app-panel p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
}

.app-panel-note {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.app-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted-foreground);
}

.app-alert {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 700;
}

.app-alert-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.app-alert-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.app-toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.app-toast.show {
  display: block;
  opacity: 1;
}

.notification-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.notification-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.notification-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: #fbfafc;
  padding: 12px;
}

.notification-tab {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 11px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 800;
}

.notification-tab:hover,
.notification-tab.active {
  border-color: #cfc9ef;
  background: var(--accent-soft);
  color: var(--primary);
}

.notification-tab strong {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 11px;
}

.notification-list {
  display: grid;
}

.notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding: 15px;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.unread {
  background: #fffdf7;
}

.notification-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 16px;
}

.notification-success .notification-icon {
  background: #f0fdf4;
  color: #15803d;
}

.notification-warning .notification-icon {
  background: #fffbeb;
  color: #b45309;
}

.notification-error .notification-icon {
  background: #fef2f2;
  color: #b91c1c;
}

.notification-content {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.notification-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-title-row h3 {
  margin: 0;
  font-size: 14px;
}

.notification-content p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.45;
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.notifications-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 28px;
}

.notifications-empty h3,
.notifications-empty p {
  margin: 0;
}

.notifications-empty p {
  color: var(--muted-foreground);
  font-size: 13px;
}

.notification-preferences-form {
  display: grid;
  gap: 16px;
}

.notification-preferences-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.notification-preference-groups,
.notification-preference-list {
  display: grid;
}

.notification-preference-toolbar {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 14px;
}

.notification-preference-toolbar .form-field {
  max-width: 360px;
}

.notification-preference-group + .notification-preference-group {
  border-top: 1px solid var(--border);
}

.notification-preference-group-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  background: #fbfafc;
  padding: 14px;
}

.notification-preference-module-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary);
}

.notification-preference-group-header h3 {
  margin: 0;
  font-size: 14px;
}

.notification-preference-group-header p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.45;
}

.notification-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.notification-preference-row + .notification-preference-row {
  border-top: 1px solid var(--border);
}

.notification-preference-action {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.notification-preference-action strong {
  font-size: 13px;
}

.notification-preference-action span {
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.45;
}

.notification-preference-action code {
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--muted);
  padding: 3px 6px;
  color: var(--muted-foreground);
  font-size: 11px;
}

.notification-preference-toggle {
  justify-self: end;
  white-space: nowrap;
}

.table-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 200px auto;
  gap: 12px;
  align-items: end;
}

.datatable-controls {
  padding: 14px;
}

.datatable-filter-form {
  display: grid;
  gap: 14px;
}

.datatable-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px auto auto auto;
  gap: 10px;
  align-items: end;
}

.datatable-search,
.datatable-limit {
  min-width: 0;
}

.datatable-advanced {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 280px) auto;
  gap: 10px;
  align-items: end;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.datatable-filter-actions {
  display: flex;
  justify-content: flex-end;
}

.datatable-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--border);
  background: var(--border);
}

.datatable-stats div {
  display: grid;
  gap: 4px;
  background: var(--panel);
  padding: 11px 13px;
}

.datatable-stats span,
.datatable-state > span {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.datatable-stats strong {
  font-size: 15px;
  line-height: 1.15;
}

.datatable-state {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 11px 13px;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sort-icon {
  position: relative;
  display: inline-grid;
  width: 10px;
  height: 14px;
  opacity: .42;
}

.sort-icon::before,
.sort-icon::after {
  position: absolute;
  left: 1px;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
}

.sort-icon::before {
  top: 1px;
  border-bottom: 5px solid currentColor;
}

.sort-icon::after {
  bottom: 1px;
  border-top: 5px solid currentColor;
}

.sort-link.active {
  color: var(--foreground);
}

.sort-link.active .sort-icon {
  opacity: 1;
}

.sort-link.active[data-sort-dir="asc"] .sort-icon::after,
.sort-link.active[data-sort-dir="desc"] .sort-icon::before {
  opacity: .24;
}

.permission-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.permission-main {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.permission-toolbar {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.module-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
}

.module-sidebar-inner {
  max-height: calc(100vh - 128px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
  padding: 12px;
}

.module-filter {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--border);
  padding: 2px 2px 12px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 800;
}

.module-filter input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--foreground);
  font: inherit;
  font-weight: 500;
}

.module-filter input:focus {
  border-color: var(--ring);
  outline: 2px solid rgba(17, 24, 39, .16);
  outline-offset: 1px;
}

.module-list {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.module-list-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 700;
}

.module-list-item:hover {
  background: var(--muted);
  color: var(--foreground);
}

.module-list-item.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.module-list-item strong {
  display: grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 12px;
}

.module-list-item.active strong {
  background: rgba(255, 255, 255, .16);
  color: var(--primary-foreground);
}

.app-table-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.table-meta span {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  border-top: 1px solid var(--border);
  padding: 10px 13px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #fbfafc;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.data-table th a {
  color: var(--foreground);
}

.data-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.owner-table-identity {
  display: flex;
  min-width: 180px;
  align-items: center;
  gap: 8px;
}

.owner-table-identity .client-owner-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 11px;
}

.owner-table-name {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.owner-table-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table td .owner-table-name small {
  display: inline;
  margin-top: 0;
}

.empty-cell {
  color: var(--muted-foreground);
  text-align: center;
}

.badge-row,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions form {
  margin: 0;
}

.badge,
.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.badge {
  background: #f2f0f6;
  color: var(--foreground);
}

/* Colored Bootstrap/Limitless badges: default .badge is gray, so paint fills here. */
.badge.bg-primary,
.badge[class*="text-bg-primary"] {
  background: #2563eb !important;
  color: #fff !important;
}

.badge.bg-secondary,
.badge[class*="text-bg-secondary"] {
  background: #247297 !important;
  color: #fff !important;
}

.badge.bg-success,
.badge[class*="text-bg-success"] {
  background: #059669 !important;
  color: #fff !important;
}

.badge.bg-danger,
.badge[class*="text-bg-danger"] {
  background: #ef4444 !important;
  color: #fff !important;
}

.badge.bg-warning,
.badge[class*="text-bg-warning"] {
  background: #f58646 !important;
  color: #fff !important;
}

.badge.bg-info,
.badge[class*="text-bg-info"] {
  background: #049aad !important;
  color: #fff !important;
}

.badge.bg-dark {
  background: #1f2937;
  color: #fff;
}

.badge.bg-indigo {
  background: #5c6bc0;
  color: #fff;
}

.badge.bg-teal {
  background: #26a69a;
  color: #fff;
}

.badge.bg-pink {
  background: #f35c86;
  color: #fff;
}

.badge.bg-purple {
  background: #8e70c1;
  color: #fff;
}

.badge.bg-orange {
  background: #fc5503 !important;
  color: #fff !important;
}

.status-badge {
  border: 1px solid var(--border);
}

.status-active {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.status-planning {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.status-on_hold {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.status-pending {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.status-draft {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #5b21b6;
}

.status-archived {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.status-open {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #075985;
}

.status-low,
.status-normal {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.status-high {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.status-urgent {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.status-resolved,
.status-published {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.status-closed,
.status-hidden,
.status-inactive {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.color-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  vertical-align: 0.02rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.status-paid,
.status-succeeded {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.status-overdue {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.status-canceling,
.status-canceled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #334155;
}

.status-expired {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.record-list {
  display: grid;
  gap: 12px;
}

.record-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.record-card p {
  margin: 0;
  white-space: pre-wrap;
}

.compact-list {
  gap: 8px;
}

.code-block {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  color: #0f172a;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.billing-subscription-panel,
.billing-empty-panel,
.billing-tabs-panel,
.billing-datatable-controls,
.billing-table-panel,
.invoice-view-panel,
.invoice-payment-form,
.payment-method-empty,
.payment-method-form {
  margin-top: 18px;
}

.billing-subscription-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.billing-subscription-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.billing-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.billing-title-row h2,
.billing-empty-panel h2,
.invoice-view-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.billing-subscription-main p,
.billing-empty-panel p,
.invoice-view-header p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.billing-subscription-meta,
.invoice-view-grid dl,
.invoice-totals {
  display: grid;
  gap: 10px;
  margin: 0;
}

.billing-subscription-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.billing-subscription-meta div,
.invoice-view-grid dl div,
.invoice-totals div {
  display: grid;
  gap: 3px;
}

.billing-subscription-meta dt,
.invoice-view-grid dt,
.invoice-totals dt {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-subscription-meta dd,
.invoice-view-grid dd,
.invoice-totals dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.billing-cancel-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #fde68a;
  border-radius: 6px;
  background: #fffbeb;
  color: #92400e;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.billing-subscription-actions {
  display: flex;
  justify-content: flex-end;
}

.billing-empty-panel {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 18px;
}

.billing-tabs-panel {
  padding: 10px;
}

.billing-invoice-table {
  min-width: 900px;
}

.billing-invoice-items-editor {
  display: grid;
  overflow: hidden;
  background: #fff;
}

.billing-invoice-line-head,
.billing-invoice-line-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 64px 112px 112px 132px minmax(132px, auto) minmax(104px, auto);
  align-items: end;
  column-gap: 10px;
}

.billing-invoice-items-editor-module-tax .billing-invoice-line-head,
.billing-invoice-items-editor-module-tax .billing-invoice-line-row {
  grid-template-columns: minmax(220px, 1fr) 64px 112px 132px minmax(132px, auto) minmax(104px, auto);
}

.billing-invoice-line-head {
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  padding: 10px 12px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.billing-invoice-line-row {
  border-bottom: 1px solid var(--border);
  padding: 12px;
}

.billing-invoice-line-row:last-child {
  border-bottom: 0;
}

.billing-invoice-line-row-new {
  background: #f8fafc;
}

.billing-invoice-line-form,
.billing-invoice-line-delete-form {
  display: contents !important;
  margin-top: 0;
}

.billing-invoice-line-alert {
  grid-column: 1 / -1;
  margin: 0 0 2px;
}

.billing-invoice-field {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.billing-invoice-field-label {
  display: none;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.billing-invoice-input,
.billing-invoice-total-value {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.billing-invoice-input {
  width: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  outline: 0;
}

.billing-invoice-input:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, .16);
}

.billing-invoice-input-numeric,
.billing-invoice-total-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.billing-invoice-total-value {
  display: grid;
  align-content: center;
  background: #f8fafc;
  font-weight: 900;
}

.billing-invoice-total-muted {
  color: var(--muted-foreground);
}

.billing-invoice-line-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.billing-invoice-line-button-primary {
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
}

.billing-invoice-line-button-primary:hover {
  background: #1e293b;
}

.billing-invoice-line-button-danger {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.billing-invoice-line-button-danger:hover {
  background: #fee2e2;
}

.billing-invoice-line-spacer {
  min-height: 38px;
}

@media (max-width: 980px) {
  .billing-invoice-line-head {
    display: none;
  }

  .billing-invoice-line-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .billing-invoice-field-description,
  .billing-invoice-line-alert {
    grid-column: 1 / -1;
  }

  .billing-invoice-field-label {
    display: block;
  }

  .billing-invoice-line-button,
  .billing-invoice-line-spacer {
    width: 100%;
  }

  .billing-invoice-line-spacer {
    display: none;
  }
}

.invoice-view-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.invoice-view-header,
.invoice-view-grid,
.invoice-view-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 22px;
}

.invoice-view-header {
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.invoice-brand {
  display: block;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.invoice-view-header .status-badge {
  justify-self: end;
}

.invoice-view-grid h3,
.invoice-view-footer h3,
.invoice-payments h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.invoice-view-grid p,
.invoice-tax-list,
.invoice-view-footer p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.6;
}

.invoice-subscription-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fbfafc;
  padding: 11px 12px;
  color: var(--muted-foreground);
  font-size: 13px;
}

.invoice-subscription-strip strong {
  color: var(--foreground);
}

.invoice-line-table {
  min-width: 820px;
}

.invoice-tax-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.invoice-tax-list li,
.invoice-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.invoice-totals {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.invoice-totals div:last-child {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 16px;
}

.invoice-payments {
  display: grid;
  gap: 10px;
}

.invoice-payment-form {
  display: grid;
  gap: 18px;
}

.invoice-payment-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.invoice-payment-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.invoice-payment-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.1;
}

.invoice-payment-summary p {
  margin: 8px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.invoice-payment-methods {
  display: grid;
  gap: 14px;
}

.invoice-payment-option-list {
  display: grid;
  gap: 10px;
}

.invoice-payment-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.invoice-payment-option:has(input:checked) {
  border-color: var(--primary);
  background: #f8fafc;
  box-shadow: 0 0 0 1px var(--primary);
}

.invoice-payment-option input {
  inline-size: 16px;
  block-size: 16px;
  margin: 0;
}

.invoice-payment-option-icon {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--foreground);
}

.invoice-payment-option-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.invoice-payment-option-main strong {
  font-size: 14px;
}

.invoice-payment-option-main small {
  overflow-wrap: anywhere;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
}

.invoice-payment-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: #fbfafc;
  padding: 14px;
}

.invoice-payment-empty h3 {
  margin: 0;
  font-size: 14px;
}

.invoice-payment-empty p {
  margin: 3px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.invoice-first-payment {
  display: grid;
  gap: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f7fef9;
  padding: 14px;
}

.invoice-first-payment-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.invoice-first-payment-intro h3 {
  margin: 0;
  font-size: 14px;
}

.invoice-first-payment-intro p {
  margin: 3px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.5;
}

.invoice-first-payment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.invoice-first-payment-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 11px;
  min-height: 104px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.invoice-first-payment-option:has(input:checked) {
  border-color: #047857;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px #047857;
}

.invoice-first-payment-option input {
  position: absolute;
  top: 12px;
  right: 12px;
  inline-size: 16px;
  block-size: 16px;
  margin: 0;
}

.invoice-first-payment-option-icon {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--foreground);
}

.invoice-first-payment-option-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding-right: 22px;
}

.invoice-first-payment-option-copy strong {
  color: var(--foreground);
  font-size: 14px;
}

.invoice-first-payment-option-copy small {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.invoice-first-payment-option-disabled {
  cursor: not-allowed;
  opacity: .74;
}

.invoice-first-payment-option-disabled:hover {
  border-color: var(--border);
  box-shadow: none;
}

.invoice-first-payment-option-badge {
  grid-column: 1 / -1;
  justify-self: start;
  border-radius: 999px;
  background: #fff7ed;
  padding: 3px 8px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-first-payment-note {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #bae6fd;
  border-radius: 7px;
  background: #f0f9ff;
  padding: 10px 12px;
  color: #075985;
  font-size: 13px;
  font-weight: 700;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.payment-method-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.payment-method-card-header,
.payment-method-actions,
.payment-method-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-method-card-header {
  justify-content: space-between;
}

.payment-method-badges,
.payment-method-actions {
  flex-wrap: wrap;
}

.payment-method-card-body h2,
.payment-method-empty h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.payment-method-card-body p,
.payment-method-empty p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.payment-method-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.payment-method-meta div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payment-method-meta dt {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-method-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.payment-method-actions form {
  margin: 0;
}

.payment-method-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 18px;
}

.payment-method-default-toggle {
  align-self: end;
  min-height: 44px;
}

.payment-method-default-toggle span {
  display: grid;
  gap: 2px;
  white-space: normal;
}

.payment-method-default-toggle small {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.status-disabled,
.status-inactive,
.status-not_connected,
.status-action_required {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.status-action_required {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.status-inactive {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.status-trial {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.status-suspended {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.cron-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.cron-subnav-panel .cron-subnav {
  margin-bottom: 0;
}

.status-completed {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.status-started {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}

.status-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.status-sent,
.status-dry_run {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.status-failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.send-mail-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.send-mail-mode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  cursor: pointer;
}

.send-mail-mode-card input {
  margin-top: 4px;
}

.send-mail-mode-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.send-mail-mode-card small {
  grid-column: 2;
  color: var(--muted-foreground);
  font-size: 12px;
}

.send-mail-mode-card:has(input:checked) {
  border-color: #111827;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #111827;
}

.send-mail-choice {
  cursor: pointer;
  background: #fff;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.send-mail-choice.is-selected,
.send-mail-choice:has(input:checked) {
  background: var(--bs-primary-bg-subtle, #cfe2ff);
  border-color: var(--bs-primary-border-subtle, #9ec5fe) !important;
}

body > .bootstrap-select.dropdown,
body > .bootstrap-select .dropdown-menu {
  z-index: 2000;
}

.send-mail-vars-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.send-mail-history-subject {
  max-width: 420px;
}

.send-mail-history-subject strong,
.send-mail-history td strong {
  display: block;
}

.send-mail-history-subject span,
.send-mail-history td span {
  display: block;
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: #075985;
  padding: 10px 12px;
}

.impersonation-banner strong,
.impersonation-banner span {
  display: block;
}

.impersonation-banner span {
  margin-top: 2px;
  color: #0369a1;
  font-size: 12px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border: 1px solid var(--border, #dee2e6);
  border-radius: 6px;
  color: var(--muted-foreground, #6c757d);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pagination .page-link .bi {
  font-size: 0.875rem;
  line-height: 1;
}

.pagination .page-item.active .page-link,
.pagination a.active {
  background: var(--primary, #0d6efd);
  border-color: var(--primary, #0d6efd);
  color: var(--primary-foreground, #fff);
}

.form-panel {
  max-width: none;
}

.resource-form {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.panel-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cp-person-name-grid {
  display: grid;
  width: 100%;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .cp-person-name-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--foreground);
  font: inherit;
  font-weight: 500;
}

.form-field select {
  min-height: 34px;
  background-color: var(--panel);
}

.password-field {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.password-field input {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.password-toggle {
  display: inline-grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  min-width: 0;
  min-height: 34px;
  margin-left: -1px;
  border-color: var(--border);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0;
  align-self: stretch;
  background: var(--panel);
  color: var(--muted-foreground);
  box-shadow: none;
}

.password-toggle:hover {
  transform: none;
  border-color: var(--ring);
  background: var(--muted);
  color: var(--foreground);
}

.password-field:focus-within .password-toggle {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(108, 95, 199, .16);
  clip-path: inset(-3px -3px -3px 0);
}

.password-field input:focus {
  position: relative;
  z-index: 1;
}

.password-field input.is-invalid + .password-toggle {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .1);
  clip-path: inset(-3px -3px -3px 0);
}

.password-toggle .bi {
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

.form-field textarea {
  resize: vertical;
}

.template-editor {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.rich-html-shell {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.rich-html-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 6px;
}

.rich-html-block-select {
  min-height: 32px;
  width: auto;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #fff;
  padding: 0 28px 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.rich-html-tool {
  display: inline-flex;
  min-height: 32px;
  min-width: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  padding: 0 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.rich-html-tool:hover,
.rich-html-tool.is-active {
  border-color: #64748b;
  background: #f1f5f9;
  color: #020617;
}

.rich-html-editor {
  width: 100%;
  overflow: auto;
  background: #fff;
  padding: 12px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  outline: none;
}

.rich-html-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(100, 116, 139, .2);
}

.rich-html-editor p,
.rich-html-editor ul,
.rich-html-editor ol,
.rich-html-editor blockquote {
  margin: 0 0 10px;
}

.rich-html-editor ul,
.rich-html-editor ol {
  padding-left: 24px;
}

.rich-html-editor h2,
.rich-html-editor h3 {
  margin: 0 0 10px;
  color: #020617;
  font-weight: 800;
  line-height: 1.25;
}

.rich-html-editor h2 {
  font-size: 20px;
}

.rich-html-editor h3 {
  font-size: 17px;
}

.rich-html-editor blockquote {
  border-left: 3px solid #cbd5e1;
  padding-left: 12px;
  color: #475569;
}

.rich-html-source:not([hidden]) {
  display: block;
  width: 100%;
  min-height: 240px;
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.rich-html-content {
  color: #334155;
  line-height: 1.7;
}

.rich-html-content > :first-child {
  margin-top: 0;
}

.rich-html-content > :last-child {
  margin-bottom: 0;
}

.rich-html-content p,
.rich-html-content ul,
.rich-html-content ol,
.rich-html-content blockquote {
  margin: 0 0 10px;
}

.rich-html-content ul,
.rich-html-content ol {
  padding-left: 24px;
}

.rich-html-content blockquote {
  border-left: 3px solid #cbd5e1;
  padding-left: 12px;
  color: #475569;
}

.checkbox-section {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.checkbox-section h3,
.permission-group h4,
.settings-card h3 {
  margin: 0;
}

.checkbox-section p,
.settings-card p {
  margin: 6px 0 0;
  color: var(--muted-foreground);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.choice-card input {
  margin-top: 3px;
}

.choice-card small {
  display: block;
  color: var(--muted-foreground);
  font-size: 12px;
}

.permission-groups {
  display: grid;
  gap: 18px;
}

.permission-group {
  display: grid;
  gap: 10px;
}

.field-error {
  color: #b91c1c;
  font-weight: 700;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions.card-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--root-panel-border, var(--border));
  background: #fbfafc;
  padding: 13px;
}

.resource-form > .form-actions.card-footer,
.form-panel > form > .form-actions.card-footer {
  margin-top: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.settings-card {
  display: grid;
  min-height: 220px;
  align-content: space-between;
  gap: 18px;
}

.feature-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-workflow-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-muted);
  padding: 12px 14px;
  color: var(--foreground);
  font-weight: 700;
}

.feature-workflow-card i {
  color: #15803d;
  flex: 0 0 auto;
}

.settings-count {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #134e4a;
  font-weight: 900;
}

.root-settings-page {
  display: grid;
  gap: 18px;
}

.root-settings-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.root-settings-title h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.root-settings-title p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted-foreground);
}

.root-settings-title .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fbfafc;
  padding: 4px 9px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.root-settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.root-settings-nav {
  position: sticky;
  top: 86px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.root-settings-nav a {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--border);
  padding: 8px 11px;
  color: #4f465c;
  font-weight: 700;
}

.root-settings-nav a:last-child {
  border-bottom: 0;
}

.root-settings-nav a:hover {
  background: #fbfafc;
  color: var(--foreground);
}

.root-settings-nav a.active {
  background: var(--accent-soft);
  color: var(--primary);
}

.root-settings-nav i {
  color: currentColor;
}

.root-settings-content,
.root-settings-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.settings-section {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.settings-section > h2 {
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: #fbfafc;
  padding: 11px 13px;
  color: #6f6878;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 14px 13px;
}

.settings-section > h2 + .settings-row,
.settings-section > h2 + .settings-warning + .settings-row {
  border-top: 0;
}

.settings-row-copy h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.settings-row-copy h3 span {
  color: #dc2626;
}

.settings-row-copy p {
  max-width: 560px;
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.4;
}

.settings-control {
  width: 100%;
}

.settings-switch {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: var(--foreground);
  font-weight: 800;
}

.settings-switch input[type="hidden"] {
  display: none;
}

.settings-switch input[type="checkbox"] {
  position: relative;
  width: 34px;
  height: 20px;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #eeedf2;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.settings-switch input[type="checkbox"]::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(43, 36, 53, .22);
  content: "";
  transition: transform .16s ease;
}

.settings-switch input[type="checkbox"]:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.settings-switch input[type="checkbox"]:checked::after {
  transform: translateX(14px);
}

.settings-switch input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.settings-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  padding: 12px 13px;
  font-weight: 700;
}

.settings-number {
  grid-template-columns: minmax(90px, 160px) auto;
  align-items: center;
  gap: 8px;
}

.settings-number .sr-only,
.settings-number .field-error {
  grid-column: 1 / -1;
}

.settings-number > span:not(.sr-only) {
  color: var(--muted-foreground);
  font-weight: 700;
}

.settings-save-row {
  display: flex;
  justify-content: flex-end;
}

.tax-simulator-panel .root-settings-form {
  gap: 0;
}

.tax-simulator-intro form {
  justify-self: end;
}

.tax-simulator-panel .settings-control {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--foreground);
  font: inherit;
  font-weight: 600;
  padding: 8px 10px;
}

.tax-simulator-panel .settings-control:focus {
  border-color: var(--ring);
  outline: 2px solid rgba(17, 24, 39, .14);
  outline-offset: 1px;
}

.tax-simulator-actions {
  border-top: 1px solid var(--border);
  padding: 13px;
}

.tax-simulation-result {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 13px;
}

.tax-simulation-result[hidden] {
  display: none;
}

.tax-simulation-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tax-simulation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.tax-simulation-summary div {
  display: grid;
  gap: 5px;
  background: var(--panel);
  padding: 11px 13px;
}

.tax-simulation-summary span,
.tax-simulation-line-header span {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tax-simulation-summary strong {
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.15;
}

.tax-simulation-lines {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tax-simulation-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(80px, .45fr) minmax(120px, .6fr) minmax(90px, .45fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 10px 13px;
  font-size: 13px;
}

.tax-simulation-line:first-child {
  border-top: 0;
}

.tax-simulation-line-header {
  background: #fbfafc;
}

.tax-simulation-line strong {
  display: block;
}

.tax-simulation-line small {
  display: block;
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.tax-simulation-empty {
  padding: 13px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.voipms-overview-page {
  gap: 16px;
}

.voipms-overview-page .root-settings-form {
  gap: 0;
}

.voipms-overview-page .settings-section > .auth-alert {
  margin: 12px 13px 0;
}

.voipms-overview-page .settings-section > h2 + .root-settings-form .settings-row:first-of-type,
.voipms-overview-page .settings-section > .auth-alert + .root-settings-form .settings-row:first-of-type {
  border-top: 0;
}

.voipms-overview-page .settings-save-row {
  border-top: 1px solid var(--border);
  padding: 13px;
}

.voipms-setting-value {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.voipms-setting-value strong {
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.1;
}

.voipms-status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fbfafc;
  padding: 4px 8px;
  color: #4f465c;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.voipms-ledger-section .table-scroll {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.voipms-ledger-section .data-table {
  border: 0;
}

/* Root admin surfaces: keep every module in the same compact settings language. */
.app-shell {
  --shadow: 0 1px 2px rgba(15, 23, 42, .04);
  --root-subtle: #fbfafc;
  --root-panel-border: #e5e7eb;
}

.app-shell .app-content {
  background: #ffffff;
}

.app-shell .app-page-heading,
.app-shell .page-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--root-panel-border);
  padding-bottom: 16px;
}

.app-shell .app-page-heading h1,
.app-shell .app-page-heading h2,
.app-shell .page-heading h1,
.app-shell .page-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}

.app-shell .app-page-heading .eyebrow,
.app-shell .page-heading .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  border: 1px solid var(--root-panel-border);
  border-radius: 999px;
  background: var(--root-subtle);
  padding: 4px 9px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-shell .app-page-heading p,
.app-shell .page-heading p {
  max-width: 760px;
  color: #6b7280;
  font-size: 13px;
}

.app-shell .app-stat-grid {
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--root-panel-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-shell .app-stat-card {
  min-height: 0;
  border: 0;
  border-right: 1px solid var(--root-panel-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 12px 13px;
}

.app-shell .app-stat-card:last-child {
  border-right: 0;
}

.app-shell .app-stat-card span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.app-shell .app-stat-card strong {
  margin-top: 6px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.15;
}

.app-shell .app-stat-card p {
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.app-shell .app-panel-grid,
.app-shell .settings-grid {
  grid-template-columns: 1fr;
}

.app-shell .app-panel,
.app-shell .datatable-controls,
.app-shell .form-panel,
.app-shell .app-table-panel,
.app-shell .notification-panel,
.app-shell .invoice-view-panel {
  overflow: hidden;
  border-color: var(--root-panel-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-shell .app-panel {
  padding: 0;
}

.app-shell .app-panel > h2:first-child,
.app-shell .app-panel > h3:first-child {
  margin: 0;
  border-bottom: 1px solid var(--root-panel-border);
  background: var(--root-subtle);
  padding: 11px 13px;
  color: #6f6878;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-shell .app-panel > h2:first-child + p,
.app-shell .app-panel > h3:first-child + p {
  margin: 0;
  padding: 13px;
}

.app-shell .root-provider-filter-panel {
  padding: 16px;
}

.app-shell .root-provider-card {
  gap: 14px;
  padding: 16px;
}

.app-shell .root-provider-card h3,
.app-shell .root-provider-sidebar-header h3,
.app-shell .root-provider-filter-panel h3 {
  border-bottom: 0;
  background: transparent;
  padding: 0;
  color: var(--foreground);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.app-shell .root-provider-card-footer {
  margin: 0 -16px -16px;
  padding: 13px 16px 16px;
  background: #fbfcfe;
}

.app-shell .panel-heading,
.app-shell .table-meta {
  align-items: flex-start;
  border-bottom: 1px solid var(--root-panel-border);
  background: var(--root-subtle);
  padding: 11px 13px;
}

.app-shell .panel-heading h3,
.app-shell .table-meta strong {
  color: #6f6878;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.app-shell .panel-heading p,
.app-shell .table-meta span {
  max-width: 760px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.app-shell .resource-form,
.app-shell .form-panel form {
  gap: 0;
  margin-top: 0;
}

.app-shell .form-panel .auth-alert {
  margin: 12px 13px 0;
}

.app-shell .form-panel .form-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.app-shell .form-panel .form-grid > .form-field,
.app-shell .form-panel .form-grid > .choice-card,
.app-shell .form-panel .checkbox-section,
.app-shell .form-panel .panel-divider {
  grid-column: 1 / -1;
  border-top: 1px solid var(--root-panel-border);
}

.app-shell .form-panel .form-grid > .form-field {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 13px;
}

.app-shell .form-panel .form-grid > .form-field > .form-label,
.app-shell .form-panel .form-grid > .form-field > span:not(.password-field):not(.input-group):not(.sr-only) {
  align-self: center;
  color: #1f2937;
  font-size: 13px;
  font-weight: 750;
}

.app-shell .form-panel .form-grid > .form-field > input,
.app-shell .form-panel .form-grid > .form-field > select,
.app-shell .form-panel .form-grid > .form-field > textarea,
.app-shell .form-panel .form-grid > .form-field > .password-field,
.app-shell .form-panel .form-grid > .form-field > .input-group {
  grid-column: 2;
}

.app-shell .form-panel .form-grid > .form-field > small,
.app-shell .form-panel .form-grid > .form-field > .field-error,
.app-shell .form-panel .form-grid > .form-field > .form-help {
  grid-column: 2;
}

.app-shell .form-panel .form-grid > .choice-card {
  margin: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  padding: 13px;
}

.app-shell .form-panel .form-actions.card-footer,
.app-shell .panel-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--root-panel-border);
  background: #fbfafc;
  padding: 13px;
}

.app-shell .datatable-controls {
  padding: 0;
}

.app-shell .datatable-filter-form {
  gap: 0;
}

.app-shell .datatable-toolbar,
.app-shell .datatable-advanced {
  border-top: 0;
  padding: 13px;
}

.app-shell .datatable-advanced {
  border-top: 1px solid var(--root-panel-border);
  background: #ffffff;
}

.app-shell .datatable-stats {
  border-bottom-color: var(--root-panel-border);
  background: var(--root-panel-border);
}

.app-shell .datatable-state {
  border-bottom-color: var(--root-panel-border);
  background: var(--root-subtle);
}

.app-shell .table-scroll {
  border-radius: 0;
}

.app-shell .data-table th,
.app-shell .data-table td {
  border-top-color: var(--root-panel-border);
  padding: 9px 13px;
}

.app-shell .data-table th {
  background: var(--root-subtle);
  color: #6b7280;
}

.app-shell .notification-stats {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--root-panel-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-shell .notification-stats .app-stat-card {
  border-right: 1px solid var(--root-panel-border);
}

.settings-shortcut-row {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.settings-shortcut-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.settings-admin-section .settings-count {
  width: auto;
  min-width: 34px;
  height: 28px;
  border-radius: 6px;
  padding: 0 9px;
  background: #f2f0f6;
  color: var(--foreground);
  font-size: 12px;
}

.client-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
}

.app-shell .client-profile-header {
  padding: 14px;
}

.client-profile-title {
  min-width: 0;
}

.client-profile-back {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
}

.client-profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.client-profile-name-row h3 {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  line-height: 1.2;
}

.client-profile-title p {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.client-profile-header .page-actions form {
  margin: 0;
}

.client-profile-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-profile-form-panel .client-profile-subsection,
.client-profile-form-panel .client-profile-address-grid,
.client-profile-form-panel .client-notes-field {
  border-top: 1px solid var(--root-panel-border, var(--border));
}

.client-profile-subsection {
  display: grid;
  gap: 0;
  padding: 13px;
}

.client-profile-subsection h4 {
  margin: 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
}

.client-profile-subsection > p {
  margin: 4px 0 12px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.client-phone-list {
  display: grid;
  gap: 8px;
}

.client-phone-row {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(80px, .4fr) minmax(180px, 1.3fr) auto auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--root-panel-border, var(--border));
  border-radius: 6px;
  background: #fbfafc;
  padding: 10px;
}

.client-phone-row .form-field {
  gap: 5px;
}

/* Legacy BS5 markup nests a .row inside .client-phone-row — disable CSS-grid so columns work. */
.client-phone-row:has(> .row) {
  display: block;
  grid-template-columns: none;
  gap: 0;
}

.client-primary-check {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 750;
}

.client-profile-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-profile-address-grid .client-profile-subsection + .client-profile-subsection {
  border-left: 1px solid var(--root-panel-border, var(--border));
}

.client-notes-field {
  margin: 0;
  padding: 13px;
}

.app-shell .client-notes-field {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.app-shell .client-notes-field textarea,
.app-shell .client-notes-field .field-error {
  grid-column: 2;
}

.client-profile-overview-panel .client-profile-detail-grid {
  margin: 0;
}

.client-profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.client-profile-detail-grid div {
  border-top: 1px solid var(--root-panel-border, var(--border));
  padding: 12px 13px;
}

.client-profile-detail-grid dt {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.client-profile-detail-grid dd {
  margin: 5px 0 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.client-profile-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.client-profile-menu {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 12px;
}

.client-profile-menu-head {
  border-bottom: 1px solid var(--root-panel-border, var(--border));
  padding: 4px 8px 12px;
}

.client-profile-menu-head span {
  display: block;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.client-profile-menu-head strong {
  display: block;
  margin-top: 4px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.35;
}

.client-profile-menu-list {
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.client-profile-menu-item {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  padding: 8px 10px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.client-profile-menu-item:hover {
  background: #f4f2f7;
  color: #1f2937;
}

.client-profile-menu-item.active {
  background: #5f56c6;
  color: #ffffff;
}

.client-profile-menu-item i {
  width: 16px;
  color: inherit;
  font-size: 14px;
  text-align: center;
}

.client-profile-billing-group {
  margin: 8px 0;
  border-top: 1px solid var(--root-panel-border, var(--border));
  border-bottom: 1px solid var(--root-panel-border, var(--border));
  padding: 8px 0;
}

.client-profile-menu-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.client-profile-billing-links {
  display: grid;
  gap: 3px;
  padding-left: 14px;
}

.client-profile-subitem {
  min-height: 32px;
  font-size: 12px;
  font-weight: 650;
}

.client-profile-subitem.active {
  background: #eef2ff;
  color: #4f46e5;
}

.client-profile-main {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.client-profile-section {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.client-profile-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--root-panel-border, var(--border));
  margin: -16px -16px 0;
  padding: 16px;
}

.client-profile-section-heading h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
}

.client-profile-section-heading p {
  margin: 5px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.client-profile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.client-profile-kpi {
  display: grid;
  gap: 5px;
  min-height: 112px;
  border: 1px solid var(--root-panel-border, var(--border));
  border-radius: 7px;
  background: #ffffff;
  padding: 14px;
  color: #1f2937;
}

.client-profile-kpi:hover {
  border-color: #c8c1ee;
  background: #fbfaff;
}

.client-profile-kpi span {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.client-profile-kpi strong {
  color: #111827;
  font-size: 22px;
  line-height: 1.15;
}

.client-profile-kpi small {
  color: var(--muted-foreground);
  font-size: 12px;
}

.client-profile-kpi-blue {
  background: #f5f8ff;
  border-color: #dbe7ff;
}

.client-profile-kpi-green {
  background: #f2fbf7;
  border-color: #d7f0e3;
}

.client-profile-kpi-amber {
  background: #fff9ee;
  border-color: #f3dfb5;
}

.client-profile-kpi-violet {
  background: #f8f6ff;
  border-color: #ded7fa;
}

.client-profile-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.client-profile-block {
  min-width: 0;
  border: 1px solid var(--root-panel-border, var(--border));
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.client-profile-block-head {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--root-panel-border, var(--border));
  padding: 12px 14px;
}

.client-profile-block-head h4 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.client-profile-block-head a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.client-profile-block .client-profile-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-profile-block .client-profile-detail-grid div {
  border-top: 0;
  border-bottom: 1px solid var(--root-panel-border, var(--border));
}

.client-profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.client-profile-action-row-strong {
  border: 1px solid var(--root-panel-border, var(--border));
  border-radius: 7px;
  background: #fbfafc;
}

[data-client-profile-shell] .client-profile-button {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

[data-client-profile-shell] .client-profile-button-primary {
  border: 1px solid rgb(2 6 23 / 1);
  background: rgb(2 6 23 / 1);
  color: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.1);
}

[data-client-profile-shell] .client-profile-button-primary:hover {
  background: rgb(30 41 59 / 1);
  border-color: rgb(30 41 59 / 1);
  color: #fff;
}

[data-client-profile-shell] .client-profile-button-secondary {
  border: 1px solid rgb(203 213 225 / 1);
  background: #fff;
  color: rgb(51 65 85 / 1);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

[data-client-profile-shell] .client-profile-button-secondary:hover {
  background: rgb(248 250 252 / 1);
  color: rgb(15 23 42 / 1);
}

[data-client-profile-shell] .client-profile-button-wide {
  min-height: 2.5rem;
  padding: 0 1rem;
}

[data-client-profile-shell] .client-profile-row-menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

[data-client-profile-shell] .client-profile-row-menu summary {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(203 213 225 / 1);
  border-radius: 0.375rem;
  background: #fff;
  color: rgb(71 85 105 / 1);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

[data-client-profile-shell] .client-profile-row-menu summary::-webkit-details-marker {
  display: none;
}

[data-client-profile-shell] .client-profile-row-menu-panel {
  position: absolute;
  right: 0;
  top: 2.25rem;
  z-index: 20;
  min-width: 9rem;
  overflow: hidden;
  border: 1px solid rgb(226 232 240 / 1);
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.25rem 0;
  box-shadow: 0 10px 15px -3px rgb(15 23 42 / 0.12), 0 4px 6px -4px rgb(15 23 42 / 0.12);
}

[data-client-profile-shell] .client-profile-row-menu-panel a,
[data-client-profile-shell] .client-profile-row-menu-panel button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.75rem;
  color: rgb(51 65 85 / 1);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

[data-client-profile-shell] .client-profile-table-shell {
  overflow: auto;
}

[data-client-profile-shell] .client-profile-record-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

[data-client-profile-shell] .client-profile-record-table th,
[data-client-profile-shell] .client-profile-record-table td {
  border-bottom: 1px solid rgb(226 232 240 / 1);
  padding: 0.75rem 15px;
  vertical-align: top;
}

[data-client-profile-shell] .client-profile-record-table th {
  background: rgb(248 250 252 / 1);
  color: rgb(71 85 105 / 1);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-client-profile-shell] .client-profile-record-table td strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

[data-client-profile-shell] .client-profile-record-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 12px;
}

[data-client-profile-shell] .client-profile-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  border: 1px solid rgb(226 232 240 / 1);
  border-radius: 0.375rem;
  background: #fff;
  padding: 12px 15px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.root-admin-layout [id$="ModFooter"] [data-client-profile-shell] .client-profile-table-footer {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

[data-client-profile-shell] .client-profile-block > .client-profile-table-footer {
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

[data-client-profile-shell] .client-profile-table-footer > span {
  color: rgb(71 85 105 / 1);
  font-size: 0.8125rem;
  font-weight: 700;
}

[data-client-profile-shell] .client-profile-table-controls,
[data-client-profile-shell] .client-profile-page-size,
[data-client-profile-shell] .client-profile-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

[data-client-profile-shell] .client-profile-table-controls {
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

[data-client-profile-shell] .client-profile-page-size {
  padding-right: 0.5rem;
  border-right: 1px solid rgb(226 232 240 / 1);
}

[data-client-profile-shell] .client-profile-page-size a,
[data-client-profile-shell] .client-profile-pagination a,
[data-client-profile-shell] .client-profile-pagination span {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(226 232 240 / 1);
  border-radius: 0.375rem;
  background: #fff;
  padding: 0 0.625rem;
  color: rgb(71 85 105 / 1);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

[data-client-profile-shell] .client-profile-page-size a.active,
[data-client-profile-shell] .client-profile-pagination a.active {
  border-color: rgb(2 6 23 / 1);
  background: rgb(2 6 23 / 1);
  color: #fff;
}

[data-client-profile-shell] .client-profile-pagination span {
  color: rgb(148 163 184 / 1);
}

@media (max-width: 900px) {
  [data-client-profile-shell] .client-profile-table-controls {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  [data-client-profile-shell] .client-profile-page-size {
    padding-right: 0;
    border-right: 0;
  }
}

.client-profile-mini-list {
  display: grid;
}

.client-profile-mini-row {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--root-panel-border, var(--border));
  padding: 12px 14px;
}

.client-profile-mini-row:last-child {
  border-bottom: 0;
}

.client-profile-mini-row strong {
  color: #111827;
  font-size: 13px;
}

.client-profile-mini-row span,
.client-profile-empty {
  color: var(--muted-foreground);
  font-size: 12px;
}

.client-profile-empty {
  padding: 18px 14px;
}

.client-profile-edit-form,
.client-profile-billing-form {
  display: grid;
  gap: 16px;
}

.billing-document-form {
  gap: 18px;
}

.billing-document-top {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.billing-party-card,
.billing-line-items-panel {
  border: 1px solid var(--root-panel-border, var(--border));
  border-radius: 7px;
  background: #ffffff;
}

.billing-party-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
}

.billing-party-card span {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.billing-party-card strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.3;
}

.billing-party-card small {
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.45;
}

.billing-document-header-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-document-header-grid .form-field-full {
  grid-column: 1 / -1;
}

.billing-line-items-panel {
  overflow: hidden;
}

.billing-line-items-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--root-panel-border, var(--border));
  padding: 14px;
}

.billing-line-items-head h4 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.billing-line-items-head p {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.billing-line-items {
  display: grid;
}

.billing-line-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 64px 96px 76px 96px 34px;
  gap: 10px;
  align-items: end;
  border-bottom: 1px solid var(--root-panel-border, var(--border));
  padding: 12px 14px;
}

.billing-line-item-wide {
  grid-template-columns: minmax(220px, 1.2fr) 64px 96px 76px 96px minmax(120px, .7fr) 96px 34px;
}

.billing-line-item .form-field {
  gap: 5px;
}

.billing-line-total {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-end;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.billing-line-remove {
  align-self: end;
  background: #f5f5f7;
  color: #9f1239;
}

.detail-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.detail-card {
  border: 1px solid var(--root-panel-border, var(--border));
  border-radius: 7px;
  background: #ffffff;
  padding: 14px;
}

.detail-card h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.detail-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f1f3f5;
  padding-top: 8px;
}

.detail-card dt {
  color: var(--muted-foreground);
  font-size: 12px;
}

.detail-card dd {
  margin: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.billing-document-totals {
  display: grid;
  justify-content: end;
  gap: 8px;
  padding: 14px;
}

.billing-document-totals div {
  display: grid;
  grid-template-columns: 120px 130px;
  gap: 12px;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 750;
}

.billing-document-totals strong {
  color: #111827;
  font-size: 13px;
  text-align: right;
}

.billing-document-total {
  border-top: 1px solid var(--root-panel-border, var(--border));
  padding-top: 8px;
}

.billing-document-total strong {
  font-size: 18px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .86), rgba(255, 255, 255, .96)),
    #f8fafc;
  padding: 32px 16px;
}

.auth-panel {
  width: min(100%, 440px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-brand {
  margin-bottom: 26px;
}

.auth-panel h1 {
  margin: 14px 0 0;
  font-size: 32px;
  line-height: 1.1;
}

.auth-copy,
.auth-footer {
  color: var(--muted-foreground);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

/* Direct children only — do not target inputs inside .input-group (transInput) or .form-check. */
.form-field > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.form-check-input) {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--foreground);
  font: inherit;
  font-weight: 500;
}

.form-field > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.form-check-input):focus,
.form-field > select:focus,
.form-field > textarea:focus {
  border-color: var(--ring);
  outline: 2px solid rgba(108, 95, 199, .16);
  outline-offset: 1px;
}

/* intl-tel-input wraps each phone <input> in a .iti container that defaults to
   inline-block; force it (and the input it wraps) to fill the .form-field column so
   the country flag + dial-code picker lines up with the other form controls. */
.form-field .iti {
  display: block;
  width: 100%;
}

.form-field .iti input.iti__tel-input {
  width: 100%;
}

/* Our global .form-field input padding leaks into intl-tel-input's dropdown
   search box (also an <input>), crowding the search icon at left:8px. Restore
   the library's intended padding so the magnifying glass + text don't overlap. */
.iti .iti__search-input {
  padding-left: 30px;
  padding-right: 28px;
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .1);
}

.form-field small {
  color: var(--muted-foreground);
  font-weight: 600;
}

.form-field small.field-error,
.form-field .field-error {
  color: #b91c1c;
  font-weight: 700;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--foreground);
}

.invalid-feedback {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

.form-field .password-field input {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.form-field .password-field .password-toggle {
  flex: 0 0 40px;
  width: 40px;
  min-height: 34px;
  margin-left: -1px;
  border-color: var(--border);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: #f8f9fa;
}

.form-field .password-field input:focus {
  outline-offset: 0;
  box-shadow: none;
}

.form-field .password-field input.is-invalid {
  border-right-color: #dc2626;
  box-shadow: none;
}

.form-field .password-field input.is-invalid + .password-toggle {
  border-color: #dc2626;
  color: #b91c1c;
  background: #fff7f7;
}

.spinner-border {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}

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

.auth-alert {
  margin-top: 18px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.auth-alert-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.auth-alert-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.auth-alert-success span {
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

.security-recovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.security-recovery-grid code {
  display: block;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #fff;
  color: #14532d;
  padding: 8px 10px;
  font-size: 13px;
}

.security-setup-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.security-setup-box h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
}

.security-setup-box p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.security-setup-box > .form-field {
  grid-column: 1 / -1;
}

.auth-footer {
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-rail {
    position: static;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .app-rail-nav {
    grid-template-columns: repeat(7, minmax(0, auto));
    justify-content: end;
    margin-top: 0;
  }

  .app-rail-user {
    display: none;
  }

  .app-rail-brand::before,
  .app-rail-brand::after,
  .app-rail-item::before,
  .app-rail-item::after,
  .app-rail-user::before,
  .app-rail-user::after {
    display: none;
  }

  .app-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .app-sidebar-header {
    position: static;
  }

  .app-sidebar-content {
    overflow: visible;
  }

  .app-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .root-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .root-nav-groups {
    overflow: visible;
  }

  .app-stat-grid,
  .app-panel-grid,
  .settings-grid,
  .client-dashboard-grid,
  .client-onboarding-grid,
  .client-property-card-grid,
  .client-owner-card-grid,
  .client-profile-address-grid,
  .client-profile-detail-grid,
  .notification-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .datatable-toolbar,
  .datatable-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .datatable-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .permission-workspace {
    grid-template-columns: 1fr;
  }

  .root-module-content-grid.has-left-panel {
    grid-template-columns: 1fr;
  }

  .root-settings-layout {
    grid-template-columns: 1fr;
  }

  .root-settings-nav {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .root-settings-nav a {
    justify-content: center;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .root-settings-nav a:last-child {
    border-right: 0;
  }

  .module-sidebar {
    position: static;
  }

  .module-sidebar-inner {
    max-height: none;
  }

  .module-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .root-module-shell {
    min-height: auto;
  }

  .client-shell {
    grid-template-columns: 1fr;
  }

  .client-sidebar {
    position: static;
    height: auto;
    max-height: none;
  }

  .client-nav {
    grid-template-columns: none;
  }

  .client-nav-groups {
    max-height: 60vh;
  }

  .client-phone-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-phone-row:has(> .row) {
    grid-template-columns: none;
  }

  .billing-document-top,
  .billing-document-header-grid,
  .billing-line-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-line-description,
  .billing-line-total {
    grid-column: 1 / -1;
  }

  .billing-line-total {
    justify-content: flex-start;
  }

  .client-primary-check {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .app-topbar,
  .app-user,
  .app-page-heading {
    align-items: flex-start;
  }

  .app-topbar,
  .app-user,
  .app-page-heading,
  .app-nav,
  .client-property-switcher,
  .client-impersonation-banner,
  .owner-preview-banner {
    display: grid;
  }

  .client-main .app-topbar,
  .client-impersonation-banner,
  .owner-preview-banner {
    grid-template-columns: 1fr;
  }

  .client-impersonation-banner,
  .owner-preview-banner {
    align-items: flex-start;
  }

  .client-property-switcher,
  .client-property-switcher .form-field,
  .owner-property-switcher {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .app-content,
  .app-topbar {
    padding: 18px;
  }

  .root-module-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .root-module-content {
    padding: 18px;
  }

  .root-module-tabs {
    padding-top: 12px;
  }

  .root-module-filter {
    width: 100%;
  }

  .root-module-tab-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .root-module-tab {
    width: 100%;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 6px;
    transform: none;
  }

  .app-stat-grid,
  .app-panel-grid,
  .table-toolbar,
  .form-grid,
  .checkbox-grid,
  .settings-grid,
  .client-dashboard-grid,
  .client-onboarding-grid,
  .client-property-card-grid,
  .client-property-meta,
  .client-owner-card-grid,
  .client-owner-meta,
  .client-profile-address-grid,
  .client-profile-detail-grid,
  .notification-stats,
  .billing-subscription-meta,
  .payment-method-meta,
  .invoice-payment-option,
  .invoice-first-payment-list,
  .invoice-view-header,
  .invoice-view-grid,
  .detail-card-grid,
  .forum-check-grid,
  .survey-answer-row,
  .invoice-view-footer {
    grid-template-columns: 1fr;
  }

  .client-profile-header {
    display: grid;
  }

  .client-profile-workspace,
  .client-profile-dashboard-grid,
  .client-profile-kpi-grid,
  .client-profile-block .client-profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .client-profile-menu {
    position: static;
  }

  .client-profile-section-heading {
    display: grid;
  }

  .client-phone-row {
    grid-template-columns: 1fr;
  }

  .client-phone-row:has(> .row) {
    grid-template-columns: none;
  }

  .client-profile-address-grid .client-profile-subsection + .client-profile-subsection {
    border-left: 0;
  }

  .app-shell .client-notes-field {
    grid-template-columns: 1fr;
  }

  .app-shell .client-notes-field textarea,
  .app-shell .client-notes-field .field-error {
    grid-column: 1;
  }

  .billing-document-top,
  .billing-document-header-grid,
  .billing-line-item,
  .billing-document-totals div {
    grid-template-columns: 1fr;
  }

  .billing-line-items-head {
    display: grid;
  }

  .billing-document-totals {
    justify-content: stretch;
  }

  .billing-document-totals strong {
    text-align: left;
  }

  .invoice-payment-summary,
  .invoice-payment-empty,
  .invoice-first-payment-intro,
  .invoice-first-payment-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-view-header .status-badge {
    justify-self: start;
  }

  .notification-item {
    grid-template-columns: 1fr;
  }

  .notification-actions {
    justify-content: stretch;
  }

  .notification-actions .btn,
  .notification-actions form {
    width: 100%;
  }

  .page-actions,
  .page-heading-actions,
  .module-action-row,
  .notification-preference-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .page-actions .btn,
  .page-heading-actions .btn,
  .page-heading-actions form .btn,
  .page-heading-actions form,
  .module-action-row .btn,
  .module-action-row form,
  .notification-preference-toggle {
    width: 100%;
    justify-self: stretch;
  }

  .client-owner-filter-form,
  .client-owner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .root-settings-title,
  .settings-row,
  .tax-simulation-summary,
  .tax-simulation-line,
  .settings-shortcut-row {
    grid-template-columns: 1fr;
  }

  .root-settings-title {
    display: grid;
  }

  .root-settings-nav {
    grid-template-columns: 1fr;
  }

  .root-settings-nav a {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .settings-row {
    gap: 10px;
  }

  .voipms-setting-value {
    justify-content: flex-start;
    flex-wrap: wrap;
    text-align: left;
  }

  .settings-shortcut-meta {
    justify-content: flex-start;
  }

  .client-owner-filter-actions .btn,
  .client-owner-actions .btn {
    width: 100%;
  }

  .client-next-steps {
    align-items: flex-start;
    flex-direction: column;
  }

  .datatable-toolbar,
  .datatable-advanced {
    grid-template-columns: 1fr;
  }

  .datatable-stats {
    grid-template-columns: 1fr;
  }

  .datatable-state {
    align-items: flex-start;
    flex-direction: column;
  }

  .datatable-filter-actions {
    justify-content: stretch;
  }

.datatable-filter-actions .btn {
    width: 100%;
  }

  .module-list {
    grid-template-columns: 1fr;
  }
}

.owner-inline-form {
  display: grid;
  gap: 12px;
  min-width: 280px;
}

.owner-inline-form .form-field {
  margin: 0;
}

.forum-topic-panel,
.forum-reply-panel {
  display: grid;
  gap: 0;
}

.forum-post-body {
  color: var(--foreground);
  line-height: 1.7;
  white-space: pre-line;
}

.forum-topic-panel .forum-post-body {
  font-size: 15px;
}

.forum-action-row,
.forum-moderation-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-action-row form,
.forum-moderation-bar form {
  margin: 0;
}

.forum-report-menu {
  position: relative;
}

.forum-report-menu summary {
  list-style: none;
  cursor: pointer;
}

.forum-report-menu summary::-webkit-details-marker {
  display: none;
}

.forum-report-menu[open] form {
  position: absolute;
  right: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 48px));
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.forum-moderation-bar {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.owner-forum-replies {
  display: grid;
  gap: 14px;
}

.forum-search-panel {
  padding: 16px;
}

.forum-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.forum-search-form .form-field {
  margin: 0;
}

.forum-search-form .input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.forum-search-form .input-group-text {
  display: inline-grid;
  min-width: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--muted);
  color: var(--muted-foreground);
}

.forum-search-form input[type="search"] {
  min-width: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.forum-search-results {
  display: grid;
}

.forum-search-result {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.forum-search-result:first-child {
  border-top: 0;
}

.forum-search-result:hover {
  background: var(--muted);
  color: var(--accent);
}

.forum-search-result strong {
  color: var(--foreground);
  font-size: 14px;
}

.forum-search-result small,
.forum-search-result span:last-child {
  color: var(--muted-foreground);
  font-size: 12px;
}

.forum-search-result .badge {
  width: fit-content;
}

@media (max-width: 700px) {
  .forum-search-form {
    grid-template-columns: 1fr;
  }
}

.survey-answer-list {
  display: grid;
}

.survey-answer-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.survey-answer-row:first-child {
  border-top: 0;
}

.survey-answer-row strong {
  color: var(--foreground);
  font-size: 13px;
}

.survey-answer-row p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.6;
}

.owner-calendar-panel {
  display: grid;
  gap: 16px;
}

.owner-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.owner-calendar-weekday {
  padding: 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.owner-calendar-weekday:nth-child(7) {
  border-right: 0;
}

.owner-calendar-day {
  min-height: 118px;
  padding: 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.owner-calendar-day:nth-child(7n) {
  border-right: 0;
}

.owner-calendar-day.is-muted {
  background: #f8fafc;
}

.owner-calendar-day.is-today {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.owner-calendar-day > strong {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  color: var(--foreground);
  font-size: 12px;
}

.owner-calendar-day.is-muted > strong {
  color: transparent;
}

.owner-calendar-event {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
}

.owner-calendar-event span,
.owner-calendar-event small {
  font-size: 11px;
}

.owner-calendar-event b {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.owner-calendar-upcoming {
  display: grid;
  gap: 10px;
}

.owner-calendar-upcoming > strong {
  font-size: 13px;
}

.owner-calendar-upcoming article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.owner-calendar-upcoming article > span {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 750;
}

.owner-calendar-upcoming b {
  display: block;
  color: var(--foreground);
  font-size: 13px;
}

.owner-calendar-upcoming small,
.owner-calendar-upcoming p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.owner-announcement-detail {
  display: grid;
  gap: 0;
}

.owner-announcement-body {
  padding: 18px 0 0;
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
}

.owner-document-detail {
  display: grid;
  gap: 18px;
}

.owner-document-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.owner-document-meta div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}

.owner-document-meta dt {
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.owner-document-meta dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 650;
}

.owner-document-notes {
  display: grid;
  gap: 8px;
}

.owner-document-notes h3 {
  margin: 0;
  font-size: 14px;
}

.owner-document-notes p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}

@media (max-width: 820px) {
  .owner-calendar-grid {
    display: block;
    border: 0;
    background: transparent;
  }

  .owner-calendar-weekday {
    display: none;
  }

  .owner-calendar-day {
    min-height: auto;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .owner-calendar-day.is-muted {
    display: none;
  }
}

@media (max-width: 700px) {
  .owner-document-meta {
    grid-template-columns: 1fr;
  }
}

.owner-admin-layout {
  --background: #f8fafc;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --panel: #ffffff;
  --primary: #0f766e;
  --primary-foreground: #ffffff;
  --accent: #0f766e;
  --accent-soft: #ecfdf5;
  --ring: #0f766e;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.owner-shell {
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--background);
}

.owner-shell.has-owner-preview {
  height: calc(100vh - 44px);
  min-height: calc(100vh - 44px);
}

.owner-sidebar {
  display: flex;
  width: 18rem;
  height: 100%;
  flex: 0 0 18rem;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #ffffff;
}

.owner-shell.has-owner-preview .owner-sidebar {
  top: 0;
  height: 100%;
}

.owner-sidebar-header {
  display: grid;
  min-height: 64px;
  align-content: center;
  gap: 3px;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.owner-sidebar-header .brand {
  min-width: 0;
}

.owner-sidebar-header > span {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-nav {
  flex: 1;
  min-height: 0;
  padding: 12px;
}

.owner-main {
  display: flex;
  min-width: 0;
  height: 100%;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.owner-topbar {
  z-index: 30;
  display: flex;
  min-height: 64px;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  padding: 0 16px;
}

.owner-shell-toggle {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--foreground);
  box-shadow: var(--shadow);
}

.owner-breadcrumbs {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 650;
}

.owner-breadcrumbs a,
.owner-breadcrumbs strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-breadcrumbs a:hover {
  color: var(--foreground);
}

.owner-breadcrumbs i {
  flex: 0 0 auto;
  font-size: 11px;
}

.owner-property-switcher {
  flex: 0 1 260px;
  margin: 0;
}

.owner-property-switcher select {
  height: 36px;
  max-width: 260px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  padding: 0 34px 0 10px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 650;
  outline: none;
}

.owner-property-switcher select:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}

.owner-account-menu {
  flex: 0 0 auto;
}

.owner-account-trigger {
  color: var(--foreground);
}

.owner-account-trigger[aria-expanded="true"] {
  background: #f1f5f9;
}

.owner-content {
  display: grid;
  min-height: 0;
  flex: 1;
  align-content: start;
  gap: 15px;
  overflow: auto;
  padding: 15px;
  background: #f8fafc;
}

.owner-content > .app-page-heading,
.owner-content > .app-panel,
.owner-content > .app-table-panel,
.owner-content > .form-panel {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.owner-content > .app-page-heading {
  padding: 15px;
}

.owner-content .app-stat-grid {
  gap: 15px;
}

.owner-content .app-stat-card {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.owner-content .panel-heading,
.owner-content .table-meta {
  border-bottom: 1px solid var(--border);
  padding: 12px 15px;
}

.owner-content .form-grid,
.owner-content .resource-form > .form-field,
.owner-content .resource-form > .form-grid {
  padding: 15px;
}

.owner-content .form-actions {
  border-top: 1px solid var(--border);
  padding: 12px 15px;
}

.owner-content .table-scroll {
  overflow: auto;
}

.owner-content .data-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  font-size: 13px;
  white-space: nowrap;
}

.owner-content .data-table thead th {
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  padding: 11px 12px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.owner-content .data-table tbody td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: middle;
}

.owner-content .data-table tbody tr:hover td {
  background: #f8fafc;
}

.owner-content .data-table tbody tr:last-child td {
  border-bottom: 1px solid var(--border);
}

.owner-content .table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.owner-content .empty-cell {
  color: var(--muted-foreground);
  font-weight: 650;
  text-align: center;
}

@media (min-width: 1024px) {
  .owner-shell-toggle {
    display: none;
  }
}

@media (max-width: 1023px) {
  .owner-shell {
    display: block;
  }

  .owner-sidebar {
    height: 100vh;
  }

  .owner-main {
    height: 100vh;
  }

  .owner-topbar {
    min-height: 64px;
    padding: 12px;
  }

  .owner-property-switcher {
    display: none;
  }
}

@media (max-width: 680px) {
  .owner-content {
    padding: 12px;
  }

  .owner-content .app-stat-grid {
    grid-template-columns: 1fr;
  }

  .owner-breadcrumbs {
    gap: 6px;
  }

  .owner-breadcrumbs a:first-child {
    max-width: 42vw;
  }

  .owner-breadcrumbs a:nth-of-type(2) {
    display: none;
  }

  .owner-breadcrumbs i:nth-of-type(2) {
    display: none;
  }
}

body.root-admin-layout #headerMain .root-shell-toggle {
  display: none !important;
}

body.root-admin-layout #rootSidebarBackdrop {
  position: fixed;
  inset: 0;
  z-index: 1035;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
  body.root-admin-layout #rootSidebarBackdrop {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  body.root-admin-layout #containerMain {
    position: relative;
  }

  body.root-admin-layout #sidebarMain {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    width: min(18rem, calc(100vw - 3rem));
    max-width: 18rem;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  }

  body.root-admin-layout.root-sidebar-open #sidebarMain,
  body.root-admin-layout #sidebarMain.sidebar-mobile-expanded {
    transform: translateX(0);
    z-index: 1060 !important;
  }

  body.root-admin-layout #pageContainer {
    width: 100%;
    min-width: 0;
  }

  body.root-admin-layout #headerMain .root-shell-toggle {
    display: inline-flex !important;
  }

  body.root-admin-layout #rootSidebarBackdrop {
    display: block !important;
  }

  body.root-admin-layout.root-sidebar-open #rootSidebarBackdrop,
  body.root-admin-layout #rootSidebarBackdrop.is-open,
  body.root-admin-layout:has(#sidebarMain.sidebar-mobile-expanded) #rootSidebarBackdrop {
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 1055 !important;
  }
}

/* Enhanced select2 region/country option spacing */
.root-admin-layout .select2-container {
  min-width: 0;
}

.root-admin-layout .form-field .select2-container,
.client-admin-layout .form-field .select2-container,
.root-admin-form .form-field .select2-container {
  display: block;
}

/* Option chrome is defined once near Select2 BS5 overrides below. */

.modernize-bs5-ui .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-right: 1.75rem;
}

/* --- post-Limitless / BS5 overrides (formerly resources/css/app.css tip) --- */


/* Alias kept after Tailwind removal — app.js + pageLayout still toggle class "hidden". */
.hidden {
  display: none !important;
}

/*
 * Bootstrap navbar search (#navbar_search) relies on navbar-expand + collapse.
 * Keep the bar visible at lg+; do not ship utility CSS that collapses visibility on .collapse.
 */
@media (min-width: 992px) {
  .navbar-expand-lg > .navbar-collapse,
  .navbar-expand-lg > .container-fluid > .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    visibility: visible !important;
    height: auto !important;
  }
}

/* Client/Admin Limitless sidebar module filter (replaces former SidebarRenderer search). */
#sidebarMain [data-client-limitless-nav-search] {
  flex-shrink: 0;
}

#sidebarMain [data-client-limitless-nav-search] .form-control {
  background: #fff;
}

/*
 * Visited sidebar links must not look selected. UA / Bootstrap `a:visited`
 * is the same blue as Limitless `.nav-link.active` (`--link-color`), so a
 * module you already opened (Business hours, etc.) stays highlighted on
 * Dashboard and every other page.
 */
#sidebarMain .nav-sidebar .nav-link:link,
#sidebarMain .nav-sidebar .nav-link:visited {
  color: var(--nav-link-color);
}

#sidebarMain .nav-sidebar .nav-link:hover,
#sidebarMain .nav-sidebar .nav-link:focus {
  color: var(--nav-link-hover-color);
}

#sidebarMain .nav-sidebar .nav-link.active,
#sidebarMain .nav-sidebar .nav-link.active:link,
#sidebarMain .nav-sidebar .nav-link.active:visited,
#sidebarMain .nav-sidebar .nav-link.active:hover,
#sidebarMain .nav-sidebar .nav-link.active:focus {
  color: var(--nav-link-active-color);
}

#sidebarMain .sidebar-nav-link:link,
#sidebarMain .sidebar-nav-link:visited {
  color: inherit;
}

*, ::before, ::after {
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(226 232 240);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
}

:root {
    color-scheme: light;
  }

  html,
  body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
body.client-admin-layout [data-client-property-registration-stepper] [data-property-stepper] > .cp-person-name-grid {
    min-height: 0;
  }
@media (max-width: 1279px) {
    body.client-admin-layout [data-client-property-registration-stepper] [data-property-stepper] > .cp-person-name-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
.cp-person-name-grid {
    display: grid;
    width: 100%;
    gap: 1rem;
}
@media (min-width: 768px) {
    .cp-person-name-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.auth-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    --tw-text-opacity: 1;
    color: rgb(2 6 23 / var(--tw-text-opacity, 1));
}
.auth-panel {
    width: 100%;
    max-width: 28rem;
    border-radius: 8px;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding: 1.5rem;
    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.auth-brand {
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration-line: none;
}
.brand-mark {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    --tw-bg-opacity: 1;
    background-color: rgb(2 6 23 / var(--tw-bg-opacity, 1));
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 900;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.brand-text {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 900;
    --tw-text-opacity: 1;
    color: rgb(2 6 23 / var(--tw-text-opacity, 1));
}
.auth-panel .eyebrow {
    margin: 0px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}
.auth-panel h1 {
    margin-top: 0.5rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 900;
    letter-spacing: 0em;
    --tw-text-opacity: 1;
    color: rgb(2 6 23 / var(--tw-text-opacity, 1));
}
.auth-copy {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5rem;
    --tw-text-opacity: 1;
    color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}
.auth-form {
    margin-top: 1.5rem;
}
.auth-form > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.auth-panel .form-field {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}
.auth-panel .form-field > span:first-child,
  .auth-panel .form-label {
    margin-bottom: 0.375rem;
    display: block;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}
.auth-panel input[type="email"],
  .auth-panel input[type="password"],
  .auth-panel input[type="text"] {
    height: 2.5rem;
    width: 100%;
    border-radius: 6px;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(2 6 23 / var(--tw-text-opacity, 1));
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.auth-panel input[type="email"]:focus,
  .auth-panel input[type="password"]:focus,
  .auth-panel input[type="text"]:focus {
    --tw-border-opacity: 1;
    border-color: rgb(100 116 139 / var(--tw-border-opacity, 1));
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(226 232 240 / var(--tw-ring-opacity, 1));
}
.auth-panel .password-field {
    display: flex;
    height: 2.5rem;
    overflow: hidden;
    border-radius: 6px;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.auth-panel .password-field:focus-within {
    --tw-border-opacity: 1;
    border-color: rgb(100 116 139 / var(--tw-border-opacity, 1));
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(226 232 240 / var(--tw-ring-opacity, 1));
}
.auth-panel .password-field input {
    height: 100%;
    min-width: 0px;
    flex: 1 1 0%;
    border-radius: 0px;
    border-width: 0px;
    background-color: transparent;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.auth-panel .password-field input:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
body.client-admin-layout [data-client-property-registration-stepper] [data-property-stepper] > .auth-panel .password-toggle {
    min-height: 0;
  }
@media (max-width: 1279px) {
    body.client-admin-layout [data-client-property-registration-stepper] [data-property-stepper] > .auth-panel .password-toggle {
      grid-template-columns: minmax(0, 1fr);
    }
  }
.auth-panel .password-toggle {
    display: grid;
    height: 100%;
    width: 2.5rem;
    flex-shrink: 0;
    place-items: center;
    border-width: 0px;
    border-left-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding: 0px;
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.auth-panel .password-toggle:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(2 6 23 / var(--tw-text-opacity, 1));
}
.auth-remember {
    display: flex;
    min-height: 1.5rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}
.auth-remember input {
    height: 1rem;
    width: 1rem;
    border-radius: 0.25rem;
    --tw-border-opacity: 1;
    border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(2 6 23 / var(--tw-text-opacity, 1));
}
.auth-remember input:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(148 163 184 / var(--tw-ring-opacity, 1));
}
.auth-panel .btn,
  .auth-panel button[type="submit"] {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 6px;
    border-width: 1px;
    border-color: transparent;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 900;
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.auth-panel .btn-primary,
  .auth-panel button[type="submit"] {
    --tw-bg-opacity: 1;
    background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.auth-panel .btn-primary:hover,
  .auth-panel button[type="submit"]:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(30 64 175 / var(--tw-bg-opacity, 1));
}
.auth-panel .btn-large,
  .auth-panel button[type="submit"] {
    width: 100%;
}
.auth-alert {
    margin-top: 1rem;
    border-radius: 6px;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.auth-alert-info {
    --tw-border-opacity: 1;
    border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}
.field-error {
    margin-top: 0.375rem;
    display: block;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.root-admin-form [data-property-pricing-step] {
    --tw-text-opacity: 1;
    color: rgb(2 6 23 / var(--tw-text-opacity, 1));
}
.root-admin-form .property-plan-group {
    overflow: hidden;
}
.root-admin-form .property-plan-option {
    --tw-text-opacity: 1;
    color: rgb(2 6 23 / var(--tw-text-opacity, 1));
}
.root-admin-form .property-plan-option:has(input:checked) {
    --tw-border-opacity: 1;
    border-color: rgb(2 6 23 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(2 6 23 / var(--tw-ring-opacity, 1));
}
.root-admin-form .property-plan-option__summary {
    --tw-text-opacity: 1;
    color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}
.app-toast-container {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1080 !important;
    display: flex !important;
    width: min(26rem, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem) !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.75rem !important;
    padding: 0 !important;
    pointer-events: none;
  }
.app-toast {
    --bs-toast-zindex: 1090;
    --bs-toast-padding-x: 0.75rem;
    --bs-toast-padding-y: 0.5rem;
    --bs-toast-spacing: 1.5rem;
    --bs-toast-max-width: 350px;
    --bs-toast-font-size: 0.875rem;
    --bs-toast-color: var(--bs-body-color);
    --bs-toast-bg: var(--bs-body-bg);
    --bs-toast-border-width: var(--bs-border-width);
    --bs-toast-border-color: var(--bs-border-color-translucent);
    --bs-toast-border-radius: var(--bs-border-radius);
    --bs-toast-box-shadow: var(--bs-box-shadow);
    --bs-toast-header-color: var(--bs-secondary-color);
    --bs-toast-header-bg: var(--bs-body-bg);
    --bs-toast-header-border-color: var(--bs-border-color-translucent);
    width: var(--bs-toast-max-width);
    max-width: 100%;
    padding: 0;
    color: var(--bs-toast-color);
    background-color: var(--bs-toast-bg);
    background-clip: padding-box;
    border: var(--bs-toast-border-width) solid var(--bs-toast-border-color);
    border-radius: var(--bs-toast-border-radius);
    box-shadow: var(--bs-toast-box-shadow);
    pointer-events: auto;
  }
.app-toast::before {
    content: none;
  }
.app-toast .toast-header {
    display: flex;
    align-items: center;
    padding: var(--bs-toast-padding-y) var(--bs-toast-padding-x);
    color: var(--bs-toast-header-color);
    background-color: var(--bs-toast-header-bg);
    background-clip: padding-box;
    border-bottom: var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);
    border-top-left-radius: calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));
    border-top-right-radius: calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));
  }
.app-toast .toast-body {
    padding: var(--bs-toast-padding-x);
    color: var(--bs-toast-color);
    word-wrap: break-word;
  }
.app-action-tooltip {
    pointer-events: none;
    position: fixed;
    z-index: 10000;
    max-width: min(18rem, calc(100vw - 1rem));
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .24);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    opacity: 0;
    padding: .42rem .58rem;
    text-align: center;
    transform: translateY(2px) scale(.98);
    transition: opacity .12s ease, transform .12s ease;
    white-space: normal;
  }
.app-action-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
.app-action-tooltip::after {
    content: "";
    position: absolute;
    left: var(--tooltip-arrow-left, 50%);
    height: .5rem;
    width: .5rem;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
  }
.app-action-tooltip[data-placement="top"]::after {
    bottom: -.25rem;
  }
.app-action-tooltip[data-placement="bottom"]::after {
    top: -.25rem;
  }
@media (prefers-reduced-motion: reduce) {
    .app-action-tooltip {
      transition: none;
    }
  }
.app-ajax-loader {
    pointer-events: none;
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100%;
    z-index: 2000;
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.app-ajax-loader[data-state="visible"] {
    opacity: 1;
    background: transparent;
}
.app-ajax-loader__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    width: 100%;
    overflow: hidden;
    --tw-bg-opacity: 1;
    background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.app-ajax-loader__bar::before {
    content: "";
    display: block;
    height: 100%;
    width: 38%;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #2563eb);
    animation: condopro-loader-bar 1.1s ease-in-out infinite;
  }
.app-ajax-loader__pill,
.app-ajax-loader__spinner,
.app-ajax-loader [data-ajax-loader-label] {
    display: none !important;
}
.app-ajax-loader__spinner {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 9999px;
    border-width: 2px;
    border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
    --tw-border-opacity: 1;
    border-top-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
    animation: condopro-loader-spin 0.75s linear infinite;
}
.has-ajax-loader body {
    cursor: progress;
  }
[data-loading-label][aria-busy="true"]::before,
[data-loading-label][aria-busy="true"]::after,
.is-ajax-loading[aria-busy="true"]::before,
.is-ajax-loading[aria-busy="true"]::after {
    content: none !important;
    display: none !important;
}
@keyframes condopro-loader-bar {
    0% {
      transform: translateX(-110%);
    }

    55% {
      transform: translateX(90%);
    }

    100% {
      transform: translateX(260%);
    }
  }
@keyframes condopro-loader-spin {
    to {
      transform: rotate(360deg);
    }
  }
/* Client pastel emphasis */
body.client-admin-layout {
    --client-shell: #f8fafc;
    --client-panel: #ffffff;
    --client-panel-border: #e2e8f0;
    --client-subtle: #f8fafc;
    --client-ink: #0f172a;
    --client-muted: #64748b;
    --client-accent: #93c5fd;
    --client-accent-strong: #2563eb;
    --client-mint: #dcfce7;
    --client-peach: #ffedd5;
    --client-lilac: #ede9fe;
    --client-sky: #e0f2fe;
    --client-rose: #ffe4e6;
    --client-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    background: var(--client-shell);
    color: var(--client-ink);
  }
body.client-admin-layout #containerMain {
    background: var(--client-shell);
    min-height: 0;
    flex: 1 1 auto;
  }
body.client-admin-layout #pageContainer {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
body.client-admin-layout #pageContent,
  body.client-admin-layout #pageContent.app-content {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }
body.client-admin-layout #pageContent > [id$="PageLayout"],
  body.client-admin-layout #pageContent > [data-module-content],
  body.client-admin-layout #pageContent > [data-client-crud-grid],
  body.client-admin-layout #pageContent > .root-admin-form {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
body.client-admin-layout [id$="PageLayout"] > section,
  body.client-admin-layout [id$="PageLayout"] [id$="ModInner"],
  body.client-admin-layout [id$="PageLayout"] [id$="ModInner"] > section,
  body.client-admin-layout [id$="ModContent"],
  body.client-admin-layout [data-client-crud-grid] {
    min-height: 0;
  }
body.client-admin-layout [id$="ModContent"] > .root-admin-form,
  body.client-admin-layout [id$="ModContent"] > [data-client-convention-form],
  body.client-admin-layout [id$="ModContent"] > [data-client-crud-grid],
  body.client-admin-layout [id$="ModContent"] > [data-client-detail-content] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
/* Inbox shells are dual-pane (folders + list); keep them row-oriented. */
body.client-admin-layout [id$="ModContent"] > [data-client-crud-grid][data-admin-messages-inbox],
body.contractor-admin-layout [id$="ModContent"] > [data-client-crud-grid][data-contractor-messages-inbox] {
    flex-direction: row;
  }
/* Avoid empty-table / "No records" flash before datagrid.js finishes first load */
[data-client-crud-grid]:not(.is-datagrid-ready) table {
  display: none !important;
}
[data-client-crud-grid]:not(.is-datagrid-ready) .tbl_no_records {
  display: none !important;
}
[data-client-crud-grid] .tbl_loading {
  min-height: 10rem;
}
body.client-admin-layout [id$="GridContentContainer"] {
    min-height: 0;
    flex: 1 1 auto;
  }
body.client-admin-layout #pageContent,
  body.client-admin-layout [id$="ModInner"],
  body.client-admin-layout [id$="GridContentContainer"] {
    background: var(--client-shell);
  }
body.root-admin-layout.client-admin-layout #sidebarMain {
    border-color: var(--client-panel-border);
    background: #fafafa;
    box-shadow: none;
  }
body.root-admin-layout.client-admin-layout #sidebarMain > div:first-child {
    border-color: var(--client-panel-border);
    background: #e0f2f1;
  }
body.root-admin-layout.client-admin-layout #sidebarMain > div:first-child span {
    color: #64748b;
  }
body.root-admin-layout.client-admin-layout .root-nav-search {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
body.root-admin-layout.client-admin-layout .root-nav-group {
    border-color: transparent;
    background: transparent;
  }
body.root-admin-layout.client-admin-layout .root-nav-group-toggle {
    color: #64748b;
  }
body.root-admin-layout.client-admin-layout .app-nav-item {
    border: 1px solid transparent;
    border-radius: 6px;
    color: #475569;
  }
body.root-admin-layout.client-admin-layout .app-nav-item .app-nav-icon {
    background: #f1f5f9;
    color: #475569;
  }
body.root-admin-layout.client-admin-layout .app-nav-item:hover {
    border-color: transparent;
    background: #f1f5f9;
    color: #0f172a;
  }
body.root-admin-layout.client-admin-layout .app-nav-item[aria-disabled="true"] {
    cursor: not-allowed;
    background: transparent;
    color: #94a3b8;
    pointer-events: auto;
  }
body.root-admin-layout.client-admin-layout .app-nav-item[aria-disabled="true"]:hover {
    border-color: transparent;
    background: transparent;
    color: #94a3b8;
  }
body.root-admin-layout.client-admin-layout .app-nav-item[aria-disabled="true"] .app-nav-icon {
    background: #f8fafc;
    color: #cbd5e1;
  }
body.root-admin-layout.client-admin-layout .app-nav-item.active,
  body.root-admin-layout.client-admin-layout .app-nav-item[aria-current="page"] {
    border-color: #020617;
    background: #020617;
    color: #ffffff;
    box-shadow: none;
  }
body.root-admin-layout.client-admin-layout .app-nav-item.active .app-nav-icon,
  body.root-admin-layout.client-admin-layout .app-nav-item[aria-current="page"] .app-nav-icon {
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
  }
body.client-admin-layout #headerMain {
    position: relative;
    z-index: 1050;
    border-color: var(--client-panel-border);
    background: #ffffff;
    box-shadow: none;
  }
body.client-admin-layout #headerMain .dropdown-menu {
    z-index: 1050;
  }
/* headerMain is 1050 so it stays above page content. Bootstrap offcanvas is 1045,
   which paints under that bar. Drawers and their dimmer must cover the header. */
body.client-admin-layout .offcanvas {
    --offcanvas-zindex: 1060;
    --bs-offcanvas-zindex: 1060;
    z-index: 1060;
  }
body.client-admin-layout .offcanvas-backdrop {
    z-index: 1055;
  }
/* Limitless themed drawers: colored header/footer using colors.css *-l5. */
body.client-admin-layout .offcanvas-header:not([class*="bg-"]):not([class*="-l5"]) {
    background-color: #e0f2f1; /* .teal-l5 */
    color: #00796b; /* .teal-text-d2 */
    border-bottom-color: #b2dfdb; /* .teal-l4 */
  }
body.client-admin-layout .offcanvas-header .offcanvas-title {
    color: #00695c; /* .teal-text-d3 */
  }
body.client-admin-layout .offcanvas-header .text-muted,
  body.client-admin-layout .offcanvas-header p {
    color: #00796b !important; /* .teal-text-d2 */
  }
body.client-admin-layout .offcanvas-footer:not([class*="bg-"]):not([class*="-l5"]),
  body.admin-root-layout .offcanvas-footer:not([class*="bg-"]):not([class*="-l5"]) {
    background-color: #e3f2fd; /* .blue-l5 */
    border-top-color: #bbdefb; /* .blue-l4 */
  }
body.client-admin-layout .offcanvas-body > .border-top,
  body.client-admin-layout form.offcanvas-body > .border-top,
  body.admin-root-layout .offcanvas-body > .border-top,
  body.admin-root-layout form.offcanvas-body > .border-top {
    background-color: #e3f2fd; /* .blue-l5 */
    border-top-color: #bbdefb; /* .blue-l4 */
    margin-left: calc(-1 * var(--offcanvas-padding-x, 1rem));
    margin-right: calc(-1 * var(--offcanvas-padding-x, 1rem));
    margin-bottom: calc(-1 * var(--offcanvas-padding-y, 1rem));
    padding-left: var(--offcanvas-padding-x, 1rem);
    padding-right: var(--offcanvas-padding-x, 1rem);
    padding-bottom: var(--offcanvas-padding-y, 1rem);
  }
[data-admin-message-compose-offcanvas] .offcanvas-body {
    overflow: hidden;
    min-height: 0;
  }
[data-admin-message-compose-offcanvas] .offcanvas-footer {
    flex-shrink: 0;
  }
body.client-admin-layout .root-shell-toggle {
    border-color: #e2e8f0;
    background: #ffffff;
    color: #475569;
  }
body.client-admin-layout [data-account-menu] button span:first-child {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
  }
body.client-admin-layout [data-client-view-header],
  body.client-admin-layout [id$="GridHeader"],
  body.client-admin-layout [id$="ModHeader"] {
    border-color: var(--client-panel-border);
    background: #ffffff;
  }
body.client-admin-layout [id$="GridHeaderSub1"],
  body.client-admin-layout [id$="GridHeaderSub2"],
  body.client-admin-layout [id$="ModHeaderSub"],
  body.client-admin-layout [id$="ModHeaderOutterSub"] {
    border-color: var(--client-panel-border);
    background: #f8fafc;
  }
body.client-admin-layout [id$="GridFooter"],
  body.client-admin-layout [id$="ModFooter"],
  body.client-admin-layout [id$="ModFooterOutter"] {
    border-color: var(--client-panel-border);
    background: #ffffff;
    box-shadow: none;
  }
body.client-admin-layout [id$="GridHeader"] h1,
  body.client-admin-layout [id$="ModHeader"] h1,
  body.client-admin-layout [data-client-view-header] h1 {
    color: #111827;
  }
body.client-admin-layout [id$="GridHeader"] p,
  body.client-admin-layout [id$="ModHeader"] p,
  body.client-admin-layout [data-client-view-header] p {
    color: #64748b;
  }
body.client-admin-layout [data-client-widget-grid],
  body.client-admin-layout .client-widget-grid,
  body.client-admin-layout .client-stat-grid {
    gap: 15px;
  }
body.client-admin-layout .table-meta,
  body.client-admin-layout .panel-heading {
    border-color: var(--client-panel-border);
  }
body.client-admin-layout table {
    border-color: var(--client-panel-border);
  }
body.client-admin-layout table thead {
    background: #f5f9ff;
  }
body.client-admin-layout table th {
    color: #52667f;
  }
body.client-admin-layout table tbody tr {
    border-bottom: 1px solid #e5edf7;
  }
body.client-admin-layout table tbody tr:last-child > * {
    border-bottom: 1px solid #e5edf7;
  }
body.client-admin-layout table tbody tr:hover {
    background: #f9fbff;
  }
body.client-admin-layout .status-badge {
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #475569;
  }
body.client-admin-layout .status-active,
  body.client-admin-layout .status-paid,
  body.client-admin-layout .status-success,
  body.client-admin-layout .status-completed,
  body.client-admin-layout .status-open,
  body.client-admin-layout .status-posted {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
  }
body.client-admin-layout .status-planning {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
  }
body.client-admin-layout .status-on_hold {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
  }
body.client-admin-layout .status-pending,
  body.client-admin-layout .status-draft,
  body.client-admin-layout .status-scheduled,
  body.client-admin-layout .status-review,
  body.client-admin-layout .status-opened {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
  }
body.client-admin-layout .status-overdue,
  body.client-admin-layout .status-failed,
  body.client-admin-layout .status-error,
  body.client-admin-layout .status-danger,
  body.client-admin-layout .status-cancelled,
  body.client-admin-layout .status-inactive {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
  }
body.client-admin-layout .status-low,
  body.client-admin-layout .status-normal {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
  }
body.client-admin-layout .status-high {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
  }
body.client-admin-layout .status-urgent {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
  }
/* Work tracker kanban lane accents */
body.client-admin-layout [data-pm-projects] .pm-lane {
    border-left-width: 4px !important;
    border-left-style: solid !important;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-planning {
    border-left-color: #0ea5e9 !important;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-planning > .card-header {
    background: #f0f9ff;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-active {
    border-left-color: #059669 !important;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-active > .card-header {
    background: #ecfdf5;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-on_hold {
    border-left-color: #d97706 !important;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-on_hold > .card-header {
    background: #fffbeb;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-completed {
    border-left-color: #2563eb !important;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-completed > .card-header {
    background: #eff6ff;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-cancelled {
    border-left-color: #64748b !important;
  }
body.client-admin-layout [data-pm-projects] .pm-lane-cancelled > .card-header {
    background: #f8fafc;
  }
body.client-admin-layout [data-pm-projects] .pm-card-priority {
    border-left-width: 3px !important;
    border-left-style: solid !important;
  }
body.client-admin-layout [data-pm-projects] .pm-card-priority-low,
body.client-admin-layout [data-pm-projects] .pm-card-priority-normal {
    border-left-color: #6366f1 !important;
  }
body.client-admin-layout [data-pm-projects] .pm-card-priority-high {
    border-left-color: #ea580c !important;
  }
body.client-admin-layout [data-pm-projects] .pm-card-priority-urgent {
    border-left-color: #dc2626 !important;
  }
body.client-admin-layout [data-pm-projects] .pm-card-overdue {
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.25);
  }
body.client-admin-layout .root-admin-form,
  body.client-admin-layout [data-client-convention-form] {
    background: var(--client-shell);
  }
body.client-admin-layout [data-client-form-sidebar],
  body.client-admin-layout [data-module-list],
  body.client-admin-layout [data-client-permission-module-sidebar] {
    border-color: var(--client-panel-border);
    background: #f8fbff;
  }
body.client-admin-layout [data-client-form-section],
  body.client-admin-layout [data-client-convention-form] section[class*="border-slate-200"],
  body.client-admin-layout .notification-panel,
  body.client-admin-layout .invoice-view-panel,
  body.client-admin-layout .payment-method-empty,
  body.client-admin-layout .client-properties-empty {
    border-color: var(--client-panel-border) !important;
    background: #ffffff !important;
    box-shadow: var(--client-shadow) !important;
  }
body.client-admin-layout [data-client-form-actions] {
    border-top: 1px solid var(--client-panel-border);
    background: #ffffff;
    box-shadow: none;
  }
body.client-admin-layout #pageContent > .root-admin-form[data-client-property-registration-stepper] {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
  }
body.client-admin-layout [data-client-property-registration-stepper] form[data-property-step-form] {
    min-height: 0;
  }
body.client-admin-layout [data-client-property-registration-stepper] [data-property-stepper] > .grid {
    min-height: 0;
  }
@media (max-width: 1279px) {
    body.client-admin-layout [data-client-property-registration-stepper] [data-property-stepper] > .grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
body.client-admin-layout input:not([type="checkbox"]):not([type="radio"]),
  body.client-admin-layout select,
  body.client-admin-layout textarea {
    border-color: #cbd5e1;
    background-color: #ffffff;
    color: #111827;
  }
body.client-admin-layout input:not([type="checkbox"]):not([type="radio"]):disabled,
  body.client-admin-layout input:not([type="checkbox"]):not([type="radio"])[readonly],
  body.client-admin-layout select:disabled,
  body.client-admin-layout textarea:disabled,
  body.client-admin-layout textarea[readonly] {
    background-color: #e8eef5;
    color: #64748b;
    cursor: not-allowed;
  }
body.client-admin-layout select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2364758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right .75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.35rem;
  }
body.client-admin-layout .btn-primary,
  body.client-admin-layout a[class*="bg-slate-950"],
  body.client-admin-layout button[class*="bg-slate-950"] {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
  }
body.client-admin-layout .btn-primary:hover,
  body.client-admin-layout a[class*="bg-slate-950"]:hover,
  body.client-admin-layout button[class*="bg-slate-950"]:hover {
    background: #1d4ed8 !important;
  }
/* Owner pastel emphasis */
body.owner-admin-layout {
    --owner-shell: #f7f9f7;
    --owner-panel: #ffffff;
    --owner-panel-border: #dce6dc;
    --owner-subtle: #f8fcf8;
    --owner-ink: #18251d;
    --owner-muted: #64756b;
    --owner-accent: #86efac;
    --owner-accent-strong: #047857;
    --owner-sky: #e0f2fe;
    --owner-mint: #dcfce7;
    --owner-amber: #fef3c7;
    --owner-lilac: #ede9fe;
    --owner-rose: #ffe4e6;
    --owner-shadow: 0 14px 35px rgba(20, 83, 45, .07);
    background: var(--owner-shell);
    color: var(--owner-ink);
  }
body.owner-admin-layout #containerMain {
    background: linear-gradient(180deg, #fbfefb 0, #f7f9f7 48%, #fafafa 100%);
  }
body.owner-admin-layout #pageContent,
  body.owner-admin-layout [id$="ModInner"],
  body.owner-admin-layout [id$="GridContentContainer"],
  body.owner-admin-layout [data-owner-content] {
    background: var(--owner-shell);
  }
body.root-admin-layout.owner-admin-layout #sidebarMain {
    border-color: var(--owner-panel-border);
    background: linear-gradient(180deg, #f0fdf4 0, #ffffff 42%, #f8fafc 100%);
    box-shadow: 12px 0 30px rgba(20, 83, 45, .045);
  }
body.root-admin-layout.owner-admin-layout #sidebarMain [data-owner-sidebar-header] {
    border-color: #bbf7d0;
    background: #ecfdf5;
  }
body.root-admin-layout.owner-admin-layout #sidebarMain [data-owner-sidebar-header] span {
    color: #047857;
  }
body.root-admin-layout.owner-admin-layout .root-nav-search {
    border: 1px solid #cdeed7;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(5, 150, 105, .06);
  }
body.root-admin-layout.owner-admin-layout .root-nav-group {
    border-color: #deeadf;
    background: rgba(255, 255, 255, .76);
  }
body.root-admin-layout.owner-admin-layout .root-nav-group-toggle {
    color: #57705f;
  }
body.root-admin-layout.owner-admin-layout .app-nav-item {
    border: 1px solid transparent;
    border-radius: 8px;
    color: #475569;
  }
body.root-admin-layout.owner-admin-layout .app-nav-item .app-nav-icon {
    background: #edfdf3;
    color: #047857;
  }
body.root-admin-layout.owner-admin-layout .app-nav-item:hover {
    border-color: #bbf7d0;
    background: #f5fff8;
    color: #0f172a;
  }
body.root-admin-layout.owner-admin-layout .app-nav-item.active,
  body.root-admin-layout.owner-admin-layout .app-nav-item[aria-current="page"] {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #065f46;
    box-shadow: 0 8px 18px rgba(5, 150, 105, .08);
  }
body.owner-admin-layout #headerMain {
    border-color: var(--owner-panel-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 0 rgba(220, 230, 220, .9);
  }
body.owner-admin-layout .root-shell-toggle {
    border-color: #cfe6d4;
    background: #f7fdf9;
    color: #047857;
  }
body.owner-admin-layout [data-account-menu] button span:first-child {
    background: linear-gradient(135deg, #059669, #2563eb);
  }
body.owner-admin-layout .app-page-heading,
  body.owner-admin-layout [id$="GridHeader"],
  body.owner-admin-layout [id$="ModHeader"] {
    border-color: var(--owner-panel-border);
    background: linear-gradient(90deg, #f7fdf9 0, #ffffff 56%, #fbfbff 100%);
  }
body.owner-admin-layout [id$="GridHeaderSub1"],
  body.owner-admin-layout [id$="GridHeaderSub2"],
  body.owner-admin-layout [id$="ModHeaderSub"],
  body.owner-admin-layout [id$="ModHeaderOutterSub"] {
    border-color: var(--owner-panel-border);
    background: #f8fcf8;
  }
body.owner-admin-layout [id$="GridFooter"],
  body.owner-admin-layout [id$="ModFooter"],
  body.owner-admin-layout [id$="ModFooterOutter"],
  body.owner-admin-layout .form-actions,
  body.owner-admin-layout footer[class*="border-t"] {
    border-color: var(--owner-panel-border);
    background: #ffffff;
    box-shadow: 0 -8px 24px rgba(20, 83, 45, .045);
  }
body.owner-admin-layout .app-page-heading h1,
  body.owner-admin-layout [id$="GridHeader"] h1,
  body.owner-admin-layout [id$="ModHeader"] h1 {
    color: #111827;
  }
body.owner-admin-layout .app-page-heading p,
  body.owner-admin-layout [id$="GridHeader"] p,
  body.owner-admin-layout [id$="ModHeader"] p {
    color: var(--owner-muted);
  }
body.owner-admin-layout [data-owner-widget-grid],
  body.owner-admin-layout .owner-widget-grid,
  body.owner-admin-layout .owner-stat-grid,
  body.owner-admin-layout .owner-content .app-stat-grid {
    gap: 15px;
  }
body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
    align-items: stretch;
    margin: 0;
  }
body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] > [class*="col"] {
    width: auto;
    max-width: none;
    flex: none;
    padding-left: 0;
    padding-right: 0;
  }
body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] > [data-owner-widget],
  body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] > [class*="col"] > [data-owner-widget] {
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: .75rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: .15rem .5rem;
    border: 1px solid var(--owner-panel-border, #e5eaef);
    border-radius: .5rem;
    background: #fff;
  }
body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] > [data-owner-widget] span,
  body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] > [class*="col"] > [data-owner-widget] span {
    min-width: 0;
    color: var(--owner-muted, #5a6a85);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
  }
body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] > [data-owner-widget] strong,
  body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] > [class*="col"] > [data-owner-widget] strong {
    margin: 0;
    color: var(--owner-ink, #2a3547);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
  }
body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] > [data-owner-widget] p,
  body.owner-admin-layout [data-owner-widget-grid][aria-label$="summary"] > [class*="col"] > [data-owner-widget] p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--owner-muted, #7c8fac);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.25;
  }
body.owner-admin-layout [id$="ModContent"] > section[class*="overflow-y-auto"],
  body.owner-admin-layout [id$="ModContent"] > div[class*="overflow-y-auto"],
  body.owner-admin-layout [data-owner-content] [data-client-detail-content],
  body.owner-admin-layout [data-owner-content] [data-owner-message-panel] > div[class*="overflow-auto"] {
    padding: 15px !important;
  }
body.owner-admin-layout [id$="ModHeader"],
  body.owner-admin-layout [id$="ModHeaderSub"],
  body.owner-admin-layout [id$="ModFooter"],
  body.owner-admin-layout [id$="ModFooterOutter"] {
    padding: 15px !important;
  }
body.owner-admin-layout .owner-widget, body.owner-admin-layout [data-owner-widget], body.owner-admin-layout .app-panel, body.owner-admin-layout .app-table-panel, body.owner-admin-layout [data-owner-message-row], body.owner-admin-layout [data-owner-message-detail], body.owner-admin-layout [data-pm-projects], body.owner-admin-layout .owner-amenity-scheduler-shell, body.owner-admin-layout [data-owner-content] :is(article, details)[class*="border-slate-200"][class*="bg-white"][class*="shadow-sm"] {
    position: relative;
    overflow: hidden;
    border-color: var(--owner-panel-border) !important;
    background: linear-gradient(135deg, #ffffff 0, #fbfefc 100%) !important;
    box-shadow: 0 8px 24px rgba(20, 83, 45, .045) !important;
  }
body.owner-admin-layout .owner-stat-grid > article,
  body.owner-admin-layout .owner-content .app-stat-grid > article,
  body.owner-admin-layout .app-stat-grid > article {
    position: relative;
    min-height: 86px;
    overflow: hidden;
    border: 1px solid var(--owner-panel-border) !important;
    border-radius: 8px;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(20, 83, 45, .04) !important;
    padding: 12px 14px !important;
  }
body.owner-admin-layout .owner-stat-grid > article::before,
  body.owner-admin-layout .owner-content .app-stat-grid > article::before,
  body.owner-admin-layout .app-stat-grid > article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--owner-accent, #86efac);
  }
body.owner-admin-layout .owner-widget:nth-child(4n + 1),
  body.owner-admin-layout [data-owner-widget]:nth-child(4n + 1),
  body.owner-admin-layout .app-stat-grid > article:nth-child(4n + 1) {
    --owner-accent: #86efac;
    --owner-accent-strong: #047857;
  }
body.owner-admin-layout .owner-widget:nth-child(4n + 2),
  body.owner-admin-layout [data-owner-widget]:nth-child(4n + 2),
  body.owner-admin-layout .app-stat-grid > article:nth-child(4n + 2) {
    --owner-accent: #93c5fd;
    --owner-accent-strong: #2563eb;
  }
body.owner-admin-layout .owner-widget:nth-child(4n + 3),
  body.owner-admin-layout [data-owner-widget]:nth-child(4n + 3),
  body.owner-admin-layout .app-stat-grid > article:nth-child(4n + 3) {
    --owner-accent: #fcd34d;
    --owner-accent-strong: #b45309;
  }
body.owner-admin-layout .owner-widget:nth-child(4n + 4),
  body.owner-admin-layout [data-owner-widget]:nth-child(4n + 4),
  body.owner-admin-layout .app-stat-grid > article:nth-child(4n + 4) {
    --owner-accent: #c4b5fd;
    --owner-accent-strong: #7c3aed;
  }
body.owner-admin-layout .app-stat-grid > article span,
  body.owner-admin-layout [data-owner-widget] span:first-child,
  body.owner-admin-layout .owner-widget span:first-child {
    color: var(--owner-muted);
  }
body.owner-admin-layout .app-stat-grid > article strong,
  body.owner-admin-layout [data-owner-widget] strong,
  body.owner-admin-layout .owner-widget strong {
    color: var(--owner-ink);
  }
body.owner-admin-layout .app-stat-grid > article strong,
  body.owner-admin-layout .owner-stat-grid > article strong {
    line-height: 1.1;
  }
body.owner-admin-layout .app-stat-grid > article p,
  body.owner-admin-layout [data-owner-widget] p,
  body.owner-admin-layout .owner-widget p {
    color: var(--owner-muted);
  }
body.owner-admin-layout [data-owner-widget] [class*="bg-slate-100"],
  body.owner-admin-layout .owner-widget [class*="bg-slate-100"],
  body.owner-admin-layout .app-stat-grid > article [class*="bg-slate-100"] {
    background: color-mix(in srgb, var(--owner-accent) 28%, #ffffff) !important;
    color: var(--owner-accent-strong) !important;
  }
body.owner-admin-layout .table-meta,
  body.owner-admin-layout .panel-heading,
  body.owner-admin-layout .owner-widget > div:first-child[class*="border-b"],
  body.owner-admin-layout [data-owner-widget] > div:first-child[class*="border-b"],
  body.owner-admin-layout [data-owner-message-panel] > div:first-child[class*="border-b"] {
    border-color: var(--owner-panel-border);
    background: #f8fcf8;
  }
body.owner-admin-layout table {
    border-color: var(--owner-panel-border);
  }
body.owner-admin-layout table thead {
    background: #f4fbf6;
  }
body.owner-admin-layout table th {
    color: #52665a;
  }
body.owner-admin-layout table tbody tr,
  body.owner-admin-layout table tbody tr > * {
    border-color: #e2ece4 !important;
  }
body.owner-admin-layout table tbody tr:last-child > * {
    border-bottom: 1px solid #e2ece4;
  }
body.owner-admin-layout table tbody tr:hover,
  body.owner-admin-layout .data-table tbody tr:hover td {
    background: #f8fcf8;
  }
body.owner-admin-layout .status-badge {
    border: 1px solid #dce6dc;
    background: #f8fafc;
    color: #475569;
  }
body.owner-admin-layout .status-active,
  body.owner-admin-layout .status-paid,
  body.owner-admin-layout .status-success,
  body.owner-admin-layout .status-completed,
  body.owner-admin-layout .status-approved,
  body.owner-admin-layout .status-open,
  body.owner-admin-layout .status-read {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
  }
body.owner-admin-layout .status-pending,
  body.owner-admin-layout .status-draft,
  body.owner-admin-layout .status-scheduled,
  body.owner-admin-layout .status-review,
  body.owner-admin-layout .status-in_progress,
  body.owner-admin-layout .status-sent {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
  }
body.owner-admin-layout .status-overdue,
  body.owner-admin-layout .status-failed,
  body.owner-admin-layout .status-error,
  body.owner-admin-layout .status-danger,
  body.owner-admin-layout .status-cancelled,
  body.owner-admin-layout .status-archived,
  body.owner-admin-layout .status-inactive {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
  }
body.owner-admin-layout [data-client-form-sidebar],
  body.owner-admin-layout [data-owner-messages-sidebar],
  body.owner-admin-layout [data-module-list] {
    border-color: var(--owner-panel-border);
    background: #f8fcf8;
  }
body.owner-admin-layout input:not([type="checkbox"]):not([type="radio"]),
  body.owner-admin-layout select,
  body.owner-admin-layout textarea {
    border-color: #cbd5e1;
    background-color: #ffffff;
    color: #111827;
  }
body.owner-admin-layout select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2364758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right .75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.35rem;
  }
body.owner-admin-layout .btn-primary,
  body.owner-admin-layout a[class*="bg-slate-950"],
  body.owner-admin-layout button[class*="bg-slate-950"] {
    border-color: #047857 !important;
    background: #047857 !important;
    color: #ffffff !important;
  }
body.owner-admin-layout .btn-primary:hover,
  body.owner-admin-layout a[class*="bg-slate-950"]:hover,
  body.owner-admin-layout button[class*="bg-slate-950"]:hover {
    background: #065f46 !important;
  }
body.owner-admin-layout .form-actions,
  body.owner-admin-layout form > footer[class*="border-t"] {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }
body.owner-admin-layout [data-owner-message-row] {
    box-shadow: 0 4px 14px rgba(15, 23, 42, .035) !important;
  }
body.owner-admin-layout [data-owner-message-row]:hover,
  body.owner-admin-layout [data-owner-message-detail]:hover {
    border-color: #b7dcc2 !important;
  }
body.owner-admin-layout .owner-amenity-fullcalendar,
  body.owner-admin-layout .owner-events-fullcalendar,
  body.owner-admin-layout .fc {
    background: #ffffff;
  }
@media (max-width: 1023px) {
    body.owner-admin-layout #containerMain {
      min-height: 100dvh;
    }

    body.owner-admin-layout #headerMain {
      min-height: 56px;
      padding-left: 12px;
      padding-right: 12px;
    }

    body.owner-admin-layout [id$="ModHeader"],
    body.owner-admin-layout [id$="ModHeaderSub"] {
      padding: 12px !important;
    }

    body.owner-admin-layout .app-stat-grid,
    body.owner-admin-layout .owner-stat-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.owner-admin-layout .app-stat-grid > article,
    body.owner-admin-layout .owner-stat-grid > article {
      min-height: 76px;
      padding: 10px 12px !important;
    }
  }
@media (max-width: 639px) {
    body.owner-admin-layout .app-stat-grid,
    body.owner-admin-layout .owner-stat-grid {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }

/* Shared mobile sidebar backdrop (Client / Owner / Contractor).
   Root mobile sidebar backdrop rules live under body.root-admin-layout below. */
body.client-admin-layout #rootSidebarBackdrop,
body.owner-admin-layout #rootSidebarBackdrop,
body.contractor-admin-layout #rootSidebarBackdrop {
  position: fixed;
  inset: 0;
  z-index: 1035;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
  body.client-admin-layout #rootSidebarBackdrop,
  body.owner-admin-layout #rootSidebarBackdrop,
  body.contractor-admin-layout #rootSidebarBackdrop {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  body.client-admin-layout #sidebarMain,
  body.owner-admin-layout #sidebarMain,
  body.contractor-admin-layout #sidebarMain {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0 !important;
    z-index: 1040 !important;
    width: min(18rem, calc(100vw - 3rem));
    max-width: 18rem;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  }

  body.client-admin-layout.root-sidebar-open #sidebarMain,
  body.client-admin-layout #sidebarMain.sidebar-mobile-expanded,
  body.owner-admin-layout.root-sidebar-open #sidebarMain,
  body.owner-admin-layout.sidebar-open #sidebarMain,
  body.owner-admin-layout #sidebarMain.sidebar-mobile-expanded,
  body.contractor-admin-layout.root-sidebar-open #sidebarMain,
  body.contractor-admin-layout #sidebarMain.sidebar-mobile-expanded {
    transform: translateX(0);
    z-index: 1060 !important;
  }

  body.client-admin-layout #rootSidebarBackdrop,
  body.owner-admin-layout #rootSidebarBackdrop,
  body.contractor-admin-layout #rootSidebarBackdrop {
    display: block !important;
  }

  body.client-admin-layout.root-sidebar-open #rootSidebarBackdrop,
  body.client-admin-layout #rootSidebarBackdrop.is-open,
  body.client-admin-layout:has(#sidebarMain.sidebar-mobile-expanded) #rootSidebarBackdrop,
  body.owner-admin-layout.root-sidebar-open #rootSidebarBackdrop,
  body.owner-admin-layout #rootSidebarBackdrop.is-open,
  body.owner-admin-layout:has(#sidebarMain.sidebar-mobile-expanded) #rootSidebarBackdrop,
  body.contractor-admin-layout.root-sidebar-open #rootSidebarBackdrop,
  body.contractor-admin-layout #rootSidebarBackdrop.is-open,
  body.contractor-admin-layout:has(#sidebarMain.sidebar-mobile-expanded) #rootSidebarBackdrop {
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 1055 !important;
  }
}

/* Bootstrap 5 management helpers replacing the legacy Root CSS page include. */
.root-admin-layout {
  --root-blue-25: #fbfdff;
  --root-blue-50: #f3f8ff;
  --root-blue-100: #e3f0ff;
  --root-blue-600: #2f6fcd;
  --root-mint-50: #effcf6;
  --root-mint-100: #c9f3dd;
  --root-mint-700: #14804f;
  --root-amber-50: #fff8e7;
  --root-amber-100: #ffe7ab;
  --root-amber-800: #91600e;
  --root-violet-50: #f7f3ff;
  --root-violet-100: #dfd2ff;
  --root-violet-700: #7352c7;
  --root-rose-50: #fff1f4;
  --root-rose-100: #ffd3dc;
  --root-rose-700: #be244a;
  --root-border: #d5e4f4;
  --root-shell: #f6f9fd;
  --root-ink: #102033;
}

.root-admin-form .input-group,
.root-admin-form .password-field {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  flex-wrap: nowrap;
}

.root-admin-form .input-group:focus-within,
.root-admin-form .password-field:focus-within {
  z-index: 2;
}

.input-group.multilingual-input .transinput-lang {
  cursor: pointer;
  user-select: none;
  min-width: 2.75rem;
  justify-content: center;
}

.input-group.multilingual-input .transinput-flag {
  display: block;
  width: 1.5rem;
  height: 1.125rem;
  border-radius: 0.125rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 0.08);
}

.input-group.multilingual-input .transinput-flag-fallback {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.root-admin-form .input-group > .form-control,
.root-admin-form .password-field > .form-control,
.root-admin-form .input-group input:not([type="checkbox"]):not([type="radio"]),
.root-admin-form .password-field input:not([type="checkbox"]):not([type="radio"]) {
  position: relative;
  min-height: 2.5rem;
  min-width: 0;
  flex: 1 1 auto;
  width: 1%;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.root-admin-form .input-group > .form-control:not(:last-child),
.root-admin-form .password-field > .form-control:not(:last-child),
.root-admin-form .input-group input:not([type="checkbox"]):not([type="radio"]):not(:last-child),
.root-admin-form .password-field input:not([type="checkbox"]):not([type="radio"]):not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.root-admin-form .input-group > .form-control:focus,
.root-admin-form .password-field > .form-control:focus,
.root-admin-form .input-group input:not([type="checkbox"]):not([type="radio"]):focus,
.root-admin-form .password-field input:not([type="checkbox"]):not([type="radio"]):focus {
  z-index: 3;
  border-color: #64748b;
  box-shadow: 0 0 0 2px rgb(226 232 240 / 1), 0 1px 2px rgb(15 23 42 / 0.05);
  outline: 0;
}

.root-admin-form .input-group > .form-control.is-invalid,
.root-admin-form .password-field > .form-control.is-invalid,
.root-admin-form .input-group input.is-invalid,
.root-admin-form .password-field input.is-invalid {
  border-color: #dc2626;
}

.root-admin-form .input-group .btn,
.root-admin-form .input-group button,
.root-admin-form .password-field .btn,
.root-admin-form .password-field button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-left: 0;
  border-radius: 0 0.375rem 0.375rem 0;
  background: #ffffff;
  color: #64748b;
  padding: 0 0.75rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  transform: none;
}

.root-admin-form .input-group .btn:hover,
.root-admin-form .input-group button:hover,
.root-admin-form .password-field .btn:hover,
.root-admin-form .password-field button:hover {
  background: #f8fafc;
  color: #0f172a;
}

.root-admin-form .input-group .btn i,
.root-admin-form .input-group button i,
.root-admin-form .password-field .btn i,
.root-admin-form .password-field button i {
  font-size: 0.875rem;
  line-height: 1;
}

.root-admin-layout .root-admin-form :is([class~="bg-slate-950"], [class~="bg-slate-900"], [class~="bg-black"]) :is(h1, h2, h3, h4, h5, h6, p, span, small, strong) {
  color: #ffffff !important;
}

/* Select2 + bootstrap-5 theme. Dropdown is often portaled outside .select2-container — keep selectors unscoped. */
/* select2-bs5 puts .select2--small on the selection (and sometimes the container). Match Limitless .form-select. */
.select2-container.select2--small .select2-selection,
.select2-container--bootstrap-5 .select2--small.select2-selection {
  font-size: 0.875rem !important;
}


.select2-container,
.select2-container--bootstrap-5 {
  font-size: 0.875rem;
}

.root-admin-layout .select2-container,
.admin-root-layout .select2-container,
.client-admin-layout .select2-container,
.root-admin-form .select2-container {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

.select2-container--bootstrap-5 .select2-selection,
.select2-container--bootstrap-5.select2--small .select2-selection,
.select2-container.select2--small .select2-selection,
.select2-container--bootstrap-5 .select2--small.select2-selection,
.select2-container--bootstrap-5 .select2--small.select2-selection--multiple {
  box-sizing: border-box;
  min-height: 40px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem !important;
  line-height: 1.5;
  color: #212529 !important;
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem;
}

.select2-container--bootstrap-5 .select2-selection--single,
.select2-container.select2--small .select2-selection--single,
.select2-container--bootstrap-5 .select2--small.select2-selection--single {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 2.625rem 0.5rem 0.875rem;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.875rem center !important;
  background-size: 16px 12px !important;
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection,
.select2-container--bootstrap-5.select2-container--disabled .select2-selection--single,
.select2-container.select2--small.select2-container--disabled .select2-selection {
  color: #6c757d !important;
  background-color: #e9ecef !important;
  border-color: #ced4da !important;
  cursor: not-allowed;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  font-size: 0.875rem !important;
  line-height: 1.5;
  padding: 0;
  color: inherit;
}

.select2-dropdown.select2-dropdown--below,
.select2-dropdown.select2-dropdown--above,
.select2-container--bootstrap-5 .select2-dropdown,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option,
.select2-container--bootstrap-5 .select2-search__field,
.select2--small.select2-dropdown .select2-results__options .select2-results__option {
  font-size: 0.875rem !important;
}

.root-admin-layout .form-field .select2-container,
.client-admin-layout .form-field .select2-container,
.admin-root-layout .form-field .select2-container,
.root-admin-form .form-field .select2-container {
  display: block;
}

.select2-dropdown {
  z-index: 2000;
}

.select2-option-label {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.select2-option-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-option-meta {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 0.75rem;
  color: #6c757d;
  font-size: 0.75rem !important;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* BS5 highlight is light gray — keep meta muted. Only invert on the blue selected row. */
.select2-results__option--highlighted .select2-option-meta,
.select2-container--bootstrap-5 .select2-results__option--highlighted .select2-option-meta {
  color: #6c757d !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected .select2-option-meta,
.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] .select2-option-meta {
  color: rgb(255 255 255 / 0.85) !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected.select2-results__option--highlighted .select2-option-meta,
.select2-container--bootstrap-5 .select2-results__option[aria-selected=true].select2-results__option--highlighted .select2-option-meta {
  color: #6c757d !important;
}

.root-admin-layout select.select2-hidden-accessible,
.admin-root-layout select.select2-hidden-accessible,
.client-admin-layout select.select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.client-admin-layout select[data-enhanced-select].select2-hidden-accessible,
.client-admin-layout select[data-country-select].select2-hidden-accessible,
.client-admin-layout select[data-region-select].select2-hidden-accessible,
.admin-root-layout select[data-enhanced-select].select2-hidden-accessible,
.client-admin-layout [data-payment-method-form] select[data-enhanced-select],
.client-admin-layout [data-payment-method-form] select[data-country-select],
.client-admin-layout [data-payment-method-form] select[data-region-select] {
  display: none !important;
}

/* Root inner-page pastel emphasis: nested sidebars, detail shells, forms, drawers. */
.root-admin-layout :is(
  [data-client-profile-sidebar],
  [data-staff-profile-sidebar],
  [data-profile-sidebar],
  [data-settings-sidebar],
  [data-permission-module-sidebar],
  [data-cron-sidebar],
  [data-shop-sidebar]
) {
  color: var(--root-ink);
}

.root-admin-layout :is(
  [data-client-profile-sidebar],
  [data-staff-profile-sidebar],
  [data-profile-sidebar],
  [data-settings-sidebar],
  [data-permission-module-sidebar],
  [data-cron-sidebar],
  [data-shop-sidebar],
  [data-module-list],
  [data-profile-permission-group],
  [data-tax-rule-drawer] aside
) {
  border-color: var(--root-border) !important;
  background: #f7fbff !important;
}

.root-admin-layout [data-staff-profile-shell],
.root-admin-layout :is([data-client-profile-shell], [data-staff-profile-shell]) .client-profile-section,
.root-admin-layout [data-tax-rule-drawer] form {
  background: var(--root-shell) !important;
}

.root-admin-layout [data-tax-rule-drawer] aside > div:first-child,
.root-admin-layout [data-profile-permission-group-title],
.root-admin-layout :is([data-client-profile-sidebar], [data-staff-profile-sidebar], [data-profile-sidebar], [data-settings-sidebar]) > div > div:first-child {
  border-color: #cfe1f6 !important;
  background: var(--root-blue-50) !important;
}

/* Root widget emphasis: summary tiles, KPIs, overview cards, chart bars, count pills. */
.root-admin-layout .nav-unread-count,
.root-admin-layout [data-client-group-selected-count],
.root-admin-layout [data-subscription-plan-selected-count],
.root-admin-layout [data-email-template-selected-count] {
  border: 1px solid var(--root-rose-100) !important;
  background: var(--root-rose-50) !important;
  color: var(--root-rose-700) !important;
}

.root-admin-layout .root-widget,
.root-admin-layout [data-root-widget] {
  --root-widget-bg: var(--root-blue-50);
  --root-widget-border: #cfe1f6;
  --root-widget-accent: var(--root-blue-600);
  --root-widget-ink: #14365f;
  position: relative;
  overflow: hidden;
  border-color: var(--root-widget-border) !important;
  background: var(--root-widget-bg) !important;
  color: var(--root-widget-ink) !important;
  box-shadow: 0 1px 2px rgb(22 32 51 / 0.05) !important;
}

.root-admin-layout .root-widget > *,
.root-admin-layout [data-root-widget] > * {
  position: relative;
  z-index: 1;
}

.root-admin-layout .root-widget strong,
.root-admin-layout [data-root-widget] strong {
  color: var(--root-widget-ink) !important;
}

.root-admin-layout .root-widget > span:first-child,
.root-admin-layout [data-root-widget] > span:first-child,
.root-admin-layout .root-widget [class*="uppercase"],
.root-admin-layout [data-root-widget] [class*="uppercase"] {
  color: #355f91 !important;
}

.root-admin-layout .root-widget .bi,
.root-admin-layout [data-root-widget] .bi {
  color: var(--root-widget-accent) !important;
}

.root-admin-layout .root-widget:nth-child(4n + 2),
.root-admin-layout [data-root-widget]:nth-child(4n + 2),
.root-admin-layout .root-widget-mint {
  --root-widget-bg: var(--root-mint-50);
  --root-widget-border: var(--root-mint-100);
  --root-widget-accent: var(--root-mint-700);
  --root-widget-ink: #12583f;
}

.root-admin-layout .root-widget:nth-child(4n + 3),
.root-admin-layout [data-root-widget]:nth-child(4n + 3),
.root-admin-layout .root-widget-amber {
  --root-widget-bg: var(--root-amber-50);
  --root-widget-border: var(--root-amber-100);
  --root-widget-accent: #d79722;
  --root-widget-ink: var(--root-amber-800);
}

.root-admin-layout .root-widget:nth-child(4n + 4),
.root-admin-layout [data-root-widget]:nth-child(4n + 4),
.root-admin-layout .root-widget-violet {
  --root-widget-bg: var(--root-violet-50);
  --root-widget-border: var(--root-violet-100);
  --root-widget-accent: var(--root-violet-700);
  --root-widget-ink: #55309f;
}

.root-admin-layout [data-root-widget-grid] {
  isolation: isolate;
}

.root-admin-layout [data-root-widget-grid] > .root-widget,
.root-admin-layout [data-root-widget-grid] > [data-root-widget] {
  min-height: 7rem;
}

.root-admin-layout [data-root-chart-track] {
  border: 1px solid #cfe1f6 !important;
  background: #ffffff !important;
}

.root-admin-layout [data-root-chart-bar] {
  background: var(--root-blue-600) !important;
}

.root-admin-layout [data-root-chart-point]:nth-child(4n + 2) [data-root-chart-bar] {
  background: var(--root-mint-700) !important;
}

.root-admin-layout [data-root-chart-point]:nth-child(4n + 3) [data-root-chart-bar] {
  background: #d79722 !important;
}

.root-admin-layout [data-root-chart-point]:nth-child(4n + 4) [data-root-chart-bar] {
  background: var(--root-violet-700) !important;
}

.root-admin-layout .payment-method-default-switch {
  display: inline-flex;
  width: 100%;
  max-width: 19rem;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #d9e5f4;
  border-radius: 0.375rem;
  background: #f8fbff;
  padding: 0.625rem 0.75rem;
}

.root-admin-layout .payment-method-default-switch input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}

.root-admin-layout .payment-method-default-switch-track {
  position: relative;
  width: 2.625rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.root-admin-layout .payment-method-default-switch-track span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.24);
  transition: transform 0.15s ease;
}

.root-admin-layout .payment-method-default-switch input[type="checkbox"]:checked + .payment-method-default-switch-track {
  border-color: var(--root-blue-600);
  background: var(--root-blue-600);
}

.root-admin-layout .payment-method-default-switch input[type="checkbox"]:checked + .payment-method-default-switch-track span {
  transform: translateX(1.125rem);
}

@media print {
  body.client-admin-layout #sidebarMain,
  body.client-admin-layout #headerMain,
  body.client-admin-layout .print-hidden,
  body.client-admin-layout [data-client-view-header],
  body.client-admin-layout [data-toast-container],
  body.client-admin-layout .app-ajax-loader {
    display: none !important;
  }

  body.client-admin-layout,
  body.client-admin-layout #containerMain,
  body.client-admin-layout #contentMain,
  body.client-admin-layout .app-content,
  body.client-admin-layout [id$="ModContent"] {
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  body.client-admin-layout .invoice-view-panel,
  body.client-admin-layout .invoice-print-document {
    max-width: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* intl-tel-input: vendor CSS ships without flag path vars / images in this tree. */
:root {
  --iti-path-flags-1x: url("/assets/vendor/intl-tel-input/img/flags.webp");
  --iti-path-flags-2x: url("/assets/vendor/intl-tel-input/img/flags@2x.webp");
  --iti-path-globe-1x: url("/assets/vendor/intl-tel-input/img/globe.webp");
  --iti-path-globe-2x: url("/assets/vendor/intl-tel-input/img/globe@2x.webp");
}

.iti:has(input.form-control),
.iti:has(input[data-phone-input]) {
  display: block;
  width: 100%;
}

.iti input.form-control.iti__tel-input,
.iti input[data-phone-input].iti__tel-input {
  width: 100%;
}

.iti__dropdown-content {
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.12);
  overflow: hidden;
  background: #fff;
}

.iti__search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.iti .iti__search-input {
  width: 100%;
  min-height: 2.25rem;
  margin: 0;
  padding: 0.375rem 2rem 0.375rem 2rem;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.375rem;
  background: #fff;
  color: #111827;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: none;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}

.iti .iti__search-input:focus {
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.iti__search-icon {
  left: 1rem;
  color: #64748b;
}

.iti__search-clear {
  right: 0.75rem;
}

.iti__country-list {
  max-height: 12.5rem;
}

.iti__country {
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
}

.iti__country.iti__highlight {
  background: #ecfdf5;
}

.iti__flag {
  flex-shrink: 0;
}

/* FullCalendar theme lives in vendor/fullcalendar/condopro-fullcalendar.css
   (Limitless-compatible FC v6 vars + toolbar). Keep a thin fallback here. */
.amenity-fullcalendar.fc,
.amenity-fullcalendar .fc,
.amenity-fullcalendar {
  --fc-border-color: var(--border-color, #dee2e6);
  --fc-page-bg-color: #ffffff;
  --fc-today-bg-color: rgba(15, 118, 110, 0.08);
  --fc-event-bg-color: #0f766e;
  --fc-event-border-color: #0f766e;
  --fc-event-text-color: #ffffff;
  --fc-button-bg-color: var(--gray-200, #e9ecef);
  --fc-button-border-color: var(--gray-400, #ced4da);
  --fc-button-text-color: var(--body-color, #333);
  background: #ffffff;
}

/* Sticky datagrid headers: Bootstrap sticky-top is z-index 1020, which paints
   over incoming hash-route forms (and open filter/select controls above the grid).
   Keep them above table body only, inside the grid scrollport. */
body.client-admin-layout [id$="GridContent"] thead.sticky-top,
body.client-admin-layout [id$="GridContent"] .sticky-top,
body.owner-admin-layout [id$="GridContent"] thead.sticky-top,
body.owner-admin-layout [id$="GridContent"] .sticky-top {
  z-index: 2;
}

/* Filter panels sit above sticky table headers when open. */
body.client-admin-layout [id$="GridHeaderSub1"],
body.owner-admin-layout [id$="GridHeaderSub1"] {
  position: relative;
  z-index: 5;
}

/* Forms loaded into ModContent must sit above any leftover sticky headers. */
body.client-admin-layout [id$="ModContent"] > .root-admin-form,
body.client-admin-layout [id$="ModContent"] > [data-client-convention-form],
body.owner-admin-layout [id$="ModContent"] > .root-admin-form,
body.owner-admin-layout [id$="ModContent"] > [data-client-convention-form] {
  position: relative;
  z-index: 5;
  background: #fff;
}

/* Page transitions (Settings → Display → Page transition)
   Dual-panel push: old and new move together (no leave-then-enter fade). */
.cp-page-transition-host {
  position: relative !important;
  overflow: hidden !important;
}

.cp-page-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.cp-page-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: #fff;
  will-change: transform, opacity;
  transition:
    transform var(--cp-page-transition-duration, .5s) ease-in-out,
    opacity var(--cp-page-transition-duration, .5s) ease-in-out;
}

.cp-page-panel-out {
  z-index: 1;
}

.cp-page-panel-in {
  z-index: 5;
}

/* Outgoing sticky headers must not composite over the incoming panel. */
.cp-page-panel-out .sticky-top {
  position: static;
  z-index: auto;
}

/* slide-rtl: new pushes old left */
.cp-page-stage[data-page-transition-mode="slide-rtl"] .cp-page-panel-out {
  transform: translateX(0);
  opacity: 1;
}

.cp-page-stage[data-page-transition-mode="slide-rtl"] .cp-page-panel-in {
  transform: translateX(100%);
  opacity: 1;
}

.cp-page-stage[data-page-transition-mode="slide-rtl"].is-pushing .cp-page-panel-out {
  transform: translateX(-100%);
}

.cp-page-stage[data-page-transition-mode="slide-rtl"].is-pushing .cp-page-panel-in {
  transform: translateX(0);
}

/* slide-up: new pushes old up */
.cp-page-stage[data-page-transition-mode="slide-up"] .cp-page-panel-out {
  transform: translateY(0);
  opacity: 1;
}

.cp-page-stage[data-page-transition-mode="slide-up"] .cp-page-panel-in {
  transform: translateY(100%);
  opacity: 1;
}

.cp-page-stage[data-page-transition-mode="slide-up"].is-pushing .cp-page-panel-out {
  transform: translateY(-100%);
}

.cp-page-stage[data-page-transition-mode="slide-up"].is-pushing .cp-page-panel-in {
  transform: translateY(0);
}

/* fade: crossfade in place */
.cp-page-stage[data-page-transition-mode="fade"] .cp-page-panel-out {
  transform: none;
  opacity: 1;
}

.cp-page-stage[data-page-transition-mode="fade"] .cp-page-panel-in {
  transform: none;
  opacity: 0;
}

.cp-page-stage[data-page-transition-mode="fade"].is-pushing .cp-page-panel-out {
  opacity: 0;
}

.cp-page-stage[data-page-transition-mode="fade"].is-pushing .cp-page-panel-in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cp-page-panel {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* jquery.e-calendar — keep in app.css so Admin dashboard is not a bare plugin dump. */
.calendar * {
  box-sizing: border-box;
  font-size: 14px;
}
.calendar,
.calendar-sm {
  cursor: default;
}
.calendar-sm .c-pad-top {
  padding-top: 2%;
}
.calendar .c-pad-top {
  padding-top: 3%;
}
.c-grid {
  box-shadow: 2px 2px 5px #888888;
  height: inherit;
  float: left;
  width: 50%;
}
.c-day,
.c-day-previous-month,
.c-day-next-month {
  width: 14.28%;
  height: 13%;
  float: left;
  text-align: center;
}
.c-day {
  background-color: #eff4f9;
}
.c-day-previous-month,
.c-day-next-month {
  background-color: #f9fbfd;
  color: gray;
}
.c-week-day {
  width: 14.28%;
  height: 10.38%;
  background-color: rgb(145, 172, 203);
  color: #fff;
  float: left;
  text-align: center;
  font-weight: bold;
  padding-top: 1%;
}
.c-next,
.c-previous {
  width: 12.5%;
  height: 12%;
  padding: 2% 2% 0 2%;
  cursor: pointer;
}
.c-next {
  text-align: right;
}
.c-previous {
  text-align: left;
}
.c-month {
  width: 75%;
  height: 12%;
  text-align: center;
}
.c-nav-btn-over {
  background-color: rgb(137, 163, 192) !important;
  font-weight: bold;
}
.c-today {
  background-color: #d8eaf1;
}
.c-event {
  background-color: rgb(166, 166, 166);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}
.c-event-grid {
  margin-left: 1px;
  height: inherit;
  width: 49%;
  float: left;
  box-shadow: 2px 2px 5px #888888;
}
.c-grid-title {
  font-weight: bold;
  float: left;
  background-color: rgb(112, 145, 183);
  color: #fff;
}
.c-event-title {
  width: 100%;
  height: 12%;
  text-align: center;
  font-weight: bold;
  background-color: rgb(135, 155, 188);
  color: #fff;
}
.c-event-body {
  background-color: #eff4f9;
  height: 88.1%;
}
.c-event-list {
  padding: 7px 0 0 0;
  overflow: auto;
  height: 95%;
}
.c-event-item {
  padding-left: 10px;
  margin-bottom: 10px;
}
.c-event-item > .title {
  font-weight: bold;
}
.c-event-item > div {
  text-overflow: ellipsis;
  width: inherit;
  overflow: hidden;
  white-space: nowrap;
}
.c-event-over {
  background-color: lightgray;
  font-weight: bold;
  color: #000;
}
.c-event-over > .description {
  font-weight: normal;
}
.admin-dashboard-ecalendar.calendar,
.admin-dashboard-ecalendar.calendar * {
  box-sizing: border-box;
  font-size: inherit;
  font-family: inherit;
}
.admin-dashboard-ecalendar.calendar {
  width: 100%;
  height: auto;
  overflow: hidden;
  color: var(--body-color, #1f2937);
}
.admin-dashboard-ecalendar .c-grid,
.admin-dashboard-ecalendar .c-event-grid {
  float: none;
  width: 100%;
  height: auto;
  margin: 0;
  box-shadow: none;
}
.admin-dashboard-ecalendar .c-grid {
  overflow: hidden;
  background: var(--card-bg, #fff);
}
.admin-dashboard-ecalendar .c-grid-title {
  background: var(--card-cap-bg, rgba(0, 0, 0, 0.015));
  color: var(--body-color, #1f2937);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color, #d1d5db);
}
.admin-dashboard-ecalendar .c-next,
.admin-dashboard-ecalendar .c-previous,
.admin-dashboard-ecalendar .c-month,
.admin-dashboard-ecalendar .c-event-title {
  height: 2.75rem;
  line-height: 2.75rem;
  padding: 0 1rem;
}
.admin-dashboard-ecalendar .c-next,
.admin-dashboard-ecalendar .c-previous {
  cursor: pointer;
  user-select: none;
  color: var(--primary, #0c83ff);
}
.admin-dashboard-ecalendar .c-next i,
.admin-dashboard-ecalendar .c-previous i {
  font-size: 1rem;
  line-height: 1;
}
.admin-dashboard-ecalendar .c-nav-btn-over {
  background-color: rgba(var(--primary-rgb, 12, 131, 255), 0.1) !important;
  color: var(--primary, #0c83ff);
  font-weight: 600;
}
.admin-dashboard-ecalendar .c-week-day {
  height: 2rem;
  line-height: 2rem;
  padding-top: 0;
  background: var(--gray-100, #f9fafb);
  color: var(--gray-600, #6b7280);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color, #d1d5db);
}
.admin-dashboard-ecalendar .c-day,
.admin-dashboard-ecalendar .c-day-previous-month,
.admin-dashboard-ecalendar .c-day-next-month {
  height: 2.5rem;
  line-height: 2.5rem;
  padding-top: 0;
  background: var(--card-bg, #fff);
  color: var(--body-color, #1f2937);
  font-weight: 500;
  border-right: 1px solid var(--border-color, #d1d5db);
  border-bottom: 1px solid var(--border-color, #d1d5db);
}
.admin-dashboard-ecalendar .c-day-previous-month,
.admin-dashboard-ecalendar .c-day-next-month {
  background: var(--gray-100, #f9fafb);
  color: var(--gray-400, #d1d5db);
}
.admin-dashboard-ecalendar .c-today {
  background: rgba(var(--primary-rgb, 12, 131, 255), 0.12);
  color: var(--primary, #0c83ff);
  font-weight: 700;
}
.admin-dashboard-ecalendar .c-event {
  background: var(--primary, #0c83ff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.admin-dashboard-ecalendar .c-event.c-today,
.admin-dashboard-ecalendar .c-event.c-event-over {
  background: var(--link-hover-color, #0962bf);
  color: #fff;
}
.admin-dashboard-ecalendar .c-event-title {
  background: var(--card-cap-bg, rgba(0, 0, 0, 0.015));
  color: var(--body-color, #1f2937);
  font-weight: 600;
  text-align: left;
  border-top: 1px solid var(--border-color, #d1d5db);
  border-bottom: 1px solid var(--border-color, #d1d5db);
}
.admin-dashboard-ecalendar .c-event-body {
  background: var(--card-bg, #fff);
  height: auto;
}
.admin-dashboard-ecalendar .c-event-list {
  padding: 0;
  height: auto;
  max-height: 16rem;
}
.admin-dashboard-ecalendar .c-event-item,
.admin-dashboard-ecalendar a.c-event-item {
  display: block;
  padding: 0.75rem 1rem;
  margin: 0;
  border-bottom: 1px solid var(--border-color, #d1d5db);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.admin-dashboard-ecalendar .c-event-item:last-child {
  border-bottom: 0;
}
.admin-dashboard-ecalendar .c-event-item > .title,
.admin-dashboard-ecalendar .c-event-item .title {
  font-weight: 600;
  color: var(--body-color, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-dashboard-ecalendar .c-event-item > .description,
.admin-dashboard-ecalendar .c-event-item .description {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--gray-600, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-dashboard-ecalendar .c-event-item.c-event-over,
.admin-dashboard-ecalendar a.c-event-item:hover {
  background: rgba(var(--primary-rgb, 12, 131, 255), 0.08);
  color: inherit;
  font-weight: inherit;
}
.admin-dashboard-ecalendar .c-event-over > .description {
  font-weight: 400;
}

/* Colored Limitless stat cards (billing, telephony, VoIP statement). */
.card.bg-primary,
.card-body.bg-primary {
  background-color: #0c83ff !important;
  color: #fff !important;
}

.card.bg-success,
.card-body.bg-success {
  background-color: #059669 !important;
  color: #fff !important;
}

.card.bg-secondary,
.card-body.bg-secondary {
  background-color: #247297 !important;
  color: #fff !important;
}

.card.bg-danger,
.card-body.bg-danger {
  background-color: #ef4444 !important;
  color: #fff !important;
}

.card.bg-warning,
.card-body.bg-warning {
  background-color: #f58646 !important;
  color: #fff !important;
}

.card.bg-indigo,
.card-body.bg-indigo {
  background-color: #5c6bc0 !important;
  color: #fff !important;
}

.card.bg-info,
.card-body.bg-info {
  background-color: #049aad !important;
  color: #fff !important;
}

/* FAQ / knowledge-base home: keep Limitless tinted chips after app.css resets. */
[data-kb-home] .bg-success.bg-opacity-10,
[data-kb-category] .bg-success.bg-opacity-10 {
  background-color: rgba(5, 150, 105, 0.12) !important;
  color: #059669 !important;
}

[data-kb-home] .bg-warning.bg-opacity-10,
[data-kb-category] .bg-warning.bg-opacity-10 {
  background-color: rgba(245, 134, 70, 0.14) !important;
  color: #dd793f !important;
}

[data-kb-home] .bg-primary.bg-opacity-10,
[data-kb-category] .bg-primary.bg-opacity-10 {
  background-color: rgba(37, 99, 235, 0.12) !important;
  color: #2563eb !important;
}

[data-kb-home] .bg-info.bg-opacity-10,
[data-kb-category] .bg-info.bg-opacity-10 {
  background-color: rgba(4, 154, 173, 0.12) !important;
  color: #049aad !important;
}

[data-kb-home] .bg-indigo.bg-opacity-10,
[data-kb-category] .bg-indigo.bg-opacity-10 {
  background-color: rgba(92, 107, 192, 0.12) !important;
  color: #5c6bc0 !important;
}

[data-kb-home] .bg-teal.bg-opacity-10,
[data-kb-category] .bg-teal.bg-opacity-10 {
  background-color: rgba(38, 166, 154, 0.12) !important;
  color: #26a69a !important;
}

.owner-forum-page {
  background: var(--muted);
}

.owner-forum-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted-foreground);
}

.owner-forum-table {
  --bs-table-bg: var(--panel);
}

.owner-forum-table a.owner-forum-name {
  font-weight: 600;
  color: var(--foreground);
}

.owner-forum-table a.owner-forum-name:hover {
  color: var(--primary);
}

.owner-forum-board-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--muted);
  color: var(--primary);
  border: 1px solid var(--border);
}

.owner-forum-post {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.owner-forum-post-author {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .owner-forum-post-author {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
}

.owner-forum-avatar {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

.owner-forum-like {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.2;
  font-weight: 500;
}

.owner-forum-like:hover,
.owner-forum-like:focus-visible {
  color: var(--primary);
}

.owner-forum-like[data-liked="1"] {
  color: var(--primary);
  font-weight: 600;
}

.owner-notifications-center {
  background: var(--muted);
}

.owner-notifications-empty-icon {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--panel);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  font-size: 1.25rem;
}

.owner-notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.owner-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
}

.owner-notification-item.is-unread {
  border-left-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--panel));
}

.owner-notification-unread-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--primary);
}

.owner-notification-unread-dot.is-read {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
}

.owner-notification-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  font-size: 1.05rem;
}

.owner-notification-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.owner-notification-item.is-unread .owner-notification-title {
  font-weight: 700;
}

.owner-notification-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.owner-notification-body {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.owner-notification-meta {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.owner-notification-action {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: none;
}

.owner-notification-action:hover,
.owner-notification-action:focus-visible {
  text-decoration: underline;
}

/* Datepicker popup: plugin default is 1000 and JS often writes ~10.
   Bootstrap sticky-top is 1020, so the month grid sits under table headers. */
.datepicker.dropdown-menu,
.datepicker-dropdown {
  z-index: 1060 !important;
}

/* Messages thread (Limitless media-chat). Gold lives in backend/style.css, but
   .rich-html-content then forces #334155 onto reverse bubbles that use
   --chat-message-bg: var(--primary). Keep the Limitless slots; pin readable
   colors and a usable bubble size. */
[data-admin-message-view-offcanvas],
[data-owner-message-view-offcanvas],
[data-client-message-view-offcanvas],
[data-root-message-view-offcanvas],
[data-contractor-message-view-offcanvas] {
  --offcanvas-bg: #ffffff;
  --bs-offcanvas-bg: #ffffff;
  --bs-offcanvas-color: #0f172a;
  background-color: #ffffff;
  color: #0f172a;
}

.media-chat {
  --chat-message-padding-y: 0.95rem;
  --chat-message-padding-x: 1.25rem;
  --chat-message-bg: #e5e7eb;
  --chat-message-color: #1f2937;
}

.media-chat-item {
  width: 100%;
}

@media (min-width: 576px) {
  .media-chat-item {
    width: 88%;
  }
}

.media-chat-item > .min-w-0 {
  flex: 1 1 auto;
  min-width: 0;
}

.media-chat-message {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 3.25rem;
  padding: var(--chat-message-padding-y) var(--chat-message-padding-x);
  color: var(--chat-message-color) !important;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.media-chat-message:not([class*="bg-"]) {
  background-color: var(--chat-message-bg);
}

.media-chat-message.rich-html-content,
.media-chat-message.rich-html-content > :first-child,
.media-chat-message.rich-html-content > :last-child,
.media-chat-message.rich-html-content p,
.media-chat-message.rich-html-content li,
.media-chat-message.rich-html-content blockquote {
  color: inherit;
}

.media-chat-item-reverse {
  --chat-message-bg: var(--primary, #2563eb);
  --chat-message-color: #ffffff;
  text-align: right;
  flex-direction: row-reverse;
  align-self: flex-end;
}

.media-chat-item-reverse .media-chat-message {
  text-align: left;
}

.media-chat-item .fw-semibold {
  color: #0f172a;
}

.media-chat .badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.media-chat .badge.text-bg-primary,
.media-chat .badge.bg-primary,
.media-chat .badge[class*="text-bg-primary"] {
  background: #2563eb !important;
  color: #fff !important;
}

@media (max-width: 991.98px) {
  body.client-admin-layout #containerMain,
  body.client-admin-layout #mainContainer,
  body.client-admin-layout #pageContent,
  body.owner-admin-layout #containerMain,
  body.owner-admin-layout #mainContainer,
  body.owner-admin-layout #pageContent,
  body.client-admin-layout [id$="ModContent"],
  body.owner-admin-layout [id$="ModContent"],
  body.client-admin-layout [id$="GridContainer"],
  body.owner-admin-layout [id$="GridContainer"],
  body.client-admin-layout [id$="gridContentContainer"],
  body.owner-admin-layout [id$="gridContentContainer"] {
    min-width: 0;
    max-width: 100%;
  }

  table.cp-phone-cards-source {
    display: none !important;
  }

  body.root-admin-layout #pageContent,
  body.client-admin-layout #pageContent,
  body.owner-admin-layout #pageContent {
    overflow-y: auto !important;
    min-height: 0 !important;
  }

  body.root-admin-layout #pageContent .overflow-hidden,
  body.client-admin-layout #pageContent .overflow-hidden,
  body.owner-admin-layout #pageContent .overflow-hidden,
  body.root-admin-layout #pageContent .h-100,
  body.client-admin-layout #pageContent .h-100,
  body.owner-admin-layout #pageContent .h-100 {
    height: auto !important;
    overflow: visible !important;
  }
}

.cp-phone-card {
  min-width: 0;
}

.cp-phone-card-actions .btn {
  flex: 0 0 auto;
}

@media (max-width: 1023px) {
  body.root-admin-layout #sidebarMain.sidebar-mobile-expanded,
  body.client-admin-layout #sidebarMain.sidebar-mobile-expanded,
  body.owner-admin-layout #sidebarMain.sidebar-mobile-expanded {
    --sidebar-width: min(18rem, calc(100vw - 3rem));
    width: min(18rem, calc(100vw - 3rem)) !important;
    max-width: 18rem !important;
    overflow: auto !important;
    z-index: 1060 !important;
  }

  body.root-admin-layout #sidebarMain.sidebar-mobile-expanded .nav-sidebar .nav-link > span,
  body.client-admin-layout #sidebarMain.sidebar-mobile-expanded .nav-sidebar .nav-link > span,
  body.owner-admin-layout #sidebarMain.sidebar-mobile-expanded .nav-sidebar .nav-link > span,
  body.root-admin-layout #sidebarMain.sidebar-mobile-expanded .sidebar-resize-hide,
  body.client-admin-layout #sidebarMain.sidebar-mobile-expanded .sidebar-resize-hide,
  body.owner-admin-layout #sidebarMain.sidebar-mobile-expanded .sidebar-resize-hide {
    display: inline !important;
  }

  body.root-admin-layout #sidebarMain.sidebar-mobile-expanded .sidebar-resize-show,
  body.client-admin-layout #sidebarMain.sidebar-mobile-expanded .sidebar-resize-show,
  body.owner-admin-layout #sidebarMain.sidebar-mobile-expanded .sidebar-resize-show {
    display: none !important;
  }
}
