/* Closure cards in dashboard and history: preserve readable amounts on mobile. */
.detail-fixed-header .modal-x{z-index:2}
#page .closure-summary{min-width:0}
#page .closure-summary>header>div:first-child{min-width:0}
#page .closure-summary .closure-detail{white-space:nowrap;word-break:normal;overflow-wrap:normal;min-width:120px;min-height:44px}
#page .closure-summary-grid section>div b{white-space:nowrap;word-break:normal;overflow-wrap:normal;flex-shrink:0;font-variant-numeric:tabular-nums}
#page .closure-summary-grid section>div{flex-wrap:wrap;align-items:baseline}
#page .closure-summary-grid section>div span{flex:1 1 120px}
@media(max-width:768px){
 #page .closure-summary>header{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px}
 #page .closure-head-actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
 #page .closure-summary-grid{grid-template-columns:minmax(0,1fr)}
 #page .closure-summary-grid section{min-width:0;border-left:0!important;border-top:1px solid var(--line);padding:16px}
 #page .closure-summary-grid section:first-child{border-top:0}
 #page .closure-summary-grid .closure-sales-total{display:flex;justify-content:space-between;align-items:center;gap:12px}
 #page .closure-list{padding:0 8px 12px}
}
