/* EVCT Forms — site-wide polish (soft tinted pill buttons, tidy forms, tables, cards) */
:root{
  --pp-teal-bg:#e3f1ef;--pp-teal-tx:#1f5c56;--pp-teal-bd:#b8dcd6;--pp-teal-hv:#cfe8e4;
  --pp-red-bg:#fdecea;--pp-red-tx:#b42318;--pp-red-bd:#f5c2bd;--pp-red-hv:#fbd5d0;
  --pp-amb-bg:#fef4e2;--pp-amb-tx:#9a5507;--pp-amb-bd:#f3d6a2;--pp-amb-hv:#fce8c4;
  --pp-grn-bg:#e8f6ec;--pp-grn-tx:#1e7a3c;--pp-grn-bd:#bfe5cb;--pp-grn-hv:#d4efdc;
  --pp-blu-bg:#e8f0fc;--pp-blu-tx:#2a55a3;--pp-blu-bd:#c3d5f3;--pp-blu-hv:#d6e3f8;
  --pp-gry-bg:#f3f3f1;--pp-gry-tx:#3d3d3a;--pp-gry-bd:#dcdcd8;--pp-gry-hv:#e8e8e5;
}

/* ---------- Buttons: soft tinted pills ---------- */
html:not(#pp1):not(#pp2) body .btn{
  border-radius:999px!important;font-weight:500!important;letter-spacing:.01em;
  padding:.5rem 1.1rem!important;line-height:1.3!important;white-space:nowrap!important;
  width:auto;min-width:max-content;box-shadow:none!important;
  transition:background-color .15s,border-color .15s,color .15s,transform .05s!important;
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
}
html:not(#pp1):not(#pp2) body .btn:active{transform:translateY(1px)}
html:not(#pp1):not(#pp2) body .btn-sm{padding:.35rem .9rem!important;font-size:.85rem!important}
html:not(#pp1):not(#pp2) body .btn-lg{padding:.7rem 1.4rem!important}
html:not(#pp1):not(#pp2) body .btn:focus-visible{outline:2px solid var(--pp-teal-bd)!important;outline-offset:2px}

html:not(#pp1):not(#pp2) body .btn-primary,html:not(#pp1):not(#pp2) body .btn-outline-primary,html:not(#pp1):not(#pp2) body .btn-dark,html:not(#pp1):not(#pp2) body .btn-outline-dark{
  background-color:var(--pp-teal-bg)!important;color:var(--pp-teal-tx)!important;border:1px solid var(--pp-teal-bd)!important}
html:not(#pp1):not(#pp2) body .btn-primary:hover,html:not(#pp1):not(#pp2) body .btn-outline-primary:hover,html:not(#pp1):not(#pp2) body .btn-dark:hover,html:not(#pp1):not(#pp2) body .btn-outline-dark:hover{
  background-color:var(--pp-teal-hv)!important;color:var(--pp-teal-tx)!important}

html:not(#pp1):not(#pp2) body .btn-danger,html:not(#pp1):not(#pp2) body .btn-outline-danger{
  background-color:var(--pp-red-bg)!important;color:var(--pp-red-tx)!important;border:1px solid var(--pp-red-bd)!important}
html:not(#pp1):not(#pp2) body .btn-danger:hover,html:not(#pp1):not(#pp2) body .btn-outline-danger:hover{
  background-color:var(--pp-red-hv)!important;color:#912018!important;border-color:#ee9f97!important}

html:not(#pp1):not(#pp2) body .btn-warning,html:not(#pp1):not(#pp2) body .btn-outline-warning{
  background-color:var(--pp-amb-bg)!important;color:var(--pp-amb-tx)!important;border:1px solid var(--pp-amb-bd)!important}
html:not(#pp1):not(#pp2) body .btn-warning:hover,html:not(#pp1):not(#pp2) body .btn-outline-warning:hover{background-color:var(--pp-amb-hv)!important}

html:not(#pp1):not(#pp2) body .btn-success,html:not(#pp1):not(#pp2) body .btn-outline-success{
  background-color:var(--pp-grn-bg)!important;color:var(--pp-grn-tx)!important;border:1px solid var(--pp-grn-bd)!important}
html:not(#pp1):not(#pp2) body .btn-success:hover,html:not(#pp1):not(#pp2) body .btn-outline-success:hover{background-color:var(--pp-grn-hv)!important}

html:not(#pp1):not(#pp2) body .btn-info,html:not(#pp1):not(#pp2) body .btn-outline-info{
  background-color:var(--pp-blu-bg)!important;color:var(--pp-blu-tx)!important;border:1px solid var(--pp-blu-bd)!important}
html:not(#pp1):not(#pp2) body .btn-info:hover,html:not(#pp1):not(#pp2) body .btn-outline-info:hover{background-color:var(--pp-blu-hv)!important}

html:not(#pp1):not(#pp2) body .btn-secondary,html:not(#pp1):not(#pp2) body .btn-outline-secondary,html:not(#pp1):not(#pp2) body .btn-light,html:not(#pp1):not(#pp2) body .btn-outline-light{
  background-color:var(--pp-gry-bg)!important;color:var(--pp-gry-tx)!important;border:1px solid var(--pp-gry-bd)!important}
html:not(#pp1):not(#pp2) body .btn-secondary:hover,html:not(#pp1):not(#pp2) body .btn-outline-secondary:hover,html:not(#pp1):not(#pp2) body .btn-light:hover,html:not(#pp1):not(#pp2) body .btn-outline-light:hover{
  background-color:var(--pp-gry-hv)!important}

html:not(#pp1):not(#pp2) body .btn:disabled,html:not(#pp1):not(#pp2) body .btn.disabled{opacity:.55!important}

/* Action columns never squeeze their buttons */
html:not(#pp1):not(#pp2) body td.rt-actions,html:not(#pp1):not(#pp2) body td:last-child>.btn:only-child{white-space:nowrap}
html:not(#pp1):not(#pp2) body td.rt-actions{width:1%;padding-left:1rem!important}

/* ---------- Badges / counts ---------- */
html:not(#pp1):not(#pp2) body .badge{
  border-radius:999px!important;font-weight:600!important;padding:.3em .7em!important;
  background-color:var(--pp-teal-bg)!important;color:var(--pp-teal-tx)!important;border:1px solid var(--pp-teal-bd)}
html:not(#pp1):not(#pp2) body .badge.bg-danger,html:not(#pp1):not(#pp2) body .badge.text-bg-danger{background-color:var(--pp-red-bg)!important;color:var(--pp-red-tx)!important;border-color:var(--pp-red-bd)}
html:not(#pp1):not(#pp2) body .badge.bg-warning,html:not(#pp1):not(#pp2) body .badge.text-bg-warning{background-color:var(--pp-amb-bg)!important;color:var(--pp-amb-tx)!important;border-color:var(--pp-amb-bd)}
html:not(#pp1):not(#pp2) body .badge.bg-success,html:not(#pp1):not(#pp2) body .badge.text-bg-success{background-color:var(--pp-grn-bg)!important;color:var(--pp-grn-tx)!important;border-color:var(--pp-grn-bd)}
html:not(#pp1):not(#pp2) body .badge.bg-secondary,html:not(#pp1):not(#pp2) body .badge.bg-light{background-color:var(--pp-gry-bg)!important;color:var(--pp-gry-tx)!important;border-color:var(--pp-gry-bd)}

/* ---------- Forms: roomy, aligned, nothing clipped ---------- */
html:not(#pp1):not(#pp2) body .form-control,html:not(#pp1):not(#pp2) body .form-select,html:not(#pp1):not(#pp2) body input[type=text],html:not(#pp1):not(#pp2) body input[type=email],
html:not(#pp1):not(#pp2) body input[type=number],html:not(#pp1):not(#pp2) body input[type=date],html:not(#pp1):not(#pp2) body input[type=search],html:not(#pp1):not(#pp2) body input[type=tel],
html:not(#pp1):not(#pp2) body select,html:not(#pp1):not(#pp2) body textarea{
  min-height:44px;border-radius:10px!important;border:1px solid #d6d6d2!important;
  background-color:#fff;font-size:.95rem!important;color:#2b2b28;
  transition:border-color .15s,box-shadow .15s}
html:not(#pp1):not(#pp2) body input[type=date],html:not(#pp1):not(#pp2) body select,html:not(#pp1):not(#pp2) body .form-select{min-width:10.5rem}
html:not(#pp1):not(#pp2) body .form-select,html:not(#pp1):not(#pp2) body select{padding-right:2.2rem!important;text-overflow:ellipsis}
html:not(#pp1):not(#pp2) body .form-control:focus,html:not(#pp1):not(#pp2) body .form-select:focus,html:not(#pp1):not(#pp2) body input:focus,html:not(#pp1):not(#pp2) body select:focus,html:not(#pp1):not(#pp2) body textarea:focus{
  border-color:var(--pp-teal-bd)!important;box-shadow:0 0 0 3px rgba(31,92,86,.12)!important;outline:none}
html:not(#pp1):not(#pp2) body .form-control[readonly],html:not(#pp1):not(#pp2) body .form-control:disabled,html:not(#pp1):not(#pp2) body input[readonly],html:not(#pp1):not(#pp2) body input:disabled,html:not(#pp1):not(#pp2) body select:disabled{
  background-color:#f5f5f3!important;color:#77776f!important;border-style:dashed!important}
html:not(#pp1):not(#pp2) body label,html:not(#pp1):not(#pp2) body .form-label{font-size:.82rem!important;font-weight:500;color:#5a5a55;margin-bottom:.35rem}
/* labels of different lengths no longer push their boxes out of line */
html:not(#pp1):not(#pp2) body .row>[class*=col]:has(> label + .form-control),html:not(#pp1):not(#pp2) body .row>[class*=col]:has(> label + .form-select),
html:not(#pp1):not(#pp2) body .row>[class*=col]:has(> label + input),html:not(#pp1):not(#pp2) body .row>[class*=col]:has(> label + select){
  display:flex;flex-direction:column;justify-content:flex-end}
html:not(#pp1):not(#pp2) body .form-text,html:not(#pp1):not(#pp2) body small.text-muted{font-size:.78rem!important;color:#8a8a84!important}

/* ---------- Tables ---------- */
html:not(#pp1):not(#pp2) body table thead th{
  font-size:.72rem!important;text-transform:uppercase;letter-spacing:.06em;color:#8a8a84!important;
  font-weight:600!important;white-space:nowrap;border-bottom:1px solid #e6e6e2!important;padding:.75rem .9rem!important}
html:not(#pp1):not(#pp2) body table tbody td{vertical-align:middle!important;padding:.85rem .9rem!important;border-color:#efefec!important}
html:not(#pp1):not(#pp2) body table tbody tr{transition:background-color .12s}
html:not(#pp1):not(#pp2) body table tbody tr:hover{background-color:#fafaf8}
html:not(#pp1):not(#pp2) body td.text-end,html:not(#pp1):not(#pp2) body th.text-end{font-variant-numeric:tabular-nums}

/* ---------- Cards ---------- */
html:not(#pp1):not(#pp2) body .card{border-radius:16px!important;border:1px solid #e8e8e4!important;
  box-shadow:0 1px 2px rgba(20,20,15,.04),0 4px 14px rgba(20,20,15,.04)!important}
html:not(#pp1):not(#pp2) body .card .card{box-shadow:none!important;border-radius:12px!important}

/* ---------- Alerts ---------- */
html:not(#pp1):not(#pp2) body .alert{border-radius:12px!important;border-width:1px!important}
html:not(#pp1):not(#pp2) body .alert-danger{background-color:var(--pp-red-bg)!important;color:var(--pp-red-tx)!important;border-color:var(--pp-red-bd)!important}
html:not(#pp1):not(#pp2) body .alert-warning{background-color:var(--pp-amb-bg)!important;color:var(--pp-amb-tx)!important;border-color:var(--pp-amb-bd)!important}
html:not(#pp1):not(#pp2) body .alert-success{background-color:var(--pp-grn-bg)!important;color:var(--pp-grn-tx)!important;border-color:var(--pp-grn-bd)!important}
html:not(#pp1):not(#pp2) body .alert-info{background-color:var(--pp-blu-bg)!important;color:var(--pp-blu-tx)!important;border-color:var(--pp-blu-bd)!important}

/* ---------- Small screens ---------- */
@media (max-width:640px){
  html:not(#pp1):not(#pp2) body .btn{padding:.45rem .9rem!important}
  html:not(#pp1):not(#pp2) body table thead th,html:not(#pp1):not(#pp2) body table tbody td{padding:.6rem .55rem!important}
}

html:not(#pp1):not(#pp2) body .btn[hidden],html:not(#pp1):not(#pp2) body .btn.d-none{display:none!important}

/* Hide the older shortcut row where the new one shows */
body:has(.ev-quicklinks) div.d-flex:has(> span.align-self-center.text-muted + a[href*="edit_tenat_detail"]){display:none!important}

/* ---------- v4: roomier data tables (List of Tenants, Properties, etc.) — desktop only ---------- */
@media (min-width:768px){
html:not(#pp1):not(#pp2) body .dataTable-container,html:not(#pp1):not(#pp2) body .datatable-container{overflow-x:auto!important}
html:not(#pp1):not(#pp2) body table.datatable{width:max-content!important;min-width:100%!important;max-width:none!important}
html:not(#pp1):not(#pp2) body table.datatable th{width:auto!important;padding:.65rem .8rem!important}
html:not(#pp1):not(#pp2) body table.datatable td{width:auto!important;max-width:260px;white-space:normal;padding:.65rem .8rem!important;font-size:.9rem}
}

/* ---------- v4: dashboard card tints follow the button colours ---------- */
html:not(#pp1):not(#pp2) body #rentOwed>.card-body,
html:not(#pp1):not(#pp2) body .ev-dash-card.ev-t-nonpay>.card-body{background:linear-gradient(#fdecea,#fff 90px)!important}
html:not(#pp1):not(#pp2) body .ev-dash-card.ev-t-court>.card-body{background:linear-gradient(#e8f0fc,#fff 90px)!important}
html:not(#pp1):not(#pp2) body .ev-dash-card.ev-t-lease>.card-body,
html:not(#pp1):not(#pp2) body .ev-dash-card.ev-t-holdover>.card-body{background:linear-gradient(#fef4e2,#fff 90px)!important}
html:not(#pp1):not(#pp2) body .ev-dash-card.ev-t-deposit>.card-body{background:linear-gradient(#e8f6ec,#fff 90px)!important}
html:not(#pp1):not(#pp2) body .ev-dash-card.ev-t-docs>.card-body{background:linear-gradient(#e3f1ef,#fff 90px)!important}
html:not(#pp1):not(#pp2) body .ev-dash-card.ev-t-tenants>.card-body{background:linear-gradient(#f3f3f1,#fff 90px)!important}

/* ---------- v4: Properties and tenants card ---------- */
.ev-pt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.75rem}
.ev-pt-item{border:1px solid #ebebe7;border-radius:12px;padding:.75rem .9rem;background:#fff}
.ev-pt-item .ev-pt-addr{font-weight:600;font-size:.92rem;margin-bottom:.35rem}
.ev-pt-item .ev-pt-t{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;font-size:.88rem;margin:.2rem 0}
.ev-pt-item .ev-pt-t>span:first-child{flex:1 1 auto;min-width:0}
.ev-pt-btns{display:inline-flex;gap:.3rem;white-space:nowrap;margin-left:auto}
.ev-pt-item .ev-pt-vacant{color:#9a5507;font-size:.85rem}

/* evct-v5: Small Claims paper tiles + icon fallbacks */
.sc-papers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sc-paper { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 14px 16px; border: 1px solid #e3e8f0; border-radius: 12px; background: #f8fafc; color: #1f2d3d !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sc-paper:hover { border-color: #9db8e8; background: #f2f6fd; box-shadow: 0 4px 14px rgba(30, 60, 120, .08); transform: translateY(-1px); }
.sc-paper > i { font-size: 22px; color: #4a6fb5; line-height: 1.1; }
.sc-paper b { display: block; font-size: 14.5px; font-weight: 600; }
.sc-paper small { display: block; color: #6b7a90; font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.sc-paper .sc-step { position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #c9d6ec; color: #4a6fb5; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sc-paper.sc-main { background: #fff7ec; border-color: #f2d3a6; }
.sc-paper.sc-main > i { color: #c07a1c; }
.sc-paper.sc-main:hover { background: #fff1de; border-color: #e9b873; box-shadow: 0 4px 14px rgba(190, 120, 30, .12); }
/* icons missing from the site's icon font: show the closest icon that is in it */
.bi-calendar-check::before, .bi-calendar-range::before, .bi-calendar3::before { content: "\f1e8"; }
.bi-arrow-right-circle::before { content: "\f138"; }
.bi-bell::before { content: "\f333"; }
.bi-send::before, .bi-envelope-paper::before { content: "\f32f"; }
.bi-x-circle::before { content: "\f659"; }
.bi-info-circle::before { content: "\f430"; }
.bi-lock::before { content: "\f52f"; }
.bi-search::before { content: "\f341"; }
.bi-file-earmark-zip::before { content: "\f30a"; }
.bi-person::before, .bi-person-check::before, .bi-person-plus::before { content: "\f4d3"; }
.bi-file-earmark::before { content: "\f38b"; }
.bi-arrow-left-right::before { content: "\f130"; }
.bi-usb-drive::before, .bi-hdd::before, .bi-database::before { content: "\f525"; }
.bi-box-seam::before, .bi-archive::before { content: "\f3d8"; }
.bi-list-check::before { content: "\f28b"; }
.bi-house::before, .bi-house-check::before { content: "\f423"; }
.bi-pencil-square::before, .bi-sticky::before { content: "\f4cb"; }
.bi-calculator::before { content: "\f389"; }
.bi-magic::before { content: "\f46b"; }
.bi-exclamation-triangle::before { content: "\f33a"; }
.bi-box-arrow-up-right::before { content: "\f1c3"; }
.bi-plus::before { content: "\f64d"; }
.bi-printer::before { content: "\f63e"; }

/* evct-v8: Rent Roll "Tenants and balances" fits the page */
@media (min-width: 1200px) {
  .table.rt-stack:has(td.rr-muted) td, .table.rt-stack:has(td.rr-muted) th { padding-left: .6rem !important; padding-right: .6rem !important; }
  .table.rt-stack:has(td.rr-muted) td.text-nowrap, .table.rt-stack:has(td.rr-muted) td { white-space: normal !important; }
  .table.rt-stack:has(td.rr-muted) td:first-child { min-width: 150px; }
  .table.rt-stack:has(td.rr-muted) td:nth-child(2), .table.rt-stack:has(td.rr-muted) td:nth-child(3) { white-space: nowrap !important; }
  .table.rt-stack:has(td.rr-muted) td:nth-child(2) { min-width: 125px; }
  .table.rt-stack:has(td.rr-muted) td:nth-child(2) .rr-muted, .table.rt-stack:has(td.rr-muted) td:nth-child(3) .rr-muted { white-space: normal; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
  .table.rt-stack:has(td.rr-muted) td:nth-child(4) { min-width: 150px; }
  .table.rt-stack:has(td.rr-muted) td.rr-muted { max-width: 170px; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .table.rt-stack:has(td.rr-muted) td.rt-actions { width: 1%; }
  .table.rt-stack:has(td.rr-muted) td.rt-actions .btn { display: flex; width: 100%; justify-content: center; white-space: nowrap; margin: 4px 0 !important; }
}
@media (min-width: 641px) and (max-width: 1199.98px) {
  .table.rt-stack thead { display: none; }
  .table.rt-stack, .table.rt-stack tbody, .table.rt-stack tr { display: block; width: 100%; }
  .table.rt-stack tr { border: 1px solid #e5e7eb; border-radius: .75rem; padding: .35rem .9rem; margin-bottom: .75rem; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
  .table.rt-stack td { display: block !important; overflow: hidden; border: 0; border-bottom: 1px solid #f0f1f3; text-align: right; white-space: normal !important; background: transparent; width: 100% !important; padding: .55rem 0 !important; }
  .table.rt-stack td:last-child { border-bottom: 0; }
  .table.rt-stack td[data-label]::before { content: attr(data-label); float: left; width: 34%; text-align: left; font-weight: 600; font-size: .8125rem; color: #6b7280; }
  .table.rt-stack td[data-label=""]::before, .table.rt-stack td.rt-actions::before { display: none; }
  .table.rt-stack td.rt-actions { display: flex !important; gap: .5rem; padding-top: .75rem !important; }
  .table.rt-stack td.rt-actions > * { flex: 1 1 0; margin: 0 !important; }
  .table.rt-stack td.rr-muted { word-break: break-all; }
  .table.rt-stack td.rt-actions .badge { align-self: center; flex: 0 0 auto; }
  .dataTable-container:has(> .table.rt-stack) { overflow-x: visible; }
  .table-responsive:has(> .table.rt-stack) { overflow-x: visible; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack { width: 100% !important; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack td { max-width: none !important; width: 100% !important; }
}

/* List of Tenants table fits the page */
@media (min-width: 1200px) {
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards { width: 100% !important; min-width: 0 !important; max-width: 100%; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards th { width: auto !important; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td { white-space: normal !important; max-width: none; padding-left: .55rem !important; padding-right: .55rem !important; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td:first-child { min-width: 115px; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td:nth-child(2) { min-width: 120px; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td:nth-child(3) { min-width: 150px; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td:nth-child(5) { min-width: 105px; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td:nth-child(6), html:not(#pp1):not(#pp2) body table.datatable.ev-cards td:nth-child(7) { white-space: nowrap !important; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td.rt-actions { width: 1% !important; white-space: nowrap !important; text-align: right; position: relative; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td.rt-actions > a.btn { width: auto !important; min-width: 34px !important; height: 32px !important; padding: 0 .55rem !important; justify-content: center; align-items: center; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td.rt-actions:has(.badge) { padding-bottom: 28px !important; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td.rt-actions .badge { position: absolute; right: .55rem; bottom: 8px; margin: 0 !important; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards td.rt-actions > a:not(.ev-rr-link), html:not(#pp1):not(#pp2) body table.datatable.ev-cards td.rt-actions:not(:has([data-rr-bal])) > a.ev-rr-link { display: inline-flex !important; vertical-align: middle; margin: 2px 1px !important; }
}
.rt-actions:has([data-rr-bal]) .ev-rr-link { display: none !important; }
@media (min-width: 1200px) { .ev-rr-txt { display: none; } }

/* Phones: buttons wrap instead of running off the card, no forced one-line cells, easier tapping */
@media (max-width: 640px) {
  .table.rt-stack td.text-nowrap, .table.rt-stack td { white-space: normal !important; }
  .table.rt-stack td.rt-actions { flex-wrap: wrap; }
  .table.rt-stack td.rt-actions > * { flex: 1 1 auto !important; min-width: 44px; }
  .table.rt-stack td.rt-actions > .badge { flex-basis: 100% !important; text-align: center; padding: 6px; }
  .table.rt-stack .rr-muted { white-space: normal !important; overflow-wrap: anywhere; }
  main .btn-sm, main .btn-group-sm > .btn { min-height: 38px; min-width: 38px; display: inline-flex; align-items: center; justify-content: center; }
  main .form-check-input { width: 1.25em; height: 1.25em; }
}

/* evct-v9: List of Tenants on laptop screens, other lists, phone action buttons */
@media (min-width: 1200px) {
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards:not(:has(a[href*="delete_fourty_day"])) td { min-width: 0 !important; }
}
@media (min-width: 1280px) and (max-width: 1499.98px) {
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards:has(a[href*="delete_fourty_day"]) th:nth-child(4), html:not(#pp1):not(#pp2) body table.datatable.ev-cards:has(a[href*="delete_fourty_day"]) td:nth-child(4) { display: none !important; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards:has(a[href*="delete_fourty_day"]) td, html:not(#pp1):not(#pp2) body table.datatable.ev-cards:has(a[href*="delete_fourty_day"]) th { font-size: .85rem; padding-left: .4rem !important; padding-right: .4rem !important; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards:has(a[href*="delete_fourty_day"]) td:first-child { min-width: 100px; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards:has(a[href*="delete_fourty_day"]) td:nth-child(2) { min-width: 105px; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards:has(a[href*="delete_fourty_day"]) td:nth-child(3) { min-width: 135px; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards:has(a[href*="delete_fourty_day"]) td:nth-child(5) { min-width: 90px; }
  html:not(#pp1):not(#pp2) body table.datatable.ev-cards:has(a[href*="delete_fourty_day"]) td.rt-actions > a.btn { min-width: 30px !important; height: 30px !important; padding: 0 .45rem !important; }
}
@media (max-width: 640px) {
  .table.rt-stack td:last-child { flex-wrap: wrap; row-gap: 6px; }
}
@media (min-width: 1200px) and (max-width: 1279.98px) {
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack thead { display: none !important; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack, html:not(#pp1):not(#pp2) body table.datatable.rt-stack tbody, html:not(#pp1):not(#pp2) body table.datatable.rt-stack tr { display: block !important; width: 100% !important; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack tr { border: 1px solid #e5e7eb; border-radius: .75rem; padding: .35rem .9rem; margin-bottom: .75rem; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack td { display: block !important; overflow: hidden; border: 0; border-bottom: 1px solid #f0f1f3; text-align: right; white-space: normal !important; width: 100% !important; min-width: 0 !important; max-width: none !important; padding: .55rem 0 !important; position: static !important; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack td:last-child { border-bottom: 0; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack td[data-label]::before { content: attr(data-label); float: left; width: 34%; text-align: left; font-weight: 600; font-size: .8125rem; color: #6b7280; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack td:last-child::before { display: none; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack td:last-child { display: flex !important; flex-wrap: wrap; gap: .5rem; padding-top: .75rem !important; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack td:last-child > * { flex: 1 1 0; margin: 0 !important; }
  html:not(#pp1):not(#pp2) body table.datatable.rt-stack td:last-child .badge { position: static !important; flex: 0 0 auto; align-self: center; }
  .dataTable-container:has(> table.datatable.rt-stack) { overflow-x: visible; }
}
/* evct-v10: Rent Roll as cards on the narrowest laptop screens */
@media (min-width: 1200px) and (max-width: 1279.98px) {
  .table.rt-stack:has(td.rr-muted) thead { display: none; }
  .table.rt-stack:has(td.rr-muted), .table.rt-stack:has(td.rr-muted) tbody, .table.rt-stack:has(td.rr-muted) tr { display: block; width: 100%; }
  .table.rt-stack:has(td.rr-muted) tr { border: 1px solid #e5e7eb; border-radius: .75rem; padding: .35rem .9rem; margin-bottom: .75rem; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
  .table.rt-stack:has(td.rr-muted) td { display: block !important; overflow: hidden; border: 0; border-bottom: 1px solid #f0f1f3; text-align: right; white-space: normal !important; background: transparent; width: 100% !important; max-width: none !important; min-width: 0 !important; padding: .55rem 0 !important; }
  .table.rt-stack:has(td.rr-muted) td:last-child { border-bottom: 0; }
  .table.rt-stack:has(td.rr-muted) td[data-label]::before { content: attr(data-label); float: left; width: 34%; text-align: left; font-weight: 600; font-size: .8125rem; color: #6b7280; }
  .table.rt-stack:has(td.rr-muted) td[data-label=""]::before, .table.rt-stack:has(td.rr-muted) td.rt-actions::before { display: none; }
  .table.rt-stack:has(td.rr-muted) td.rt-actions { display: flex !important; gap: .5rem; padding-top: .75rem !important; }
  .table.rt-stack:has(td.rr-muted) td.rt-actions > *, .table.rt-stack:has(td.rr-muted) td.rt-actions .btn { flex: 1 1 0; width: auto; margin: 0 !important; }
  .table-responsive:has(td.rr-muted) { overflow-x: visible; }
}
