/* RC5 05K R03 - operational hierarchy and mobile-first header corrections.
   Additive, keeps existing BV identity and original ticket component logic. */
.topbar .right-nav {display:flex;align-items:center;justify-content:flex-end;gap:13px;flex-wrap:nowrap;min-width:0;margin-left:auto;}
.topbar .right-nav .bv-live-alerts,.topbar .right-nav .account-menu {flex:0 0 auto;align-self:center;}
.topbar .brand {min-width:0;max-width:calc(100% - 180px);}
.topbar .brand strong {font-size:clamp(16px,1.55vw,20px);line-height:1.15;}
.topbar .account-menu>summary {min-height:43px;}
.topbar .account-panel {min-width:230px;max-width:calc(100vw - 24px);}
.topbar .bv-live-panel {z-index:350;}
.topbar .account-menu[open] {z-index:300;}
.topbar .bv-live-count {white-space:nowrap;}
.bv-mail-health {display:flex;gap:14px;align-items:center;min-width:0;border:1px solid var(--ops-line,#d5e2e8);background:var(--ops-card,#fff);border-radius:15px;padding:14px 17px;margin-bottom:16px;color:var(--ops-text,#193b4c);}
.bv-mail-health .bv-mail-health-icon {display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:#dbf5ea;color:#047652;font-weight:850;font-size:21px;}
.bv-mail-health .bv-mail-health-copy {min-width:0;flex:1;}
.bv-mail-health strong {font-size:15px;font-weight:850;display:block;line-height:1.3;}
.bv-mail-health p {font-size:12px;line-height:1.55;color:var(--ops-muted,#637c8b);margin-top:3px;}
.bv-mail-health .bv-mail-health-link {display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:10px 12px;border:1px solid var(--ops-line,#d8e4e9);border-radius:10px;color:var(--ops-text,#17485c);font-size:12px;font-weight:800;text-decoration:none;}
.bv-mail-health.bv-mail-health-failed {border-color:#e8b7a7;background:#fff6f2;color:#873f30;}
.bv-mail-health.bv-mail-health-failed .bv-mail-health-icon {background:#f9dfd8;color:#ae442d;}
.bv-mail-health.bv-mail-health-failed p {color:#9a4d3c;}
.bv-mail-health.bv-mail-health-failed .bv-mail-health-link {border-color:#e8b7a7;color:#9a4d3c;}
.bv-ops-shell .bv-action-strip {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:15px;}
.bv-ops-shell .bv-action {display:flex;flex-direction:column;gap:4px;min-height:82px;padding:13px 15px;background:var(--ops-card,#fff);border:1px solid var(--ops-line,#d8e4e9);border-radius:13px;color:var(--ops-text,#1b4353);box-shadow:var(--ops-shadow,none);text-decoration:none;transition:border-color .12s ease;}
.bv-ops-shell .bv-action:hover {border-color:#0d9273;}
.bv-ops-shell .bv-action span {font-size:13px;font-weight:800;}
.bv-ops-shell .bv-action small {font-size:11px;color:var(--ops-muted,#667e8c);}
.bv-ops-shell .x100-panel h2 {font-size:clamp(17px,1.25vw,20px);}
.bv-ops-shell .x100-panel p {font-size:12px;line-height:1.6;}
.bv-ops-shell .x100-kpi-label {font-size:12px;}
.bv-ops-shell .x100-kpi-foot {font-size:11px;}
.bv-ops-shell .x100-recent-line {font-size:12px;}
.bv-ops-shell .x100-rule b {font-size:12px;}
.bv-ops-shell .x100-rule p {font-size:11px;}
.bv-ops-shell .x100-panel {padding:18px;}
.bv-ops-shell .admin-content {max-width:1550px;}
/* Manager and staff actions must be readable and tappable; avoid cramped controls. */
.bv-ops-shell .x100-support-table td,.bv-ops-shell .x100-support-table th {font-size:12px;}
.bv-ops-shell .bv-live-bell,.topbar .bv-live-bell {min-width:44px;min-height:44px;}
.bv-ops-shell .bv-live-panel {z-index:400;}
.bv-live-panel .bv-live-top {position:sticky;top:0;background:inherit;padding-top:5px;z-index:1;}
.bv-live-toast {position:fixed;right:18px;bottom:22px;z-index:2000;max-width:min(390px,calc(100vw - 30px));background:#103b3d;color:#fff;border:1px solid #247c69;border-radius:14px;box-shadow:0 15px 40px rgba(9,44,55,.23);padding:13px 17px;font-size:13px;font-weight:680;line-height:1.5;}
html[data-bv-theme=dark] .bv-live-toast {background:#1b5149;color:#effcf8;}
@media(max-width:900px){
  .bv-ops-shell .bv-action-strip {grid-template-columns:repeat(2,minmax(0,1fr));}
  .bv-ops-shell .admin-content {padding:20px 14px 42px;}
  .bv-ops-shell .x100-dash-header {flex-wrap:wrap;}
}
@media(max-width:640px){
  .topbar {padding:10px 13px;gap:10px;min-height:72px;}
  .topbar .brand {gap:8px;max-width:calc(100% - 130px);}
  .topbar .brand-symbol {width:36px;height:36px;border-radius:10px;}
  .topbar .brand strong {font-size:14px;letter-spacing:-.04em;}
  .topbar .brand small {font-size:10px;}
  .topbar .right-nav {gap:6px;}
  .topbar .account-menu>summary {padding:5px;min-height:42px;}
  .topbar .account-menu .account-name {display:none;}
  .topbar .account-menu .avatar {width:32px;height:32px;}
  .topbar .account-menu .chevron {font-size:12px;}
  .topbar .bv-live-bell {min-width:41px;min-height:41px;}
  .topbar .bv-live-panel {right:-45px;width:min(370px,calc(100vw - 22px));}
  .employee-main {padding:22px 14px 38px;}
  .bv-mail-health {align-items:flex-start;flex-wrap:wrap;gap:10px;padding:12px;}
  .bv-mail-health .bv-mail-health-link {width:100%;}
  .bv-ops-shell .bv-action-strip {gap:8px;}
  .bv-ops-shell .bv-action {min-height:75px;padding:12px;}
  .bv-ops-shell .bv-action span {font-size:12px;}
  .bv-ops-shell .x100-kpis {grid-template-columns:repeat(2,minmax(0,1fr));}
  .bv-ops-shell .x100-kpi {padding:11px;}
}
@media(max-width:370px){.topbar .brand small{display:none}.topbar .brand strong{font-size:12.5px}.topbar .brand{max-width:calc(100% - 119px)}}
@media(prefers-reduced-motion:reduce){.bv-ops-shell .bv-action {transition:none}}
.bv-ops-shell .bv-audit-kpis {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:17px 0;}
.bv-ops-shell .bv-audit-kpis>div {background:var(--ops-card,#fff);border:1px solid var(--ops-line,#d7e2e8);border-radius:13px;padding:15px;}
.bv-ops-shell .bv-audit-kpis small {display:block;color:var(--ops-muted,#728592);font-size:12px;}
.bv-ops-shell .bv-audit-kpis strong {display:block;font-size:25px;color:var(--ops-text,#154054);}
@media(max-width:700px){.bv-ops-shell .bv-audit-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* R04: honest, nonblocking offline/PWA submission status in the employee UI. */
.employee-body .bv-offline-banner{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#eaf3f5;border:1px solid #c3dde4;color:#1a4853;border-radius:12px;padding:12px 15px;margin:0 0 14px;font-size:13px;line-height:1.5}
.employee-body .bv-offline-banner[hidden]{display:none!important}
.employee-body .bv-offline-banner span{flex:1;min-width:200px}
.employee-body .bv-offline-banner button[hidden]{display:none!important}
