/* Delivery card: intrinsic text sizes cannot squeeze adjacent fields. */
.settings-mobile191{display:none}
.delivery-modal191 .invoice-window{grid-template-columns:minmax(0,1fr) minmax(250px,300px);min-width:0}
.delivery-modal191 .window-main,.delivery-modal191 .window-side,.delivery-modal191 .dialog-head>div{min-width:0}
.delivery-modal191 .dialog-eyebrow{display:flex;flex-direction:column;align-items:flex-start;gap:8px;overflow-wrap:break-word;word-break:normal}
.delivery-modal191 .dialog-eyebrow .badge,.delivery-modal191 .status-badge19{max-width:100%;white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.45}
.delivery-modal191 .summary-kv{display:block;min-width:0}
.delivery-modal191 .summary-kv dd{margin:4px 0 12px;min-width:0;overflow-wrap:break-word;word-break:normal}
.delivery-modal191 .summary-kv .object-label{max-width:100%;white-space:normal}
.delivery-modal191 .delivery-receiving19-row{grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}
.delivery-modal191 .delivery-receiving19-row b{min-width:0;white-space:normal;overflow-wrap:break-word;word-break:normal;text-align:left}
.receipt-summary191{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.receipt-summary191 p{display:grid;gap:6px;margin:10px 0}.receipt-summary191 small{color:var(--muted)}
.delivery-modal191 .dialog-footer .actions{flex-wrap:wrap;gap:8px}.delivery-modal191 .dialog-footer .btn{white-space:normal}
.receipt191 .receipt-edit18{min-width:0}.receipt191 .receipt-edit18>span:first-child{min-width:0;overflow-wrap:break-word}
.receipt191 .receipt-qty18{flex:none;min-width:68px}.receipt-balance191{margin-top:18px}
.receipt-balance191 h4{font-size:14px;margin:12px 0}.receipt191 .receipt-row18{touch-action:pan-y}
@media(max-width:720px){
 body.mobile-chat191 #content{position:fixed;left:0;right:0;top:var(--mobile-chat-top191,60px);height:var(--mobile-chat-height191,calc(100dvh - 130px));padding:0!important;margin:0!important;width:100%;z-index:11}
 body.mobile-chat191 #content>.chat-screen{height:100%;min-height:0;border:0;border-radius:0;display:block;position:relative}
 body.mobile-chat-thread191 .topbar{display:none}
 body.mobile-chat191 #mobileNav{transform:none;transition:none}
 body.mobile-chat-keyboard191 #mobileNav{transform:translateY(calc(100% + env(safe-area-inset-bottom)))}
 body.mobile-chat191 .chat-compose{flex-shrink:0;padding-bottom:max(9px,env(safe-area-inset-bottom))}
 body.mobile-chat191 .chat-conversation{height:100%;min-height:0}
 body.mobile-chat191 .chat-header{flex-shrink:0;padding-top:max(10px,env(safe-area-inset-top))}
 body.mobile-chat191 .chat-thread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 body.mobile-chat191 .chat-list-head h1{flex:1}body.mobile-chat191 .chat-list-head{gap:8px}
 body.mobile-chat191 #chatInput{font-size:16px}
 #sidebar{height:100dvh;max-height:100dvh;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding-top:calc(18px + env(safe-area-inset-top));padding-bottom:calc(18px + env(safe-area-inset-bottom))}
 #sidebar>*{flex-shrink:0}#sidebar #nav{overflow:visible;flex:0 0 auto}#sidebar .sidebar-bottom{flex:0 0 auto;margin-top:16px}
 .settings-mobile191{display:grid;gap:8px;font-size:13px;color:var(--muted);min-width:0}
 .settings-mobile191 select{display:block;width:100%;max-width:100%;font-size:16px;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--white)}
 .settings-layout>.settings-nav{display:none}.settings-layout,.settings-body{min-width:0;max-width:100%}
 .settings-layout{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
 .settings-body .panel-head{flex-wrap:wrap;gap:10px}.settings-body .v13-access-row{grid-template-columns:minmax(0,1fr);gap:8px}
 .settings-body .form-grid,.settings-body .form-row,.settings-body .field-row{grid-template-columns:minmax(0,1fr)}
 .delivery-modal191 .invoice-window{display:flex;flex-direction:column;gap:20px}
 .delivery-modal191 .links-toolbar{flex-wrap:wrap;gap:8px}
 .delivery-modal191 .window-main .section-title{flex-wrap:wrap;gap:8px}
 .delivery-modal191 .window-side{width:100%;max-width:none;box-sizing:border-box}
 .delivery-modal191 .dialog-head{flex-shrink:0}.delivery-modal191 .dialog-head>div:first-child{min-width:0;flex:1}
 .delivery-modal191 .window-main .table-wrap>.invoice-items{min-width:0;width:100%;table-layout:fixed}
 .delivery-modal191 .invoice-items th,.delivery-modal191 .invoice-items td{padding:9px 4px;white-space:normal;overflow-wrap:break-word;font-size:12px}
 .delivery-modal191 .invoice-items td strong{overflow-wrap:break-word;word-break:normal}
 .delivery-modal191 .window-main .table-wrap>.item-table{min-width:0;width:100%;table-layout:fixed}
 .delivery-modal191 .window-main .table-wrap>.item-table th,.delivery-modal191 .window-main .table-wrap>.item-table td{white-space:normal;overflow-wrap:break-word;word-break:normal;padding:9px 4px}
 .delivery-modal191 .invoice-items,.delivery-modal191 .invoice-items tbody{display:block}
 .delivery-modal191 .invoice-items thead,.delivery-modal191 .invoice-items .row-number{display:none}
 .delivery-modal191 .invoice-items tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px;border-bottom:1px solid var(--line)}
 .delivery-modal191 .invoice-items td:not(.qty):not(.row-number){grid-column:1/-1;width:auto}
 .delivery-modal191 .invoice-items td.qty{text-align:left;min-width:0}
 .delivery-modal191 .invoice-items td[data-qty-label]:before{content:attr(data-qty-label);display:block;color:var(--muted);font-size:11px;margin-bottom:4px}
 .delivery-modal191 .dialog-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom));flex-shrink:0}
 .delivery-modal191 .dialog-footer .actions{display:flex;flex-wrap:wrap}.delivery-modal191 .dialog-footer .btn{flex:1 1 130px;max-width:100%}
 .receipt191 .receipt-edit18{gap:10px}.receipt191 .receipt-edit18 b{font-size:14px}
}
