/* Shared, touch-friendly detail surfaces; only the body scrolls. */
.closure-detail-card.modal-card{padding:0;display:flex;flex-direction:column;overflow:hidden;max-height:92vh;max-height:92dvh}
.detail-fixed-header{position:relative;flex:none;padding:20px 76px 16px 20px;border-bottom:1px solid #e5e7eb;background:#fff}
.detail-fixed-header h2{font-size:1.2rem;line-height:1.35;margin:6px 0;overflow-wrap:anywhere}
.detail-fixed-header p{margin:4px 0;overflow-wrap:anywhere}
.detail-fixed-header .modal-x{width:44px;height:44px;top:12px;right:12px;border-radius:12px;background:#f3f4f6}
.detail-scroll-body{overflow-y:auto;min-height:0;padding:20px;overscroll-behavior:contain}
.detail-scroll-body .detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.detail-scroll-body .detail-metrics > *{display:flex;flex-direction:column;gap:8px;min-width:0;border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff}
.detail-scroll-body .detail-metrics p,.detail-scroll-body .detail-metrics h3{margin:0}
.detail-scroll-body .detail-metrics > * > span{font-size:1rem;font-weight:600}
.detail-scroll-body .detail-metrics > * > b{font-size:1.4rem}
.detail-scroll-body .detail-metrics > * > div{display:flex;justify-content:space-between;gap:12px}
.detail-scroll-body :is(p,span,b,strong){overflow-wrap:anywhere}
.dispatch-review-dialog{padding:0!important;overflow:hidden!important;max-height:92vh;max-height:92dvh}
.dispatch-review-dialog[open]{display:flex;flex-direction:column}
.dispatch-review-dialog .detail-fixed-header{display:flex;align-items:flex-start;gap:12px;padding:16px}
.dispatch-review-dialog .detail-fixed-header h2{flex:1;min-width:0;margin:0}
.dispatch-review-dialog .review-close{position:static!important;float:none!important;flex:none;min-height:44px}
.cash-closure-dialog{width:min(520px,calc(100% - 28px));max-height:90dvh;padding:24px;box-sizing:border-box;border:0;border-radius:18px;color:#231f20;background:#fff;overflow:auto}
.cash-closure-dialog::backdrop{background:rgba(24,19,20,.6)}
.cash-closure-dialog h2{margin:0 0 12px}
.cash-closure-dialog-actions{display:grid;gap:8px;margin-top:18px}
.cash-closure-dialog-actions .btn{min-height:44px;white-space:normal}
@media(max-width:480px){.cash-closure-dialog{padding:18px}.cash-closure-dialog-actions .btn{padding:8px;font-size:14px}}
@media(max-width:640px){.detail-scroll-body .detail-metrics{grid-template-columns:minmax(0,1fr)}.detail-scroll-body{padding:16px}.closure-detail-card .detail-total{gap:12px;flex-wrap:wrap}.dispatch-review-dialog{width:calc(100% - 32px);box-sizing:border-box}.detail-scroll-body .head-actions{display:flex;flex-direction:column}.detail-scroll-body .head-actions>*{white-space:normal;text-align:center}}
