.estimate-work-modal .estimate-workspace{max-width:760px;margin:auto;min-width:0}
.estimate-work-back{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.estimate-work-back button{min-height:44px;text-align:left;white-space:normal}
.estimate-work-back>span{font-size:13px;color:#817387;white-space:nowrap}
.estimate-workspace .estimate-status-workspace{padding:16px;margin:0 0 12px;border-color:#e5ddea;box-shadow:none}
.estimate-workspace .estimate-status-header{display:block}
.estimate-workspace .estimate-status-title{font-size:23px!important;line-height:1.2;margin:0 0 6px}
.estimate-workspace .estimate-status-subtitle{font-size:15px!important;line-height:1.45;margin:0;color:#76697e}
.estimate-workspace .estimate-status-action{margin:10px 0 0}
.estimate-workspace .estimate-status-action:empty{display:none}
.estimate-workspace .estimate-status-action button,[data-estimate-next-action]>button{min-height:48px;width:100%;font-size:17px;white-space:normal}
.estimate-workspace .estimate-status-steps{gap:5px;margin-top:14px;grid-template-columns:repeat(5,minmax(0,1fr))!important}
.estimate-workspace .estimate-status-step{font-size:10px!important;line-height:1.3;padding:0!important;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center}
.estimate-workspace .estimate-status-step b{width:23px;height:23px;font-size:11px}
[data-estimate-next-action]:not(:empty){margin-bottom:12px}
.estimate-work-address{border:1px solid #e5dfea;border-radius:13px;background:#fff;padding:13px 15px;margin-bottom:12px}
.estimate-work-address small{font-size:13px;color:#84738d}
.estimate-work-address p{font-size:17px;line-height:1.4;margin:5px 0 0;overflow-wrap:anywhere}
.estimate-work-selections{border:1px solid #e5dfea;border-radius:14px;background:white;overflow:hidden;margin-bottom:14px}
.estimate-work-section{font-size:16px!important;margin:0!important;padding:13px 15px!important;background:linear-gradient(100deg,#fff4ec,#faeffa,#f0f4ff,#effaf6);color:#725481;text-transform:none}
.estimate-work-line{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:10px 15px;border-top:1px solid #f0ecf3;font-size:16px;line-height:1.4}
.estimate-work-line>div{flex:1;min-width:0;overflow-wrap:anywhere}
.estimate-work-line strong{font-weight:550}
.estimate-work-line small{display:block;color:#8a7d90;font-size:13px;margin-top:3px}
.estimate-work-line>span{flex:none;text-align:right;color:#665071;max-width:36%;overflow-wrap:anywhere}
.estimate-work-context{font-size:14px;color:#87778f;margin:0;padding:9px 15px}
.estimate-work-totals{border-top:1px solid #e2d8e9;padding:13px 15px}
.estimate-work-totals>div{display:flex;justify-content:space-between;gap:14px;font-size:15px;line-height:1.45;margin:6px 0}
.estimate-work-totals .grand{font-size:19px;font-weight:700;color:#5e3d77;margin:12px 0}
.estimate-work-disclosure{border:1px solid #e5dfea;background:white;border-radius:13px;margin-bottom:10px;overflow:hidden}
.estimate-work-disclosure>summary{min-height:52px;padding:14px 15px;cursor:pointer;font-size:17px;font-weight:600;color:#644775;list-style:none;display:flex;justify-content:space-between;gap:12px}
.estimate-work-disclosure>summary::-webkit-details-marker{display:none}
.estimate-work-disclosure>summary:after{content:'+';font-size:20px;font-weight:400}
.estimate-work-disclosure[open]>summary:after{content:'−'}
.estimate-work-disclosure-body{padding:12px 15px;border-top:1px solid #eee7f3;font-size:16px;overflow-wrap:anywhere}
.estimate-work-disclosure-body .card{box-shadow:none;border:0;padding:0;background:none}
.estimate-work-disclosure-body .estimate-staff-notes h3,.estimate-work-disclosure-body .estimate-activity h3{font-size:18px}
.estimate-work-disclosure-body :is(button,a.btn){min-height:44px;white-space:normal;margin:4px 3px 4px 0}
.estimate-work-related{display:flex;flex-wrap:wrap;gap:8px}
.estimate-work-disclosure-body .estimate-document-bottom{display:block}
.estimate-work-modal .modal-footer{gap:10px;flex-wrap:wrap}
.estimate-work-modal .modal-footer .btn{min-height:48px;flex:1;font-size:17px;white-space:normal}
.estimate-work-modal .modal-header h2{font-size:22px!important;overflow-wrap:anywhere}
.estimate-work-modal :is(button,summary,a):focus-visible{outline:3px solid #9b75bd;outline-offset:2px}
@media(max-width:430px){.estimate-work-modal .modal-body{padding:12px!important}.estimate-workspace .estimate-status-title{font-size:21px!important}.estimate-work-line{font-size:15px;gap:10px}}

/* Compact paperwork surfaces. Scoped to documents; Home retains its styling. */
.paperwork-flow,.paperwork-selection,.paperwork-queue-card{background:#fff;border:1px solid #e9e2ee;border-radius:12px;padding:12px;margin:0 0 12px;min-width:0;overflow-wrap:anywhere}
.paperwork-flow{border-top:3px solid transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(100deg,#f1bd85,#e6a3c3,#bc9cde,#9bcddb,#a8d1b7) border-box}
.paperwork-flow-top{display:flex;justify-content:space-between;align-items:start;gap:10px;font-size:16px;line-height:1.4}
.paperwork-flow-top>span{font-size:13px;color:#71667a;white-space:normal}
.paperwork-flow p,.paperwork-selection p,.paperwork-queue-card p{font-size:14px;line-height:1.45;margin:5px 0;color:#65596f}
.paperwork-next{color:#3e314b!important}.paperwork-notes{margin-top:10px;padding-top:9px;border-top:1px solid #eee6f1}.paperwork-notes p{white-space:pre-wrap}
.paperwork-receipt h3{font-size:20px;margin:0 0 6px}.paperwork-receipt>.actions{margin:10px 0}
.paperwork-selection:empty{display:none}.paperwork-selection strong{font-size:15px;line-height:1.4}
#action-form:has([name=paperwork]) .field,#action-form:has([name=reviewQuestion]) .field{margin:0 0 10px}
#action-form:has([name=reviewQuestion]) textarea{min-height:80px;max-height:180px;resize:vertical}
.paperwork-sendq .actions :is(button,a),.paperwork-receipt .actions :is(button,a){min-height:44px;white-space:normal}
.paperwork-queue-card>.actions{margin:8px 0}.paperwork-queue-card .estimate-work-disclosure{margin-top:8px}
@media print{.paperwork-flow,.paperwork-next,.paperwork-receipt .actions{display:none!important}}

/* Compact document-level review action. */
[data-act="estimate_alex_choose"]{font-size:13px!important;line-height:1.2!important;padding:7px 11px!important;min-height:36px!important;width:auto!important;flex:0 0 auto!important}

/* Readable review of the frozen submission; full document remains unchanged. */
.submitted-review-summary{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.submitted-review-lines{list-style:none;padding:0}.submitted-review-lines li{padding:12px 0;border-bottom:1px solid #e5deeb}.submitted-review-lines span,.submitted-review-lines small{display:block;margin-top:4px}
.submitted-review-totals{display:grid;grid-template-columns:1fr auto;gap:8px}.submitted-review-totals dd{margin:0;text-align:right}
#action-form .field[hidden]{display:none!important}
[data-myq-section=approvals] .myq-record-meta{font-size:14px;line-height:1.5}
[data-myq-section=approvals] .myq-record-heading .link{display:inline-flex;min-height:44px;padding:10px 14px;border:1px solid #dacfe5;border-radius:10px;align-items:center;font-weight:600}
.submitted-document summary,.submitted-review-summary summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}
.submitted-document-scroll{overflow:visible;max-height:none;border:0}.submitted-document-scroll .estimate-document{transform:none!important;margin:0!important}
@media(max-width:760px){.submitted-review-summary{font-size:16px}.submitted-review-summary h3{font-size:18px}.submitted-document-scroll{max-height:none}.submitted-review-lines span{white-space:normal}}

/* KISS pass: identity, requested check, scope, total, decision. */
body.embedded-screen #modal-root .modal:has(.review-kiss){border:0!important;border-image:none!important;background:#fff!important;box-shadow:none!important}
.modal:has(.review-kiss) .modal-body{padding:12px 16px!important}
.modal:has(.review-kiss) .modal-header{background:#fff!important;border:0!important;padding:8px 16px!important}
.modal:has(.review-kiss) .modal-header h2{font-size:18px;margin:0}
.review-kiss{font-size:16px;line-height:1.4}
.review-kiss .review-identity h3{font-size:20px;margin:0 0 4px}
.review-kiss .review-identity h3 span{display:inline-block;font-size:13px;font-weight:400;color:#665b71;margin-left:6px}
.review-kiss .review-customer{font-weight:600;margin:0 0 3px}
.review-kiss .review-status{font-size:13px;color:#665b71;margin:0 0 12px}
.review-request{background:#f7f3fa;padding:10px 12px;border-radius:10px;margin:8px 0}
.review-request strong{font-size:13px;color:#665b71}.review-request p{margin:4px 0 0!important}
.review-kiss .submitted-review-lines{margin:8px 0}.review-kiss .submitted-review-lines li{padding:10px 0}
.review-line-top{display:flex;justify-content:space-between;gap:12px}.review-line-top strong:last-child{white-space:nowrap}
.review-kiss .submitted-review-lines span{font-size:14px;color:#665b71;margin-top:3px}
.review-kiss .review-included summary{font-size:14px;font-weight:400;min-height:44px;padding:8px 0}
.review-total{display:flex;justify-content:space-between;gap:12px;font-size:19px;margin:12px 0}
.review-kiss .review-context summary,.submitted-document summary,.review-kiss .review-checks summary{font-size:14px;padding:10px 0;min-height:44px;box-sizing:border-box}
.review-context{border-top:1px solid #e7e1eb}.review-checks[open]{background:#fff7e9;border-radius:10px;padding:0 10px}
.modal:has(.review-kiss) #action-form>.field{margin:8px 0}
.modal:has(.review-kiss) #action-form textarea{min-height:72px;max-height:160px}
.modal:has(.review-kiss) #action-form>.actions{display:flex;gap:10px;align-items:stretch;margin-top:12px;padding:0;border:0}
.modal:has(.review-kiss) #action-form>.actions button{min-height:44px!important;padding:10px 14px!important;line-height:1.3!important;font-size:15px!important;width:auto!important;flex:1}
.modal:has(.review-kiss) #action-form>.actions .primary{flex:2}
.modal:has(.review-kiss) .estimate-work-disclosure{margin-top:12px}
@media(max-width:760px){body.embedded-screen #modal-root .modal:has(.review-kiss) .modal-header{position:absolute!important;left:auto!important;right:12px!important;top:8px!important;width:44px!important;height:44px!important;min-height:0!important}.modal:has(.review-kiss) .modal-header .close{width:44px;min-height:44px}}
@media(max-width:760px){body.embedded-screen #modal-root .modal:has(.review-kiss) .modal-header h2{display:none}body.embedded-screen #modal-root .modal:has(.review-kiss) .modal-header{position:absolute;right:8px;top:4px;padding:0!important;z-index:2}body.embedded-screen #modal-root .modal:has(.review-kiss){position:relative}.review-kiss .review-identity h3{padding-right:44px}.review-kiss .review-identity h3 span{display:block;margin:3px 0}.review-line-top{flex-wrap:wrap}}

/* Keep saved estimate identity, acceptance and actions together. */
.estimate-acceptance-bar{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:0 0 10px;font-size:13px}
.estimate-acceptance-summary{display:flex;gap:5px 18px;flex-wrap:wrap;margin:0;min-width:0;flex:1 1 370px;line-height:1.4}
.estimate-acceptance-summary>div{display:flex;gap:5px;min-width:0;overflow-wrap:anywhere}
.estimate-acceptance-summary dt{font-weight:600;color:#71667a;white-space:nowrap}.estimate-acceptance-summary dt:after{content:':'}
.estimate-acceptance-summary dd{margin:0;min-width:0}.estimate-acceptance-summary dd>span{white-space:nowrap;color:#71667a}
.estimate-acceptance-summary .estimate-acceptance-detail{flex-basis:100%}
.estimate-acceptance-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.estimate-acceptance-actions .btn{min-height:44px;padding:8px 11px;font-size:13px;line-height:1.2;white-space:nowrap;margin:0}
.estimate-more-panel[hidden]{display:none!important}.estimate-more-panel{border:1px solid #e5dfea;border-radius:10px;margin-bottom:10px}.estimate-more-panel>.estimate-work-disclosure-body{border:0;padding:10px}
@media(max-width:430px){.estimate-acceptance-bar{gap:7px}.estimate-acceptance-summary{flex-basis:100%;gap:3px 12px}.estimate-acceptance-actions{width:100%}.estimate-acceptance-actions .btn{flex:1;padding:8px}}
@media print{.estimate-acceptance-bar,.estimate-more-panel{display:none!important}}
