/* Balance the tenant history columns without changing other room tables. */
#app .tenant-history-table .hist-deposit small{display:block!important;margin:3px 0 0!important;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
#app .tenant-history-table .hist-deposit .hist-deduction{color:#b7372f}
#app .tenant-history-table .hist-date-separator{color:#7488a3}
#app .tenant-history-table .hist-refund{font-weight:600;font-variant-numeric:tabular-nums}
#app .tenant-history-filters .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}
#app .tenant-history-filters .hist-filter-count{font-variant-numeric:tabular-nums}
@media(min-width:601px){
 #app .tenant-history-card .table-wrap{overflow:auto;scrollbar-width:thin}
 #app table.tenant-history-table{table-layout:fixed;width:100%;min-width:900px}
 #app .tenant-history-table th,#app .tenant-history-table td{padding-left:14px!important;padding-right:14px!important}
 #app .tenant-history-table td{padding-top:13px!important;padding-bottom:13px!important;line-height:1.6;vertical-align:middle}
 #app .tenant-history-table .hist-name{white-space:normal;overflow-wrap:anywhere;font-weight:500}
 #app .tenant-history-table .hist-phone{font-variant-numeric:tabular-nums}
 #app .tenant-history-table .hist-dates{font-size:15px;white-space:normal}
 #app .tenant-history-table .hist-dates>span{white-space:nowrap}
 #app .tenant-history-table .hist-duration,#app .tenant-history-table .hist-status{text-align:center}
 #app .tenant-history-table .hist-duration{white-space:normal}
 #app .tenant-history-table .hist-status,#app .tenant-history-table th:nth-child(6){padding-left:10px!important;padding-right:10px!important}
 #app .tenant-history-table th:nth-child(5) .desktop-sort,#app .tenant-history-table th:nth-child(6) .desktop-sort{justify-content:center}
 #app .tenant-history-table .hist-status .badge{display:inline-block;white-space:nowrap;padding:4px 9px;line-height:1.5}
 #app .tenant-history-table .hist-deposit{white-space:normal}
 #app .tenant-history-filters{align-items:center}
 #app .tenant-history-filters .tenant-search{width:290px;min-height:44px}
}
@media(max-width:600px){
 #app .tenant-history-filters .mobile-filter-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;padding:0}
 #app .tenant-history-filters .mobile-filter-chips .btn{flex-direction:column;gap:2px;padding:8px 4px;min-width:0;font-size:13px;line-height:1.5}
 #app .tenant-history-filters .hist-filter-count{font-size:16px;font-weight:600}
 #app .tenant-history-table colgroup{display:none}
 #app .tenant-history-table .hist-status{grid-column:2;grid-row:1;justify-self:end;align-self:center}
 #app .tenant-history-table .hist-status::before{display:none}
 #app .tenant-history-table .hist-status .badge{white-space:nowrap}
 #app .tenant-history-table .hist-name{grid-column:1/-1;grid-row:2;font-size:16px;font-weight:600}
 #app .tenant-history-table .hist-deposit{grid-column:1/-1}
}
