/* ==========================================================================
   CareMetrix — Property Management
   Follows the same conventions as asset-register.css / asset-allocation.css:
   rules scoped under `.prop`, listing card built from the shared
   card/table/pagination components, inline filter bar, a single
   fixed-position 3-dot row menu, and slide-over drawers + delete-confirm
   modal moved to <body> to escape the page's fade-up animation (see
   properties.js's mountOverlays()). Listing/detail toggle follows the same
   pattern as roster-templates.css's .rt-view.
   ========================================================================== */

.prop {
  --prop-pink: #D0479A; --prop-pink-soft: #FBEAF4;
}

.prop-view { display: none; }
.prop-view.active { display: block; }

/* -------------------------------------------------------------- pagepath -- */

.prop-pagepath { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }

/* -------------------------------------------------------------- headrow -- */

.prop-card { overflow: hidden; }

.prop-headrow {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.prop-headrow__title h1 { font-size: 19px; font-weight: 600; letter-spacing: -.2px; }
.prop-headrow__title p { margin-top: 3px; font-size: 12.5px; color: var(--text-2); }

.prop-headrow__actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; flex: none; }
.prop-headrow__actions select {
  height: 38px; padding: 0 14px; border-radius: var(--r-btn);
  border: 1.5px solid var(--border-strong); background: var(--surface);
  font-size: 13px; color: var(--text-2); min-width: 170px;
}

.prop-pinkbtn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1.5px solid var(--prop-pink); border-radius: var(--r-btn);
  background: var(--surface); color: var(--prop-pink);
  font-size: 13px; font-weight: 700;
  transition: all .14s var(--ease);
}
.prop-pinkbtn:hover { background: var(--prop-pink-soft); }
.prop-pinkbtn svg { width: 16px; height: 16px; }
.prop-pinkbtn.is-open { background: var(--prop-pink-soft); }

/* ---- inline filter bar ---- */

.prop-filters {
  padding: 18px 24px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.prop-filters[hidden] { display: none; }
.prop-filters__row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.prop-filter { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; min-width: 0; }
.prop-filter__label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.prop-filters__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }

/* filter fields inside a detail tab's panel are few and short-optioned —
   size them to their content instead of stretching to fill the row. */
.prop-tabpanel .prop-filter { flex: 0 1 200px; }

/* ------------------------------------------------------------ searchrow -- */

.prop-searchrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.prop-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 240px; max-width: 480px; }
.prop-search svg { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.prop-search input {
  width: 100%; box-sizing: border-box;
  font-size: 13px; padding: 9px 14px 9px 40px;
  border: 1.5px solid var(--form-border); border-radius: var(--r-pill);
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.prop-search input:focus { border-color: var(--form-focus); box-shadow: 0 0 0 3px var(--form-focus-ring); }

.prop-searchrow__pagination { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.prop-searchrow__perpage { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.prop-searchrow__perpage select { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; background: var(--surface); color: var(--text); }

/* ----------------------------------------------------------------- table */

.prop-sort { margin-left: 5px; font-size: 12px; font-weight: 600; color: #A99FBE; }

.prop-card .table-wrap, .prop-tabpanel .table-wrap {
  width: auto; margin: 20px 24px 24px; border: 1px solid var(--commontable2-cell-border);
  border-radius: 12px; overflow-x: auto;
}
.prop-card .table-wrap thead tr th:first-child, .prop-tabpanel .table-wrap thead tr th:first-child { border-top-left-radius: 11px; }
.prop-card .table-wrap thead tr th:last-child, .prop-tabpanel .table-wrap thead tr th:last-child { border-top-right-radius: 11px; }
.prop-tabpanel .table-wrap table { margin: 0; }

.prop-table tbody tr { cursor: pointer; transition: background .12s var(--ease); }
.prop-table tbody tr:hover { background: var(--surface-2); }

.prop-table tbody td:first-child { position: relative; padding-left: 26px; }
.prop-table tbody td:first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #E24FA8, #9B5CF6);
}

.prop-thumb { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: var(--surface-3); flex: none; }
.prop-name-cell { display: flex; align-items: center; gap: 10px; }
.prop-asset__name { font-weight: 600; color: var(--text); font-size: 13.5px; }
.prop-asset__code { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; color: var(--text-3); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; width: fit-content; }

.prop-addr__main { font-weight: 700; color: var(--text); font-size: 13px; }
.prop-addr__sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-3); }

.prop-occ { display: flex; flex-direction: column; gap: 5px; min-width: 110px; }
.prop-occ__bar { width: 100%; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.prop-occ__bar span { display: block; height: 100%; background: linear-gradient(90deg, #C026D3, #7C3AED); border-radius: 999px; }
.prop-occ__label { font-size: 11.5px; color: var(--text-2); font-weight: 700; }
.prop-occ__sub { font-size: 11px; color: var(--text-3); }

.prop-assetcount { display: flex; gap: 14px; font-size: 13px; }
.prop-assetcount b { display: block; font-size: 13.5px; }
.prop-assetcount .is-active b { color: var(--green); }
.prop-assetcount .is-damaged b { color: var(--red); }
.prop-assetcount span { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; }

.prop-roombtn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--violet-bg); color: var(--brand-purple);
  font-size: 11.5px; font-weight: 700; border: none; cursor: pointer;
  white-space: nowrap; flex: none;
}
.prop-roombtn svg { width: 12px; height: 12px; }

.prop-insp { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
.prop-insp__pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; width: fit-content; }
.prop-insp__pill--overdue { background: var(--red-bg); color: var(--red); }
.prop-insp__pill--pending { background: var(--amber-bg); color: var(--amber); }
.prop-insp__pill--completed { background: var(--green-bg); color: var(--green); }

.prop-status { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.prop-status--active { background: var(--green-bg); color: var(--green); }
.prop-status--inactive { background: var(--surface-3); color: var(--text-3); }

.prop-morebtn {
  width: 32px; height: 32px; border-radius: 9px; border: none;
  background: transparent; color: var(--text-3);
  display: inline-grid; place-items: center; cursor: pointer;
  transition: all .16s var(--ease);
}
.prop-morebtn svg { width: 18px; height: 18px; }
.prop-morebtn:hover, .prop-morebtn[aria-expanded="true"] { background: var(--violet-bg); color: var(--brand-purple); }

/* room sub-table (expand row) */
.prop-subrow { background: var(--surface-2); }
.prop-subrow[hidden] { display: none; }
.prop-subrow td { padding: 18px 24px !important; }
.prop-subrow h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.prop-subrow p { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }

/* shared 3-dot row action menu */
.prop-rowmenu {
  position: fixed; z-index: 120; min-width: 150px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); display: none;
}
.prop-rowmenu.is-open { display: block; }
.prop-rowmenu__item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); text-align: left;
  transition: background .16s var(--ease);
}
.prop-rowmenu__item svg { width: 16px; height: 16px; flex: none; }
.prop-rowmenu__item--view { color: var(--brand-purple); }
.prop-rowmenu__item--view:hover { background: var(--violet-bg); }
.prop-rowmenu__item--edit { color: var(--amber); }
.prop-rowmenu__item--edit:hover { background: var(--amber-bg); }
.prop-rowmenu__item--danger { color: var(--red); }
.prop-rowmenu__item--danger:hover { background: var(--red-bg); }

/* ------------------------------------------------------------- fd drawer -- */

.prop-fd__body .field { margin-bottom: 16px; }
.prop-fd__body .field__label b { color: var(--red); font-weight: 700; margin-left: 2px; }

.prop-fd__section {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; font-weight: 600; color: var(--prop-pink);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.prop-fd__section:first-child { margin-top: 0; }
.prop-fd__section a, .prop-fd__section button.prop-linklike {
  text-transform: none; letter-spacing: 0; font-weight: 700;
  color: var(--brand-purple); font-size: 12px; cursor: pointer;
}

.prop-fd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.prop-fd__grid .field { margin-bottom: 0; }
.prop-fd__grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.prop-fd__grid3 .field { margin-bottom: 0; }

.prop-rte {
  border: 1.5px solid var(--form-border); border-radius: var(--form-radius);
  background: var(--surface); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.prop-rte:focus-within { border-color: var(--form-focus); box-shadow: 0 0 0 3px var(--form-focus-ring); }
.prop-rte__toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
  padding: 8px 10px; background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}
.prop-rte__sep { width: 1px; height: 18px; background: var(--border-strong); margin: 0 6px; }
.prop-rte__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 4px; border-radius: 6px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
  transition: background .14s var(--ease), color .14s var(--ease);
}
.prop-rte__btn:hover { background: var(--violet-bg); color: var(--brand-purple); }
.prop-rte__tt { font-weight: 600; }
.prop-rte__body {
  min-height: 90px; padding: 12px 14px; font-size: 13px; color: var(--text);
  line-height: 1.5; outline: none;
}
.prop-rte__body:empty:before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; }
.prop-rte__body--sm { min-height: 60px; }

.prop-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--border); margin-top: 4px;
}
.prop-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.prop-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.prop-switch__track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); transition: background .18s var(--ease); }
.prop-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(36,28,60,.25); transition: transform .18s var(--ease); }
.prop-switch input:checked + .prop-switch__track { background: var(--prop-pink); }
.prop-switch input:checked + .prop-switch__track::after { transform: translateX(18px); }
.prop-switch__label { font-size: 13px; font-weight: 700; color: var(--text-3); }
.prop-switch input:checked ~ .prop-switch__label { color: var(--text); }

.prop-upload {
  border: 1.5px dashed var(--border-strong); border-radius: 12px;
  padding: 26px 16px; text-align: center; cursor: pointer;
  color: var(--brand-purple); background: var(--violet-bg);
  transition: all .14s var(--ease);
}
.prop-upload:hover { background: #EFE7FE; }
.prop-upload svg { width: 22px; height: 22px; margin: 0 auto 6px; display: block; }
.prop-upload b { font-size: 13px; }
.prop-upload small { display: block; margin-top: 3px; font-size: 11px; color: var(--text-3); }

.prop-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.prop-thumb-item { position: relative; width: 76px; height: 62px; border-radius: 10px; overflow: hidden; }
.prop-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.prop-thumb-item button {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(36,28,60,.65); color: #fff;
  display: grid; place-items: center; font-size: 10px; border: none; cursor: pointer;
}

.prop-map { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.prop-map img { width: 100%; display: block; }
.prop-fetchbtn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--brand-purple);
  background: none; border: none; cursor: pointer;
}
.prop-fetchbtn svg { width: 13px; height: 13px; }

.prop-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prop-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px 0 12px; border-radius: 999px;
  background: var(--violet-bg); color: var(--brand-purple);
  font-size: 12.5px; font-weight: 700;
}
.prop-chip button { color: var(--brand-purple); opacity: .7; }
.prop-chip button:hover { opacity: 1; }
.prop-chipinput {
  border: none; outline: none; background: none; flex: 1; min-width: 120px;
  font-size: 13px; padding: 4px;
}

.prop-checklist-item {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.prop-checklist-item__row { display: flex; align-items: center; gap: 10px; }
.prop-checklist-item__row input[type=text] { flex: 1; }
.prop-checklist-item__row .icon-btn {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface); flex: none; cursor: pointer;
}
.prop-checklist-item__row .icon-btn--ok { color: var(--green); border-color: var(--green); background: var(--green-bg); }
.prop-checklist-item__row .icon-btn--no { color: var(--red); border-color: var(--red); background: var(--red-bg); }
.prop-addchecklist {
  width: 100%; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--border-strong);
  background: var(--violet-bg); color: var(--brand-purple); font-weight: 700; font-size: 13px; cursor: pointer;
}

/* ------------------------------------------------------- delete confirm -- */

.prop-modal {
  position: fixed; inset: 0; z-index: 150; padding: 20px;
  display: none; align-items: center; justify-content: center;
  background: rgba(36, 28, 60, .45); backdrop-filter: blur(1px);
}
.prop-modal.show { display: flex; }
.prop-modal__box { width: 420px; max-width: 100%; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 26px; }
.prop-modal__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--red-bg); color: var(--red); margin-bottom: 14px;
}
.prop-modal__icon svg { width: 20px; height: 20px; }
.prop-modal__box h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 8px; }
.prop-modal__box p { font-size: 13px; color: var(--text-2); line-height: 1.55; margin: 0; }
.prop-modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.prop-modal__danger { background: var(--red); color: #fff; border-radius: var(--r-btn); border: none; }
.prop-modal__danger:hover { background: #C81E1E; }

/* -------------------------------------------------------- lightbox -- */

.prop-lightbox {
  position: fixed; inset: 0; z-index: 160; display: none;
  align-items: center; justify-content: center; padding: 30px;
  background: rgba(20, 15, 30, .82);
}
.prop-lightbox.show { display: flex; }
.prop-lightbox__box { position: relative; max-width: 900px; width: 100%; background: var(--surface); border-radius: 16px; overflow: hidden; }
.prop-lightbox__img { width: 100%; max-height: 70vh; object-fit: cover; display: block; }
.prop-lightbox__close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(36,28,60,.55); color: #fff; display: grid; place-items: center; border: none; cursor: pointer;
}
.prop-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  border-radius: 50%; background: rgba(36,28,60,.55); color: #fff;
  display: grid; place-items: center; border: none; cursor: pointer;
}
.prop-lightbox__nav--prev { left: 14px; }
.prop-lightbox__nav--next { right: 14px; }
.prop-lightbox__dots { display: flex; justify-content: center; gap: 6px; padding: 12px; }
.prop-lightbox__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.prop-lightbox__dots span.is-active { background: var(--brand-purple); }

/* =========================================================== DETAIL VIEW */

.prop-detail__back {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--surface); border: 1.5px solid var(--border-strong);
  font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 16px;
}
.prop-detail__back svg { width: 16px; height: 16px; }
.prop-detail__back:hover { border-color: var(--brand-violet); }

.prop-hero {
  display: grid; grid-template-columns: 400px 1fr; gap: 0;
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 18px;
}
.prop-hero__carousel { position: relative; background: var(--surface-3); min-height: 260px; }
.prop-hero__carousel img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.prop-hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.85);
  display: grid; place-items: center; border: none; cursor: pointer; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.prop-hero__nav--prev { left: 12px; }
.prop-hero__nav--next { right: 12px; }
.prop-hero__dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.prop-hero__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.prop-hero__dots span.is-active { background: #fff; width: 16px; border-radius: 4px; }

.prop-hero__info { padding: 22px 26px; }
.prop-hero__info h2 { font-size: 19px; font-weight: 600; }
.prop-hero__badges { display: flex; gap: 8px; margin: 8px 0 10px; }
.prop-hero__addr { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); margin-bottom: 14px; }
.prop-hero__addr svg { width: 14px; height: 14px; flex: none; color: var(--text-3); }

.prop-hero__section { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.prop-hero__section svg { width: 15px; height: 15px; color: var(--brand-purple); }
.prop-hero__desc { font-size: 12.5px; color: var(--text-2); line-height: 1.55; margin-bottom: 12px; }
.prop-hero__desc .prop-readmore { color: var(--brand-purple); font-weight: 700; cursor: pointer; }

.prop-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.prop-hero__chips span { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 700; }

.prop-hero__facts { display: flex; gap: 26px; padding-top: 12px; border-top: 1px solid var(--border); margin-bottom: 14px; }
.prop-hero__fact { display: flex; align-items: center; gap: 10px; }
.prop-hero__fact-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--violet-bg); color: var(--brand-purple); display: grid; place-items: center; flex: none; }
.prop-hero__fact-icon svg { width: 16px; height: 16px; }
.prop-hero__fact-label { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.prop-hero__fact-value { font-size: 13px; font-weight: 700; color: var(--text); }

.prop-hero__occ-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.prop-hero__occ-row span:first-child { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.prop-hero__occ-row span:last-child { font-size: 12.5px; font-weight: 600; color: var(--text); }
.prop-hero__occ-bar { width: 100%; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.prop-hero__occ-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #C026D3, #7C3AED); }

/* -------------------------------------------------------------- tab bar -- */

.prop-tabs {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 0 24px; background: var(--surface); border-radius: var(--r-md) var(--r-md) 0 0;
  box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border);
}
.prop-tabs button {
  display: flex; align-items: center; gap: 7px;
  padding: 16px 0 14px; font-size: 13.5px; font-weight: 700; color: var(--text-2);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.prop-tabs button svg { width: 16px; height: 16px; }
.prop-tabs button.is-active { color: var(--brand-purple); border-bottom-color: var(--brand-purple); }
.prop-tabcount { background: var(--surface-3); color: var(--text-2); border-radius: 999px; font-size: 10.5px; font-weight: 600; padding: 1px 7px; }
.prop-tabs button.is-active .prop-tabcount { background: var(--violet-bg); color: var(--brand-purple); }

.prop-tabpanel { display: none; background: var(--surface); border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--shadow-sm); padding-bottom: 4px; }
.prop-tabpanel.is-active { display: block; }

.prop-panelhead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.prop-panelhead__title { display: flex; align-items: flex-start; gap: 12px; }
.prop-panelhead__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--violet-bg); color: var(--brand-purple); display: grid; place-items: center; flex: none; }
.prop-panelhead__icon svg { width: 18px; height: 18px; }
.prop-panelhead__title h3 { font-size: 16px; font-weight: 600; }
.prop-panelhead__title p { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.prop-panelhead__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.prop-panelsearch {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
}
.prop-panelsearch__right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* keep the trailing Actions column shrunk to its content instead of
   soaking up whatever width the other (short-content) columns leave
   unclaimed under table-layout:auto. */
.prop-table th.t-right, .prop-table td.t-right { width: 1%; white-space: nowrap; }

.prop-priority { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.prop-priority--high { background: var(--red-bg); color: var(--red); }
.prop-priority--medium { background: var(--amber-bg); color: var(--amber); }
.prop-priority--low { background: var(--green-bg); color: var(--green); }

.prop-readmore-inline { color: var(--brand-purple); font-weight: 700; cursor: pointer; }

.prop-attachbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.prop-attachbadge svg { width: 14px; height: 14px; color: var(--text-3); }

.prop-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 600;
}
.prop-namecell { display: flex; align-items: center; gap: 10px; }

/* ----------------------------------------------------- inspection view -- */

.prop-insp-summary { border: 1px solid var(--border); border-radius: 14px; padding: 18px; position: relative; margin-bottom: 18px; }
.prop-insp-summary .prop-status { position: absolute; top: 18px; right: 18px; }
.prop-insp-summary__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.prop-insp-summary__label { font-size: 10.5px; font-weight: 700; color: var(--brand-purple); text-transform: uppercase; letter-spacing: .04em; }
.prop-insp-summary__value { font-size: 13.5px; font-weight: 700; color: var(--text); margin-top: 3px; }
.prop-insp-summary__notes { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-top: 8px; }

.prop-checkcard { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.prop-checkcard--ok { border-color: var(--green); background: var(--green-bg); }
.prop-checkcard--no { border-color: var(--red); background: var(--red-bg); }
.prop-checkcard__icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.prop-checkcard--ok .prop-checkcard__icon { background: var(--green); }
.prop-checkcard--no .prop-checkcard__icon { background: var(--red); }
.prop-checkcard__icon svg { width: 14px; height: 14px; }
.prop-checkcard__title { font-size: 13px; font-weight: 600; color: var(--text); }
.prop-checkcard__sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

@media (max-width: 900px) {
  .prop-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .prop-headrow, .prop-searchrow, .prop-panelsearch { flex-direction: column; align-items: stretch; }
  .prop-headrow__actions select { min-width: 0; flex: 1; }
  .prop-fd__grid, .prop-fd__grid3 { grid-template-columns: 1fr; }
  .prop-filters__row { flex-direction: column; align-items: stretch; }
  .prop-filters__actions { margin-left: 0; }
  .prop-tabs { overflow-x: auto; }
}
