@media(min-width:769px){
body.pc-ui-preview .cw-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;background:#fff;border:1px solid #e0e7ef;border-radius:9px;margin-bottom:14px}
body.pc-ui-preview #purchaseRelatedActions.cw-purchase-related-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto}
body.pc-ui-preview #purchaseRelatedActions.cw-purchase-related-actions[hidden]{display:none}
body.pc-ui-preview #purchaseRelatedActions.cw-purchase-related-actions>button{width:auto;flex:0 0 auto;margin:0;padding:6px 10px;border:1px solid #dbe6f5;border-radius:6px;background:#eef4fc;color:#2455a0;font-size:12px;line-height:1.4;white-space:nowrap;cursor:pointer}
body.pc-ui-preview #purchaseRelatedActions.cw-purchase-related-actions>button:hover{background:#e3edf9}
body.pc-ui-preview #purchaseRelatedActions.cw-purchase-related-actions>button:focus-visible{outline:3px solid #a4c1e8;outline-offset:2px}
body.pc-ui-preview .client-page-panel>.cw-client-aux-toolbar{display:block;margin:16px 0 0;padding:10px 0 0;border:0;border-top:1px solid #e7edf2;border-radius:0;background:transparent}
.cw-client-aux-toolbar summary{width:max-content;cursor:pointer;color:#64748b;font-size:12px;line-height:1.6}
.cw-client-aux-toolbar p{margin:8px 0;color:#64748b;font-size:12px;line-height:1.6}
.cw-client-aux-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.cw-toolbar>span{font-size:12px;color:#64748b;margin-right:4px}.cw-toolbar button{background:#eef4fc!important;color:#2455a0!important;border:1px solid #dbe6f5!important;font-size:12px;padding:6px 10px!important}
.cw-modal{position:fixed;inset:0;background:#15263b88;z-index:160;display:flex;align-items:center;justify-content:center;padding:24px;color:#172c43}.cw-shell{width:min(1120px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:#fff;border-radius:12px;box-shadow:0 24px 70px #15263b40;min-width:0;overflow:hidden}.cw-header{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;border-bottom:1px solid #e5ebf3;background:#f8fafc}.cw-header h2{margin:3px 0 0;font-size:21px}.cw-kicker{font-size:11px;letter-spacing:1px;color:#64748b}.cw-body{overflow:auto;padding:20px;min-width:0}.cw-message{padding:0 22px;white-space:pre-wrap;color:#216a4a}.cw-message:not(:empty){padding-top:10px;padding-bottom:10px;border-bottom:1px solid #e5ebf3}.cw-error{color:#b42318;background:#fff5f3}
.cw-modal button{width:auto;background:#edf3fa;color:#244b7f;border:1px solid #d8e4f2;border-radius:6px;padding:7px 12px;cursor:pointer;font-size:13px}.cw-modal button:hover{background:#dfeafa}.cw-modal button:disabled{opacity:.5;cursor:default}.cw-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}.cw-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.cw-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}.cw-field>span{font-weight:600}.cw-field input,.cw-field select,.cw-field textarea,.cw-filters input,.cw-filters select{box-sizing:border-box;width:100%;min-width:0;border:1px solid #ced9e6;border-radius:6px;background:#fff;color:#20384f;padding:9px;font:inherit}.cw-field textarea{resize:vertical}.cw-wide{grid-column:1/-1}.cw-footer{position:sticky;bottom:-20px;background:#fff;border-top:1px solid #e2e8f0;margin:20px -20px -20px;padding:15px 20px;display:flex;gap:10px}.cw-footer button[type=submit]{background:#285fa8;color:#fff;border-color:#285fa8}.cw-muted{color:#6b7c91;font-size:12px;line-height:1.7}.cw-warning{background:#fff8e6;color:#855c18;padding:12px;border-radius:6px}.cw-filters{display:grid;grid-template-columns:minmax(0,1fr) 180px 70px;gap:10px;margin-bottom:12px}.cw-table-wrap{overflow-x:auto;max-width:100%}.cw-modal table{border-collapse:collapse;width:100%;font-size:13px;margin:0}.cw-modal th{background:#f5f8fc;color:#5e7288;font-weight:500;text-align:left}.cw-modal td,.cw-modal th{padding:11px 10px;border-bottom:1px solid #e6edf5;vertical-align:top;white-space:normal;overflow-wrap:anywhere}.cw-modal td small{display:block;color:#7c8ea1;margin-top:4px}.cw-modal td button{margin:2px}.cw-status{display:inline-block;border-radius:20px;background:#eaf1fa;color:#37639b;padding:3px 9px;font-size:12px}.cw-empty{text-align:center!important;padding:30px!important;color:#8998aa}.cw-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.cw-detail>div{min-width:0}.cw-detail dt{font-size:12px;color:#728298;margin-bottom:5px}.cw-detail dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.cw-history{padding-left:20px;font-size:12px;color:#63758b}.cw-history li{margin:0 0 12px}.cw-history p{margin:5px 0;color:#253f5a;white-space:pre-wrap}.cw-lines{border:1px solid #dfe7f1;border-radius:8px;padding:12px;min-width:0}.cw-lines legend{font-size:13px;font-weight:600}.cw-line{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-bottom:1px solid #e5ecf4;padding:10px 0;margin-bottom:10px}.cw-line>button{align-self:end;justify-self:start}.cw-files{display:flex;flex-direction:column;gap:8px}.cw-files label{display:flex;align-items:center;gap:6px}.cw-files input[type=checkbox]{width:auto}.cw-files small{color:#6c7e93}.cw-summary{display:flex;flex-wrap:wrap;gap:14px;padding:10px 0}.cw-summary>span{color:#6b7c91;font-size:12px;min-width:95px}.cw-summary strong{display:block;color:#263e59;font-size:17px;margin-top:5px}.cw-modal details{margin-bottom:14px}.cw-modal summary{padding:12px;background:#f2f6fb;cursor:pointer}.cw-modal pre{white-space:pre-wrap;word-break:break-word;font-size:12px}.cw-inbox>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px;border-bottom:1px solid #e5ecf4}.cw-inbox>div>span{flex:1;color:#6b7c91;font-size:12px}.cw-backups{padding-left:18px}.cw-backups li{padding:8px 0;overflow-wrap:anywhere}
}
@media(min-width:769px) and (max-width:1100px){.cw-modal{padding:12px}.cw-shell{max-height:calc(100vh - 24px)}.cw-line{grid-template-columns:repeat(2,minmax(0,1fr))}.cw-body{padding:16px}.cw-modal td,.cw-modal th{padding:9px 7px}}
@media(min-width:769px) and (max-width:1100px){.cw-footer{margin-left:-16px;margin-right:-16px;margin-bottom:-16px;bottom:-16px;padding-left:16px;padding-right:16px}}
@media(max-width:768px){.cw-toolbar,.cw-modal{display:none!important}}
@media(max-width:768px){.dashboard-workbench{display:none!important}}

@media(min-width:769px){
  body.pc-ui-preview .cw-quote-workflows-toolbar{display:block;padding:8px 14px;margin-bottom:10px}
  .cw-quote-workflows-toolbar summary{width:max-content;cursor:pointer;color:#36536f;font-size:12px;font-weight:600}
  .cw-quote-workflows-toolbar p{margin:9px 0 6px;color:#64748b;font-size:12px}
  .cw-quote-workflows-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
}

@media(min-width:769px){
  body.pc-ui-preview .cw-project-related-toolbar{display:block;padding:8px 14px;margin-bottom:10px}
  .cw-project-related-toolbar summary{width:max-content;cursor:pointer;color:#36536f;font-size:12px;font-weight:600}
  .cw-project-related-toolbar p{margin:9px 0 6px;color:#64748b;font-size:12px}
  .cw-project-related-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
  .cw-project-related-toolbar .cw-legacy-records{margin-top:8px}
}

/* Desktop overview only: keep the rest of the business forms and mobile layout unchanged. */
@media(min-width:769px){
body.pc-ui-preview .dashboard-workbench-page{gap:14px}
body.pc-ui-preview .dashboard-workbench-page>.page-hero{padding:13px 18px}
body.pc-ui-preview .dashboard-workbench{padding:16px 18px;border-color:#dce5ef;border-radius:8px;background:#fff}
body.pc-ui-preview .cw-dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
body.pc-ui-preview .cw-dashboard-heading h3{margin:0;color:#20334d;font-size:16px}
body.pc-ui-preview .cw-dashboard-heading p{margin:5px 0 0;color:#708098;font-size:12px}
body.pc-ui-preview .cw-dashboard button{font:inherit;cursor:pointer}
body.pc-ui-preview .cw-dashboard-heading button{width:auto;flex-shrink:0;margin:0;border:1px solid #245cab;border-radius:6px;background:#245cab;color:#fff;padding:9px 13px;font-size:13px;font-weight:600}
body.pc-ui-preview .cw-dashboard-heading button span{margin-left:12px}
body.pc-ui-preview .cw-dashboard-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.pc-ui-preview .cw-dashboard-metrics:has(>.cw-dashboard-metric:only-child){grid-template-columns:minmax(0,1fr)}
body.pc-ui-preview .cw-dashboard-metric{width:100%;min-width:0;margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px 14px;align-items:center;padding:12px 15px;text-align:left;border:1px solid #e1e8f1;border-radius:7px;background:#f7f9fc;color:#233a54}
body.pc-ui-preview .cw-dashboard-metric:hover{border-color:#9ab9e4;background:#f0f5fc}
body.pc-ui-preview .cw-dashboard-label{font-size:14px;font-weight:600}
body.pc-ui-preview .cw-dashboard-metric strong{font-size:26px;line-height:1.15;font-weight:700;grid-column:2;grid-row:1/3;font-variant-numeric:tabular-nums}
body.pc-ui-preview .cw-dashboard-metric small{grid-column:1;grid-row:2;color:#74839a;font-size:12px;line-height:1.5;font-weight:400}
body.pc-ui-preview .cw-dashboard-arrow{grid-column:3;grid-row:1/3;color:#7a93b0}
body.pc-ui-preview .cw-dashboard-metric.has-items{background:#eef4fd;border-color:#cbdcf3}
body.pc-ui-preview .cw-dashboard-metric.has-items strong{color:#245cab}
body.pc-ui-preview .cw-dashboard-metric[data-inbox-section=reminders].has-items{background:#fffbf3;border-color:#efdcba}
body.pc-ui-preview .cw-dashboard-metric[data-inbox-section=reminders].has-items strong{color:#9c6413}
body.pc-ui-preview .cw-dashboard-status{color:#8b5a17;font-size:12px;line-height:1.6}
body.pc-ui-preview .cw-dashboard-status:not(:empty){margin-top:8px}
body.pc-ui-preview .cw-dashboard-status button{width:auto;margin:0;padding:3px 8px;background:#fff;border:1px solid #d9e2ef;border-radius:4px;color:#245cab;font-size:12px}
body.pc-ui-preview .dashboard-workbench #businessFollowupDashboard{margin-top:14px;padding-top:12px}
body.pc-ui-preview .dashboard-workbench .bf-entry-heading{justify-content:flex-start;gap:8px;font-size:13px}
body.pc-ui-preview .dashboard-workbench .bf-entry-heading strong{margin-right:auto}
body.pc-ui-preview .dashboard-workbench .bf-entry-heading button{width:auto;flex-shrink:0;margin:0;padding:5px 8px;font-size:12px;line-height:1.4;color:#325c91;background:#f2f6fc;border:1px solid #dce6f3;border-radius:5px}
body.pc-ui-preview .dashboard-workbench #businessFollowupDashboard>.bf-entry-heading{grid-column:1;grid-row:1}
body.pc-ui-preview .dashboard-workbench #businessFollowupDashboard>.muted{grid-column:1;grid-row:2;margin-top:7px;font-size:12px;line-height:1.6}
body.pc-ui-preview .dashboard-workbench-page .dashboard-business-flow{padding:12px 18px}
body.pc-ui-preview .dashboard-workbench-page .dashboard-business-flow .section-head{border:0;padding-bottom:8px}
body.pc-ui-preview .dashboard-workbench-page .dashboard-flow-step{min-height:62px;padding:9px 11px}
body.pc-ui-preview .dashboard-workbench-page .dashboard-flow-index{background:#eef3fb;color:#32649f}
body.pc-ui-preview .dashboard-detail-fold{margin-top:12px;border-top:1px solid #e5ebf2;padding-top:10px}
body.pc-ui-preview .dashboard-detail-fold>summary{width:fit-content;font-size:13px;color:#416893;cursor:pointer;padding:4px 0}
body.pc-ui-preview .dashboard-detail-fold[open]>.workspace-columns{margin-top:8px}
body.pc-ui-preview .cw-inbox-settings{margin-top:20px;border-top:1px solid #e4eaf2;padding-top:12px}
body.pc-ui-preview .cw-inbox-settings>summary{font-size:12px;color:#667b94;background:#fff}
body.pc-ui-preview .cw-dashboard button:focus-visible,body.pc-ui-preview .dashboard-detail-fold>summary:focus-visible{outline:3px solid #92b5e8;outline-offset:3px}
}
@media(min-width:769px) and (max-width:1199px){
body.pc-ui-preview .dashboard-workbench .bf-entry-heading{gap:6px}
body.pc-ui-preview .cw-dashboard-heading{gap:10px}
body.pc-ui-preview .cw-dashboard-metric{padding:11px;column-gap:10px}
}
.dashboard-workbench-page .dw-renewal-followup{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin-top:10px;padding:9px 0;border-top:1px solid #e8edf3;color:#647890;font-size:12px;line-height:1.5}
.dashboard-workbench-page .dw-renewal-followup[hidden]{display:none}
.dashboard-workbench-page .dw-renewal-followup>strong{font-size:13px;font-weight:600;color:#20364f}
.dashboard-workbench-page .dw-renewal-followup b{font-weight:600;font-variant-numeric:tabular-nums}
.dashboard-workbench-page .dw-renewal-followup .is-overdue{color:#b83c36}
.dashboard-workbench-page .dw-renewal-followup .is-upcoming{color:#936217}
.dashboard-workbench-page .dw-renewal-followup>button{width:auto;margin:0 0 0 auto;padding:5px 0;border:0;border-radius:0;background:none;color:#2b61a6;font-size:12px;font-weight:500;white-space:nowrap}
.dashboard-workbench-page .dw-renewal-followup>button:disabled{color:#7b899b;cursor:wait}
@media(max-width:600px){.dashboard-workbench-page .dw-renewal-followup{gap:4px 10px}.dashboard-workbench-page .dw-renewal-followup>button{min-height:40px}}
body .mobile-system-shell [data-mobile-renewal-followup] .mobile-hub-card{grid-template-columns:34px minmax(0,1fr) 12px}
body .mobile-system-shell [data-mobile-renewal-followup] .mobile-hub-card-copy small{overflow:visible;text-overflow:clip;white-space:normal;line-height:1.5;overflow-wrap:anywhere}
body .mobile-system-shell [data-mobile-renewal-followup] .is-upcoming{color:#936217}
body .mobile-system-shell [data-mobile-renewal-followup] .is-overdue{color:#b83c36}
.bf-modal .bf-renewal-due-list>article{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid #e5ecf4}
.bf-modal .bf-renewal-due-list>article:last-child{border-bottom:0}
.bf-modal .bf-renewal-due-list>article>div{min-width:0;flex:1;display:grid;gap:5px;overflow-wrap:anywhere}
.bf-modal .bf-renewal-due-list strong{font-size:14px;font-weight:600;color:#20364f}
.bf-modal .bf-renewal-due-list small,.bf-modal .bf-renewal-due-list span{font-size:12px;color:#647890;line-height:1.5}
.bf-modal .bf-renewal-due-list .is-overdue{color:#b83c36}
.bf-modal .bf-renewal-due-list .is-upcoming{color:#936217}
.bf-modal .bf-renewal-due-list>article>.bf-button{flex-shrink:0;margin:0;min-height:40px}
@media(max-width:480px){.bf-modal .bf-renewal-due-list>article{align-items:flex-start;flex-wrap:wrap;gap:8px}.bf-modal .bf-renewal-due-list>article>div{flex-basis:100%}.bf-modal .bf-renewal-due-list>article>.bf-button{margin-left:auto}}
/* Work overview: desktop only. Business pages and the mobile layout keep their own rules. */
@media (min-width:769px) {
body.pc-ui-preview .dashboard-workbench-page{gap:16px;color:#24364b}
body.pc-ui-preview .dashboard-workbench-page>.panel{border:1px solid #e2e8f0;border-radius:9px;box-shadow:none;padding:18px 20px}
body.pc-ui-preview .dashboard-workbench-page>.page-hero{padding:4px 0 2px;background:transparent;border:0;box-shadow:none}
body.pc-ui-preview .dashboard-workbench-page .page-hero-title{font-size:21px}
body.pc-ui-preview .dashboard-workbench-page .page-hero-subtitle{font-size:12px;margin-top:5px}
body.pc-ui-preview .dashboard-workbench-page .page-chip-row{gap:20px}
body.pc-ui-preview .dashboard-workbench-page .page-chip-row>button{width:auto;display:grid;gap:3px;margin:0;padding:2px 0;border:0;background:none;color:#52657e;text-align:right;font-size:11px}
body.pc-ui-preview .dashboard-workbench-page .page-chip-row>button strong{color:#20364f;font-size:21px;font-variant-numeric:tabular-nums}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-heading{margin-bottom:10px}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-heading p{display:none}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-metric{padding:9px 12px;border:0;border-radius:5px;background:#f2f6fc}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-metric strong{font-size:22px}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-metric small{font-size:11px}
body.pc-ui-preview .dashboard-workbench-page #businessFollowupDashboard{margin-top:10px;padding-top:9px;column-gap:20px}
body.pc-ui-preview .dashboard-workbench-page #businessFollowupDashboard>.muted{font-size:11px;margin-top:3px}
body.pc-ui-preview .dw-priority{margin-top:14px;border-top:1px solid #e8edf3;padding-top:12px}
body.pc-ui-preview .dw-subhead{display:flex;align-items:center;gap:12px;margin-bottom:6px}
body.pc-ui-preview .dw-subhead h3{font-size:14px;margin:0}
body.pc-ui-preview .dw-subhead>span{font-size:11px;color:#79879a}
body.pc-ui-preview .dw-subhead>button{margin-left:auto}
body.pc-ui-preview .dw-row{display:grid;grid-template-columns:minmax(0,1fr) 95px 135px 85px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f5;font-size:12px}
body.pc-ui-preview .dw-row:last-child{border-bottom:0}
body.pc-ui-preview .dw-row-main{min-width:0;display:grid;gap:4px}
body.pc-ui-preview .dw-row-main strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
body.pc-ui-preview .dw-row small{display:block;color:#7b899b;font-size:11px;line-height:1.5}
body.pc-ui-preview .dw-owner{color:#66788f;overflow-wrap:anywhere}
body.pc-ui-preview .dw-date{color:#66788f;font-size:11px}
body.pc-ui-preview .dw-date.is-overdue{color:#bb3b37}
body.pc-ui-preview .dw-date.is-upcoming{color:#936217;line-height:1.6}
body.pc-ui-preview .dw-row>button,body.pc-ui-preview .dw-subhead>button,body.pc-ui-preview .dw-log-more,body.pc-ui-preview .dw-schedule-note>button{width:auto;margin:0;padding:3px 0;border:0;background:none;color:#2b61a6;font-size:12px;font-weight:500;text-align:right}
body.pc-ui-preview .dw-empty{margin:8px 0;padding:8px 0;color:#7b899b;font-size:12px}
body.pc-ui-preview .dashboard-workbench-page .section-head{margin-bottom:12px;padding-bottom:0;border:0}
body.pc-ui-preview .dashboard-workbench-page .section-head h3{font-size:15px}
body.pc-ui-preview .dashboard-workbench-page .section-head-note{font-size:11px;color:#8190a2}
body.pc-ui-preview .dw-summary-section .task-board-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.pc-ui-preview .dw-summary-section .task-board-list:has(>.dashboard-action-card:only-child){grid-template-columns:minmax(0,1fr)}
body.pc-ui-preview .dw-summary-section .dashboard-action-card{min-height:82px;border:1px solid #e7edf4;border-left:1px solid #e7edf4;border-radius:6px;padding:12px 14px;background:#fff;box-shadow:none}
body.pc-ui-preview .dw-summary-section .dashboard-action-card:hover{border-color:#a7c0e1;background:#f9fbfe}
body.pc-ui-preview .dw-summary-section .dashboard-action-card.danger{background:#fff9f8;border-color:#f2d3d0}
body.pc-ui-preview .dw-summary-section .dashboard-action-card.warn{background:#fffcf6;border-color:#f0e0c4}
body.pc-ui-preview .dw-summary-section .task-card-title{font-size:12px;font-weight:500;color:#52657d}
body.pc-ui-preview .dw-summary-section .task-card-sub{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap;margin-top:7px;font-size:15px;line-height:1.3;color:#243c59}
body.pc-ui-preview .dw-summary-section .task-card-sub strong{font-size:23px;font-variant-numeric:tabular-nums}
body.pc-ui-preview .dw-summary-section .task-card-sub small{font-size:11px;color:#8190a2;font-weight:400}
body.pc-ui-preview .dw-summary-section .task-card-arrow{font-size:11px;font-weight:400;color:#3d6b9f}
body.pc-ui-preview .dw-summary-section .dw-zero .task-card-sub{color:#8593a4}
body.pc-ui-preview .dw-cost{margin-top:10px;border-top:1px solid #edf1f6;padding-top:10px}
body.pc-ui-preview .dw-cost>button{display:flex;align-items:center;gap:16px;width:100%;padding:3px 0;margin:0;border:0;background:none;color:#566b82;font-size:12px;text-align:left}
body.pc-ui-preview .dw-cost strong{font-size:12px;color:#34577e;font-weight:500}
body.pc-ui-preview .dw-cost small{margin-left:auto;color:#8592a2;font-size:11px}
body.pc-ui-preview .dw-cost>button>span:last-child{color:#356799;font-size:11px}
body.pc-ui-preview .dw-risk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
body.pc-ui-preview .dw-risk-grid>button{display:grid;gap:7px;border:0;border-right:1px solid #e8edf3;border-radius:0;padding:0 10px 0 0;margin:0;background:none;color:#526780;text-align:left;font-size:12px;min-width:0}
body.pc-ui-preview .dw-risk-grid>button:last-child{border-right:0}
body.pc-ui-preview .dw-risk-grid strong{color:#2d4766;font-size:23px;line-height:1.2}
body.pc-ui-preview .dw-risk-grid small{font-size:11px;color:#7b8da2;font-weight:400}
body.pc-ui-preview .dw-risk-grid .is-overdue strong{color:#b83d38}
body.pc-ui-preview .dw-schedule-note{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:12px;color:#7b899d;font-size:11px}
body.pc-ui-preview .dw-schedule-note>button{font-size:11px}
body.pc-ui-preview .dashboard-workbench-page .dw-shortcuts{display:flex;align-items:center;gap:24px;padding:12px 20px}
body.pc-ui-preview .dw-shortcuts .section-head{margin:0;flex-shrink:0}
body.pc-ui-preview .dw-shortcuts .dashboard-flow-list{flex:1;gap:12px}
body.pc-ui-preview .dw-shortcuts .dashboard-flow-step{border:0;border-radius:0;border-left:1px solid #e6ebf2;background:none;min-height:35px;padding:0 12px;gap:8px}
body.pc-ui-preview .dw-shortcuts .dashboard-flow-index,body.pc-ui-preview .dw-shortcuts .dashboard-flow-copy small{display:none}
body.pc-ui-preview .dw-shortcuts .dashboard-flow-copy strong{font-size:12px}
body.pc-ui-preview .dw-shortcuts .dashboard-flow-value{font-size:12px;color:#7d8ca0}
body.pc-ui-preview .dw-recent .client-detail-list{gap:0}
body.pc-ui-preview .dw-recent .client-detail-item{padding:8px 0;border:0;background:none;font-size:12px;line-height:1.7}
body.pc-ui-preview .dw-recent .client-detail-item strong{font-size:11px;font-weight:400;color:#8492a5}
body.pc-ui-preview .dashboard-workbench-page .dw-recent{border-color:#edf1f5;background:#fbfcfd;color:#718198}
body.pc-ui-preview .dashboard-workbench-page .dw-recent .section-head h3{color:#53677f;font-size:13px}
body.pc-ui-preview .dashboard-workbench-page .dw-recent .section-head-note{color:#9aa7b6}
body.pc-ui-preview .dw-log-group{border-bottom:1px solid #edf1f6}
body.pc-ui-preview .dw-log-group details{padding:0 0 6px 12px;color:#6d8096;font-size:11px}
body.pc-ui-preview .dw-log-more{display:block;margin-top:12px}
body.pc-ui-preview .dw-empty-fold{margin-top:10px;font-size:12px;color:#73859b}
body.pc-ui-preview .dw-empty-fold summary{cursor:pointer}
body.pc-ui-preview .dw-empty-fold .task-board-list{margin-top:10px}
body.pc-ui-preview .dw-return{width:auto;margin:0 0 12px;padding:6px 11px;border:1px solid #dbe6f5;border-radius:5px;color:#3165a1;background:#fff;font-size:12px}
body.pc-ui-preview .dw-dialog{width:min(1040px,calc(100vw - 60px));height:min(760px,calc(100vh - 48px));max-height:none;box-sizing:border-box;display:flex;flex-direction:column;padding:0;border:1px solid #d6e1ee;border-radius:10px;color:#24364b;box-shadow:0 18px 60px #172b4b44;overflow:hidden}
body.pc-ui-preview .dw-dialog::backdrop{background:#182a4566}
body.pc-ui-preview .dw-dialog>header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:18px 22px;background:#fff;border-bottom:1px solid #e5ebf3;gap:16px;z-index:1}
body.pc-ui-preview .dw-dialog h2{font-size:18px;margin:0}
body.pc-ui-preview .dw-dialog header p{font-size:12px;color:#7c8ba0;margin:6px 0 0}
body.pc-ui-preview .dw-dialog header button{width:auto;margin:0;flex-shrink:0;padding:7px 12px;border:1px solid #d9e4f2;border-radius:5px;color:#2c5e9a;background:#f5f8fd;font-size:12px}
body.pc-ui-preview .dw-dialog-list{flex:1 1 auto;min-height:0;overflow:auto;padding:4px 22px 16px}
body.pc-ui-preview .dw-dialog-list .dw-row{padding:13px 0}
body.pc-ui-preview .dashboard-workbench-page button:focus-visible,body.pc-ui-preview .dw-dialog button:focus-visible{outline:3px solid #a4c1e8;outline-offset:3px}
}
@media(max-width:768px){
body.pc-ui-preview .dw-dialog{width:calc(100vw - 24px);height:calc(100vh - 24px);max-height:none}
body.pc-ui-preview .dw-dialog>header{padding:14px 16px}
body.pc-ui-preview .dw-list-tools,body.pc-ui-preview .dw-dialog-list{padding-left:16px;padding-right:16px}
}
@media(min-width:769px){
body.pc-ui-preview .dw-primary-summary .task-board-list:has(>.dashboard-action-card:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
body.pc-ui-preview .dw-quiet-work{color:#6c7e95;font-size:12px}
body.pc-ui-preview .dw-quiet-work summary,body.pc-ui-preview .dw-quiet-risk summary{cursor:pointer}
body.pc-ui-preview .dw-quiet-risk{color:#75869a;font-size:12px}
body.pc-ui-preview .dw-quiet-risk[open] .dw-risk-grid{margin-top:16px}
body.pc-ui-preview .dw-recent-empty .client-detail-list{display:block;min-height:0}
body.pc-ui-preview .dw-recent-empty .dw-log-more{margin-top:4px}
body.pc-ui-preview .dw-shortcuts .dashboard-flow-copy strong{white-space:nowrap}
body.pc-ui-preview .dw-shortcuts .dashboard-flow-step{display:flex;justify-content:space-between}
body.pc-ui-preview .dw-date{overflow-wrap:normal}
}
@media(min-width:769px) and (max-width:1120px){body.pc-ui-preview .dw-row{grid-template-columns:minmax(0,1fr) 70px 106px 72px;gap:8px}body.pc-ui-preview .dw-cost>button{gap:10px;flex-wrap:wrap}body.pc-ui-preview .dw-risk-grid{gap:10px}body.pc-ui-preview .dashboard-workbench-page .dw-shortcuts{gap:10px}body.pc-ui-preview .dw-shortcuts .dashboard-flow-list{gap:3px}body.pc-ui-preview .dw-shortcuts .dashboard-flow-step{padding:0 6px}}

.cw-inbox-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e5ecf4;padding-bottom:12px;margin-bottom:4px}
.cw-inbox-intro p{margin:0;color:#63758b;font-size:13px;line-height:1.7}
.cw-inbox-intro strong{flex-shrink:0;color:#244b7f;font-size:14px}
.cw-field[hidden]{display:none!important}.cw-prior-history{border:1px solid #dbe5f1;border-radius:8px;padding:8px 12px}.cw-prior-history summary{padding:7px;background:#f7faff;color:#3d628e}.cw-prior-history article{padding:10px 0;border-bottom:1px solid #e7edf4}.cw-prior-history article:last-child{border-bottom:0}.cw-modal[data-workflow-kind="cashEntries"] .cw-table-wrap :is(th,td):last-child,.cw-modal[data-workflow-kind="reconciliations"] .cw-table-wrap :is(th,td):last-child{position:sticky;right:0;background:#fff;min-width:110px;box-shadow:-4px 0 7px -6px #536a82}.cw-modal[data-workflow-kind="cashEntries"] .cw-table-wrap th:last-child,.cw-modal[data-workflow-kind="reconciliations"] .cw-table-wrap th:last-child{background:#f5f8fc}
/* Group each business area around one complete list and its status filters. */
@media(min-width:769px){
body.pc-ui-preview .dw-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.pc-ui-preview .dw-summary-group{border:1px solid #dce5f1;border-radius:7px;background:#fbfcff;overflow:hidden;min-width:0}
body.pc-ui-preview .dw-group-main{display:grid;grid-template-columns:1fr auto;gap:7px 12px;width:100%;margin:0;padding:14px 16px;border:0;background:none;color:#213e62;text-align:left}
body.pc-ui-preview .dw-group-main>span{grid-column:1/-1;font-size:13px;font-weight:600}
body.pc-ui-preview .dw-group-main strong{font-size:25px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.3}
body.pc-ui-preview .dw-group-main small{align-self:end;font-size:11px;font-weight:400;color:#647d9f;white-space:nowrap}
body.pc-ui-preview .dw-group-main:hover{background:#f0f5fc}
body.pc-ui-preview .dw-group-hints{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 16px;padding:9px 0;border-top:1px solid #e4ebf4}
body.pc-ui-preview .dw-group-hints button,body.pc-ui-preview .dw-text-button{width:auto;margin:0;padding:2px 0;border:0;background:none;color:#426895;font-size:12px;font-weight:400}
body.pc-ui-preview .dw-group-hints .is-overdue{color:#b74732}
body.pc-ui-preview .dw-list-tools{padding:12px 22px 0}
body.pc-ui-preview .dw-filter-tabs{display:flex;gap:7px;flex-wrap:wrap}
body.pc-ui-preview .dw-filter-tabs button{width:auto;margin:0;border:1px solid #e0e8f3;border-radius:5px;padding:6px 10px;background:#fff;color:#596f8e;font-size:12px;font-weight:400}
body.pc-ui-preview .dw-filter-tabs button[aria-pressed="true"]{background:#edf4ff;color:#255ca4;border-color:#a9c2e6}
body.pc-ui-preview .dw-filter-tabs button span{margin-left:4px;font-variant-numeric:tabular-nums}
body.pc-ui-preview .dw-list-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:12px}
body.pc-ui-preview .dw-list-controls label{margin:0;color:#657b96;font-size:11px;display:grid;gap:4px}
body.pc-ui-preview .dw-list-controls input,body.pc-ui-preview .dw-list-controls select{margin:0;padding:7px 10px;height:34px;font-size:12px;width:220px;max-width:100%;border:1px solid #dbe5f2;border-radius:5px;background:#fff}
body.pc-ui-preview .dw-list-controls select{width:160px}
body.pc-ui-preview .dw-list-controls>button{width:auto;margin:0;padding:8px 11px;background:#f1f6fd;color:#2b619f;border:1px solid #dbe6f5;border-radius:5px;font-size:12px}
body.pc-ui-preview .dw-list-count{font-size:12px;color:#526c8b;margin:12px 0 2px}
body.pc-ui-preview .dw-dialog header p{line-height:1.6}
body.pc-ui-preview .dw-execution .dw-risk-grid{grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:12px}
body.pc-ui-preview .dw-log-tabs{margin-bottom:5px}
body.pc-ui-preview .dw-group-grid>.dw-summary-group:only-child{grid-column:1/-1}
}
/* Compact overview: keep the actual risks visible without letting old rows fill the first screen. */
@media(min-width:769px){
body.pc-ui-preview .dashboard-workbench-page{gap:12px}
body.pc-ui-preview .dashboard-workbench-page>section{margin:0}
body.pc-ui-preview .dashboard-workbench-page>.panel{padding:14px 18px;gap:6px}
body.pc-ui-preview .dashboard-workbench-page>.page-hero{padding:3px 0}
body.pc-ui-preview .dashboard-workbench-page .section-head{margin-bottom:6px}
body.pc-ui-preview .dashboard-workbench-page .section-head-note{line-height:1.5}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-heading{margin-bottom:8px}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-heading button{padding:7px 11px}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-heading .cw-dashboard-history{padding:4px 0;border:0;background:transparent;color:#647b98;font-size:12px;font-weight:400}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-heading .cw-dashboard-history:hover{color:#245cab;text-decoration:underline}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-heading .cw-dashboard-history span{margin-left:4px}
body.pc-ui-preview .dashboard-workbench-page .cw-dashboard-metric{padding:8px 11px}
body.pc-ui-preview .dashboard-workbench-page .dw-priority{margin-top:6px;padding-top:10px}
body.pc-ui-preview .dashboard-workbench-page .dw-subhead{margin-bottom:3px;flex-wrap:wrap;gap:5px 10px}
body.pc-ui-preview .dashboard-workbench-page .dw-subhead>button{white-space:nowrap}
body.pc-ui-preview .dashboard-workbench-page .dw-priority .dw-row{padding:8px 0}
body.pc-ui-preview .dashboard-workbench-page .dw-priority .dw-empty{padding:3px 0;margin:5px 0;color:#647890}
body.pc-ui-preview .dashboard-workbench-page .dw-aging{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding:9px 12px;background:#fff9f2;border:1px solid #f0dfc8;border-radius:5px}
body.pc-ui-preview .dashboard-workbench-page .dw-aging-primary{margin-top:6px;padding:12px 14px;border-color:#edc8a8;background:#fff7ed}
body.pc-ui-preview .dashboard-workbench-page .dw-aging strong{font-size:13px;font-weight:600;color:#72552c}
body.pc-ui-preview .dashboard-workbench-page .dw-aging strong span{margin-left:8px;color:#aa4c25}
body.pc-ui-preview .dashboard-workbench-page .dw-aging small{display:block;margin-top:3px;font-size:11px;color:#8a765e;line-height:1.5}
body.pc-ui-preview .dashboard-workbench-page .dw-aging>button,body.pc-ui-preview .dashboard-workbench-page .dw-current-more{width:auto;margin:0;padding:5px 0;background:none;border:0;color:#2b61a6;font-size:12px;white-space:nowrap}
body.pc-ui-preview .dashboard-workbench-page .dw-current-more{display:block;margin-left:auto;padding-top:6px}
body.pc-ui-preview .dashboard-workbench-page #businessFollowupDashboard{margin-top:6px;padding-top:8px}
body.pc-ui-preview .dashboard-workbench-page .dw-summary-section .dashboard-action-card{min-height:70px;padding:10px 12px}
body.pc-ui-preview .dashboard-workbench-page .dw-summary-section .task-card-sub{margin-top:5px}
body.pc-ui-preview .dashboard-workbench-page .dw-cost{margin-top:4px;padding-top:8px}
body.pc-ui-preview .dashboard-workbench-page .dashboard-detail-fold{margin-top:4px;padding-top:6px}
body.pc-ui-preview .dashboard-workbench-page .dw-risk-grid>button{gap:4px}
body.pc-ui-preview .dashboard-workbench-page .dw-schedule-note{margin-top:5px;gap:6px 15px}
body.pc-ui-preview .dashboard-workbench-page .dw-shortcuts{padding:11px 18px}
body.pc-ui-preview .dashboard-workbench-page .dw-log-more{margin-top:5px}
body.pc-ui-preview .dashboard-workbench-page .dw-recent .client-detail-item{padding:5px 0}
}
.bank-workspace .bank-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.bank-filters label{display:grid;gap:6px;min-width:150px;max-width:300px;flex:1}.bank-filters select,.bank-filters input{width:100%;min-width:0;box-sizing:border-box}.bank-workspace td strong{display:block;white-space:nowrap;margin-top:5px}.bank-workspace th:last-child,.bank-workspace td:last-child{position:sticky;right:0;background:#fff;min-width:105px;box-shadow:-4px 0 6px -6px #536a82}.bank-summary{background:#edf5ff;border:1px solid #cddff5;border-radius:10px;padding:15px;margin:12px 0;line-height:1.6}.bank-summary p{margin:6px 0}.bank-workspace .cw-line{grid-template-columns:minmax(130px,1fr) minmax(200px,2fr) minmax(100px,1fr) auto}.bank-workspace .cw-field{min-width:0}.bank-workspace [aria-invalid="true"]{border-color:#b42336}.bank-leave{position:absolute;inset:0;background:#182b4866;display:flex;align-items:center;justify-content:center;z-index:5}.bank-leave>div{background:white;max-width:460px;padding:22px;border-radius:12px}.bank-leave button{margin-right:10px}.bank-workspace .cw-shell{position:relative}@media(max-width:1100px){.bank-workspace .cw-line{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-workspace .cw-line .cw-field:nth-child(2){grid-column:1/-1;grid-row:2}}
.bank-workspace .cw-table-wrap table{min-width:990px}.bank-workspace .cw-table-wrap td:first-child{min-width:165px}.bank-workspace .cw-table-wrap td:first-child small{white-space:nowrap}.bank-workspace .cw-table-wrap :is(th,td):nth-last-child(2){white-space:nowrap;min-width:60px}
.bank-summary{position:sticky;top:0;z-index:2;box-shadow:0 3px 8px #17355218}
 .cw-empty-ref{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid #f0c36d;border-radius:7px;background:#fff8e6;color:#855c18;line-height:1.5}.cw-empty-ref button{margin:0}
@media(min-width:769px){body.pc-ui-preview .cw-hr-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;padding:8px 12px;margin-bottom:10px;background:#f8fafd;border-radius:6px}body.pc-ui-preview .cw-hr-toolbar>span{color:#637991;font-size:11px}body.pc-ui-preview .cw-hr-toolbar button{width:auto;flex:0 0 auto;margin:0;padding:5px 9px!important;line-height:1.5;white-space:nowrap;font-size:12px}.hr-attendance-preview{border:1px solid #dbe5f1;border-radius:8px;background:#fbfcff;padding:12px 14px;margin-top:18px}.hr-attendance-preview h4{margin:0 0 5px;font-size:14px}.hr-attendance-preview details{margin-top:9px}.hr-attendance-preview table{font-size:12px}.hr-attendance-preview .cw-summary{padding-top:0;gap:12px 22px}.hr-attendance-preview .cw-summary strong{font-size:14px}.hr-business-table :is(th,td):last-child{position:sticky;right:0;background:#fff;min-width:105px;box-shadow:-4px 0 7px -6px #536a82}.hr-business-table th:last-child{background:#f5f8fc}.hr-business-table td strong{font-variant-numeric:tabular-nums}.hr-recheck{color:#a15b13;font-weight:600}.hr-conflict{margin-top:16px}.hr-conflict dl{margin:8px 0}.hr-conflict dl>div{margin-bottom:8px}.hr-conflict dt{font-weight:600;font-size:12px}.hr-conflict dd{margin:4px 0;font-size:12px;line-height:1.6}.cw-modal:is([data-workflow-kind="payroll"],[data-workflow-kind="attendanceMonths"],[data-workflow-kind="hrRequests"],[data-workflow-kind="offboarding"],[data-workflow-kind="leaveBalances"]) .cw-actions{margin-bottom:11px}.cw-modal:is([data-workflow-kind="payroll"],[data-workflow-kind="attendanceMonths"],[data-workflow-kind="hrRequests"],[data-workflow-kind="offboarding"],[data-workflow-kind="leaveBalances"]) .cw-form{gap:12px}}
@media(min-width:769px) and (max-width:1100px){.hr-business-table table{min-width:720px}.hr-attendance-preview .cw-table-wrap table{min-width:660px}.hr-business-table td:first-child{min-width:125px}.hr-business-table :is(th,td):last-child{min-width:85px}}
@media(min-width:769px){.hr-operational-table table{min-width:0;table-layout:fixed}.hr-operational-table :is(th,td):first-child{width:18%;min-width:0}.hr-operational-table :is(th,td):nth-child(2){width:23%}.hr-operational-table :is(th,td):nth-child(3){width:19%}.hr-operational-table :is(th,td):nth-child(4){width:25%}.hr-operational-table :is(th,td):last-child{width:15%;min-width:0}.hr-operational-table .hr-business-summary{line-height:1.65}.hr-operational-table .cw-status{white-space:normal}.hr-operational-table td button{padding:6px 9px;font-size:12px}}
/* Mobile workflow shell: keep the daily inbox and forms usable on phones. */
@media(max-width:768px){
  body .cw-toolbar{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;margin-bottom:10px;background:#fff;border:1px solid #e0e7ef;border-radius:9px}
  body .dashboard-workbench{display:block!important;margin:0;padding:12px 10px;border:0;border-radius:0;background:transparent}
  body .dashboard-workbench .cw-dashboard-heading{display:flex;align-items:center;gap:8px;margin-bottom:9px}
  body .dashboard-workbench .cw-dashboard-heading h3{margin:0;font-size:16px;color:#20334d}
  body .dashboard-workbench .cw-dashboard-heading p{margin:3px 0 0;color:#74839a;font-size:11px;line-height:1.5}
  body .dashboard-workbench .cw-dashboard-heading button{width:auto;margin-left:auto;padding:4px 0;border:0;background:none;color:#35679f;font-size:11px;white-space:nowrap}
  body .dashboard-workbench .cw-dashboard-metrics{display:grid;grid-template-columns:1fr;gap:8px}
  body .dashboard-workbench .cw-dashboard-metric{min-height:62px;padding:10px 11px;border:1px solid #dfe7f1;border-radius:8px;background:#f6f9fd;color:#233a54;text-align:left}
  body .dashboard-workbench .cw-dashboard-label{color:#233a54}
  body .dashboard-workbench .cw-dashboard-arrow{color:#7a93b0}
  body .dashboard-workbench .cw-dashboard-metric strong{font-size:22px}
  body .dashboard-workbench .cw-dashboard-metric small{font-size:11px;line-height:1.4}
  body .cw-modal{display:flex!important;align-items:flex-end;padding:0;background:#15263b88}
  body .cw-modal .cw-shell{width:100%;max-height:94vh;border-radius:14px 14px 0 0}
  body .cw-modal .cw-header{padding:13px 15px}
  body .cw-modal .cw-header h2{font-size:17px}
  body .cw-modal .cw-body{padding:14px;overflow:auto}
  body .cw-modal .cw-form{grid-template-columns:1fr;gap:12px}
  body .cw-modal .cw-footer{bottom:-14px;margin:14px -14px -14px;padding:12px 14px}
  body .cw-modal .cw-footer button{flex:1;min-height:42px}
  body .cw-modal .cw-actions{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}
  body .cw-modal .cw-actions button{flex:0 0 auto;min-height:38px}
  body .cw-modal .cw-table-wrap{overflow-x:auto}
}
body .cw-modal .cw-acceptance-fields{margin:4px 0 10px;padding:15px;border:1px solid #dce5ec;border-radius:8px;background:#f8fbfc;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body .cw-modal .cw-acceptance-fields h3,body .cw-modal .cw-acceptance-fields [data-closure-evidence]{grid-column:1/-1;margin:0}
body .cw-modal .cw-acceptance-fields>.cw-field:first-of-type{grid-column:1/-1}
body .cw-modal .cw-acceptance-evidence{padding:12px 14px;margin:8px 0;border:1px solid #dbe6e9;border-radius:7px;background:#f6fafb;font-size:13px;line-height:1.6}
body .cw-modal .cw-acceptance-evidence p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}
body .cw-modal .cw-acceptance-evidence button{margin-top:5px}
body .cw-modal .cw-stage-help{padding:8px 0;line-height:1.6}
body .cw-modal .cw-acceptance-fields [hidden],body .cw-modal .cw-form>.cw-field[hidden]{display:none!important}
@media(max-width:700px){body .cw-modal .cw-acceptance-fields{grid-template-columns:minmax(0,1fr)}}

/* Contextual finance lists reuse the original workflow without another workspace. */
@media(min-width:769px){
.cw-finance-context .cw-shell{width:min(1180px,100%)}
.cw-finance-context .cw-header{padding:12px 18px}.cw-finance-context .cw-header h2{font-size:18px}.cw-finance-context .cw-kicker{display:none}
.cw-finance-context .cw-body{padding:14px 18px}.cw-finance-context .cw-actions{margin-bottom:10px}
.cw-finance-context .cw-finance-list td,.cw-finance-context .cw-finance-list th{padding:7px 8px;vertical-align:middle}.cw-finance-context .cw-finance-list td:first-child{width:34%}
.cw-finance-context .cw-finance-list td:first-child strong{display:block;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cw-finance-context .cw-finance-list td small{margin-top:3px}.cw-finance-context .cw-finance-list td button{padding:5px 9px}
.cw-finance-context .cw-finance-pagination{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.cw-finance-context .cw-finance-pagination>div{display:flex;gap:8px}
.cw-finance-context .cw-filters:has([name="reconciliationMonth"]){grid-template-columns:minmax(0,1fr) 150px 170px 70px}
.cw-finance-context .cw-month-check{margin:12px 0 0}.cw-finance-context .cw-month-check>summary{padding:7px 10px;font-size:12px}
.cw-finance-context .cw-field[hidden]{display:none}
}

/* Only cash-entry editing: compact core fields, fixed save row and optional follow-up. */
@media(min-width:769px){
.cw-modal[data-workflow-kind="cashEntries"] .cw-shell:has(.cw-cash-form){width:min(1180px,100%)}
.cw-modal[data-workflow-kind="cashEntries"] .cw-header:has(~.cw-body .cw-cash-form){padding:11px 18px}
.cw-modal[data-workflow-kind="cashEntries"] .cw-header:has(~.cw-body .cw-cash-form) .cw-kicker{display:none}
.cw-modal[data-workflow-kind="cashEntries"] .cw-header:has(~.cw-body .cw-cash-form) h2{font-size:18px}
.cw-modal[data-workflow-kind="cashEntries"] .cw-body:has(.cw-cash-form){display:flex;min-height:0;padding:0;overflow:hidden}
.cw-cash-form{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;max-height:calc(100vh - 132px);margin:0}
.cw-cash-form>.cw-actions{flex:none;padding:9px 18px 0;margin:0}
.cw-cash-scroll{min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;padding:10px 18px 12px}
.cw-cash-form .cw-form{gap:10px 14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.cw-cash-form .cw-field{min-width:0;gap:4px;font-size:12px}
.cw-cash-form .cw-field[hidden],.cw-cash-form .cw-cash-extra[hidden]{display:none!important}
.cw-cash-form [data-cash-field="title"],.cw-cash-form [data-cash-field="parentId"],.cw-cash-form [data-cash-field="receivableId"],.cw-cash-form [data-cash-field="purchaseId"],.cw-cash-form [data-cash-field="reimbursementId"]{grid-column:span 2}
.cw-cash-form [data-cash-field="reason"],.cw-cash-form [data-cash-field="files"]{grid-column:1/-1}
.cw-cash-form .cw-field input,.cw-cash-form .cw-field select,.cw-cash-form .cw-field textarea{max-width:100%;padding:7px 8px;font-size:13px;line-height:1.35}
.cw-cash-form .cw-field textarea{min-height:48px;resize:vertical}
.cw-cash-form .cw-files{gap:5px}.cw-cash-form .cw-files small{font-size:11px}
.cw-cash-form .cw-files label{overflow-wrap:anywhere;min-width:0}
.cw-cash-form .cw-files label input[type="checkbox"]{width:auto;flex:none}
.cw-cash-form .cw-cash-extra{margin:10px 0 0;border-top:1px solid #e5ebf3}
.cw-cash-form .cw-cash-extra>summary{padding:8px 0;background:transparent;font-size:12px;color:#60758d}
.cw-cash-form .cw-cash-extra>.cw-form{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:3px}
.cw-cash-form>.cw-footer{position:static;flex:none;justify-content:flex-end;margin:0;padding:10px 18px;background:#fff;border-top:1px solid #e2e8f0}
.cw-cash-form>.cw-footer button{min-width:78px;padding:7px 12px}
.cw-modal[data-workflow-kind="cashEntries"] .cw-detail{gap:11px 18px}.cw-modal[data-workflow-kind="cashEntries"] .cw-detail dt{margin-bottom:3px}.cw-modal[data-workflow-kind="cashEntries"] .cw-detail dd{font-size:13px;line-height:1.5}
}

@media(min-width:769px){
.cw-cash-form .cw-field{margin:0;line-height:1.35}.cw-cash-form .cw-form{gap:9px 14px}
.cw-cash-form .cw-field input,.cw-cash-form .cw-field select,.cw-cash-form .cw-field textarea{margin:0}
.cw-cash-form .cw-files label{margin:0}.cw-cash-form .cw-files small{font-weight:400;line-height:1.4}
.cw-cash-form .cw-cash-extra [data-settlement-guidance]{margin:6px 0 0;font-size:11px;line-height:1.45}
.cw-cash-form [data-settlement-guidance][hidden]{display:none!important}
.cw-cash-form>.cw-actions{padding-top:8px}.cw-cash-form>.cw-actions button{padding:5px 10px}
}

@media(min-width:769px){
.cw-cash-form{max-height:calc(100vh - 116px)}
.cw-cash-form>.cw-footer button,.cw-cash-form>.cw-actions button{margin:0}
.cw-modal[data-workflow-kind="cashEntries"] .cw-header:has(~.cw-body .cw-cash-form) button{margin:0}
}

/* Purchase-exception editing only: readable document groups and a fixed save row. */
@media (min-width:769px) {
  body.pc-ui-preview .cw-modal[data-workflow-kind="purchaseExceptions"]:has(.cw-purchase-exception-form) {padding:16px}
  body.pc-ui-preview .cw-modal[data-workflow-kind="purchaseExceptions"]:has(.cw-purchase-exception-form) .cw-shell {width:min(1080px,100%);max-height:calc(100vh - 32px)}
  body.pc-ui-preview .cw-modal[data-workflow-kind="purchaseExceptions"]:has(.cw-purchase-exception-form) .cw-header {flex:none;padding:10px 18px;gap:12px}
  body.pc-ui-preview .cw-modal[data-workflow-kind="purchaseExceptions"]:has(.cw-purchase-exception-form) .cw-header h2 {margin:1px 0 0;font-size:16px;line-height:1.4;font-weight:600}
  body.pc-ui-preview .cw-modal[data-workflow-kind="purchaseExceptions"]:has(.cw-purchase-exception-form) .cw-kicker {font-size:11px;line-height:1.4;letter-spacing:0}
  body.pc-ui-preview .cw-modal[data-workflow-kind="purchaseExceptions"]:has(.cw-purchase-exception-form) .cw-header button {margin:0;min-height:30px;padding:4px 10px;font-size:12px}
  body.pc-ui-preview .cw-modal[data-workflow-kind="purchaseExceptions"]:has(.cw-purchase-exception-form) .cw-message {flex:none;font-size:12px;line-height:1.5}
  body.pc-ui-preview .cw-modal[data-workflow-kind="purchaseExceptions"]:has(.cw-purchase-exception-form) .cw-message:not(:empty) {padding:7px 18px}
  body.pc-ui-preview .cw-modal[data-workflow-kind="purchaseExceptions"]:has(.cw-purchase-exception-form) .cw-body {display:flex;flex:1 1 auto;min-height:0;padding:0;overflow:hidden}
  body.pc-ui-preview .cw-purchase-exception-form {display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;max-width:100%;margin:0;color:#243b53;font-size:13px;line-height:1.5}
  body.pc-ui-preview .cw-purchase-exception-form * {box-sizing:border-box}
  body.pc-ui-preview .cw-purchase-exception-form>.cw-actions {flex:none;gap:6px 12px;margin:0;padding:9px 18px 0}
  body.pc-ui-preview .cw-purchase-exception-form>.cw-actions button {margin:0;min-height:28px;padding:4px 10px;font-size:12px;line-height:1.5}
  body.pc-ui-preview .cw-purchase-exception-form>.cw-actions>.cw-muted {font-size:12px;line-height:1.5;font-weight:400}
  body.pc-ui-preview .cw-purchase-exception-scroll {flex:1 1 auto;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:10px 18px 12px}
  body.pc-ui-preview .cw-purchase-exception-section {min-width:0;margin:0;padding:10px 0 0;border:0;border-top:1px solid #e2e8f0;background:transparent}
  body.pc-ui-preview .cw-purchase-exception-section:first-child {padding-top:0;border-top:0}
  body.pc-ui-preview .cw-purchase-exception-section+.cw-purchase-exception-section {margin-top:12px}
  body.pc-ui-preview .cw-purchase-exception-section>h3 {margin:0 0 8px;color:#315475;font-size:13px;font-weight:600;line-height:1.5}
  body.pc-ui-preview .cw-purchase-exception-form .cw-purchase-exception-grid {grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 14px;align-items:start;min-width:0;margin:0}
  body.pc-ui-preview .cw-purchase-exception-form .cw-field {grid-column:span 2;min-width:0;margin:0;gap:4px;font-size:13px;font-weight:400;line-height:1.5}
  body.pc-ui-preview .cw-purchase-exception-form .cw-field>span {color:#52667e;font-size:13px;font-weight:500;line-height:1.5}
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="materialId"],
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="fixedAssetId"],
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="reason"],
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="returnEvidence"] {grid-column:span 3}
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="files"] {grid-column:span 4}
  body.pc-ui-preview .cw-purchase-exception-form .cw-field input,
  body.pc-ui-preview .cw-purchase-exception-form .cw-field select,
  body.pc-ui-preview .cw-purchase-exception-form .cw-field textarea {max-width:100%;min-width:0;margin:0;min-height:34px;padding:6px 9px;border-radius:5px;font-size:13px;font-weight:400;line-height:1.4}
  body.pc-ui-preview .cw-purchase-exception-form .cw-field textarea {height:60px;min-height:60px;resize:vertical}
  body.pc-ui-preview .cw-purchase-exception-form .cw-field .cw-muted,
  body.pc-ui-preview .cw-purchase-exception-form .cw-files small {margin:0;color:#6b7c91;font-size:12px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
  body.pc-ui-preview .cw-purchase-exception-help {grid-column:1/-1;min-width:0;margin:0;padding:7px 10px;border-left:2px solid #b7cbe3;border-radius:0;background:#f6f8fb;color:#5d718a;font-size:12px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
  body.pc-ui-preview .cw-purchase-exception-help p {margin:0}
  body.pc-ui-preview .cw-purchase-exception-help p+p {margin-top:3px}
  body.pc-ui-preview .cw-purchase-exception-help strong {font-size:12px;font-weight:600}
  body.pc-ui-preview .cw-purchase-exception-form .cw-empty-ref {min-width:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
  body.pc-ui-preview .cw-purchase-exception-form .cw-empty-ref button {min-height:28px;margin:4px 0 0;padding:4px 8px;font-size:12px}
  body.pc-ui-preview .cw-purchase-exception-form .cw-files {min-width:0;gap:4px}
  body.pc-ui-preview .cw-purchase-exception-form .cw-files label {min-width:0;margin:0;gap:6px;font-size:12px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
  body.pc-ui-preview .cw-purchase-exception-form .cw-files input[type="checkbox"] {flex:none;width:15px;min-height:15px;height:15px;padding:0}
  body.pc-ui-preview .cw-purchase-exception-form .cw-files input[type="file"] {padding:4px 7px;font-size:12px}
  body.pc-ui-preview .cw-purchase-exception-form>.cw-footer {position:static;flex:none;justify-content:flex-end;align-items:center;gap:8px;margin:0;padding:10px 18px;border-top:1px solid #e2e8f0;background:#fff}
  body.pc-ui-preview .cw-purchase-exception-form>.cw-footer>.cw-purchase-exception-footer-note {min-width:0;margin-right:auto;color:#6b7c91;font-size:12px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
  body.pc-ui-preview .cw-purchase-exception-form>.cw-footer button {margin:0;min-width:78px;min-height:32px;padding:5px 12px;font-size:13px;line-height:1.5}
}
@media (min-width:769px) and (max-width:1000px) {
  body.pc-ui-preview .cw-purchase-exception-form .cw-purchase-exception-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  body.pc-ui-preview .cw-purchase-exception-form .cw-field {grid-column:auto}
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="supplierId"],
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="files"] {grid-column:1/-1}
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="materialId"],
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="fixedAssetId"],
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="reason"],
  body.pc-ui-preview .cw-purchase-exception-form [data-exception-field="returnEvidence"] {grid-column:auto}
}

@media(max-width:768px){body .cw-modal .cw-list-actions{flex-wrap:wrap;gap:8px;align-items:center;overflow:visible}body .cw-modal .cw-list-actions>button{width:auto}}

/* 转正工资参考沿用工资表单，不改其他流程。 */
.cw-modal .cw-salary-reviews{margin:12px 0;padding:10px 12px;border:1px solid #d6e3f3;border-radius:6px;background:#f8fbff}
.cw-modal .cw-salary-reviews h4{margin:0 0 6px;font-size:14px}
.cw-modal .cw-salary-reviews p{margin:4px 0 8px}
.cw-modal .cw-salary-review-check{display:flex;align-items:flex-start;gap:8px;margin:10px 0 0;line-height:1.6}
.cw-modal .cw-salary-review-check input[type="checkbox"]{flex:none;width:16px;height:16px;min-height:16px;margin:4px 0 0;padding:0}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-editor>.cw-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-tools p{flex:1 1 360px;color:#64748b;font-size:12px;line-height:1.5;margin:0}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-items{padding:10px 12px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-items legend span{font-weight:400;color:#64748b}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line{grid-template-columns:minmax(180px,1.45fr) minmax(160px,.9fr) minmax(180px,1.3fr) auto;align-items:end;gap:8px;padding:9px 0;margin:0}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line:last-child{border-bottom:0}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line .cw-field{gap:4px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line .cw-field>span{font-size:11px;color:#64748b;font-weight:400}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line input,.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line select{padding:7px 8px;height:34px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-item-name{align-self:center;min-width:0;font-size:13px;overflow-wrap:anywhere}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-item-name small{display:block;color:#718096;font-size:11px;margin-top:4px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-empty{padding:22px 12px;text-align:center;color:#718096;font-size:13px;background:#f8fafc;border-radius:6px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-empty[hidden]{display:none}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-extra{margin:0;border:1px solid #e2e8f0;border-radius:6px;overflow:hidden}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-extra>summary{padding:9px 12px;font-size:13px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-extra>.cw-form{padding:12px;gap:10px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-progress{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:1px solid #dce6f2;background:#f7faff;border-radius:8px;padding:12px;margin:10px 0 14px;font-size:13px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-progress>div{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-progress>p{flex-basis:100%;margin:0}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-person{padding:5px 9px;background:#fff;border:1px solid #d7e3f1;border-radius:5px;color:#34516d}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-person.is-accepted{color:#067664;background:#edf9f5;border-color:#c1e4da}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-person small{display:block;font-size:10px;margin-top:3px}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-detail-table th:first-child{width:45%}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-detail-table th:nth-child(2){width:20%}
.cw-modal[data-workflow-kind="offboarding"] .cw-handover-action>.cw-form{margin-top:14px}
@media(max-width:900px){.cw-modal[data-workflow-kind="offboarding"] .cw-handover-editor>.cw-form{grid-template-columns:repeat(2,minmax(0,1fr))}.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.cw-modal[data-workflow-kind="offboarding"] .cw-handover-item-name{grid-column:1/-1}}
@media(max-width:560px){.cw-modal[data-workflow-kind="offboarding"] .cw-handover-editor>.cw-form{grid-template-columns:minmax(0,1fr)}.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line{grid-template-columns:minmax(0,1fr) auto}.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line>.cw-field:nth-last-child(2){grid-column:1}.cw-modal[data-workflow-kind="offboarding"] .cw-handover-line>button{grid-column:2;grid-row:3}.cw-modal[data-workflow-kind="offboarding"] .cw-handover-tools p{flex-basis:100%}.cw-modal[data-workflow-kind="offboarding"] .cw-handover-tools button{flex:1}.cw-modal[data-workflow-kind="offboarding"] .cw-handover-detail-table th:first-child{width:40%}.cw-modal[data-workflow-kind="offboarding"] .cw-handover-detail-table th:nth-child(2){width:28%}}
.cw-modal .cw-filters [data-cw-action="clear-filters"]{white-space:nowrap}
/* Backup selection and preparation stay inside the existing company dialog. */
@media(min-width:769px){
  .cw-backup-modal .cw-shell{width:min(980px,100%);height:min(720px,calc(100vh - 48px))}
  .cw-backup-modal .cw-body{flex:1;min-height:0;padding:16px 20px;outline:none}
  .cw-backup-modal .cw-body[data-backup-page="list"]{display:flex;flex-direction:column;gap:12px}
  .cw-backup-modal .cw-backup-intro p{margin:0 0 3px;line-height:1.65}
  .cw-backup-modal .cw-backup-tools{margin:0;gap:8px}
  .cw-backup-modal .cw-backup-tools>span{flex:1;min-width:220px}
  .cw-backup-modal .cw-backup-list{flex:1;min-height:90px;overflow:auto;border:1px solid #e0e7ef;border-radius:7px}
  .cw-backup-modal .cw-backup-list table{min-width:680px;table-layout:fixed}
  .cw-backup-modal .cw-backup-list th{position:sticky;top:0;z-index:1;white-space:nowrap}
  .cw-backup-modal .cw-backup-list th:nth-child(1){width:26%}
  .cw-backup-modal .cw-backup-list th:nth-child(2){width:15%}
  .cw-backup-modal .cw-backup-list th:nth-child(4){width:20%}
  .cw-backup-modal .cw-backup-list td{vertical-align:middle;padding:10px}
  .cw-backup-modal .cw-backup-list button{white-space:nowrap}
  .cw-backup-modal .cw-backup-selected h3{margin:6px 0 12px;font-size:18px}
  .cw-backup-modal .cw-detail{gap:12px;margin:12px 0}
  .cw-backup-modal .cw-detail dd{font-size:14px;line-height:1.65}
  .cw-backup-modal .cw-backup-file{margin:12px 0}
  .cw-backup-modal .cw-backup-file summary{padding:9px 12px;font-size:12px;color:#526b83}
  .cw-backup-modal .cw-backup-file p{margin:9px 12px;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
  .cw-backup-modal .cw-backup-effect{border:1px solid #cadcf0;background:#f3f8fe;padding:12px 14px;border-radius:7px;margin:12px 0}
  .cw-backup-modal .cw-backup-effect h4{margin:0 0 5px;font-size:14px}
  .cw-backup-modal .cw-backup-effect p{margin:0;line-height:1.65;font-size:13px}
  .cw-backup-modal .cw-backup-pending,.cw-backup-modal .cw-backup-result{flex:none;border:1px solid #e8d3a3;background:#fff9ed;border-radius:7px;padding:12px 14px;font-size:13px;line-height:1.6}
  .cw-backup-modal .cw-backup-result{border-color:#bfdcd1;background:#f1faf5;margin:10px 0}
  .cw-backup-modal .cw-backup-pending p,.cw-backup-modal .cw-backup-result p{margin:4px 0 8px}
  .cw-backup-modal .cw-backup-pending button+button{margin-left:8px}
  .cw-backup-modal .cw-backup-footer{position:sticky;bottom:-16px;display:flex;gap:8px;flex-wrap:wrap;background:#fff;border-top:1px solid #e0e7ef;padding:12px 20px;margin:16px -20px -16px}
  .cw-backup-modal [data-cw-action="backup-create"],.cw-backup-modal [data-cw-action="backup-restore"],.cw-backup-modal .cw-backup-primary{background:#285fa8;color:white;border-color:#285fa8}
}
@media(min-width:769px){
  .cw-filters:has([data-cw-action="clear-filters"]){grid-template-columns:minmax(0,1fr) 180px auto auto}
  .cw-finance-context .cw-filters:has([name="reconciliationMonth"]):has([data-cw-action="clear-filters"]){grid-template-columns:minmax(0,1fr) 150px 170px auto auto}
}
