/* v0.8.9 cache-proof portal fixes */
.bcrm-assignment-page{max-width:1680px!important}
.bcrm-assign-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;margin-bottom:18px!important}
.bcrm-assign-hero span{font-size:11px!important;color:#7b86a0!important}.bcrm-assign-hero h1{margin:4px 0 2px!important;font-size:24px!important;color:#172033!important}.bcrm-assign-hero p{margin:0!important;color:#66758c!important;font-size:12px!important}
.bcrm-assign-hero-icon{width:52px!important;height:52px!important;border-radius:18px!important;background:linear-gradient(145deg,#5b4be8,#7c6dff)!important;display:grid!important;place-items:center!important;color:#fff!important;font-size:24px!important;box-shadow:0 16px 34px rgba(91,75,232,.22)!important}
.bcrm-assign-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:14px 0 18px!important}
.bcrm-assign-kpis>div{background:#fff!important;border:1px solid #e6eaf3!important;border-radius:14px!important;padding:18px 20px!important;box-shadow:0 12px 34px rgba(17,24,39,.045)!important;display:grid!important;gap:4px!important}
.bcrm-assign-kpis span{font-size:12px!important;color:#53627a!important;font-weight:800!important}.bcrm-assign-kpis strong{font-size:22px!important;color:#162033!important}.bcrm-assign-kpis small{font-size:11px!important;color:#7b86a0!important}
.bcrm-assign-card{margin:12px 0!important;padding:18px!important;border-radius:14px!important}
.bcrm-assign-card-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:12px!important}.bcrm-assign-card-head h2{margin:0!important;color:#4f46e5!important;font-size:17px!important}
.bcrm-assign-search,.bcrm-assign-rule,.bcrm-assign-filters{display:flex!important;gap:10px!important;align-items:end!important;flex-wrap:wrap!important}
.bcrm-assign-search label{min-width:320px!important;flex:1!important}.bcrm-assign-rule label{min-width:260px!important}.bcrm-assign-filters{padding:16px 18px!important;background:#fff!important;border:1px solid #e6eaf3!important;border-radius:14px!important;margin:12px 0!important}.bcrm-assign-filters label{min-width:190px!important;flex:1!important}
.bcrm-assign-execute{display:grid!important;grid-template-columns:minmax(320px,.9fr) minmax(220px,.45fr) minmax(260px,.65fr) auto!important;gap:18px!important;align-items:end!important}.bcrm-assign-execute select{width:100%!important;min-height:150px!important}
.bcrm-assign-switches{display:grid!important;gap:9px!important}.bcrm-assign-switches label{display:flex!important;align-items:center!important;gap:7px!important;font-weight:800!important;color:#334155!important}.bcrm-assign-actions{display:flex!important;gap:9px!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important}
.bcrm-theme-toggle{width:38px!important;height:38px!important;border:1px solid #e2e8f0!important;border-radius:10px!important;background:#fff!important;color:#4f46e5!important;display:grid!important;place-items:center!important;font:inherit!important;font-size:17px!important;cursor:pointer!important}
.bcrm-portal-shell.is-dark{--bcrm-bg:#0f172a;--bcrm-surface:#172033;--bcrm-soft:#111827;--bcrm-border:#2b3850;--bcrm-text:#e5edf8;--bcrm-muted:#a8b3c7;--bcrm-primary:#8b9cff;--bcrm-primary-2:#6d7cff;--bcrm-success:#55d68a;--bcrm-success-bg:#123320;--bcrm-warning:#f5c46b;--bcrm-warning-bg:#342713;--bcrm-danger:#ff8a9b;--bcrm-danger-bg:#3a1720;--bcrm-info:#7dd3fc;--bcrm-info-bg:#102b3d;--bcrm-shadow:0 12px 34px rgba(0,0,0,.22);background:#0b1220!important;color:var(--bcrm-text)!important}
.bcrm-portal-shell.is-dark .bcrm-shell-main,.bcrm-portal-shell.is-dark .bcrm-app,.bcrm-portal-shell.is-dark .bcrm-shell-content{background:#0b1220!important;color:var(--bcrm-text)!important}.bcrm-portal-shell.is-dark .bcrm-shell-header{background:rgba(15,23,42,.95)!important;border-bottom-color:#263248!important}
.bcrm-portal-shell.is-dark .bcrm-shell-header strong,.bcrm-portal-shell.is-dark .bcrm-front-admin-page>h1:first-child,.bcrm-portal-shell.is-dark .bcrm-assign-hero h1,.bcrm-portal-shell.is-dark .bcrm-assign-kpis strong,.bcrm-portal-shell.is-dark .bcrm-summary span,.bcrm-portal-shell.is-dark .bcrm-metric-card strong,.bcrm-portal-shell.is-dark .bcrm-case-identity strong,.bcrm-portal-shell.is-dark .bcrm-assign-switches label{color:#edf4ff!important}
.bcrm-portal-shell.is-dark .bcrm-shell-kicker,.bcrm-portal-shell.is-dark .description,.bcrm-portal-shell.is-dark .bcrm-assign-hero p,.bcrm-portal-shell.is-dark .bcrm-assign-hero span,.bcrm-portal-shell.is-dark .bcrm-assign-kpis span,.bcrm-portal-shell.is-dark .bcrm-assign-kpis small{color:#a8b3c7!important}
.bcrm-portal-shell.is-dark .bcrm-panel,.bcrm-portal-shell.is-dark .bcrm-card,.bcrm-portal-shell.is-dark .bcrm-customer-header,.bcrm-portal-shell.is-dark .bcrm-summary>div,.bcrm-portal-shell.is-dark .bcrm-metric-card,.bcrm-portal-shell.is-dark .bcrm-related-dialog,.bcrm-portal-shell.is-dark .bcrm-journey-card,.bcrm-portal-shell.is-dark .bcrm-service-option,.bcrm-portal-shell.is-dark .bcrm-assign-kpis>div,.bcrm-portal-shell.is-dark .bcrm-assign-filters,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat,.bcrm-portal-shell.is-dark .bcrm-shell-content .notice,.bcrm-portal-shell.is-dark .bcrm-front-admin-page>p:not(.description){background:#172033!important;border-color:#2b3850!important;color:#e5edf8!important;box-shadow:var(--bcrm-shadow)!important}
.bcrm-portal-shell.is-dark input,.bcrm-portal-shell.is-dark select,.bcrm-portal-shell.is-dark textarea,.bcrm-portal-shell.is-dark .bcrm-shell-search,.bcrm-portal-shell.is-dark .bcrm-shell-content input,.bcrm-portal-shell.is-dark .bcrm-shell-content select,.bcrm-portal-shell.is-dark .bcrm-shell-content textarea{background:#0f172a!important;border-color:#35445e!important;color:#edf4ff!important}.bcrm-portal-shell.is-dark input::placeholder,.bcrm-portal-shell.is-dark textarea::placeholder{color:#7f8ca3!important}
.bcrm-portal-shell.is-dark .widefat th,.bcrm-portal-shell.is-dark .bcrm-table th{background:#101827!important;color:#c8d4e8!important;border-color:#2b3850!important}.bcrm-portal-shell.is-dark .widefat td,.bcrm-portal-shell.is-dark .bcrm-table td,.bcrm-portal-shell.is-dark .bcrm-case-row{border-color:#263248!important;color:#e5edf8!important}.bcrm-portal-shell.is-dark .bcrm-case-row:hover,.bcrm-portal-shell.is-dark .bcrm-table tbody tr:hover{background:#131d31!important}
.bcrm-portal-shell.is-dark .bcrm-secondary-button,.bcrm-portal-shell.is-dark .button,.bcrm-portal-shell.is-dark .bcrm-logout-button,.bcrm-portal-shell.is-dark .bcrm-theme-toggle{background:#111827!important;border-color:#35445e!important;color:#dbe7fa!important}.bcrm-portal-shell.is-dark .button-primary,.bcrm-portal-shell.is-dark .bcrm-primary-button{background:#6d7cff!important;border-color:#6d7cff!important;color:#fff!important}
/* v0.8.11 readable dark tables for embedded admin screens */
.bcrm-portal-shell.is-dark .bcrm-shell-content table.widefat,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat{background:#111827!important;border-color:#2b3850!important;color:#eaf2ff!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat thead,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat thead tr,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat tfoot,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat tfoot tr{background:#0f172a!important;color:#dbeafe!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat th,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat th *{background:#0f172a!important;color:#dbeafe!important;border-color:#2b3850!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat tbody tr,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat.striped>tbody>tr,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat.striped>tbody>:nth-child(odd),.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat tbody tr.alternate{background:#172033!important;color:#eaf2ff!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat.striped>tbody>:nth-child(even),.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat tbody tr:nth-child(even){background:#111827!important;color:#eaf2ff!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat tbody tr:hover,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat.striped>tbody>tr:hover{background:#1f2a44!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat td{border-color:#263248!important;color:#eaf2ff!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat td span,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat td div,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat td strong,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat td label,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat td small{color:#eaf2ff!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat .description,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat .bcrm-muted,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat td .description{color:#a8b3c7!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat a{color:#93c5fd!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat input,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat select,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat textarea,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat option{background:#0b1220!important;border-color:#35445e!important;color:#edf4ff!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat input::placeholder,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat textarea::placeholder{color:#8b98ad!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat .button{background:#111827!important;border-color:#3b4a66!important;color:#edf4ff!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat .button:hover{background:#1f2a44!important;border-color:#53617c!important;color:#fff!important}
.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat .button.button-primary,.bcrm-portal-shell.is-dark .bcrm-shell-content .widefat .button-primary{background:#6d7cff!important;border-color:#6d7cff!important;color:#fff!important}
@media(max-width:980px){.bcrm-assign-kpis{grid-template-columns:repeat(2,1fr)!important}.bcrm-assign-execute{grid-template-columns:1fr!important}.bcrm-assign-actions{justify-content:flex-start!important}}
@media(max-width:620px){.bcrm-assign-kpis{grid-template-columns:1fr!important}.bcrm-assign-search label,.bcrm-assign-rule label,.bcrm-assign-filters label{min-width:100%!important}}

/* v0.8.12 deficiency/finance workflow */
.bcrm-workflow-page .nav-tab-wrapper{margin:12px 0 16px!important;display:flex!important;gap:6px!important;flex-wrap:wrap!important}
.bcrm-workflow-page .bcrm-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;gap:12px!important;margin:14px 0!important}
.bcrm-workflow-page .bcrm-card,.bcrm-workflow-status{border-radius:14px!important;border:1px solid #e5ebf3!important;background:#fff!important;padding:16px!important;box-shadow:0 8px 26px rgba(15,23,42,.05)!important}
.bcrm-workflow-page .bcrm-card strong,.bcrm-workflow-status strong{display:block!important;font-size:18px!important;color:#172033!important}
.bcrm-workflow-page .bcrm-card span,.bcrm-workflow-status span{font-size:11px!important;color:#64748b!important}
.bcrm-diff-amount,.bcrm-workflow-page .bcrm-card.is-danger strong{color:#dc2626!important}
.bcrm-case-detail .bcrm-grid .bcrm-card{min-height:82px!important}
.bcrm-workflow-actions{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;align-items:start!important}
.bcrm-workflow-actions form{display:grid!important;gap:8px!important}
.bcrm-workflow-actions input,.bcrm-workflow-actions select,.bcrm-workflow-actions textarea{width:100%!important}
.bcrm-workflow-status .bcrm-status-stack{display:grid!important;gap:9px!important}
.bcrm-workflow-status .bcrm-full-button{margin-top:12px!important}
.bcrm-workflow-actions{display:block!important}
.bcrm-workflow-final-form{width:100%!important;max-width:none!important;margin:16px 0!important;padding:22px!important}
.bcrm-workflow-final-form h3{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0 0 16px!important;padding-bottom:12px!important;border-bottom:1px solid #e5ebf3!important;color:#172033!important;font-size:17px!important}
.bcrm-workflow-final-form>label{margin-bottom:14px!important}
.bcrm-workflow-final-form label{display:grid!important;gap:7px!important;font-weight:800!important;color:#334155!important}
.bcrm-workflow-final-form select,.bcrm-workflow-final-form input,.bcrm-workflow-final-form textarea{width:100%!important}
.bcrm-workflow-final-form.is-workflow-ready [data-bcrm-step],.bcrm-workflow-final-form.is-workflow-ready [data-bcrm-finance]{display:none!important}
.bcrm-workflow-final-form.is-workflow-ready [data-bcrm-step].is-active,.bcrm-workflow-final-form.is-workflow-ready [data-bcrm-finance].is-active{display:grid!important}
.bcrm-form-section{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;gap:14px!important;padding:16px!important;border:1px solid #e5ebf3!important;border-radius:14px!important;background:#f8fafc!important;margin:0 0 14px!important}
.bcrm-form-section h4{grid-column:1/-1!important;margin:0!important;font-size:14px!important;color:#172033!important}
.bcrm-workflow-final-form textarea{margin:0 0 14px!important;min-height:118px!important}
.bcrm-workflow-final-form .button-primary{width:100%!important;min-height:46px!important;font-size:13px!important;border-radius:12px!important}
.bcrm-workflow-final-form input[type=file]{padding:10px!important;background:#fff!important}
.bcrm-workflow-final-form input[type=file]::file-selector-button{border:0;border-radius:8px;background:#eef4ff;color:#1d4ed8;font-weight:800;padding:8px 12px;margin-left:10px;cursor:pointer}
.bcrm-timeline-meta{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
.bcrm-meta-item{display:inline-flex!important;gap:4px!important;align-items:center!important;padding:4px 7px!important;border-radius:8px!important;background:#f1f5f9!important;color:#334155!important;font-size:11px!important}
.bcrm-meta-item strong{color:#0f172a!important}
.bcrm-portal-shell.is-dark .bcrm-workflow-page .bcrm-card,.bcrm-portal-shell.is-dark .bcrm-workflow-status{background:#172033!important;border-color:#2b3850!important;color:#e5edf8!important;box-shadow:0 12px 34px rgba(0,0,0,.22)!important}
.bcrm-portal-shell.is-dark .bcrm-workflow-page .bcrm-card strong,.bcrm-portal-shell.is-dark .bcrm-workflow-status strong{color:#edf4ff!important}
.bcrm-portal-shell.is-dark .bcrm-workflow-page .bcrm-card span,.bcrm-portal-shell.is-dark .bcrm-workflow-status span{color:#a8b3c7!important}
.bcrm-portal-shell.is-dark .bcrm-workflow-final-form label{color:#d7e2f2!important}
.bcrm-portal-shell.is-dark .bcrm-workflow-final-form h3{color:#edf4ff!important;border-color:#2b3850!important}
.bcrm-portal-shell.is-dark .bcrm-form-section{background:#101827!important;border-color:#2b3850!important}
.bcrm-portal-shell.is-dark .bcrm-form-section h4{color:#edf4ff!important}
.bcrm-portal-shell.is-dark .bcrm-meta-item{background:#101827!important;color:#d7e2f2!important;border:1px solid #2b3850!important}
.bcrm-portal-shell.is-dark .bcrm-meta-item strong{color:#edf4ff!important}
.bcrm-portal-shell.is-dark .bcrm-workflow-final-form input[type=file]::file-selector-button{background:#24305a;color:#dbeafe}
