/* BUR-Monitor — makieta na Vuexy: spokojny „biurowy” wygląd, granatowy pasek modułów, błękit akcji. Własne style nadpisują zmienne szablonu. */
:root {
  --bm-nav: #15294d; --bm-nav2: #0f2144; --bm-navtext: #dbe5f7; --bm-acc: #2563c9; --bm-acc-d: #1d52a8;
  --bm-bg: #f2f4f8; --bm-line: #e0e5ee; --bm-muted: #556074;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-primary: #2563c9; --bs-primary-rgb: 37, 99, 201; --bs-primary-bg-subtle: #e2ebfb; --bs-primary-border-subtle: #bdd0f4; --bs-primary-text-emphasis: #17408c;
  --bs-link-color: #1f58b5; --bs-link-color-rgb: 31, 88, 181; --bs-link-hover-color: #154391; --bs-link-hover-color-rgb: 21, 67, 145;
  --bs-body-bg: var(--bm-bg); --bs-secondary-color: #556074; --bs-body-color: #3b4558; --bs-heading-color: #1f2a3d;
}
html[data-bs-theme="dark"] {
  --bm-nav: #151a29; --bm-nav2: #101421; --bm-bg: #1d2232; --bm-line: #384058; --bm-muted: #aab3c7;
  --bs-primary-bg-subtle: #20335c; --bs-primary-border-subtle: #31508e; --bs-primary-text-emphasis: #a9c4f5; --bs-link-color: #7fa8f0; --bs-link-color-rgb: 127, 168, 240;
  --bs-link-hover-color: #a9c4f5; --bs-secondary-color: #aab3c7; --bs-body-color: #d3d9e6; --bs-heading-color: #eef1f8; --bs-body-bg: #1d2232;
}
html[data-makieta-theme="grafit"] { --bm-nav: #2b313d; --bm-nav2: #202530; }
body.bm, .bm .layout-page { font-family: var(--bs-font-sans-serif); background: var(--bs-body-bg); font-size: .875rem; }
.bm h4, .bm h5, .bm h6 { font-family: var(--bs-font-sans-serif); }
.bm .btn-primary { --bs-btn-bg: var(--bm-acc); --bs-btn-border-color: var(--bm-acc); --bs-btn-hover-bg: var(--bm-acc-d); --bs-btn-hover-border-color: var(--bm-acc-d); --bs-btn-active-bg: var(--bm-acc-d); --bs-btn-active-border-color: var(--bm-acc-d); --bs-btn-disabled-bg: var(--bm-acc); --bs-btn-disabled-border-color: var(--bm-acc); box-shadow: none; }
.bm .btn-outline-primary { --bs-btn-color: #1f58b5; --bs-btn-border-color: #1f58b5; --bs-btn-hover-bg: var(--bm-acc); --bs-btn-hover-border-color: var(--bm-acc); --bs-btn-active-bg: var(--bm-acc); --bs-btn-active-border-color: var(--bm-acc); }
html[data-bs-theme="dark"] .bm .btn-outline-primary { --bs-btn-color: #8db2f3; --bs-btn-border-color: #5b86d6; }
.bm .btn-outline-secondary { --bs-btn-color: #44506a; --bs-btn-border-color: #c4ccda; --bs-btn-hover-bg: #e9edf5; --bs-btn-hover-color: #1f2a3d; --bs-btn-hover-border-color: #b3bdd0; --bs-btn-active-bg: #dde4f0; --bs-btn-active-color: #1f2a3d; --bs-btn-active-border-color: #aab5ca; }
html[data-bs-theme="dark"] .bm .btn-outline-secondary { --bs-btn-color: #c1c9da; --bs-btn-border-color: #4b556f; --bs-btn-hover-bg: #2b3350; --bs-btn-hover-color: #fff; }
.bm .bg-label-primary, .bm .badge.bg-label-primary { background: var(--bs-primary-bg-subtle) !important; color: var(--bs-primary-text-emphasis) !important; }
.bm .nav-pills .nav-link.active, .bm .nav-pills .show > .nav-link, .bm .page-item.active .page-link { background: var(--bm-acc) !important; border-color: var(--bm-acc); color: #fff !important; box-shadow: none; }
.bm .form-check-input:checked { background-color: var(--bm-acc); border-color: var(--bm-acc); }
.bm .form-control:focus, .bm .form-select:focus { border-color: var(--bm-acc); box-shadow: 0 0 0 .15rem rgba(37, 99, 201, .18); }
.bm .badge { font-weight: 500; }
.bm .badge.bg-label-secondary { color: #44506a !important; background: #e8ecf3 !important; }
html[data-bs-theme="dark"] .bm .badge.bg-label-secondary { color: #cfd6e6 !important; background: #343c56 !important; }
.bm .badge.bg-label-success { color: #14663a !important; background: #def3e6 !important; }
.bm .badge.bg-label-warning { color: #7a4a00 !important; background: #fdeccb !important; }
.bm .badge.bg-label-danger { color: #9b1c1c !important; background: #fbe1e1 !important; }
.bm .badge.bg-label-info { color: #0b5972 !important; background: #d9f1f8 !important; }
html[data-bs-theme="dark"] .bm .badge.bg-label-success { color: #8fdcb0 !important; background: #1d4a33 !important; }
html[data-bs-theme="dark"] .bm .badge.bg-label-warning { color: #f4c677 !important; background: #52401a !important; }
html[data-bs-theme="dark"] .bm .badge.bg-label-danger { color: #f4a0a0 !important; background: #55252b !important; }
html[data-bs-theme="dark"] .bm .badge.bg-label-info { color: #8ad5ec !important; background: #1b4553 !important; }
.bm .text-body-secondary { color: var(--bs-secondary-color) !important; }
.bm .alert-secondary, .bm .alert-info, .bm .alert-success { font-size: .8125rem; padding: .55rem .9rem; }

/* ---------- pasek: marka, wyszukiwarka, ikony i pasek modułów (granat) ---------- */
.layout-horizontal .layout-navbar { background: var(--bm-nav) !important; color: var(--bm-navtext); box-shadow: none !important; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.layout-horizontal .layout-navbar { min-height: 3.5rem; height: 3.5rem; }
.layout-horizontal .layout-navbar .nav-link, .layout-horizontal .layout-navbar .icon-base { color: var(--bm-navtext) !important; }
.layout-horizontal .layout-navbar .btn-text-secondary:hover { background: rgba(255, 255, 255, .12) !important; }
.bm-brand-text { color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; margin-left: .55rem; }
.app-brand-link { display: inline-flex; align-items: center; text-decoration: none !important; }
.layout-menu .app-brand-link .bm-brand-text { color: var(--bs-heading-color); }
.bm-mock { background: #f4c542; color: #4a3400; font-size: .625rem; letter-spacing: .08em; margin-left: .7rem; align-self: center; }
.layout-menu-horizontal.menu-horizontal, .bm .layout-menu-horizontal { background: var(--bm-nav2) !important; box-shadow: none !important; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.bm .layout-horizontal .layout-page { padding-top: 0 !important; }
.layout-menu-fixed:not(.layout-navbar-hidden) .layout-horizontal .layout-page .menu-horizontal + [class*=container-] { padding-block-start: 7.1rem !important; }
.v2 .layout-menu-fixed:not(.layout-navbar-hidden) .layout-horizontal .layout-page .menu-horizontal + [class*=container-] { padding-block-start: 6.8rem !important; }
.menu-horizontal .menu-inner > .menu-item > .menu-link { color: var(--bm-navtext) !important; font-size: .875rem; padding: .55rem 1rem; border-radius: 0; margin: 0; }
.menu-horizontal .menu-inner > .menu-item > .menu-link .menu-icon { color: #8fb3ee; margin-right: .5rem; font-size: 1.15rem; }
.menu-horizontal .menu-inner > .menu-item:hover > .menu-link { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.menu-horizontal .menu-inner > .menu-item.active > .menu-link { background: rgba(255, 255, 255, .14) !important; color: #fff !important; box-shadow: inset 0 -3px 0 #5b9bff; font-weight: 600; }
.menu-horizontal .menu-inner > .menu-item.active > .menu-link::before { display: none; }
.bm-search { position: relative; flex: 1 1 auto; max-width: 520px; margin-right: 1rem; }
.bm-search input { width: 100%; height: 34px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff; padding: 0 .75rem 0 2.1rem; font-size: .8125rem; }
.bm-search input::placeholder { color: #b7c6e4; }
.bm-search input:focus { outline: none; background: #fff; color: #1f2a3d; border-color: #fff; }
.bm-search input:focus + .x, .bm-search input:focus::placeholder { color: #6b7790; }
.bm-search-i { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: #b7c6e4 !important; pointer-events: none; }
.bm .avatar .avatar-initial.bm-profile { background: #5b9bff; color: #0c1f44; font-weight: 700; }
.bm-notif { min-width: 260px; }
.bm-setting { display: flex; flex-direction: column; opacity: .8; } .bm-setting small, .bm-off-note { font-size: .7rem; color: var(--bs-secondary-color); }
/* pionowe menu (V3): jasne, zwijane */
.layout-menu.menu-vertical { background: var(--bm-nav2) !important; box-shadow: none; }
.menu-vertical .app-brand { background: var(--bm-nav2); }
.layout-menu .bm-brand-text, .menu-vertical .app-brand-link .bm-brand-text { color: #fff !important; }
html.layout-menu-collapsed:not(.layout-menu-hover) .menu-vertical .bm-brand-text, html.layout-menu-collapsed:not(.layout-menu-hover) .menu-vertical .bm-soon { display: none; }
.v3 .layout-navbar { background: var(--bs-paper-bg, #fff) !important; border-bottom: 1px solid var(--bm-line); }
.v3 .bm-search input { background: var(--bm-bg); color: var(--bs-body-color); border-color: var(--bm-line); }
.v3 .bm-search input::placeholder, .v3 .bm-search-i { color: #6b7790 !important; }
.v3 .bm-search { max-width: 560px; }
.menu-vertical .menu-inner > .menu-item > .menu-link { color: var(--bm-navtext) !important; }
.menu-vertical .menu-inner > .menu-item > .menu-link .menu-icon { color: #8fb3ee; }
.menu-vertical .menu-inner > .menu-item.active > .menu-link { background: rgba(91, 155, 255, .22) !important; color: #fff !important; box-shadow: none; }
.menu-vertical .menu-toggle-icon, .menu-vertical .layout-menu-toggle .icon-base { color: #cdd9f1 !important; }
.layout-navbar-fixed .layout-navbar.navbar-detached { margin-top: 0; border-radius: 0; width: 100%; left: 0; }
.v3 .layout-navbar.navbar-detached { padding: 0 1.25rem; height: 52px; }
.v3 .layout-menu-collapsed .layout-navbar.navbar-detached { width: calc(100% - 4.5rem); left: auto; right: 0; }
html.layout-menu-collapsed .layout-navbar.navbar-detached { width: calc(100% - 5.25rem); }

/* ---------- treść ---------- */
.bm .container-p-y { padding-top: 1rem !important; padding-bottom: 1.5rem !important; }
.bm .layout-horizontal .container-xxl { max-width: 1520px; }
.bm-pagehead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .85rem; }
.bm-card { box-shadow: 0 1px 2px rgba(25, 40, 70, .06) !important; border: 1px solid var(--bm-line); border-radius: 8px; margin-bottom: 1rem; background: var(--bs-paper-bg, #fff); }
.bm-card .card-header.bm-ch { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--bm-line); }
.bm-card .card-title { font-size: .9375rem; font-weight: 600; }
.bm-note { color: var(--bs-secondary-color); font-size: .75rem; }
.bm-flush { overflow: hidden; border-radius: 0 0 8px 8px; }
.bm .row > [class*="col"] > .bm-card { height: calc(100% - 1rem); }
.bm-table { margin: 0; font-size: .8125rem; --bs-table-bg: transparent; }
.bm-table thead th { background: #f6f8fb; color: #3b4558; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; border-bottom: 1px solid var(--bm-line); white-space: nowrap; padding: .6rem .75rem; }
html[data-bs-theme="dark"] .bm-table thead th { background: #262d44; color: #c9d1e3; }
.bm-table td { padding: .55rem .75rem; vertical-align: middle; border-color: var(--bm-line); }
.bm-table .bm-chk { width: 2rem; padding-right: 0; }
.bm-th { color: inherit !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: .15rem; }
.bm-th:hover { color: var(--bm-acc) !important; }
.bm-sorti { font-size: .9rem; } .bm-up { transform: rotate(180deg); }
.bm-sub { color: var(--bs-secondary-color); font-size: .75rem; line-height: 1.3; }
.bm-trunc { max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.bm-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 1rem; border-top: 1px solid var(--bm-line); flex-wrap: wrap; }
.bm-bulk { display: flex; align-items: center; gap: 1rem; padding: .45rem 1rem; border-bottom: 1px solid var(--bm-line); font-size: .8125rem; }
.bm-off { opacity: .6; cursor: not-allowed; display: inline-flex; align-items: center; gap: .3rem; flex-direction: row; white-space: nowrap; }
.bm-off-note { display: none; }
.bm-off:hover .bm-off-note { display: none; }
.bm-empty { text-align: center; padding: 1.6rem 1rem; color: var(--bs-secondary-color); }
.bm-empty .icon-base { display: block; margin: 0 auto .4rem; color: #9aa6bd; }
.bm-placeholder { display: flex; gap: 1rem; align-items: flex-start; padding: .5rem; color: var(--bs-body-color); }
.bm-stage2 { border-style: dashed !important; background: transparent; }
.bm-chart { width: 100%; }
.bm-ul-plain, .bm-ul { list-style: none; margin: 0; padding: 0; }
.bm-li { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .65rem 1rem; border-bottom: 1px solid var(--bm-line); }
.bm-li:last-child { border-bottom: 0; }
.bm-ul li { padding: .4rem 0; border-bottom: 1px solid var(--bm-line); }
.bm-stat-v { font-size: 1.65rem; font-weight: 700; color: var(--bs-heading-color); line-height: 1.2; }
.bm-kl { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); font-weight: 600; }
.bm-ks { font-size: .75rem; color: var(--bs-secondary-color); }
.badge-count { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; margin-left: .35rem; border-radius: 10px; background: #e8ecf3; color: #44506a; font-size: .7rem; text-align: center; line-height: 1.35rem; font-weight: 600; }
html[data-bs-theme="dark"] .badge-count { background: #343c56; color: #cfd6e6; }
.bm-pills .nav-link { padding: .4rem .85rem; font-size: .8125rem; }
.bm-pills .nav-link:not(.active) { color: var(--bs-body-color); background: #e9edf5; margin-right: .35rem; }
html[data-bs-theme="dark"] .bm-pills .nav-link:not(.active) { background: #2b3350; }
.bm-diff { font-size: .8125rem; padding: .1rem 0; }
.bm-dl { color: var(--bs-secondary-color); font-weight: 500; }
.bm-old { color: #9b1c1c; text-decoration-thickness: 1px; } .bm-new { color: #14663a; } .bm-arr { color: #8795a8; vertical-align: -2px; }
html[data-bs-theme="dark"] .bm-old { color: #f4a0a0; } html[data-bs-theme="dark"] .bm-new { color: #8fdcb0; }
.bm-av .avatar-initial { font-weight: 600; } .bm-logo { object-fit: contain; background: #fff; width: 100%; height: 100%; border: 1px solid var(--bm-line); }
.bm .avatar .avatar-initial.bm-av0 { background: #dbe7fb; color: #17408c; } .bm .avatar .avatar-initial.bm-av1 { background: #d6f0ec; color: #0f6b5e; } .bm .avatar .avatar-initial.bm-av2 { background: #fbe7c8; color: #7a4a00; }
.bm .avatar .avatar-initial.bm-av3 { background: #e6defa; color: #4b2d9e; } .bm .avatar .avatar-initial.bm-av4 { background: #e3e8f0; color: #3b4558; } .bm .avatar .avatar-initial.bm-av5 { background: #f9dde5; color: #9a2450; }
.bm-desc { white-space: pre-wrap; max-height: 16rem; overflow: auto; }

/* ---------- lista: pasek widoku i panel „Filtruj wg” ---------- */
.bm-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .9rem; background: var(--bs-paper-bg, #fff); border: 1px solid var(--bm-line); border-radius: 8px; padding: .55rem .85rem; margin-bottom: .75rem; }
.bm-view-toggle { font-size: 1.05rem; font-weight: 600; color: var(--bs-heading-color) !important; text-decoration: none; }
.bm-view .dropdown-item.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.bm-count { color: var(--bs-secondary-color); }
.bm-qbox { position: relative; min-width: 220px; } .bm-qbox .icon-base { position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); color: #8795a8; pointer-events: none; }
.bm .bm-qbox input.form-control { padding-left: 2rem; }
.bm-listwrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1rem; align-items: start; }
.bm-listwrap.bm-fhidden { grid-template-columns: minmax(0, 1fr); } .bm-listwrap.bm-fhidden .bm-filter { display: none; }
.bm-filter { background: var(--bs-paper-bg, #fff); border: 1px solid var(--bm-line); border-radius: 8px; padding: .85rem; position: sticky; top: 7.5rem; max-height: calc(100vh - 9rem); overflow: auto; }
.bm-filter-h { display: flex; align-items: center; padding-bottom: .55rem; margin-bottom: .6rem; border-bottom: 1px solid var(--bm-line); }
.bm-fg { margin-bottom: .75rem; border: 0; padding: 0; min-width: 0; } .bm-fg legend { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); font-weight: 600; margin-bottom: .3rem; float: none; width: auto; }
.bm-filter .form-check { margin-bottom: .2rem; min-height: 1.3rem; } .bm-filter .form-check-label { font-size: .8125rem; }
.v2 .bm-ftoggle { display: none; } .v2 .bm-listwrap { grid-template-columns: 215px minmax(0, 1fr); gap: .75rem; }
.bm-kanban { display: flex; gap: .85rem; overflow-x: auto; padding-bottom: .5rem; align-items: flex-start; }
.bm-kcol { flex: 0 0 290px; background: #e9edf4; border-radius: 8px; padding: .6rem; }
html[data-bs-theme="dark"] .bm-kcol { background: #262d44; }
.bm-kh { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: .55rem; color: var(--bs-heading-color); }
.bm-kcard { padding: .65rem .75rem; margin-bottom: .5rem; border: 1px solid var(--bm-line); box-shadow: 0 1px 2px rgba(25, 40, 70, .05); }
.bm-kmore, .bm-knote { font-size: .78rem; color: var(--bs-secondary-color); padding: .2rem .3rem; }

/* ---------- rekord ---------- */
.bm-rhead { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.bm-rh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .85rem 1.5rem; align-items: flex-start; }
.bm-rh-id { display: flex; gap: 1rem; align-items: center; min-width: 0; } .bm-rh h4 { font-size: 1.3rem; margin: 0; }
.bm-meta { color: var(--bs-secondary-color); font-size: .8125rem; }
.bm-rh-act { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.bm-keys { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--bm-line); }
.bm-keys > div { display: flex; flex-direction: column; } .bm-keys b { font-size: .95rem; color: var(--bs-heading-color); }
.bm-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--bs-secondary-color); font-weight: 600; }
.bm-tabs { background: var(--bs-paper-bg, #fff); border: 1px solid var(--bm-line); border-top: 0; border-radius: 0 0 8px 8px; padding: 0 .75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bm-line); }
.bm-tabs .nav-link { padding: .6rem 1rem; color: var(--bs-body-color); border: 0; border-bottom: 3px solid transparent; background: none; box-shadow: none; }
.bm-tabs .nav-link.active { color: var(--bm-acc); border-bottom-color: var(--bm-acc); font-weight: 600; background: none; }
.bm-rec-cols { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1rem; align-items: start; }
.bm-rec-nav { position: sticky; top: 7.5rem; }
.bm-related { background: var(--bs-paper-bg, #fff); border: 1px solid var(--bm-line); border-radius: 8px; overflow: hidden; }
.bm-related-h { padding: .65rem .9rem; font-weight: 600; font-size: .8125rem; background: #f6f8fb; border-bottom: 1px solid var(--bm-line); color: var(--bs-heading-color); }
html[data-bs-theme="dark"] .bm-related-h { background: #262d44; }
.bm-related .list-group-item { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; padding: .55rem .9rem; border-color: var(--bm-line); color: var(--bs-body-color); background: transparent; }
.bm-related .list-group-item:hover { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.bm-related .badge-count { margin-left: auto; }
.bm-rec-main section { scroll-margin-top: 8rem; }
.bm-fields .bm-f { padding: .5rem 1.1rem .5rem 0; border-bottom: 1px solid var(--bm-line); } .bm-fields .bm-v { color: var(--bs-heading-color); overflow-wrap: anywhere; }
.bm-card .card-body > .bm-fields:first-child { margin: -.15rem 0; }
.bm-state { margin-bottom: 1rem; }
.bm-inline-filter { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--bm-line); }
.bm-an { border: 1px solid var(--bm-line); border-radius: 8px; padding: .8rem; height: 100%; } .bm-an-h { font-weight: 600; color: var(--bs-heading-color); } .bm-an-l { font-size: .78rem; color: var(--bs-secondary-color); margin-bottom: .5rem; }
.bm-an-big { font-size: 1.5rem; font-weight: 700; color: var(--bs-heading-color); } .bm-an-big small { font-size: .78rem; font-weight: 400; color: var(--bs-secondary-color); display: block; margin-bottom: .6rem; }
.bm-cmp { padding: .55rem .8rem; margin-bottom: .7rem; border-radius: 6px; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.bm-acc .accordion-button { font-size: .875rem; font-weight: 600; padding: .7rem 1rem; } .bm-acc .accordion-item { border-color: var(--bm-line); }
.bm-acc .accordion-button:not(.collapsed) { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); box-shadow: none; }
.bm-scroll { max-height: 22rem; overflow: auto; } .bm-qa { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--bm-line); }
.bm .timeline { padding-left: .2rem; }
.bm-rhead-wide { overflow: hidden; border-bottom: 1px solid var(--bm-line); border-radius: 8px; margin-bottom: 1rem; }
.bm-band { height: 56px; background: linear-gradient(100deg, #15294d, #2a58a8); }
.bm-rhead-wide .card-body { margin-top: -34px; } .bm-rhead-wide .avatar-xl { box-shadow: 0 0 0 4px var(--bs-paper-bg, #fff); border-radius: 50%; }
.bm-rhead-wide .bm-rh h4 { margin-top: 30px; } .bm-rhead-wide .bm-rh-act { margin-top: 36px; }
.bm-rhead-wide .bm-rh-id { align-items: flex-end; }
.bm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--bm-line); }
.bm-kpi { padding: .85rem 1.25rem; border-right: 1px solid var(--bm-line); } .bm-kpi:last-child { border-right: 0; }
.bm-kv { font-size: 1.35rem; font-weight: 700; color: var(--bs-heading-color); }
.v3 .bm-tabs { border-top: 1px solid var(--bm-line); border-radius: 8px; }
.v3 .bm-rec-cols { grid-template-columns: 220px minmax(0, 1fr); }

/* ---------- gęstość V2 ---------- */
.v2 { font-size: .8125rem; }
.v2 .layout-horizontal .container-xxl, .v2 .container-xxl { max-width: none; padding-left: 1rem; padding-right: 1rem; }
.v2 .container-p-y { padding-top: .6rem !important; }
.v2 .bm-table td { padding: .28rem .6rem; font-size: .78rem; } .v2 .bm-table thead th { padding: .4rem .6rem; }
.v2 .bm-card { margin-bottom: .6rem; border-radius: 6px; } .v2 .bm-card .card-header.bm-ch { padding: .45rem .8rem; } .v2 .card-body { padding: .75rem .9rem; }
.v2 .bm-bar { padding: .35rem .65rem; margin-bottom: .5rem; } .v2 .bm-filter { padding: .6rem; } .v2 .bm-fg { margin-bottom: .45rem; }
.v2 .bm-rhead { border-radius: 6px 6px 0 0; } .v2 .bm-rhead .card-body { padding: .6rem .9rem; } .v2 .bm-rh h4 { font-size: 1.05rem; }
.v2 .bm-rec-cols { grid-template-columns: 170px minmax(0, 1fr); gap: .6rem; } .v2 .bm-fields .bm-f { padding: .3rem .8rem .3rem 0; }
.v2 .bm-tabs .nav-link { padding: .4rem .8rem; } .v2 .bm-foot { padding: .4rem .8rem; } .v2 .bm-li { padding: .4rem .8rem; }
.v2 .bm-related .list-group-item { padding: .38rem .7rem; }
.v2 .avatar-md { width: 2.1rem; height: 2.1rem; }
.v2 .bm-stat-v { font-size: 1.3rem; }

/* ---------- belka przełącznika wariantów ---------- */
#bm-switcher { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2000; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; max-width: calc(100vw - 24px); padding: 6px 14px; border-radius: 18px; background: #1b1f2a; color: #f4f6fb; border: 2px solid #f4c542; font: 12.5px/1.2 system-ui, sans-serif; box-shadow: 0 6px 22px rgba(0, 0, 0, .4); opacity: .96; }
#bm-switcher .bm-grp { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
#bm-switcher a { color: #f4f6fb; text-decoration: none; font-size: 15px; min-width: 24px; text-align: center; padding: 1px 6px; border-radius: 999px; background: #3a4154; }
#bm-switcher a:hover, #bm-switcher a:focus-visible { background: #f4c542; color: #1b1f2a; }
#bm-switcher a.bm-jump { font-size: 11.5px; } #bm-switcher a.bm-jump.on { background: #f4c542; color: #1b1f2a; font-weight: 700; }
#bm-switcher .bm-hint { color: #aeb6c8; font-size: 11px; border-left: 1px solid #4b5368; padding-left: 12px; }
.bm .content-footer { padding-bottom: 3.5rem; }
@media (max-width: 1199px) {
  .bm-listwrap, .bm-rec-cols, .v2 .bm-listwrap, .v2 .bm-rec-cols, .v3 .bm-rec-cols { grid-template-columns: minmax(0, 1fr); }
  .bm-filter, .bm-rec-nav { position: static; max-height: none; }
  .bm-search { max-width: none; } .layout-horizontal .layout-navbar { height: auto; min-height: 52px; }
}
@media (max-width: 575px) { #bm-switcher .bm-hint { display: none; } .bm-qbox { min-width: 100%; } }

/* ---------- kontrast tekstu ≥ 4,5:1 (kolory semantyczne szablonu są jaśniejsze) ---------- */
.bm .text-success { color: #14663a !important; } .bm .text-danger { color: #a82424 !important; } .bm .text-warning { color: #8a5200 !important; }
.bm .alert-success { color: #14663a; background: #e2f4ea; border-color: #bfe6cf; }
.bm .alert-info { color: #0b5972; background: #dcf1f8; border-color: #b9e2ee; }
.bm .alert-secondary { color: #3b4558; background: #e9edf4; border-color: #d3dae6; }
html[data-bs-theme="dark"] .bm .text-success { color: #7fdca6 !important; } html[data-bs-theme="dark"] .bm .text-danger { color: #f49a9a !important; }
html[data-bs-theme="dark"] .bm .alert-success { color: #9be3b9; background: #1d4a33; border-color: #2c6a4a; }
html[data-bs-theme="dark"] .bm .alert-info { color: #9bdcf0; background: #1b4553; border-color: #2a6076; }
html[data-bs-theme="dark"] .bm .alert-secondary { color: #cfd6e6; background: #2b3350; border-color: #3c4666; }
html[data-bs-theme="dark"] .bm a:not(.btn):not(.page-link):not(.badge):not(.menu-link):not(.dropdown-item):not(.list-group-item):not(.nav-link):not(.bm-view-toggle):not(.bm-jump) { color: #8db2f3; }
html[data-bs-theme="dark"] .bm .bm-tabs .nav-link.active, html[data-bs-theme="dark"] .bm-th:hover { color: #8db2f3 !important; border-bottom-color: #8db2f3; }
html[data-bs-theme="dark"] .bm-tabs .nav-link:not(.active) { color: #c9cfdc; }
.bm .navbar .avatar { width: 30px; height: 30px; display: inline-block; }
.bm .navbar .avatar .avatar-initial.bm-profile { width: 30px; height: 30px; font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.bm .bm-av { flex: 0 0 auto; }
@media (max-width: 1199px) { .v2 .bm-ftoggle { display: inline-flex; } }
