/* Blueway Core 42.00 — operational UX authority.
   Shared states and controls only. Workspace business logic remains workspace-owned. */
:root{--bwc-op-border:#dce3ea;--bwc-op-soft:#f6f8fa;--bwc-op-text:#0d1b2a;--bwc-op-muted:#66717d;--bwc-op-focus:#f39a23;--bwc-op-danger:#a42b2b;--bwc-op-success:#1d6b4f}
.bwc-app-frame :where(button,.bwc-btn,input,select,textarea,a)[disabled],
.bwc-app-frame :where(button,.bwc-btn).is-loading{opacity:.64;cursor:wait!important;pointer-events:none}
.bwc-app-frame form[data-bwc-submitting="1"] :where(button[type="submit"],input[type="submit"]){position:relative;cursor:wait!important;opacity:.76;pointer-events:none}
.bwc-app-frame form[data-bwc-submitting="1"] :where(button[type="submit"],input[type="submit"]){min-width:max-content}
.bwc-app-frame :where(input,select,textarea,button,a):focus-visible{outline:3px solid color-mix(in srgb,var(--bwc-op-focus) 35%,transparent);outline-offset:2px}
.bwc-app-frame :where(.bwc-empty,.bwc-empty-state,.bwc-no-results){border:1px dashed var(--bwc-op-border);background:var(--bwc-op-soft);padding:24px;min-height:112px;display:flex;flex-direction:column;justify-content:center;gap:6px;color:var(--bwc-op-muted)}
.bwc-app-frame :where(.bwc-empty,.bwc-empty-state,.bwc-no-results) :where(h2,h3,h4,b,strong){color:var(--bwc-op-text);margin:0}
.bwc-app-frame :where(.bwc-notice,.bwc-publisher-notice,[class*="notice"][class*="bwc-"]){overflow-wrap:anywhere}
.bwc-app-frame .bwc-op-feedback{position:fixed;right:18px;bottom:18px;z-index:2147483600;max-width:min(420px,calc(100vw - 36px));padding:13px 42px 13px 15px;background:#fff;border:1px solid var(--bwc-op-border);box-shadow:0 16px 45px rgba(4,18,34,.18);color:var(--bwc-op-text);font-size:13px;line-height:1.45}
.bwc-app-frame .bwc-op-feedback[data-kind="success"]{border-left:4px solid var(--bwc-op-success)}
.bwc-app-frame .bwc-op-feedback[data-kind="error"]{border-left:4px solid var(--bwc-op-danger)}
.bwc-app-frame .bwc-op-feedback button{position:absolute;right:8px;top:7px;width:30px;height:30px;border:0;background:transparent;font-size:20px;line-height:1;cursor:pointer}
/* Modal safety: operational chrome must remain reachable above page-builder/theme chrome. */
:where(.bwc-modal,.bwc-workspace-modal,.bwc-modal-shell,[data-bwc-modal]){isolation:isolate}
:where(.bwc-modal,.bwc-workspace-modal,.bwc-modal-shell,[data-bwc-modal]).is-open{z-index:2147483500!important}
:where(.bwc-modal-head,.bwc-modal-header,.bwc-workspace-modal-head){position:sticky;top:0;z-index:8;background:#fff}
:where(.bwc-modal-close,.bwc-workspace-modal-close,[data-bwc-modal-close]){position:relative;z-index:10;min-width:42px;min-height:42px}
/* Dense operational screens stay inside the vessel. */
.bwc-app-frame :where(.bwc-table-wrap,.bwc-ledger,.bwc-audit-table,.bwc-data-table){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.bwc-app-frame :where(table){max-width:100%}
.bwc-app-frame :where(.bwc-grid,.bwc-row,.bwc-panel,.bwc-cloud-panel)>*{min-width:0}
@media(max-width:760px){
 .bwc-app-frame .bwc-op-feedback{left:12px;right:12px;bottom:12px;max-width:none}
 .bwc-app-frame :where(.bwc-empty,.bwc-empty-state,.bwc-no-results){padding:18px;min-height:96px}
 :where(.bwc-modal-head,.bwc-modal-header,.bwc-workspace-modal-head){top:0!important}
}
@media(prefers-reduced-motion:reduce){.bwc-app-frame *{scroll-behavior:auto!important}}

/* 42.50 — operational action continuity. */
.bwc-app-frame form[aria-busy="true"]{cursor:progress}
.bwc-app-frame .bwc-op-feedback{border-radius:6px;font-weight:650;letter-spacing:-.005em}
.bwc-app-frame .bwc-op-feedback span{display:block;padding:2px 0}
.bwc-app-frame :where(.bwc-row-actions,.bwc-panel-actions,.bwc-actions){display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bwc-app-frame :where(.bwc-row-actions,.bwc-panel-actions,.bwc-actions) .bwc-btn{margin:0}
@media(max-width:560px){
 .bwc-app-frame :where(.bwc-row-actions,.bwc-panel-actions,.bwc-actions){align-items:stretch}
 .bwc-app-frame :where(.bwc-row-actions,.bwc-panel-actions,.bwc-actions)>.bwc-btn,
 .bwc-app-frame :where(.bwc-row-actions,.bwc-panel-actions,.bwc-actions)>button{flex:1 1 100%;width:100%;justify-content:center}
}


/* Blueway Core 106.00 — staff communication chronology closure. */
.bwc-support-workspace .bwc-case-events{display:grid;gap:10px;min-width:0}
.bwc-support-workspace .bwc-case-events>article{min-width:0;padding:12px 14px;border:1px solid #dce5ec;border-radius:4px;background:#fff;box-shadow:none}
.bwc-support-workspace .bwc-case-events>article>div{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.bwc-support-workspace .bwc-case-events :is(b,small,p){overflow-wrap:anywhere}
.bwc-support-workspace .bwc-case-events p{margin:7px 0 0;line-height:1.5}
@media(max-width:620px){.bwc-support-workspace .bwc-case-events>article>div{display:grid;grid-template-columns:1fr}.bwc-support-workspace .bwc-case-events>article{padding:12px}}

/* 106.00 — communications cross-cloud certification */
[data-bwc-shell-contract="106.00"] .bwc-communication-queue-tabs{display:flex;gap:6px;align-items:center;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 0 8px;scrollbar-width:thin}
[data-bwc-shell-contract="106.00"] .bwc-communication-queue-tabs a{flex:0 0 auto;min-height:38px;display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #d9e1ea;border-radius:6px;background:#fff;color:#24364b;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
[data-bwc-shell-contract="106.00"] .bwc-communication-queue-tabs a.is-active{background:#10263f;border-color:#10263f;color:#fff}
[data-bwc-shell-contract="106.00"] .bwc-case-list>a.has-customer-reply{border-left:3px solid #1769aa;background:#f7fbff}
[data-bwc-shell-contract="106.00"] .bwc-case-list>a>span{display:flex;align-items:flex-end;justify-content:center;gap:5px;flex-direction:column;min-width:116px}
[data-bwc-shell-contract="106.00"] .bwc-case-list>a>span strong{font-size:12px;font-weight:750;color:#24364b}
[data-bwc-shell-contract="106.00"] .bwc-communication-attention{display:inline-flex;align-items:center;min-height:24px;padding:3px 7px;border-radius:4px;background:#e9f3ff;color:#0e568f;font-size:11px;font-style:normal;font-weight:800;line-height:1.2}
@media(max-width:700px){[data-bwc-shell-contract="106.00"] .bwc-communication-queue-tabs{margin-inline:-2px;padding-bottom:10px}[data-bwc-shell-contract="106.00"] .bwc-case-list>a{align-items:flex-start}[data-bwc-shell-contract="106.00"] .bwc-case-list>a>span{align-items:flex-start;min-width:0;width:100%;margin-top:8px}}

/* 119.00 — Support-side communication continuity authority */
.bwc-support-workspace .bwc-case-dossier .bwc-affiliate-grid{align-items:start}
.bwc-support-workspace .bwc-case-dossier .bwc-affiliate-grid>section:nth-child(2){border-top:3px solid #123b66}
.bwc-support-workspace .bwc-support-response-field{display:block}
.bwc-support-workspace .bwc-support-response-field textarea{min-height:150px;resize:vertical}
.bwc-support-workspace .bwc-support-response-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px}
.bwc-support-workspace .bwc-support-response-help{display:block;margin-top:8px;line-height:1.45;color:#64748b}
.bwc-support-workspace .bwc-case-events{display:grid;gap:10px}
.bwc-support-workspace .bwc-support-event{position:relative!important;transform:none!important;float:none!important;margin:0!important;padding:12px 14px!important;border:1px solid #dce5ee!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
.bwc-support-workspace .bwc-support-event.audience-customer{border-left:3px solid #1f5f9b!important}
.bwc-support-workspace .bwc-support-event.audience-internal,.bwc-support-workspace .bwc-support-event.audience-support{background:#f8fafc!important}
.bwc-support-workspace .bwc-support-event>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}
.bwc-support-workspace .bwc-support-event p{margin:8px 0 0!important;line-height:1.55!important;white-space:normal!important;overflow-wrap:anywhere!important}
.bwc-support-workspace .bwc-support-update-success{margin:0 0 14px}
@media(max-width:760px){
 .bwc-support-workspace .bwc-case-dossier .bwc-affiliate-grid{display:flex!important;flex-direction:column!important}
 .bwc-support-workspace .bwc-case-dossier .bwc-affiliate-grid>section:nth-child(2){order:1;width:100%}
 .bwc-support-workspace .bwc-case-dossier .bwc-affiliate-grid>section:nth-child(1){order:2;width:100%}
 .bwc-support-workspace .bwc-support-response-field textarea{min-height:132px}
 .bwc-support-workspace .bwc-support-response-actions{display:grid;grid-template-columns:1fr}
 .bwc-support-workspace .bwc-support-response-actions .bwc-btn{width:100%;justify-content:center}
 .bwc-support-workspace .bwc-support-event>div{display:block}
 .bwc-support-workspace .bwc-support-event>div small{display:block;margin-top:3px}
}
