.mobile-cards .card-cell-label,.mobile-cards .row-actions>summary{display:none}
.mobile-cards .card-cell-content{min-width:0}
@media screen and (max-width:760px){
 body #records,body #invoiceList,body #documentList{overflow:visible}
 body table.mobile-cards{display:block;width:100%;min-width:0!important;border:0;background:transparent}
 .mobile-cards>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .mobile-cards>tbody{display:grid;gap:14px;width:100%}
 .mobile-cards>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;padding:16px;border:1px solid #dce4e0;border-radius:12px;background:#fff}
 body :is(#records,#invoiceList,#documentList) table.mobile-cards>tbody>tr>td{display:block;min-width:0!important;max-width:none!important;width:auto;padding:0;border:0;background:transparent!important;overflow-wrap:anywhere;text-align:left}
 .mobile-cards>tbody>tr>td:first-child{grid-column:1/-1;font-weight:600}
 body .mobile-cards .card-cell-label{display:block;font-size:12px;line-height:1.4;color:#626f6e;font-weight:500;text-transform:none;margin-bottom:4px}
 .mobile-cards .card-cell-content{line-height:1.5}
 .mobile-cards .card-cell-content>small{display:block;margin-top:4px;font-weight:400}
 body :is(#records,#invoiceList,#documentList) table.mobile-cards>tbody>tr>td.card-actions{grid-column:1/-1;border-top:1px solid #dce4e0;padding-top:10px;margin-top:2px}
 body .mobile-cards .row-actions{padding:0;margin:0;border:0;background:transparent}
 body .mobile-cards .row-actions>summary{display:flex;justify-content:space-between;align-items:center;min-height:44px;cursor:pointer;font-weight:600;color:inherit;list-style:none}
 .mobile-cards .row-actions>summary::-webkit-details-marker{display:none}
 .mobile-cards .row-actions>summary::after{content:'+';font-size:22px}
 .mobile-cards .row-actions[open]>summary::after{content:'\2212'}
 .mobile-cards .row-actions>summary:focus-visible{outline:3px solid #869785;outline-offset:2px;border-radius:4px}
 .mobile-cards .row-actions[open]>.card-cell-content{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding-top:8px}
 body .mobile-cards .row-actions .card-cell-content>:is(button,a){display:flex;justify-content:center;align-items:center;min-height:44px;box-sizing:border-box;width:100%;margin:0;padding:10px 12px;white-space:normal;text-align:center}
 body .mobile-cards .row-actions [hidden]{display:none!important}
 html[data-theme=dark] .mobile-cards>tbody>tr{background:#1a2721;border-color:#3a4b44}
 html[data-theme=dark] .mobile-cards .card-cell-label{color:#b1c1ba}
 html[data-theme=dark] .mobile-cards .card-actions{border-color:#3a4b44}
}

@media screen and (max-width:760px){body #invoiceList table.mobile-cards>tbody>tr>td:first-child{grid-column:auto}}

/* Compact actions on QR Codes, Leases and the recent-code table. */
body #records .row-actions{margin:0;padding:0;border:0;background:transparent;min-width:140px}
body #records .row-actions>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;min-height:42px;box-sizing:border-box;padding:8px 12px;border:1px solid #cbd5cf;border-radius:8px;background:#edf2ee;color:#304c4d;font-size:14px;font-weight:600;white-space:nowrap}
body #records .row-actions>summary::-webkit-details-marker{display:none}
body #records .row-actions>summary::after{content:'⌄';font-size:18px;line-height:1}
body #records .row-actions[open]>summary::after{content:'⌃'}
body #records .row-actions>summary:focus-visible{outline:3px solid #869785;outline-offset:2px}
body #records .row-actions:not([open])>.card-cell-content{display:none}
body #records .row-actions[open]>.card-cell-content{display:grid;grid-template-columns:1fr;gap:3px;margin-top:6px;padding:6px;border:1px solid #dce4e0;border-radius:8px;background:#f5f8f6}
body #records .row-actions .card-cell-content>:is(button,a){display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;box-sizing:border-box;margin:0;padding:9px 10px;border:0;border-radius:5px;background:transparent;color:#304c4d;text-align:left;text-decoration:none;font:inherit;font-size:14px;white-space:nowrap}
body #records .row-actions .card-cell-content>:is(button,a):hover{background:#e3ebe5}
body #records .row-actions .card-cell-content>[data-action=delete]{color:#a52b2b;border-top:1px solid #dce4e0;border-radius:0;margin-top:4px}
body #records .row-actions [hidden]{display:none!important}
html[data-theme=dark] body #records .row-actions>summary{background:#26382e;border-color:#4b6254;color:#e0e9e3}
html[data-theme=dark] body #records .row-actions[open]>.card-cell-content{background:#1d2e25;border-color:#3a4b44}
html[data-theme=dark] body #records .row-actions .card-cell-content>:is(button,a){color:#e0e9e3;background:transparent}
html[data-theme=dark] body #records .row-actions .card-cell-content>:is(button,a):hover{background:#31483a}
html[data-theme=dark] body #records .row-actions .card-cell-content>[data-action=delete]{color:#ffb7b7;border-color:#3a4b44}
@media(min-width:761px){body #records td.card-actions{width:190px;min-width:170px}}
@media(max-width:760px){body #records .row-actions .card-cell-content>:is(button,a){min-height:44px;font-size:16px;white-space:normal}}
