.mobile-top-return,.mobile-top-context,.mobile-more-brand{display:none}.record-archive-filter{display:flex;align-items:center;gap:8px;font-size:14px}.record-archive-filter select{min-height:40px}.record-line-edit,.record-note-surface,.record-terms-edit{font:inherit}.record-sheet-options{display:grid;gap:8px}.record-sheet-options button{display:flex;justify-content:space-between;align-items:center;border:0;border-radius:14px;background:#edf4f5;padding:18px;color:#075864;font:inherit;font-weight:700;min-height:55px}.record-sheet-options .danger{color:#a83038;background:#fff0f0}.record-client-preview{width:100%;height:65dvh;border:0;border-radius:14px}#recordSignature{width:100%;height:180px;display:block;border:2px solid #bfd8dc;background:white;border-radius:12px;touch-action:none;margin:16px 0}.record-signature-consent{display:flex;gap:12px;align-items:flex-start;margin:18px 0}.record-signature-consent input{width:22px;min-width:22px;height:22px}
@media(max-width:760px){
.mobile-workspace-brand,.mobile-workspace-top .logo{display:none!important}.workspace-top{display:flex!important;align-items:center;gap:8px;min-height:48px;margin:0 0 10px!important;padding:0!important}.workspace-top .breadcrumb,.workspace-top .searchbar{display:none!important}.mobile-top-return{display:grid;place-items:center;background:transparent;border:0;width:44px;height:44px;color:#077080;border-radius:12px;flex-shrink:0}.mobile-top-return[hidden]{display:none}.mobile-top-return svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.mobile-top-context{display:block;font-size:15px;font-weight:650;color:#517378}.mobile-more-brand{display:flex;align-items:center;gap:12px;font-size:24px;margin:0 0 22px}.mobile-route>.btn:first-child[onclick^="go("]{display:none}.main:has(.mobile-record-detail) .mobile-create-only,.app:has(.mobile-record-detail) .mobile-create-only{display:none!important}.mobile-record-detail{padding:0 0 32px}.mobile-record-status{font-size:14px;color:#087a8d;text-transform:capitalize;font-weight:700;margin:0 0 10px}.mobile-record-status span{font-size:10px;margin-right:5px}.mobile-record-number{font-size:14px;font-weight:600;color:#618086;margin:0 0 5px}.mobile-record-heading{font-size:27px;line-height:1.2;margin:0 0 20px;overflow-wrap:anywhere}.mobile-record-actions{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 48px;gap:8px;margin-bottom:20px}.record-primary{font:inherit;font-size:14px;font-weight:750;line-height:1.2;padding:10px 6px;min-height:48px;border:0;border-radius:13px;background:#087b89;color:white;white-space:normal;box-shadow:0 3px 8px #12647414}.record-overflow{font-size:18px;letter-spacing:1px;padding:0;min-width:48px}.record-segments{display:flex;gap:8px;background:#e8f0f1;border-radius:14px;padding:4px;margin:0 0 20px}.record-segments button{flex:1;padding:12px 8px;border:0;background:transparent;color:#527177;border-radius:11px;font:inherit;font-weight:700;font-size:16px}.record-segments button[aria-selected=true]{background:white;color:#077383;box-shadow:0 2px 6px #0d424817}.record-client-summary{display:flex;flex-direction:column;gap:5px;padding:0 0 16px;font-size:14px;color:#617b80}.record-client-summary .business-name{font-weight:750;font-size:17px}.record-edit-surface,.record-line-edit,.record-note-surface,.record-terms-edit{background:white;border:1px solid #e1eaec;border-radius:17px;padding:17px;margin:0 0 12px;width:100%;text-align:left;color:#193d43;overflow-wrap:anywhere}.record-edit-surface:focus-visible,.record-line-edit:focus-visible,.record-note-surface:focus-visible{outline:3px solid #1093a4;outline-offset:2px}.record-section-label{font-size:13px;font-weight:700;color:#56787f;display:flex;justify-content:space-between;gap:10px;margin-bottom:12px}.record-section-label>span{font-weight:550;color:#0b7d8e}.record-edit-surface h2{font-size:20px;margin:0 0 10px}.record-edit-surface p{margin:0;font-size:16px;line-height:1.55}.record-line-edit{display:flex;flex-direction:column;gap:9px;border:0;border-bottom:1px solid #e1eaec;border-radius:0;padding:18px 3px;margin:0}.record-line-edit strong{font-size:18px}.record-line-edit>span{font-size:16px;line-height:1.5}.record-line-edit small{color:#617b80;font-size:14px}.record-line-edit b{align-self:flex-end;font-size:18px}.record-line-items{border-radius:16px;overflow:hidden}.record-bottom-totals{margin:18px 0;padding:16px;border-radius:16px;background:#edf5f5}.record-bottom-totals p{display:flex;justify-content:space-between;gap:14px;margin:10px 0;font-size:16px}.record-bottom-totals .record-grand-total{border-top:1px solid #cedfe1;padding-top:14px;font-size:20px;font-weight:750}.record-terms-edit,.record-note-surface{display:block}.record-note-surface>.record-text,.record-terms-edit>.record-text{display:block;font-size:16px;line-height:1.55}.record-sheet{padding:0!important;align-items:flex-end!important;backdrop-filter:blur(5px)}.record-sheet>.modal{max-width:none!important;width:100%!important;min-height:35dvh;max-height:88dvh;overflow-y:auto;border-radius:25px 25px 0 0;padding:24px 20px calc(22px + env(safe-area-inset-bottom));animation:mobile-rise .2s ease-out}.record-sheet>.modal:before{content:"";display:block;width:40px;height:5px;border-radius:5px;background:#c2d2d5;margin:-10px auto 20px}.record-sheet .modal-actions{position:sticky;bottom:-24px;background:white;padding:16px 0 8px;z-index:1}.record-full-editor>.modal{height:100dvh;min-height:100dvh;max-height:100dvh;border-radius:0;padding-top:env(safe-area-inset-top,20px)}.record-full-editor>.modal:before{display:none}.record-sheet label{display:block;margin:12px 0}.record-sheet label input:not([type=checkbox]),.record-sheet label textarea{width:100%}.record-sheet .record-signature-consent{display:flex}.mobile-record-detail .job-section-toolbar{flex-wrap:wrap}.mobile-record-detail .job-section{margin-bottom:12px}.mobile-record-detail .business-overview{display:none}.mobile-record-detail .request-profile-layout{display:block}.mobile-record-detail .profile-notes{display:none}.mobile-record-detail .document-view-summary{font-size:14px}.mobile-record-detail .record-signature-summary{font-size:14px;color:#547479}.mobile-record-detail .share-summary{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.record-sheet>.modal{animation:none}}

@media(max-width:760px){.version{display:none!important}.workspace-top{height:48px!important}.main:has(.dashboard-home) .workspace-top:has(.mobile-top-return[hidden]){height:0!important;min-height:0;margin:0!important}.mobile-client-profile>.top>.actions{display:none!important}.mobile-client-profile>.top .profile-contact-actions{display:none!important}.mobile-client-profile>.top{display:block}.mobile-client-profile>.top>div:first-child{cursor:pointer}.mobile-client-profile .mobile-record-actions{margin-top:16px}}

.record-saved-signature{display:block;max-width:100%;height:160px;object-fit:contain;background:white;border:1px solid #d5e4e6;border-radius:12px}body:has(#modal.record-sheet){overflow:hidden}

@media(max-width:760px){.record-detail-actions>button:first-child{display:none}}

@media(max-width:760px){.record-editor-return{background:transparent;border:0;color:#087b89;font-size:36px;line-height:1;width:44px;height:44px;display:block;margin:8px 0 4px}.record-full-editor #cancelBtn{display:inline-flex}}

/* Scroll form content independently; cancellation is always reachable. */
#modal>.modal{display:flex;flex-direction:column;overflow:hidden}
#modal .modal-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px}
#modal .modal-actions{flex:0 0 auto;position:static!important;bottom:auto!important;background:white;padding:14px 2px 2px;margin-top:10px;border-top:1px solid #e0eaec;z-index:2}
#modal #cancelBtn{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px}
#modal #saveBtn:not([hidden]){min-height:44px}
@media(max-width:760px){#modal .modal-actions{gap:10px}#modal .modal-actions>#cancelBtn,#modal .modal-actions>#saveBtn:not([hidden]){flex:1;min-width:0}#modal .modal-content{scroll-padding-bottom:20px}}

.settings-cancel-actions,.pricing-save{display:flex;gap:10px;flex-wrap:wrap}.settings-cancel-actions{position:sticky;bottom:0;background:#f7fafb;padding:12px 0;z-index:2}.settings-cancel-actions .btn,.pricing-save .btn{min-height:44px}.pricing-save #q-save{flex-basis:100%}@media(max-width:760px){.settings-cancel-actions{bottom:80px}.settings-cancel-actions .btn,.pricing-save .btn{width:auto;flex:1;min-width:0}}
