/* Estavo portfolio-wide visual consistency v1
   Maintenance is the visual reference: white page header, gold eyebrow, navy CTA, clean cards. */
:root{--estavo-navy:#101d3f;--estavo-gold:#a98227;--estavo-border:#dfe5ee;--estavo-muted:#6f7b90;--estavo-soft:#f7f9fc}

/* Shared page title block */
.portfolio-page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 36px;margin:0 0 28px;background:#fff;border:0;border-radius:0;box-shadow:0 10px 28px rgba(16,35,70,.035)}
.portfolio-page-header>div{min-width:0}.portfolio-page-header .eyebrow{margin:0 0 8px;text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:800;color:var(--estavo-gold)}
.portfolio-page-header h1,.portfolio-page-header h2{margin:0 0 8px!important;font-size:38px!important;line-height:1.12;color:var(--estavo-navy)!important}.portfolio-page-header p:not(.eyebrow){margin:0;color:var(--estavo-muted);font-size:17px;line-height:1.45}
.portfolio-page-header .page-header-action,.portfolio-page-header button{flex:0 0 auto;background:var(--estavo-navy)!important;color:#fff!important;border:0!important;border-radius:12px!important;padding:14px 20px!important;font-weight:800!important;box-shadow:0 8px 20px rgba(16,29,63,.12)!important}

/* Legacy list pages become visually aligned with Maintenance */
.dashboard>.properties.portfolio-list-page{padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important}
.portfolio-list-page>.properties-toolbar,.portfolio-list-page>.property-filter-bar,.portfolio-list-page>.properties-table-wrap,.portfolio-list-page>table,.portfolio-list-page>.applicants-summary{margin-left:36px;margin-right:36px}
.portfolio-list-page>.properties-toolbar{margin-top:0}
.portfolio-list-page>table,.portfolio-list-page>.properties-table-wrap{width:calc(100% - 72px)}
.portfolio-list-page>.applicants-summary{margin-bottom:14px}

/* Tables/cards use the same quiet borders and rounded language */
.portfolio-list-page table,.inventory-table-wrap,.compliance-page table{border-radius:16px;overflow:hidden;border:1px solid var(--estavo-border);background:#fff}
.portfolio-list-page thead th,.inventory-table-wrap thead th,.compliance-page thead th{background:#f5f7fa!important;color:#56637a!important;text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:800}

/* Applicant property link: keep the icon gold and leave breathing room */
.applicant-property-link{display:inline-flex!important;align-items:center;gap:6px;margin-top:4px;color:#25344f!important;text-decoration:none!important;line-height:1.35}
.applicant-property-link i{color:var(--estavo-gold)!important;flex:0 0 auto;margin:0!important}.applicant-property-link:hover{color:#7e611d!important}

/* Inventory and Compliance headers use the same eyebrow/title treatment */
.inventory-page-header,.compliance-page-header{padding:28px 36px!important;margin-bottom:28px!important;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:0 10px 28px rgba(16,35,70,.035)!important}
.inventory-page-header .eyebrow,.compliance-page-header .eyebrow{margin:0 0 8px;text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:800;color:var(--estavo-gold)}
.inventory-page-header h1,.compliance-page-header h1,.compliance-page-header h2{font-size:38px!important;color:var(--estavo-navy)!important;margin:0 0 8px!important}
.inventory-page-header>div>p:last-child,.compliance-page-header>div>p:last-child{color:var(--estavo-muted)!important;font-size:17px!important}
.inventory-page-header button{background:var(--estavo-navy)!important;color:#fff!important;border-radius:12px!important}

/* Reports: remove the separate dark-blue visual language and use the same Estavo header */
.reports-hero{background:#fff!important;color:var(--estavo-navy)!important;padding:28px 36px!important;border-radius:0!important;margin-bottom:28px!important;box-shadow:0 10px 28px rgba(16,35,70,.035)!important}
.reports-hero h1{font-size:38px!important;color:var(--estavo-navy)!important;margin:0 0 8px!important}.reports-hero>div>p:last-child{color:var(--estavo-muted)!important;font-size:17px!important}.reports-eyebrow{color:var(--estavo-gold)!important;margin-bottom:8px!important}.reports-hero-icon{width:58px!important;height:58px!important;flex-basis:58px!important;background:#f7f1e3!important;color:var(--estavo-gold)!important;border-radius:14px!important;font-size:24px!important}
.reports-toolbar,.report-card,.report-kpi{border:1px solid var(--estavo-border);box-shadow:0 8px 24px rgba(16,35,70,.04)!important}
.report-kpi-icon,.morning-brief-item-icon{color:var(--estavo-gold)!important;background:#f7f1e3!important}

/* Business Finance purchase invoice status/actions: stop badges colliding */
.purchase-invoice-row{grid-template-columns:minmax(220px,1.5fr) minmax(110px,.7fr) minmax(300px,auto)!important}
.purchase-invoice-row .invoice-row-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;min-width:0!important;flex-wrap:nowrap!important}
.purchase-invoice-row .finance-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:112px!important;max-width:140px!important;white-space:normal!important;text-align:center!important;line-height:1.15!important;padding:7px 12px!important}
.purchase-invoice-row .invoice-icon-button{flex:0 0 36px;width:36px;height:36px}
@media(max-width:1050px){.portfolio-page-header{padding:24px}.portfolio-list-page>.properties-toolbar,.portfolio-list-page>.property-filter-bar,.portfolio-list-page>.properties-table-wrap,.portfolio-list-page>table,.portfolio-list-page>.applicants-summary{margin-left:24px;margin-right:24px}.portfolio-list-page>table,.portfolio-list-page>.properties-table-wrap{width:calc(100% - 48px)}.purchase-invoice-row{grid-template-columns:1fr!important}.purchase-invoice-row .invoice-row-actions{justify-content:flex-start!important;flex-wrap:wrap!important}.purchase-invoice-row .finance-status{min-width:0!important}}
@media(max-width:700px){.portfolio-page-header{align-items:flex-start;flex-direction:column;padding:22px 18px}.portfolio-page-header h1,.portfolio-page-header h2,.inventory-page-header h1,.compliance-page-header h1,.compliance-page-header h2,.reports-hero h1{font-size:32px!important}.portfolio-list-page>.properties-toolbar,.portfolio-list-page>.property-filter-bar,.portfolio-list-page>.properties-table-wrap,.portfolio-list-page>table,.portfolio-list-page>.applicants-summary{margin-left:18px;margin-right:18px}.portfolio-list-page>table,.portfolio-list-page>.properties-table-wrap{width:calc(100% - 36px)}.inventory-page-header,.compliance-page-header,.reports-hero{padding:22px 18px!important}}
