/* BridgeFin reference direction: flat bordered cards, compact typography and a calm workspace. */
/* Credit review follows the same card spacing and keeps long audit references contained. */
body.bf-portal-page .bf-credit-heading .bf-section-heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
body.bf-portal-page .bf-credit-heading .bf-button-ghost{color:#2f3136!important;background:#fff!important;border:1px solid #cbd0d6!important}
body.bf-portal-page .bf-credit-heading .bf-button-ghost:hover,body.bf-portal-page .bf-credit-heading .bf-button-ghost:focus{color:#a71720!important;border-color:#d61f26!important}
body.bf-portal-page .bf-credit-context{grid-template-columns:minmax(0,1fr);min-width:0;margin-bottom:16px}
body.bf-portal-page .bf-credit-context>.bf-subcard{min-width:0;box-sizing:border-box;padding:16px!important}
body.bf-portal-page .bf-credit-context p{overflow-wrap:anywhere}
body.bf-portal-page .bf-credit-review-hold,body.bf-portal-page .bf-credit-packet{margin-bottom:16px}
body.bf-portal-page .bf-credit-packet>.bf-field{display:flex;flex-direction:column;margin-top:16px;gap:7px}
body.bf-portal-page .bf-credit-packet>.bf-field p{margin:0;overflow-wrap:anywhere}
body.bf-portal-page .bf-credit-packet>.bf-credit-transition-form{margin-top:12px}
@media(min-width:768px){body.bf-portal-page .bf-credit-context{grid-template-columns:repeat(3,minmax(0,1fr))}}
body.bf-portal-page .bf-portal-section-heading>.bf-button-ghost{color:#2f3136!important;background:#fff!important;border:1px solid #cbd0d6!important}
body.bf-portal-page .bf-portal-section-heading>.bf-button-ghost:hover,body.bf-portal-page .bf-portal-section-heading>.bf-button-ghost:focus{color:#a71720!important;border-color:#d61f26!important}
body.bf-portal-page{--bf-red:#d61f26;--bf-signal:#ef2b35;--bf-charcoal:#2f3136;--bf-steel:#6c7078;--bf-light:#e7e8eb;--bf-pale:#f7f8fa;--bf-border:#e3e5e9;--bf-radius:12px;background:#f7f8fa;color:#2f3136;font-weight:400}
body.bf-portal-page [hidden]{display:none!important}
body.bf-portal-page :where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #b71920!important;outline-offset:3px}
body.bf-portal-page .bf-portal-shell{grid-template-columns:minmax(0,1fr);font-family:Montserrat,Arial,sans-serif;font-size:13px}
body.bf-portal-page .bf-portal-sidebar{background:#23262b;box-shadow:none;width:min(248px,86vw)}
body.bf-portal-page .bf-portal-sidebar-top{padding:24px 12px}
body.bf-portal-page .bf-nav-close{position:absolute;top:22px;right:6px;color:#d9dde3}
body.bf-portal-page .bf-portal-sidebar .bf-nav-close:hover{background:#3a3e45;color:#fff}
@media(min-width:1024px){body.bf-portal-page .bf-nav-close{display:none}}
@media(max-width:1023px){body.bf-portal-page .bf-portal-sidebar-brand img{max-width:158px}}
body.bf-portal-page .bf-portal-sidebar-brand{padding:0 10px;min-height:44px}
body.bf-portal-page .bf-portal-sidebar-brand img{max-width:174px;object-fit:contain}
body.bf-portal-page .bf-portal-sidebar-label{margin:32px 14px 12px;font-size:9px;letter-spacing:.12em;font-weight:500;color:#a4a9b1}
body.bf-portal-page .bf-portal-nav{gap:5px;padding:0}
body.bf-portal-page .bf-portal-nav-link{padding:12px 14px;gap:12px;border-radius:7px;font-size:12px;font-weight:500;color:#cbd0d7!important;min-height:44px}
body.bf-portal-page .bf-portal-nav-link svg{width:17px;height:17px;flex:0 0 17px;stroke-width:1.5}
body.bf-portal-page .bf-portal-nav-link.is-active{background:#3a3034;box-shadow:inset 2px 0 #ef2b35;color:#fff!important}
body.bf-portal-page .bf-portal-nav-link.is-active svg{color:#ff777e}
body.bf-portal-page .bf-portal-sidebar-footer{padding:14px 12px}
body.bf-portal-page .bf-sidebar-profile{display:flex;align-items:center;gap:10px;min-height:52px;color:#fff;text-decoration:none;padding:6px;min-width:0}
body.bf-portal-page .bf-sidebar-profile>span:nth-child(2){min-width:0;flex:1}
body.bf-portal-page .bf-sidebar-profile strong{display:block;font-size:11px;font-weight:600;overflow-wrap:anywhere}
body.bf-portal-page .bf-sidebar-profile small{display:block;color:#b4b9c2;font-size:9px;margin-top:5px}
body.bf-portal-page .bf-sidebar-profile>svg{width:15px;flex:0 0 15px;color:#a4a9b1}
body.bf-portal-page .bf-portal-avatar{flex:0 0 34px;background:#46404a;color:#fff;font-size:12px}
body.bf-portal-page .bf-portal-header{padding:10px 16px;min-height:65px;gap:10px;background:#fff;box-shadow:none;border-bottom:1px solid var(--bf-border)}
body.bf-portal-page .bf-portal-menu-toggle{justify-content:center;min-width:44px;min-height:44px;padding:12px;font-weight:500;border:0;background:transparent}
body.bf-portal-page .bf-portal-menu-toggle>span:last-child{display:none}
body.bf-portal-page .bf-portal-mobile-brand{width:36px;height:36px;margin:0;flex:0 0 36px}
body.bf-portal-page .bf-portal-mobile-brand .bf-mobile-brand-full{display:none}
body.bf-portal-page .bf-portal-mobile-brand .bf-mobile-brand-icon{display:block!important;width:36px;height:36px;object-fit:contain}
body.bf-portal-page .bf-portal-header-actions{display:flex;gap:4px;align-items:center;margin-left:auto}
body.bf-portal-page .bf-icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;min-height:44px;border:1px solid transparent;border-radius:8px;padding:10px;color:#555b65;background:transparent;cursor:pointer;font:500 12px Montserrat,Arial,sans-serif;text-decoration:none}
body.bf-portal-page .bf-icon-button svg{width:18px;height:18px;flex:0 0 18px;stroke-width:1.6}
body.bf-portal-page .bf-icon-button:hover{background:#f5f6f8;color:#b71920}
body.bf-portal-page .bf-icon-button:disabled{opacity:.5;cursor:not-allowed}
body.bf-portal-page .bf-page-finder{position:relative;display:none;width:min(320px,40vw)}
body.bf-portal-page .bf-page-finder summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:42px;border:1px solid var(--bf-border);border-radius:7px;padding:10px 12px;color:#6c7078;font-size:11px}
body.bf-portal-page .bf-page-finder summary::-webkit-details-marker{display:none}
body.bf-portal-page .bf-page-finder svg{width:16px;height:16px}
body.bf-portal-page .bf-page-finder kbd{margin-left:auto;font:11px Montserrat;border:1px solid #e7e8eb;padding:1px 5px;border-radius:3px;color:#737a84}
body.bf-portal-page .bf-page-finder-panel{position:absolute;z-index:200;top:50px;left:0;width:320px;padding:16px;background:#fff;border:1px solid var(--bf-border);border-radius:10px;box-shadow:0 8px 24px #2f31361a}
body.bf-portal-page .bf-page-finder-panel label{display:block;font-size:11px;font-weight:600;margin-bottom:8px}
body.bf-portal-page .bf-page-finder-panel input{width:100%;min-height:44px;padding:10px;border:1px solid #cbd0d6;border-radius:6px;font:12px Montserrat;color:#2f3136;background:#fff}
body.bf-portal-page .bf-page-finder-panel nav{display:grid;gap:4px;margin-top:10px;max-height:330px;overflow-y:auto}
body.bf-portal-page .bf-page-finder-panel nav a{display:flex;align-items:center;gap:10px;padding:12px;min-height:44px;border-radius:6px;text-decoration:none;color:#2f3136;font-size:12px}
body.bf-portal-page .bf-page-finder-panel nav a:hover{background:#fff2f3}
body.bf-portal-page .bf-portal-main{padding:24px 16px 20px;background:#f7f8fa;min-width:0}
body.bf-portal-page .bf-portal-main>*{max-width:1560px}
body.bf-portal-page .bf-portal-main h1{font-size:24px!important;line-height:1.35!important;font-weight:700!important;letter-spacing:-.025em!important;margin:0 0 6px!important}
body.bf-portal-page .bf-portal-main h2{font-size:15px!important;line-height:1.45!important;font-weight:600!important;letter-spacing:-.015em!important}
body.bf-portal-page .bf-portal-main h3{font-size:13px!important;line-height:1.5!important;font-weight:600!important}
body.bf-portal-page .bf-portal-main p{line-height:1.65;font-size:12px}
body.bf-portal-page .bf-portal-main .bf-eyebrow{display:none}
body.bf-portal-page .bf-panel,body.bf-portal-page .bf-stat-card,body.bf-portal-page .bf-document-summary>div,body.bf-portal-page .bf-subcard{border:1px solid var(--bf-border);border-radius:var(--bf-radius);box-shadow:none;padding:20px;background:#fff}
body.bf-portal-page .bf-panel-dark{background:#2f3136;border-color:#2f3136;color:#fff}
body.bf-portal-page .bf-panel-dark p,body.bf-portal-page .bf-panel-dark .bf-field small{color:#d9dde3}
body.bf-portal-page .bf-panel-mark{display:none}
body.bf-portal-page .bf-panel-heading{margin-bottom:14px;gap:12px}
body.bf-portal-page .bf-portal-section-heading{margin-bottom:20px;gap:16px}
body.bf-portal-page .bf-portal-section-heading p:not(.bf-eyebrow){font-size:12px;margin-top:6px;color:#626873}
body.bf-portal-page .bf-portal-columns,body.bf-portal-page .bf-document-grid{gap:16px}
body.bf-portal-page .bf-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.bf-portal-page .bf-stat-card{min-height:100px;padding:16px;gap:10px}
body.bf-portal-page .bf-stat-card strong{font-size:25px!important;font-weight:500;line-height:1.3}
body.bf-portal-page .bf-stat-icon{width:32px;height:32px;flex:0 0 32px;background:#fff2f3;box-shadow:none}
body.bf-portal-page .bf-stat-icon svg{width:18px;height:18px}
body.bf-portal-page .bf-stat-label{font-size:11px;font-weight:500}
body.bf-portal-page .bf-stat-card span{font-size:10px;line-height:1.5}
body.bf-portal-page .bf-button,body.bf-portal-page .bf-filter-bar button,body.bf-portal-page .bf-form-actions button{min-height:44px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px;border-radius:7px;font:600 11px/1.4 Montserrat,Arial,sans-serif;box-shadow:none;white-space:normal;max-width:100%}
body.bf-portal-page .bf-button svg{width:16px;height:16px;flex:0 0 16px}
body.bf-portal-page .bf-field,body.bf-portal-page .bf-filter-bar label{font-size:12px;font-weight:500;gap:7px;min-width:0}
body.bf-portal-page :where(.bf-field,.bf-filter-bar,.bf-requirement-action,.bf-contract-action,.bf-settlement-entry-action) :where(input:not([type=checkbox]):not([type=hidden]),select,textarea){min-height:44px!important;font-size:12px!important;font-weight:400;line-height:1.5!important;border-radius:7px!important}
body.bf-portal-page .bf-field small{font-size:11px;line-height:1.55;color:#626873}
body.bf-portal-page .bf-form-grid{gap:18px 16px}
body.bf-portal-page .bf-form-actions{gap:10px;align-items:center}
body.bf-portal-page .bf-filter-bar{gap:12px;align-items:flex-end}
body.bf-portal-page .bf-filter-bar label{flex:1 1 170px}
body.bf-portal-page .bf-table{border-collapse:collapse;margin-top:16px}
body.bf-portal-page .bf-table{width:100%}
body.bf-portal-page .bf-file-action-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:112px}
body.bf-portal-page .bf-file-action-links>.bf-table-subtext{flex-basis:100%}
body.bf-portal-page .bf-document-table .bf-file-name{overflow-wrap:anywhere;min-width:150px;max-width:280px}
body.bf-portal-page #file-actions,body.bf-portal-page #matter-files{scroll-margin-top:76px}
@media(max-width:767px){
body.bf-portal-page .bf-document-list{overflow:visible}
body.bf-portal-page .bf-document-table{display:block;min-width:0;margin-top:4px}
body.bf-portal-page .bf-document-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.bf-portal-page .bf-document-table tbody{display:grid;gap:12px}
body.bf-portal-page .bf-document-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:16px;border:1px solid #e7e8eb;border-radius:10px}
body.bf-portal-page .bf-document-list .bf-document-table td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere;font-size:12px}
body.bf-portal-page .bf-document-table td::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:10px;color:#626873}
body.bf-portal-page .bf-document-table .bf-file-name,body.bf-portal-page .bf-document-table .bf-file-row-actions{grid-column:1/-1;min-width:0;max-width:none}
body.bf-portal-page .bf-document-table .bf-file-name::before,body.bf-portal-page .bf-document-table .bf-file-row-actions::before{display:none}
body.bf-portal-page .bf-document-table .bf-file-name strong{font-size:13px}
body.bf-portal-page .bf-document-list .bf-document-table .bf-file-row-actions{border-top:1px solid #eceef1;padding-top:12px}
}
body.bf-portal-page .bf-portal-main .bf-button,body.bf-portal-page .bf-filter-bar button{border:1px solid #d61f26}
body.bf-portal-page .bf-table th{background:#f8f9fb;font-size:10px;letter-spacing:.04em;font-weight:500;color:#626873;padding:12px}
body.bf-portal-page .bf-table td{padding:14px 12px;border-bottom:1px solid #eceef1;font-size:11px;line-height:1.6}
body.bf-portal-page .bf-badge{padding:5px 8px;font-size:9px;font-weight:500;text-transform:none;letter-spacing:0;border-radius:5px;line-height:1.45}
body.bf-portal-page .bf-portal-notice{padding:12px 16px;border-radius:8px;margin-bottom:18px;font-size:12px}
body.bf-portal-page .bf-portal-notice-success{color:#245c46;background:#eff8f3}
body.bf-portal-page .bf-portal-footer{min-height:42px;padding:12px 24px;background:#f7f8fa;color:#6c7078;border-top:1px solid #e7e8eb;font-size:9px;gap:10px}
body.bf-portal-page .bf-portal-footer span{color:#6c7078;font-weight:400}
/* Overview */
body.bf-portal-page .bf-overview{display:grid;gap:16px}
body.bf-portal-page .bf-overview-heading-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
body.bf-portal-page .bf-overview-heading-actions .bf-subtle-link{min-height:36px}
body.bf-portal-page .bf-overview-workload{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.bf-portal-page .bf-workload-item{display:flex;flex-direction:column;gap:7px;min-width:0;padding:15px;border:1px solid #e7e8eb;border-radius:10px;background:#fafbfc;color:#2f3136;text-decoration:none}
body.bf-portal-page .bf-workload-item:hover{border-color:#d99196;background:#fff8f8}
body.bf-portal-page .bf-workload-item>span{font-size:10px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}
body.bf-portal-page .bf-workload-item>strong{font-size:23px;line-height:1.2;font-weight:600;color:#b81921}
body.bf-portal-page .bf-workload-item>small{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:9px;color:#626873;line-height:1.4}
body.bf-portal-page .bf-workload-item>small svg{height:14px;width:14px;flex:0 0 14px}
body.bf-portal-page .bf-overview-quiet{font-size:11px;color:#6c7078;margin:0}
body.bf-portal-page .bf-aged-list{list-style:none;padding:0;margin:0}
body.bf-portal-page .bf-aged-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:11px 0;border-top:1px solid #eceef1;font-size:10px}
body.bf-portal-page .bf-aged-list li:first-child{border-top:0}
body.bf-portal-page .bf-aged-list a{font-weight:600;color:#2f3136;text-decoration:none;overflow-wrap:anywhere}
body.bf-portal-page .bf-aged-list span{color:#6c7078}
body.bf-portal-page .bf-aged-list time{grid-column:1/-1;color:#6c7078;font-size:9px}
body.bf-portal-page .bf-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:3px}
body.bf-portal-page .bf-overview-heading p{margin:0;color:#6c7078;font-size:11px}
body.bf-portal-page .bf-overview-date{display:none;color:#6c7078;font-size:10px;white-space:nowrap}
body.bf-portal-page .bf-overview-banner{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:22px 24px;background:#d61f26;border:1px solid #d61f26;border-radius:12px;color:#fff}
body.bf-portal-page .bf-overview-banner>div:not(.bf-banner-pattern){position:relative;z-index:1}
body.bf-portal-page .bf-overview-banner span{font-size:11px;color:#fff}
body.bf-portal-page .bf-overview-banner strong{display:block;font-family:Montserrat,Arial,sans-serif;font-size:38px;line-height:1.2;font-weight:500;letter-spacing:-.04em;margin:7px 0}
body.bf-portal-page .bf-overview-banner p{color:#ffe4e6;font-size:11px;margin:0}
body.bf-portal-page .bf-banner-pattern{position:absolute;width:450px;height:450px;right:-160px;top:-100px;border:1px solid #ffffff2b;border-radius:36%;transform:rotate(35deg);box-shadow:0 0 0 32px #ffffff09,0 0 0 64px #ffffff0a,0 0 0 96px #ffffff09,0 0 0 128px #ffffff09}
body.bf-portal-page .bf-banner-actions{display:flex;gap:10px;flex-wrap:wrap}
body.bf-portal-page .bf-banner-primary{background:#fff;color:#ad171e!important;border:1px solid #fff}
body.bf-portal-page .bf-banner-secondary{background:#bd1b22;color:#fff!important;border:1px solid #ffffff73}
body.bf-portal-page .bf-banner-primary:hover{background:#fff3f3}
body.bf-portal-page .bf-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
body.bf-portal-page .bf-card-heading p{font-size:10px;margin:5px 0 0;color:#6c7078}
body.bf-portal-page .bf-small-label{font-size:10px;color:#6c7078}
body.bf-portal-page .bf-period-form{display:flex;align-items:center;gap:4px;flex:0 0 auto}
body.bf-portal-page .bf-period-form select{font:500 10px Montserrat;color:#4d535c;background:#fff;min-height:44px;border:1px solid #e3e5e9;border-radius:6px;padding:8px;max-width:120px}
body.bf-portal-page .bf-intake-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
body.bf-portal-page .bf-bars{display:grid;grid-template-columns:repeat(var(--bf-weeks),minmax(0,1fr));gap:12px;height:159px;align-items:end;border-bottom:1px solid #e7e8eb;background:repeating-linear-gradient(to top,transparent 0,transparent 43px,#f0f1f4 43px,#f0f1f4 44px);padding:0 6px}
body.bf-portal-page .bf-bar-column{display:flex;min-width:0;align-items:center;flex-direction:column;height:159px;position:relative}
body.bf-portal-page .bf-bar-value{font-size:10px;color:#626873;min-height:18px}
body.bf-portal-page .bf-bar-track{display:flex;align-items:end;justify-content:center;height:112px;width:100%;border-bottom:2px solid #dce0e5}
body.bf-portal-page .bf-bar-track i{display:block;width:min(100%,22px);background:#2f3136;border-radius:4px 4px 0 0}
body.bf-portal-page .bf-bar-column:last-child .bf-bar-track i{background:#d61f26}
body.bf-portal-page .bf-bar-label{font-size:9px;color:#6c7078;line-height:1.2;padding-top:12px;white-space:nowrap}
body.bf-portal-page .bf-chart-caption{font-size:9px!important;color:#6c7078;margin:13px 0 0}
body.bf-portal-page .bf-intake-total{display:grid;grid-template-columns:32px 1fr;column-gap:10px;align-content:center;border-top:1px solid #eceef1;padding-top:14px}
body.bf-portal-page .bf-mini-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:#fff2f3;color:#c21c24}
body.bf-portal-page .bf-mini-icon svg{width:17px;height:17px}
body.bf-portal-page .bf-intake-total .bf-mini-icon{grid-row:span 3}
body.bf-portal-page .bf-intake-total p{margin:0;font-size:10px;color:#6c7078}
body.bf-portal-page .bf-intake-total strong{font-size:28px;font-weight:500;line-height:1.5}
body.bf-portal-page .bf-intake-total>span:last-child{font-size:9px;color:#6c7078;grid-column:2}
body.bf-portal-page .bf-overview-metrics{display:grid;grid-template-columns:1fr;gap:12px}
body.bf-portal-page .bf-metric-card{display:flex;flex-direction:column;border:1px solid var(--bf-border);border-radius:12px;background:#fff;padding:18px;text-decoration:none;color:#2f3136;min-width:0}
body.bf-portal-page .bf-metric-card:hover{border-color:#dcaaad;background:#fffcfc}
body.bf-portal-page .bf-metric-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500}
body.bf-portal-page .bf-metric-label svg{width:16px;height:16px;color:#bd1c23;flex:0 0 16px}
body.bf-portal-page .bf-metric-card>strong{font-size:28px;line-height:1.4;margin:10px 0 6px;font-weight:500}
body.bf-portal-page .bf-metric-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;color:#6c7078;margin-top:auto}
body.bf-portal-page .bf-metric-foot svg{width:16px;height:16px;flex:0 0 16px}
body.bf-portal-page .bf-overview-grid{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
body.bf-portal-page .bf-pipeline-body{display:flex;align-items:center;justify-content:space-around;gap:20px;flex-wrap:wrap;padding:6px 0}
body.bf-portal-page .bf-donut{width:150px;height:150px;flex:0 0 150px;display:grid;place-items:center;border-radius:50%}
body.bf-portal-page .bf-donut>div{display:flex;flex-direction:column;align-items:center;justify-content:center;width:116px;height:116px;border-radius:50%;background:#fff}
body.bf-portal-page .bf-donut strong{font-size:30px;font-weight:500;line-height:1.4}
body.bf-portal-page .bf-donut span{font-size:9px;color:#6c7078}
body.bf-portal-page .bf-chart-legend{margin:0;padding:0;list-style:none;display:grid;gap:12px;min-width:142px;flex:1;max-width:250px}
body.bf-portal-page .bf-chart-legend li{display:flex;gap:8px;align-items:center;font-size:10px;color:#626873}
body.bf-portal-page .bf-chart-legend strong{margin-left:auto;font-weight:600;color:#2f3136}
body.bf-portal-page .bf-legend-dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px}
body.bf-portal-page .bf-subtle-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;color:#424953;text-decoration:none;font-size:10px;font-weight:500;white-space:nowrap}
body.bf-portal-page .bf-subtle-link svg{width:14px;height:14px}
body.bf-portal-page .bf-matter-list{list-style:none;margin:0;padding:0}
body.bf-portal-page .bf-matter-list li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:center;padding:12px 0;border-top:1px solid #eceef1}
body.bf-portal-page .bf-matter-list li:first-child{border-top:0;padding-top:0}
body.bf-portal-page .bf-matter-list li>div{min-width:0}
body.bf-portal-page .bf-matter-list li>div a{display:inline-flex;align-items:center;min-height:32px;font-size:11px;font-weight:600;color:#2f3136;text-decoration:none;overflow-wrap:anywhere}
body.bf-portal-page .bf-matter-list li>div>span{display:block;font-size:9px;color:#6c7078;overflow-wrap:anywhere}
body.bf-portal-page .bf-matter-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#f3f4f6;color:#6c7078}
body.bf-portal-page .bf-matter-icon svg{width:15px;height:15px}
body.bf-portal-page .bf-matter-list .bf-badge{grid-column:2;justify-self:start;max-width:180px}
body.bf-portal-page .bf-dashboard-empty{padding:26px 10px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;color:#6c7078}
body.bf-portal-page .bf-dashboard-empty>svg{width:30px;height:30px;color:#9ba1aa}
body.bf-portal-page .bf-dashboard-empty strong{font-size:12px;font-weight:500;color:#2f3136}
body.bf-portal-page .bf-dashboard-empty p{font-size:10px;margin:0;max-width:260px}
body.bf-portal-page .bf-next-step{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#2f3136;border-radius:12px;padding:22px;color:#fff}
body.bf-portal-page .bf-next-step>div{flex:1;min-width:180px}
body.bf-portal-page .bf-next-step h2{color:#fff!important}
body.bf-portal-page .bf-next-step p{font-size:10px;margin:6px 0 0;color:#d8dce3}
body.bf-portal-page .bf-next-step>.bf-mini-icon{background:#ffffff0c;color:#ff777e}
body.bf-portal-page .bf-next-step .bf-button{color:#fff;border:1px solid #72767e;background:transparent}
body.bf-portal-page .bf-data-note{display:flex;align-items:flex-start;gap:7px;font-size:9px!important;color:#6c7078;margin:14px 2px 0}
body.bf-portal-page .bf-data-note svg{width:13px;height:13px;flex:0 0 13px;margin-top:1px}
/* Sign-in follows the red illustration / dark form reference without replacing the logo. */
body.bf-portal-page .bf-login-layout{display:grid;grid-template-columns:1fr;max-width:1060px;margin:32px auto;border-radius:22px;overflow:hidden;border:1px solid #383c43;background:#16191e}
body.bf-portal-page .bf-login-art{position:relative;isolation:isolate;overflow:hidden;background:#d61f26;display:flex;flex-direction:column;justify-content:space-between;padding:30px;min-height:230px;color:#fff}
body.bf-portal-page .bf-login-art>span{font:500 9px Montserrat;letter-spacing:.16em}
body.bf-portal-page .bf-login-art h1{font:600 28px/1.3 Poppins,Arial,sans-serif;letter-spacing:-.025em;color:#fff;max-width:350px;margin:10px 0 12px}
body.bf-portal-page .bf-login-art p{font:400 11px/1.7 Montserrat;margin:0;max-width:290px;color:#fff}
body.bf-portal-page .bf-login-art-lines{position:absolute;z-index:-1;inset:-90px -260px 10px -70px;border:1px solid #ffffff6b;border-radius:50%;transform:rotate(-35deg);box-shadow:0 0 0 14px #d61f26,0 0 0 15px #ffffff35,0 0 0 42px #d61f26,0 0 0 43px #ffffff35,0 0 0 74px #d61f26,0 0 0 75px #ffffff35,0 0 0 116px #d61f26,0 0 0 117px #ffffff35,0 0 0 163px #d61f26,0 0 0 164px #ffffff35}
body.bf-portal-page .bf-login-layout .bf-portal-login{width:100%;max-width:none;margin:0;padding:32px 26px;border:0;box-shadow:none;border-radius:0;background:#16191e;color:#fff}
body.bf-portal-page .bf-login-layout .bf-portal-login-mark{width:190px;margin:0 0 32px}
body.bf-portal-page .bf-login-layout h2{color:#fff!important;font:600 24px/1.4 Poppins,Arial,sans-serif!important;margin:0 0 8px}
body.bf-portal-page .bf-login-layout .bf-portal-login>p{font-size:12px;line-height:1.7;color:#b9bfc8}
body.bf-portal-page .bf-login-layout .bf-portal-login label{color:#e1e4e9;font-weight:500;font-size:11px;margin-bottom:7px}
body.bf-portal-page .bf-login-layout .bf-portal-login input:not([type=submit]){background:#25292f!important;border:1px solid #424751!important;color:#fff!important;min-height:46px;border-radius:7px;padding:12px;font:12px Montserrat;width:100%}
body.bf-portal-page .bf-login-layout .bf-portal-login input[type=submit]{background:#d61f26;border:1px solid #d61f26;min-height:46px;width:100%;border-radius:7px;font:600 12px Montserrat;color:#fff;cursor:pointer}
body.bf-portal-page .bf-login-layout .bf-text-link{color:#fff;font-size:11px;min-height:44px;display:inline-flex;align-items:center}
body.bf-portal-page .bf-login-layout .bf-login-help{font-size:10px!important;color:#aeb5bf!important}
/* Existing module screens share these components. */
body.bf-portal-page .bf-outbox{gap:16px}
body.bf-portal-page .bf-outbox .bf-outbox-delivery{border-top:1px solid var(--bf-border);border-radius:12px}
body.bf-portal-page .bf-outbox .bf-outbox-stat{box-shadow:none;border-radius:12px;border:1px solid var(--bf-border);padding:16px}
body.bf-portal-page .bf-outbox .bf-outbox-stat-icon{width:32px;height:32px;min-width:32px;background:#fff2f3}
body.bf-portal-page .bf-outbox .bf-outbox-stat strong{font-size:25px;font-weight:500}
body.bf-portal-page .bf-outbox .bf-outbox-stat span:not(.bf-outbox-stat-icon){font-size:10px}
body.bf-portal-page .bf-outbox .bf-button{font-weight:600;min-height:44px;font-size:11px;border-radius:7px}
body.bf-portal-page .bf-review-panel{border:1px solid #e3e5e9;border-radius:10px;background:#f9fafb}
body.bf-portal-page .bf-outbox .bf-review-filters .bf-button{font-weight:500}
body.bf-portal-page .bf-account-grid{gap:16px}
body.bf-portal-page .bf-account-grid>.bf-account-history{grid-column:1 / -1}
@media(min-width:560px){body.bf-portal-page .bf-overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}body.bf-portal-page .bf-overview-date{display:inline}body.bf-portal-page .bf-matter-list li{grid-template-columns:30px minmax(0,1fr) auto}body.bf-portal-page .bf-matter-list .bf-badge{grid-column:3;max-width:120px}body.bf-portal-page .bf-login-layout{margin:48px 28px}body.bf-portal-page .bf-login-layout .bf-portal-login{padding:44px}}
@media(min-width:768px){body.bf-portal-page .bf-overview-workload{grid-template-columns:repeat(3,minmax(0,1fr))}body.bf-portal-page .bf-aged-matters{grid-column:1/-1}body.bf-portal-page .bf-aged-list li{grid-template-columns:minmax(0,1fr) minmax(110px,auto) auto}body.bf-portal-page .bf-aged-list time{grid-column:auto}}
@media(max-width:559px){body.bf-portal-page .bf-overview-heading{align-items:flex-start}body.bf-portal-page .bf-overview-heading-actions{align-self:flex-start}body.bf-portal-page .bf-overview-workload{grid-template-columns:1fr}}
@media(min-width:768px){body.bf-portal-page .bf-portal-main{padding:26px 24px 20px}body.bf-portal-page .bf-portal-header{padding:10px 24px}body.bf-portal-page .bf-page-finder{display:block}body.bf-portal-page .bf-intake-layout{grid-template-columns:minmax(0,1fr) 156px;gap:22px}body.bf-portal-page .bf-intake-total{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border-top:0;border-left:1px solid #eceef1;padding:4px 0 4px 22px;gap:7px}body.bf-portal-page .bf-intake-total strong{font-size:30px}body.bf-portal-page .bf-overview-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}body.bf-portal-page .bf-pipeline-body{flex-direction:column}body.bf-portal-page .bf-chart-legend{width:100%;max-width:none}body.bf-portal-page .bf-login-layout{grid-template-columns:1fr 1fr}body.bf-portal-page .bf-login-art{min-height:600px;padding:42px}body.bf-portal-page .bf-login-art h1{font-size:34px}body.bf-portal-page .bf-login-layout .bf-portal-login{display:flex;flex-direction:column;justify-content:center;padding:50px 40px}}
@media(min-width:1024px){body.bf-portal-page .bf-portal-shell{grid-template-columns:216px minmax(0,1fr)}body.bf-portal-page .bf-portal-sidebar{width:216px;transform:none}body.bf-portal-page .bf-portal-app{grid-column:2}body.bf-portal-page .bf-portal-menu-toggle,body.bf-portal-page .bf-portal-mobile-brand{display:none}body.bf-portal-page .bf-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.bf-portal-page .bf-login-layout{margin:64px auto}body.bf-portal-page .bf-portal-main .bf-document-grid{grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr)}}
@media(min-width:1440px){body.bf-portal-page .bf-pipeline-body{flex-direction:row}body.bf-portal-page .bf-chart-legend{max-width:200px}body.bf-portal-page .bf-portal-main{padding:26px 28px 20px}body.bf-portal-page .bf-portal-header{padding:10px 28px}body.bf-portal-page .bf-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:559px){body.bf-portal-page .bf-overview-intake .bf-card-heading{flex-wrap:wrap}body.bf-portal-page .bf-overview-banner{padding:20px}body.bf-portal-page .bf-banner-actions{width:100%}body.bf-portal-page .bf-banner-actions .bf-button{flex:1 1 auto}body.bf-portal-page .bf-bars{gap:6px;padding:0}body.bf-portal-page .bf-bars[style*="12"] .bf-bar-label{writing-mode:vertical-rl;font-size:8px;padding-top:7px}body.bf-portal-page .bf-bars[style*="12"]{height:180px}body.bf-portal-page .bf-bars[style*="12"] .bf-bar-column{height:180px}body.bf-portal-page .bf-pipeline-body{gap:24px}body.bf-portal-page .bf-panel{padding:18px 16px}body.bf-portal-page .bf-next-step{padding:20px}body.bf-portal-page .bf-next-step>.bf-mini-icon{display:none}body.bf-portal-page .bf-login-layout{margin:16px 12px;border-radius:16px}body.bf-portal-page .bf-login-art{padding:26px}body.bf-portal-page .bf-portal-footer{flex-wrap:wrap;padding:12px 16px}body.bf-portal-page .bf-filter-bar>*{max-width:100%}}
@media(prefers-reduced-motion:reduce){body.bf-portal-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
body.bf-portal-page .bf-overview-banner .bf-banner-primary{background:#fff!important;color:#ad171e!important}
body.bf-portal-page .bf-overview-banner .bf-banner-secondary{background:#bd1b22!important;color:#fff!important}
body.bf-portal-page .bf-overview-banner{padding:16px 22px}
body.bf-portal-page .bf-overview-banner strong{font-size:32px;line-height:1.2;margin:4px 0}
body.bf-portal-page .bf-overview-banner p{font-size:10px}
body.bf-portal-page .bf-bars,body.bf-portal-page .bf-bar-column{height:132px}
body.bf-portal-page .bf-bar-track{height:88px}
body.bf-portal-page .bf-metric-card{padding:16px}
body.bf-portal-page .bf-metric-card>strong{font-size:25px;margin:6px 0}
body.bf-portal-page .bf-next-step .bf-button{background:transparent!important}
@media(min-width:768px){body.bf-portal-page .bf-overview-grid{align-items:start}body.bf-portal-page .bf-pipeline{grid-column:1;grid-row:1/span 2}body.bf-portal-page .bf-recent-matters{grid-column:2;grid-row:1}body.bf-portal-page .bf-aged-matters{grid-column:2;grid-row:2}body.bf-portal-page .bf-overview-bottom{grid-column:1/-1;grid-row:3}body.bf-portal-page .bf-next-step{gap:12px;padding:20px}body.bf-portal-page .bf-next-step .bf-mini-icon{display:none}body.bf-portal-page .bf-next-step .bf-button{font-size:10px}}
@media(min-width:1024px){body.bf-portal-page .bf-portal-sidebar .bf-nav-close{display:none!important}}
@media(max-width:559px){body.bf-portal-page .bf-bars[style*="12"],body.bf-portal-page .bf-bars[style*="12"] .bf-bar-column{height:150px}}
@media(max-width:559px){body.bf-portal-page .bf-metric-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;min-height:84px}body.bf-portal-page .bf-metric-label{grid-column:1;grid-row:1}body.bf-portal-page .bf-metric-card>strong{grid-column:2;grid-row:1/span 2;margin:0;font-size:27px}body.bf-portal-page .bf-metric-foot{grid-column:1;grid-row:2;margin:0}body.bf-portal-page .bf-matter-list .bf-badge{margin-top:-5px}}
body.bf-portal-page .bf-finance-review-list{display:grid;gap:0;margin:12px 0 0;min-width:0}
body.bf-portal-page .bf-finance-review-list>div{display:grid;grid-template-columns:minmax(115px,.42fr) minmax(0,1fr);gap:8px 16px;padding:10px 0;border-top:1px solid var(--bf-border);min-width:0}
body.bf-portal-page .bf-finance-review-list dt{font-size:11px;font-weight:600;color:#555d67}
body.bf-portal-page .bf-finance-review-list dd{margin:0;font-size:12px;color:#22262c;overflow-wrap:anywhere}
body.bf-portal-page .bf-readonly-grid>.bf-subcard{min-width:0}
body.bf-portal-page .bf-readonly-grid .bf-form-grid{min-width:0}
@media(max-width:559px){body.bf-portal-page .bf-finance-review-list>div{grid-template-columns:1fr;gap:3px}}
/* The checklist uses compact, aligned choices rather than the shared full-width text-input rule. */
body.bf-portal-page .bf-intake-definition-form .bf-form-grid>.bf-field-wide{grid-column:1/-1;min-width:0}
body.bf-portal-page .bf-intake-definition-form fieldset.bf-field-wide{display:block;box-sizing:border-box;border:0;margin:0;padding:0}
body.bf-portal-page .bf-intake-definition-form fieldset.bf-field-wide legend{width:100%;padding:0;margin:0 0 6px;color:#202329;font:600 15px/1.35 Poppins,Montserrat,Arial,sans-serif}
body.bf-portal-page .bf-intake-definition-form fieldset.bf-field-wide>.bf-help-text{margin:0 0 12px;color:#626873;font-size:12px;line-height:1.55}
body.bf-portal-page .bf-intake-definition-form .bf-declaration-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0}
body.bf-portal-page .bf-intake-definition-form label.bf-declaration{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-width:0;min-height:46px;margin:0;padding:9px 12px;border:1px solid #dfe3e7;border-radius:8px;background:#fff;color:#2f3136;font:500 12px/1.45 Montserrat,Arial,sans-serif;cursor:pointer}
body.bf-portal-page .bf-intake-definition-form label.bf-declaration:focus-within{outline:2px solid #d61f26;outline-offset:2px}
body.bf-portal-page .bf-intake-definition-form label.bf-declaration input[type=checkbox]{flex:0 0 18px;width:18px!important;min-width:18px;height:18px!important;min-height:18px!important;margin:0!important;padding:0!important;accent-color:#d61f26}
body.bf-portal-page .bf-intake-definition-form label.bf-declaration span{min-width:0;overflow-wrap:anywhere}
@media(min-width:768px){body.bf-portal-page .bf-intake-definition-form .bf-declaration-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1280px){body.bf-portal-page .bf-intake-definition-form .bf-declaration-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Controlled funding requests use the same compact cards and form rhythm as other workspaces. */
body.bf-portal-page .bf-funding-request{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:18px;margin-block:12px;display:grid;gap:12px;min-width:0}
body.bf-portal-page .bf-funding-request>div:first-child p{margin:6px 0 0;color:#5e6470}
body.bf-portal-page .bf-funding-request form{display:grid;gap:12px;max-width:100%}
body.bf-portal-page .bf-funding-request .bf-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.bf-portal-page .bf-funding-request .bf-button{justify-self:start;text-align:center;display:inline-flex;align-items:center;justify-content:center}
body.bf-portal-page .bf-funding-hold{margin:0;padding:12px 14px;border-radius:10px;background:#fff4f4;color:#8d1823}
body.bf-portal-page .bf-funding-form .bf-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.bf-portal-page .bf-funding-form .bf-field,body.bf-portal-page .bf-funding-request .bf-field{min-width:0}
@media(max-width:700px){body.bf-portal-page .bf-funding-request .bf-form-grid,body.bf-portal-page .bf-funding-form .bf-form-grid{grid-template-columns:minmax(0,1fr)}body.bf-portal-page .bf-funding-request{padding:16px}}

/* Repayments and settlement statements retain the same card rhythm as Funding. */
body.bf-portal-page .bf-settlement-money-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
body.bf-portal-page .bf-settlement-money-grid>div{min-width:0;padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;display:grid;gap:5px}
body.bf-portal-page .bf-settlement-money-grid span{color:#5e6470;font-size:.85rem}
body.bf-portal-page .bf-settlement-money-grid strong{color:#20252b;font-size:1.25rem;line-height:1.25;overflow-wrap:anywhere}
body.bf-portal-page .bf-settlement-operations-form{display:grid;gap:14px;max-width:100%}
body.bf-portal-page .bf-settlement-operations-form .bf-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.bf-portal-page .bf-settlement-operations-form .bf-field{min-width:0}
body.bf-portal-page .bf-settlement-operations-form .bf-button{justify-self:start;display:inline-flex;align-items:center;justify-content:center;text-align:center}
@media(max-width:700px){body.bf-portal-page .bf-settlement-money-grid,body.bf-portal-page .bf-settlement-operations-form .bf-form-grid{grid-template-columns:minmax(0,1fr)}}

/* Account password controls use the same scale as the other dashboard fields. */
body.bf-portal-page .bf-account-page .bf-account-form { gap:7px; }
body.bf-portal-page .bf-account-page .bf-account-form>label:not(.bf-account-check) {
    font-size:12px!important; line-height:1.25!important; font-weight:500;
}
body.bf-portal-page .bf-account-page .bf-account-form input[type=password] {
    box-sizing:border-box; width:100%; min-width:0; min-height:44px; height:44px;
    margin:0!important; padding:9px 11px!important;
    border:1px solid #cbd0d6!important; border-radius:6px!important;
    font:500 12px/1.5 Montserrat,Arial,sans-serif!important;
}

/* Keep the account name and email compact beside the shield icon. */
body.bf-portal-page .bf-account-identity>div>strong { line-height:1.15!important; }
body.bf-portal-page .bf-account-identity>div>span { line-height:1.2!important; margin-top:2px; }

/* Complete signer identity forms remain outside narrow table cells. */
.bf-portal-shell .bf-signer-details{margin-top:12px;padding:14px 16px;border:1px solid var(--bf-border,#e0e2e6);border-radius:12px;background:var(--bf-panel,#fff)}
.bf-portal-shell .bf-signer-details>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;cursor:pointer;overflow-wrap:anywhere}
.bf-portal-shell .bf-signer-details .bf-form-grid{margin-top:12px;gap:16px}
.bf-portal-shell .bf-signer-details .bf-help-text{grid-column:1/-1;margin:0}
.bf-portal-shell .bf-signer-details .bf-field{min-width:0}
.bf-portal-shell .bf-signer-details input,.bf-portal-shell .bf-signer-details select{width:100%;min-width:0;box-sizing:border-box}
@media(max-width:600px){.bf-portal-shell .bf-signer-details{padding:12px}.bf-portal-shell .bf-signer-details .bf-form-grid{grid-template-columns:minmax(0,1fr)}.bf-portal-shell .bf-signer-details .bf-button{width:100%;justify-content:center}}

/* Signed copies share one readable card across staff and client dashboards. */
.bf-portal-shell .bf-signed-copies { margin:16px 0; }
.bf-portal-shell .bf-signed-copy { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--bf-border,#e0e2e6); }
.bf-portal-shell .bf-signed-copy h4 { margin:0 0 6px;font-size:14px;line-height:1.45;overflow-wrap:anywhere; }
.bf-portal-shell .bf-signed-copy .bf-help-text { margin:0; }
.bf-portal-shell .bf-signed-copy-actions { display:flex;flex-wrap:wrap;align-items:center;gap:8px; }
.bf-portal-shell .bf-signed-copy-actions form { margin:0; }
.bf-portal-shell .bf-signed-copy-actions .bf-button { min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal; }
@media(max-width:760px){.bf-portal-shell .bf-signed-copy{grid-template-columns:minmax(0,1fr);gap:12px}.bf-portal-shell .bf-signed-copy-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.bf-portal-shell .bf-signed-copy-actions .bf-button{width:100%}}
body.bf-portal-page .bf-signing-progress{margin:20px 0;padding:20px;border:1px solid var(--bf-border,#dfe3e8);border-radius:12px;background:var(--bf-surface,#fff)}
body.bf-portal-page .bf-signing-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.bf-portal-page .bf-signing-progress-heading h4{margin:0;font-size:16px;line-height:1.4}
body.bf-portal-page .bf-signing-progress-documents{display:grid;gap:12px;margin:16px 0}
body.bf-portal-page .bf-signing-progress-document{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,1fr);gap:20px;padding:16px;border:1px solid var(--bf-border,#dfe3e8);border-radius:10px;align-items:center;overflow-wrap:anywhere}
body.bf-portal-page .bf-signing-progress-actions,body.bf-portal-page .bf-signing-control{display:flex;align-items:flex-start;gap:12px;flex-direction:column;min-width:0;margin:0}
body.bf-portal-page .bf-signing-control .bf-button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;white-space:normal;text-align:center;line-height:1.4;margin:0}
body.bf-portal-page .bf-signing-confirm{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;margin:0}
body.bf-portal-page .bf-signing-confirm input[type=checkbox]{width:18px;height:18px;min-width:18px;flex:0 0 18px;margin:2px 0 0;padding:0}
@media(max-width:760px){body.bf-portal-page .bf-signing-progress{padding:16px}body.bf-portal-page .bf-signing-progress-document{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}body.bf-portal-page .bf-signing-control,body.bf-portal-page .bf-signing-control .bf-button{width:100%}}

body.bf-portal-page .bf-signing-control .bf-button-ghost{color:#2f3136!important;background:#fff!important;border-color:#cbd0d6!important}
body.bf-portal-page .bf-signing-control .bf-button-ghost:hover,body.bf-portal-page .bf-signing-control .bf-button-ghost:focus-visible{color:#a71720!important;border-color:#d61f26!important}
body.bf-portal-page .bf-signing-progress-document{padding-left:16px!important;padding-right:16px!important}
body.bf-portal-page .bf-signing-progress-document strong,body.bf-portal-page .bf-signing-progress-document .bf-table-subtext{display:block}
body.bf-portal-page .bf-signing-progress-document .bf-table-subtext{margin-top:4px}
@media(max-width:760px){body.bf-portal-page .bf-signing-progress-document{padding-left:14px!important;padding-right:14px!important}}

/* All dashboard sections share the main content edge; retain each card's inner padding. */
body.bf-portal-page .bf-portal-main > * { margin-left:0; margin-right:0; }
body.bfr-review-page .bfr-review-app #bfr-review-main { align-self:flex-start; }

/* Stacked operations sections need the same separation as dashboard cards. */
body.bf-portal-page .bf-ops > .bf-panel + .bf-panel { margin-top:16px; }

/* Related registration evidence follows the page's main task in a shared, spaced card. */
body.bf-portal-page #bf-main>.bf-registration-evidence{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0 0;padding:20px!important;min-width:0}
body.bf-portal-page .bf-registration-evidence>div{min-width:0}
body.bf-portal-page .bf-registration-evidence h2{margin:0 0 6px!important}
body.bf-portal-page .bf-registration-evidence p{margin:0!important}
body.bf-portal-page .bf-registration-evidence .bf-form-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0;flex-shrink:0}
body.bf-portal-page .bf-registration-evidence .bf-button{white-space:normal;text-align:center;min-height:44px}
body.bf-portal-page .bf-document-heading-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
@media(max-width:759px){body.bf-portal-page #bf-main>.bf-registration-evidence{flex-direction:column;align-items:stretch;padding:16px!important;gap:14px}body.bf-portal-page .bf-registration-evidence .bf-form-actions{width:100%}body.bf-portal-page .bf-registration-evidence .bf-button{width:100%}}
