/* Compact ledger tables. Monetary sources and desktop columns stay unchanged. */
.bm-app .bm-table-tablet,.bm-app .bm-table-mobile,.bm-app .bm-period-tablet { display:none; }
@media screen and (max-width:1024px) {
 .bm-app table.bm-arrears-list,.bm-app table.bm-collection-list { width:100%; min-width:0; table-layout:fixed; font-size:12px; white-space:normal; }
 .bm-app .bm-arrears-list th,.bm-app .bm-arrears-list td,.bm-app .bm-collection-list th,.bm-app .bm-collection-list td { padding:9px 5px; white-space:normal; overflow-wrap:anywhere; }
 .bm-app .bm-arrears-list .btn,.bm-app .bm-collection-list .btn { padding:6px 4px; min-height:34px; white-space:normal; font-size:inherit; }
 .bm-app .bm-table-tablet { display:block; }
 .bm-app .bm-table-secondary { margin-top:5px; font-weight:400; line-height:1.4; }
 .bm-app .bm-arrears-list tr > :nth-child(4),.bm-app .bm-collection-list tr > :nth-child(2) { display:none; }
 .bm-app .bm-arrears-list tr > :first-child { width:29%; }
 .bm-app .bm-collection-list tr > :first-child { width:23%; }
}
@media screen and (max-width:600px) {
 .bm-app table.bm-compact-table { width:100%; min-width:0; table-layout:fixed; font-size:11px; white-space:normal; }
 .bm-app .bm-compact-table th,.bm-app .bm-compact-table td { padding:8px 4px; white-space:normal; overflow-wrap:anywhere; }
 .bm-app .bm-compact-table a,.bm-app .bm-compact-table .btn { font-size:inherit; white-space:normal; padding:5px 2px; }
 .bm-app .bm-compact-table .bm-date-start,.bm-app .bm-compact-table .bm-date-end { display:block; white-space:nowrap; }
 .bm-app .bm-table-mobile { display:block; }
 .bm-app .bm-rent-list tr > :nth-child(4),.bm-app .bm-arrears-list tr > :nth-child(2),.bm-app .bm-collection-list tr > :nth-child(4),.bm-app .bm-collection-list tr > :nth-child(7) { display:none; }
 .bm-app .bm-rent-list tr > :first-child { width:27%; }
 .bm-app .bm-rent-list tr > :nth-child(2) { width:27%; }
 .bm-app .bm-rent-list tr > :last-child { width:15%; }
 .bm-app .bm-occupancy-table tr > :nth-child(3) { width:32%; }
 .bm-app .bm-occupancy-table tr > :last-child { width:13%; }
}
@media screen and (min-width:601px) and (max-width:1100px) {
 .bm-app table.bm-period-list { width:100%; min-width:0; table-layout:fixed; font-size:12px; }
 .bm-app .bm-period-list th,.bm-app .bm-period-list td { padding:10px 5px; white-space:normal; overflow-wrap:anywhere; }
 .bm-app .bm-period-list .bm-date-start,.bm-app .bm-period-list .bm-date-end { display:block; white-space:nowrap; }
 .bm-app .bm-period-list tr > :nth-child(5) { display:none; }
 .bm-app .bm-period-tablet { display:block; }
 .bm-app .bm-period-list .status { padding:5px; font-size:11px; }
 .bm-app .bm-period-list tr > :nth-child(3),.bm-app .bm-period-list tr > :nth-child(4) { width:15%; }
 .bm-app .bm-period-list tr > :nth-child(6),.bm-app .bm-period-list tr > :last-child { width:7%; }
}

/* Collection links replace action columns; selected view is explicit. */
.bm-app .bm-record-link { color:var(--ui-primary); font-weight:750; text-decoration:underline; text-underline-offset:3px; }
.bm-app nav[aria-label="청구·수납 보기"] a[aria-current="page"] { background:var(--ui-primary); color:#fff; border-color:var(--ui-primary); box-shadow:inset 0 0 0 1px var(--ui-primary); }
.bm-app .bm-nowrap { white-space:nowrap; }
@media screen and (max-width:1024px) {
 .bm-app table.bm-unit-list { table-layout:fixed; width:100%; min-width:0; font-size:12px; white-space:normal; }
 .bm-app .bm-unit-list td,.bm-app .bm-unit-list th { padding:9px 5px; white-space:normal; overflow-wrap:anywhere; }
 .bm-app .bm-unit-list tr > :nth-child(4),.bm-app .bm-unit-list tr > :nth-child(5),.bm-app .bm-unit-list tr > :nth-child(7),.bm-app .bm-unit-list tr > :nth-child(8) { display:none; }
 .bm-app .bm-unit-list tr > :first-child { width:28%; }
 .bm-app .bm-arrears-list tr > :first-child { width:36%; }
}
@media screen and (max-width:600px) {
 .bm-app table.bm-receipt-table,.bm-app table.bm-arrears-months,.bm-app table.bm-arrears-allocation { table-layout:fixed; width:100%; min-width:0; font-size:12px; white-space:normal; }
 .bm-app .bm-receipt-table th,.bm-app .bm-receipt-table td,.bm-app .bm-arrears-months th,.bm-app .bm-arrears-months td,.bm-app .bm-arrears-allocation th,.bm-app .bm-arrears-allocation td { padding:8px 4px; white-space:normal; overflow-wrap:anywhere; }
 .bm-app .bm-arrears-months tr > :nth-child(2),.bm-app .bm-arrears-months tr > :nth-child(4),.bm-app .bm-arrears-allocation tr > :nth-child(2) { display:none; }
 .bm-app .bm-arrears-months tr > :first-child,.bm-app .bm-arrears-allocation tr > :first-child { width:34%; }
 .bm-app .bm-receipt-table tr > :first-child { width:27%; }
 .bm-app .bm-collection-list,.bm-app .bm-arrears-list { font-size:12px; }
 .bm-app .bm-arrears-list tr > :first-child { width:36%; }
}

.bm-app .bm-rent-secondary { display:block; margin-top:5px; font-weight:400; line-height:1.4; }
.bm-app .bm-rent-tax { display:block; margin-top:5px; }
.bm-app .bm-rent-quote .bm-date-start,.bm-app .bm-rent-quote .bm-date-end { display:block; }
@media screen and (max-width:600px) {
 .bm-app table.bm-rent-list,.bm-app table.bm-rent-quote { width:100%; min-width:0; table-layout:fixed; font-size:13px; white-space:normal; }
 .bm-app .bm-rent-list tr > :first-child { width:34%; }
 .bm-app .bm-rent-list tr > :nth-child(2) { width:31%; }
 .bm-app .bm-rent-list tr > :last-child { width:35%; }
 .bm-app .bm-rent-list .bm-date-start,.bm-app .bm-rent-list .bm-date-end { font-size:12px; white-space:normal; }
 .bm-app .bm-rent-list a { font-size:13px; padding:0; }
 .bm-app .bm-rent-quote th,.bm-app .bm-rent-quote td { padding:8px 4px; white-space:normal; overflow-wrap:anywhere; }
 .bm-app .bm-rent-quote tr > :nth-child(4),.bm-app .bm-rent-quote tr > :nth-child(5),.bm-app .bm-rent-quote .bm-quote-desktop { display:none; }
 .bm-app .bm-rent-quote tr > :first-child { width:30%; }
 .bm-app .bm-rent-quote .bm-date-start,.bm-app .bm-rent-quote .bm-date-end { font-size:12px; }
 .bm-app .bm-rent-quote .bm-table-mobile > span { font-size:12px; color:var(--ui-muted); }
}

/* Tenant names in the rent list are ordinary text links, not action buttons. */
.bm-app .bm-rent-list a.bm-record-link,
.bm-app .bm-rent-list a.bm-record-link:hover {
 display:inline; width:auto; min-width:0; min-height:0; margin:0; padding:0;
 border:0; border-radius:0; background:transparent; box-shadow:none;
 color:var(--ui-primary); text-decoration:underline; text-underline-offset:3px;
}
