/* FINNEX 63.6: unified, scoped design layer. Loaded after legacy styles. */
body.fnxf-enterprise-screen #wpbody-content{background:#f4f7fb!important}
body.fnxf-enterprise-screen #wpbody-content .wrap{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif!important;font-weight:400!important;letter-spacing:normal!important}
body.fnxf-enterprise-screen #wpbody-content .wrap :is(h1,h2,h3){font-family:inherit!important;letter-spacing:-.03em!important;text-shadow:none!important}
body.fnxf-enterprise-screen #wpbody-content .wrap h1{font-weight:700!important;line-height:1.2!important}
body.fnxf-enterprise-screen #wpbody-content .wrap h2{font-weight:670!important;line-height:1.3!important}
body.fnxf-enterprise-screen #wpbody-content .wrap :is(button,.button,input,select,textarea){font-family:inherit!important;letter-spacing:normal!important}
body.fnxf-enterprise-screen #wpbody-content .wrap :is(input[type=checkbox],input[type=radio]){appearance:auto!important;-webkit-appearance:auto!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;max-width:17px!important;max-height:17px!important;vertical-align:middle!important;margin:0 7px 0 0!important;padding:0!important;transform:none!important;position:static!important;opacity:1!important;box-shadow:none!important}
body.fnxf-enterprise-screen #wpbody-content .wrap :is(input[type=checkbox],input[type=radio])::before{display:none!important}
body.fnxf-enterprise-screen #wpbody-content .wrap .widefat{border:1px solid #dfe7f1!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important}
body.fnxf-enterprise-screen #wpbody-content .wrap .widefat thead th{background:#f1f5fa!important;font-weight:650!important;font-size:12px!important;color:#536982!important}
body.fnxf-enterprise-screen #wpbody-content .wrap .widefat :is(th,td){font-size:13px!important;line-height:1.5!important}
body.fnxf-enterprise-screen #wpbody-content .wrap .button-primary{background:var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))!important;border-color:var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))!important;color:#fff!important;box-shadow:none!important;font-weight:620!important}
body.fnxf-enterprise-screen #wpbody-content .wrap .button-primary:hover{background:color-mix(in srgb,var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb)) 80%,#111827)!important;border-color:color-mix(in srgb,var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb)) 80%,#111827)!important}
body.fnxf-enterprise-screen #wpbody-content .wrap :is(input[type=text],input[type=number],input[type=email],input[type=search],select,textarea){border:1px solid #cdd9e8!important;border-radius:9px!important;box-shadow:none!important;font-size:13px!important}
body.fnxf-enterprise-screen #wpbody-content .wrap :is(input,select,button,a,textarea,summary):focus-visible{outline:3px solid var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))!important;outline-offset:2px!important}
/* Experience: all six tenant dashboards */
.fnxf615{background:transparent!important}
.fnxf615 .fnxf615-layout{align-items:start!important}
.fnxf615 .fnxf615-nav{background:#fff!important;border:1px solid #e0e7f0!important;box-shadow:0 8px 28px #1b385008!important}
.fnxf615 .fnxf615-hero{background:linear-gradient(112deg,color-mix(in srgb,var(--fnxf-tenant-color,#2159cb) 34%,#112946),color-mix(in srgb,var(--fnxf-tenant-color,#2159cb) 58%,#112946) 68%,color-mix(in srgb,var(--fnxf-tenant-color,#2159cb) 75%,#112946))!important;box-shadow:0 13px 32px #193d6d20!important}
.fnxf615 .fnxf615-panel,.fnxf615 .fnxf615-metric,.fnxf615 .fnxf623-studio{background:#fff!important;border-color:#e0e8f2!important;box-shadow:0 6px 22px #1b385008!important}
.fnxf615 .fnxf615-metric strong{font-variant-numeric:tabular-nums!important}
.fnxf615 :is(.fnxf615-panel,.fnxf623-studio,.fnxf633,.fnxf634) :is(input,select,textarea){max-width:100%;box-sizing:border-box}
/* CRM operations */
.fnxf615 .fnxf633{margin:22px 0!important;padding:23px!important;border:1px solid #e0e8f2!important;border-radius:16px!important;background:#fff!important;box-shadow:0 7px 24px #1b38500a!important}
.fnxf615 .fnxf633-head{gap:18px!important}
.fnxf615 .fnxf633-head h2{font-size:21px!important;color:#183657!important}
.fnxf615 .fnxf633-primary{background:var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))!important;border-color:var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))!important;color:#fff!important;border-radius:9px!important;font-weight:650!important}
.fnxf615 .fnxf633-table-wrap{overflow-x:auto!important;border:1px solid #e4ebf4!important;border-radius:12px!important}
.fnxf615 .fnxf633-table-wrap table{min-width:650px!important}
.fnxf615 .fnxf633-table-wrap th{background:#f3f7fc!important;color:#4b6481!important;font-weight:660!important}
.fnxf615 .fnxf633-table-wrap td{border-bottom:1px solid #edf1f7!important}
.fnxf615 .fnxf633-form{border:1px solid #dce8f6!important;border-radius:14px!important;background:#f9fbfe!important;padding:20px!important;margin-top:18px!important}
.fnxf615 .fnxf633-form[hidden]{display:none!important}
.fnxf615 .fnxf633-primary:hover{background:color-mix(in srgb,var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb)) 82%,#111827)!important;border-color:color-mix(in srgb,var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb)) 82%,#111827)!important}
.fnxf615 .fnxf633-primary:focus-visible{outline:3px solid var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))!important;outline-offset:3px!important}
.fnxf615 .fnxf633-form :is(input,select,textarea):focus-visible{outline:3px solid var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))!important;outline-offset:2px!important}
/* Operational ledger, commercial and finance */
.fnxf615 .fnxf634{background:#fff!important;border:1px solid #e0e8f2!important;border-radius:16px!important;padding:22px!important;margin:22px 0!important;box-shadow:0 7px 24px #1b38500a!important}
.fnxf615 .fnxf634 header h2{font-size:21px!important;color:#183657!important}
.fnxf615 .fnxf634-scroll{overflow-x:auto!important;border:1px solid #e4ebf4!important;border-radius:12px!important}
.fnxf615 .fnxf634-scroll table{min-width:680px!important}
.fnxf615 .fnxf634-scroll th{background:#f3f7fc!important;font-weight:650!important;color:#536b87!important}
.fnxf615 .fnxf634-scroll td{border-bottom:1px solid #edf1f7!important}
.fnxf615 .fnxf634 :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))!important;outline-offset:2px!important}
.fnxf615 .fnxf634 :is(input[type=checkbox],input[type=radio]){accent-color:var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))}
.fnxf615 .fnxf634-scroll{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.fnxf615 .fnxf634-scroll :is(th,td){overflow-wrap:anywhere;vertical-align:top}
/* SaaS and White Label central */
.fnxf631{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif!important}
.fnxf631 .fnxf631-header{background:linear-gradient(112deg,color-mix(in srgb,var(--fnxf-tenant-color,#2159cb) 34%,#112946),color-mix(in srgb,var(--fnxf-tenant-color,#2159cb) 58%,#112946) 68%,color-mix(in srgb,var(--fnxf-tenant-color,#2159cb) 75%,#112946))!important}
.fnxf631 .fnxf631-panel,.fnxf631 .fnxf631-kpis article{box-shadow:0 6px 22px #1b38500a!important}
.fnxf631 .fnxf631-action:focus-visible{outline:3px solid var(--fnxf-tenant-color,var(--fnxf638-accent,#2159cb))!important;outline-offset:3px!important}
.fnxf623-studio :is(input[type=text],input[type=email],input[type=url],select){min-height:42px!important;border-radius:9px!important}
/* Plan editor: safeguard against inherited tall, pill-shaped checkboxes. */
body.fnxf-enterprise-screen .fnxf635-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
body.fnxf-enterprise-screen .fnxf635-feature{display:flex!important;align-items:center!important;gap:10px!important;min-height:48px!important;font-size:13px!important;line-height:1.4!important}
body.fnxf-enterprise-screen .fnxf635-feature input[type=checkbox]{flex:0 0 17px!important;margin:0!important}
/* Admin layout */
body.fnxf-enterprise-screen .fnxf-gov-panel,body.fnxf-enterprise-screen .fnxf635-card{box-shadow:0 6px 22px #1b38500a!important}
body.fnxf-enterprise-screen .fnxf-gov-hero{background:linear-gradient(112deg,color-mix(in srgb,var(--fnxf-tenant-color,#2159cb) 34%,#112946),color-mix(in srgb,var(--fnxf-tenant-color,#2159cb) 58%,#112946) 68%,color-mix(in srgb,var(--fnxf-tenant-color,#2159cb) 75%,#112946))!important}
@media(max-width:900px){body.fnxf-enterprise-screen .fnxf635-feature-grid{grid-template-columns:1fr!important}.fnxf615 .fnxf633,.fnxf615 .fnxf634{padding:16px!important}}
@media(max-width:600px){.fnxf615 .fnxf633-head{flex-direction:column!important;align-items:stretch!important}.fnxf615 .fnxf633-toolbar{flex-wrap:wrap!important}.fnxf615 .fnxf634-filters{flex-wrap:wrap!important}.fnxf631 .fnxf631-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.fnxf631 .fnxf631-header{padding:18px!important;min-width:0}.fnxf631 .fnxf631-panel{min-width:0;max-width:100%;overflow-wrap:anywhere}.fnxf615 .fnxf633-form :is(input,select,textarea){width:100%;min-width:0}}
@media(prefers-reduced-motion:reduce){.fnxf615 *, .fnxf631 *,body.fnxf-enterprise-screen #wpbody-content .wrap *{animation:none!important;transition:none!important}}
/* FINNEX enterprise responsive and high contrast */
@media(max-width:600px){.fnxf615 .fnxf633-table-wrap,.fnxf615 .fnxf634-scroll{max-width:100%;overscroll-behavior-inline:contain}.fnxf615 .fnxf633-toolbar :is(button,input,select),.fnxf615 .fnxf634-filters :is(button,input,select){max-width:100%;min-width:0}.fnxf631 .fnxf631-kpis article{min-width:0;overflow-wrap:anywhere}}
@media(max-width:420px){.fnxf631 .fnxf631-kpis{grid-template-columns:1fr!important}.fnxf615 .fnxf633,.fnxf615 .fnxf634{padding:12px!important}.fnxf615 .fnxf633-form{padding:12px!important}}
@media(forced-colors:active){body.fnxf-enterprise-screen #wpbody-content .wrap :is(a,button,input,select,textarea):focus-visible,.fnxf615 :is(a,button,input,select,textarea):focus-visible{outline:2px solid Highlight!important}.fnxf615 .fnxf633-primary{border:1px solid ButtonText!important}}
