
/* Property details: approval, tenant, paired actions, tools, Edit, then history. */
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;text-align:center}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>*{grid-column:1/-1;order:40}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>.rental-approval-setting{order:0}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>.linked-tenants{order:10}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>.property-connect-tenant{order:20;grid-column:1}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>.property-disconnect-action{order:20;grid-column:2}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>:is(.property-connect-tenant,.property-disconnect-action){width:100%;max-width:none;min-height:44px;height:100%;margin:0;align-self:stretch;display:flex;align-items:center;justify-content:center;text-align:center}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>.property-move-out{order:30;justify-self:center;width:min(100%,280px)}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>.property-documents-action{order:50;margin:0}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>.property-job-categories{order:100}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>.property-edit-action{order:70;grid-column:1/-1;justify-self:center;width:min(100%,280px);margin:0 auto}
html body main #ca-list.property-detail .records:is([data-address-id],[data-connection-id])>:is(.address-delete-confirmation,.property-disconnect-confirmation){order:80}

/* Property role variants share geometry without changing control permissions. */
html body main #ca-list.property-detail .records>:is(.property-tenant-products,.property-landlord-action){order:35;grid-column:auto;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;min-height:44px}
html body main #ca-list.property-detail .records>.property-tenant-disconnect{order:36;grid-column:1/-1;width:100%;margin:0}
html body main #ca-list.property-detail .records:not(:has(>.property-disconnect-action))>.property-connect-tenant{grid-column:1/-1}
html body main #ca-list.property-detail .property-contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
html body main #ca-list.property-detail .property-contact-actions>button{display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;min-height:44px}
html body main #ca-list.property-detail .property-contact-actions>button:only-child{grid-column:1/-1}
html body main #ca-list.property-detail .linked-tenants>p{margin:4px 0;line-height:1.25}
html body main #ca-list.property-detail .linked-tenants>button{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:8px 0 0}
html body main #pm-dashboard.pm-property-detail>.button{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:8px 0}
html body main #pm-dashboard.pm-property-detail .pm-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;margin:8px 0}
html body main #pm-dashboard.pm-property-detail .pm-pair>.button{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:100%;min-height:44px;margin:0;padding:10px 8px;overflow-wrap:break-word}
html body main #pm-dashboard.pm-property-detail .pm-approval{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 0}
html body main #pm-dashboard.pm-property-detail .pm-contact p{margin:4px 0}
html body main #ca-list.property-detail [hidden],html body main #pm-dashboard.pm-property-detail [hidden]{display:none!important}

/* Keep the existing PM invitation control clear of Back and the title. */
html body main #pm-dashboard.pm-property-detail .pm-heading>button:last-child{grid-column:1/-1;grid-row:2;width:100%;margin:0;white-space:nowrap}

/* Restore readable property controls; compactness comes from existing spacing. */
html body main #ca-list.property-detail .property-summary h3,
html body main #pm-dashboard.pm-property-detail .pm-heading h1{font-size:20px;line-height:1.25}
html body main #ca-list.property-detail :is(.property-summary p,.linked-tenants p,.linked-tenants strong,.linked-tenants summary,.rental-approval-setting label,.property-home-choice),
html body main #pm-dashboard.pm-property-detail :is(p,strong,.pm-approval){font-size:16px;line-height:1.35}
html body main #ca-list.property-detail :is(button,a.button,details>summary),
html body main #pm-dashboard.pm-property-detail .button{font-size:15px!important;min-height:52px!important;line-height:1.3!important}
html body main #ca-list.property-detail>#ca-properties-back,
html body main #pm-dashboard.pm-property-detail .pm-heading>button:first-child{width:44px;min-width:44px;height:44px;min-height:44px!important;font-size:24px!important;line-height:1!important;padding:0}
html body main #ca-list.property-detail .property-summary h3{padding-inline:44px}

/* Match the shared typography layer without changing other pages. */
@layer hub-button-typography {
html body main #ca-list.property-detail :is(button,a.button),
html body main #pm-dashboard.pm-property-detail .button{font-size:15px!important;line-height:1.3!important}
html body main #ca-list.property-detail>#ca-properties-back,
html body main #pm-dashboard.pm-property-detail .pm-heading>button:first-child{font-size:24px!important;line-height:1!important}
}
