/* Stable compact staff layout matching the supplied loan workspace. */
:is(.admin-work-mode,.lo-admin-mode) .sf-pipeline-title{min-height:40px;margin-bottom:12px;align-items:center}:is(.admin-work-mode,.lo-admin-mode) .sf-toolbar{--sf-toolbar-surface:#f5f7fa;display:flex;justify-content:flex-end;gap:14px;margin:0 0 0 auto;flex-wrap:wrap}.sf-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:30px;padding:5px 10px;background:transparent;border:1px solid currentColor;border-radius:0;font:inherit;font-family:'Poppins',Arial,sans-serif;font-size:12px;font-weight:400;line-height:18px;white-space:nowrap;box-shadow:none}.sf-toolbar svg{width:14px;height:14px;fill:currentColor;flex:0 0 14px;display:block}.sf-toolbar .sf-create,.sf-toolbar .sf-import{color:#409c66}.sf-toolbar .sf-copy{color:#353ccd}.sf-toolbar .sf-delete{color:#fa525b}.sf-toolbar button:hover{background:#e9edf5}.sf-toolbar button:focus-visible{outline:2px solid #5788dc;outline-offset:3px}.sf-pipeline-utilities{display:flex;justify-content:flex-end;gap:8px;margin:0 0 10px}
:is(.admin-work-mode,.lo-admin-mode) #drawer{border-radius:0;width:min(520px,100vw);font-size:12px;padding:0}.sf-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;border-bottom:1px solid #ddd}.sf-drawer-head button{font-size:20px}.sf-drawer-actions{display:flex;gap:8px;padding:12px 18px;border-bottom:1px solid #eee}.sf-drawer-label{display:flex;flex-direction:column;gap:8px;padding:18px;font-size:12px}.sf-drawer-label select,.sf-drawer-label input{width:100%}.sf-create-page{background:white;min-height:75vh;padding:12px}.sf-create-page .adm-title{border-bottom:1px solid #eee;padding-bottom:12px}.sf-create-columns{display:grid;grid-template-columns:1fr 1fr;gap:6%;padding:15px 3%}.sf-create-columns section{margin-bottom:24px}.sf-create-columns h2{font-size:13px;background:#f3f3f4;padding:8px;margin:0 0 14px}.sf-create-columns label,.sf-edit-grid label{display:grid;grid-template-columns:40% 1fr;align-items:center;gap:8px;font-size:12px;padding:7px 4px;color:#6e7079}.sf-create-columns label input,.sf-create-columns label select{width:100%}.sf-required{display:contents;color:#b13737}.sf-create-columns .sf-checkbox,.sf-checkbox{display:flex;gap:9px;align-items:center;font-size:12px;padding:12px}.sf-checkbox input{width:auto;min-height:0}.sf-edit-grid{display:grid;gap:7px;margin:20px 0}.sf-edit-grid label{grid-template-columns:35% 1fr}
body.staff-file-mode #main{padding:0}.sf-summary{display:flex;gap:8px;justify-content:space-between;padding:9px 12px;background:#f7f9fc;align-items:center;min-height:46px;border-bottom:1px solid #eef0f3}.sf-summary-fields{display:flex;gap:4px;align-items:center;flex-wrap:wrap;min-width:0}.sf-summary-fields>span,.sf-summary-fields>button{padding:3px 6px;font-size:11px;background:white;line-height:1.4}.sf-summary-fields .sf-stage{background:#dce5e9}.sf-summary-fields .sf-purpose{background:#7d9bd0;color:white}.sf-summary .sf-text-link{color:#4a86da;background:transparent;padding-left:0}.sf-summary .sf-loan-picker{max-width:215px}.sf-summary .sf-loan-picker select{font-size:11px;min-height:25px;width:100%;font-weight:600;padding:3px 5px;border:0;background:#eee}.sf-summary-actions{display:flex;gap:4px;flex-shrink:0;flex-wrap:wrap}.sf-summary-actions button{border:1px solid #999cc8;color:#5559b4;background:transparent;padding:5px 8px;font-size:11px;white-space:nowrap}.sf-layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100dvh - 110px);background:#fff}.sf-menu{background:#f0f0f1;border-right:1px solid #dfe3e9}.sf-menu-tabs{display:flex;padding:3px;gap:3px;border-bottom:1px solid #ddd}.sf-menu-tabs button{flex:1;font-size:12px;border:1px solid #aaa;background:#f4f4f4;padding:9px 3px;white-space:nowrap}.sf-menu-tabs button.active{color:#5689dd;border-color:#5689dd}.sf-menu nav{display:flex;flex-direction:column;padding:3px 0;position:sticky;top:64px}.sf-menu nav button{display:flex;align-items:center;gap:9px;padding:8px 12px;font-size:12px;font-weight:400;text-align:left;color:#676971;border-left:3px solid transparent;min-height:31px}.sf-menu nav button.active{background:#d9e3f8;border-left-color:#4a86e1;color:#4a86e1}.sf-menu nav button:hover{background:#e1e7f2}.sf-menu nav button:nth-child(6),.sf-menu nav button:nth-child(8),.sf-menu nav button:nth-child(9){border-top:1px solid #dcdde1}.sf-nav-icon{font-size:17px;width:18px;text-align:center;line-height:1}.sf-plus{margin-left:auto;color:#4c9a65;border:1px solid #7bb890;font-size:12px;line-height:1.1}.sf-content{padding:12px 25px 35px;min-width:0}.sf-content-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}.sf-content-title h1{font-size:13px;font-weight:600;margin:0}.sf-content-title .btn{min-height:23px;padding:2px 9px;color:#4d85db;border-color:#8aacf0;font-size:11px}.sf-anchor-tabs{display:flex;gap:3px;border-bottom:1px solid #ddd;padding-bottom:0;margin-bottom:14px}.sf-anchor-tabs button{border:1px solid #888;background:white;padding:10px 13px;font-size:12px;margin-bottom:-1px}.sf-section-bar{background:#f0f0f0;font-size:12px!important;font-weight:600;margin:14px 0 9px!important;padding:6px 8px;scroll-margin-top:75px;color:#55585e}.sf-loan-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px}.sf-facts{display:grid;grid-template-columns:1fr 1fr;column-gap:22px;margin:0;padding:0 12px}.sf-facts>div{padding:7px 0;min-width:0}.sf-facts>div:has(dt:empty){visibility:hidden}.sf-facts dt{font-size:12px;color:#88898e;line-height:1.5}.sf-facts dd{margin:2px 0 0;color:#4f5565;font-weight:600;font-size:12px;overflow-wrap:anywhere}.sf-table-section{margin-bottom:14px}.sf-table-section h3{font-size:12px!important;background:#f0f0f0;border:1px solid #e0e1e5;padding:6px 8px;margin:0!important;font-weight:600}.sf-table-section table{width:100%;border-collapse:collapse;font-size:12px}.sf-table-section th,.sf-table-section td{font-size:12px;text-transform:none;letter-spacing:0;font-weight:400;background:white;border:1px solid #e1e1e5;padding:8px;line-height:1.4}.sf-table-section th{width:70%;text-align:left}.sf-table-section td{text-align:right}.sf-table-section .sf-total>*{background:#f6f8fb;color:#3f444c;font-weight:600}.sf-gauges{display:flex;justify-content:space-around;gap:18px;padding:18px 10px 5px}.sf-gauge{width:94px;aspect-ratio:1;flex:0 0 94px;background:conic-gradient(#c83a3a var(--gauge),#dedfe3 0);border-radius:50%;padding:6px}.sf-gauge>div{background:#fff;border-radius:50%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.sf-gauge strong{font-size:19px;font-weight:400;line-height:1.4}.sf-gauge small{font-size:10px}.sf-fine{font-size:11px;line-height:1.7;color:#92959c;margin:10px 12px}.sf-text-link{font-size:12px;color:#4e87d8}.sf-shortcuts,.sf-action-links{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.staff-file-mode #lo-file-content>h3{font-size:14px}.staff-file-mode .lo-facts,.staff-file-mode .lo-task,.staff-file-mode .lo-note,.staff-file-mode .lo-work-forms form{border-radius:0}.staff-file-mode .lo-inline-form,.staff-file-mode .lo-work-forms,.staff-file-mode .pos-upload-form{font-size:12px}.staff-file-mode .urla-entry{font-size:12px}.staff-file-mode .lo-status{border-radius:0}
@media(max-width:1600px){.sf-summary{flex-wrap:wrap}.sf-summary-actions{margin-left:auto}.sf-layout{grid-template-columns:210px minmax(0,1fr)}.sf-content{padding:12px 18px 25px}.sf-loan-columns{gap:20px}.sf-summary-fields>span,.sf-summary-fields>button{font-size:11px}}@media(max-width:1000px){.sf-loan-columns{grid-template-columns:1fr}.sf-layout{grid-template-columns:190px minmax(0,1fr)}.sf-create-columns{gap:20px;padding:10px}.sf-create-columns label{grid-template-columns:1fr}.sf-summary-fields{width:100%}}@media(max-width:650px){.sf-layout{grid-template-columns:1fr}.sf-menu nav{display:flex;flex-direction:row;overflow:auto;position:static}.sf-menu nav button{flex-shrink:0;border-left:0;border-bottom:3px solid transparent;padding:9px}.sf-menu nav button.active{border-bottom-color:#4a86e1}.sf-menu-tabs{display:none}.sf-content{padding:12px}.sf-anchor-tabs{overflow:auto}.sf-anchor-tabs button{white-space:nowrap;padding:9px}.sf-create-columns{grid-template-columns:1fr}.sf-create-columns label{grid-template-columns:40% 1fr}.sf-create-page .adm-title{flex-wrap:wrap}.sf-toolbar{order:3;width:100%;justify-content:flex-end}.sf-summary-actions{margin-left:0}.sf-gauge{width:80px;flex-basis:80px}.sf-gauge strong{font-size:16px}.sf-edit-grid label{grid-template-columns:1fr}.sf-summary .sf-loan-picker{max-width:200px}}
.pl-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.pl-grid label,.pl-grid input,.pl-grid textarea,#pl-content form>label{font-size:12px;display:flex;flex-direction:column;gap:7px}.pl-grid input,.pl-grid textarea,#pl-content form>label input{width:100%;border:1px solid #d6dbe6;padding:8px;min-height:32px;background:white}.pl-wide{grid-column:1/-1}.pl-checks{display:grid;gap:10px;margin:18px 0}.pl-checks label{font-size:12px;display:flex;align-items:flex-start;gap:8px;line-height:1.7}.pl-checks input{width:auto;min-height:0;margin-top:4px}.pl-checks+label{margin:15px 0}#pl-content .adm-table{margin:20px 0;font-size:12px}#pl-content .btn{margin:5px 7px 5px 0}@media(max-width:600px){.pl-grid{grid-template-columns:1fr}}

.sf-down-payment-note{font-size:11px;line-height:1.8;color:#7e879a;padding:6px 4px 10px}.sf-edit-grid .sf-down-payment-note{grid-column:1/-1}:is(.admin-work-mode,.lo-admin-mode) input[readonly]{background:#f5f7fa;color:#676f80}

/* Borrower and financial review use the same compact presentation for both staff roles. */
.sf-borrower-person{display:inline-block;border:1px solid #5b8edc;border-bottom:2px solid #5b8edc;color:#4b81cc;padding:9px 18px;font-size:12px;font-weight:600}.sf-review-tabs{display:flex;border-bottom:1px solid #e1e4e9;gap:22px;margin:14px 0 4px}.sf-review-tabs button{padding:8px 0;font:inherit;font-size:12px;color:#737a87;border-bottom:2px solid transparent}.sf-review-tabs button.active{color:#4e86d7;border-color:#4e86d7}.sf-review-tabs button:focus-visible,.sf-financial-anchors a:focus-visible{outline:2px solid #5788dc;outline-offset:3px}.sf-borrower-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.sf-review-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin:10px 12px 18px}.sf-review-facts dt{color:#90939a;font-size:12px;line-height:1.6}.sf-review-facts dd{font-size:12px;font-weight:500;color:#515866;margin:3px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.sf-answer{display:flex;align-items:start;justify-content:space-between;gap:22px;padding:11px 10px;font-size:12px;border-bottom:1px solid #f0f1f4;line-height:1.7}.sf-answer-options{display:flex;gap:15px;flex-shrink:0;color:#64728b}.sf-answer-options small{font-size:10px;color:#91959f}.sf-data-scroll{width:100%;overflow:auto}.sf-data-table{width:100%;border-collapse:collapse;font-size:12px}.sf-data-table th,.sf-data-table td{border:1px solid #e4e6eb;padding:7px 10px;font-size:12px;letter-spacing:0;text-transform:none;text-align:left;line-height:1.5;overflow-wrap:anywhere}.sf-data-table th{background:#f4f4f5;font-weight:500;color:#7b7f88}.sf-data-table td{font-weight:400;color:#606773}.sf-financial-anchors{display:flex;gap:12px;flex-wrap:wrap;border-bottom:1px solid #e7e9ed;padding:0 0 12px}.sf-financial-anchors a{font-size:12px;color:#5087dd;text-decoration:underline}.sf-financial-block{scroll-margin-top:80px;border-bottom:10px solid #f2f4f8;padding:16px 0 24px}.sf-financial-block>h2{font-size:13px!important;margin:0 0 18px!important;display:flex;gap:20px;align-items:center}.sf-financial-block>h2>span{font-size:12px;color:#5087dd;border-left:1px solid #e1e4eb;padding-left:18px}.sf-financial-block .btn{font-size:12px}.sf-borrower-tools{float:right;display:flex;gap:8px}.sf-borrower-tools .btn{font-size:11px;padding:3px 9px;min-height:25px}@media(max-width:1200px){.sf-borrower-columns{gap:15px;grid-template-columns:1fr 1fr}.sf-borrower-columns>div:last-child{grid-column:1/-1}}@media(max-width:700px){.sf-borrower-columns{display:block}.sf-answer{flex-wrap:wrap;gap:7px}.sf-answer-options{flex-wrap:wrap}.sf-review-facts{gap:12px}.sf-review-tabs{gap:15px}.sf-borrower-tools{float:none;margin-bottom:10px}}
