/* Shared operational controls only. Authored mail/document content and print keep their own presentation. */
@media screen {
 :root{--br-ink:#0c334d;--br-muted:#40566a;--br-link:#005f91;--br-line:#64748b;--br-error:#9f1c23;--br-warning:#744300;--br-surface:#fff;--br-hover:#e3f3fa;--br-focus:#005f91}
 html[data-bayshore-theme=dark]{--br-ink:#edf5fa;--br-muted:#cbd5e1;--br-link:#9fddff;--br-line:#8aa5b8;--br-error:#ffb4ab;--br-warning:#ffdda0;--br-surface:#172b3a;--br-hover:#203e52;--br-focus:#9fddff}
 html body #header .hide-menu,html body.customers .navbar-header [data-br-menu]{align-items:center;justify-content:center;gap:8px;min-width:96px;min-height:48px;padding:8px 12px!important;border:1px solid var(--br-line)!important;border-radius:12px;background:var(--br-surface)!important;color:var(--br-ink)!important;font-size:16px!important;font-weight:650;line-height:1.25}
 html body #header .hide-menu{display:flex!important;margin-block:8px!important;margin-inline:12px!important;flex-shrink:0}
 html body :is(#header .hide-menu,.navbar-header [data-br-menu]) svg{display:block;width:26px!important;height:26px!important;flex:0 0 26px;color:inherit!important}
 html body :is(#header .hide-menu,.navbar-header [data-br-menu]):hover{background:var(--br-hover)!important}
 html body #header .mobile-menu-toggle{min-width:62px;min-height:48px;padding:5px 8px!important;color:var(--br-ink)!important;border:1px solid var(--br-line)!important;border-radius:10px;background:var(--br-surface)!important}
 .br-tools-label{display:block;font-size:13px;font-weight:650;line-height:1.2;margin-top:3px}
 html[data-bayshore-md3=refined] body #side-menu>li>a,html[data-bayshore-md3=refined] body #side-menu .nav-second-level>li>a{min-height:48px;font-size:15px!important;line-height:1.4}
 html body :is(.bws-more,.bchat-message-meta .bws-more){width:48px;height:48px}
 html body :is(.bws-more summary,.bchat-message-meta .bws-more summary){width:48px;min-width:48px;height:48px;min-height:48px}
 html body :is(.bws-more>nav>a,.bws-more>div>button){min-height:48px}
 html body:is(.customers,.admin,.bb-contractor-portal) .pagination>li>:is(a,span){display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px}
 /* Native validation helpers have otherwise retained light red on white. */
 html body.customers #wrapper p.text-muted{color:var(--br-muted)!important}
 html body:is(.customers,.admin) .form-group.has-error :is(label,.help-block),html body:is(.customers,.admin) .form-group :is(.text-danger,.req),html body.customers #wrapper p.text-danger{color:var(--br-error)!important}
 html body.customers #wrapper p.text-warning{color:var(--br-warning)!important}
 html body:is(.customers,.admin) :is(.form-group .form-control,.form-group .bootstrap-select>.dropdown-toggle){border-color:var(--br-line)!important}
 html body:is(.customers,.admin) .form-group .form-control::placeholder{color:var(--br-muted)!important;opacity:1}
 html[data-bayshore-theme=dark] body.customers #wrapper :is(.panel_s,.table-responsive,.dataTables_wrapper,.nav-tabs) a:not(.btn):not(.label):not(.badge):not(.proposal-content a):not(.invoice-preview a):not(.estimate-preview a):not(.contract-html a):not(.contract-html-content a):not(.tc-content a):not(.estimate-print-sheet a){color:var(--br-link)!important}
 html[data-bayshore-theme=dark] body.customers .navbar-default{background:var(--br-surface)!important;border-color:var(--br-line)}
 html[data-bayshore-theme=dark] body.customers .navbar-default .navbar-nav>li>a{color:var(--br-ink)!important}
 html[data-bayshore-theme=dark] body.customers .navbar-default .navbar-nav>li>a:hover{background:var(--br-hover)!important}
 html[data-bayshore-theme=dark] body.customers .navbar-default .dropdown-menu{background:var(--br-surface)!important;border-color:var(--br-line)}
 html[data-bayshore-theme=dark] body.customers .navbar-default .dropdown-menu>li>a{color:var(--br-ink)!important}
 html[data-bayshore-theme=dark] body.customers .navbar-default .dropdown-menu>li>a:hover{background:var(--br-hover)!important}
 html body:is(.customers,.admin,.bb-contractor-portal) :is([data-br-menu],.mobile-menu-toggle,.pagination a,.bws-more summary,.form-control):focus-visible{outline:3px solid var(--br-focus)!important;outline-offset:3px!important}
 .br-menu-guide{position:fixed;z-index:1061;max-width:min(340px,calc(100vw - 24px));padding:14px 16px;border:1px solid var(--br-line);border-radius:12px;background:var(--br-ink);color:var(--br-surface);box-shadow:0 4px 14px #0c334d33;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
 .br-menu-guide[hidden]{display:none!important}
 .br-menu-guide::before{content:"";position:absolute;inset-block-start:-9px;inset-inline-start:20px;border-inline:9px solid transparent;border-block-end:9px solid var(--br-ink)}
 .br-menu-guide p{margin:0 0 8px!important;color:inherit!important}
 html body .br-menu-guide button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 14px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit!important;font:inherit;font-weight:650;cursor:pointer}
 html body .br-menu-guide button:focus-visible{outline:3px solid currentColor!important;outline-offset:3px}
 @media(max-width:767px){html body.customers .navbar-header [data-br-menu]{display:inline-flex!important;margin-block:8px}.navbar-header .navbar-brand{max-width:calc(100% - 116px)}html body #header .hide-menu{min-width:88px;padding-inline:8px!important;margin-inline:8px!important}}
 @media(prefers-reduced-motion:reduce){.br-menu-guide{transition:none!important;animation:none!important}}
}
@media print{.br-menu-guide{display:none!important}}
@media screen {
 html:root body #header .hide-menu{min-width:96px!important;width:auto!important;min-height:48px!important;gap:8px!important}
 html:root[data-bayshore-md3=refined] body #side-menu>li>a,html:root[data-bayshore-md3=refined] body #side-menu .nav-second-level>li>a{min-height:48px!important;height:auto!important}
 html[data-bayshore-theme=dark] body.customers .pagination>li:not(.active)>:is(a,span){background:var(--br-surface)!important;color:var(--br-link)!important;border-color:var(--br-line)!important}
}
@media screen {
 html[data-bayshore-theme=dark] body.customers .form-group:not(.has-error)>label{color:var(--br-ink)!important}
 html[data-bayshore-theme=dark] body.customers #wrapper .table-responsive table.table:not(.tc-content table) :is(th,td){color:var(--br-ink)!important}
}

@media screen {
 body.customers .navbar-header .br-client-brand-dark{display:none!important}
 html[data-bayshore-theme=dark] body.customers .navbar-header .br-client-brand-light{display:none!important}
 html[data-bayshore-theme=dark] body.customers .navbar-header .br-client-brand-dark{display:block!important;color:var(--br-ink)!important}
}
@media print{body.customers .navbar-header .br-client-brand-dark{display:none!important}body.customers .navbar-header .br-client-brand-light{display:block!important}}
