/* 1.9.2: mobile layout only. Brand colors come from the existing theme. */
@media (max-width:720px){
 body.mobile-chat191{overflow:hidden}
 body.mobile-chat191 #content{max-width:none;min-height:0!important;overflow:hidden}
 body.mobile-chat191 #content>.chat-screen{height:100%!important;min-height:0!important;max-height:100%}
 body.mobile-chat191 .chat-conversation{height:100%;min-height:0;overflow:hidden}
 body.mobile-chat191 .chat-thread{flex:1 1 0;min-height:0;overflow-y:auto}
 body.mobile-chat191 .chat-compose{flex:0 0 auto;padding:8px 10px max(8px,env(safe-area-inset-bottom));margin:0}
 body.mobile-chat-keyboard191 #mobileNav{display:none!important}
 body.mobile-chat-keyboard191 .chat-compose{padding-bottom:6px}
 body.mobile-chat191 #chatInput{box-sizing:border-box;min-height:44px;max-height:136px;font-size:16px;line-height:22px;overflow-y:auto}
 body.mobile-chat191 .chat-compose-row{align-items:flex-end}
}
.status-mobile192,.receipt-summary191 .delivery-state-note192{display:none}
@media(max-width:720px){
 .status-desktop192{display:none}.status-mobile192{display:inline}
 .status-badge19{white-space:nowrap;font-size:11px;line-height:16px;padding:3px 8px;flex:none}
 .receipt-summary191 .delivery-state-note192{display:block;font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 14px}
}
@media(max-width:720px){
 .content{padding:12px 12px calc(18px + env(safe-area-inset-bottom))}
 .topbar{padding:6px 12px;row-gap:6px}.topbar .breadcrumbs strong{font-size:14px}
 .top-actions .icon-btn{width:44px;height:44px;min-height:44px}
 .page-head{margin-bottom:12px;gap:8px}.page-head h1{font-size:21px;line-height:1.25}.page-head p{font-size:12px;line-height:1.4;margin-top:4px}
 .btn,.tab{min-height:44px;font-size:13px;padding:8px 12px}
 .icon-btn{min-width:44px;min-height:44px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}
 .field{margin-bottom:12px}.field>label{font-size:12px;margin-bottom:5px}
 .dialog-head{padding:14px 14px 12px}.dialog-head h3,.dialog-head h2{font-size:18px}
 .dialog-body{padding:14px}.dialog-footer{padding:10px 14px max(10px,env(safe-area-inset-bottom))}
 .dialog-footer .actions{gap:8px;flex-wrap:wrap}
 .panel-head{padding:14px}.panel-head h2{font-size:16px}
 .project-grid{gap:10px}.project-grid .project-card{padding:14px}
 .supplies-page192>.page-head,.supplies-page192>.tabs{touch-action:pan-y}
 .supplies-page192>.tabs .tab{touch-action:pan-y}
 .supplies-page192>.page-head>div>p{display:none}
 .supplies-page192 .toolbar{margin:10px 0;gap:8px}
 .supply-table19 tbody{padding:6px;gap:6px}.supply-table19 tr{padding:8px;grid-template-columns:minmax(0,1fr) 68px;gap:2px 8px}
 .supply-table19 td{font-size:13px;padding:3px!important}.supply-table19 td:first-child{padding-right:44px!important}
 .supply-table19 td[data-label=Статус]{grid-column:1/-1;padding-top:5px!important}.supply-table19 td[data-label=Статус]:before{display:none}
 .supply-table19 .record-link{font-size:14px}.supply-table19 .row-sub{font-size:12px;line-height:1.4}
 .supply-table19 td:last-child:not(.supply-empty19){top:2px;right:2px}
 .delivery-modal191 .dialog-head #dialogTitle{font-size:17px}.delivery-modal191 .window-side{font-size:13px}
}
.request-meta192 p{white-space:pre-wrap;overflow-wrap:break-word}
@media(max-width:720px){
 .supplies-page192 #uploadRequest,.supplies-page192 #uploadInvoice,.supplies-page192 #directInvoice,.supplies-page192 a[href$="request_template.xlsx"]{display:none}
 #modal:has(.mobile-request192){position:fixed;top:var(--request-top192,0px);left:0;margin:0;width:100%;height:var(--request-height192,100dvh);max-height:var(--request-height192,100dvh);max-width:none;border-radius:0}
 #modalBody:has(.mobile-request192){width:100%;height:100%;max-height:100%;min-height:0;padding:0}
 .mobile-request192{height:100%;min-height:0;overflow:hidden}
 .mobile-request192 [hidden]{display:none!important}
 #mobileRequestMain192,#mobileRequestItem192{height:100%;min-height:0;display:flex;flex-direction:column}
 #requestItemForm192{display:flex;flex-direction:column;min-height:0;flex:1}
 .mobile-request192 .dialog-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .mobile-request192 .dialog-head,.mobile-request192 .dialog-footer{flex:0 0 auto}
 .mobile-request192 .dialog-footer{display:grid;gap:8px}.mobile-request192 .dialog-footer small{font-size:11px;color:var(--muted)}
 .mobile-request192 .dialog-footer .actions{display:flex;flex-wrap:wrap}.mobile-request192 .dialog-footer .primary{flex:1}
 .request-header192 .field,.request-extra192 .field,.mobile-request192 .field{display:grid;gap:5px;font-size:12px}
 .mobile-request192 input,.mobile-request192 select,.mobile-request192 textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--white);color:inherit;font:inherit;min-height:44px}
 .mobile-request192 .section-title h4{margin:4px 0 10px;font-size:14px}.mobile-request192 .section-title span{color:var(--muted);margin-left:6px}
 .request-item-card192{position:relative;display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;background:var(--white)}
 .request-item-open192{min-width:0;flex:1;display:flex;align-items:center;gap:10px;background:none;border:0;text-align:left;padding:12px 4px 12px 10px;color:inherit;font:inherit;min-height:64px;cursor:pointer}
 .request-item-num192{color:var(--muted);font-size:11px}.request-item-copy192{display:grid;gap:4px;min-width:0;flex:1}.request-item-copy192 b{font-size:14px;line-height:1.4;overflow-wrap:break-word}.request-item-copy192 span{font-size:13px;font-weight:600}.request-item-copy192 small{font-size:12px;color:var(--muted);overflow-wrap:break-word}
 .request-item-open192 svg{width:16px;flex:none}.request-item-delete192{flex:0 0 44px;margin-right:4px}
 .request-add192{width:100%;margin:6px 0 12px}.request-item-quantity192{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.7fr);gap:12px}
 .request-extra192 summary{min-height:44px;display:flex;align-items:center;font-size:13px;cursor:pointer}.request-extra192 summary:after{content:'＋';margin-left:auto}.request-extra192[open] summary:after{content:'−'}
}
@media(max-width:720px){
 #mobileNav .mobile-nav-item[data-mobile-page=chats] .chat-nav-badge,.chat-room-button .chat-count{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;
  width:20px!important;height:20px!important;min-width:20px!important;max-width:none!important;min-height:20px!important;max-height:20px!important;
  padding:0!important;margin:0!important;border-radius:999px!important;line-height:1!important;font-size:10px!important;font-weight:700!important;text-align:center;
 }
 #mobileNav .mobile-nav-item[data-mobile-page=chats] .chat-nav-badge[data-wide192=true],.chat-room-button .chat-count[data-wide192=true]{width:auto!important;min-width:26px!important;padding:0 5px!important}
 #mobileNav .mobile-nav-item[data-mobile-page=chats] .chat-nav-badge[hidden]{display:none!important}
}
