/* Current tenants: summary filters, a concise desktop list and mobile cards. */
#app .tenant-directory{min-width:0}
#app .tenant-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
#app .tenant-stat{border:1px solid #c9d6e8;background:#fff;color:#193b64;border-radius:11px;padding:15px 17px;text-align:left;min-width:0;position:relative}
#app .tenant-stat>span{display:block;font-size:14px;font-weight:500}
#app .tenant-stat>strong{display:flex;align-items:baseline;gap:6px;font-size:28px;line-height:1.3;margin:6px 0 4px;font-weight:700}
#app .tenant-stat small{font-size:12px;line-height:1.5;margin:0;color:#536884}
#app .tenant-stat.active{background:#e3ecfc;border-color:#2454c6;box-shadow:inset 0 0 0 1px #2454c6}
#app .tenant-stat.is-linked>strong{color:#087754}
#app .tenant-stat.is-unlinked>strong,#app .tenant-stat.is-expiring>strong{color:#945d11}
#app .tenant-stat:focus-visible{outline:3px solid #7fa5e3;outline-offset:2px}
#app .tenant-toolbar{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid #dce5f1}
#app .tenant-search-field{display:flex;align-items:center;gap:9px;flex:1;min-width:0;border:1px solid #b6c8e1;border-radius:8px;background:#fff;padding:0 11px}
#app .tenant-search-field:focus-within{outline:2px solid #7fa5e3;outline-offset:1px}
#app .tenant-search-field>svg{width:19px;height:19px;flex:none;color:#617996}
#app .tenant-search-field .tenant-search{width:100%;min-width:0;margin:0;border:0;border-radius:0;padding:11px 0;min-height:44px;outline:none;box-shadow:none;background:transparent}
#app .tenant-search-field .tenant-search-clear{width:28px;height:28px;flex:none;padding:0;border:0;border-radius:5px;background:#eef3fa;color:#355982;font-size:22px}
#app .tenant-search-field .tenant-search-clear[hidden]{display:none}
#app .tenant-toolbar>select{width:174px;flex:none;min-height:44px;padding:9px 12px;background:#f7faff}
#app .tenant-building{display:flex;border:1px solid #c9d6e8;border-radius:8px;padding:3px;background:#eef3fa;flex:none}
#app .tenant-building>button{border:0;border-radius:5px;background:transparent;color:#4d6380;min-height:36px;padding:6px 12px;font-size:14px;white-space:nowrap}
#app .tenant-building>button.active{background:#2454c6;color:#fff;box-shadow:0 2px 5px #17345a12}
#app .tenant-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px}
#app .tenant-list-heading h2{font-size:16px;display:flex;align-items:center;gap:9px}
#app .tenant-list-heading #tenant-count{font-size:13px;font-weight:500;color:#536884;background:#eef3fa;border-radius:5px;padding:3px 7px}
#app .tenant-list-heading>span{font-size:12px;color:#536884}
#app .tenant-list-card .desktop-table-bar{display:none}
#app .tenant-current-table small{display:block!important;font-size:13px!important;line-height:1.5;margin:3px 0 0!important;white-space:normal;overflow-wrap:anywhere}
#app .tenant-current-table .td-person>strong{font-size:16px;font-weight:600}
#app .tenant-current-table .td-person a{font-variant-numeric:tabular-nums;color:#536884}
#app .tenant-current-table .tenant-room-link{border:0;border-radius:5px;background:none;padding:0;color:#1e4b88;cursor:pointer;font-size:18px;font-weight:700}
#app .tenant-current-table .tenant-room-link:hover{text-decoration:underline}
#app .tenant-current-table .td-contract>strong{font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}
#app .tenant-deadline{display:block;margin-top:3px;font-size:12px;line-height:1.5;font-weight:600;color:#945d11}
#app .tenant-deadline.is-overdue{color:#b7372f}
#app .tenant-line-state{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;background:#eef2f7;color:#536884;border-radius:6px;font-size:13px;font-weight:500;white-space:nowrap}
#app .tenant-line-state.state-linked{background:#def2e9;color:#126340}
#app .tenant-line-state.state-pending{background:#fff0d6;color:#875215}
#app .tenant-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
#app .tenant-current-table .tenant-view{font-size:13px;min-height:38px;padding:7px 11px;background:#eef3fc;color:#2454a0;box-shadow:none}
#app .tenant-more{width:36px;height:38px;border:1px solid #c9d6e8;border-radius:7px;background:#fff;color:#244f87;font-size:23px;line-height:1;padding:0;flex:none}
#app .tenant-line-help{margin-top:14px;border:1px solid #c9d6e8;border-radius:9px;background:#f6f9fe;color:#345575}
#app .tenant-line-help>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:12px 15px;font-size:14px}
#app .tenant-line-help>summary::-webkit-details-marker{display:none}
#app .tenant-line-help[open]>summary>span{transform:rotate(180deg)}
#app .tenant-line-help ol{padding:0 20px 0 34px;margin:0 0 8px;font-size:14px;line-height:1.9}
#app .tenant-line-help p{margin:0;padding:0 15px 14px;font-size:13px}
#modal .tenant-action-menu{display:grid;gap:10px;margin-top:18px}
#modal .tenant-action-menu .btn{min-height:48px;text-align:left}
#app .tenant-mobile-tools,#app .tenant-mobile-list,#app .tenant-stat>span.tenant-stat-mobile-label{display:none}
@media(min-width:601px){
 #app table.tenant-current-table{table-layout:fixed;width:100%;min-width:760px}
 #app .tenant-current-table th,#app .tenant-current-table td{padding-left:16px!important;padding-right:16px!important}
 #app .tenant-current-table td{padding-top:14px!important;padding-bottom:14px!important;white-space:normal;vertical-align:middle}
 #app .tenant-current-table .td-room>small{white-space:nowrap}
 #app .tenant-current-table th:last-child{text-align:right}
}
@media(min-width:601px) and (max-width:1000px){
 #app .tenant-toolbar{flex-wrap:wrap;gap:10px}
 #app .tenant-search-field{flex-basis:100%}
 #app .tenant-toolbar>select{margin-left:auto}
 #app .tenant-current-table th,#app .tenant-current-table td{padding-left:12px!important;padding-right:12px!important}
 #app .tenant-overview{gap:8px}
 #app .tenant-stat{padding:13px}
}
@media(max-width:600px){
 #app .tenant-mobile-tools{display:grid;gap:9px;margin-bottom:10px}
 #app .tenant-mobile-tools .tenant-search{font-size:16px;min-height:48px}
 #app .tenant-mobile-tools .tenant-search-clear{width:44px;height:44px}
 #app .tenant-mobile-filter-row{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;align-items:center}
 #app .tenant-mobile-tools .tenant-building{width:100%;padding:3px}
 #app .tenant-mobile-tools .tenant-building>button{flex:1;min-height:44px;padding:7px 5px;font-size:14px}
 #app .tenant-mobile-filter{position:relative}
 #app .tenant-mobile-filter>summary{display:grid;place-items:center;list-style:none;width:48px;min-height:48px;background:#fff;border:1px solid #c9d6e8;border-radius:8px;color:#355982;cursor:pointer}
 #app .tenant-mobile-filter>summary::-webkit-details-marker{display:none}
 #app .tenant-mobile-filter>summary>svg{width:22px;height:22px}
 #app .tenant-mobile-filter>summary>i{position:absolute;right:7px;top:7px;width:6px;height:6px;border-radius:50%;background:#2454c6}
 #app .tenant-mobile-filter[open]>summary{background:#e3ecfc;border-color:#2454c6}
 #app .tenant-mobile-filter>div{position:absolute;right:0;top:calc(100% + 6px);z-index:3;width:250px;max-width:calc(100vw - 32px);padding:14px;background:#fff;border:1px solid #c9d6e8;border-radius:10px;box-shadow:0 8px 24px #17345a26}
 #app .tenant-mobile-filter label{display:grid;gap:8px;color:#536884;font-size:13px}
 #app .tenant-mobile-filter select{width:100%;min-height:44px;font-size:16px}
 #app .tenant-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:0}
 #app .tenant-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 4px;min-height:58px;border-radius:9px;text-align:center}
 #app .tenant-stat.is-linked,#app .tenant-stat>span.tenant-stat-label,#app .tenant-stat small{display:none}
 #app .tenant-stat>span.tenant-stat-mobile-label{display:block;font-size:11px;line-height:1.4}
 #app .tenant-stat>strong{font-size:19px;line-height:1.2;margin:0}
 #app .tenant-toolbar{display:none}
 #app .tenant-list-heading{padding:14px 0 9px}
 #app .tenant-list-heading h2{font-size:15px}
 #app .tenant-list-heading>span{display:none}
 #app .tenant-list-card{background:transparent;border:0!important;box-shadow:none;overflow:visible}
 #app .tenant-list-card>.table-wrap{display:none}
 #app .tenant-mobile-list{display:grid;gap:9px}
 #app .tenant-mobile-card{min-width:0;background:#fff;border:1px solid #c9d6e8;border-radius:12px;padding:11px 12px}
 #app .tenant-mobile-top{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:start}
 #app .tenant-mobile-open{display:flex;align-items:center;gap:10px;min-width:0;min-height:64px;padding:0;border:0;background:transparent;color:#193b64;text-align:left;font:inherit}
 #app .tenant-mobile-room{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;flex:none;width:58px;min-height:62px;border-radius:8px;background:#eef3fa}
 #app .tenant-mobile-room>strong{font-size:20px;font-weight:750;line-height:1.2}
 #app .tenant-mobile-room>small{margin:0;font-size:11px}
 #app .tenant-mobile-identity{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
 #app .tenant-mobile-identity>strong{font-size:16px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
 #app .tenant-mobile-identity .tenant-line-state{font-size:11px;padding:2px 6px;white-space:normal;line-height:1.5}
 #app .tenant-more{width:44px;height:44px}
 #app .tenant-mobile-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:6px;margin-top:7px;border-top:1px solid #e8eef7}
 #app .tenant-mobile-phone{display:flex;align-items:center;gap:7px;min-height:44px;color:#2454a0;font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
 #app .tenant-mobile-phone svg{width:17px;height:17px;flex:none}
 #app .tenant-mobile-no-phone{color:#61758f;font-size:13px}
 #app .tenant-mobile-contract{text-align:right;flex:none}
 #app .tenant-mobile-contract>small{font-size:11px;line-height:1.4;margin:0}
 #app .tenant-mobile-contract>strong{font-size:13px;font-weight:500;line-height:1.5;white-space:nowrap}
 #app .tenant-mobile-warning{background:#fff4df;color:#875215;border-radius:6px;padding:5px 8px;margin-top:5px;font-size:12px;line-height:1.5}
 #app .tenant-mobile-warning.is-overdue{background:#fbecee;color:#a3322a}
 #app .tenant-mobile-pagination{display:grid;gap:9px;padding:8px 0;text-align:center;font-size:12px;color:#536884}
 #app .tenant-mobile-pagination .btn{min-height:48px;background:#fff;font-size:15px}
 #app .tenant-mobile-empty{background:#fff;border:1px solid #c9d6e8;border-radius:12px;text-align:center;padding:28px 14px}
 #app .tenant-mobile-open:focus-visible,#app .tenant-mobile-phone:focus-visible,#app .tenant-mobile-filter>summary:focus-visible{outline:3px solid #7fa5e3;outline-offset:2px;border-radius:6px}
 #app .tenant-line-help{margin-top:12px}
}
