/* Shared portal chrome; customer dashboard and sign-in rules remain separate. */
body.ms-portal-workspace {font-family:var(--msm-font-sans); background:#f5f8fa; color:var(--msm-text); letter-spacing:0}
.ms-portal-workspace :is(h1,h2,h3,h4,h5,h6,.card-title,.ff-title) {font-family:var(--msm-font-sans); letter-spacing:0; color:var(--msm-ink); line-height:1.32}
.ms-portal-workspace :is(button,input,select,textarea) {font-family:inherit}
.ms-portal-workspace .layout-page,.ms-portal-workspace .content-wrapper {min-width:0}
.ms-portal-workspace .layout-wrapper #layout-navbar {border-radius:0; background:#fff!important; box-shadow:none!important; border-bottom:1px solid var(--msm-border)}
.ms-portal-workspace .layout-wrapper #layout-menu {background:var(--msm-ink)!important}
.ms-portal-workspace #layout-menu .app-brand {border-bottom:1px solid #455363; margin-bottom:9px}
.ms-portal-workspace #layout-menu .menu-inner .menu-header-text {font-size:12px; font-weight:700; color:#bdcad5; letter-spacing:0}
.ms-portal-workspace #layout-menu .menu-inner .menu-item>.menu-link:not(.marketplace-menu-link) {border-radius:5px; margin-inline:8px; color:#e0e7ed; font-size:15px; font-weight:500; line-height:1.4; background-image:none; box-shadow:none}
.ms-portal-workspace #layout-menu .menu-inner .menu-item>.menu-link:not(.marketplace-menu-link):hover {background:#364758; color:#fff}
.ms-portal-workspace #layout-menu .menu-inner .menu-item.active>.menu-link:not(.marketplace-menu-link) {color:#fff!important; background:#37515e!important; box-shadow:inset 3px 0 #7bd5e0!important; font-weight:700}
.ms-portal-workspace .layout-wrapper .card,.ms-customer-workspace .ff-dashboard :is(.ff-card,.ff-hero,.ff-stat) {border:1px solid var(--msm-border); border-radius:8px; box-shadow:none}
.ms-customer-workspace .ff-dashboard .ff-hero {background:#f1f8fa; border:0; border-radius:0; border-bottom:1px solid var(--msm-border)}
.ms-customer-workspace .ff-dashboard .ff-eyebrow {text-transform:none; font-weight:650; letter-spacing:0; color:var(--msm-text-muted)}
.ms-customer-workspace .ff-dashboard .ff-title {font-weight:750}
.ms-customer-workspace .ff-dashboard .ff-hero-actions .ff-action {min-height:44px; white-space:normal; border-radius:6px; font-weight:650; padding:8px 12px; line-height:1.35; font-size:15px}
.ms-portal-workspace .content-wrapper .btn,.ms-customer-workspace .authentication-wrapper .btn {font-family:var(--msm-font-sans); font-weight:650; letter-spacing:0; text-transform:none; border-radius:6px; box-shadow:none}
.ms-portal-workspace .content-wrapper .btn-primary,.ms-customer-workspace .authentication-wrapper .btn-primary {background:var(--msm-primary); border-color:var(--msm-primary); color:#fff}
.ms-portal-workspace .content-wrapper .btn-outline-primary {color:var(--msm-link); border-color:var(--msm-link)}
.ms-portal-workspace .content-wrapper .btn-outline-primary:hover {background:var(--msm-primary-soft)}
.ms-portal-workspace .content-wrapper :is(.form-control,.form-select) {border-radius:6px; font-family:var(--msm-font-sans); border-color:#a8bac7}
.ms-portal-workspace .content-wrapper table {color:var(--msm-text); font-variant-numeric:tabular-nums}
.ms-portal-workspace .content-wrapper table th {font-weight:700; letter-spacing:0; color:var(--msm-text-muted)}
.ms-portal-workspace .content-wrapper .table-responsive {max-width:100%; overflow-x:auto}
.ms-portal-workspace :is(button,a,input,textarea,select,summary):focus-visible {outline:3px solid var(--msm-primary); outline-offset:3px}
.ms-portal-workspace #layout-menu a:focus-visible {outline-color:#b1eef1; outline-offset:-3px}
.ms-customer-workspace .form-background {background:#f3f7fa!important; min-height:100vh}
.ms-customer-workspace .form-background>.c-overlay {display:none}
.ms-customer-workspace .authentication-wrapper .card {background:#fff; border-radius:8px; border:1px solid var(--msm-border); box-shadow:none}
.ms-customer-workspace .authentication-wrapper .app-brand-link {max-width:100%}
.ms-customer-workspace .authentication-wrapper .app-brand img {max-width:100%; object-fit:contain}
@media(max-width:700px) {
 .ms-customer-workspace .ff-dashboard .ff-hero-actions {min-width:0; width:100%; grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
 .ms-customer-workspace .ff-dashboard .ff-hero .ff-title {font-size:23px}
 .ms-customer-workspace .ff-dashboard .ff-hero .ff-action {overflow-wrap:anywhere}
 .ms-portal-workspace .content-wrapper .form-control {font-size:16px}
}

.ms-customer-workspace .ff-dashboard .ff-hero {padding:24px!important}
.ms-customer-workspace .ff-dashboard .ff-hero-actions {display:flex; min-width:0; width:auto; flex-shrink:0}
.ms-customer-workspace .ff-dashboard .ff-hero .ff-muted {font-size:16px!important; line-height:1.6}
.ms-customer-workspace .ff-documents-strip {padding:18px 0; border-top:1px solid var(--msm-border); color:var(--msm-text-muted)}
.ms-customer-workspace .ff-integration-picker .dropdown-menu {max-width:100%}
@media(max-width:450px){.ms-customer-workspace .ff-integration-picker .dropdown-item{flex-wrap:wrap}.ms-customer-workspace .ff-integration-status{margin-inline-start:38px}}

.ff-integrations { border-radius:8px; container:store-integrations / inline-size; }
.ff-integrations .ff-integration-summary { color:#566071; font-size:.875rem; }
.ff-integration-picker { width:100%; }
.ff-integration-picker > button { width:100%; min-height:46px; display:flex; align-items:center; gap:.6rem; text-align:left; text-transform:none; letter-spacing:0; white-space:normal; color:#465167; border-color:#b8bec9; }
.ff-integration-picker > button:hover,
.ff-integration-picker > button:focus { color:#303246; background:#f2f3f7; border-color:#566071; }
.ff-integration-picker > button .mdi-chevron-down { margin-left:auto; }
.ff-integration-picker .dropdown-menu { width:100%; min-width:0; max-height:min(440px,70vh); overflow-y:auto; border-radius:6px; padding:6px; }
.ff-integration-picker .dropdown-item { display:flex; align-items:center; gap:10px; min-height:62px; padding:10px 8px; border-radius:4px; white-space:normal; color:#303246; }
.ff-integration-picker .dropdown-item:focus-visible { outline:2px solid #6336a2; outline-offset:-2px; }
.ff-integration-picker .marketplace-menu-icon { flex:0 0 28px; width:28px; height:28px; }
.ff-integration-picker .marketplace-menu-icon svg { width:26px; height:26px; }
.ff-integration-picker .marketplace-menu-icon .bx { font-size:28px; }
.ff-integration-name { flex:1; min-width:0; font-size:.875rem; font-weight:600; overflow-wrap:anywhere; }
.ff-integration-sync { display:block; margin-top:2px; color:#566071; font-size:.75rem; font-weight:400; }
.ff-integration-status { display:inline-flex; align-items:center; gap:4px; flex-shrink:0; font-size:.75rem; font-weight:600; color:#566071; }
.ff-integration-status.is-connected { color:#256b42; }
.ff-integration-status.needs-attention { color:#84520a; }
@container store-integrations (max-width:285px) {
    .ff-integration-picker .dropdown-item { flex-wrap:wrap; }
    .ff-integration-status { margin-left:38px; flex-basis:calc(100% - 38px); }
}
