/* COI THEME TEST MARKER v2 */

/* =========================
   Theme tokens
========================= */

:root {
  /* Brand palette (Copper Creek) */
  --copper: #b8743a;
  --brand-navy: #0a1730;
  --brand-slate: #162640;
  --brand-cream: #f3ede4;
  --copper-2: #9f6230;

  /* Default theme = DARK */
  --bg: #071427;
  --panel: #10233f;
  --panel-2: #142945;
  --text: #e9eefc;
  --muted: #a8b3d6;
  --line: rgba(243, 237, 228, 0.12);
  --dropdown-bg: #1f2633;
  --dropdown-bg-soft: #262f3e;

  /* Accent */
  --accent: var(--copper);
  --accent-focus: rgba(184, 116, 58, 0.55);
  --accent-ring: rgba(184, 116, 58, 0.16);
  --accent-tint: rgba(184, 116, 58, 0.16);
  --accent-border: rgba(184, 116, 58, 0.30);

  /* Status */
  --good: #22c55e;
  --warn: #f59e0b;
  --bad:  #ef4444;
  --info: #60a5fa;

  --shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  --radius: 14px;
  --radius-sm: 10px;
  --pad: 18px;

  --font: "Segoe UI", "Avenir Next", "Montserrat", -apple-system, system-ui, sans-serif;
}

/* LIGHT THEME OVERRIDES */
html[data-theme="light"] {
  --bg: #f7f4ef;
  --panel: #ffffff;
  --panel-2: #f1eee9;
  --text: #111827;
  --muted: #5b6475;

  /* Stronger lines for readability */
  --line: rgba(17, 24, 39, 0.28);
  --dropdown-bg: #ffffff;
  --dropdown-bg-soft: #f3f4f6;

  --shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  height: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  position: relative;
  background-color: var(--bg);
  background:
    linear-gradient(180deg, rgba(5, 16, 33, 0.94), rgba(7, 20, 39, 0.98)),
    url("https://cdn.prod.website-files.com/67cc86e0f33090f8e74f4cb4/67cd72f0d7ef6f00f14ee5d8_2215518654f35f40f6f4ca34460762de.png");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text);
}

/* Fixed top-only atmosphere (does not scroll with page content) */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 500px at 10% -8%, rgba(184, 116, 58, 0.30), transparent 62%),
    radial-gradient(1000px 520px at 90% -8%, rgba(22, 38, 64, 0.52), transparent 68%),
    linear-gradient(180deg, rgba(7,20,39,0.45), rgba(7,20,39,0.82));
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(1200px 500px at 10% -8%, rgba(184, 116, 58, 0.20), transparent 62%),
    radial-gradient(1000px 520px at 90% -8%, rgba(17, 24, 39, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(247,244,239,0.75), rgba(247,244,239,0.90));
}

.layout,
.sidebar,
.content {
  position: relative;
  z-index: 1;
}
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Layout
========================= */

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5,16,33,0.88), rgba(10,23,48,0.80));
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  height: 100vh;
}

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(243,237,228,0.88));
}


.sidebar-logo {
  width: 170px;
  height: auto;
  display: block;
  margin-bottom: 12px;
  opacity: 0.95;
}

.content {
  flex: 1;
  padding: 24px;
}

/* =========================
   Sidebar
========================= */

.brand {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  margin-bottom: 18px;
}

html[data-theme="light"] .brand {
  background: rgba(17,24,39,0.02);
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  font-size: 14px;
  color: rgba(233,238,252,0.92);
  display: block;
}

html[data-theme="light"] .nav-link {
  color: rgba(17,24,39,0.88);
  background: rgba(17,24,39,0.03);
}

.nav-link:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  text-decoration: none;
}

html[data-theme="light"] .nav-link:hover {
  background: rgba(17,24,39,0.06);
  border-color: rgba(17,24,39,0.14);
}

.nav-link.active {
  background: var(--accent-tint);
  border-color: var(--accent-border);
}

.sidebar-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-pill {
  font-size: 12px;
  color: var(--muted);
}

/* =========================
   Container
========================= */

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.container-tight {
  padding: 0;
}

/* =========================
   Header
========================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 16px;
}

.title {
  font-size: 22px;
  margin: 0;
}

.subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  color: var(--muted);
}

html[data-theme="light"] .pill {
  background: rgba(17,24,39,0.04);
}

/* =========================
   Panels
========================= */

.panel {
  background: linear-gradient(180deg, rgba(16,35,63,0.72), rgba(10,23,48,0.60));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(243,237,228,0.88));
}

.panel-inner {
  padding: var(--pad);
}

/* =========================
   KPI Grid
========================= */

.grid {
  display: grid;
  gap: 14px;
}

.kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

.kpi {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  transition: all 0.2s ease;
}

html[data-theme="light"] .kpi {
  background: rgba(17,24,39,0.03);
}

.kpi .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.kpi .value {
  font-size: 26px;
  font-weight: 700;
}

/* --- STATUS VARIANTS --- */

.kpi.good {
  outline: 1px solid rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.08);
}

.kpi.warn {
  outline: 1px solid rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.08);
}

.kpi.bad {
  outline: 1px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.08);
}

.kpi.info {
  outline: 1px solid rgba(96,165,250,0.35);
  background: rgba(96,165,250,0.08);
}

.kpi-selected {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset;
}

html[data-theme="light"] .kpi-selected {
  border-color: rgba(17,24,39,0.28);
  box-shadow: 0 0 0 1px rgba(17,24,39,0.10) inset;
}

.kpi-selected-info {
  border-color: rgba(96,165,250,0.45);
  box-shadow: 0 0 0 1px rgba(96,165,250,0.18) inset;
}

.kpi.good .value { color: var(--good); }
.kpi.warn .value { color: var(--warn); }
.kpi.bad  .value { color: var(--bad); }
.kpi.info .value { color: var(--info); }
.kpi.inactive .value { color: #c4b5fd; }

.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

html[data-theme="light"] .kpi:hover {
  box-shadow: 0 8px 24px rgba(17,24,39,0.14);
}

/* =========================
   Table
========================= */

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  max-height: none;
  min-height: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  scrollbar-color: rgba(184, 116, 58, 0.65) rgba(255,255,255,0.05);
  scrollbar-width: auto;
}

.table-wrap::after {
  content: none;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  margin-bottom: 0;
}

thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html[data-theme="light"] thead th {
  background: rgba(17,24,39,0.08);
}

.sort-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.sort-head.right {
  justify-content: flex-end;
  width: 100%;
}

.sort-head:hover {
  color: var(--text);
}

.sort-head.is-active {
  color: var(--text);
}

.sort-indicator {
  width: 8px;
  height: 8px;
  position: relative;
  opacity: 0.45;
}

.sort-indicator::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.sort-indicator.asc::before {
  border-bottom: 6px solid rgba(184, 116, 58, 0.95);
  margin-top: -2px;
}

.sort-indicator.desc::before {
  border-top: 6px solid rgba(184, 116, 58, 0.95);
  margin-top: 2px;
}

.sort-indicator.none::before {
  border-top: 5px solid rgba(255,255,255,0.35);
  margin-top: 2px;
}

html[data-theme="light"] .sort-indicator.none::before {
  border-top-color: rgba(17,24,39,0.35);
}


tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

/* Zebra striping for readability across all data tables */
tbody tr:nth-child(even) {
  background: rgba(96, 165, 250, 0.06);
}

tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

html[data-theme="light"] tbody tr:hover {
  background: rgba(17,24,39,0.07);
}

html[data-theme="light"] tbody tr:nth-child(even) {
  background: rgba(17,24,39,0.035);
}
.right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; }

/* Widen the 3rd column and prevent date wrapping (Dashboard "Expires" column) */
.table-wrap table thead th:nth-child(3),
.table-wrap table tbody td:nth-child(3) {
  white-space: nowrap;
  min-width: 120px;
}

/* =========================
   Status Badges
========================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  background: rgba(255,255,255,0.02);
}

html[data-theme="light"] .badge {
  background: rgba(17,24,39,0.03);
}

.badge.bad  { color: var(--bad);  border-color: rgba(239,68,68,0.25); }
.badge.warn { color: var(--warn); border-color: rgba(245,158,11,0.25); }
.badge.info { color: var(--info); border-color: rgba(96,165,250,0.25); }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.footer-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* =========================
   Mobile
========================= */

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .content {
    padding: 18px;
  }
}

/* =========================
   Polished Header Search
========================= */

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input {
  width: 420px;
  max-width: 55vw;
  min-width: 260px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font);
  font-weight: 500;
}

html[data-theme="light"] .search-input {
  background: rgba(17,24,39,0.04);
}

.search-input:focus {
  border-color: var(--accent-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.search-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
}

html[data-theme="light"] .search-btn {
  background: rgba(17,24,39,0.04);
}

.search-btn:hover {
  background: rgba(255,255,255,0.08);
}

html[data-theme="light"] .search-btn:hover {
  background: rgba(17,24,39,0.07);
}

/* =========================
   Expiration Status Pills
========================= */

.pill.pill-active {
  color: var(--good);
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.12);
}

.pill.pill-expiring {
  color: var(--warn);
  border-color: rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.12);
}

.pill.pill-expired {
  color: var(--bad);
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.12);
}

.pill.pill-missing {
  color: var(--info);
  border-color: rgba(96,165,250,0.35);
  background: rgba(96,165,250,0.12);
}
/* Light theme: increase fill contrast for status pills */
html[data-theme="light"] .pill.pill-active {
  color: #166534;
  border-color: rgba(34,197,94,0.40);
  background: rgba(34,197,94,0.20);
}

html[data-theme="light"] .pill.pill-expiring {
  color: #92400e;
  border-color: rgba(245,158,11,0.42);
  background: rgba(245,158,11,0.22);
}

html[data-theme="light"] .pill.pill-expired {
  color: #991b1b;
  border-color: rgba(239,68,68,0.40);
  background: rgba(239,68,68,0.20);
}

html[data-theme="light"] .pill.pill-missing {
  color: #1d4ed8;
  border-color: rgba(96,165,250,0.44);
  background: rgba(96,165,250,0.22);
}

/* =========================
   Select Dropdown Readability Fix
========================= */

select.search-input {
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 80%, transparent);
}

html[data-theme="light"] select.search-input {
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

select.search-input option {
  background-color: var(--dropdown-bg);
  color: var(--text);
}

html[data-theme="light"] select.search-input option {
  background-color: var(--dropdown-bg);
  color: var(--text);
}

/* =========================
   Tenant Record form control sizing
========================= */

/*
  The create/edit forms (Tenant Record, Vendor Record, etc.) use:
  <form class="search" ... enctype="multipart/form-data">
  and the field wrappers control column width via flex.
  Force the inputs to fill their column and normalize native select/date sizing.
*/
form.search[enctype="multipart/form-data"] .search-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

form.search[enctype="multipart/form-data"] select.search-input,
form.search[enctype="multipart/form-data"] input.search-input[type="date"],
form.search[enctype="multipart/form-data"] input.search-input[type="file"] {
  height: 42px;
  padding: 0 14px;
  line-height: 40px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
}

/* Select needs its own line-height handling */
form.search[enctype="multipart/form-data"] select.search-input {
  line-height: normal;
}

/* Date rendering consistency in Chrome/Windows */
form.search[enctype="multipart/form-data"] input.search-input[type="date"] {
  white-space: nowrap;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  letter-spacing: 0;
}

/* Keep the calendar icon readable (Chrome) */
form.search[enctype="multipart/form-data"] input.search-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.75;
  cursor: pointer;
}

/* ===== File input styling (make "Choose File" look like page buttons) =====
   Note: File inputs are heavily browser-native. This improves Chrome/Edge on Windows.
*/
form.search[enctype="multipart/form-data"] input.search-input[type="file"] {
  padding: 0;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The clickable button part */
form.search[enctype="multipart/form-data"] input.search-input[type="file"]::-webkit-file-upload-button {
  margin: 0 12px 0 0;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover to match .search-btn */
form.search[enctype="multipart/form-data"] input.search-input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(255,255,255,0.08);
}

/* Light theme adjustments for file button */
html[data-theme="light"] form.search[enctype="multipart/form-data"] input.search-input[type="file"]::-webkit-file-upload-button {
  background: rgba(17,24,39,0.04);
}

html[data-theme="light"] form.search[enctype="multipart/form-data"] input.search-input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(17,24,39,0.07);
}

/* =========================
   Upload button typography alignment
========================= */

.search-btn svg {
  width: 16px;
  height: 16px;
}

label.search-btn {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

/* =========================
   Drag/Drop Upload Styles
========================= */

.coi-dropzone,
.coi-dropzone-simple {
  width: 100%;
  min-height: 96px;
  border: 1px dashed rgba(255,255,255,0.24);
  border-radius: 0;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  padding: 10px 12px;
  transition: all 0.18s ease;
}

.coi-dropzone:hover,
.coi-dropzone-simple:hover {
  border-color: var(--accent-focus);
  background: rgba(255,255,255,0.06);
}

.coi-dropzone.dragover,
.coi-dropzone-simple.dragover {
  border-color: var(--accent-focus);
  background: var(--accent-ring);
  color: var(--text);
}

.coi-dropzone:focus,
.coi-dropzone-simple:focus {
  outline: none;
  border-color: var(--accent-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.coi-dropzone-title {
  font-size: 22px;
  color: var(--text);
  opacity: 0.92;
}

.coi-upload-or {
  margin: 10px 0 8px 0;
  text-align: center;
  color: var(--muted);
}

.coi-file-row {
  display: flex;
  justify-content: center;
}

.coi-file-native {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
}

html[data-theme="light"] .coi-dropzone,
html[data-theme="light"] .coi-dropzone-simple {
  border-color: rgba(17,24,39,0.2);
  background: rgba(17,24,39,0.03);
}

html[data-theme="light"] .coi-dropzone:hover,
html[data-theme="light"] .coi-dropzone-simple:hover {
  background: rgba(17,24,39,0.06);
}

/* Custom Coverage Type dropdown */
.coi-select {
  position: relative;
  width: 100%;
}

.coi-select-trigger {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.coi-select-trigger:hover {
  background: rgba(255,255,255,0.06);
}

.coi-select.open .coi-select-trigger,
.coi-select-trigger:focus {
  outline: none;
  border-color: var(--accent-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.coi-select-chevron {
  opacity: 0.85;
  font-size: 13px;
  line-height: 1;
}

.coi-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--dropdown-bg);
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow-y: auto;
  -ms-overflow-style: none; /* IE/Edge legacy */
  scrollbar-width: none; /* Firefox */
  display: none;
  z-index: 40;
}

.coi-select-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.coi-select.open .coi-select-menu {
  display: block;
}

.coi-select-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
}
.coi-select-menu .coi-select-option:nth-child(even) {
  background: rgba(96, 165, 250, 0.06);
}

.coi-select-option:hover,
.coi-select-option.is-active {
  background: var(--dropdown-bg-soft);
}

html[data-theme="light"] .coi-select-trigger {
  background: rgba(17,24,39,0.04);
}

html[data-theme="light"] .coi-select-menu {
  background: var(--dropdown-bg);
}

html[data-theme="light"] .coi-select-option {
  color: var(--text);
}
html[data-theme="light"] .coi-select-menu .coi-select-option:nth-child(even) {
  background: rgba(17,24,39,0.035);
}

html[data-theme="light"] .coi-select-option:hover,
html[data-theme="light"] .coi-select-option.is-active {
  background: var(--dropdown-bg-soft);
}

/* Tenant/Vendor record coverage dropdown: explicit non-blue menu styling */
#coverage-select-menu {
  background: var(--dropdown-bg);
}

#coverage-select-menu .coi-select-option {
  color: var(--text);
}

#coverage-select-menu .coi-select-option:hover,
#coverage-select-menu .coi-select-option.is-active {
  background: var(--dropdown-bg-soft);
}

html[data-theme="light"] #coverage-select-menu {
  background: var(--dropdown-bg);
}


/* Property filter menu: hide scrollbar but keep scroll behavior */
#property-filter-select-menu {
  max-height: 500px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#property-filter-select-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}












/* Table scrollbars: match copper theme */
.table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 14px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(184, 116, 58, 0.65);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 116, 58, 0.82);
  background-clip: padding-box;
}

html[data-theme="light"] .table-wrap {
  scrollbar-color: rgba(184, 116, 58, 0.52) rgba(17,24,39,0.08);
}

.table-wrap::after {
  content: none;
}

html[data-theme="light"] .table-wrap::-webkit-scrollbar-track {
  background: rgba(17,24,39,0.08);
}

html[data-theme="light"] .table-wrap::-webkit-scrollbar-thumb {
  background: rgba(184, 116, 58, 0.52);
  background-clip: padding-box;
}

/* Tenant/Vendor record notice log: compact, no inner scrollbar */
.notice-history-table-wrap {
  max-height: 170px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.notice-history-table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}








/* Single-scroll table pages (avoid double scrollbars) */
.content {
  min-height: 100vh;
}

.table-page {
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.table-page .table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.table-page .header,
.table-page .grid,
.table-page > div[style*="height: 14px"],
.table-page .panel:not(.table-wrap) {
  flex: 0 0 auto;
}

/* Property Setup should use natural page flow (not fixed viewport split). */
.property-roster-page {
  height: auto;
  min-height: 0;
  display: block;
  overflow: visible;
}

.property-roster-page .table-wrap {
  flex: 0 0 auto;
}

.property-roster-page .property-roster-workspace-panel {
  border-color: var(--line);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel) 82%, transparent),
    color-mix(in srgb, var(--panel-2) 92%, transparent)
  );
}

/* Collapsible setup sections for smaller screens/workflows. */
.setup-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.setup-section-summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid transparent;
  user-select: none;
}

.setup-section-summary::-webkit-details-marker {
  display: none;
}

.setup-section-summary-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.setup-section-summary-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.18;
}

.setup-section-summary-subtitle {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.setup-section-summary-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.setup-section-summary-icon::before {
  content: "\25BC";
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  color: var(--muted);
  transform: translateY(1px) scaleX(0.9) rotate(0deg);
  transition: transform 0.2s ease;
}

.setup-section[open] .setup-section-summary {
  border-bottom-color: var(--line);
}

.setup-section[open] .setup-section-summary-icon::before {
  transform: translateY(1px) scaleX(0.9) rotate(180deg);
}

.setup-section-body {
  padding: 12px;
}

.setup-section-body >  .panel {
  margin-bottom: 0 !important;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

@media (max-width: 720px) {
  .setup-section-summary {
    padding: 10px 12px;
  }

  .setup-section-summary-title {
    font-size: 16px;
  }

  .setup-section-summary-subtitle {
    font-size: 11px;
  }
}

/* Light theme: focused KPI card contrast improvements */
html[data-theme="light"] .kpi {
  background: rgba(17,24,39,0.05);
  border-color: rgba(17,24,39,0.20);
}

html[data-theme="light"] .kpi.good {
  outline: 1px solid rgba(34,197,94,0.44);
  background: rgba(34,197,94,0.18);
}

html[data-theme="light"] .kpi.warn {
  outline: 1px solid rgba(245,158,11,0.44);
  background: rgba(245,158,11,0.18);
}

html[data-theme="light"] .kpi.bad {
  outline: 1px solid rgba(239,68,68,0.44);
  background: rgba(239,68,68,0.18);
}

html[data-theme="light"] .kpi.info {
  outline: 1px solid rgba(96,165,250,0.48);
  background: rgba(96,165,250,0.18);
}



/* Dashboard expiration window input */
.exp-window-input {
  -moz-appearance: textfield;
  appearance: textfield;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0;
}

.exp-window-input::-webkit-outer-spin-button,
.exp-window-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.exp-window-input:focus {
  border-color: var(--accent-focus) !important;
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Dashboard search input should feel like regular text, not bold */
.dashboard-search-input,
.dashboard-search-input::placeholder {
  font-weight: 400;
}

/* Dashboard predictive search dropdown */
.dashboard-search-wrap,
.predictive-wrap {
  position: relative;
  width: 420px;
  max-width: 55vw;
  min-width: 260px;
}

.dashboard-search-wrap .dashboard-search-input,
.predictive-wrap .search-input {
  width: 100%;
  max-width: 100%;
}

.dashboard-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.dashboard-search-menu,
.predictive-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--dropdown-bg);
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  display: none;
  z-index: 50;
}

.dashboard-search-menu.open,
.predictive-menu.open {
  display: block;
}

.dashboard-search-option,
.predictive-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  text-align: left;
  padding: 11px 14px;
  cursor: pointer;
}
.dashboard-search-menu .dashboard-search-option:nth-child(even),
.predictive-menu .predictive-option:nth-child(even) {
  background: rgba(96, 165, 250, 0.06);
}

.dashboard-search-option:hover,
.dashboard-search-option:focus,
.predictive-option:hover,
.predictive-option:focus,
.dashboard-search-option.is-active,
.predictive-option.is-active {
  background: var(--dropdown-bg-soft);
  outline: none;
}

.dashboard-search-menu::-webkit-scrollbar,
.predictive-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html[data-theme="light"] .dashboard-search-menu,
html[data-theme="light"] .predictive-menu {
  background: var(--dropdown-bg);
}

html[data-theme="light"] .dashboard-search-option,
html[data-theme="light"] .predictive-option {
  color: var(--text);
}
html[data-theme="light"] .dashboard-search-menu .dashboard-search-option:nth-child(even),
html[data-theme="light"] .predictive-menu .predictive-option:nth-child(even) {
  background: rgba(17,24,39,0.035);
}

html[data-theme="light"] .dashboard-search-option:hover,
html[data-theme="light"] .dashboard-search-option:focus,
html[data-theme="light"] .predictive-option:hover,
html[data-theme="light"] .predictive-option:focus,
html[data-theme="light"] .dashboard-search-option.is-active,
html[data-theme="light"] .predictive-option.is-active {
  background: var(--dropdown-bg-soft);
}














/* Vendor inactive KPI + pill */
.kpi.inactive {
  outline: 1px solid rgba(168,85,247,0.45);
  background: rgba(168,85,247,0.12);
}

.pill.pill-inactive {
  color: #d8b4fe;
  border-color: rgba(168,85,247,0.45);
  background: rgba(168,85,247,0.16);
}

html[data-theme="light"] .pill.pill-inactive {
  color: #6b21a8;
  border-color: rgba(168,85,247,0.45);
  background: rgba(168,85,247,0.22);
}


/* Vendor directory import upload pill */
.vendor-file-pill {
  width: 280px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  cursor: pointer;
  user-select: none;
}

.vendor-file-pill-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.vendor-file-pill-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.95;
}

.pager-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pager-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.pager-btn,
.pager-num {
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.pager-btn {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

.pager-btn-next {
  background: rgba(255,255,255,0.10);
}

.pager-num {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.pager-num:hover,
.pager-btn:hover {
  background: rgba(255,255,255,0.08);
}

.pager-num.is-current {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.12);
}

.pager-ellipsis {
  color: var(--muted);
  font-size: 12px;
  padding: 0 4px;
}

.pager-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pager-meta {
  margin-left: auto;
}

html[data-theme="light"] .pager-bar {
  background: rgba(17,24,39,0.04);
}

html[data-theme="light"] .pager-btn,
html[data-theme="light"] .pager-num.is-current {
  background: rgba(17,24,39,0.06);
}

html[data-theme="light"] .pager-num:hover,
html[data-theme="light"] .pager-btn:hover {
  background: rgba(17,24,39,0.10);
}

/* Keep Next Action column width stable across pages */
.next-action-col {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  white-space: nowrap;
}

.next-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  min-width: 132px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-action-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.next-action-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.34);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18) inset;
}

.next-action-dot.is-sent { background: rgba(34,197,94,0.92); }
.next-action-dot.is-failed { background: rgba(239,68,68,0.92); }
.next-action-dot.is-replied { background: rgba(245,158,11,0.92); }
.next-action-dot.is-resolved { background: rgba(59,130,246,0.92); }
.next-action-dot.is-neutral { background: rgba(148,163,184,0.78); }
.next-action-dot.is-pending { background: rgba(239,68,68,0.92); }
.next-action-dot.is-followup-scheduled {
  background: rgba(245,158,11,0.95);
  box-shadow: 0 0 0 2px rgba(245,158,11,0.24);
}
.next-action-dot.is-due {
  background: rgba(239,68,68,0.96);
  box-shadow: 0 0 0 2px rgba(239,68,68,0.25);
}

.table-wrap tbody td.next-action-col {
  text-align: center;
}











.kpi.exempt {
  outline: 1px solid rgba(168,85,247,0.58);
  background: rgba(168,85,247,0.18);
}

.kpi.exempt .value {
  color: #c4b5fd;
}

.pill.pill-exempt {
  color: #d8b4fe;
  border-color: rgba(168,85,247,0.56);
  background: rgba(168,85,247,0.26);
}

html[data-theme="light"] .pill.pill-exempt {
  color: #6b21a8;
  border-color: rgba(168,85,247,0.50);
  background: rgba(168,85,247,0.24);
}






/* =========================
   Brand Preview Variants (opt-in via ?brand_preview=1&brand_variant=a|b|c)
   Keeps status pills/kpi colors unchanged.
========================= */

body.brand-preview {
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

body.brand-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.brand-preview .layout,
body.brand-preview .sidebar,
body.brand-preview .content {
  position: relative;
  z-index: 1;
}

body.brand-preview .sidebar {
  border-right-color: rgba(235, 245, 255, 0.16);
  backdrop-filter: blur(10px);
}

/* Logo card: clean frame (no corner/halo glow) */
body.brand-preview .brand {
  position: relative;
  overflow: hidden;
  border-color: rgba(148,163,184,0.36);
  background: linear-gradient(180deg, rgba(9,17,31,0.82), rgba(8,15,28,0.76));
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

body.brand-preview .brand::before {
  display: none;
}

body.brand-preview .brand > * {
  position: relative;
  z-index: 1;
}

body.brand-preview .sidebar-logo {
  width: 160px;
  margin: 2px auto 12px auto;
  opacity: 0.96;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}

html[data-theme="light"] body.brand-preview .sidebar-logo {
  opacity: 0.92;
  filter: grayscale(1) brightness(1.42) contrast(0.9);
}

body.brand-preview .panel {
  border-color: rgba(235, 245, 255, 0.14);
  backdrop-filter: blur(12px);
}

body.brand-preview .title {
  letter-spacing: 0.2px;
}

/* Shared sidebar/nav/logo styling for textured preview family */
body.brand-preview .sidebar {
  background: linear-gradient(180deg, rgba(15,16,20,0.93), rgba(10,11,14,0.90));
  border-right-color: rgba(255,255,255,0.10);
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.08);
}

body.brand-preview .brand {
  background: linear-gradient(180deg, rgba(22,24,29,0.96), rgba(14,15,19,0.94));
  border-color: rgba(148,163,184,0.22);
  box-shadow: 0 12px 24px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.04);
}

body.brand-preview .sidebar-logo {
  opacity: 0.96;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}

body.brand-preview .brand-subtitle {
  color: rgba(230,214,197,0.88);
}

body.brand-preview .nav-link {
  background: rgba(255,255,255,0.015);
  border-color: rgba(148,163,184,0.10);
  color: rgba(226,232,240,0.92);
}

body.brand-preview .nav-link:hover {
  background: rgba(255,255,255,0.050);
  border-color: rgba(148,163,184,0.26);
}

body.brand-preview .nav-link.active {
  background: linear-gradient(180deg, rgba(184,116,58,0.22), rgba(184,116,58,0.12));
  border-color: rgba(184,116,58,0.50);
  color: #f3e6d8;
  box-shadow: inset 0 0 0 1px rgba(184,116,58,0.16);
}

body.brand-preview .sidebar-footer {
  border-top-color: rgba(255,255,255,0.12);
}

/* Variant A: Charcoal Weave */
body.brand-preview.brand-variant-a {
  background:
    radial-gradient(1100px 500px at 50% -14%, rgba(255,255,255,0.10), transparent 62%),
    repeating-linear-gradient(130deg, rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(50deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 22px),
    linear-gradient(180deg, rgba(12,14,19,0.99), rgba(22,25,31,0.99));
}

body.brand-preview.brand-variant-a::before {
  background:
    linear-gradient(180deg, rgba(4,6,10,0.24), rgba(6,8,12,0.72));
}

body.brand-preview.brand-variant-a .panel {
  background: linear-gradient(180deg, rgba(39,45,58,0.62), rgba(26,30,40,0.58));
}

body.brand-preview.brand-variant-a .title { color: #f1f5f9; }

/* Variant B: Brushed Graphite */
body.brand-preview.brand-variant-b {
  background:
    radial-gradient(1200px 520px at 52% -16%, rgba(255,255,255,0.08), transparent 64%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0px, rgba(255,255,255,0.045) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(8deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 18px),
    linear-gradient(180deg, rgba(9,11,14,0.99), rgba(18,21,26,0.99));
}

body.brand-preview.brand-variant-b::before {
  background:
    linear-gradient(180deg, rgba(3,5,8,0.28), rgba(7,9,12,0.72));
}

body.brand-preview.brand-variant-b .panel {
  background: linear-gradient(180deg, rgba(35,42,53,0.64), rgba(23,28,36,0.60));
}

body.brand-preview.brand-variant-b .title { color: #e5e7eb; }

/* Variant C: Scratched Slate */
body.brand-preview.brand-variant-c {
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(255,255,255,0.10), transparent 62%),
    repeating-linear-gradient(128deg, rgba(255,255,255,0.030) 0px, rgba(255,255,255,0.030) 1px, transparent 1px, transparent 16px),
    repeating-linear-gradient(52deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0px, rgba(0,0,0,0.22) 1px, transparent 1px, transparent 34px),
    linear-gradient(180deg, rgba(11,12,14,0.99), rgba(23,24,28,0.99));
}

body.brand-preview.brand-variant-c::before {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255,255,255,0.08), transparent 62%),
    linear-gradient(180deg, rgba(5,6,8,0.26), rgba(8,9,12,0.72));
}

body.brand-preview.brand-variant-c .panel {
  background: linear-gradient(180deg, rgba(45,45,54,0.62), rgba(27,27,34,0.58));
}

body.brand-preview.brand-variant-c .title { color: #f8fafc; }
/* Variant C1: Soft Slate */
body.brand-preview.brand-variant-c1 {
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(255,255,255,0.12), transparent 64%),
    repeating-linear-gradient(128deg, rgba(255,255,255,0.020) 0px, rgba(255,255,255,0.020) 1px, transparent 1px, transparent 19px),
    repeating-linear-gradient(52deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 26px),
    linear-gradient(180deg, rgba(13,14,18,0.99), rgba(24,26,31,0.99));
}

body.brand-preview.brand-variant-c1::before {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255,255,255,0.09), transparent 64%),
    linear-gradient(180deg, rgba(5,6,8,0.22), rgba(8,9,12,0.66));
}

body.brand-preview.brand-variant-c1 .panel {
  background: linear-gradient(180deg, rgba(46,47,56,0.58), rgba(28,29,36,0.54));
}

body.brand-preview.brand-variant-c1 .title { color: #f8fafc; }

/* Variant C2: Crosshatch Steel */
body.brand-preview.brand-variant-c2 {
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(255,255,255,0.11), transparent 62%),
    repeating-linear-gradient(128deg, rgba(255,255,255,0.032) 0px, rgba(255,255,255,0.032) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(52deg, rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.20) 0px, rgba(0,0,0,0.20) 1px, transparent 1px, transparent 28px),
    linear-gradient(180deg, rgba(10,11,13,0.99), rgba(22,24,29,0.99));
}

body.brand-preview.brand-variant-c2::before {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(5,6,8,0.28), rgba(8,9,12,0.74));
}

body.brand-preview.brand-variant-c2 .panel {
  background: linear-gradient(180deg, rgba(43,44,53,0.64), rgba(26,27,34,0.60));
}

body.brand-preview.brand-variant-c2 .title { color: #f8fafc; }

/* Variant C3: Smoked Metal */
body.brand-preview.brand-variant-c3 {
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(255,255,255,0.09), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.030) 0px, rgba(255,255,255,0.030) 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(6deg, rgba(255,255,255,0.014) 0px, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 20px),
    linear-gradient(180deg, rgba(10,11,14,0.99), rgba(20,22,27,0.99));
}

body.brand-preview.brand-variant-c3::before {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255,255,255,0.08), transparent 62%),
    linear-gradient(180deg, rgba(5,6,8,0.26), rgba(8,9,12,0.72));
}

body.brand-preview.brand-variant-c3 .panel {
  background: linear-gradient(180deg, rgba(42,44,52,0.62), rgba(25,27,33,0.58));
}

body.brand-preview.brand-variant-c3 .title { color: #f8fafc; }

/* Paired light themes */
html[data-theme="light"] body.brand-preview .sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(243,244,246,0.95));
  border-right-color: rgba(148,163,184,0.22);
}

html[data-theme="light"] body.brand-preview .brand {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,246,249,0.96));
  border-color: rgba(100,116,139,0.24);
  box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}

html[data-theme="light"] body.brand-preview .sidebar-logo {
  opacity: 0.95;
  filter: drop-shadow(0 3px 8px rgba(15,23,42,0.18));
}

html[data-theme="light"] body.brand-preview .brand-subtitle {
  color: rgba(92,64,39,0.88);
}

html[data-theme="light"] body.brand-preview .nav-link {
  background: rgba(51,65,85,0.04);
  border-color: rgba(100,116,139,0.14);
  color: rgba(30,41,59,0.92);
}

html[data-theme="light"] body.brand-preview .nav-link:hover {
  background: rgba(51,65,85,0.08);
  border-color: rgba(100,116,139,0.24);
}

html[data-theme="light"] body.brand-preview .nav-link.active {
  background: linear-gradient(180deg, rgba(184,116,58,0.16), rgba(184,116,58,0.10));
  border-color: rgba(184,116,58,0.42);
  color: #5a3418;
}

html[data-theme="light"] body.brand-preview.brand-variant-a {
  background:
    radial-gradient(1100px 500px at 50% -14%, rgba(255,255,255,0.74), transparent 62%),
    repeating-linear-gradient(130deg, rgba(148,163,184,0.10) 0px, rgba(148,163,184,0.10) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(50deg, rgba(148,163,184,0.06) 0px, rgba(148,163,184,0.06) 1px, transparent 1px, transparent 22px),
    linear-gradient(180deg, rgba(247,248,250,0.99), rgba(239,241,244,0.99));
}

html[data-theme="light"] body.brand-preview.brand-variant-a::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(226,232,240,0.48));
}

html[data-theme="light"] body.brand-preview.brand-variant-a .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,241,241,0.94));
}

html[data-theme="light"] body.brand-preview.brand-variant-b {
  background:
    radial-gradient(1200px 520px at 52% -16%, rgba(255,255,255,0.72), transparent 64%),
    repeating-linear-gradient(0deg, rgba(148,163,184,0.12) 0px, rgba(148,163,184,0.12) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(8deg, rgba(148,163,184,0.06) 0px, rgba(148,163,184,0.06) 1px, transparent 1px, transparent 18px),
    linear-gradient(180deg, rgba(247,248,250,0.99), rgba(238,240,243,0.99));
}

html[data-theme="light"] body.brand-preview.brand-variant-b::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(226,232,240,0.50));
}

html[data-theme="light"] body.brand-preview.brand-variant-b .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,241,241,0.94));
}

html[data-theme="light"] body.brand-preview.brand-variant-c {
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(255,255,255,0.70), transparent 62%),
    repeating-linear-gradient(128deg, rgba(148,163,184,0.12) 0px, rgba(148,163,184,0.12) 1px, transparent 2px, transparent 16px),
    repeating-linear-gradient(52deg, rgba(148,163,184,0.08) 0px, rgba(148,163,184,0.08) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(0deg, rgba(100,116,139,0.08) 0px, rgba(100,116,139,0.08) 1px, transparent 1px, transparent 34px),
    linear-gradient(180deg, rgba(247,248,250,0.99), rgba(239,241,244,0.99));
}

html[data-theme="light"] body.brand-preview.brand-variant-c::before {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255,255,255,0.56), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.20), rgba(226,232,240,0.48));
}

html[data-theme="light"] body.brand-preview.brand-variant-c .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,241,241,0.94));
}
html[data-theme="light"] body.brand-preview.brand-variant-c1 {
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(255,255,255,0.72), transparent 64%),
    repeating-linear-gradient(128deg, rgba(148,163,184,0.19) 0px, rgba(148,163,184,0.19) 1px, transparent 1px, transparent 19px),
    repeating-linear-gradient(52deg, rgba(148,163,184,0.15) 0px, rgba(148,163,184,0.15) 1px, transparent 1px, transparent 26px),
    linear-gradient(180deg, rgba(247,248,250,0.99), rgba(239,241,244,0.99));
}

html[data-theme="light"] body.brand-preview.brand-variant-c1::before {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255,255,255,0.58), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(226,232,240,0.42));
}

html[data-theme="light"] body.brand-preview.brand-variant-c1 .panel,
html[data-theme="light"] body.brand-preview.brand-variant-c2 .panel,
html[data-theme="light"] body.brand-preview.brand-variant-c3 .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,241,241,0.94));
}

html[data-theme="light"] body.brand-preview.brand-variant-c2 {
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(255,255,255,0.72), transparent 62%),
    repeating-linear-gradient(128deg, rgba(148,163,184,0.12) 0px, rgba(148,163,184,0.12) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(52deg, rgba(148,163,184,0.08) 0px, rgba(148,163,184,0.08) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, rgba(100,116,139,0.08) 0px, rgba(100,116,139,0.08) 1px, transparent 1px, transparent 28px),
    linear-gradient(180deg, rgba(247,248,250,0.99), rgba(239,241,244,0.99));
}

html[data-theme="light"] body.brand-preview.brand-variant-c2::before {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255,255,255,0.56), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.20), rgba(226,232,240,0.48));
}

html[data-theme="light"] body.brand-preview.brand-variant-c3 {
  background:
    radial-gradient(1200px 520px at 50% -12%, rgba(255,255,255,0.70), transparent 62%),
    repeating-linear-gradient(0deg, rgba(148,163,184,0.10) 0px, rgba(148,163,184,0.10) 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(6deg, rgba(148,163,184,0.06) 0px, rgba(148,163,184,0.06) 1px, transparent 1px, transparent 20px),
    linear-gradient(180deg, rgba(247,248,250,0.99), rgba(239,241,244,0.99));
}

html[data-theme="light"] body.brand-preview.brand-variant-c3::before {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255,255,255,0.56), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.20), rgba(226,232,240,0.48));
}


/* C1 polish: stronger KPI/pill presence (+~4-5% opacity) */
body.brand-preview.brand-variant-c1 .kpi.good { background: rgba(34,197,94,0.13); outline-color: rgba(34,197,94,0.40); }
body.brand-preview.brand-variant-c1 .kpi.warn { background: rgba(245,158,11,0.13); outline-color: rgba(245,158,11,0.40); }
body.brand-preview.brand-variant-c1 .kpi.bad  { background: rgba(239,68,68,0.13); outline-color: rgba(239,68,68,0.40); }
body.brand-preview.brand-variant-c1 .kpi.info { background: rgba(96,165,250,0.13); outline-color: rgba(96,165,250,0.40); }
body.brand-preview.brand-variant-c1 .kpi.inactive,
body.brand-preview.brand-variant-c1 .kpi.exempt { background: rgba(168,85,247,0.23); }

body.brand-preview.brand-variant-c1 .pill.pill-active   { background: rgba(34,197,94,0.15); }
body.brand-preview.brand-variant-c1 .pill.pill-expiring { background: rgba(245,158,11,0.15); }
body.brand-preview.brand-variant-c1 .pill.pill-expired  { background: rgba(239,68,68,0.15); }
body.brand-preview.brand-variant-c1 .pill.pill-missing  { background: rgba(96,165,250,0.15); }
body.brand-preview.brand-variant-c1 .pill.pill-inactive { background: rgba(168,85,247,0.19); }
body.brand-preview.brand-variant-c1 .pill.pill-exempt   { background: rgba(168,85,247,0.29); }

html[data-theme="light"] body.brand-preview.brand-variant-c1 .kpi.good { background: rgba(34,197,94,0.23); }
html[data-theme="light"] body.brand-preview.brand-variant-c1 .kpi.warn { background: rgba(245,158,11,0.23); }
html[data-theme="light"] body.brand-preview.brand-variant-c1 .kpi.bad  { background: rgba(239,68,68,0.23); }
html[data-theme="light"] body.brand-preview.brand-variant-c1 .kpi.info { background: rgba(96,165,250,0.23); }
html[data-theme="light"] body.brand-preview.brand-variant-c1 .kpi.inactive,
html[data-theme="light"] body.brand-preview.brand-variant-c1 .kpi.exempt { background: rgba(168,85,247,0.23); }

html[data-theme="light"] body.brand-preview.brand-variant-c1 .pill.pill-active   { background: rgba(34,197,94,0.22); }
html[data-theme="light"] body.brand-preview.brand-variant-c1 .pill.pill-expiring { background: rgba(245,158,11,0.24); }
html[data-theme="light"] body.brand-preview.brand-variant-c1 .pill.pill-expired  { background: rgba(239,68,68,0.22); }
html[data-theme="light"] body.brand-preview.brand-variant-c1 .pill.pill-missing  { background: rgba(96,165,250,0.24); }
html[data-theme="light"] body.brand-preview.brand-variant-c1 .pill.pill-inactive { background: rgba(168,85,247,0.24); }
html[data-theme="light"] body.brand-preview.brand-variant-c1 .pill.pill-exempt   { background: rgba(168,85,247,0.26); }

/* C1 light readability refinements */
html[data-theme="light"] body.brand-preview.brand-variant-c1 .title {
  color: #4b5563;
}

html[data-theme="light"] body.brand-preview.brand-variant-c1 .kpi.inactive .value,
html[data-theme="light"] body.brand-preview.brand-variant-c1 .kpi.exempt .value {
  color: #6d28d9;
}

html[data-theme="light"] body.brand-preview.brand-variant-c1 .brand-subtitle {
  color: rgba(75,85,99,0.92);
}
/* Preview badge */
.brand-preview-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1400;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(15,23,42,0.78);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}

body.brand-preview.brand-variant-a .brand-preview-badge {
  background: rgba(30,41,59,0.92);
  border-color: rgba(148,163,184,0.62);
}

body.brand-preview.brand-variant-b .brand-preview-badge {
  background: rgba(8,47,73,0.92);
  border-color: rgba(56,189,248,0.62);
}

body.brand-preview.brand-variant-c .brand-preview-badge,
body.brand-preview.brand-variant-c1 .brand-preview-badge,
body.brand-preview.brand-variant-c2 .brand-preview-badge,
body.brand-preview.brand-variant-c3 .brand-preview-badge {
  background: rgba(38,38,45,0.92);
  border-color: rgba(163,163,163,0.62);
}













/* Property Setup layout refinements */
.property-roster-workspace {
  margin-bottom: 14px;
}

.property-roster-workspace-inner {
  padding: 12px;
}

.property-roster-workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(300px, 1.35fr);
  gap: 12px;
  align-items: start;
}

.workspace-heading {
  margin: 0 0 8px 2px;
  font-weight: 700;
  color: var(--text);
}

.property-list-add-form {
  width: 100%;
  gap: 10px;
  margin: 0 0 10px 0;
}

.property-list-add-form .search-input {
  flex: 1 1 auto;
  min-width: 220px;
}

.property-list-table-wrap {
  max-height: 180px;
  margin-top: 0;
}

.property-list-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

.property-list-action-col {
  width: 120px;
}

.property-remove-form {
  margin: 0;
}

.property-remove-form .search-btn {
  padding: 8px 12px;
}

.suite-entry-panel {
  min-height: 100%;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.workspace-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.workspace-pill {
  border-radius: 999px;
}

#property-add-form {
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 14px;
  row-gap: 14px;
  column-gap: 12px;
}

#property-add-form .predictive-wrap,
#property-add-form input[name="tenant_name"],
#property-add-form input[name="tenant_email"] {
  flex: 1 1 320px;
  min-width: 260px;
}

#property-add-form input[name="suite"],
#property-add-form #occupancy-select {
  flex: 1 1 180px;
  min-width: 160px;
}

#property-add-form #property-filter-select {
  flex: 0 0 220px;
  min-width: 220px;
}

#property-add-form .search-btn[type="submit"] {
  flex: 0 0 auto;
}

#property-add-form > div[style*="flex-basis: 100%"] {
  flex-basis: 100%;
  height: 2px;
}

html[data-theme="light"] .suite-entry-panel {
  border-left-color: rgba(17,24,39,0.16);
}

@media (max-width: 980px) {
  .property-roster-workspace-grid {
    grid-template-columns: 1fr;
  }

  .suite-entry-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding-left: 0;
    padding-top: 10px;
  }

  #property-add-form .search-btn[type="submit"],
  #property-add-form #property-filter-select {
    flex: 1 1 220px;
    min-width: 180px;
  }
}


/* Property Setup class-only cleanup */
.property-list-input {
  flex: 1 1 auto;
  min-width: 220px;
}

.property-list-add-btn {
  flex: 0 0 auto;
}

.suite-entry-note {
  margin: 0 0 8px 2px;
}

.dup-error-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px 0;
}

.dup-error-pill {
  border-radius: 10px;
  margin: 0;
  gap: 8px;
}

.dup-error-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.9;
}

.property-name-input {
  width: 100%;
  max-width: 100%;
}

.property-form-field-suite,
.property-form-field-occupancy {
  flex: 1 1 180px;
  min-width: 160px;
}

.property-form-field-wide {
  flex: 1 1 320px;
  min-width: 260px;
}

.property-form-field-filter {
  flex: 0 0 220px;
  min-width: 220px;
}

.property-form-add-btn {
  flex: 0 0 auto;
}

.property-form-break {
  flex-basis: 100%;
  height: 2px;
}

.table-panel-inner {
  padding: 0;
}

.property-row-clickable {
  cursor: pointer;
}

/* Property Setup: property-first + modal workflow */
.property-roster-page {
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.property-roster-header {
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.property-roster-shell {
  flex: 1 1 auto;
  min-height: 0;
}

.property-roster-shell-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 12px;
}

.property-roster-toolbar {
  display: grid;
  gap: 8px;
}

.property-list-add-form {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
}

.property-list-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.property-list-add-btn {
  white-space: nowrap;
}

.property-list-note {
  margin: 0;
}

.property-list-frame {
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.property-list-frame table {
  min-width: 0;
}

.property-list-action-col {
  width: 140px;
  white-space: nowrap;
}

.property-list-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.property-open-btn,
.property-remove-btn {
  width: 100%;
  justify-content: center;
  display: inline-flex;
}

.property-remove-form {
  margin: 0;
}

.property-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
}

.property-modal.is-open {
  display: block;
}

.property-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 16, 0.62);
}

html[data-theme="light"] .property-modal-backdrop {
  background: rgba(15, 23, 42, 0.28);
}

.property-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1220px, calc(100vw - 32px));
  height: min(86vh, 860px);
  margin: 0;
}

.property-modal-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  padding: 12px;
}

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

.property-modal-title {
  font-size: 20px;
  margin: 0;
}

.property-modal-subtitle {
  margin-top: 4px;
}

.property-modal-close {
  text-decoration: none;
}

.dup-error-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.dup-error-pill {
  border-radius: 10px;
  margin: 0;
  gap: 8px;
}

.property-add-form {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(130px, 175px) minmax(110px, 150px) minmax(240px, 1fr) minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

/* Override global .search-input min-width so grid columns control widths correctly */
.property-add-form .search-input,
.property-add-form .cc-gs-trigger {
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
}

.property-form-field-suite,
.property-form-field-occupancy,
.property-form-field-wide {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Keep occupancy control compact so it never crowds Tenant Name field */
.property-add-form .property-form-field-occupancy {
  min-width: 110px;
  max-width: 150px;
  width: 100%;
}

.property-add-form .cc-gs.property-form-field-occupancy {
  min-width: 110px;
  max-width: 150px;
  width: 100%;
}

.property-form-add-btn {
  white-space: nowrap;
}

.property-modal-table-wrap {
  min-height: 0;
  height: 100%;
  overflow: auto;
}

.property-modal-table-wrap table {
  min-width: 900px;
}

.property-row-clickable {
  cursor: pointer;
}

@media (max-width: 980px) {
  .property-roster-shell-inner {
    padding: 10px;
  }

  .property-list-add-form {
    grid-template-columns: 1fr;
  }

  .property-modal-card {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .property-modal-inner {
    grid-template-rows: auto auto auto 1fr;
    padding: 10px;
  }

  .property-add-form {
    grid-template-columns: 1fr 1fr;
  }

  .property-form-add-btn {
    grid-column: 1 / -1;
  }
}

/* Property Setup layout badge */
.property-layout-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  vertical-align: middle;
}

/* Canonical table geometry parity (Tenant Insurance + Property Setup) */
:root {
  --db-frame-max-width: 1360px;
  --db-visible-rows: 16;
  --db-head-h: 40px;
  --db-row-h: 52px;
}

body .content .db-standard {
  max-width: var(--db-frame-max-width) !important;
  width: 100% !important;
}

body .content .db-standard .header {
  margin-bottom: 16px !important;
}

body .content .db-standard .kpis,
body .content .db-standard.property-roster-page .property-roster-kpis {
  margin-bottom: 0 !important;
}

body .content .db-standard.property-roster-page .property-roster-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
  body .content .db-standard.property-roster-page .property-roster-kpis {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 680px) {
  body .content .db-standard.property-roster-page .property-roster-kpis {
    grid-template-columns: 1fr !important;
  }
}

/* Keep Property Setup in natural page flow like Tenant page frame */
body .content .db-standard.property-roster-page {
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  overflow: visible !important;
}

/* Keep pagination hidden as currently implemented */
.pager-bar,
.pager-meta {
  display: none !important;
}

.pager-wrap {
  margin-top: 0 !important;
}

body .content .db-standard .dashboard-table-wrap,
body .content .db-standard .property-setup-table-wrap {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(var(--db-head-h) + (var(--db-visible-rows) * var(--db-row-h)) + 2px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body .content .db-standard .dashboard-table-wrap .panel-inner,
body .content .db-standard .property-setup-table-wrap .panel-inner {
  padding: 0 !important;
}

body .content .db-standard .dashboard-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  table-layout: fixed !important;
}

body .content .db-standard .dashboard-table thead th,
body .content .db-standard .dashboard-table thead tr {
  height: var(--db-head-h) !important;
  min-height: var(--db-head-h) !important;
  max-height: var(--db-head-h) !important;
  box-sizing: border-box !important;
}

body .content .db-standard .dashboard-table tbody tr,
body .content .db-standard .dashboard-table tbody td {
  height: var(--db-row-h) !important;
  min-height: var(--db-row-h) !important;
  max-height: var(--db-row-h) !important;
  box-sizing: border-box !important;
}

/* Prevent row-height drift from wrapped content */
body .content .db-standard .dashboard-table th,
body .content .db-standard .dashboard-table td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Tenant Insurance table geometry baseline */
body .content .db-standard .dashboard-table-tenant th:nth-child(1),
body .content .db-standard .dashboard-table-tenant td:nth-child(1),
body .content .db-standard .dashboard-table-vendor th:nth-child(1),
body .content .db-standard .dashboard-table-vendor td:nth-child(1),
body .content .db-standard .dashboard-table-properties th:nth-child(1),
body .content .db-standard .dashboard-table-properties td:nth-child(1) { width: 28% !important; }

body .content .db-standard .dashboard-table-tenant th:nth-child(2),
body .content .db-standard .dashboard-table-tenant td:nth-child(2),
body .content .db-standard .dashboard-table-vendor th:nth-child(2),
body .content .db-standard .dashboard-table-vendor td:nth-child(2),
body .content .db-standard .dashboard-table-properties th:nth-child(2),
body .content .db-standard .dashboard-table-properties td:nth-child(2) { width: 32% !important; }

body .content .db-standard .dashboard-table-tenant th:nth-child(3),
body .content .db-standard .dashboard-table-tenant td:nth-child(3),
body .content .db-standard .dashboard-table-vendor th:nth-child(3),
body .content .db-standard .dashboard-table-vendor td:nth-child(3),
body .content .db-standard .dashboard-table-properties th:nth-child(3),
body .content .db-standard .dashboard-table-properties td:nth-child(3) { width: 11% !important; }

body .content .db-standard .dashboard-table-tenant th:nth-child(4),
body .content .db-standard .dashboard-table-tenant td:nth-child(4),
body .content .db-standard .dashboard-table-vendor th:nth-child(4),
body .content .db-standard .dashboard-table-vendor td:nth-child(4),
body .content .db-standard .dashboard-table-properties th:nth-child(4),
body .content .db-standard .dashboard-table-properties td:nth-child(4) { width: 9% !important; }

body .content .db-standard .dashboard-table-tenant th:nth-child(5),
body .content .db-standard .dashboard-table-tenant td:nth-child(5),
body .content .db-standard .dashboard-table-vendor th:nth-child(5),
body .content .db-standard .dashboard-table-vendor td:nth-child(5),
body .content .db-standard .dashboard-table-properties th:nth-child(5),
body .content .db-standard .dashboard-table-properties td:nth-child(5) { width: 6% !important; }

body .content .db-standard .dashboard-table-tenant th:nth-child(6),
body .content .db-standard .dashboard-table-tenant td:nth-child(6),
body .content .db-standard .dashboard-table-vendor th:nth-child(6),
body .content .db-standard .dashboard-table-vendor td:nth-child(6),
body .content .db-standard .dashboard-table-properties th:nth-child(6),
body .content .db-standard .dashboard-table-properties td:nth-child(6) { width: 14% !important; }

/* Property Setup: identical frame/row geometry, 3-column footprint */
body .content .db-standard .dashboard-table-property-setup th:nth-child(1),
body .content .db-standard .dashboard-table-property-setup td:nth-child(1) { width: 66% !important; }

body .content .db-standard .dashboard-table-property-setup th:nth-child(2),
body .content .db-standard .dashboard-table-property-setup td:nth-child(2),
body .content .db-standard .dashboard-table-property-setup th:nth-child(3),
body .content .db-standard .dashboard-table-property-setup td:nth-child(3) { width: 17% !important; }

/* Neutralize legacy Property Setup column/button overrides */
body .content .db-standard .dashboard-table-property-setup .property-list-action-col {
  width: auto !important;
}

body .content .db-standard .dashboard-table-property-setup th:nth-child(2),
body .content .db-standard .dashboard-table-property-setup td:nth-child(2),
body .content .db-standard .dashboard-table-property-setup th:nth-child(3),
body .content .db-standard .dashboard-table-property-setup td:nth-child(3) {
  text-align: center !important;
}

body .content .db-standard .dashboard-table-property-setup .property-open-btn,
body .content .db-standard .dashboard-table-property-setup .property-remove-btn {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  margin: 0 auto !important;
  display: inline-flex !important;
  justify-content: center !important;
}

/* Keep tenant Next Action footprint stable */
body .content .db-standard .dashboard-table td.next-action-col,
body .content .db-standard .dashboard-table th.next-action-col {
  padding-right: 10px !important;
}

body .content .db-standard .dashboard-table .next-action-badge {
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  white-space: nowrap !important;
}



/* Final parity lock: Property Setup action-pill/header alignment */
body .content .db-standard .dashboard-table-property-setup thead th:nth-child(2),
body .content .db-standard .dashboard-table-property-setup thead th:nth-child(3),
body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(2),
body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(3) {
  text-align: center !important;
  vertical-align: middle !important;
}

body .content .db-standard .dashboard-table-property-setup thead th:nth-child(2) .sort-head,
body .content .db-standard .dashboard-table-property-setup thead th:nth-child(3) .sort-head {
  width: 100% !important;
  justify-content: center !important;
}

/* Final canonical scrollbar policy: hidden on all table pages, scroll still enabled */
body .content .db-standard .table-wrap,
body .content .db-standard .dashboard-table-wrap,
body .content .db-standard .property-setup-table-wrap,
body .content .db-standard .property-modal-table-wrap,
body .content .db-standard .property-list-table-wrap {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body .content .db-standard .table-wrap::-webkit-scrollbar,
body .content .db-standard .dashboard-table-wrap::-webkit-scrollbar,
body .content .db-standard .property-setup-table-wrap::-webkit-scrollbar,
body .content .db-standard .property-modal-table-wrap::-webkit-scrollbar,
body .content .db-standard .property-list-table-wrap::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Absolute scrollbar override for all data tables */
.table-wrap,
.dashboard-table-wrap,
.property-setup-table-wrap,
.property-modal-table-wrap,
.property-list-table-wrap {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.table-wrap::-webkit-scrollbar,
.dashboard-table-wrap::-webkit-scrollbar,
.property-setup-table-wrap::-webkit-scrollbar,
.property-modal-table-wrap::-webkit-scrollbar,
.property-list-table-wrap::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Property Setup action pills: hard baseline lock to prevent cross-page jitter */
body .content .db-standard .dashboard-table-property-setup .property-open-btn,
body .content .db-standard .dashboard-table-property-setup .property-remove-btn {
  position: relative !important;
  top: 0 !important;
  transform: none !important;
  line-height: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(2),
body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(3) {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}

/* Micro-offset: Property Setup table sits 2px too high vs Tenant frame */
body .content .db-standard.property-roster-page .property-setup-table-wrap {
  margin-top: 2px !important;
}


/* Final 1px alignment nudge: Property Setup action pills -> Tenant vertical center */
body .content .db-standard .dashboard-table-property-setup .property-open-btn,
body .content .db-standard .dashboard-table-property-setup .property-remove-btn {
  position: relative !important;
  top: 1px !important;
  line-height: normal !important;
}

/* Final row-height parity: Property Setup rows must match Tenant (55px measured) */
body .content .db-standard .dashboard-table-property-setup tbody tr,
body .content .db-standard .dashboard-table-property-setup tbody td {
  height: 55px !important;
  min-height: 55px !important;
  max-height: 55px !important;
}

body .content .db-standard .dashboard-table-property-setup tbody td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Remove temporary micro-nudge now that row height is aligned */
body .content .db-standard .dashboard-table-property-setup .property-open-btn,
body .content .db-standard .dashboard-table-property-setup .property-remove-btn {
  top: 0 !important;
}

/* Match Property Setup action controls to Tenant next-action pill geometry */
body .content .db-standard .dashboard-table-property-setup .property-open-btn,
body .content .db-standard .dashboard-table-property-setup .property-remove-btn {
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 6px 10px !important;
  line-height: normal !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  top: 0 !important;
}

body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(2),
body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(3) {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  vertical-align: middle !important;
}

/* Placeholder parity: keep next-action footprint stable when action is missing */
.next-action-placeholder {
  color: var(--muted) !important;
  border-color: rgba(148,163,184,0.28) !important;
  background: rgba(148,163,184,0.08) !important;
}

html[data-theme="light"] .next-action-placeholder {
  border-color: rgba(100,116,139,0.30) !important;
  background: rgba(100,116,139,0.10) !important;
}

/* Absolute center lock for action controls (eliminates residual cross-page drift) */
body .content .db-standard .dashboard-table td.next-action-col {
  position: relative !important;
}

body .content .db-standard .dashboard-table td.next-action-col .next-action-badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

/* Next Action notice indicator layout: keep dot + pill inline without overlap. */
body .content .db-standard .dashboard-table td.next-action-col .next-action-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

body .content .db-standard .dashboard-table td.next-action-col .next-action-wrap .next-action-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
}

/* Property Setup uses columns 2/3 for action controls; center them identically */
body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(2),
body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(3) {
  position: relative !important;
}

body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(2) .next-action-badge,
body .content .db-standard .dashboard-table-property-setup tbody td:nth-child(3) .next-action-badge {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

body .content .db-standard .dashboard-table-wrap,
body .content .db-standard .property-setup-table-wrap {
  animation: dbTableFadeIn 100ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  body .content .db-standard .dashboard-table-wrap,
  body .content .db-standard .property-setup-table-wrap {
    animation: none !important;
  }
}

body .content .db-standard .dashboard-table-wrap,
body .content .db-standard .property-setup-table-wrap {
  animation: dbTableFadeInV2 220ms ease-out !important;
  will-change: opacity, filter;
}

@media (prefers-reduced-motion: reduce) {
  body .content .db-standard .dashboard-table-wrap,
  body .content .db-standard .property-setup-table-wrap {
    animation: none !important;
    filter: none !important;
  }
}

