/* V5 — wzór: domyślna skórka Vuexy (białe karty z miękkim cieniem na jasnym tle, fioletowa karta-bohater, karty ze sparklinem i paskiem). Ładowany po v4.css. */
:root { --v5-shadow: 0 .25rem 1.125rem rgba(var(--t-shadow-rgb), .1); --v5-shadow-s: 0 .125rem .5rem rgba(var(--t-shadow-rgb), .1); }
body.v5 { background: linear-gradient(180deg, var(--t-bg-top) 0, var(--t-bg) 15rem) no-repeat, var(--t-bg); }
.v5 .layout-page { background: transparent; }
.v5 .bm-card, .v5 .card { border: 0 !important; box-shadow: var(--v5-shadow) !important; border-radius: .5rem; }
.v5 .bm-card .card-header.bm-ch { border-bottom: 0; padding: 1.25rem 1.5rem .5rem; }
.v5 .bm-card > .card-body { padding: 1.25rem 1.5rem; }
.v5 .bm-ul-plain .bm-li + .bm-li { border-top: 1px solid var(--t-line2); }
.v5 .layout-menu.menu-vertical { box-shadow: var(--v5-shadow-s); border-right: 0 !important; }
html.layout-navbar-fixed[data-variant="V5"] .layout-navbar.navbar-detached { box-shadow: var(--v5-shadow-s); border: 0; }
.v5 .bm-table thead th { background: var(--t-th); border-top: 0; border-bottom: 1px solid var(--t-line2); }
.v5 .bm-table td { border-color: var(--t-line2); }
.v5 .bm-strip .row > div + div { border-left-color: var(--t-line2); }
.v5 .bm-band { background: linear-gradient(100deg, var(--t-primary), var(--t-light)); }
.v5 .modal-content { border: 0; box-shadow: 0 .5rem 2.5rem rgba(var(--t-shadow-rgb), .22); }
.v5 .bm-choice { border-color: var(--t-line); }

/* karta-bohater (Analytics): fiolet, liczniki w półprzezroczystych plakietkach, ozdobna kula po prawej */
.bm-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--t-hero1, var(--t-primary)) 0, var(--t-hero2) 100%); color: #fff; border: 0 !important; box-shadow: var(--v5-shadow) !important; border-radius: .5rem; }
.bm-hero .card-body { position: relative; z-index: 1; padding: 1.5rem; min-height: 15.5rem; }
.bm-hero-t { color: #fff; font-size: 1.25rem; font-weight: 500; margin: 0 0 .15rem; }
.bm-hero-s { color: rgba(255, 255, 255, .88); font-size: .8125rem; }
.bm-hero-k { margin: 1.6rem 0 .75rem; font-weight: 500; }
.bm-hero-g { max-width: 30rem; }
.bm-hero-g > div { display: flex; align-items: center; white-space: nowrap; }
.bm-hero .bm-info { color: rgba(255, 255, 255, .78); font-size: .95rem; margin-left: .25rem; vertical-align: middle; }
.bm-hero .bm-info:hover, .bm-hero .bm-info:focus-visible { color: #fff; }
.bm-chip { display: inline-block; min-width: 3.4rem; padding: .2rem .55rem; margin-right: .6rem; border-radius: .375rem; background: rgba(255, 255, 255, .22); font-weight: 600; text-align: center; }
.bm-chip-l { font-weight: 500; font-size: .875rem; }
.bm-hero-art { position: absolute; right: -2.5rem; bottom: -3.5rem; width: 15rem; height: 15rem; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 210deg, var(--t-art1), var(--t-art2), var(--t-art3), var(--t-art1)); opacity: .9; box-shadow: inset -1.5rem -1.5rem 3rem rgba(var(--t-shadow-rgb), .45), 0 0 4rem rgba(var(--t-rgb), .25); }
.bm-hero-art::after { content: ""; position: absolute; inset: 22% 22%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%); }
@media (max-width: 575.98px) { .bm-hero-art { display: none; } }

/* mini-karty: tytuł, podtytuł, duża liczba; sparkline lub pasek udziału */
.bm-mini { overflow: hidden; }
.bm-mini-t { font-size: 1.125rem; font-weight: 500; color: var(--bs-heading-color); margin: 0; }
.bm-mini-s { color: var(--t-body); font-size: .8125rem; margin: .1rem 0 1rem; }
.bm-mini-v { font-size: 1.75rem; font-weight: 600; color: var(--bs-heading-color); line-height: 1.15; }
.bm-mini > .bm-chart { margin: -.25rem 0 -.5rem; }
.bm-mini > .bm-chart-pad { padding: 0 .75rem .75rem; }
.bm-vs .bm-l { display: block; color: var(--t-body); font-size: .8125rem; }
.bm-vs b { font-size: 1.125rem; font-weight: 600; color: var(--bs-heading-color); }
.bm-mini .progress { height: .5rem; background: var(--t-line2); border-radius: 1rem; overflow: hidden; }
.bm-mini .progress-bar { background: var(--t-primary); }
.bm-mini .progress-bar.bg-info { background: #00bad1 !important; }

/* ---------- motywy kolorystyczne V5 (?theme=zielen|lupek; „fiolet” = zmienne domyślne z v4.css) ----------
   Zieleń ICVC: kolory odczytane z icvc.eu (#14502d, #1a5632, #247d46, tint #dff3e7, nagłówki #103f25) + złoty akcent.
   Łupek: stonowany niebiesko-szary, niskie nasycenie, wysoki kontrast tekstu (cel: spokojne, długie czytanie). */
html[data-makieta-theme="zielen"] {
  --t-link2: #7a5c0a;
  --t-primary: #1a5632; --t-primary-d: #14502d; --t-btn: #1a5632; --t-btn-h: #14502d; --t-btn-a: #103f25; --t-text: #176e3f; --t-emph: #14502d; --t-light: #5fa57a;
  --t-subtle: #dff3e7; --t-subtle-b: #b7dcc5; --t-rgb: 26, 86, 50; --t-hero2: #247d46; --t-bg: #f5f8f6; --t-bg-top: #e3efe7; --t-head: #103f25; --t-body: #3f4a43;
  --t-mute: #66786d; --t-line: #d6e0d9; --t-line2: #e4ece7; --t-th: #eef4f0; --t-shadow-rgb: 18, 61, 39; --t-logo-accent: #bfe8cf;
  --t-art1: #dff3e7; --t-art2: #5fb987; --t-art3: #103f25;
  --t-c1: #1a5632; --t-c2: #c99a2e; --t-c3: #247d46; --t-c4: #7ab893; --t-c5: #8a948e; --t-c6: #d3dbd6;
}
.bm-dot { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; margin: 0 .15rem; border: 2px solid rgba(255, 255, 255, .55); vertical-align: middle; }
.bm-dot.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.v5 .bm-hero .bm-hero-t, .v5 .bm-hero .bm-hero-s, .v5 .bm-hero .bm-hero-k { color: #fff; }
.v5 .bm-hero .bm-hero-s { color: rgba(255, 255, 255, .9); }
.bm-mini .progress-bar.bg-info { background: var(--t-c2) !important; }

/* ---------- trzy kolejne motywy do długiej pracy przy ekranie ----------
   Morski: chłodny petrol, niskie nasycenie. Papier: ciepłe, „papierowe” tło i terakota zamiast błękitu (mniej męczy oczy). Noc: ciemny motyw (data-bs-theme=dark). */
html[data-makieta-theme="papier"] {
  --t-link2: #3d6f5b;
  --t-primary: #9a5532; --t-primary-d: #7e4727; --t-btn: #9a5532; --t-btn-h: #7e4727; --t-btn-a: #653a1f; --t-text: #8a4a2a; --t-emph: #6e3d22; --t-light: #c99a78;
  --t-subtle: #f5e8dd; --t-subtle-b: #e2c8b3; --t-rgb: 154, 85, 50; --t-hero2: #b2693f; --t-bg: #faf7f2; --t-bg-top: #f1e8da; --t-head: #3a2f27; --t-body: #5a4e44;
  --t-mute: #766a5f; --t-line: #e3dacd; --t-line2: #ede6db; --t-th: #f6f1e8; --t-shadow-rgb: 58, 47, 39; --t-logo-accent: #f3d9c4;
  --t-art1: #f6e3d3; --t-art2: #d49c76; --t-art3: #5a2f18;
  --t-c1: #9a5532; --t-c2: #5f8f7a; --t-c3: #d29b4a; --t-c4: #c99a78; --t-c5: #a39a90; --t-c6: #e0d9cd;
}
html[data-makieta-theme="noc"] {
  --t-link2: #6cd3c4;
  --t-primary: #5b8bd6; --t-primary-d: #4a7ac8; --t-btn: #4a7ac8; --t-btn-h: #3f6db5; --t-btn-a: #355d9d; --t-text: #8db4ee; --t-emph: #a9c6f2; --t-light: #6f97d6;
  --t-subtle: #26344d; --t-subtle-b: #35507c; --t-rgb: 91, 139, 214; --t-hero2: #3f6db5; --t-bg: #181c24; --t-bg-top: #1f2530; --t-head: #e8ecf2; --t-body: #b4bcc9;
  --t-mute: #8d97a8; --t-line: #343c4b; --t-line2: #2b3341; --t-th: #272e3b; --t-shadow-rgb: 0, 0, 0; --t-logo-accent: #cfe0ff;
  --t-art1: #2a3f66; --t-art2: #5b8bd6; --t-art3: #0f1a2e;
  --t-c1: #6f9be0; --t-c2: #e3b25c; --t-c3: #57b3a6; --t-c4: #8e9fd0; --t-c5: #7b8594; --t-c6: #3b4455;
  --bs-paper-bg: #222833; --bs-paper-bg-rgb: 34, 40, 51; --bs-body-bg: #181c24; --bs-body-bg-rgb: 24, 28, 36; --bs-border-color: #343c4b; --bs-card-bg: #222833;
}
html[data-makieta-theme="noc"] .badge.bg-label-success { color: #6fd79b !important; }
html[data-makieta-theme="noc"] .badge.bg-label-warning { color: #f0b565 !important; }
html[data-makieta-theme="noc"] .badge.bg-label-danger { color: #f29c94 !important; }
html[data-makieta-theme="noc"] .badge.bg-label-info { color: #6cd3e3 !important; }
html[data-makieta-theme="noc"] .badge.bg-label-secondary, html[data-makieta-theme="noc"] .btn-label-secondary { color: #b7c0cf !important; }
html[data-makieta-theme="noc"] .badge.bg-label-primary { color: #a9c6f2 !important; }
html[data-makieta-theme="noc"] .bm-mock { background: #3a2f1a; color: #f0b565; }
html[data-makieta-theme="noc"] .bm-fav.on { color: #f0b565; }
html[data-makieta-theme="noc"] .bm-table tbody tr:hover { background: rgba(255, 255, 255, .04); }
html[data-makieta-theme="noc"] .bm-table td a:not(.btn):hover { color: #a9c6f2; }
html[data-makieta-theme="noc"] .bm-mini-s, html[data-makieta-theme="noc"] .bm-vs .bm-l { color: var(--t-mute); }
html[data-makieta-theme="noc"] .form-control, html[data-makieta-theme="noc"] .form-select { background-color: #1b212b; border-color: var(--t-line); color: var(--t-body); }
html[data-makieta-theme="noc"] .progress, html[data-makieta-theme="noc"] .bm-mini .progress { background: #343c4b; }
html[data-makieta-theme="noc"] .alert-success { background: #1d3a2c; color: #9be0bb; border-color: #2a5a42; }
html[data-makieta-theme="noc"] .bm-band { background: linear-gradient(100deg, #2a3f66, #3f6db5); }
html[data-makieta-theme="noc"] .bm-hero { background: linear-gradient(135deg, #2c4a80, #3f6db5); }

/* ---------- zestawy czcionek (?font=): zmienne --f-body, --f-head, --f-num; „public” = domyślne z demem ---------- */
html[data-font="inter"] { --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --f-head: var(--f-body); --f-num: var(--f-body); }
html[data-font="plex"] { --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --f-head: var(--f-body); --f-num: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; }
html[data-font="manrope"] { --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; --f-head: "Manrope", "Source Sans 3", system-ui, sans-serif; --f-num: "Manrope", "Source Sans 3", sans-serif; }
html:not([data-font="public"]) { --bs-font-sans-serif: var(--f-body); --bs-body-font-family: var(--f-body); }
html:not([data-font="public"]) body.bm, html:not([data-font="public"]) .bm .layout-page, html:not([data-font="public"]) .bm .btn, html:not([data-font="public"]) .bm .form-control,
html:not([data-font="public"]) .bm .form-select, html:not([data-font="public"]) .bm .dropdown-menu, html:not([data-font="public"]) #bm-switcher { font-family: var(--f-body); }
html:not([data-font="public"]) .bm h1, html:not([data-font="public"]) .bm h2, html:not([data-font="public"]) .bm h3, html:not([data-font="public"]) .bm h4, html:not([data-font="public"]) .bm h5,
html:not([data-font="public"]) .bm h6, html:not([data-font="public"]) .bm .card-title, html:not([data-font="public"]) .bm .bm-mini-t, html:not([data-font="public"]) .bm .bm-hero-t,
html:not([data-font="public"]) .bm .modal-title, html:not([data-font="public"]) .bm-brand-text { font-family: var(--f-head); }
html:not([data-font="public"]) .bm .bm-strip-v, html:not([data-font="public"]) .bm .bm-stat-v, html:not([data-font="public"]) .bm .bm-mini-v, html:not([data-font="public"]) .bm .bm-cal-n,
html:not([data-font="public"]) .bm .bm-vs b, html:not([data-font="public"]) .bm .bm-chip { font-family: var(--f-num); }
/* liczby w tabelach i wskaźnikach zawsze tabelaryczne (kolumny równo, łatwiejsze porównywanie) */
.bm-table td, .bm-strip-v, .bm-stat-v, .bm-mini-v, .bm-cal-n, .bm-vs b, .bm-chip { font-variant-numeric: tabular-nums; }
html[data-font="plex"] .bm-strip-v, html[data-font="plex"] .bm-stat-v, html[data-font="plex"] .bm-mini-v { font-weight: 500; letter-spacing: -.01em; }

/* Błękit — kolory z wzorca użytkownika (karta „Total Revenue”): #4680ff, tekst pomocniczy #a3c0ff. Biały tekst na samym #4680ff ma 3,6:1, więc przyciski, aktywne menu
   i początek karty głównej używają ciemniejszego #2f66e0 (5,1:1), a #4680ff zostaje na wypełnieniach (paski, wykresy, ikony, koniec gradientu). */
html[data-makieta-theme="blekit"] {
  --t-link2: #0a6f6b;
  --t-primary: #4680ff; --t-primary-d: #3a70ec; --t-btn: #2f66e0; --t-btn-h: #2a5bd0; --t-btn-a: #234fba; --t-text: #2a58c4; --t-emph: #234a9e; --t-light: #8fb0ff;
  --t-subtle: #e6eeff; --t-subtle-b: #bcd2ff; --t-rgb: 70, 128, 255; --t-hero1: #2f66e0; --t-hero2: #4680ff; --t-bg: #f4f7fc; --t-bg-top: #e3ecfb; --t-head: #1b2a4a; --t-body: #4a5670;
  --t-mute: #66738c; --t-line: #dbe3f0; --t-line2: #e7edf6; --t-th: #f0f4fb; --t-shadow-rgb: 27, 42, 74; --t-logo-accent: #cfe0ff;
  --t-art1: #cfe0ff; --t-art2: #8fb0ff; --t-art3: #1f3f8f;
  --t-c1: #4680ff; --t-c2: #2ed8b6; --t-c3: #ffb64d; --t-c4: #8fb0ff; --t-c5: #9aa6bd; --t-c6: #d4dcea;
}
html[data-makieta-theme="blekit"] .bm-hero-s { color: #e3ecff; }
/* Noc: reguła „ciemne linki” z makieta.css ma bardzo wysoką specyficzność — role linków wymuszamy tu */
html[data-makieta-theme="noc"] .bm .bm-table td a:not(.btn):not(.menu-link):not(.nav-link):not(.dropdown-item),
html[data-makieta-theme="noc"] .bm .bm-li .bm-li-main > a:not(.btn), html[data-makieta-theme="noc"] .bm .bm-li a.fw-medium:not(.btn) { color: var(--t-head) !important; }
html[data-makieta-theme="noc"] .bm .bm-table td a:not(.btn):not(.menu-link):not(.nav-link):not(.dropdown-item):hover,
html[data-makieta-theme="noc"] .bm .bm-li .bm-li-main > a:not(.btn):hover, html[data-makieta-theme="noc"] .bm .bm-li a.fw-medium:not(.btn):hover { color: var(--t-text) !important; text-decoration: underline; }
html[data-makieta-theme="noc"] .bm .bm-table td .bm-sub a:not(.btn):not(.menu-link):not(.nav-link):not(.dropdown-item), html[data-makieta-theme="noc"] .bm .bm-li .bm-sub a:not(.btn):not(.menu-link):not(.nav-link):not(.dropdown-item) { color: var(--t-link2) !important; font-weight: 500; }

/* karta „Usługi z kwalifikacją”: wskaźnik półkolisty + legenda z liczbami i udziałami */
.bm-mini-of { font-size: .9375rem; font-weight: 400; color: var(--t-body); }
.bm-stack { display: flex; height: .75rem; border-radius: 1rem; overflow: hidden; background: #e7ebf3; margin-top: 1rem; }
.bm-stack > span { display: block; height: 100%; }
.bm-stack > span + span { border-left: 2px solid #fff; }
.bm-leg-row { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .875rem; border-top: 1px solid var(--t-line2); }
.bm-leg-row:first-child { border-top: 0; }
.bm-leg-dot { width: .65rem; height: .65rem; border-radius: 50%; flex: none; background: #c9cfdc; }
.bm-leg-zsk { background: #00bad1; } .bm-leg-non { background: #2f6fdb; } .bm-leg-none { background: #c9cfdc; }
.bm-leg-l { flex: 1; color: var(--t-body); } .bm-leg-n { color: var(--bs-heading-color); font-weight: 600; } .bm-leg-p { min-width: 3.4rem; text-align: right; color: var(--t-body); }
