#mobileRecordHeaderActions{display:none}
.mobile-record-screen{width:100%;min-width:0;max-width:1180px;overflow-wrap:anywhere}
.mobile-record-screen .mobile-record-form-heading,.mobile-record-screen .back-button{display:none}
.mobile-record-screen .modal-back-header{margin:0!important}
.mobile-record-screen :where(form,section,fieldset,.field,.form-grid,.sale-header-grid,.sale-editor-grid,.sale-credit-grid,.customer-summary){min-width:0;max-width:100%}
.mobile-record-screen :is(.input,.select,textarea){min-width:0;max-width:100%}
.mobile-record-screen textarea{min-height:90px;resize:vertical}
.mobile-record-screen .table-wrap{width:100%;min-width:0;max-width:100%;overflow:auto;overscroll-behavior-x:contain}
.mobile-record-screen .table-wrap:focus-visible{outline:2px solid var(--soft-purple-ink);outline-offset:2px}
@media(min-width:901px){
 body:has(#content>.mobile-record-screen) .topbar-title-group{left:82px;right:calc(100px + min(220px,18vw));width:auto;max-width:none;transform:none;justify-content:flex-start;text-align:left}
 .mobile-record-screen:has(>form){max-width:1040px}
 .mobile-record-screen .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .mobile-record-screen .customer-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
 .mobile-record-screen .table{width:100%;min-width:max-content;max-width:none;overflow-wrap:normal}
 .mobile-record-screen .table :is(th,td){white-space:nowrap;overflow-wrap:normal}
 .mobile-record-screen .table .table-action-group{flex-wrap:nowrap;max-width:none}
 .mobile-record-screen .table .finance-movement-label{display:inline;margin:0 0 0 10px}
 .mobile-record-screen :is(.purchase-total,.sale-final-total,.purchase-cart-header,.customer-head,.list-item){flex-wrap:wrap;gap:12px}
 .mobile-record-screen .actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
 .mobile-record-screen .btn{max-width:100%;white-space:normal}
 .mobile-record-screen .entries-detail-actions{display:flex;flex-wrap:wrap;gap:12px}
 #content .mobile-record-screen .entries-detail-actions>.btn{width:auto;min-width:160px}
 .mobile-record-screen .entries-detail-page{max-width:none;padding:0}
 .mobile-record-screen .table:has(.table-text-cell){min-width:0}
 .mobile-record-screen .table td.table-text-cell{min-width:14ch;max-width:38ch;white-space:normal;overflow-wrap:anywhere}
 .mobile-record-screen:is([data-mobile-record-key^="card-invoice:"],[data-mobile-record-key^="card-purchase:"]) .table{width:auto;min-width:0}
 .mobile-record-screen:is([data-mobile-record-key^="card-invoice:"],[data-mobile-record-key^="card-purchase:"]) .table :is(th,td){padding-inline:clamp(12px,2vw,28px)}
}
@media(max-width:900px){
 body:has(#content>.mobile-record-list) .topbar-title-group,body:has(#content>.mobile-record-screen) .topbar-title-group{left:76px;right:120px;width:auto;max-width:none;transform:none;justify-content:flex-start;text-align:left}
 body:has(#content>.mobile-record-screen) .topbar-title-group{right:18px}
 body:has(#content>.mobile-record-list) #mobileRecordHeaderActions{display:flex}
 .mobile-record-list,.mobile-record-screen{--transaction-line:#494250;--transaction-muted:#b9b1c5;width:100%;max-width:100%;min-width:0;margin-inline:auto;overflow-wrap:anywhere}
 body.light-theme .mobile-record-list,body.light-theme .mobile-record-screen{--transaction-line:#dedbe3;--transaction-muted:#655e70}
 .mobile-record-form-heading{display:none}
 .mobile-record-create{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
 .mobile-record-create>.btn{flex:1;min-width:0;min-height:44px;padding:10px;font-size:14px;white-space:normal}
 .mobile-record-row{display:grid;grid-template-columns:42px minmax(0,1fr) minmax(82px,auto);align-items:center;gap:10px;width:100%;padding:18px 0;border:0;border-bottom:1px solid var(--soft-purple-border);text-align:left;color:inherit;font:inherit;cursor:pointer}
 .mobile-record-row,.mobile-record-row:hover,.mobile-record-row:active,.mobile-record-list .transaction-row,.mobile-record-list .transaction-row:hover,.mobile-record-list .transaction-row:active{background:transparent;-webkit-tap-highlight-color:transparent}
 .mobile-record-icon{display:grid;place-items:center;width:42px;height:42px;color:var(--muted);flex:none}
 .mobile-record-icon svg{width:24px;height:24px}
 [data-mobile-record-list="customers"] .mobile-customer-row{grid-template-columns:minmax(0,1fr) auto}
 .mobile-record-copy,.mobile-record-side{min-width:0}
 .mobile-record-copy>strong,.mobile-record-copy>span,.mobile-record-side>strong,.mobile-record-side>span{display:block}
 .mobile-record-copy>strong{font-size:16px}.mobile-record-copy>span,.mobile-record-side>span{font-size:12px;color:var(--muted);margin-top:5px}
 .mobile-record-side{text-align:right}.mobile-record-side>strong{font-size:17px}
 .mobile-record-screen .form-grid,.mobile-record-screen .sale-header-grid,.mobile-record-screen .sale-editor-grid,.mobile-record-screen .sale-credit-grid,.mobile-record-screen .customer-summary{grid-template-columns:minmax(0,1fr)}
 .mobile-record-screen .form,.mobile-record-screen .field,.mobile-record-screen .section,.mobile-record-screen input,.mobile-record-screen select,.mobile-record-screen textarea{min-width:0;max-width:100%}
 .mobile-record-screen .actions,.mobile-record-screen .stock-row-actions{display:flex;gap:10px;flex-wrap:wrap}
 .mobile-record-screen .actions>.btn,.mobile-record-screen form>.btn{min-width:0;max-width:100%;min-height:46px;white-space:normal}
 .mobile-record-screen .entries-detail-actions>.btn{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;padding:12px}
 .mobile-record-screen .table-wrap{width:100%;max-width:100%;overflow:visible}
 .mobile-record-screen table,.mobile-record-screen tbody,.mobile-record-screen tr,.mobile-record-screen td{display:block;min-width:0;width:100%;white-space:normal}
 .mobile-record-screen thead,.mobile-record-screen th{display:none}
 .mobile-record-screen tr{padding:12px 0;border-bottom:1px solid var(--soft-purple-border)}
 .mobile-record-screen tr:has(>th){display:none}
 .mobile-record-screen td{padding:6px 0;border:0;overflow-wrap:anywhere}
 .mobile-record-screen td::before{content:attr(data-mobile-label);display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
 .mobile-record-screen td[data-mobile-label=""]::before{display:none}
 .mobile-record-screen .modal-back-header>.back-button{display:none}
 .mobile-record-screen .modal-back-header{margin:0!important}
 .mobile-record-screen .purchase-total{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 .mobile-record-screen .sale-select-action{min-width:0;grid-template-columns:minmax(0,1fr) 44px}
 .mobile-record-screen .sale-select-action>.select{width:100%;min-width:0}
 .mobile-record-screen .sale-add-shortcut{width:44px;min-width:44px;min-height:44px}
 .mobile-record-screen #saleCartTable .table tbody tr{display:grid;grid-template-columns:minmax(0,.6fr) repeat(2,minmax(0,1fr));gap:12px;padding:16px 0}
 .mobile-record-screen #saleCartTable .table td{padding:0;border:0}
 .mobile-record-screen #saleCartTable .table td:first-child{grid-column:1/-1}
 .mobile-record-screen #saleCartTable .table td:first-child::before{display:none}
 .mobile-record-screen #saleCartTable .table td:nth-child(3){text-align:center}
 .mobile-record-screen #saleCartTable .table td:nth-child(4){text-align:right}
 .mobile-record-screen #saleCartTable .table td:last-child:not(:first-child){grid-column:1/-1;text-align:right}
 .mobile-record-screen #saleCartTable .table td:last-child:not(:first-child)::before{display:none}
 .mobile-record-screen #saleCartTable .stock-row-actions{width:100%;justify-content:flex-end;flex-wrap:nowrap}
 .mobile-record-screen .entries-detail-items>li{align-items:flex-start}.mobile-record-screen .entries-detail-items b{white-space:normal;text-align:right;max-width:42%}
 .mobile-record-screen[data-mobile-record-key^="quote:"] .entries-detail-items>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;align-items:baseline}
 .mobile-record-screen[data-mobile-record-key^="quote:"] .entries-detail-items>li>div{display:contents}
 .mobile-record-screen[data-mobile-record-key^="quote:"] .entries-detail-items strong{grid-column:1/-1}
 .mobile-record-screen[data-mobile-record-key^="quote:"] .entries-detail-items span{margin-top:0}
 .mobile-record-screen[data-mobile-record-key^="quote:"] .entries-detail-items b{max-width:none}
}
