/* EOACV working surfaces: compact actions, calm hierarchy and mirrored RTL. */
.workspace{--surface-gap:1.2rem}.workspace-panel{padding:clamp(1rem,2vw,1.7rem)!important}.workspace-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:1px;background:var(--line,#d9ded3);border:1px solid var(--line,#d9ded3);border-radius:14px;overflow:hidden;margin:0 0 1.4rem}.workspace-metric{background:#fff;padding:1rem;display:flex;flex-direction:column;gap:.4rem;min-width:0}.workspace-metric strong{font-size:clamp(20px,2vw,29px);line-height:1.6;overflow-wrap:anywhere}.workspace-metric .muted{font-size:12px}.workspace-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line,#d9ded3);min-width:0}.workspace-row:last-child{border-bottom:0}.workspace-row>div{min-width:0}.workspace-row p{font-size:13px;margin:.4rem 0;overflow-wrap:anywhere}.workspace-row .actions{margin:0}.workspace-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:1rem}.workspace-project{padding:1.5rem;border:1px solid var(--line,#d9ded3);border-radius:12px;background:#fff;display:flex;align-items:start;flex-direction:column;gap:.75rem;margin-bottom:1rem}.workspace-project .link-button{font-size:20px!important;line-height:1.6}.workspace-project small{font-size:12px}.workspace-empty{padding:2rem 1rem;text-align:center;border:1px dashed var(--line,#d9ded3);border-radius:12px}.workspace-tabs{display:flex;overflow:auto;gap:.4rem;margin:1.2rem 0 1.6rem;border-bottom:1px solid var(--line,#d9ded3);padding-bottom:.8rem;scrollbar-width:thin}.workspace-tabs button{flex:0 0 auto}.workspace-tabs .active{background:#153a30!important;color:#fff!important}.workspace-document-head{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;justify-content:space-between;margin-bottom:1rem}.workspace-document-head h2{margin:0!important}.workspace-document-head .money{font-size:23px}.workspace-more summary{cursor:pointer;border:1px solid var(--line,#d9ded3);border-radius:8px;padding:.6rem 1rem}.workspace-more[open]{width:100%}.workspace-more .actions{padding:1rem;background:#f6f4ed;border-radius:8px}.workspace-timeline{list-style:none;padding:0;margin:0 0 1.5rem;display:grid;gap:1rem}.workspace-stage{border-inline-start:3px solid #b79a62;padding:1rem 1.5rem;background:#fff;border-radius:8px}.workspace-settings{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(0,1.2fr);align-items:start;gap:1.2rem;margin-bottom:2rem}.workspace-preview{background:#eaece5;border:1px solid #d9ded3;border-radius:14px;padding:1rem;position:sticky;top:1rem}.workspace-preview-pages{display:grid;gap:1rem;max-height:75vh;overflow:auto;padding:.5rem;min-width:0}.workspace-preview-pages canvas,.workspace-preview-pages img{display:block;width:100%;height:auto;max-width:100%;background:#fff;box-shadow:0 3px 14px #112c241f}.workspace-draft-preview{margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--line,#d9ded3)}.workspace-viewer{width:min(1000px,calc(100% - 1rem));max-width:1000px;padding:1rem;border:1px solid #d9ded3;border-radius:14px}.workspace-viewer::backdrop{background:#112c24bd}.workspace-mail-preview{max-width:720px;width:100%;margin:auto;transition:max-width .15s}.workspace-mail-preview.mobile{max-width:390px}.workspace-mail-preview iframe{width:100%;height:650px;border:1px solid #d9ded3;border-radius:10px;background:white}.workspace-chat{display:flex;flex-direction:column;gap:1rem;margin:1rem 0}.workspace-bubble{padding:1.2rem;border:1px solid #d9ded3;border-radius:12px;max-width:95%;background:#fafaf7}.workspace-bubble time{display:block;color:#63786d;font-size:12px}.workspace-bubble.internal{border-inline-start:3px solid #b79a62;background:#fbf6e9}.workspace-bubble p{margin-top:.7rem}.workspace-composer{padding:1rem;background:#f6f4ed;border-radius:12px;border:1px solid #d9ded3}.workspace-qr{width:190px;height:190px;display:block;margin:1rem auto;background:white}.workspace progress{accent-color:#153a30;width:100%;height:10px;margin:1rem 0}.workspace [dir=ltr],.workspace .money{unicode-bidi:isolate}.workspace .toolbar>.field{flex:1;margin:0}.workspace .toolbar input{max-width:100%}.workspace .badge{flex-shrink:0}.workspace .check{display:flex;align-items:center;gap:.6rem}.workspace .check input{width:18px;min-height:18px}.workspace-form-title{display:flex;align-items:center;gap:1rem}.workspace-form-title .badge{font-size:14px;min-width:36px;justify-content:center}.finance-dialog:has(.workspace-draft-preview){max-width:1050px}.finance-dialog .dialog-head{position:sticky;top:-1.5rem;background:white;z-index:2;padding-block:1rem}.workspace .actions button{white-space:normal}.workspace .toolbar{gap:.7rem;flex-wrap:wrap}
@media(max-width:900px){.workspace-settings{grid-template-columns:1fr}.workspace-preview{position:static}.workspace-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-row{align-items:flex-start;flex-direction:column}.workspace-row .actions{width:100%}.workspace-document-head{align-items:start}.workspace-preview-pages{max-height:65vh}}
@media(max-width:390px){.workspace-metrics{grid-template-columns:1fr 1fr}.workspace-metric{padding:.7rem}.workspace-metric strong{font-size:19px}.workspace-tabs{gap:.2rem}.workspace-tabs button{padding:.55rem .65rem}.workspace .toolbar>button{flex:1}.workspace-bubble{max-width:100%}.workspace-document-head .money{font-size:20px}.workspace-mail-preview iframe{height:540px}}
@media(prefers-reduced-motion:reduce){.workspace-mail-preview{transition:none}}

.workspace-avatar{width:96px;height:96px;object-fit:cover;border-radius:50%;border:1px solid #b79a62;margin-bottom:1rem}.workspace-item-order{display:block;color:#917644;font-size:18px;margin-bottom:.8rem}.workspace-panel dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem 1rem}.workspace-panel dd{margin:0;overflow-wrap:anywhere}

.finance-module .finance-navigation{flex-wrap:wrap;overflow:visible}.workspace .toolbar{justify-content:flex-start}.workspace-mail-summary{padding:1rem;background:#f6f4ed;border:1px solid #d9ded3;border-radius:10px;margin-bottom:.8rem}.workspace-mail-summary p{overflow-wrap:anywhere}.workspace-preview-pages .toolbar{position:sticky;top:0;background:#f6f4ed;z-index:1;padding:.5rem}
@media(max-width:700px){.finance-module .finance-navigation{flex-wrap:nowrap;overflow-x:auto}.workspace-settings .workspace-preview-pages{max-height:65vh}}

.workspace-mobile-mode{display:none}@media(max-width:700px){.workspace-mobile-mode{display:flex}.workspace-settings[data-mode=edit]>.workspace-preview{display:none}.workspace-settings[data-mode=preview]>.workspace-panel{display:none}}

.workspace-mobile-navigation{display:none}@media(max-width:700px){#finance-navigation>.workspace-mobile-navigation,#navigation>.workspace-mobile-navigation{display:block;width:100%;min-width:0;padding:.8rem;color:#153a30;background:#fff;border:1px solid #ccd4c5;border-radius:8px;font:inherit;order:-1}#finance-navigation>button:not(.finance-refresh),.portal #navigation>button{display:none}.finance-module .finance-navigation{flex-wrap:wrap;overflow:visible}.finance-module .finance-navigation .finance-refresh{margin-inline-start:auto}.portal #navigation{display:block}}

/* Match the native dialog centering after the console reset. */
.finance-dialog,.workspace-viewer,.portal dialog#editor,.portal dialog#auth{margin:auto;inset:0;max-height:calc(100dvh - 2rem)}

.finance-dialog .check,.portal #editor .check{display:flex;align-items:center;gap:.6rem;margin-block:.65rem;overflow-wrap:anywhere}.finance-dialog .check input,.portal #editor .check input{width:18px;height:18px;min-height:18px;flex:0 0 18px}

@media(max-width:900px){.workspace-metrics>.workspace-metric:last-child:nth-child(odd){grid-column:1/-1}}

/* Execution workspace: dense on desktop, readable cards on small screens. */
.operations-state-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 24px}.operations-state{display:flex;flex-direction:column;gap:8px;padding:16px 18px;background:#fff;border:1px solid #dce2d7;border-radius:12px;border-block-start:3px solid #b7a064;min-width:0}.operations-state strong{font-size:1rem;overflow-wrap:anywhere}.operations-table-wrap{max-width:100%;overflow:auto;border:1px solid #dce2d7;border-radius:12px}.operations-table{width:100%;border-collapse:collapse;text-align:start;font-size:.9rem}.operations-table th{background:#f2f4ed;font-size:.8rem;color:#405e51;white-space:nowrap;padding:14px;text-align:start}.operations-table td{padding:16px 14px;vertical-align:top;border-top:1px solid #e4e8df;min-width:110px;max-width:320px;overflow-wrap:anywhere}.operations-table td:first-child{font-weight:650;min-width:170px}.operations-table td p{margin:6px 0}.operations-table td button{display:block;margin-block:5px}.operations-table small{display:block;margin-top:6px}.operations-panel>h2{margin-block:0 18px}.operations-timeline{list-style:none;display:flex;overflow:auto;gap:0;padding:24px 0 8px;margin:0}.operations-timeline-stage{position:relative;display:flex;flex-direction:column;gap:8px;min-width:180px;max-width:240px;flex:1;padding:24px 16px 0;border-block-start:2px solid #dce2d7}.operations-dot{position:absolute;inset-block-start:-7px;inset-inline-start:18px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #b7a064}.operations-timeline-stage[data-status="completed"]{border-color:#16483b}.operations-timeline-stage[data-status="completed"] .operations-dot{background:#16483b;border-color:#16483b}.operations-timeline-stage[data-status="paused"] .operations-dot{background:#ae663f}.operations-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.operations-handover{border-block-start:1px solid #dce2d7;padding:20px 0}.operations-version{border:1px solid #dce2d7;border-radius:10px;padding:14px 18px;margin:12px 0}.operations-version summary{cursor:pointer;font-weight:650;padding:4px}.operations-version[open] summary{margin-bottom:14px}.bidi-time{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;line-height:1.7}.operations-panel .pre{white-space:pre-wrap;overflow-wrap:anywhere}.operations-panel .workspace-row{min-width:0}.operations-panel .toolbar{flex-wrap:wrap}.operations-panel progress{width:100%;margin-block:8px}
.payment-schedule-table{width:100%;text-align:start}.payment-plan-editor .row-editor{border-inline-start:3px solid #b7a064}.mail-recovery-controls{margin-block:10px;max-width:100%}
@media(max-width:900px){.operations-state-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-table{min-width:720px}.operations-timeline-stage{min-width:155px}.operations-state{padding:14px}.operations-form-grid{gap:0 12px}}
@media(max-width:480px){.operations-state-grid{grid-template-columns:1fr 1fr;gap:8px}.operations-state{padding:12px 10px}.operations-state span{font-size:.75rem}.operations-state strong{font-size:.86rem}.operations-form-grid{grid-template-columns:1fr}.operations-panel{padding:16px!important}.operations-version{padding:10px}.operations-panel .toolbar>button{flex:1 1 auto}.operations-table-wrap:focus-visible{outline:2px solid #b7a064;outline-offset:3px}}

/* Stage editor separates targets from factual execution dates. */
.stage-date-group{min-width:0;margin:18px 0;padding:14px 18px;border:1px solid var(--line,#d9ded3);border-radius:12px}.stage-date-group legend{padding:0 8px;font-weight:700;color:#153a30}.stage-date-group>.help{margin:0 0 8px;line-height:1.8}.stage-duration{padding:10px 12px;background:#f4f5ef;border-radius:8px;margin:10px 0 0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.stage-field-error{color:#a33725;font-size:12px;line-height:1.7}.stage-field-error[hidden]{display:none}.stage-date-group input[aria-invalid=true]{border-color:#a33725}.stage-clock{overflow-wrap:anywhere}.stage-date-group input{min-width:0;width:100%;box-sizing:border-box;max-width:100%}.stage-date-group[hidden]{display:none}@media(max-width:480px){.stage-date-group{padding:10px 12px}.stage-date-group .operations-form-grid{grid-template-columns:1fr}}

/* Stage detail: clear chronology, inline isolated dates and no nested cards. */
.finance-dialog:has(.stage-detail),.portal dialog#editor:has(.stage-detail){width:min(900px,calc(100% - 2rem));max-width:900px}
.stage-detail{color:#183a30;min-width:0;text-align:start;padding-block:0 .25rem}
.stage-detail :is(h3,h4,h5,p,dl){margin:0}.stage-detail *{box-sizing:border-box}
.stage-detail-head{background:transparent;color:inherit;padding-inline:0;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:.25rem 1.5rem}
.stage-detail-identity{min-width:0}.stage-detail-index{display:block;font-size:.75rem;font-weight:600;color:#80632b;letter-spacing:.03em;margin-block-end:.55rem}
.stage-detail .stage-detail-title{font-size:clamp(1.2rem,2.6vw,1.6rem);font-weight:700;line-height:1.65;overflow-wrap:anywhere;text-align:start}
.stage-detail-head>.badge{flex-shrink:0;padding:.35rem .7rem;font-size:.78rem}.stage-detail-head>.badge[data-status=in_progress]{color:#185245;background:#edf5f0}.stage-detail-head>.badge[data-status=paused],.stage-detail-head>.badge[data-status=waiting_client]{color:#82551f;background:#fff4dd}
.stage-detail-meta{display:flex;flex-wrap:wrap;gap:1rem 2.5rem;padding-block:1rem;border-block:1px solid #e1e6df}
.stage-detail-fact{min-width:0}.stage-detail-fact dt{font-size:.75rem;color:#60756a;line-height:1.7}.stage-detail-fact dd{margin:0;padding-block-start:.25rem;font-weight:600;font-size:.9rem;line-height:1.8;overflow-wrap:anywhere}
.stage-detail .stage-detail-section-title{font-size:.94rem;line-height:1.8;font-weight:700;margin-block-end:.8rem}
.stage-detail-schedule{padding-block:1.4rem;border-block-end:1px solid #e1e6df}.stage-detail-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.stage-detail-date-block{min-width:0}.stage-detail-date-block+ .stage-detail-date-block{border-inline-start:1px solid #e1e6df;padding-inline-start:1.5rem}
.stage-detail-date-block h5{font-size:.8rem;font-weight:600;color:#60756a;margin-block-end:.7rem}
.stage-detail-date-facts{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.stage-detail-time{display:inline-block;max-width:100%;unicode-bidi:isolate;font-variant-numeric:tabular-nums;font-weight:600;font-size:1rem;overflow-wrap:anywhere}
.stage-detail-unspecified{font-weight:400;color:#708276}.stage-detail-duration{font-size:.8rem;margin-block-start:.9rem!important;color:#4c6558}
.stage-detail-empty,.stage-detail-caption{font-size:.78rem;color:#60756a;line-height:1.85}.stage-detail-empty{padding-block:.25rem}
.stage-detail-content{padding-block:.25rem}.stage-detail-note{padding-block:1.25rem;border-block-end:1px solid #e1e6df}.stage-detail-note .pre,.stage-detail-event>.pre,.stage-detail-change>.pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;font-size:.9rem;text-align:start}
.stage-detail-next{display:grid;grid-template-columns:minmax(100px,.28fr) 1fr;gap:1rem;align-items:baseline}.stage-detail-next .stage-detail-section-title{color:#80632b;margin:0}
.stage-detail-reason{color:#7c5425}.stage-detail-reason .stage-detail-section-title{color:inherit}.stage-detail-internal .stage-detail-section-title{color:#667365}
.stage-detail-baseline{padding-block:1.25rem}.stage-detail-baseline .stage-detail-section-title{margin-block-end:.2rem}.stage-detail-baseline>.stage-detail-caption{display:block}.stage-detail-baseline>.stage-detail-date-facts{margin-block:.85rem .35rem;max-width:540px}
.stage-detail-history{border-block-start:1px solid #e1e6df;padding-block:.35rem}.stage-detail-history>summary{display:flex;align-items:center;gap:.65rem;cursor:pointer;padding-block:.8rem;min-height:44px;font-size:.9rem;font-weight:600;list-style:none}.stage-detail-history>summary::-webkit-details-marker{display:none}.stage-detail-history>summary::after{content:'+';font-size:1.2rem;font-weight:400;margin-inline-start:auto;color:#60756a}.stage-detail-history[open]>summary::after{content:'−'}.stage-detail-history>summary:focus-visible{outline:2px solid #9b7a3f;outline-offset:3px;border-radius:4px}.stage-detail-count{font-size:.75rem;min-width:1.7rem;text-align:center;color:#60756a;font-variant-numeric:tabular-nums}
.stage-detail-history-list{list-style:none;padding:0;margin:.5rem 0 1rem}.stage-detail-event{position:relative;border-inline-start:1px solid #d9dfd5;padding-inline-start:1.25rem;padding-block:0 1.25rem;margin-inline-start:.3rem}.stage-detail-event::before{content:'';position:absolute;inset-inline-start:-4px;inset-block-start:8px;width:7px;height:7px;border-radius:50%;background:#8a7649}.stage-detail-event:last-child{padding-block-end:.25rem}.stage-detail-event-head{display:flex;align-items:baseline;justify-content:space-between;gap:.4rem 1rem;flex-wrap:wrap;margin-block-end:.65rem;font-size:.85rem}.stage-detail-comparison{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-block-start:.85rem}.stage-detail-change{min-width:0}.stage-detail-change h5{font-size:.75rem;color:#60756a}.stage-detail-change-status{font-size:.82rem;margin-block:.25rem .7rem!important}.stage-detail-change .stage-detail-time{font-size:.83rem}.stage-detail-change>.pre{margin-block-start:.5rem}
@media(max-width:600px){.stage-detail-head{align-items:flex-start;flex-wrap:wrap;gap:.65rem;padding-block-end:1rem}.stage-detail-meta{gap:.75rem 1.4rem}.stage-detail-date-grid{grid-template-columns:1fr;gap:1.1rem}.stage-detail-date-block+ .stage-detail-date-block{padding-inline-start:0;padding-block-start:1rem;border-inline-start:0;border-block-start:1px solid #e1e6df}.stage-detail-next{grid-template-columns:1fr;gap:.3rem}.stage-detail-comparison{grid-template-columns:1fr;gap:.9rem}.stage-detail-change+ .stage-detail-change{padding-block-start:.85rem;border-block-start:1px dashed #e1e6df}.stage-detail-time{font-size:.92rem}.stage-detail-date-facts{gap:.75rem}.stage-detail .stage-detail-title{font-size:1.18rem}.stage-detail-note{padding-block:1rem}}

/* Execution table and timeline are alternate views of the same schedule. */
.execution-board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-block:0 1rem}.execution-help{font-size:.8rem;color:#5c7466;line-height:1.9;max-width:75ch}.execution-board-toolbar .execution-help{margin:0}.execution-view-controls{display:flex;gap:.3rem;flex-shrink:0}.execution-view-controls button{font-size:.8rem;padding:.5rem .85rem;min-height:40px}.execution-view-controls button[aria-pressed=true]{background:#173a30;color:#fff;border-color:#173a30}
.execution-table-wrap[hidden],.execution-timeline[hidden]{display:none}.execution-table{font-size:.86rem}.execution-table th{background:#f7f7f2;color:#486053;font-weight:600;white-space:normal}.execution-table td{max-width:unset;min-width:0;padding:18px 16px}.execution-table td:first-child{width:26%;min-width:170px}.execution-table td:nth-child(2),.execution-table td:nth-child(3){width:21%}.execution-table td:nth-child(4){width:23%}.execution-table .execution-controls{width:9%;min-width:120px}
.execution-stage-identity{display:flex;align-items:baseline;gap:.6rem;margin-block-end:.65rem}.execution-stage-identity strong{line-height:1.8;overflow-wrap:anywhere}.execution-stage-number{font-variant-numeric:tabular-nums;font-size:.75rem;color:#8b743b;flex-shrink:0}.execution-date-line{display:grid;grid-template-columns:3em 1fr;gap:.35rem;align-items:baseline;margin-block:.2rem}.execution-date-label{font-size:.7rem;color:#6c7e73;font-weight:400}.execution-time{unicode-bidi:isolate;display:inline-block;font-size:.83rem;font-variant-numeric:tabular-nums;line-height:1.75;overflow-wrap:anywhere}.execution-empty{font-size:.78rem;color:#728477;font-weight:400}.execution-duration,.execution-owner{font-size:.75rem;color:#547263;line-height:1.8}.execution-delay{font-size:.75rem;color:#89531d;line-height:1.8}.execution-table td .pre{font-size:.82rem;line-height:1.85;margin:0}.execution-table .execution-controls button{font-size:.78rem;white-space:normal;margin:0;min-height:40px;padding:.5rem .7rem}.execution-more{margin-block-start:.6rem;font-size:.75rem}.execution-more summary{cursor:pointer;min-height:32px;color:#607363}.execution-more[open] button{margin-block:.4rem}.execution-timeline{padding-block-start:1.25rem}.execution-timeline .operations-timeline-stage{min-width:220px;max-width:280px;gap:.5rem}.execution-timeline .badge{align-self:flex-start}.execution-timeline button{align-self:flex-start;font-size:.78rem}.execution-timeline .execution-date-line{grid-template-columns:3em 1fr}.execution-timeline .operations-timeline-stage>strong{line-height:1.85;overflow-wrap:anywhere;font-size:.88rem}
@media(max-width:760px){.execution-board-toolbar{align-items:flex-start;flex-direction:column;gap:.75rem}.execution-view-controls{width:100%}.execution-view-controls button{flex:1}.execution-table-wrap{border:0;border-radius:0;overflow:visible}.execution-table{min-width:0;display:block}.execution-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.execution-table tbody{display:block}.execution-table tr{display:grid;grid-template-columns:1fr 1fr;gap:.9rem 1rem;border-block-start:1px solid #dce2d7;padding-block:1rem}.execution-table td,.execution-table td:first-child,.execution-table td:nth-child(2),.execution-table td:nth-child(3),.execution-table td:nth-child(4),.execution-table .execution-controls{display:block;width:auto;min-width:0;padding:0;border:0}.execution-table td:first-child,.execution-table td:nth-child(4),.execution-table td:last-child{grid-column:1/-1}.execution-table td:nth-child(2)::before,.execution-table td:nth-child(3)::before{content:attr(data-label);display:block;font-size:.74rem;font-weight:600;margin-block-end:.4rem}.execution-table .execution-controls{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem}.execution-more{margin:0}.execution-table tr:first-child{border-block-start:0}.execution-table .execution-stage-identity{margin-block-end:.45rem}.execution-time{font-size:.78rem}.execution-date-line{grid-template-columns:1fr;gap:0}.execution-table .badge{font-size:.73rem}.execution-table-wrap:focus-visible{outline:2px solid #b7a064;outline-offset:4px}}

/* Payments: invoice totals, requests, proof and confirmed receipts retain separate meaning. */
.payment-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-block-end:1.3rem}.payment-heading h2{margin:.35rem 0 0!important;font-size:1.15rem;overflow-wrap:anywhere}.payment-eyebrow{color:#6d7f71;font-size:.75rem}.payment-workspace .payment-summary{background:transparent;border:0;border-radius:0;gap:0;margin-block-end:.6rem}.payment-workspace .payment-summary>.workspace-metric{background:transparent;border-radius:0;padding:1rem;gap:.4rem;border-inline-end:1px solid #dce2d7}.payment-workspace .payment-summary>.workspace-metric:last-child{border:0}.payment-workspace .payment-summary strong{font-size:clamp(1.1rem,1.5vw,1.5rem);line-height:1.6}.payment-workspace .payment-summary>.workspace-metric:nth-child(4),.payment-workspace .payment-summary>.workspace-metric:nth-child(5){color:#5b735f}.payment-explanation{font-size:.78rem;color:#5d7365;margin-block:.4rem 1.5rem}.payment-explanation summary{cursor:pointer;min-height:36px;padding-block:.4rem}.payment-explanation .po-help-inline{max-width:90ch;margin:.5rem 0}.payment-section{border-block-start:1px solid #dce2d7;padding-block:1.35rem .5rem}.payment-section h3{font-size:1rem;margin:0 0 .4rem}.payment-section-hint{font-size:.78rem;color:#60766a;line-height:1.85;margin:0 0 .8rem;max-width:90ch}.payment-empty{font-size:.84rem;color:#60766a;padding-block:.6rem;line-height:1.8}.payment-request,.payment-proof,.payment-received{padding-block:1rem;border-block-end:1px solid #e4e8df;min-width:0}.payment-request:last-child,.payment-proof:last-child,.payment-received:last-child{border-block-end:0}.payment-workspace .payment-section .workspace-row{padding:0;border:0;gap:.7rem 1.5rem;align-items:flex-start}.payment-workspace .payment-section .workspace-row strong{font-size:.92rem;line-height:1.8}.payment-workspace .payment-section .workspace-row p{font-size:.78rem;line-height:1.8}.payment-workspace .payment-section .actions{justify-content:flex-start;gap:.4rem}.payment-workspace .payment-section button{font-size:.78rem;min-height:42px;padding:.55rem .8rem}.payment-request-facts{display:flex!important;flex-wrap:wrap;gap:.8rem 2rem!important;margin:1rem 0 .4rem!important}.payment-request-facts>div{min-width:0}.payment-request-facts dt{font-size:.72rem;color:#60766a}.payment-request-facts dd{font-size:.91rem;font-variant-numeric:tabular-nums;margin:.35rem 0 0!important;overflow-wrap:anywhere;unicode-bidi:isolate}.payment-context{font-size:.75rem;color:#60766a;margin:.6rem 0;overflow-wrap:anywhere}.payment-proof-files{padding-inline-start:1.1rem;margin-block:.75rem .25rem;border-inline-start:1px solid #dce2d7}.payment-proof-files .workspace-row{padding-block:.6rem!important}.payment-received>.workspace-row+.workspace-row{margin-block-start:.9rem;padding-block-start:.85rem!important;border-block-start:1px dashed #e2e6dd!important}.payment-plan-details{border-block-start:1px solid #dce2d7;margin-block-start:.75rem;padding-block:.65rem}.payment-plan-details>summary{cursor:pointer;font-size:.85rem;font-weight:600;min-height:44px;padding-block:.65rem}.payment-plan-details>h3{font-size:.9rem}.payment-workspace :is(summary,button):focus-visible{outline:2px solid #9b7a3f;outline-offset:3px}
@media(max-width:760px){.payment-heading{align-items:flex-start}.payment-workspace .payment-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-workspace .payment-summary>.workspace-metric{padding:.75rem;border:0;border-block-end:1px solid #e4e8df}.payment-workspace .payment-summary>.workspace-metric:last-child{grid-column:1/-1}.payment-workspace .payment-section .workspace-row{flex-direction:column;gap:.75rem}.payment-request-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem!important}.payment-request-facts>div:last-child{grid-column:1/-1}.payment-proof-files{padding-inline-start:.65rem}.payment-workspace .payment-section .actions{width:100%}.payment-workspace .payment-section button{flex:0 1 auto}}

/* Scoped communications, attachment capture and isolated document printing. */
.workspace-communications{padding:0!important;overflow:hidden}
.workspace-list-heading{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;padding:1rem 1.2rem;border-bottom:1px solid var(--line,#d9ded3);background:#fafaf7}
.workspace-list-heading>div:first-child{font-weight:700;color:#153a30}
.workspace-list-heading>.field,.workspace-list-heading>label{margin:0;inline-size:min(100%,190px);flex:0 1 190px}
.workspace-list-heading .workspace-list-count{margin:0;font-size:12px;flex-basis:100%;color:#5f746a}
.workspace-communications>.workspace-list-count{padding:.6rem 1.2rem;margin:0;border-bottom:1px solid var(--line,#d9ded3);font-size:12px}
.workspace-communications>.workspace-list-count:empty,.workspace-communications>.error:empty{display:none}
.workspace-communications>.error{padding:.75rem 1.2rem;margin:0}
.workspace-thread-list,.workspace-notice-list{padding:0 1.2rem}
.workspace-thread-row,.workspace-notice-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.45rem 1rem;padding:1rem .2rem!important;position:relative}
.workspace-thread-row>.actions,.workspace-notice-row>.actions{grid-column:2;grid-row:1 / span 2;display:flex;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}
.workspace-thread-row>div:first-child>strong,.workspace-notice-row>div:first-child>strong{font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.workspace-thread-row>div:first-child>p{margin:.35rem 0;color:#54685e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}
.workspace-thread-row[data-read="false"],.workspace-notice-row[data-read="false"]{border-inline-start:3px solid #b79858;padding-inline-start:.8rem!important;background:linear-gradient(90deg,#f5f2e8aa,transparent)}
.workspace-thread-meta{grid-column:1;display:flex;align-items:center;gap:.4rem .7rem;flex-wrap:wrap;font-size:12px;color:#5f746a}
.workspace-thread-meta time{font-size:12px;unicode-bidi:plaintext}
.workspace-thread-meta .badge,.workspace-notice-row .badge,.workspace-file-origin{font-size:11px;line-height:1.5}
.workspace-notice-row>div:first-child>p{font-size:12px;margin:.35rem 0;color:#5f746a}
.workspace-notice-context{grid-column:1;font-size:12px!important;font-weight:600;color:#6f603e;margin:0!important}
.workspace-communications>.toolbar{padding:.8rem 1.2rem;border-top:1px solid var(--line,#d9ded3);margin:0;justify-content:space-between}
.workspace-communications>button{margin:.8rem 1.2rem}
.workspace-communications .workspace-empty{padding:1.4rem 1rem;margin:1rem 0;background:transparent}
.workspace-conversation-head{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;padding-bottom:1rem;border-bottom:1px solid var(--line,#d9ded3)}
.workspace-conversation-head>div:first-child{flex:1 1 240px;min-width:0}
.workspace-conversation-head .eyebrow{font-size:11px;margin:0 0 .3rem;color:#94763b}
.workspace-conversation-head h2{margin:0!important;font-size:clamp(18px,2vw,23px);overflow-wrap:anywhere}
.workspace-conversation .workspace-chat{gap:.75rem;margin:1.2rem 0}
.workspace-conversation .workspace-bubble{padding:1rem 1.15rem;max-width:min(94%,880px);border-radius:12px;background:#fafbf8;align-self:flex-start;overflow-wrap:anywhere}
.workspace-conversation .workspace-bubble[data-sender="client"]{border-inline-start:3px solid #afbfad;align-self:flex-end;background:#f2f6ef}
.workspace-conversation .workspace-bubble.internal{background:#fbf6e9;border-inline-start-color:#b79a62}
.workspace-conversation .workspace-bubble>strong{font-size:13px}
.workspace-conversation .workspace-bubble time{font-size:11px;margin-block-start:.15rem;color:#62766b}
.workspace-conversation .workspace-bubble>.pre{font-size:14px;line-height:1.9;white-space:pre-wrap}
.workspace-conversation .workspace-bubble>button{font-size:12px;min-height:34px;padding:.35rem .65rem;margin-block-start:.5rem}
.workspace-message-file{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;border:1px solid #d9ded3;background:white;border-radius:8px;padding:.7rem;margin-block:.65rem}
.workspace-message-file>strong{flex:1 1 180px;font-size:12px;overflow-wrap:anywhere;unicode-bidi:plaintext}
.workspace-message-file>small{flex-basis:100%;font-size:11px;overflow-wrap:anywhere;unicode-bidi:plaintext}
.workspace-conversation .workspace-composer{background:#fff;padding:1rem 0 0;border:0;border-top:1px solid var(--line,#d9ded3);border-radius:0}
.workspace-composer h3{font-size:16px;margin:0 0 .8rem}
.workspace-composer textarea{min-height:125px;resize:vertical}
.workspace-composer-options{border:1px solid var(--line,#d9ded3);border-radius:9px;margin:.75rem 0;padding:.75rem 1rem;background:#fafbf8}
.workspace-composer-options>summary{cursor:pointer;color:#4d6658;font-size:13px;font-weight:600;padding:.2rem 0}
.workspace-composer-options[open]>summary{margin-bottom:.8rem}
.workspace-capture{margin:.5rem 0 1rem;display:flex;align-items:flex-start;gap:.65rem;flex-wrap:wrap}
.workspace-capture>button{font-size:13px;min-height:42px}
.workspace-capture>.help{flex:1 1 240px;font-size:12px;line-height:1.75;margin:0;color:#60766a}
.workspace-file-row{flex-wrap:wrap}.workspace-file-original{flex-basis:100%;margin:0!important;overflow-wrap:anywhere;unicode-bidi:plaintext}
.workspace-print-frame{position:fixed;inline-size:1px;block-size:1px;inset-inline-start:-10000px;top:0;border:0}
body.workspace-print-document{margin:0;padding:0;background:#fff;color:#000}
.workspace-print-document .workspace-print-page{margin:0;padding:0;break-after:page;page-break-after:always;page:eoacv-document}
.workspace-print-document .workspace-print-page:last-child{break-after:auto;page-break-after:auto}
.workspace-print-document canvas,.workspace-print-document img{display:block;width:auto;height:auto;max-width:100%;max-height:277mm;object-fit:contain;margin:0 auto;box-shadow:none}
@page eoacv-document{size:A4;margin:10mm}
@media(max-width:600px){.workspace-list-heading{padding:.85rem}.workspace-list-heading>div:first-child{flex-basis:100%}.workspace-thread-list,.workspace-notice-list{padding:0 .85rem}.workspace-thread-row,.workspace-notice-row{grid-template-columns:minmax(0,1fr)}.workspace-thread-row>.actions,.workspace-notice-row>.actions{grid-column:1;grid-row:auto;justify-content:flex-start}.workspace-thread-meta{grid-row:2}.workspace-notice-context{grid-row:2}.workspace-conversation .workspace-bubble{max-width:100%;padding:.9rem}.workspace-conversation-head>button{font-size:12px}.workspace-message-file{padding:.6rem}.workspace-capture>.help{flex-basis:100%}}

/* Compact notification rows: event identity, context and read action. */
.workspace-notifications .workspace-notice-list{padding:0 .9rem}
.workspace-notifications .workspace-notice-row{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto;gap:0 .85rem;align-items:center;min-block-size:88px;padding:.8rem .3rem!important;border-block-end:1px solid var(--line,#d9ded3);border-inline-start:3px solid transparent;background:#fff}
.workspace-notifications .workspace-notice-row:last-child{border-block-end:0}
.workspace-notifications .workspace-notice-row[data-read="false"]{padding-inline-start:.65rem!important;background:#f8f7ef;border-inline-start-color:#ae8a43}
.workspace-notifications .workspace-notice-icon{display:grid;place-items:center;inline-size:38px;block-size:38px;border:1px solid #dce3da;border-radius:11px;background:#f5f7f2;color:#526e61}
.workspace-notifications .workspace-notice-row[data-read="false"] .workspace-notice-icon{color:#775d25;background:#f4ecd9;border-color:#e2d6b5}
.workspace-notifications .workspace-notice-icon svg{display:block;inline-size:21px;block-size:21px}
.workspace-notifications .workspace-notice-copy{min-inline-size:0;display:grid;gap:.3rem;margin:0;padding:0}
.workspace-notifications .workspace-notice-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:.3rem .65rem;min-inline-size:0;margin:0}
.workspace-notifications .workspace-notice-title{font-size:14px;line-height:1.65;font-weight:650;color:#173d33;overflow-wrap:anywhere}
.workspace-notifications .workspace-notice-read-state{display:inline-flex;align-items:center;gap:.35rem;font-size:10px;line-height:1.5;white-space:nowrap;color:#66786c}
.workspace-notifications .workspace-notice-row[data-read="false"] .workspace-notice-read-state{color:#785d20;font-weight:700}
.workspace-notifications .workspace-notice-row[data-read="false"] .workspace-notice-read-state::before{content:"";inline-size:5px;block-size:5px;flex:0 0 5px;border-radius:50%;background:currentColor}
.workspace-notifications .workspace-notice-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.1rem .8rem;margin:0;min-inline-size:0}
.workspace-notifications .workspace-notice-context{font-size:12px!important;line-height:1.65;font-weight:500;color:#5c7063;overflow-wrap:anywhere;margin:0!important;grid-column:auto;grid-row:auto}
.workspace-notifications .workspace-notice-time{font-size:11px;line-height:1.8;color:#5f7367;white-space:normal;margin:0;unicode-bidi:isolate}
.workspace-notifications .workspace-notice-actions{display:flex;align-items:center;justify-content:flex-end;gap:.35rem;flex-wrap:wrap;margin:0}
.workspace-notifications .workspace-notice-actions>button{min-block-size:38px;min-inline-size:44px;font-size:11px;line-height:1.4;padding:.5rem .65rem;white-space:nowrap;margin:0}
.workspace-notifications .workspace-notice-open{background:#f6f8f2;border-color:#d2dccf;color:#173d33}
.workspace-notifications .workspace-notice-mark{border-color:transparent;background:transparent;color:#627269}
.workspace-notifications .workspace-notice-mark:hover{background:#f0f3eb;color:#173d33}
@media(max-width:700px){.workspace-notifications .workspace-notice-row{grid-template-columns:34px minmax(0,1fr);gap:.55rem .65rem;min-block-size:0;padding:.85rem .15rem!important}.workspace-notifications .workspace-notice-icon{inline-size:32px;block-size:32px;align-self:start}.workspace-notifications .workspace-notice-icon svg{inline-size:19px;block-size:19px}.workspace-notifications .workspace-notice-actions{grid-column:2;justify-content:flex-start;gap:.3rem}.workspace-notifications .workspace-notice-actions>button{min-block-size:44px}.workspace-notifications .workspace-notice-heading{gap:.15rem .5rem}.workspace-notifications .workspace-notice-meta{gap:0 .6rem}.workspace-notifications .workspace-notice-title{font-size:14px}.workspace-notifications .workspace-notice-list{padding:0 .7rem}}
