/* Estates7 app panels (auth, dashboards, admin) — layered on Bootstrap 5 */
:root {
  --e7-primary: #6A4DE0; --e7-primary-hover: #5536C9; --e7-soft: #EFEAFE; --e7-lav: #f7f4ee;
  --e7-hero: #0d1a3a; --e7-ink: #18181a; --e7-muted: #5E6475; --e7-line: #e6e6ee;
  --bs-primary: #6A4DE0; --bs-primary-rgb: 106, 77, 224; --bs-link-color: #6A4DE0; --bs-link-hover-color: #5536C9; --bs-link-color-rgb: 106, 77, 224; --bs-link-hover-color-rgb: 85, 54, 201;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --bs-body-color: #18181a;
}
body { font-family: var(--bs-body-font-family); color: var(--e7-ink); background: var(--e7-lav); }
.btn-primary { --bs-btn-bg: var(--e7-primary); --bs-btn-border-color: var(--e7-primary); --bs-btn-hover-bg: var(--e7-primary-hover); --bs-btn-hover-border-color: var(--e7-primary-hover); --bs-btn-active-bg: var(--e7-primary-hover); --bs-btn-disabled-bg: var(--e7-primary); font-weight: 600; }
.btn-outline-primary { --bs-btn-color: var(--e7-primary); --bs-btn-border-color: #CBBCFA; --bs-btn-hover-bg: var(--e7-primary); --bs-btn-hover-border-color: var(--e7-primary); font-weight: 600; }
.btn { border-radius: 8px; }
.form-control, .form-select { border-radius: 8px; padding: .65rem .9rem; border-color: #d6d6de; }
.form-control:focus, .form-select:focus { border-color: var(--e7-primary); box-shadow: 0 0 0 .2rem rgba(106,77,224, .15); }
.form-check-input:checked { background-color: var(--e7-primary); border-color: var(--e7-primary); }
.card { border: 1px solid var(--e7-line); border-radius: 16px; }
.text-muted { color: var(--e7-muted) !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; color: inherit; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #c8a052, #e6cb8c); color: #0d1a3a; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.auth-form { display: flex; flex-direction: column; padding: 32px clamp(20px, 6vw, 80px); }
.auth-form .inner { width: min(440px, 100%); margin: auto; padding: 32px 0; }
.auth-form h1 { font-size: 30px; font-weight: 500; margin-bottom: 6px; }
.auth-side { position: relative; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(13,26,58,.55), rgba(13,26,58,.92)), url("../img/land/land-01.jpg") center/cover; }
.auth-side h2 { font-size: 34px; font-weight: 500; line-height: 1.2; }
.auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.auth-side li::before { content: "✓"; color: #7ff0cf; font-weight: 700; margin-right: 10px; }
.otp-input { letter-spacing: .6em; font-size: 26px; text-align: center; font-weight: 600; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* auth: image panel on the left, form on the right */
.auth-side { justify-content: space-between; background: linear-gradient(180deg, rgba(9,17,38,.35) 0%, rgba(9,17,38,.15) 40%, rgba(9,17,38,.88) 100%), url("../img/land/land-04.jpg") center/cover; }
.auth-side .brand { font-size: 18px; }
.auth-side h2 { font-family: "Fraunces", Georgia, serif; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.015em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.auth-side li { text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.auth-side li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(200,160,82,.25); color: #f0d79a; font-size: 12px; margin-right: 10px; }
.auth-form { background: #fff; }

/* ---------- panel ---------- */
.panel { display: grid; min-height: 100vh; } /* columns + sidebar: see sidebar.css */
.content { padding: 28px; max-width: 1200px; }
.stat-card { border-radius: 16px; background: #fff; border: 1px solid var(--e7-line); padding: 20px; height: 100%; }
.stat-card .num { font-size: 30px; font-weight: 600; line-height: 1.1; }
.stat-card .lbl { color: var(--e7-muted); font-size: 14px; }
.role-card { border-radius: 18px; background: #fff; border: 1px solid var(--e7-line); padding: 24px; height: 100%; display: flex; flex-direction: column; }
.role-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--e7-soft); color: var(--e7-primary); display: grid; place-items: center; margin-bottom: 14px; }
.hero-strip { border-radius: 20px; color: #fff; padding: 28px; background: linear-gradient(120deg, rgba(20,16,52,.94), rgba(106,77,224,.82)), url("../img/land/land-08.jpg") center/cover; }
.soon-card { border: 1px dashed #d6dcef; background: #fbf9f4; border-radius: 16px; padding: 18px; height: 100%; }
.table > :not(caption) > * > * { padding: .8rem .9rem; }
.table thead th { font-size: 13px; color: var(--e7-muted); font-weight: 600; background: #fafaf7; }
.code-pill { font-family: ui-monospace, Consolas, monospace; background: var(--e7-soft); color: var(--e7-primary); padding: 4px 10px; border-radius: 8px; font-weight: 700; }
@media (max-width: 991.98px) {
  .content { padding: 18px; }
}
@media (min-width: 901px) { .auth-form > .brand { visibility: hidden; } }

/* ---------- Payment form (phone-first): numbered steps, big amount, copyable bank details ---------- */
.pay-card { border-radius: 16px; }
.pay-step { display: flex; gap: 12px; align-items: flex-start; }
.pay-step-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--e7-soft); color: var(--e7-primary); font-weight: 700; font-size: 14px; }
.pay-amount { font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.pay-bank { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #dee2e6; border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.pay-bank:has(input:checked) { border-color: var(--e7-primary); box-shadow: 0 0 0 3px rgba(106,77,224,.12); }
.pay-detail { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; flex-wrap: wrap; }
.pay-detail > span { color: #6c757d; min-width: 52px; }
.pay-detail b { word-break: break-all; }
.min-w-0 { min-width: 0; }
/* Inputs at 16px stop iPhones from zooming in when a field is tapped. */
.pay-card .form-control, .pay-card .form-select { font-size: 16px; min-height: 48px; }
.pay-card input[type="number"] { -moz-appearance: textfield; }
.pay-card input[type="number"]::-webkit-outer-spin-button,
.pay-card input[type="number"]::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
/* Compact payment (Seller listing fee): amount + Instructions / Bank details / Update payment.
   Phone: amount on top, three buttons in one row. Desktop: amount left, buttons right. */
.pay-compact { border: 1px solid #ece8f7; box-shadow: 0 10px 28px rgba(76, 56, 160, .07); }
.pay-compact .card-body { padding: 14px 16px; }
.pay-compact .pay-amount { font-size: 24px; }
.pay-compact-top { display: flex; flex-direction: column; gap: 12px; }
/* Phone: Instructions + Bank details side by side, Update payment full width below. Tablet / desktop: all three centred in one row. */
.pay-compact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pay-compact-actions .btn { min-height: 40px; padding: 6px 4px; font-size: 13px; white-space: nowrap; }
.pay-compact-actions [data-pay-open="update"] { grid-column: 1 / -1; min-height: 44px; font-size: 14px; }
@media (min-width: 768px) {
  .pay-compact-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .pay-compact-actions { display: flex; justify-content: center; gap: 8px; }
  .pay-compact-actions .btn, .pay-compact-actions [data-pay-open="update"] { min-height: 40px; padding: 6px 16px; font-size: 13px; }
}
/* Premium bank card (Bank details popup): tinted card, aligned rows, filled Copy pills. */
.pay-bank-premium { padding: 14px; border-color: #e4def7; border-radius: 16px; background: linear-gradient(180deg, #fbfaff 0%, #fff 100%); box-shadow: 0 6px 18px rgba(76, 56, 160, .06); }
.pay-bank-premium:has(input:checked) { border-color: #b9a8f2; box-shadow: 0 0 0 3px rgba(106, 77, 224, .10), 0 6px 18px rgba(76, 56, 160, .08); }
.pay-bank-name { font-size: 15.5px; color: #1d1933; }
.pay-bank-rows { display: grid; gap: 8px; margin-top: 12px; }
.pay-bank-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid #ece8f7; border-radius: 12px; background: #fff; }
.pay-bank-label { font-size: 12.5px; color: #7d7893; }
.pay-bank-value { min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; font-weight: 700; letter-spacing: .04em; color: #1d1933; }
.pay-copy { flex: none; min-width: 64px; height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: #efeafe; color: #5536c9; font-size: 12.5px; font-weight: 700; transition: background-color .15s ease, transform .15s ease; }
.pay-copy:hover { background: #e3dbfd; }
.pay-copy:active { transform: scale(.96); }
.pay-copy:focus-visible { outline: 2px solid #6a4de0; outline-offset: 2px; }
.pay-amount-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: #f7f6fb; }
/* Payment popups: a bottom sheet on phones, a centred box on desktop. */
.pay-sheet { width: 100%; max-width: 100%; margin: auto 0 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: #fff; color: inherit; }
.pay-sheet::backdrop { background: rgba(20, 16, 40, .45); }
.pay-sheet-in { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; scrollbar-width: none; }
.pay-sheet-in::-webkit-scrollbar { display: none; }
.pay-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pay-sheet .form-control { font-size: 16px; min-height: 42px; }
.pay-sheet .mb-3 { margin-bottom: .65rem !important; }
.pay-sheet .pay-amount-row { padding: 10px; }
@media (min-width: 576px) { .pay-sheet { max-width: 460px; margin: auto; border-radius: 20px; } }
/* Admin payment page: cards with a heading bar, file rows with a View button, feedback + Seller reply. */
.pay-sec { padding: 0; overflow: hidden; }
.pay-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #e4e7ef; background: #f8f9fb; }
.pay-sec-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: #171a2b; }
.pay-sec-head > span { font-size: 12.5px; color: #6d7285; }
.pay-sec-body { padding: 16px 20px; }
/* Transaction details: label column + value column, one row per detail, thin row lines. */
.pay-detail-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.pay-detail-table th, .pay-detail-table td { padding: 11px 20px; border-bottom: 1px solid #eef0f5; vertical-align: top; text-align: left; }
.pay-detail-table tr:last-child th, .pay-detail-table tr:last-child td { border-bottom: 0; }
.pay-detail-table th { width: 34%; min-width: 96px; font-weight: 500; color: #6d7285; }
/* Narrow right column (Feedback & clearance): a slimmer label column so values get the width. */
.col-lg-5 .pay-detail-table th { width: 32%; padding-right: 10px; }
.col-lg-5 .pay-detail-table th, .col-lg-5 .pay-detail-table td { padding-left: 16px; padding-right: 16px; }
.pay-detail-table td { color: #171a2b; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .pay-detail-table th, .pay-detail-table td { padding: 10px 14px; } .pay-detail-table th { width: 38%; white-space: normal; } }
.pay-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e4e7ef; border-radius: 12px; background: #fff; }
.pay-file + .pay-file { margin-top: 8px; }
.pay-file-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f3f1f9; color: #5536c9; }
.pay-file-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; color: #2b2740; }
.pay-file-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-file-name small { font-size: 12px; color: #6d7285; }
.pay-file .btn { flex: none; min-width: 64px; }
.pay-fb { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef0f5; }
.pay-fb-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #4a4f63; text-transform: none; }
.pay-fb-label > span { font-weight: 400; color: #6d7285; }
.pay-fb-short { margin-bottom: 6px; padding: 6px 10px; border-radius: 8px; background: #fdecea; font-size: 13px; color: #8c1d18; }
.pay-fb-reply { margin-top: 10px; padding: 12px; border: 1px solid #e4e7ef; border-radius: 12px; background: #f8f9fb; }
/* Seller payment decision (Admin): context figures, numbered steps, result choices. */
.pd-context { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #e4e7ef; border-radius: 12px; background: #f8f9fb; }
.pd-context-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 14px; color: #171a2b; }
.pd-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.pd-figures div { min-width: 0; }
.pd-figures dt { font-size: 12px; font-weight: 400; color: #6d7285; }
.pd-figures dd { margin: 0; font-size: 14.5px; font-weight: 600; color: #171a2b; }
.pd-figures dd.is-due { color: #8a4b00; }
.pd-note { margin: 8px 0 0; font-size: 12.5px; color: #4a4f63; }
.pd-step { padding: 14px 0; border-top: 1px solid #eef0f5; }
.pd-step:first-of-type { border-top: 0; padding-top: 0; }
.pd-step h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14.5px; font-weight: 600; color: #171a2b; }
.pd-step h4 span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #171a2b; color: #fff; font-size: 12px; font-weight: 600; }
.pd-help { margin: 0 0 10px; font-size: 13px; color: #4a4f63; }
.pd-step.is-muted .form-control { background: #f3f4f7; }
.pd-choices { display: grid; gap: 8px; }
.pd-choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #e4e7ef; border-radius: 10px; background: #fff; cursor: pointer; }
.pd-choice .form-check-input { flex: none; margin-top: 3px; }
.pd-choice span { display: flex; flex-direction: column; min-width: 0; }
.pd-choice strong { font-size: 14px; font-weight: 600; color: #171a2b; }
.pd-choice small { font-size: 12.5px; color: #6d7285; line-height: 1.4; }
.pd-choice:has(input:checked) { border-color: #6a4de0; background: #f7f5ff; }
.pd-choice:has(input[value="not_found"]:checked) { border-color: #d64541; background: #fdf3f2; }
.pd-choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.pd-extra { margin-top: 12px; }
.pd-next { margin: 10px 0 0; font-size: 12.5px; color: #4a4f63; }
/* Feedback thread on a transaction (oldest first) and the follow-up actions under it. */
.pd-thread { padding: 4px 20px 0; }
.pd-round { padding: 12px 0; border-top: 1px solid #eef0f5; }
.pd-round-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #4a4f63; }
.pd-round-head > span + span { font-weight: 400; color: #6d7285; }
.pd-reply { margin-top: 10px; padding: 10px 12px; border: 1px solid #e4e7ef; border-radius: 10px; background: #f8f9fb; }
.pd-actions { margin: 4px 20px 20px; padding-top: 14px; border-top: 1px solid #e4e7ef; }
/* Clearance money box: credited in full (green) or less (red), plus what the property still owes. */
.pd-money { margin: 16px 20px 4px; padding: 12px 14px; border: 1px solid #c8ebdf; border-radius: 12px; background: #f2fbf8; }
.pd-money.is-less { border-color: #f5c6c2; background: #fdf3f2; }
.pd-money-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #4a4f63; }
.pd-money-row b { color: #171a2b; }
.pd-money-result { margin-top: 6px; font-size: 15px; font-weight: 700; color: #00574a; }
.pd-money.is-less .pd-money-result { color: #8c1d18; }
.pd-money-note { margin-top: 2px; font-size: 12.5px; color: #4a4f63; }
.pd-money-total { margin-top: 4px; padding-top: 6px; border-top: 1px dashed rgba(0, 0, 0, .12); }
/* Feedback answers: one Yes / No question per reason; answered rows show Yes (green) / No (red). */
.pd-answer { padding: 12px; border: 1px solid #e4e7ef; border-radius: 12px; background: #fff; }
.pd-q { padding: 8px 0; border-top: 1px solid #eef0f5; }
.pd-q:first-of-type { border-top: 0; }
.pd-q-text { font-size: 14px; font-weight: 600; color: #171a2b; }
.pd-q-opts { display: flex; gap: 16px; margin-top: 6px; font-size: 14px; }
.pd-q-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pd-q-money { margin-top: 8px; }
.pd-answers { border: 1px solid #e4e7ef; border-radius: 10px; overflow: hidden; }
.pd-answers th, .pd-answers td { padding: 8px 12px; font-size: 13px; }
.pd-yn { font-weight: 700; }
.pd-yn.is-yes { color: #00574a; }
.pd-yn.is-no { color: #8c1d18; }
.pd-accept-hint { padding: 8px 10px; border-radius: 8px; background: #eef4ff; color: #1f3a68; font-size: 12.5px; line-height: 1.45; }
/* Closed transaction (green) and the Close box under the feedback form. */
.pd-closed { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid #c8ebdf; border-radius: 12px; background: #f2fbf8; }
.pd-closed strong { font-size: 15px; color: #00574a; }
.pd-closed span { font-size: 13px; color: #3f6b5f; }
.pd-close-box { padding-top: 12px; border-top: 1px solid #eef0f5; }
/* Feedback card status: Open (amber), Solved (green), Note (grey). */
.pd-state { padding: 2px 10px; border: 1px solid #e4e7ef; border-radius: 99px; background: #fff; font-size: 12px; font-weight: 600; color: #4a4f63; }
.pd-state.is-open { border-color: #f3d9a4; background: #fff6e5; color: #8a4b00; }
.pd-state.is-solved { border-color: #bfe6da; background: #def4f0; color: #00574a; }
/* Feedback reasons: every option visible as a tick box; chosen reasons shown as labels in the thread. */
.pd-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pd-reason { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid #e4e7ef; border-radius: 10px; font-size: 13px; cursor: pointer; }
.pd-reason .form-check-input { flex: none; margin-top: 2px; }
.pd-reason:has(input:checked) { border-color: #6a4de0; background: #f7f5ff; }
@media (max-width: 575.98px) { .pd-reasons { grid-template-columns: 1fr; } }
.pd-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.pd-tag { padding: 2px 8px; border-radius: 99px; background: #fff4e0; color: #8a4b00; font-size: 12px; font-weight: 600; }
/* Open issues on a property (Accepted with feedback): amber list, one row per issue with an Open button. */
.pd-issues { border: 1px solid #f3d9a4; border-radius: 12px; background: #fffaf0; }
.pd-issues-head { padding: 8px 12px; border-bottom: 1px solid #f3d9a4; font-size: 13px; font-weight: 600; color: #8a4b00; }
.pd-issue { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.pd-issue + .pd-issue { border-top: 1px solid #f6e5bf; }
/* Keep example text readable: UTR fields show capitals as people type, but the hint stays in normal case. */
.text-uppercase::placeholder { text-transform: none; }

/* =====================================================================
   Shared phone-first UI (used by every module's screens)
   ===================================================================== */

/* Bottom tab bar: phones/tablets only. Sits above the iPhone home bar (safe-area inset). */
/* Phone bottom tab bar + app shell: see app-shell.css */

/* Loading placeholder shown while a section fetches its data. */
.e7-skeleton { height: 18px; border-radius: 8px; margin: 10px 0; background: linear-gradient(90deg, #eceae4 25%, #f6f4ef 50%, #eceae4 75%);
  background-size: 200% 100%; animation: e7-shimmer 1.2s ease-in-out infinite; }
.e7-skeleton.short { width: 60%; }
.e7-skeleton.block { height: 160px; border-radius: 14px; }
@keyframes e7-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .e7-skeleton { animation: none; } }

/* One section failed to load: only this box shows, the rest of the page keeps working. */
.e7-unavailable { padding: 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #f3dca3; text-align: center; }
.e7-unavailable p { margin: 0 0 10px; font-size: 14px; }

/* Numbered "do this, then this" instructions — short command sentences, never paragraphs. */
.e7-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 10px; }
.e7-steps li { counter-increment: step; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.e7-steps li::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--e7-soft); color: var(--e7-primary); font-weight: 700; font-size: 13px; margin-top: 1px; }

/* Main action button pinned to the bottom of the screen on phones. */
.sticky-action { position: sticky; bottom: 12px; z-index: 30; }

/* Comfortable touch targets and no iPhone zoom on focus, across all dashboard forms. */
.content .form-control, .content .form-select { font-size: 16px; min-height: 48px; }
.content .btn-lg { min-height: 52px; }
.content .form-check-input { width: 1.25em; height: 1.25em; }
/* Phones: one-line page title in the top bar, trimmed with "…" when long. */

/* Never let one wide element (long word, table, code) stretch the page sideways: the main column may shrink. */
.main { min-width: 0; }
@media (max-width: 991.98px) { .panel { grid-template-columns: minmax(0, 1fr); } }
.content { overflow-wrap: anywhere; }

/* Property stepper (Seller and Admin): Profile → Seller approval → Submitted → Fee → Documents → Live, plus the next action. */
.pj { padding: 14px 16px; border: 1px solid #e4e7ef; }
.pj-steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; }
.pj-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.pj-steps li + li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: #e6e2f2; z-index: 0; }
.pj-steps li.is-done + li::before, .pj-steps li.is-done::before { background: #00a37f; }
.pj-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d9d4ef; background: #fff; font-size: 12px; font-weight: 700; color: #7d7893; }
.pj-steps li.is-done .pj-dot { border-color: #00a37f; background: #00a37f; color: #fff; }
.pj-steps li.is-now .pj-dot { border-color: #6a4de0; background: #f3effe; color: #5536c9; box-shadow: 0 0 0 4px rgba(106, 77, 224, .14); }
.pj-steps li.is-stopped .pj-dot { border-color: #d64541; background: #fdecea; color: #b3261e; }
.pj-label { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: #7d7893; overflow-wrap: anywhere; }
.pj-steps li.is-done .pj-label, .pj-steps li.is-now .pj-label { color: #171a2b; }
.pj-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef0f5; font-size: 14px; }
.pj-next-k { color: #6d7285; }
@media (max-width: 575.98px) {
  .pj-label { font-size: 10px; }
  .pj-dot { width: 24px; height: 24px; font-size: 11px; }
  .pj-steps li + li::before { top: 11px; }
}

/* ---------- Admin property case page (money summary + combined history) ---------- */
.pc-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-money > div { padding: 10px 12px; border: 1px solid #eef0f5; border-radius: 10px; background: #fafbfd; }
.pc-money span { display: block; font-size: 12px; color: #6d7285; }
.pc-money strong { font-size: 16px; color: #171a2b; }
.pc-tl { list-style: none; margin: 0; padding: 0; }
.pc-tl li { position: relative; padding: 0 0 12px 20px; }
.pc-tl li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #c9c3e6; }
.pc-tl li + li::after { content: ""; position: absolute; left: 8px; top: -6px; height: 12px; width: 1px; background: #e6e2f2; }
.pc-tl li.is-payment::before { background: #6a4de0; }
.pc-tl li.is-feedback::before { background: #e0a100; }
.pc-tl li.is-reply::before { background: #00a37f; }
.pc-tl-text { font-size: 13.5px; color: #171a2b; overflow-wrap: anywhere; }
.pc-tl-meta { font-size: 12px; color: #6d7285; }

/* ---------- Payment case (Admin, owner 30 Oct 2026): summary, entries, review form, feedback rounds ---------- */
.fc-sum { padding: 18px 20px; }
.fc-sum-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fc-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fc-nums > div, .fc-next > div { padding: 10px 12px; border: 1px solid #eef0f5; border-radius: 10px; background: #fafbfd; min-width: 0; }
.fc-nums span, .fc-next span { display: block; font-size: 12px; color: #6d7285; }
.fc-nums strong { font-size: 18px; color: #171a2b; }
.fc-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 8px; margin-top: 8px; }
.fc-next strong { font-size: 14px; color: #171a2b; }
.fc-note { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #fff6e5; color: #8a4b00; font-size: 13px; }
.fc-pill { flex-shrink: 0; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef0f5; color: #4a4f63; }
.fc-pill.is-ok { background: #def4f0; color: #00574a; }
.fc-pill.is-wait { background: #fff6e5; color: #8a4b00; }
.fc-pill.is-due { background: #fdecea; color: #8c1d18; }
.fc-pill.is-off { background: #eef0f5; color: #6d7285; }
.fc-entry { padding: 14px 20px; border-bottom: 1px solid #eef0f5; }
.fc-entry:last-child { border-bottom: 0; }
.fc-entry-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.fc-entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.fc-entry-grid span { display: block; color: #6d7285; font-size: 12px; }
.fc-flag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #fdecea; color: #8c1d18; font-size: 12px; font-weight: 600; }
.fc-ledger { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #f2fbf8; color: #3f6b5f; }
.fc-verify { padding: 12px; margin-bottom: 8px; border: 1px solid #eef0f5; border-radius: 10px; }
.fc-verify-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.fc-after { padding: 8px 12px; border-radius: 10px; background: #f3effe; color: #3d2a99; }
.fc-fix { padding: 12px; border: 1px solid #f3d9a4; border-radius: 10px; background: #fffaf0; }
.fc-what { color: #4a4f63; }
.fc-round { margin-top: 10px; border: 1px solid #e4e7ef; border-radius: 12px; }
.fc-round > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; }
.fc-round > summary::-webkit-details-marker { display: none; }
.fc-round[open] > summary { border-bottom: 1px solid #eef0f5; }
.fc-round-sum { flex: 1; min-width: 0; font-size: 13px; color: #6d7285; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-step { padding: 10px 14px; border-bottom: 1px solid #f3f4f8; }
.fc-step:last-child { border-bottom: 0; }
.fc-step-k { margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #6d7285; }
.fc-msg { margin: 6px 0 0; font-size: 14px; color: #171a2b; }
.fc-tl-item { margin-top: 10px; padding: 10px 14px; border-left: 3px solid #d9d4ef; background: #fafbfd; border-radius: 0 10px 10px 0; }
.fc-tl-item.is-ok { border-left-color: #00a37f; }
.fc-tl-item.is-now { border-left-color: #6a4de0; }
@media (max-width: 575.98px) {
  .fc-nums, .fc-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-next { grid-template-columns: 1fr; }
  .fc-nums strong { font-size: 16px; }
  .fc-entry { padding: 12px 14px; }
}

/* ---------- Document verification (Admin): the Problem button opens a small form under the row ---------- */
.dv-problem > summary { list-style: none; }
.dv-problem > summary::-webkit-details-marker { display: none; }
.dv-problem[open] { flex-basis: 100%; }
.dv-problem-form { margin-top: 8px; padding: 10px 12px; border: 1px solid #f5c6c2; border-radius: 10px; background: #fdf3f2; max-width: 420px; }

/* ---------- Easy payment check (owner, 31 Oct 2026): one question per payment ---------- */
.fc-check { padding: 12px 14px; margin-bottom: 10px; border: 1px solid #e4e7ef; border-radius: 12px; }
.fc-check-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.fc-check-head strong { font-size: 18px; color: #171a2b; }
.fc-q { margin: 10px 0 6px; font-size: 13.5px; font-weight: 600; color: #171a2b; }
.fc-choice, .fc-ticks { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-choice label, .fc-ticks label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #e4e7ef; border-radius: 10px; background: #fff; font-size: 14px; cursor: pointer; }
.fc-choice label:has(input:checked), .fc-ticks label:has(input:checked) { border-color: #6a4de0; background: #f3effe; }
.fc-choice .form-check-input, .fc-ticks .form-check-input { margin: 0; }
.fc-problem { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: #fffaf0; border: 1px solid #f3d9a4; }
.fc-received { margin-top: 8px; max-width: 260px; }
.fc-ref { margin-top: 10px; max-width: 320px; }

/* ---------- Payment page, short version (owner, 31 Oct 2026) ---------- */
.fc-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: #6d7285; }
.fc-line b { font-size: 16px; color: #171a2b; }
.fc-line-next { flex-basis: 100%; color: #4a4f63; }
.fc-fb { padding: 10px 12px; border: 1px solid #e4e7ef; border-radius: 12px; }
.fc-fb + .fc-fb { margin-top: 10px; }
.fc-fb.is-open { border-color: #f3d9a4; background: #fffcf5; }
.fc-fb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fc-fb-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 4px 0; font-size: 14px; color: #171a2b; }
.fc-fb-row > span { font-size: 12.5px; color: #6d7285; padding-top: 2px; }
.fc-hist { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: #171a2b; }
.fc-hist li { padding: 5px 0; border-bottom: 1px solid #f3f4f8; }
.fc-hist li:last-child { border-bottom: 0; }
.fc-hist li > span { display: inline-block; min-width: 104px; color: #6d7285; font-size: 12.5px; }
.fc-wait { padding: 12px 14px; border: 1px dashed #d9d4ef; border-radius: 12px; background: #fafbfd; font-size: 14px; color: #4a4f63; }
.fc-solve { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0e3c4; }
.fc-solve-head { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: #171a2b; }
.fc-solve .fc-check { border-color: #ece6d6; background: #fff; }

/* Password just changed: shown once to copy (owner, 4 Nov 2026). */
.pw-done { padding: 12px 14px; border: 1px solid #bfe6da; border-radius: 12px; background: #f2fbf8; }
.pw-done-value { padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid #dfe9e5; font-size: 15px; color: #171a2b; letter-spacing: .04em; }

/* ---------- My profile (owner, 4 Nov 2026): premium — tinted panel, header card, bordered sections, small hints ---------- */
.pf { max-width: 980px; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, #f6f3ff 0%, #faf9fd 220px); border: 1px solid #ece8f7; display: grid; gap: 14px; }
.pf-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #ece8f7; box-shadow: 0 8px 24px rgba(76, 56, 160, .06); }
.pf-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e3dcfa; }
.pf-initials { display: grid; place-items: center; background: #ece6fd; color: #5536c9; font-size: 22px; font-weight: 800; }
.pf-name { font-size: 17px; font-weight: 700; color: #1d1a2e; line-height: 1.25; }
.pf-email { font-size: 14px; color: #4a4560; overflow-wrap: anywhere; }
.pf-chip { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: #def4f0; color: #00574a; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.pf-welcome { padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px dashed #d9d0f6; font-size: 13.5px; color: #3d2a99; }
.pf-sec { margin: 0; padding: 16px 18px 18px; border: 1px solid #e6e1f4; border-radius: 14px; background: #fff; min-width: 0; }
.pf-sec > legend, .pf-title { float: left; width: 100%; margin: 0 0 2px; padding: 0; font-size: 15px; font-weight: 700; color: #1d1a2e; display: flex; align-items: center; gap: 8px; }
.pf-sec > legend::before, .pf-title::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: #6a4de0; }
.pf-sec > legend + * { clear: left; }
.pf-sec-sub { margin: 0 0 14px; font-size: 12.5px; color: #8b8799; }
.pf .form-label { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #3a3650; }
.pf .form-control, .pf .form-select, .pf .input-group-text { min-height: 44px; border-color: #e1dcef; }
.pf .form-control:disabled { background: #f7f6fb; color: #6b6880; }
.pf-hint { margin-top: 4px; font-size: 12px; line-height: 1.45; color: #8b8799; }
.pf-opt { margin-left: 2px; padding: 0 6px; border-radius: 99px; background: #f1eff7; color: #8b8799; font-size: 11px; font-weight: 600; }
.pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 4px 2px 2px; }
.pf-actions .pf-hint { margin: 0; max-width: 60ch; }
@media (max-width: 575.98px) {
  .pf { padding: 12px; gap: 12px; border-radius: 16px; }
  .pf-sec { padding: 14px; }
  .pf-head { padding: 14px; }
}

/* "Username fixed on 4 Nov 2026" (owner, 4 Nov 2026). */
.pf-fixed { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 10px; border-radius: 99px; background: #f1edfd; color: #5536c9; font-size: 12px; font-weight: 600; }
.pf-fixed::before { content: ""; width: 10px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Role application: profile summary card, premium (owner, 4 Nov 2026) ---------- */
.pi { border: 1px solid #e3ddf5; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 10px 28px rgba(76, 56, 160, .07); }
.pi-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #f4f0ff 0%, #fbfaff 70%); border-bottom: 1px solid #ece8f7; }
.pi-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #5536c9; color: #fff; font-size: 17px; font-weight: 800; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #ddd3fb; }
.pi-name { margin: 0; font-size: 15.5px; font-weight: 700; color: #1d1a2e; line-height: 1.3; }
.pi-chip { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: #def4f0; color: #00574a; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.pi-sub { font-size: 12px; color: #8b8799; }
.pi-edit { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 600; color: #5536c9; text-decoration: none; padding: 6px 12px; border: 1px solid #ddd3fb; border-radius: 99px; background: #fff; }
.pi-edit:hover, .pi-edit:focus-visible { background: #f1edfd; }
.pi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.pi-grid > div { padding: 12px 16px; min-width: 0; border-top: 1px solid #f1eff7; }
.pi-grid > div:nth-child(-n+3) { border-top: 0; }
.pi-grid > div:nth-child(1), .pi-grid > div:nth-child(2) { border-right: 1px solid #f1eff7; }
.pi-full { grid-column: 1 / -1; }
.pi-grid dt { margin-bottom: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: #8b8799; }
.pi-grid dd { margin: 0; font-size: 14.5px; font-weight: 600; color: #1d1a2e; overflow-wrap: anywhere; line-height: 1.45; }
.pi-user { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 10px; border: 1.5px solid #9fdcc8; border-radius: 99px; background: #f2fbf8; color: #0b4f40; font-weight: 700; }
.pi-tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #00a37f; color: #fff; font-size: 11px; font-weight: 800; }
.pi-note { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; color: #8b8799; }
@media (max-width: 575.98px) {
  .pi-head { flex-wrap: wrap; }
  .pi-edit { margin-left: 54px; }
  .pi-grid { grid-template-columns: 1fr 1fr; }
  .pi-grid > div { border-right: 0 !important; border-top: 1px solid #f1eff7 !important; }
  .pi-grid > div:first-child { grid-column: 1 / -1; border-top: 0 !important; }
  .pi-grid > div:nth-child(2) { border-right: 1px solid #f1eff7 !important; }
}

/* ---------- Upload row, everywhere a file is chosen (owner, 4 Nov 2026) — built by forms.js ---------- */
.e7-up { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 8px 8px 8px 14px; border: 1px solid #ebe8f3; border-radius: 14px; background: #fff; cursor: pointer; }
.e7-up:hover { border-color: #d9d0f6; }
.e7-up:focus-within { border-color: #6a4de0; box-shadow: 0 0 0 3px rgba(106, 77, 224, .15); }
.e7-up.is-invalid { border-color: #d64541; }
.e7-up-ic { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9c2dd; }
.e7-up.is-done .e7-up-ic { border-color: #00a37f; background: #00a37f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.e7-up-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #2b2740; line-height: 1.3; overflow-wrap: anywhere; }
.e7-up-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; line-height: 1; pointer-events: none; }

/* ---------- Document viewer, the same everywhere (owner, 4 Nov 2026) — built by core/viewer.js ---------- */
.e7-viewer { width: min(900px, calc(100% - 2rem)); height: min(86vh, 760px); padding: 0; border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 80px rgba(20, 16, 52, .28); }
.e7-viewer::backdrop { background: rgba(20, 16, 52, .58); backdrop-filter: blur(3px); }
.e7-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid #ebe8f3; }
.e7-viewer-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; color: #1d1a2e; }
.e7-viewer-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.e7-viewer-download { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #6d4ce8, #4f2cc7); box-shadow: 0 8px 18px rgba(91, 58, 214, .24); transition: transform .2s ease, box-shadow .2s ease; }
.e7-viewer-download:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(91, 58, 214, .32); }
.e7-viewer-frame { display: block; width: 100%; height: calc(100% - 67px); border: 0; background: #f5f4f9; }
@media (max-width: 575.98px) { .e7-viewer { width: calc(100% - 1rem); height: 88vh; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .e7-viewer-download { transition: none; } }

/* Document tables: serial no · name with room · date with the time below in small letters. */
.doc-table th, .doc-table td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
.doc-table .doc-no { width: 36px; color: #8b8799; font-variant-numeric: tabular-nums; }
.doc-table .doc-name { font-weight: 500; color: #1d1a2e; min-width: 180px; }
.doc-table td.doc-when { width: 1%; white-space: nowrap; font-size: 13.5px; color: #1d1a2e; }
.doc-table td.doc-when span { display: block; font-size: 11.5px; color: #8b8799; }

/* Application decision: what was sent for correction (owner, 4 Nov 2026). */
.ap-fix { padding: 12px 14px; border: 1px solid #f3d9a4; border-radius: 12px; background: #fffaf0; }
.ap-fix-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.ap-fix-head strong { font-size: 14.5px; color: #8a4b00; }
.ap-fix-head span { font-size: 12px; color: #8b8799; }
.ap-fix-note { margin: 8px 0 0; font-size: 14px; color: #1d1a2e; }
.ap-fix-k { margin-top: 10px; font-size: 12px; font-weight: 600; color: #6d7285; }
.ap-fix-list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ap-fix-list li { padding: 3px 10px; border-radius: 99px; background: #fff; border: 1px solid #f0c98a; font-size: 13px; font-weight: 600; color: #8a4b00; }
.ap-fix-wait { margin: 10px 0 0; font-size: 12px; color: #8b8799; }


.doc-table td.doc-name .doc-hint { display: block; font-size: 12px; font-weight: 400; color: #8b8799; }

/* ---------- Admin → application: the applicant file (owner, 4 Nov 2026) ----------
   Name + badges on top; details grouped by category (Contact, bank, Address) in soft bordered panels. */
.ap-file { background: #fff; border: 1px solid #e6e2f1; border-radius: 16px; padding: 20px 22px 22px; }
.ap-file-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ap-file-name { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.25; color: #1d1a2e; text-wrap: balance; }
.ap-file-meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 5px 0 0; font-size: 13px; color: #6b6880; }
.ap-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; }
.ap-badge { display: inline-flex; align-items: center; padding: 3px 11px; border: 1px solid #ddd8ec; border-radius: 99px; background: #f6f5fa; font-size: 12.5px; font-weight: 600; color: #3a3650; white-space: nowrap; }
.ap-badge.is-sm { padding: 1px 8px; font-size: 11px; vertical-align: 1px; margin-left: 6px; }
.ap-badge.is-warning { border-color: #f1d49c; background: #fff7e8; color: #8a4b00; }
.ap-badge.is-success { border-color: #b9e3d5; background: #eefaf5; color: #00574a; }
.ap-badge.is-danger { border-color: #f2c4c0; background: #fdf1f0; color: #8c1d18; }
.ap-badge.is-primary { border-color: #d6ccf7; background: #f4f1fe; color: #3d2a99; }
.ap-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ap-group { min-width: 0; padding: 12px 14px; border: 1px solid #ebe8f3; border-radius: 12px; background: #fbfaff; }
.ap-group-wide { grid-column: 1 / -1; }
/* Contact spans the card so the email has room; its rows sit side by side. */
.ap-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; }
.ap-contact > .ap-group-title { grid-column: 1 / -1; }
.ap-contact > .ap-row:first-of-type { grid-column: span 2; }
.ap-group-title { margin: 0 0 8px; padding-bottom: 7px; border-bottom: 1px solid #ebe8f3; font-size: 13px; font-weight: 600; color: #5536c9; }
.ap-row { display: grid; gap: 1px; padding: 5px 0; font-size: 14.5px; }
.ap-k { color: #6b6880; font-size: 12px; }
.ap-v { color: #1d1a2e; font-weight: 500; overflow-wrap: anywhere; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ap-chip { display: inline-flex; gap: 6px; padding: 4px 10px; border: 1px solid #ddd8ec; border-radius: 8px; background: #fff; font-size: 12.5px; color: #6b6880; }
.ap-chip b { font-weight: 600; color: #1d1a2e; }
.ap-num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ap-address { margin: 0; font-size: 14px; line-height: 1.55; color: #1d1a2e; max-width: 70ch; }
@media (max-width: 767.98px) {
  .ap-file { padding: 16px; }
  .ap-file-head { flex-direction: column; gap: 10px; }
  .ap-badges { justify-content: flex-start; }
  .ap-groups { grid-template-columns: 1fr; }
  .ap-contact { grid-template-columns: 1fr; }
  .ap-contact > .ap-row:first-of-type { grid-column: auto; }
}

/* ---------- My roles: role cards (owner, 4 Nov 2026) ---------- */
.rc { gap: 14px; padding: 22px; }
.rc-head { display: flex; align-items: center; gap: 12px; }
.rc-head .ic { margin: 0; width: 44px; height: 44px; flex: none; }
.rc-title { margin: 0; font-size: 18px; font-weight: 600; color: #1d1a2e; }
.rc-badge { margin-left: auto; flex: none; padding: 3px 11px; border: 1px solid #ddd8ec; border-radius: 99px; background: #f6f5fa; font-size: 12px; font-weight: 600; color: #3a3650; white-space: nowrap; }
.rc-badge.is-warning { border-color: #f1d49c; background: #fff7e8; color: #8a4b00; }
.rc-badge.is-success { border-color: #b9e3d5; background: #eefaf5; color: #00574a; }
.rc-badge.is-danger { border-color: #f2c4c0; background: #fdf1f0; color: #8c1d18; }
.rc-badge.is-primary { border-color: #d6ccf7; background: #f4f1fe; color: #3d2a99; }
.rc-desc { margin: 0; font-size: 14px; line-height: 1.55; color: #6b6880; }
.rc-k { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #3a3650; }
.rc-needs ul, .rc-fix-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rc-needs li { padding: 3px 10px; border: 1px solid #e6e2f1; border-radius: 8px; background: #fbfaff; font-size: 12.5px; color: #4a4560; }
.rc-info { padding: 9px 12px; border: 1px solid #e6e2f1; border-radius: 10px; background: #fbfaff; font-size: 13px; color: #4a4560; }
.rc-fix { padding: 12px 14px; border: 1px solid #f1d49c; border-radius: 12px; background: #fffaf0; }
.rc-fix-title { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #8a4b00; }
.rc-fix-list li { padding: 3px 10px; border: 1px solid #f1d49c; border-radius: 8px; background: #fff; font-size: 12.5px; font-weight: 600; color: #8a4b00; }
.rc-fix-note { margin: 8px 0 0; font-size: 13.5px; color: #4a4560; }
.rc-action { margin-top: auto; padding-top: 4px; }
.rc-wait { font-size: 13px; color: #6b6880; }
/* Fix and resubmit pop-up (owner, 4 Nov 2026). */
.rc-sheet { width: min(560px, calc(100% - 2rem)); max-height: 88vh; padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 80px rgba(20, 16, 52, .28); }
.rc-sheet::backdrop { background: rgba(20, 16, 52, .55); backdrop-filter: blur(3px); }
.rc-sheet form { display: flex; flex-direction: column; max-height: 88vh; }
.rc-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #ebe8f3; }
.rc-sheet-title { margin: 0; font-size: 16px; font-weight: 600; color: #1d1a2e; }
.rc-sheet-sub { margin: 2px 0 0; font-size: 12.5px; color: #6b6880; }
.rc-sheet-body { padding: 16px 18px; overflow-y: auto; }
.rc-sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid #ebe8f3; background: #fbfaff; }
/* My roles → Your updates: a correction you sent (owner, 4 Nov 2026). */
.rc-updates-title { margin: 28px 0 12px; font-size: 17px; font-weight: 600; color: #1d1a2e; }
.rc-update { padding: 18px 20px; border: 1px solid #e6e2f1; border-radius: 16px; background: #fff; }
.rc-update-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rc-update-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1d1a2e; }
.rc-update-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.rc-update-step { padding: 12px 14px; border: 1px solid #ebe8f3; border-radius: 12px; background: #fbfaff; min-width: 0; }
.rc-update-step p { margin: 0; font-size: 14px; color: #1d1a2e; }
.rc-update-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #5536c9; }
.rc-update-k span { font-weight: 400; color: #8b8799; }
.rc-sent-list li { border-color: #b9e3d5; background: #eefaf5; color: #00574a; }
.rc-update-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 13px; color: #6b6880; }
@media (max-width: 575.98px) { .rc-update-steps { grid-template-columns: 1fr; } }
/* Your updates → the bank details you sent. */
.rc-bank { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.rc-bank > div { padding: 8px 10px; border: 1px solid #ebe8f3; border-radius: 10px; background: #fff; min-width: 0; }
.rc-bank dt { font-size: 11.5px; font-weight: 500; color: #8b8799; }
.rc-bank dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; color: #1d1a2e; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .rc-bank { grid-template-columns: 1fr; } }
/* Your updates → Requested next to What you sent (owner, 4 Nov 2026). */
.rc-update-dates { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 6px; font-size: 12.5px; color: #8b8799; }
.rc-update-note { margin: 10px 0 0; font-size: 14px; color: #1d1a2e; }
.rc-pairs { margin-top: 12px; border: 1px solid #ebe8f3; border-radius: 12px; overflow: hidden; }
.rc-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid #f1eff6; font-size: 14px; color: #1d1a2e; }
.rc-pair:first-child { border-top: 0; }
.rc-pair-head { background: #fbfaff; font-size: 12px; font-weight: 600; color: #6b6880; padding-top: 8px; padding-bottom: 8px; }
.rc-pair > span { min-width: 0; overflow-wrap: anywhere; }
.rc-pair > span:first-child { font-weight: 600; }
.rc-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; background: #00a37f; color: #fff; font-size: 11px; }

/* Seller welcome pop-up after approval (owner, 5 Nov 2026). */
.sw-pop { width: min(440px, calc(100% - 2rem)); padding: 26px 24px 20px; border: 0; border-radius: 20px; text-align: center; box-shadow: 0 24px 80px rgba(20, 16, 52, .3); }
.sw-pop::backdrop { background: rgba(20, 16, 52, .55); backdrop-filter: blur(3px); }
.sw-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #00a37f; color: #fff; box-shadow: 0 0 0 8px #e3f5ef; }
.sw-title { margin: 0; font-size: 19px; font-weight: 700; color: #1d1a2e; text-wrap: balance; }
.sw-text { margin: 6px 0 0; font-size: 14.5px; color: #4a4560; }
.sw-steps { margin: 16px 0 0; padding: 12px 14px; list-style: none; text-align: left; border: 1px solid #ebe8f3; border-radius: 12px; background: #fbfaff; display: grid; gap: 8px; counter-reset: sw; }
.sw-steps li { counter-increment: sw; display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13.5px; color: #3a3650; }
.sw-steps li::before { content: counter(sw); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1edfd; color: #5536c9; font-size: 12px; font-weight: 700; }
.sw-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) { .sw-pop[open] { animation: sw-in .25s ease-out; } }
@keyframes sw-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- How to pay pop-up (owner, 5 Nov 2026): timeline steps, amount with Copy, trust note ----------
   Every rule is scoped to its own class, so nothing leaks onto the number circles. */
.pay-how-sub { margin: -2px 0 16px; font-size: 13px; color: #6b6880; }
.pay-how { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.pay-how::before { content: ""; position: absolute; left: 14px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: #ece8f7; }
.pay-how-step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.pay-how-n { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #5536c9; color: #fff;
  font-size: 13px; font-weight: 700; line-height: 30px; text-align: center; box-shadow: 0 0 0 4px #fff; }
.pay-how-body { min-width: 0; padding-top: 4px; }
.pay-how-t { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: #1d1a2e; }
.pay-how-d { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: #6b6880; }
.pay-how-d b { font-weight: 600; color: #3a3650; }
.pay-how-amt { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 260px; margin-top: 8px; padding: 8px 8px 8px 14px;
  border: 1px solid #e3ddf5; border-radius: 12px; background: #fbfaff; }
.pay-how-amt-v { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #1d1a2e; font-variant-numeric: tabular-nums; }
.pay-how-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 11px 14px; border: 1px solid #c8ebdf; border-radius: 12px; background: #f2fbf8; color: #00574a; font-size: 12.5px; line-height: 1.45; }
.pay-how-note svg { flex: none; margin-top: 1px; }
.pay-how-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 575.98px) { .pay-how-actions .btn { flex: 1 1 0; } .pay-how-amt { max-width: none; } }
.fc-proof-note { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #b3261e; }

/* ---------- Feedback card as an exchange (owner, 5 Nov 2026): Estates7 asked → Seller replied ---------- */
.fb2 { padding: 14px 16px; border: 1px solid #e6e2f1; border-radius: 14px; background: #fff; }
.fb2 + .fb2 { margin-top: 12px; }
.fb2.is-wait { border-color: #f1d49c; box-shadow: 0 6px 18px rgba(224, 161, 0, .08); }
.fb2.is-due { border-color: #d6ccf7; }
.fb2-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fb2-title { margin: 0; font-size: 15.5px; font-weight: 700; color: #1d1a2e; }
.fb2-badge { flex: none; padding: 3px 11px; border: 1px solid #ddd8ec; border-radius: 99px; background: #f6f5fa; font-size: 12px; font-weight: 600; color: #3a3650; }
.fb2-badge.is-wait { border-color: #f1d49c; background: #fff7e8; color: #8a4b00; }
.fb2-badge.is-due { border-color: #d6ccf7; background: #f4f1fe; color: #3d2a99; }
.fb2-badge.is-ok { border-color: #b9e3d5; background: #eefaf5; color: #00574a; }
.fb2-badge.is-off { color: #6b6880; }
.fb2-part { margin-top: 12px; padding: 12px 14px; border: 1px solid #f0eef6; border-radius: 12px; background: #fbfaff; }
.fb2-k { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.fb2-k span { font-size: 12.5px; font-weight: 600; color: #5536c9; }
.fb2-k time { font-size: 12px; color: #8b8799; }
.fb2-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fb2-chips li { padding: 3px 10px; border: 1px solid #f1d49c; border-radius: 8px; background: #fff; font-size: 12.5px; font-weight: 600; color: #8a4b00; }
.fb2-line { display: flex; gap: 8px; margin: 8px 0 0; font-size: 13.5px; color: #6b6880; }
.fb2-line b { color: #1d1a2e; }
.fb2-quote { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid #ddd8ec; font-size: 14px; color: #1d1a2e; }
.fb2-btn { margin-top: 10px; }
.fb2-empty { margin: 0; font-size: 13.5px; color: #8b8799; }
.fb2-sent { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.fb2-sent li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #1d1a2e; overflow-wrap: anywhere; }
.fb2-sent li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #00a37f; color: #fff; font-size: 11px; font-weight: 800; }
.fb2-sent s { color: #8b8799; }
.fb2-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fb2 .fc-solve { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0eef6; }
/* Seller replied: one clean row per thing sent — value big and bold, old value small and struck under it. */
.fb2-sent { gap: 0; }
.fb2-sent li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #efedf5; }
.fb2-sent li:first-child { border-top: 0; padding-top: 2px; }
.fb2-sent li::before { margin-top: 1px; }
.fb2-sent-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fb2-sent-main > span { font-size: 13.5px; color: #4a4560; }
.fb2-new { font-size: 17px; font-weight: 700; color: #1d1a2e; letter-spacing: .01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fb2-sent-main s, .fb2-sent-main small { font-size: 12px; color: #8b8799; overflow-wrap: anywhere; }
.fb2-sent-act { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (max-width: 400px) { .fb2-sent li { flex-wrap: wrap; } .fb2-sent-act { width: 100%; justify-content: flex-start; padding-left: 26px; } }
/* Seller replied: new value (big, bold) and old value (small, struck) on the right of the row. */
.fb2-sent-val { flex: none; max-width: 60%; display: grid; justify-items: end; gap: 1px; text-align: right; }
.fb2-sent-val s, .fb2-sent-val small { font-size: 12px; color: #8b8799; overflow-wrap: anywhere; }
@media (max-width: 400px) { .fb2-sent-val { max-width: none; width: 100%; justify-items: start; text-align: left; padding-left: 26px; } }

/* Feedback card: one card, three sections divided by thin lines (owner, 5 Nov 2026). */
.fb2 { padding: 0; overflow: hidden; }
.fb2-head { padding: 12px 16px; border-bottom: 1px solid #efedf5; align-items: flex-start; }
.fb2-when { display: block; margin-top: 1px; font-size: 12px; color: #8b8799; }
.fb2-part { margin: 0; padding: 12px 16px; border: 0; border-radius: 0; background: transparent; }
.fb2-part + .fb2-part { border-top: 1px solid #efedf5; }
.fb2 .fc-solve { margin: 0; padding: 12px 16px 14px; border-top: 1px solid #efedf5; background: #fbfaff; }
/* Payment completed pop-up (owner, 5 Nov 2026) — builds on the Seller welcome pop-up. */
.pc-sum { display: grid; gap: 6px; margin-top: 16px; padding: 12px 14px; border: 1px solid #ebe8f3; border-radius: 12px; background: #fbfaff; text-align: left; }
.pc-sum > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.pc-sum span { color: #6b6880; }
.pc-sum b { color: #1d1a2e; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.pc-next { margin-top: 10px; padding: 10px 14px; border: 1px solid #d6ccf7; border-radius: 12px; background: #f4f1fe; text-align: left; }
.pc-next span { display: block; font-size: 12px; color: #6b6880; }
.pc-next strong { font-size: 14.5px; color: #3d2a99; }
/* Stepper: "Next for Estates7" stands out when there is something to do now (owner, 5 Nov 2026). */
.pj-next.is-action { margin: 12px -4px 0; padding: 12px 14px; border: 1px solid #d6ccf7; border-top: 1px solid #d6ccf7; border-radius: 12px; background: #f4f1fe; }
.pj-next.is-action .pj-next-k { color: #5536c9; font-weight: 600; }
.pj-next.is-action strong { color: #2a1d73; }
.pj-next.is-action .btn { padding-left: 18px; padding-right: 18px; box-shadow: 0 6px 16px rgba(85, 54, 201, .25); }
.fc-reopen { margin: 12px 20px 0; padding: 10px 12px; border: 1px solid #d6ccf7; border-radius: 10px; background: #f4f1fe; font-size: 13px; color: #3d2a99; }
/* Document verification: Payment confirmed ✓ · Document verification pending ✕ (owner, 5 Nov 2026). */
.dv-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.dv-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.dv-steps li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; }
.dv-steps li.is-ok { border: 1px solid #b9e3d5; background: #eefaf5; color: #00574a; }
.dv-steps li.is-ok span { background: #00a37f; }
.dv-steps li.is-no { border: 1px solid #f2c4c0; background: #fdf1f0; color: #8c1d18; }
.dv-steps li.is-no span { background: #d64541; }

/* Document verification list (owner, 5 Nov 2026): No · Document · Uploaded · Status · Action; a card per row on phones.
   Quiet white rows; the one strong element is the status meter (one segment per document). */
.dv-card { overflow: hidden; }
.dv-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; border-bottom: 1px solid #eceef4; }
.dv-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: #171a2b; letter-spacing: -.01em; }
.dv-head p { margin: 3px 0 0; font-size: 13px; color: #6d7285; }
.dv-meter { flex-shrink: 0; width: 260px; }
.dv-seg { display: flex; gap: 4px; height: 6px; }
.dv-seg i { flex: 1; border-radius: 3px; background: #e3e6ee; }
.dv-seg i.is-ok { background: #00a37f; }
.dv-seg i.is-due { background: #d64541; }
.dv-legend { display: flex; justify-content: flex-end; gap: 14px; margin-top: 8px; font-size: 12px; color: #6d7285; font-variant-numeric: tabular-nums; }
.dv-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #c9cdd8; vertical-align: 1px; }
.dv-legend .is-ok::before { background: #00a37f; }
.dv-legend .is-due::before { background: #d64541; }
.dv-cols, .dv-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 120px 170px 290px; column-gap: 20px; align-items: center; padding: 0 22px; }
.dv-cols { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #eceef4; background: #fafbfd; font-size: 12px; font-weight: 500; color: #8b8fa0; }
.dv-row { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f1f6; transition: background-color .15s; }
.dv-row:hover { background: #fbfbfe; }
.dv-no { color: #a3a7b5; font-size: 13px; font-variant-numeric: tabular-nums; }
.dv-doc strong { font-size: 14.5px; font-weight: 600; color: #171a2b; }
.dv-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: #f1eefc; color: #3d2a99; font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.dv-line { margin-top: 4px; font-size: 12.5px; color: #6d7285; }
.dv-line.is-ok { color: #00745f; }
.dv-flag { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 9px 3px 7px; border-radius: 6px; background: #fdf0ef; color: #a5221c; font-size: 12.5px; font-weight: 500; }
.dv-flag svg { width: 13px; height: 13px; flex-shrink: 0; }
.dv-when { font-size: 13.5px; color: #1d1a2e; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dv-when span { display: block; margin-top: 1px; font-size: 12px; color: #8b8fa0; }
.dv-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #4a4f63; white-space: nowrap; }
.dv-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c9cdd8; box-shadow: 0 0 0 3px #eef0f5; }
.dv-state.is-ok { color: #00745f; }
.dv-state.is-ok::before { background: #00a37f; box-shadow: 0 0 0 3px #def4ee; }
.dv-state.is-due { color: #a5221c; }
.dv-state.is-due::before { background: #d64541; box-shadow: 0 0 0 3px #fbe3e1; }
.dv-state.is-wait { color: #8a4b00; }
.dv-state.is-wait::before { background: #e8a33a; box-shadow: 0 0 0 3px #fdf0d8; }
.dv-act { display: flex; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
.dv-act form { margin: 0; }
.dv-act .btn { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.dv-act .btn-outline-primary { border-color: #dcd6f5; background: #fff; color: #4b33b5; }
.dv-act .btn-outline-primary:hover { background: #f4f1fd; }
.dv-act .btn-outline-danger { border-color: #f0c7c4; background: #fff; color: #b42318; }
.dv-act .btn-outline-danger:hover, .dv-act .btn-outline-danger[aria-expanded="true"] { background: #fdf0ef; color: #a5221c; border-color: #e9a9a4; }
.dv-row .dv-problem-form { grid-column: 2 / -1; max-width: none; margin-top: 14px; padding: 14px; border: 1px solid #f0d2cf; border-radius: 10px; background: #fffaf9; }
.dv-problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.dv-empty { padding: 20px 22px; font-size: 13.5px; color: #6d7285; }
.dv-missing { padding: 16px 22px; border-top: 1px solid #eceef4; background: #fafbfd; }
.dv-missing-k { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #4a4f63; }
.dv-missing-k span { font-weight: 400; color: #8b8fa0; }
.dv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dv-chips span { padding: 4px 10px; border: 1px solid #e3e6ee; border-radius: 6px; background: #fff; font-size: 12.5px; color: #6d7285; }
.dv-earlier { padding: 12px 22px; border-top: 1px solid #eceef4; }
.dv-earlier > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #4a4f63; }
.dv-earlier-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #6d7285; }
.dv-earlier-row b { color: #171a2b; font-weight: 600; }
@media (max-width: 1199.98px) {
  .dv-head { flex-wrap: wrap; }
  .dv-meter { width: 100%; }
  .dv-legend { justify-content: flex-start; }
  .dv-cols { display: none; }
  .dv-row { grid-template-columns: 22px minmax(0, 1fr) auto; row-gap: 8px; padding: 16px; align-items: start; }
  .dv-no { padding-top: 2px; }
  .dv-status { grid-column: 3; grid-row: 1; padding-top: 2px; }
  .dv-when { grid-column: 2 / -1; font-size: 13px; color: #6d7285; }
  .dv-when span { display: inline; font-size: 13px; }
  .dv-when span::before { content: " · "; }
  .dv-act { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 575.98px) {
  .dv-head { padding: 16px; }
  .dv-act { grid-column: 1 / -1; }
  .dv-act .btn { flex: 1 1 0; min-width: 0; padding: 0 6px; height: 38px; }
  .dv-act form { display: flex; flex: 1 1 0; }
  .dv-act form .btn { flex: 1; }
  .dv-row .dv-problem-form { grid-column: 1 / -1; }
  .dv-problem-grid { grid-template-columns: 1fr; }
  .dv-missing, .dv-earlier, .dv-empty { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .dv-row { transition: none; } }

/* Seller home (owner, 5 Nov 2026): documents to upload again · verification going on; and the Fix now pop-up. */
.hf-card { display: block; margin-bottom: 12px; padding: 16px; border: 1px solid #f0d2cf; border-radius: 16px; background: #fff; color: inherit; text-decoration: none; }
.hf-card.is-check { border-color: #e4e7ef; }
.hf-card.is-check:hover { border-color: #cfc6f3; }
.hf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hf-head strong { display: block; font-size: 17px; color: #171a2b; }
.hf-head span { display: block; margin-top: 2px; font-size: 13px; color: #6d7285; }
.hf-head .hf-count { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; margin: 0 !important; border-radius: 50%; background: #d64541; color: #fff !important; font-size: 14px !important; font-weight: 700; }
.hf-docs { margin: 12px 0; padding: 0; list-style: none; border: 1px solid #f3dedc; border-radius: 12px; overflow: hidden; text-align: left; }
.hf-docs li { padding: 10px 12px; border-bottom: 1px solid #f6e7e5; background: #fffafa; }
.hf-docs li:last-child { border-bottom: 0; }
.hf-docs b { display: block; font-size: 14px; color: #171a2b; }
.hf-docs span { display: block; margin-top: 1px; font-size: 13px; color: #a5221c; }
.hf-how { margin: 0 0 12px; padding-left: 20px; font-size: 13px; color: #4a4f63; text-align: left; }
.hf-how li + li { margin-top: 2px; }
.hf-note { margin: 10px 0 0; font-size: 13.5px; color: #6d7285; }
.hf-card .dv-steps { margin-top: 12px; }
.hf-pop .hf-mark { background: #fdecea; color: #d64541; }
.hf-pop .hf-docs { margin: 4px 0 18px; }
/* My properties row: step by step (owner, 5 Nov 2026) — ✓ done · ● in progress · ! to fix · ○ next. */
.prop-track { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; font-weight: 500; }
.prop-track > span { display: inline-flex; align-items: center; gap: 6px; color: #8b8fa0; }
.prop-track i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c9cdd8; font-style: normal; font-size: 10px; font-weight: 800; line-height: 1; }
.prop-track .is-done { color: #00745f; }
.prop-track .is-done i { border-color: #00a37f; background: #00a37f; color: #fff; }
.prop-track .is-done i::before { content: "✓"; }
.prop-track .is-now { color: #8a4b00; font-weight: 600; }
.prop-track .is-now i { border-color: #e8a33a; }
.prop-track .is-now i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e8a33a; }
.prop-track .is-bad { color: #a5221c; font-weight: 600; }
.prop-track .is-bad i { border-color: #d64541; background: #d64541; color: #fff; }
.prop-track .is-bad i::before { content: "!"; }
/* Document verification (owner, 6 Nov 2026): not-uploaded rows, and the old upload under the new one on the same row. */
.dv-head p b { color: #171a2b; font-weight: 600; }
.dv-row.is-none .dv-doc strong { color: #8b8fa0; font-weight: 500; }
.dv-row.is-none .dv-when { color: #a3a7b5; }
.dv-old { grid-column: 2 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border: 1px dashed #e3c9c6; border-radius: 10px; background: #fffbfa; }
.dv-old-k { padding: 2px 8px; border-radius: 6px; background: #eef0f5; color: #4a4f63; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dv-old-body .dv-flag { margin-top: 0; }
.dv-old .btn { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; border-color: #dcd6f5; background: #fff; color: #4b33b5; }
@media (max-width: 1199.98px) {
  .dv-old { grid-column: 2 / -1; grid-template-columns: minmax(0, 1fr) auto; }
  .dv-old-k { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 575.98px) {
  .dv-old { grid-column: 1 / -1; }
}
/* Document verification: name opens every upload as Doc 1, Doc 2 … (owner, 7 Nov 2026). */
.dv-name { padding: 0; border: 0; background: none; font-size: 14.5px; font-weight: 600; color: #171a2b; text-align: left; text-decoration: underline; text-decoration-color: #cfc6f3; text-underline-offset: 3px; cursor: pointer; }
.dv-name:hover { color: #4b33b5; text-decoration-color: currentColor; }
.dv-pop { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(23, 26, 43, .22); }
.dv-pop::backdrop { background: rgba(23, 26, 43, .45); }
.dv-pop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #eceef4; }
.dv-pop-head h3 { margin: 0; font-size: 17px; font-weight: 600; color: #171a2b; }
.dv-pop-head p { margin: 2px 0 0; font-size: 13px; color: #6d7285; }
.dv-vers { margin: 0; padding: 8px 20px 16px; list-style: none; }
.dv-vers li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f1f6; }
.dv-vers li:last-child { border-bottom: 0; }
.dv-ver-no { min-width: 52px; padding: 3px 8px; border-radius: 6px; background: #eef0f5; color: #4a4f63; font-size: 12px; font-weight: 600; text-align: center; }
.dv-vers li.is-now .dv-ver-no { background: #f1eefc; color: #3d2a99; }
.dv-ver-top { font-size: 13.5px; color: #171a2b; }
.dv-ver-cur { margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: #f1eefc; color: #3d2a99; font-size: 11.5px; font-weight: 600; }
.dv-vers .dv-flag { margin-top: 4px; }
.dv-vers .btn { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
@media (max-width: 575.98px) {
  .dv-vers li { grid-template-columns: minmax(0, 1fr) auto; }
  .dv-ver-no { grid-column: 1 / -1; justify-self: start; }
}
.dv-row .dv-ask-form { border-color: #ddd3fc; background: #f8f6fe; }
/* "Send this feedback to the Seller?" pop-up (owner, 7 Nov 2026). */
.dv-send-pop .dv-send-mark { background: #f1eefc; color: #4b33b5; }
.dv-send-pop .hf-docs { margin: 4px 0 12px; }
.dv-send-pop .hf-docs span { color: #a5221c; }
/* Long status ("New document awaited from Seller") wraps inside its column instead of running under the buttons. */
.dv-status { min-width: 0; }
.dv-state { white-space: nowrap; }
/* Seller (owner, 7 Nov 2026): narrow warning row on Home; property name as the fix card heading; highlighted rows in My properties. */
.hf-warn { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 9px 14px; border: 1px solid #f3c9c5; border-radius: 12px; background: #fdf1f0; color: #8c1d18; font-size: 13.5px; text-decoration: none; }
.hf-warn:hover { background: #fbe7e5; color: #8c1d18; }
.hf-warn > span { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #d64541; color: #fff; font-size: 12px; font-weight: 800; }
.hf-warn b { font-weight: 600; }
.hf-warn em { margin-left: auto; font-style: normal; font-weight: 600; white-space: nowrap; }
.hf-warn i { font-style: normal; font-size: 18px; line-height: 1; }
.hf-ask { font-style: normal; font-weight: 600; color: #a5221c; }
.prop-row.is-ask { border-color: #f0c7c4; background: #fffafa; }
.prop-row-ask { display: block; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: #fdecea; color: #8c1d18; font-size: 12.5px; font-weight: 500; }
.prop-row-ask b { font-weight: 700; }
/* All documents verified pop-up + Publish the property button (owner, 7 Nov 2026). */
.dv-pub-btn { flex-shrink: 0; height: 36px; padding: 0 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }
.dv-ready { width: min(440px, calc(100vw - 32px)); padding: 32px 28px 24px; border: 0; border-radius: 18px; text-align: center; box-shadow: 0 28px 70px rgba(23, 26, 43, .25); }
.dv-ready::backdrop { background: rgba(23, 26, 43, .5); }
.dv-ready .dv-ready-x { position: absolute; top: 16px; right: 16px; margin: 0; }
.dv-ready-mark { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: #00a37f; color: #fff; box-shadow: 0 0 0 8px #e3f6f0; }
.dv-ready h2 { margin: 0; font-size: 20px; font-weight: 700; color: #171a2b; letter-spacing: -.01em; }
.dv-ready-sub { margin: 4px 0 18px; font-size: 13.5px; color: #6d7285; }
.dv-ready-list { margin: 0 0 14px; padding: 0; list-style: none; border: 1px solid #eceef4; border-radius: 12px; text-align: left; }
.dv-ready-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid #f0f1f6; }
.dv-ready-list li:last-child { border-bottom: 0; }
.dv-ready-list span { color: #6d7285; }
.dv-ready-list b { font-weight: 600; color: #171a2b; text-align: right; }
.dv-ready-list b.is-ok { color: #00745f; }
.dv-ready-note { margin: 0 0 20px; font-size: 12.5px; color: #8b8fa0; }
.dv-ready-actions { display: flex; gap: 10px; justify-content: center; }
.dv-ready-actions .btn { height: 42px; border-radius: 10px; font-weight: 600; }
@media (max-width: 575.98px) {
  .dv-ready { padding: 28px 18px 18px; }
  .dv-ready-actions .btn { flex: 1; padding-left: 8px; padding-right: 8px; }
}
.dv-cfg-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
/* Admin dashboard while its data is hidden (owner, 7 Nov 2026). */
.dash-hidden { max-width: 560px; margin: 24px auto; padding: 36px 28px; text-align: center; }
.dash-hidden-ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #f1eefc; color: #4b33b5; }
.dash-hidden h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: #171a2b; }
.dash-hidden p { margin: 0; font-size: 14px; color: #6d7285; }
/* Applicant documents: View opens every upload as Doc 1, Doc 2 … (owner, 9 Nov 2026). */
.doc-vers { position: relative; display: inline-block; }
.doc-vers-btn { display: inline-flex; align-items: center; gap: 5px; }
.doc-vers-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.doc-vers-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: 290px; max-width: calc(100vw - 48px); margin: 0; padding: 4px 12px; list-style: none; text-align: left; background: #fff; border: 1px solid #e4e7ef; border-radius: 12px; box-shadow: 0 14px 34px rgba(23, 26, 43, .16); }
.doc-vers-menu[hidden] { display: none; }
.doc-vers-menu li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f1f6; }
.doc-vers-menu li:last-child { border-bottom: 0; }
.doc-vers-info b { display: block; font-size: 13.5px; font-weight: 600; color: #171a2b; }
.doc-vers-info span { display: block; font-size: 12px; color: #6d7285; white-space: nowrap; }

/* Admin property: Configuration versions (owner, 9 Nov 2026) — amounts first, then one bar for who gets what. */
.cv-card { padding: 20px 22px 8px; }
.cv-title { margin: 0 0 14px; font-size: 16px; font-weight: 600; color: #171a2b; letter-spacing: -.01em; }
.cv-ver { padding: 16px 0 18px; border-top: 1px solid #eceef4; }
.cv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.cv-name { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: #171a2b; }
.cv-now { padding: 2px 9px; border-radius: 99px; background: #def4ee; color: #00574a; font-size: 12px; font-weight: 600; }
.cv-by { font-size: 13px; font-weight: 500; color: #4a4f63; text-align: right; }
.cv-by span { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: #8b8fa0; }
.cv-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; border: 1px solid #eceef4; border-radius: 12px; }
.cv-amounts > div { min-width: 0; padding: 12px 14px; }
.cv-amounts > div + div { border-left: 1px solid #eceef4; }
.cv-amounts dt { font-size: 12px; font-weight: 500; color: #6d7285; }
.cv-amounts dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; line-height: 1.25; color: #171a2b; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cv-amounts dd.cv-sub { margin-top: 3px; font-size: 12px; font-weight: 400; color: #8b8fa0; }
.cv-split-k { margin-bottom: 8px; font-size: 12px; font-weight: 500; color: #6d7285; }
.cv-bar { display: flex; gap: 2px; height: 8px; margin-bottom: 10px; }
.cv-bar i { display: block; min-width: 4px; }
.cv-bar i:first-child { border-radius: 4px 0 0 4px; }
.cv-bar i:last-child { border-radius: 0 4px 4px 0; }
.cv-bar .is-seller, .cv-legend .is-seller { background: #00a37f; }
.cv-bar .is-sc, .cv-legend .is-sc { background: #e8a33a; }
.cv-bar .is-bc, .cv-legend .is-bc { background: #3b82c4; }
.cv-bar .is-e7, .cv-legend .is-e7 { background: #6a4de0; }
.cv-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.cv-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4a4f63; }
.cv-legend i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.cv-legend b { margin-left: auto; font-weight: 600; color: #171a2b; font-variant-numeric: tabular-nums; }
.cv-why { margin: 12px 0 0; font-size: 13px; color: #6d7285; }
.cv-empty { margin: 0 0 12px; font-size: 13.5px; color: #6d7285; }
.cv-ver:not(.is-current) .cv-bar { opacity: .55; }
@media (max-width: 575.98px) {
  .cv-card { padding: 16px 16px 6px; }
  .cv-amounts { grid-template-columns: 1fr; }
  .cv-amounts > div + div { border-left: 0; border-top: 1px solid #eceef4; }
  .cv-legend { grid-template-columns: 1fr; }
}

/* Account approval toolbar (owner, 9 Nov 2026): one line — hint left, role + search joined in one bar. */
.ac-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.ac-head p { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: 13.5px; color: #6d7285; white-space: nowrap; text-overflow: ellipsis; }
.ac-bar { flex: 0 1 500px; min-width: 0; display: flex; align-items: center; height: 44px; padding: 4px; background: #fff; border: 1px solid #e4e7ef; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.ac-bar:focus-within { border-color: #6a4de0; box-shadow: 0 0 0 3px rgba(106, 77, 224, .12); }
.ac-head .ac-bar .form-select, .ac-head .ac-bar .form-control { height: 34px; min-height: 0; border: 0; border-radius: 8px; background-color: transparent; box-shadow: none; font-size: 13.5px; color: #171a2b; }
.ac-head .ac-bar .form-select { flex: 0 0 136px; width: 136px; padding: 0 34px 0 10px; cursor: pointer; }
.ac-head .ac-bar .form-control { flex: 1 1 auto; min-width: 0; padding: 0 8px; text-overflow: ellipsis; }
.ac-head .ac-bar .form-control::placeholder { color: #8b8fa0; }
.ac-head .ac-bar .form-control::-webkit-search-cancel-button { cursor: pointer; }
.ac-sep { flex: none; width: 1px; height: 20px; background: #e4e7ef; }
.ac-ic { flex: none; display: flex; margin-left: 10px; color: #8b8fa0; }
.ac-head .ac-bar .btn { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; box-shadow: none; }
.ac-go-ic { display: none; }
@media (max-width: 767.98px) {
  .ac-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .ac-head p { white-space: normal; }
  .ac-bar { flex: 0 0 44px; width: 100%; }
  /* 16px stops iPhones zooming into the field. */
  .ac-head .ac-bar .form-select, .ac-head .ac-bar .form-control { font-size: 16px; }
  .ac-head .ac-bar .form-select { flex-basis: 128px; width: 128px; padding-left: 8px; }
  .ac-ic { display: none; }
  .ac-head .ac-bar .btn { width: 38px; padding: 0; }
  .ac-go-ic { display: flex; }
  .ac-go-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .ac-bar { transition: none; } }
/* The role dropdown is the site's custom picker: fit it inside the bar. */
.ac-bar { position: relative; }
.ac-head .ac-bar .fx-pick { flex: 0 0 136px; width: 136px; height: 34px; min-height: 0; padding: 0 30px 0 10px; border: 0; border-radius: 8px; background-color: transparent; box-shadow: none; font-size: 13.5px; font-weight: 500; color: #171a2b; }
.ac-head .ac-bar .fx-pick:hover { background-color: #f6f5fb; }
@media (max-width: 767.98px) {
  .ac-head p { display: none; }   /* phone: the bar alone, one line */
  .ac-head .ac-bar .fx-pick { flex-basis: 120px; width: 120px; padding: 0 26px 0 6px; font-size: 16px; }
  .ac-head .ac-bar .form-control { padding: 0 4px 0 8px; }
  .ac-head .ac-bar .btn { height: 34px; min-height: 0; }
}

/* Page messages (owner, 9 Nov 2026): icon, text and × each have their own space. */
.e7-note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 12px 12px 12px 14px; background: #fff; border: 1px solid #e4e7ef; border-radius: 14px; box-shadow: 0 6px 20px -12px rgba(23, 26, 43, .28); animation: e7-note-in .22s ease-out; }
.e7-note.no-enter { animation: none; }
.e7-note.is-ok { border-color: #bfe6da; }
.e7-note.is-bad { border-color: #f3c9c5; }
.e7-note-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.e7-note-ic svg { display: block; width: 15px; height: 15px; }
.e7-note.is-ok .e7-note-ic { background: #00a37f; }
.e7-note.is-bad .e7-note-ic { background: #d64541; }
.e7-note-text { flex: 1 1 auto; min-width: 0; align-self: center; font-size: 14px; font-weight: 500; line-height: 1.45; color: #171a2b; overflow-wrap: anywhere; }
.e7-note-text ul { margin: 0; padding-left: 18px; }
.e7-note .e7-close { align-self: flex-start; margin: -1px 0; }
@keyframes e7-note-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .e7-note { animation: none; } }

/* Applicant documents on phones (owner, 9 Nov 2026): each document fits the screen, no sideways scrolling. */
@media (max-width: 575.98px) {
  .doc-table thead { display: none; }
  .doc-table tbody tr { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0f5; }
  .doc-table tbody tr:last-child { border-bottom: 0; }
  .table.doc-table tbody td { display: block; width: auto; padding: 0; border: 0; }
  .table.doc-table td.doc-no { grid-column: 1; grid-row: 1 / span 2; }
  .table.doc-table td.doc-name { grid-column: 2; grid-row: 1; min-width: 0; }
  .table.doc-table td.doc-when { grid-column: 2; grid-row: 2; font-size: 12.5px; color: #6d7285; }
  .table.doc-table td.doc-when span { display: inline; margin-left: 6px; font-size: 12.5px; }
  .table.doc-table td.text-end { grid-column: 3; grid-row: 1 / span 2; }
}
