/* TempZilla landlord & agent portal. Uses the theme's tokens (navy, red, sky, line, ink). */
.tzp { padding-top: var(--tz-space-6); }
.tzp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Portal navigation */
.tzp-nav { background: #fff; border-bottom: 1px solid var(--tz-line); }
.tzp-nav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; padding-top: .35rem; padding-bottom: .35rem; }
.tzp-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--tz-navy); text-decoration: none; border-bottom: 3px solid transparent; }
.tzp-nav a:hover { border-bottom-color: var(--tz-line); }
.tzp-nav a[aria-current="page"] { border-bottom-color: var(--tz-red); }
.tzp-nav__out { margin-left: auto; }
.tzp-linkbtn { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--tz-ink-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.tzp-linkbtn:focus-visible, .tzp-nav a:focus-visible { outline: none; box-shadow: var(--tz-focus); border-radius: 4px; }

/* Blocks */
.tzp-card { background: #fff; border: 2px solid var(--tz-line); border-radius: var(--tz-radius-m); padding: var(--tz-space-5); }
.tzp-card > :last-child { margin-bottom: 0; }
.tzp-h2 { font-size: 1.3rem; line-height: 1.25; color: var(--tz-navy); margin: 0 0 var(--tz-space-3); }
.tzp-intro { font-size: 1.05rem; margin-bottom: var(--tz-space-5); }
.tzp-muted { color: var(--tz-ink-2); }
.tzp-back { margin: 0 0 var(--tz-space-4); }
.tzp-back a { font-weight: 700; color: var(--tz-navy); }
.tzp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--tz-space-5); }
.tzp-help { margin-top: var(--tz-space-7); padding-top: var(--tz-space-4); border-top: 1px solid var(--tz-line); }
.tzp-err { margin: .35rem 0 0; color: #B4232C; font-weight: 700; font-size: .92rem; }
.tzp-split { display: grid; gap: var(--tz-space-6); }
@media (min-width: 860px) { .tzp-split { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.tzp-why { padding-top: .25rem; }
.tzp-ticks { list-style: none; margin: 0 0 var(--tz-space-4); padding: 0; display: grid; gap: .8rem; }
.tzp-ticks li { display: flex; gap: .65rem; align-items: flex-start; }
.tzp-ticks .tz-icon { flex: none; width: 22px; height: 22px; color: var(--tz-success, #13795B); margin-top: .1rem; }

/* Notices */
.tzp-notice { padding: .9rem 1rem; border-radius: var(--tz-radius-s); margin: 0 0 var(--tz-space-5); font-weight: 500; }
.tzp-notice p { margin: 0 0 .35rem; }
.tzp-notice p:last-child { margin: 0; }
.tzp-notice--ok { background: #e8f6ef; border: 1px solid #13795B; }
.tzp-notice--warn { background: #fff4d6; border: 1px solid #b7791f; }
.tzp-banner { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--tz-radius-s); background: var(--tz-sky-50); margin: 0 0 var(--tz-space-5); }
.tzp-banner .tz-icon { flex: none; color: var(--tz-navy); }

/* Status pills: colour plus words, never colour alone */
.tzp-pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .88rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.tzp-pill--overdue { background: #fbe4e6; color: #8f1b23; }
.tzp-pill--soon { background: #fff1cc; color: #7a4d00; }
.tzp-pill--none { background: #eef0f4; color: #3d4659; }
.tzp-pill--ok { background: #e3f4ec; color: #0f5f47; }

/* Summary */
.tzp-stats { list-style: none; margin: 0 0 var(--tz-space-5); padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 760px) { .tzp-stats { grid-template-columns: repeat(4, 1fr); } }
.tzp-stat { border: 2px solid var(--tz-line); border-radius: var(--tz-radius-m); padding: .85rem 1rem; background: #fff; }
.tzp-stat strong { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--tz-navy); }
.tzp-stat span { font-size: .92rem; color: var(--tz-ink-2); }
.tzp-stat--bad { border-color: #d64550; }
.tzp-stat--bad strong { color: #8f1b23; }
.tzp-stat--warn { border-color: #d9a02b; }

/* Property table: a table on wide screens, stacked rows on phones */
.tzp-table { width: 100%; border-collapse: collapse; }
.tzp-table th, .tzp-table td { text-align: left; vertical-align: top; padding: .85rem .75rem; border-bottom: 1px solid var(--tz-line); }
.tzp-table thead th { font-size: .85rem; color: var(--tz-ink-2); font-weight: 700; border-bottom-width: 2px; }
.tzp-table tbody th a { font-weight: 700; color: var(--tz-navy); }
.tzp-table .tz-small { display: block; margin-top: .15rem; }
.tzp-btn--sm { min-height: 40px; padding: .4rem .9rem; font-size: .95rem; }
@media (max-width: 759px) {
	.tzp-table thead { position: absolute; left: -9999px; }
	.tzp-table, .tzp-table tbody, .tzp-table tr, .tzp-table th, .tzp-table td { display: block; width: 100%; }
	.tzp-table tr { border: 2px solid var(--tz-line); border-radius: var(--tz-radius-m); padding: .4rem .9rem .8rem; margin-bottom: .75rem; background: #fff; }
	.tzp-table th, .tzp-table td { border: 0; padding: .35rem 0; }
	.tzp-table td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--tz-ink-2); }
}

/* Property page */
.tzp-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: var(--tz-space-4); }
@media (min-width: 760px) { .tzp-facts { grid-template-columns: repeat(4, 1fr); } }
.tzp-fact { border: 2px solid var(--tz-line); border-radius: var(--tz-radius-m); padding: .75rem .9rem; background: #fff; min-width: 0; }
.tzp-fact span { display: block; font-size: .85rem; color: var(--tz-ink-2); margin-bottom: .25rem; }
.tzp-fact strong { font-size: 1rem; overflow-wrap: anywhere; }
.tzp-cols { display: grid; gap: var(--tz-space-6); margin: var(--tz-space-6) 0; }
@media (min-width: 960px) { .tzp-cols { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.tzp-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.tzp-job { border: 2px solid var(--tz-line); border-radius: var(--tz-radius-m); padding: .85rem 1rem; background: #fff; }
.tzp-job p { margin: .35rem 0 0; }
.tzp-job__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.tzp-docs { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; }
.tzp-docs a { display: inline-flex; gap: .45rem; align-items: center; min-height: 40px; font-weight: 700; color: var(--tz-navy); }
.tzp-docs .tz-icon { width: 20px; height: 20px; flex: none; }

/* Forms */
.tzp-grid { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .tzp-grid { grid-template-columns: 1fr 1fr; } .tzp-grid__wide { grid-column: 1 / -1; } }
.tzp-form .tz-small { margin: .3rem 0 0; }
.tzp-edit, .tzp-danger { border: 2px solid var(--tz-line); border-radius: var(--tz-radius-m); background: #fff; margin-top: var(--tz-space-4); }
.tzp-edit > summary, .tzp-danger > summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 700; color: var(--tz-navy); min-height: 44px; }
.tzp-edit > summary:focus-visible, .tzp-danger > summary:focus-visible { outline: none; box-shadow: var(--tz-focus); border-radius: var(--tz-radius-m); }
.tzp-edit > form, .tzp-danger > form { padding: 0 1.1rem 1.1rem; }
.tzp-danger > summary { color: #8f1b23; }
.tzp-btn--danger { background: #fff; color: #8f1b23; border-color: #8f1b23; }
.tzp-btn--danger:hover { background: #8f1b23; color: #fff; }
.tzp-steps { margin: 0 0 var(--tz-space-5); padding-left: 1.25rem; display: grid; gap: .5rem; }
.tzp-skipped { margin: 0 0 var(--tz-space-5); padding-left: 1.1rem; display: grid; gap: .3rem; }
.tzp-empty { text-align: left; }

/* Form details the theme only styles inside its own form cards */
.tzp fieldset.tz-field { border: 0; padding: 0; margin: 0 0 var(--tz-space-4); min-width: 0; }
.tzp fieldset.tz-field legend { display: block; padding: 0; margin-bottom: .5rem; font-weight: 700; color: var(--tz-navy); }
.tzp .tz-field label.tz-radio { display: inline-flex; margin: 0 .4rem .4rem 0; }
.tzp .tz-field label.tz-check { display: flex; font-weight: 500; color: var(--tz-ink); }
.tzp-fact .tzp-pill { white-space: normal; }
