.source-links{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.source-dialog{width:min(1200px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}.source-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.source-heading h2{margin:0;font-size:22px}.source-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;border:1px solid #e5eaf2;border-radius:12px;background:#f7f9fc;margin-bottom:16px}.source-filter-grid .field{margin:0;min-width:0;font-size:12px}.source-filter-grid input,.source-filter-grid select,.source-customer-fields input,.source-customer-fields textarea{display:block;width:100%;box-sizing:border-box;min-width:0;max-width:100%;margin-top:7px;padding:11px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#192337;font:inherit}.source-filter-grid .actions{align-items:end;flex-wrap:wrap}.source-list-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;font-size:12px}.source-table{max-width:100%;overflow:auto}.source-table td{max-width:260px;white-space:normal;overflow-wrap:anywhere}.source-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.source-detail-grid>*{min-width:0}.source-detail-grid h3{margin:0 0 16px;font-size:16px}.source-description{white-space:pre-line;overflow-wrap:anywhere;line-height:1.8;font-size:13px}.source-customer-fields .field{display:block;margin-bottom:12px;font-size:13px}.source-customer-fields [readonly]{background:#f5f7fb}.source-detail-grid .form-panel{padding:20px}
/* An opaque desktop header masks the complete fixed strip, including its gutters. */
@media(min-width:761px){.v2-shell .topbar{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate}.v2-shell .topbar:before{content:'';position:absolute;inset:-16px -28px -10px;background:#edf1f7;z-index:-2;pointer-events:none}.v2-shell .topbar:after{content:'';position:absolute;inset:0;border-radius:inherit;background:#fff;z-index:-1;pointer-events:none}}
/* Keep the page within the viewport; wide data tables scroll inside their cards. */
.v2-shell #view,.v2-shell .workspace,.panel,.form-panel,.screen-layout,.screen-layout>*,.two-columns>*,.operation-filters,.source-dialog{min-width:0}.v2-shell .table-wrap{max-width:100%;overflow-x:auto}input,select,textarea{box-sizing:border-box;max-width:100%}.actions{flex-wrap:wrap}.field{min-width:0}dialog{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
@media(max-width:1024px){.source-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.source-detail-grid{grid-template-columns:1fr}}
@media(max-width:1024px) and (pointer:coarse){input:not([type=checkbox]):not([type=radio]),select,textarea,[contenteditable=true]{font-size:16px!important}}
@media(max-width:760px){.source-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);padding:18px 14px;border-radius:16px}.source-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}.source-filter-grid .actions{grid-column:1/-1}.source-filter-grid .button,.source-links .button{flex:1;min-height:44px}.source-heading h2{font-size:19px}.source-list-summary{flex-wrap:wrap}.source-detail-grid .form-panel{padding:16px}.source-table table,.source-table tbody{display:block;width:100%}.source-table thead{display:none}.source-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #e3e9f1;border-radius:12px;padding:14px;margin-bottom:12px}.source-table td{display:block;max-width:none;padding:0;border:0;overflow-wrap:anywhere;font-size:12px}.source-table td:before{content:attr(data-label);display:block;font-size:10px;color:#75839a;margin-bottom:5px}.source-table td:last-child{grid-column:1/-1}.source-table td:last-child .button{width:100%;min-height:42px}.source-dialog .table-footer{flex-wrap:wrap;gap:10px}input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]),select,textarea,[contenteditable=true]{font-size:16px!important}.screen-status{flex-wrap:wrap}.screen-status>span{overflow-wrap:anywhere}.operation-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.operation-filters input,.operation-filters select{width:100%;min-width:0}.operation-filters .button{min-height:44px}.screen-layout .actions .button{white-space:normal}.source-customer-fields input,.source-customer-fields textarea{font-size:16px}}
@media(max-width:360px){.source-filter-grid{grid-template-columns:1fr}.source-table tr{grid-template-columns:1fr}.operation-filters{grid-template-columns:1fr}}
.screen-sms-dialog{width:min(560px,calc(100vw - 24px));padding:24px;border:1px solid #e0e7f0;border-radius:18px;background:#fff;color:#192337;box-shadow:0 24px 90px #0c182540}.screen-sms-dialog::backdrop{background:#111b326b;backdrop-filter:blur(5px)}.screen-sms-dialog h2{display:flex;align-items:center;gap:10px}.screen-sms-dialog h2 svg{width:24px;height:24px;flex:none}.screen-sms-dialog .field{display:block;margin:18px 0 10px;font-size:13px}.screen-sms-dialog input,.screen-sms-dialog select{display:block;width:100%;padding:12px;margin-top:8px;min-width:0;border:1px solid #dce3ed;border-radius:9px;font:inherit;background:#f7f9fc}.screen-sms-dialog .actions{justify-content:flex-end;margin-top:22px}.screen-sms-dialog .button{min-height:44px}.screen-sms-dialog #screen-sms-error{color:#cf0030;font-size:13px}.screen-sms-dialog .notice{line-height:1.7}.screen-sms-dialog .form-help{line-height:1.7}@media(max-width:760px){.screen-sms-dialog{padding:20px 16px}.screen-sms-dialog input,.screen-sms-dialog select{font-size:16px}.screen-sms-dialog .actions .button{flex:1}}
.source-overview{margin-top:16px;padding-bottom:16px}.source-overview>.form-help,.source-overview #source-overview-body>.form-help{margin:12px 18px}.source-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 16px}.source-overview-grid article{min-width:0;padding:16px;background:#f7f9fc;border:1px solid #e5eaf2;border-radius:12px}.source-overview-grid h3{font-size:14px;margin:0 0 10px;text-transform:capitalize}.source-overview-grid p{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.source-overview-grid td{white-space:normal;overflow-wrap:anywhere}.source-overview .panel-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}@media(max-width:760px){.source-overview-grid{grid-template-columns:1fr;padding:0 12px}.source-overview-grid article{padding:14px}}@media(max-width:1024px){input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]),select,textarea{font-size:16px!important}}
.source-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.source-info-grid>div{min-width:0;padding:10px;border:1px solid #e5eaf2;border-radius:9px;background:#f7f9fc}.source-info-grid dt{font-size:10px;color:#75839a;margin-bottom:7px}.source-info-grid dd{font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere}@media(max-width:360px){.source-info-grid{grid-template-columns:1fr}}
/* General lists become labelled records on phones and tablets instead of squeezing every column. */
@media(max-width:1024px){
 .v2-shell .responsive-records,dialog .responsive-records{overflow:visible;border-radius:0;min-width:0;width:100%}
 .v2-shell .responsive-records table,dialog .responsive-records table{display:block;width:100%!important;min-width:0!important;max-width:100%;table-layout:auto!important;word-break:normal}
 .responsive-records thead{display:none}
 .responsive-records tbody{display:grid;gap:12px;width:100%;min-width:0;padding:12px;box-sizing:border-box}
 .responsive-records tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;width:100%;min-width:0;padding:16px;border:1px solid #e2e8f1;border-radius:12px;background:#fff;box-sizing:border-box}
 .v2-shell .responsive-records tbody td,dialog .responsive-records tbody td{display:block;min-width:0;max-width:100%;width:auto;padding:0;border:0;text-align:left;white-space:normal;word-break:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
 .responsive-records tbody td:before{content:attr(data-label);display:block;margin-bottom:5px;font-size:10px;line-height:1.4;font-weight:600;color:#79859c;letter-spacing:.02em}
 .responsive-records tbody td.record-wide,.responsive-records tbody td.record-actions,.responsive-records tbody td.record-empty{grid-column:1/-1}
 .responsive-records tbody td.record-empty:before,.responsive-records tbody td.record-actions:before{display:none}
 .responsive-records tbody td.record-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:4px}
 .responsive-records .record-actions .button{flex:1;min-height:44px;justify-content:center;white-space:normal}
 .responsive-records td small{font-size:11px;white-space:normal;overflow-wrap:anywhere}
 .responsive-records td:empty{display:none}
 .source-overview-grid .responsive-records tbody{padding:0}
 .v2-shell .table-footer{flex-wrap:wrap;gap:12px;font-size:12px}
 .v2-shell .table-footer .actions{flex-wrap:wrap;gap:8px}
 .v2-shell .table-footer .button{min-height:42px}
}
@media(max-width:360px){.responsive-records tbody tr{grid-template-columns:minmax(0,1fr);padding:14px;gap:12px}.responsive-records tbody{padding:10px}.responsive-records tbody td{grid-column:1!important}}
.transfer-dialog{width:min(1050px,calc(100vw - 32px));max-width:calc(100vw - 24px);padding:24px}.transfer-dialog .table-wrap{max-width:100%}.transfer-dialog .field{display:block;margin:14px 0;font-size:13px}.transfer-dialog input,.transfer-dialog select,.transfer-dialog textarea,.transfer-filters input,.transfer-filters select{box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;padding:11px;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:#192337;margin-top:7px;font:inherit}.transfer-dialog td input{min-width:80px}.transfer-dialog h3{font-size:17px;margin:24px 0 14px}.transfer-dialog .actions{justify-content:flex-end;margin-top:18px}.transfer-dialog .source-info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.transfer-sync{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 14px;color:#6a7892;font-size:12px}.transfer-sync .dot{background:#00b78d}.transfer-sync small{margin-left:auto}.transfer-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.transfer-filters .field{font-size:12px;margin:0;min-width:0}.transfer-filters .actions{grid-column:1/-1}.transfer-list-panel{margin-top:14px}.transfer-totals{background:#f2f6fb;border:1px solid #e2e9f2;border-radius:10px;padding:14px;margin:14px 0;font-size:13px;line-height:1.7}.transfer-exact{color:#008c70}.transfer-difference{color:#c44a00;font-weight:600}.transfer-search-results{display:grid;gap:8px;max-height:280px;overflow:auto;margin:12px 0}.transfer-draft-item{display:grid;grid-template-columns:minmax(0,1fr) 120px 170px auto;align-items:center;gap:12px;padding:14px;margin:10px 0;border:1px solid #e2e8f1;border-radius:12px;background:#f7f9fc}.transfer-draft-item>div{min-width:0}.transfer-draft-item strong{font-size:13px;overflow-wrap:anywhere;line-height:1.6}.transfer-draft-item small{display:block;font-size:11px;color:#74829b;margin-top:7px}.transfer-draft-item .field{margin:0}.transfer-dialog #transfer-create-message,.transfer-dialog #transfer-receive-message{font-size:13px;line-height:1.6;color:#bb0030}.transfer-notes[hidden]{display:none}
@media(max-width:1024px){.transfer-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.transfer-draft-item{grid-template-columns:minmax(0,1fr) 100px}.transfer-dialog .source-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.transfer-dialog{width:calc(100vw - 20px);padding:18px 14px;border-radius:16px}.transfer-dialog .source-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.transfer-dialog .form-grid{display:grid;grid-template-columns:minmax(0,1fr)}.transfer-draft-item{grid-template-columns:minmax(0,1fr);padding:14px}.transfer-dialog input,.transfer-dialog select,.transfer-dialog textarea{font-size:16px!important}.transfer-dialog .button{min-height:44px}.transfer-dialog .actions>.button{flex:1;white-space:normal}.transfer-dialog .manual-search{flex-wrap:wrap}.transfer-dialog .manual-search input{width:100%;flex:1 1 100%}.transfer-dialog .manual-search .button{width:100%}.transfer-sync{font-size:11px}.transfer-sync small{margin-left:0;width:100%}.transfer-filters .actions>.button{flex:1;min-height:44px}.transfer-dialog .responsive-records tbody{padding:0}.transfer-dialog .responsive-records td input{min-width:0}.transfer-dialog .source-info-grid dd{font-size:12px}}
@media(max-width:360px){.transfer-filters,.transfer-dialog .source-info-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .v2-shell .panel>.table-wrap.responsive-records tbody td,.v2-shell .screen-source-details .table-wrap.responsive-records tbody td,dialog .table-wrap.responsive-records tbody td{font-size:13px;line-height:1.6;padding:0;min-width:0;white-space:normal;word-break:normal;overflow-wrap:anywhere}
 .operation-filters>input:first-child{grid-column:1/-1;min-width:0!important;width:100%}
 .operation-filters>input,.operation-filters>select{width:100%;min-width:0!important}
 .v2-shell .table-wrap.source-table tbody td{padding:0;font-size:12px;line-height:1.6;word-break:normal;overflow-wrap:anywhere}
}
@media(max-width:760px){.v2-shell .section-heading>.actions .button{min-height:44px;font-size:12px;white-space:normal}.responsive-records .record-actions .button{font-size:12px}}
/* Compact desktop sales form; the dialog scrolls within the viewport. */
dialog:has(#sales-exit-create){width:min(640px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);padding:24px;margin:auto;border-radius:16px}
dialog:has(#sales-exit-create)>h2{font-size:21px;margin:0 0 18px}#sales-exit-create .field{margin-bottom:12px}#sales-exit-create h3{font-size:15px;margin:16px 0 10px}#sales-exit-create .manual-search{margin:12px 0}#sales-exit-create .actions{position:sticky;bottom:-24px;background:#fff;padding:14px 0 6px;margin-top:14px;border-top:1px solid #e7ecf3}
.screen-sms-dialog{max-height:calc(100dvh - 32px);margin:auto}.screen-sms-dialog .notice{margin:10px 0 16px}.screen-sms-dialog .sms-code-field{margin-top:12px}.screen-sms-dialog #screen-sms-code{display:block!important;visibility:visible!important;opacity:1!important;min-height:50px;font-size:20px!important;letter-spacing:.15em;background:#fff;border:2px solid #cbd5e4}.screen-sms-dialog #screen-sms-code:focus{border-color:#ed0027;outline:3px solid #ed002718}.screen-sms-dialog #screen-sms-code:disabled{background:#f0f3f8;color:#6d7990}.screen-sms-dialog .source-heading{margin-bottom:12px}
@media(max-width:760px){dialog:has(#sales-exit-create){width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:18px 16px}#sales-exit-create .actions{bottom:-18px}.screen-sms-dialog{padding:18px 16px}.screen-sms-dialog .field{margin-top:12px}.screen-sms-dialog .actions{margin-top:14px}}
