/* Tenant grid: reuse the production palette, scoped to this view. */
#tenantsView .tenant-toolbar{display:flex;gap:12px;align-items:center;margin:16px 0 10px}
#tenantsView .tenant-toolbar .search{flex:1;min-width:0}
#tenantsView .tenant-toolbar input{width:100%;min-width:0;font-size:13px}
#tenantsView #tenantFilters{display:flex;flex-wrap:wrap;width:max-content;max-width:100%;margin-bottom:14px}
#tenantsView .tenant-sort-toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:14px 0;font-size:12px;color:var(--muted)}
#tenantsView .tenant-sort-toolbar select{border:1px solid var(--line);border-radius:8px;padding:9px 12px;color:var(--ink);background:var(--white)}
#tenantsView .tenant-sort-toolbar button{font-size:12px;padding:9px 12px}
#tenantsView .tenant-table{table-layout:fixed;min-width:0;width:100%}
#tenantsView .tenant-table th{font-size:12px;text-transform:none;letter-spacing:0;background:#edf0ed;padding:14px 12px}
#tenantsView .tenant-table th button{font:inherit;text-transform:none;letter-spacing:0;white-space:normal}
#tenantsView .tenant-table th:nth-child(1){width:24%}#tenantsView .tenant-table th:nth-child(2){width:22%}#tenantsView .tenant-table th:nth-child(3){width:22%}#tenantsView .tenant-table th:nth-child(4){width:11%}#tenantsView .tenant-table th:nth-child(5){width:21%}
#tenantsView .tenant-table td{padding:18px 12px;font-size:12px;line-height:1.5;vertical-align:top;overflow-wrap:anywhere}
#tenantsView .tenant-table td>strong{display:block;font-size:13px}
#tenantsView small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}
#tenantsView .tenant-identity{display:flex;gap:10px;align-items:center;min-width:0}
#tenantsView .tenant-identity strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
#tenantsView .tenant-avatar{flex:0 0 32px;width:32px;height:32px;font-size:11px}
#tenantsView .tenant-contact{display:block;font-size:12px}
#tenantsView .tenant-status{display:inline-block;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:600;background:#e2f0e7;color:var(--green)}
#tenantsView .tenant-status.inactive{background:var(--mint);color:var(--muted)}
#tenantsView .tenant-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;max-width:100%;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);font:600 12px/1.4 Inter,sans-serif;text-align:center;white-space:normal;cursor:pointer}
#tenantsView .tenant-action:disabled{opacity:.6;cursor:not-allowed}
#tenantsView .tenant-action.tenant-link{border:0;background:transparent;box-shadow:none;justify-content:flex-start;padding:6px 0;font-weight:500;text-align:left}
#tenantsView .tenant-action.tenant-link:hover{text-decoration:underline}
#tenantsView .tenant-action.activate{border-color:var(--green);color:var(--green)}
#tenantsView .tenant-action.warning{color:var(--amber);background:#fff8ed}
#tenantsView .tenant-action.danger{color:var(--rose);background:#fff1ef}
#tenantsView .tenant-row-actions{display:flex;flex-direction:column;gap:6px;align-items:stretch}
#tenantsView .tenant-row-actions>.tenant-link{justify-content:center}
#tenantsView .tenant-detail-row>td{padding:0;background:var(--paper)}
#tenantsView .tenant-detail-panel{padding:20px;border-left:3px solid var(--green);color:var(--ink)}
#tenantsView .tenant-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}
#tenantsView .tenant-detail-heading h3{margin:0;font:700 16px Manrope,sans-serif}
#tenantsView .tenant-detail-heading p{margin:4px 0 0;font-size:12px;color:var(--muted)}
#tenantsView .tenant-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:25px}
#tenantsView .tenant-detail-grid h4{font-size:13px;margin:0 0 12px}
#tenantsView .tenant-detail-grid p{font-size:12px;line-height:1.6}
#tenantsView .tenant-detail-grid dl{margin:0}
#tenantsView .tenant-detail-grid dl>div{margin:0 0 15px}
#tenantsView .tenant-detail-grid dt{font-size:11px;color:var(--muted);margin-bottom:5px}
#tenantsView .tenant-detail-grid dd{font-size:13px;line-height:1.5;margin:0;overflow-wrap:anywhere}
#tenantsView .tenant-help{color:var(--muted)}
#tenantsView .tenant-danger-zone{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
#tenantsView .tenant-mobile-card{background:var(--white);padding:17px}
#tenantsView .tenant-mobile-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
#tenantsView .tenant-mobile-info{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:20px 0}
#tenantsView .tenant-mobile-info>div{min-width:0;overflow-wrap:anywhere;font-size:13px}
#tenantsView .tenant-field-label{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}
#tenantsView .tenant-mobile-card .tenant-detail-panel{margin:18px -17px -17px;padding:17px 14px;background:var(--paper)}
@media(max-width:750px){#tenantsView .tenant-toolbar{flex-wrap:nowrap}#tenantsView .tenant-toolbar input{font-size:16px}#tenantsView #tenantFilters{width:100%}#tenantsView #tenantFilters button{flex:0 1 auto}#tenantsView .tenant-detail-grid{grid-template-columns:1fr;gap:18px}#tenantsView .tenant-action{min-height:44px}#tenantsView .tenant-detail-heading .tenant-link{font-size:11px}#tenantsView .tenant-detail-heading{gap:10px}#tenantsView .tenant-sort-toolbar select{min-width:0;flex:1}}

#tenantsView .tenant-avatar,#tenantsView .tenant-status.active,#tenantsView .tenant-table th button.active{color:var(--ink)}
#tenantsView #tenantFilters button{color:var(--ink)}
#tenantsView .tenant-action.tenant-link{gap:6px}
#tenantsView .tenant-action.tenant-link>span[aria-hidden]{background:none;padding:0;border:0;border-radius:0;box-shadow:none;color:inherit;font:inherit;min-width:0;width:auto}
@media(max-width:750px){#tenantsView .tenant-toolbar{flex-direction:row}#tenantsView .tenant-toolbar .search{width:auto;max-width:none;margin:0;flex:1}#tenantsView .tenant-toolbar .search input{width:100%}}
