/*!
 * BizMaster365 — Stil365 izgled za panel (Filament).
 * Boje i mere su iz Stil365 admin kita v2 (assets/stil365.css). Menjajte ih u bloku :root ispod.
 * Powered by SoftMaster365 — www.softmaster365.com
 */

/* ============ 1. Boje i mere (iz Stil365) ============ */
:root {
  --s-bg: #f4f5f7; --s-panel: #ffffff; --s-panel-2: #fbfcfe; --s-ink: #1c2230; --s-muted: #5e6678;
  --s-line: #e3e6ec; --s-line-2: #d5dae3; --s-soft: #f7f8fa; --s-hover: #f1f4f9; --s-input: #ffffff;
  --s-brand: #1f3a68; --s-brand-hover: #2c5299; --s-brand-2: #2c5299; --s-brand-text: #1f3a68; --s-brand-soft: #e8eef8;
  --s-topbar: var(--s-brand); --s-accent: #c8102e;
  --s-ok-bg: #e3f4ea; --s-ok-ink: #1a6b43; --s-warn-bg: #fdf1dc; --s-warn-ink: #8a5a0c;
  --s-bad-bg: #fde7e5; --s-bad-ink: #a01f15; --s-info-bg: #e4ecfa; --s-info-ink: #244a8c;
  --s-neutral-bg: #eef0f4; --s-neutral-ink: #454c5c;
  --s-shadow-sm: 0 1px 2px rgba(16,24,40,.05); --s-shadow: 0 4px 16px rgba(20,30,50,.08);
  --s-ring: 0 0 0 3px rgba(44,82,153,.22);
  --s-radius: 8px; --s-top: 56px;
  --s-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-family: var(--s-font) !important;
}
:root.dark {
  --s-bg: #0e131d; --s-panel: #161c29; --s-panel-2: #1b2232; --s-ink: #e6e9f0; --s-muted: #9aa3b5;
  --s-line: #252d3e; --s-line-2: #343d52; --s-soft: #1a2130; --s-hover: #212a3b; --s-input: #111723;
  --s-brand: #3567c4; --s-brand-hover: #2c59ad; --s-brand-2: #86acf3; --s-brand-text: #a9c3f7; --s-brand-soft: #1d2a45;
  --s-topbar: #121928; --s-accent: #ef5a5f;
  --s-ok-bg: rgba(63,185,124,.14); --s-ok-ink: #7cd9a8; --s-warn-bg: rgba(224,162,59,.14); --s-warn-ink: #f0c174;
  --s-bad-bg: rgba(240,106,95,.14); --s-bad-ink: #f7a39b; --s-info-bg: rgba(109,156,240,.15); --s-info-ink: #a9c3f7;
  --s-neutral-bg: #252d3e; --s-neutral-ink: #c3c9d6;
  --s-shadow-sm: 0 1px 2px rgba(0,0,0,.3); --s-shadow: 0 6px 20px rgba(0,0,0,.35); --s-ring: 0 0 0 3px rgba(134,172,243,.28);
}

/* ============ 2. Osnova ============ */
html, body.fi-body { font-family: var(--s-font); }
body.fi-body { background: var(--s-bg); color: var(--s-ink); font-size: 15px; -webkit-font-smoothing: antialiased; }
.fi-body :focus-visible { outline: 2px solid var(--s-brand-2); outline-offset: 2px; }

/* ============ 3. Gornja traka ============ */
.fi-topbar-ctn { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.fi-topbar { height: var(--s-top); min-height: var(--s-top); background: var(--s-topbar) !important; color: #fff;
  box-shadow: none !important; border: 0 !important; --tw-ring-shadow: 0 0 #0000; }
.fi-topbar .fi-icon-btn { color: rgba(255,255,255,.88); }
.fi-topbar .fi-icon-btn:hover, .fi-topbar .fi-icon-btn:focus-visible { background: rgba(255,255,255,.14); color: #fff; }
.fi-topbar :focus-visible { outline-color: #fff; }

/* logo: znak (moduli) + naziv + podnaslov */
.bm-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; white-space: nowrap; }
.bm-brand b { font-size: 1.12rem; letter-spacing: -.02em; font-weight: 800; }
.bm-365 { font-weight: 500; opacity: .78; }
.bm-brand small { color: rgba(255,255,255,.78); font-size: .9rem; font-weight: 400; }
.bm-mark { display: inline-block; width: 26px; height: 26px; flex: none; color: #fff; }
.fi-sidebar-header .bm-brand { color: var(--s-brand-text); }
.fi-sidebar-header .bm-brand small { color: var(--s-muted); }
.fi-sidebar-header .bm-mark { color: var(--s-brand); }
.fi-sidebar-header { background: var(--s-panel); box-shadow: none !important; border-bottom: 1px solid var(--s-line); }

/* pretraga u gornjoj traci */
.fi-topbar .fi-global-search-field .fi-input-wrp { background: rgba(255,255,255,.14) !important; border: 1px solid transparent !important;
  box-shadow: none !important; min-width: 300px; }
.fi-topbar .fi-global-search-field .fi-input-wrp:focus-within { background: rgba(255,255,255,.22) !important; outline: 2px solid rgba(255,255,255,.55); }
.fi-topbar .fi-global-search-field input { color: #fff !important; }
.fi-topbar .fi-global-search-field input::placeholder { color: rgba(255,255,255,.7) !important; }
.fi-topbar .fi-global-search-field .fi-icon { color: rgba(255,255,255,.7) !important; }

/* ============ 4. Bočni meni ============ */
.fi-sidebar { background: var(--s-panel) !important; border-right: 1px solid var(--s-line); box-shadow: none !important; }
.fi-sidebar-nav { padding: .75rem .55rem 1rem !important; row-gap: .25rem; }
.fi-sidebar-nav-groups { row-gap: .6rem !important; margin-inline: 0 !important; }
.fi-sidebar-group-btn { padding: .35rem .7rem .2rem !important; }
.fi-sidebar-group-label { font-size: .72rem !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .06em; color: var(--s-muted) !important; }
.fi-sidebar-group-items { row-gap: 2px !important; }
.fi-sidebar-item-btn { border-radius: var(--s-radius) !important; padding: .5rem .7rem !important; gap: .65rem !important; color: var(--s-ink); }
.fi-sidebar-item-btn:hover, .fi-sidebar-item-btn:focus-visible { background: var(--s-hover) !important; }
.fi-sidebar-item-label { color: var(--s-ink) !important; font-weight: 500 !important; font-size: .94rem; }
.fi-sidebar-item-icon { width: 18px !important; height: 18px !important; color: var(--s-ink) !important; opacity: .72; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--s-brand) !important; box-shadow: var(--s-shadow-sm); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon { color: #fff !important; opacity: 1; }
.fi-sidebar-item-badge-ctn .fi-badge { background: var(--s-neutral-bg); color: var(--s-ink); }
.fi-sidebar-item.fi-active .fi-badge { background: rgba(255,255,255,.2); color: #fff; }

/* ============ 5. Zaglavlje strane ============ */
.fi-main { padding-top: 1.25rem; }
.fi-breadcrumbs { font-size: .86rem; }
.fi-breadcrumbs-item-label { color: var(--s-muted) !important; font-weight: 400 !important; }
.fi-breadcrumbs-item-label:hover { color: var(--s-brand-2) !important; }
.fi-header-heading { font-size: 1.45rem !important; line-height: 1.25 !important; font-weight: 700 !important; letter-spacing: -.01em !important; color: var(--s-ink); }
.fi-header-subheading { color: var(--s-muted); }
.fi-header { gap: .5rem !important; margin-bottom: .25rem; }

/* ============ 6. Kartice i sekcije ============ */
.fi-section:not(.fi-section-not-contained), .fi-ta-ctn, .fi-wi-stats-overview-stat, .fi-fo-repeater-item, .fi-wi-widget > .fi-section {
  background: var(--s-panel) !important; border-radius: var(--s-radius) !important;
  box-shadow: var(--s-shadow-sm) !important; border: 1px solid var(--s-line); --tw-ring-shadow: 0 0 #0000; }
.fi-section-header { padding: .85rem 1.1rem !important; }
.fi-section-header-heading { color: var(--s-brand-text) !important; font-weight: 700 !important; font-size: 1rem !important; }
.fi-section-header-description { color: var(--s-muted) !important; }
.fi-section-content-ctn { border-color: var(--s-line) !important; }
.fi-section-content { padding: 1rem 1.1rem !important; }

/* ============ 7. Polja ============ */
.fi-fo-field-label-content, .fi-fo-field-label { color: var(--s-ink) !important; font-weight: 500 !important; font-size: .88rem !important; }
.fi-fo-field-label-required-mark { color: var(--s-accent) !important; }
.fi-input-wrp { background: var(--s-input) !important; border: 1px solid var(--s-line-2) !important; border-radius: 6px !important;
  box-shadow: none !important; --tw-ring-shadow: 0 0 #0000; transition: border-color .15s, box-shadow .15s; }
.fi-input-wrp:focus-within { border-color: var(--s-brand-2) !important; box-shadow: var(--s-ring) !important; }
.fi-input-wrp.fi-invalid { border-color: #b42318 !important; }
.fi-input-wrp.fi-disabled { background: var(--s-soft) !important; }
.fi-input, .fi-select-input, .fi-input-wrp input, .fi-input-wrp select, .fi-input-wrp textarea { color: var(--s-ink); font-size: .94rem; }
.fi-input-wrp-prefix, .fi-input-wrp-suffix { color: var(--s-muted); border-color: var(--s-line-2) !important; }
.fi-fo-field-wrp-helper-text, .fi-sc-text { color: var(--s-muted); }
.fi-checkbox-input { border-radius: 4px !important; }
.fi-fo-key-value-table-ctn, .fi-fo-key-value { border-radius: 6px; }

/* ============ 8. Dugmad ============ */
.fi-btn { border-radius: 6px !important; font-weight: 600 !important; min-height: 38px; padding-inline: .9rem !important; box-shadow: var(--s-shadow-sm); }
.fi-btn.fi-size-sm, .fi-btn.fi-size-xs { min-height: 30px; padding-inline: .6rem !important; }
.fi-btn.fi-outlined, .fi-btn.fi-color-gray { background: var(--s-panel); border: 1px solid var(--s-line-2); --tw-ring-shadow: 0 0 #0000; color: var(--s-ink); }
.fi-btn.fi-color-gray:hover { background: var(--s-hover) !important; }
.fi-btn:active { transform: translateY(1px); }
.fi-icon-btn { border-radius: 6px !important; }
.fi-link { font-weight: 600; }
.fi-ac-link-action, .fi-ta-actions .fi-link { color: var(--s-muted) !important; }
.fi-ta-row:hover .fi-ta-actions .fi-link { color: var(--s-brand-2) !important; }
.fi-ta-actions .fi-link .fi-icon { opacity: .9; }

/* ============ 9. Tabele ============ */
.fi-ta-ctn { overflow: hidden; }
.fi-ta-header-toolbar { padding: .65rem .8rem !important; border-color: var(--s-line) !important; }
.fi-ta-table { font-size: .94rem; }
.fi-ta-table > thead > tr { background: var(--s-soft) !important; }
.fi-ta-header-cell, .fi-ta-header-cell-sort-btn { font-size: .74rem !important; font-weight: 600 !important; text-transform: uppercase;
  letter-spacing: .05em; color: var(--s-muted) !important; white-space: nowrap; }
.fi-ta-header-cell { background: var(--s-soft) !important; padding-top: .6rem !important; padding-bottom: .6rem !important; }
.fi-ta-table > tbody > tr, .fi-ta-row { border-color: var(--s-line) !important; transition: background .12s; }
.fi-ta-row:hover, .fi-ta-row:hover > td { background: var(--s-panel-2) !important; }
.fi-ta-row.fi-selected, .fi-ta-row.fi-selected > td { background: var(--s-brand-soft) !important; }
.fi-ta-text-item { color: var(--s-ink); }
.fi-ta-cell:first-child .fi-ta-text-item, .fi-ta-cell:nth-child(2) .fi-ta-text-item { font-weight: 600; }
.fi-ta-text-item.fi-color-gray, .fi-ta-placeholder { color: var(--s-muted) !important; }
.fi-ta-summary-row, .fi-ta-summary-header-row { background: var(--s-soft) !important; font-weight: 600; }
.fi-ta-empty-state-heading { color: var(--s-ink); }
.fi-ta-search-field .fi-input-wrp { min-width: 260px; }

/* ============ 10. Oznake (status) ============ */
.fi-badge { border-radius: 99px !important; font-size: .75rem !important; font-weight: 600 !important; padding: .1rem .55rem !important;
  line-height: 1.5 !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000; border: 0 !important; gap: .3rem;
  background: var(--s-neutral-bg) !important; color: var(--s-neutral-ink) !important; }
.fi-badge.fi-color-success { background: var(--s-ok-bg) !important; color: var(--s-ok-ink) !important; }
.fi-badge.fi-color-warning { background: var(--s-warn-bg) !important; color: var(--s-warn-ink) !important; }
.fi-badge.fi-color-danger { background: var(--s-bad-bg) !important; color: var(--s-bad-ink) !important; }
.fi-badge.fi-color-info, .fi-badge.fi-color-primary { background: var(--s-info-bg) !important; color: var(--s-info-ink) !important; }
.fi-badge.fi-color-success::before, .fi-badge.fi-color-warning::before, .fi-badge.fi-color-danger::before,
.fi-badge.fi-color-info::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; flex: none; }
.fi-badge .fi-badge-label, .fi-badge span { color: inherit !important; }

/* ============ 11. Strane, tabovi, filteri ============ */
.fi-pagination-item-btn { border-radius: 6px !important; }
.fi-pagination-item.fi-active .fi-pagination-item-btn { background: var(--s-brand) !important; }
.fi-pagination-item.fi-active .fi-pagination-item-label { color: #fff !important; }
.fi-tabs { border-radius: var(--s-radius); }
.fi-tabs-item.fi-active { color: var(--s-brand-text); }
.fi-dropdown-panel { border-radius: var(--s-radius) !important; box-shadow: var(--s-shadow) !important; }
.fi-modal-window { border-radius: 12px !important; }
.fi-no-notification { border-radius: var(--s-radius) !important; box-shadow: var(--s-shadow) !important; }

/* ============ 12. Podnožje ============ */
.bm-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: 2.5rem 2rem 0; padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--s-line); color: var(--s-muted); font-size: .82rem; }
.bm-footer a { color: inherit; font-weight: 600; }

/* ============ 13. Prijava: podeljen ekran ============ */
.fi-simple-layout:has(.bm-auth-side) { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; background: var(--s-panel); }
.fi-simple-layout:has(.bm-auth-side) .fi-simple-main-ctn { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 2rem; }
.fi-simple-layout:has(.bm-auth-side) .fi-simple-main { background: transparent !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000;
  border: 0 !important; width: 100%; max-width: 400px !important; padding: 2rem 0 !important; margin: auto; }
.fi-simple-layout:has(.bm-auth-side) .fi-simple-header { align-items: flex-start !important; text-align: left; }
.fi-simple-layout:has(.bm-auth-side) .fi-simple-header .fi-logo { display: none; }
.fi-simple-header-heading { font-size: 1.65rem !important; font-weight: 700 !important; letter-spacing: -.01em; text-align: left !important; }
.fi-simple-header-subheading { text-align: left !important; color: var(--s-muted); }
.fi-simple-layout:has(.bm-auth-side) .fi-input-wrp { min-height: 42px; }
.fi-simple-layout:has(.bm-auth-side) .fi-btn.fi-color-primary { min-height: 44px; font-size: .98rem; }
.bm-auth-foot { margin-top: auto; padding-top: 1rem; text-align: center; font-size: .78rem; color: var(--s-muted); }
.bm-auth-foot a { color: inherit; font-weight: 600; }

.bm-auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 2.5rem 3rem; color: #fff; min-height: 100vh;
  background: radial-gradient(120% 80% at 0% 0%, #2c5299 0%, transparent 60%), radial-gradient(90% 70% at 100% 100%, #c8102e33 0%, transparent 60%), #1a3260; }
.dark .bm-auth-side { background: radial-gradient(120% 80% at 0% 0%, #23427c 0%, transparent 60%), radial-gradient(90% 70% at 100% 100%, #c8102e26 0%, transparent 60%), #0f1a30; }
.bm-auth-side::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(80% 70% at 30% 40%, #000 30%, transparent 80%); }
.bm-auth-side > * { position: relative; }
.bm-auth-brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.bm-auth-brand .bm-mark { width: 34px; height: 34px; color: #fff; }
.bm-auth-pitch { margin: auto 0; max-width: 470px; padding: 2rem 0; }
.bm-auth-pitch h2 { font-size: 2rem; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 1rem; font-weight: 700; }
.bm-auth-pitch p { color: rgba(255,255,255,.78); font-size: 1.02rem; margin: 0 0 1.5rem; }
.bm-auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.bm-auth-points li { display: flex; align-items: flex-start; gap: .7rem; color: rgba(255,255,255,.92); }
.bm-auth-points .pt-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: rgba(255,255,255,.12); }
.bm-auth-points .pt-ico svg { width: 18px; height: 18px; }
.bm-auth-points b { display: block; font-weight: 600; } .bm-auth-points small { color: rgba(255,255,255,.7); font-size: .86rem; }
.bm-auth-card { margin-top: 2rem; max-width: 340px; padding: 1rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.bm-auth-card .row1 { display: flex; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.75); }
.bm-auth-card .row1 em { font-style: normal; color: #86efac; font-weight: 600; }
.bm-auth-card b { display: block; font-size: 1.5rem; margin: .2rem 0 .5rem; }
.bm-auth-card .bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.bm-auth-card .bars i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255,255,255,.35); }
.bm-auth-card .bars i:last-child { background: #fff; }
.bm-auth-legal { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: rgba(255,255,255,.6); }
.bm-auth-legal a { color: rgba(255,255,255,.8); }

/* ============ 14. Telefon i tablet ============ */
@media (max-width: 900px) {
  .fi-simple-layout:has(.bm-auth-side) { grid-template-columns: 1fr; }
  .bm-auth-side { display: none; }
  .fi-simple-layout:has(.bm-auth-side) .fi-simple-header .fi-logo { display: block; }
  .bm-brand small { display: none; }
  .fi-topbar .fi-global-search-field .fi-input-wrp { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .fi-body * { transition: none !important; animation: none !important; } }

/* tamna tema: glavno dugme u svetlijoj boji brenda, kao u kitu */
.dark .fi-btn.fi-color-primary:not(.fi-outlined) { background-color: var(--s-brand) !important; color: #fff !important; }
.dark .fi-btn.fi-color-primary:not(.fi-outlined):hover { background-color: var(--s-brand-hover) !important; }

/* ============ 15. Komponente iz kita: kartica, oznake, pločice, tabela ============ */
.bm-stack { display: grid; gap: 1rem; }
.bm-card { background: var(--s-panel); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 1rem 1.1rem; box-shadow: var(--s-shadow-sm); color: var(--s-ink); }
.bm-card > h2, .bm-card-head h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .8rem; color: var(--s-ink); }
.bm-card h3 { font-size: .95rem; font-weight: 700; color: var(--s-brand-text); margin: 0 0 .5rem; }
.bm-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.bm-card-head h2 { margin: 0; }
.bm-muted { color: var(--s-muted); } .bm-mono { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.bm-lead { color: var(--s-muted); margin: 0; max-width: 70ch; }
.bm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.25rem; }
.bm-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.bm-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 99px; font-size: .75rem; font-weight: 600;
  white-space: nowrap; background: var(--s-neutral-bg); color: var(--s-neutral-ink); line-height: 1.5; }
.bm-tag.has-dot::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.bm-tag.ok { background: var(--s-ok-bg); color: var(--s-ok-ink); } .bm-tag.warn { background: var(--s-warn-bg); color: var(--s-warn-ink); }
.bm-tag.bad { background: var(--s-bad-bg); color: var(--s-bad-ink); } .bm-tag.info { background: var(--s-info-bg); color: var(--s-info-ink); }
.bm-kv { display: grid; grid-template-columns: minmax(140px, 42%) 1fr; gap: .35rem .75rem; margin: 0; font-size: .92rem; }
.bm-kv dt { color: var(--s-muted); } .bm-kv dd { margin: 0; }
.bm-kv-2 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr) minmax(140px, 1fr)); }
.bm-formula { margin: .8rem 0 0; font-size: .82rem; color: var(--s-muted); }
.bm-flash { padding: .7rem 1rem; border-radius: var(--s-radius); border: 1px solid; display: grid; gap: .25rem; font-size: .92rem; }
.bm-flash.warn { background: var(--s-warn-bg); color: var(--s-warn-ink); border-color: #f3dca8; }
.dark .bm-flash.warn { border-color: rgba(224,162,59,.35); }
.bm-flash a { font-weight: 600; color: inherit; text-decoration: underline; }

.bm-machine-head { display: grid; grid-template-columns: 160px 1fr auto; gap: 1.25rem; align-items: start; }
.bm-machine-photo img, .bm-machine-photo .bm-ph { width: 160px; height: 140px; border-radius: var(--s-radius); object-fit: cover; border: 1px solid var(--s-line); }
.bm-machine-photo .bm-ph { display: grid; place-items: center; background: var(--s-soft); color: var(--s-muted); }
.bm-machine-photo .bm-ph svg { width: 36px; height: 36px; }
.bm-machine-figs { display: grid; grid-template-columns: repeat(2, minmax(120px, auto)); gap: .6rem 1.4rem; text-align: right; }
.bm-machine-figs span { display: block; font-size: .8rem; color: var(--s-muted); }
.bm-machine-figs b { font-size: 1.15rem; } .bm-machine-figs small { font-weight: 500; color: var(--s-muted); }

.bm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.bm-stat { background: var(--s-panel); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: .9rem 1.1rem; box-shadow: var(--s-shadow-sm); border-top: 3px solid var(--s-brand-2); }
.bm-stat.warn { border-top-color: #b7791f; }
.bm-stat > span { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--s-muted); }
.bm-stat > b { display: block; font-size: 1.45rem; margin: .25rem 0 .15rem; color: var(--s-ink); }
.bm-stat > b small { font-size: .78rem; font-weight: 500; }
.bm-stat > small { color: var(--s-muted); font-size: .82rem; }
.bm-bar { display: block; height: 6px; border-radius: 99px; background: var(--s-line); margin-top: .5rem; overflow: hidden; }
.bm-bar > i { display: block; height: 100%; background: var(--s-brand-2); border-radius: inherit; }

.bm-tbl { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .92rem; }
.bm-tbl th, .bm-tbl td { padding: .55rem .65rem; border-bottom: 1px solid var(--s-line); text-align: left; }
.bm-tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--s-muted); background: var(--s-soft); font-weight: 600; }
.bm-tbl tbody tr:hover td { background: var(--s-panel-2); }
.bm-tbl .num, .bm-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bm-tbl .nowrap { white-space: nowrap; }

/* ============ 16. Pomoć ============ */
.bm-help { display: grid; gap: 1rem; font-size: .94rem; line-height: 1.5; color: var(--s-ink); }
.bm-help h3 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--s-brand-text); margin: 0 0 .35rem; }
.bm-help p { margin: 0; }
.bm-help ol, .bm-help ul, .bm-help-page ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.bm-help ol { list-style: decimal; } .bm-help ul { list-style: disc; } .bm-help-page ol { list-style: decimal; }
.bm-help-tips { background: var(--s-brand-soft); border-radius: var(--s-radius); padding: .75rem .9rem; }
.bm-help-more a { font-weight: 600; color: var(--s-brand-2); }
.bm-help-page { display: grid; gap: 1rem; }
.bm-help-page .bm-card { scroll-margin-top: 80px; }
.bm-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bm-chip { padding: .3rem .75rem; border: 1px solid var(--s-line-2); border-radius: 99px; background: var(--s-panel); color: var(--s-ink); font-size: .86rem; font-weight: 500; }
.bm-chip:hover { background: var(--s-hover); text-decoration: none; }
.bm-glossary { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: .5rem 1rem; margin: 0; }
.bm-glossary dt { font-weight: 700; } .bm-glossary dd { margin: 0; color: var(--s-ink); }
.fi-fo-field-label-ctn .fi-icon, .fi-fo-field-hint .fi-icon { color: var(--s-brand-2) !important; opacity: .75; }
.fi-fo-field-hint .fi-icon:hover { opacity: 1; }
@media (max-width: 900px) { .bm-machine-head { grid-template-columns: 1fr; } .bm-machine-figs { text-align: left; } .bm-glossary { grid-template-columns: 1fr; } }

/* ============ 17. Rad u pogonu: traka izbora, polja u tabeli, kartice pogona ============ */
.bm-toolbar, .bm-toolbar-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.bm-toolbar-row > .bm-toolbar { flex: 0 1 auto; }
.bm-field { display: grid; gap: .3rem; font-size: .86rem; font-weight: 500; color: var(--s-ink); }
.bm-date { display: inline-flex; align-items: center; gap: .3rem; }
.bm-input { min-height: 38px; padding: .4rem .6rem; border: 1px solid var(--s-line-2); border-radius: 6px; background: var(--s-input);
  color: var(--s-ink); font: inherit; font-size: .92rem; width: 100%; box-sizing: border-box; }
.bm-input:focus { outline: none; border-color: var(--s-brand-2); box-shadow: var(--s-ring); }
.bm-input:disabled { background: var(--s-soft); color: var(--s-muted); }
select.bm-input { padding-right: 1.8rem; }
.bm-num { width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; }
select.bm-num { width: 4.5rem; text-align: left; }
.bm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 38px; padding: .4rem .85rem;
  border: 1px solid var(--s-line-2); border-radius: 6px; background: var(--s-panel); color: var(--s-ink); font: inherit; font-weight: 600;
  font-size: .9rem; cursor: pointer; box-shadow: var(--s-shadow-sm); white-space: nowrap; text-decoration: none; }
.bm-btn:hover { background: var(--s-hover); text-decoration: none; }
.bm-btn:disabled { opacity: .45; cursor: not-allowed; }
.bm-btn.sm { min-height: 38px; min-width: 34px; padding: .2rem .5rem; font-size: 1.1rem; line-height: 1; }
.bm-btn.primary { background: var(--s-brand); border-color: var(--s-brand); color: #fff; }
.bm-btn.primary:hover { background: var(--s-brand-hover); }
.bm-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bm-pad { padding: 1rem 1.1rem; } .bm-card.bm-pad0 { padding: 0; } .bm-card-head.bm-pad { margin: 0; border-bottom: 1px solid var(--s-line); }
.bm-small { font-size: .86rem; margin: 0 0 .8rem; }
.bm-tblwrap { overflow-x: auto; }
.bm-tbl-form { margin-top: 0; }
.bm-tbl-form td { vertical-align: middle; padding-top: .45rem; padding-bottom: .45rem; }
.bm-tbl-form tr.bm-row-empty td:first-child { box-shadow: inset 3px 0 0 #b7791f; }
.bm-q { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 99px; border: 1px solid currentColor; font-size: .62rem;
  font-weight: 700; color: var(--s-brand-2); text-transform: none; letter-spacing: 0; vertical-align: 1px; cursor: help; }
th[title] { cursor: help; }
.bm-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; white-space: nowrap; }
.bm-check input { width: 16px; height: 16px; accent-color: var(--s-brand); }
.bm-form-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem 1.1rem; border-top: 1px solid var(--s-line); background: var(--s-panel); border-radius: 0 0 var(--s-radius) var(--s-radius); }
.bm-status-present, .bm-status-business_trip { border-color: #bfe3cd; background: var(--s-ok-bg); color: var(--s-ok-ink); }
.bm-status-sick, .bm-status-absent, .bm-status-unpaid { border-color: #f5c2bc; background: var(--s-bad-bg); color: var(--s-bad-ink); }
.bm-status-vacation, .bm-status-day_off, .bm-status-holiday { border-color: #c9d7f2; background: var(--s-info-bg); color: var(--s-info-ink); }
.bm-unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1rem; }
.bm-unit h2 small { font-weight: 500; font-size: .8rem; }
.bm-unit-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: .2rem 0 1rem; }
.bm-unit-figs > div { background: var(--s-soft); border-radius: var(--s-radius); padding: .6rem .7rem; }
.bm-unit-figs span { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--s-muted); }
.bm-unit-figs b { display: block; font-size: 1.25rem; margin: .1rem 0; }
.bm-unit-figs b small { font-size: .8rem; font-weight: 500; color: var(--s-muted); }
.bm-unit-figs > div > small { font-size: .78rem; color: var(--s-muted); }
@media (max-width: 700px) { .bm-unit-grid { grid-template-columns: 1fr; } .bm-unit-figs { grid-template-columns: repeat(2, 1fr); } }

/* ============ 18. Grafikoni, faze, karton partnera, upravljački pregled ============ */
.bm-chart { margin: 0; }
.bm-chart svg { display: block; overflow: visible; }
.bm-chart-grid { stroke: var(--s-line); stroke-width: 1; }
.bm-chart-tick { fill: var(--s-muted); font-size: 11px; font-family: var(--s-font); }
.bm-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .4rem; font-size: .82rem; color: var(--s-muted); }
.bm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.bm-phases { display: flex; flex-wrap: wrap; gap: 0; counter-reset: ph; margin: .2rem 0 .4rem; }
.bm-phases li { list-style: none; flex: 1 1 110px; position: relative; padding: .5rem .5rem .5rem 1.6rem; font-size: .82rem; color: var(--s-muted);
  border-top: 4px solid var(--s-line); }
.bm-phases li::before { counter-increment: ph; content: counter(ph); position: absolute; left: 0; top: .45rem; width: 1.15rem; height: 1.15rem; border-radius: 99px;
  display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: var(--s-line); color: var(--s-muted); }
.bm-phases li.done { border-top-color: var(--s-brand-2); color: var(--s-ink); }
.bm-phases li.done::before { background: var(--s-brand-2); color: #fff; content: "✓"; }
.bm-phases li.now { border-top-color: #b7791f; color: var(--s-ink); font-weight: 700; }
.bm-phases li.now::before { background: #b7791f; color: #fff; }
.bm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.bm-kpi { background: var(--s-panel); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: .75rem .9rem; box-shadow: var(--s-shadow-sm); }
.bm-kpi > span { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--s-muted); }
.bm-kpi > b { display: block; font-size: 1.3rem; margin: .2rem 0 .1rem; color: var(--s-ink); white-space: nowrap; }
.bm-kpi > small { font-size: .8rem; color: var(--s-muted); }
.bm-up { color: var(--s-ok-ink); } .bm-down { color: var(--s-bad-ink); }
.bm-up-bad { color: var(--s-bad-ink); } .bm-down-good { color: var(--s-ok-ink); }
.bm-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--s-line); margin: -.2rem 0 1rem; overflow-x: auto; }
.bm-tabs button { padding: .55rem .9rem; border: 0; background: none; font: inherit; font-weight: 600; font-size: .9rem; color: var(--s-muted);
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.bm-tabs button[aria-selected="true"] { color: var(--s-brand-text); border-bottom-color: var(--s-brand-2); }
.bm-tabs button .bm-count { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: 99px; background: var(--s-neutral-bg); font-size: .72rem; }
.bm-progress { display: grid; gap: .2rem; min-width: 120px; } .bm-progress small { color: var(--s-muted); font-size: .76rem; }
.bm-bar.ok > i { background: #1e7d4f; } .bm-bar.warn > i { background: #b7791f; }
.bm-partner-head { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.bm-partner-head h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.bm-row-late td:first-child { box-shadow: inset 3px 0 0 #b42318; }
.bm-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.bm-alerts li { padding: .55rem .8rem .55rem 2rem; border-radius: var(--s-radius); position: relative; font-size: .92rem; background: var(--s-soft); }
.bm-alerts li::before { content: "!"; position: absolute; left: .6rem; top: .55rem; width: 1rem; height: 1rem; border-radius: 99px; display: grid; place-items: center;
  font-size: .7rem; font-weight: 800; color: #fff; background: var(--s-muted); }
.bm-alerts li.bad { background: var(--s-bad-bg); color: var(--s-bad-ink); } .bm-alerts li.bad::before { background: #b42318; }
.bm-alerts li.warn { background: var(--s-warn-bg); color: var(--s-warn-ink); } .bm-alerts li.warn::before { background: #b7791f; }
.bm-alerts li.info { background: var(--s-info-bg); color: var(--s-info-ink); } .bm-alerts li.info::before { background: var(--s-brand-2); content: "i"; }
.bm-tbl td.num { white-space: nowrap; }

/* ============ 19. Integracije ============ */
.bm-secret { border: 2px solid #1e7d4f; background: var(--s-ok-bg); color: var(--s-ok-ink); border-radius: var(--s-radius); padding: .9rem 1.1rem; display: grid; gap: .6rem; }
.bm-secret-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bm-secret code { background: var(--s-panel); color: var(--s-ink); border: 1px solid var(--s-line-2); border-radius: 6px; padding: .5rem .7rem; font-size: .92rem; word-break: break-all; flex: 1 1 340px; }
.bm-doc h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; color: var(--s-brand-text); }
.bm-doc pre { background: #0e131d; color: #e6e9f0; border-radius: var(--s-radius); padding: .8rem 1rem; overflow-x: auto; font-size: .82rem; line-height: 1.5; margin: .4rem 0 .8rem; }
.bm-doc code { font-family: ui-monospace, Consolas, monospace; }
.bm-doc p code, .bm-doc li code, .bm-doc td code { background: var(--s-soft); border: 1px solid var(--s-line); border-radius: 4px; padding: 0 .3rem; font-size: .86em; }
.bm-method { display: inline-block; min-width: 3.4rem; text-align: center; font-weight: 700; font-size: .72rem; border-radius: 4px; padding: .1rem .35rem; color: #fff; }
.bm-method.get { background: #1e7d4f; } .bm-method.put { background: #b7791f; } .bm-method.post { background: var(--s-brand-2); }

/* 20. Široke tabele ne smeju da razvuku stranicu (grid stavke inače imaju min-width: auto) */
.bm-stack { grid-template-columns: minmax(0, 1fr); }
.bm-stack > *, .bm-grid2 > *, .bm-kpis > * { min-width: 0; }
.bm-tbl td.bm-mono small, .bm-kpi .bm-mono { overflow-wrap: anywhere; }

/* 21. DataSync je naziv modula — prikazuje se tačno tako, bez velikih slova */
[data-group-label="DataSync"] .fi-sidebar-group-label { text-transform: none; letter-spacing: .01em; }

/* 22. Uporedni prikaz dobavljača */
.bm-rank { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.bm-rank > * { min-width: 0; }
.bm-rank-card { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .85rem 1rem;
  background: var(--s-panel); border: 1px solid var(--s-line); border-radius: var(--s-radius); box-shadow: var(--s-shadow-sm); }
.bm-rank-card.is-first { border-color: var(--s-ok-ink); box-shadow: 0 0 0 1px var(--s-ok-ink) inset, var(--s-shadow-sm); }
.bm-rank-pos { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 99px; background: var(--s-neutral-bg);
  color: var(--s-neutral-ink); font-weight: 700; }
.bm-rank-card.is-first .bm-rank-pos { background: var(--s-ok-bg); color: var(--s-ok-ink); }
.bm-rank-body { min-width: 0; } .bm-rank-body b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-rank-score { text-align: right; } .bm-rank-score b { display: block; font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bm-rank-score small { color: var(--s-muted); font-size: .75rem; }
.bm-cmp th, .bm-cmp td { vertical-align: top; }
.bm-cmp td small, .bm-cmp th small { display: block; color: var(--s-muted); font-size: .78rem; font-weight: 400; margin-top: .15rem; text-transform: none; letter-spacing: 0; }
.bm-cmp-crit { min-width: 190px; position: sticky; left: 0; background: var(--s-panel); z-index: 1; }
.bm-cmp-w { width: 7.5rem; } .bm-cmp-w small { white-space: normal; max-width: 7.5rem; }
.bm-cmp-sup { min-width: 175px; text-transform: none !important; letter-spacing: 0 !important; font-size: .9rem !important; }
.bm-cmp-sup.is-first { color: var(--s-ok-ink); }
.bm-cmp td.is-best { background: var(--s-ok-bg); }
.bm-cmp td.is-best b, .bm-cmp td.is-best { color: var(--s-ok-ink); }
.bm-cmp td.is-worst { background: var(--s-bad-bg); color: var(--s-bad-ink); }
.bm-cmp-group td { background: var(--s-neutral-bg); color: var(--s-muted); font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding-top: .4rem; padding-bottom: .4rem; }
.bm-cmp-group td:first-child { position: sticky; left: 0; }
.bm-cmp-total td { border-top: 2px solid var(--s-line-2); font-size: 1rem; }
.bm-cmp-actions td { border-bottom: 0; }
.bm-bar-thin { height: 4px; margin-top: .35rem; max-width: 140px; }
.bm-stars { color: #d99a1e; letter-spacing: .05em; } .bm-stars i { color: var(--s-line-2); font-style: normal; }
@media print { .bm-cmp-actions, .bm-toolbar, .bm-cmp-w input { display: none; } }

/* 23. „Pogledaj kao” — traka na vrhu dok administrator radi kao drugi korisnik */
.bm-impersonate { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: center;
  padding: .45rem 1rem; background: #fdf1dc; color: #6b4508; border-bottom: 1px solid #f3dca8; font-size: .9rem; }
.bm-impersonate .bm-btn { min-height: 32px; padding: .25rem .75rem; }

/* 24. Kalkulacija naloga */
.bm-block { display: block; }
.bm-structure { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--s-line); margin-top: .8rem; }
.bm-structure .bm-seg { display: block; height: 100%; }
.bm-seg-material { background: #3b6fb6; } .bm-seg-labor { background: #6aa3dc; } .bm-seg-machines { background: #9cc3e8; }
.bm-seg-overhead { background: #b9b2a6; } .bm-seg-profit { background: #2f9e6a; }
.bm-legend span { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; }
.bm-legend span i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.bm-calc .bm-tbl tfoot td { border-top: 2px solid var(--s-line-2); }
@media print {
  .fi-sidebar, .fi-topbar, .fi-header-actions-ctn, .bm-toolbar input, .bm-impersonate, .bm-btn { display: none !important; }
  .fi-main { padding: 0 !important; } .bm-card { break-inside: avoid; box-shadow: none; }
}

/* 25. Kontrolna tabla */
.bm-section-title { margin: .6rem 0 -.3rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); }
.bm-hbar { display: grid; grid-template-columns: minmax(120px, 30%) 1fr auto; gap: .8rem; align-items: center; padding: .3rem 0; font-size: .9rem; }
.bm-unit-card:hover { border-color: var(--s-brand-2); }
.bm-demo-banner { padding: .3rem 1rem; background: var(--s-info-bg); color: var(--s-info-ink); font-size: .82rem; text-align: center; border-bottom: 1px solid var(--s-line); }
@media print { .bm-demo-banner { display: none; } }
.bm-calc .bm-tbl { font-size: .84rem; } .bm-calc .bm-tbl th, .bm-calc .bm-tbl td { padding: .5rem .45rem; }
.bm-calc .bm-tbl th small { font-weight: 500; text-transform: none; letter-spacing: 0; }

/* 26. Prečice u gornjoj traci (tamna traka brenda) */
.bm-shortcuts { display: flex; align-items: center; gap: .15rem; margin-inline-end: .75rem; }
.bm-sc-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px;
  color: rgba(255,255,255,.82); transition: background .15s, color .15s; }
.bm-sc-btn svg { width: 21px; height: 21px; }
.bm-sc-btn:hover, .bm-sc-btn:focus-visible { background: rgba(255,255,255,.12); color: #fff; outline: none; }
.bm-sc-btn:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.bm-sc-btn.is-active { background: rgba(255,255,255,.18); color: #fff; }
.bm-sc-btn.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: #8fb3ef; }
.bm-plus { position: absolute; right: 3px; top: 3px; display: grid; place-items: center; width: 13px; height: 13px; border-radius: 99px;
  background: #2f9e6a; color: #fff; font: 700 11px/1 var(--s-font, inherit); font-style: normal; box-shadow: 0 0 0 2px var(--s-brand, #1f3a68); }
.bm-sc-sep { width: 1px; height: 22px; background: rgba(255,255,255,.22); margin: 0 .35rem; }
@media (max-width: 639px) { .bm-shortcuts { display: none; } }

/* 27. Prilagodi prikaz */
.bm-prefs { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .bm-prefs { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .bm-saved { grid-column: 1 / -1; } }
.bm-topbar-preview { display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; min-height: 52px; padding: .4rem .6rem; margin: .9rem 0;
  background: var(--s-brand, #1f3a68); border-radius: 10px; }
.bm-topbar-preview .bm-sc-btn { cursor: default; }
.bm-preview-empty { color: rgba(255,255,255,.7); font-size: .88rem; padding: 0 .4rem; }
.bm-sortlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.bm-sortrow { display: grid; grid-template-columns: auto auto 1fr auto; gap: .75rem; align-items: center; padding: .55rem .7rem;
  border: 1px solid var(--s-line); border-radius: 10px; background: var(--s-panel); }
.bm-sortlist[data-list="shortcuts"] .bm-sortrow { grid-template-columns: auto 1fr auto; }
.bm-sortrow.is-off { background: var(--s-soft, var(--s-neutral-bg)); }
.bm-sortrow.is-off .bm-sortrow-label b, .bm-sortrow.is-off .bm-sortrow-icon { opacity: .55; }
.bm-sortrow-icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--s-brand-soft, #e8eef8); color: var(--s-brand, #1f3a68); }
.bm-sortrow-icon svg { width: 20px; height: 20px; }
.bm-sortrow-icon .bm-plus { box-shadow: 0 0 0 2px var(--s-panel); }
.bm-sortrow-label { min-width: 0; } .bm-sortrow-label b { display: block; font-weight: 600; }
.bm-sortrow-label small { display: block; color: var(--s-muted); font-size: .8rem; }
.bm-sortrow-actions { display: flex; gap: .25rem; }
.bm-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--s-line-2);
  background: var(--s-panel); color: var(--s-ink); font: inherit; font-size: .95rem; cursor: pointer; }
.bm-icon-btn:hover:not(:disabled) { background: var(--s-hover); } .bm-icon-btn:disabled { opacity: .35; cursor: default; }
.bm-icon-btn.danger:hover { background: var(--s-bad-bg); color: var(--s-bad-ink); border-color: transparent; }
.bm-prefs .bm-prefs-sub { margin: 1.6rem 0 .7rem; line-height: 1.3; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--s-muted); }
.bm-prefs-groups { display: grid; gap: .8rem; }
.bm-prefs-groups h4 { margin: 0 0 .35rem; font-size: .84rem; font-weight: 600; color: var(--s-muted); }
.bm-chip-add { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; background: var(--s-panel); font: inherit; font-size: .86rem; }
.bm-chip-add:hover:not(:disabled) { border-color: var(--s-brand-2); background: var(--s-brand-soft, #e8eef8); }
.bm-chip-add:disabled { opacity: .45; cursor: not-allowed; }
.bm-chip-icon svg { width: 16px; height: 16px; } .bm-chip-icon { display: inline-grid; color: var(--s-brand-2); }
.bm-chip-plus { font-weight: 700; color: var(--s-ok-ink); }
.bm-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.bm-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; z-index: 1; }
.bm-switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--s-line-2); transition: background .15s; }
.bm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 99px; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.bm-switch input:checked + span { background: var(--s-brand-2); } .bm-switch input:checked + span::after { transform: translateX(18px); }
.bm-switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--s-info-bg); }
.bm-saved { margin: 0; min-height: 1.2em; color: var(--s-ok-ink); font-size: .88rem; }

/* 28. Brze prečice na početnoj */
.bm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.bm-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: .9rem 1rem; border: 1px solid var(--s-line);
  border-radius: var(--s-radius); background: var(--s-panel); color: var(--s-ink); text-decoration: none; font-weight: 600; font-size: .92rem;
  box-shadow: var(--s-shadow-sm); transition: border-color .15s, transform .15s; }
.bm-tile:hover { border-color: var(--s-brand-2); transform: translateY(-1px); text-decoration: none; }
.bm-tile-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--s-brand-soft, #e8eef8); color: var(--s-brand, #1f3a68); }
.bm-tile-icon svg { width: 21px; height: 21px; } .bm-tile-icon .bm-plus { box-shadow: 0 0 0 2px var(--s-panel); }
.bm-empty { display: grid; justify-items: start; gap: .6rem; } .bm-empty p { margin: 0; color: var(--s-muted); }

/* 29. Održavanje (CMMS): karton sredstva */
.bm-asset-head { display: grid; grid-template-columns: 120px minmax(0, 1fr) 132px; gap: 1.2rem; align-items: start; }
@media (max-width: 760px) { .bm-asset-head { grid-template-columns: 72px minmax(0, 1fr); } .bm-asset-qr { display: none; } }
.bm-asset-photo { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--s-brand-soft); display: grid; place-items: center; overflow: hidden; color: var(--s-brand); }
.bm-asset-photo img { width: 100%; height: 100%; object-fit: cover; } .bm-asset-photo svg { width: 44%; height: 44%; }
.bm-asset-qr { text-align: center; } .bm-qr-box { background: #fff; border: 1px solid var(--s-line); border-radius: 10px; padding: 6px; }
.bm-qr-box svg { display: block; width: 100%; height: auto; } .bm-asset-qr small { color: var(--s-muted); font-size: .78rem; }
.bm-timeline { list-style: none; margin: 0; padding: 0 1.1rem 1rem; }
.bm-timeline li { position: relative; padding: .7rem 0 .7rem 1.4rem; border-left: 2px solid var(--s-line); margin-left: .35rem; }
.bm-timeline li::before { content: ""; position: absolute; left: -7px; top: 1rem; width: 12px; height: 12px; border-radius: 99px; background: var(--s-ok-ink); box-shadow: 0 0 0 3px var(--s-panel); }
.bm-timeline li.is-open::before { background: #d08b16; }
.bm-tl-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.bm-tl-head a { color: inherit; } .bm-tl-text { margin: .3rem 0 0; font-size: .9rem; }
.bm-plain { margin: 0; padding-left: 1.1rem; } .bm-plain li { margin: .25rem 0; }
.bm-seg { display: inline-flex; border: 1px solid var(--s-line-2); border-radius: 8px; overflow: hidden; margin-bottom: 1rem; }
.bm-seg label { padding: .45rem .95rem; cursor: pointer; font-size: .88rem; font-weight: 500; }
.bm-seg label input { position: absolute; opacity: 0; pointer-events: none; }
.bm-seg label.is-on { background: var(--s-brand); color: #fff; }
.bm-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
.bm-actions-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.2rem; }
.bm-btn.is-disabled { opacity: .45; pointer-events: none; }
.bm-btn svg { width: 1.1em; height: 1.1em; }
.bm-label-preview { display: flex; gap: 1rem; align-items: center; border: 1px dashed var(--s-line-2); border-radius: 10px; padding: .9rem; max-width: 360px; }
.bm-label-preview .bm-qr-box { width: 110px; flex: none; }
/* popis */
.bm-kpi-btn { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.bm-kpi-btn.is-on { border-color: var(--s-brand); box-shadow: var(--s-ring); }
.bm-meter { height: 6px; border-radius: 99px; background: var(--s-soft); overflow: hidden; margin-top: .45rem; }
.bm-meter i { display: block; height: 100%; background: var(--s-ok-ink); }
.bm-scan-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, .8fr); gap: .9rem; align-items: end; }
@media (max-width: 860px) { .bm-scan-row { grid-template-columns: 1fr; } }
.bm-scan-input { display: flex; gap: .5rem; align-items: end; } .bm-scan-input .bm-field { flex: 1; }
.bm-scan-input .bm-input { font-size: 1.05rem; min-height: 44px; }
.bm-scan-video { width: 100%; max-width: 420px; border-radius: 10px; margin-top: .9rem; background: #000; }
.bm-scan-result { margin-top: .9rem; padding: .7rem .9rem; border-radius: 10px; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline;
    background: var(--s-soft); border-left: 4px solid var(--s-line-2); }
.bm-scan-result.ok { background: var(--s-ok-bg, #e8f6ee); border-color: var(--s-ok-ink); }
.bm-scan-result.warn { background: #fff5e3; border-color: #d08b16; }
.bm-scan-result.info { background: var(--s-brand-soft); border-color: var(--s-brand); }
.bm-scan-result.bad { background: #fdecec; border-color: #c43c3c; }
.bm-scan-result small { flex-basis: 100%; color: var(--s-muted); }
.bm-link { background: none; border: 0; color: var(--s-brand); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.bm-table-wrap { overflow-x: auto; }
.bm-hbar-track { height: 8px; border-radius: 99px; background: var(--s-soft); overflow: hidden; }
.bm-hbar-track i { display: block; height: 100%; background: var(--s-brand-2); border-radius: 99px; }
a.bm-kpi { color: inherit; text-decoration: none; } a.bm-kpi:hover { border-color: var(--s-brand-2); }
.bm-kpi > span, .bm-kpi > b, .bm-kpi > small { display: block; }
.bm-kpi > b.bm-down { color: var(--s-bad-ink); } .bm-kpi > b.bm-up { color: var(--s-ok-ink); }

/* 30. Kalendar održavanja */
.bm-cal-bar { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; }
.bm-cal-nav { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.bm-cal-arrow { min-width: 38px; font-size: 1.25rem; line-height: 1; padding: .3rem .6rem; }
.bm-cal-title { margin: 0 0 0 .6rem; font-size: 1.25rem; font-weight: 650; }
.bm-cal-filters { flex: 1 1 520px; max-width: 760px; }
.bm-cal-sum { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--s-muted); }
.bm-cal-sum b { color: var(--s-ink); } .bm-cal-sum .bm-down b { color: var(--s-bad-ink); } .bm-cal-sum .bm-up b { color: var(--s-ok-ink); }
.bm-cal-head, .bm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bm-cal-head div { padding: .55rem .6rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--s-muted); border-bottom: 1px solid var(--s-line); }
.bm-cal-cell { min-height: 118px; padding: .35rem .35rem .45rem; border-right: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bm-cal-cell:nth-child(7n) { border-right: 0; }
.bm-cal-cell.is-we, .bm-cal-wday.is-we { background: color-mix(in srgb, var(--s-soft) 55%, transparent); }
.bm-cal-cell.is-out { opacity: .5; }
.bm-cal-cell.is-over, .bm-cal-wday.is-over, .is-over { outline: 2px dashed var(--s-brand-2); outline-offset: -3px; background: var(--s-brand-soft); }
.bm-cal-dnum { align-self: flex-start; border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 600; color: var(--s-ink); cursor: pointer;
    width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; }
.bm-cal-dnum:hover { background: var(--s-hover); }
.is-today > .bm-cal-dnum { background: var(--s-brand); color: #fff; }
.bm-cal-more { border: 0; background: none; font: inherit; font-size: .76rem; color: var(--s-brand); cursor: pointer; text-align: left; padding: 0 .3rem; }
.bm-ev { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; font: inherit; font-size: .76rem; line-height: 1.25; padding: .2rem .4rem;
    border-radius: 5px; border: 1px solid transparent; border-left-width: 3px; cursor: pointer; text-decoration: none; color: var(--s-ink); background: var(--s-soft); min-width: 0; }
.bm-ev:hover { filter: brightness(.97); text-decoration: none; }
.bm-ev-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.bm-ev-m { font-size: .72rem; color: var(--s-muted); white-space: normal; }
.bm-ev.is-planned { background: var(--s-panel); border: 1px dashed var(--s-line-2); border-left: 3px solid var(--s-brand-2); }
.bm-ev.is-open { background: var(--s-brand-soft); border-left-color: var(--s-brand); }
.bm-ev.is-progress { background: #fff5e3; border-left-color: #d08b16; }
.bm-ev.is-overdue { background: #fdecec; border-left-color: #c43c3c; }
.bm-ev.is-done { background: var(--s-ok-bg, #e8f6ee); border-left-color: var(--s-ok-ink); color: var(--s-muted); }
.bm-ev.is-done .bm-ev-t { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.dark .bm-ev.is-progress { background: rgba(208,139,22,.16); } .dark .bm-ev.is-overdue { background: rgba(196,60,60,.18); } .dark .bm-ev.is-done { background: rgba(47,158,106,.14); }
.bm-ev.prio-urgent .bm-ev-t::before { content: "● "; color: #c43c3c; }
.bm-ev.is-drag { cursor: grab; } .bm-ev.is-drag:active { cursor: grabbing; }
.bm-cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.bm-cal-wday { padding: .5rem; display: flex; flex-direction: column; gap: 4px; min-height: 360px; }
.bm-cal-whead { display: flex; align-items: baseline; gap: .4rem; border: 0; background: none; font: inherit; cursor: pointer; padding: .1rem .2rem .45rem; border-bottom: 1px solid var(--s-line); margin-bottom: .2rem; }
.bm-cal-whead span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--s-muted); font-weight: 600; }
.bm-cal-whead small { margin-left: auto; font-size: .75rem; color: var(--s-muted); }
.bm-cal-wday.is-today .bm-cal-whead b { color: var(--s-brand); }
.bm-cal-empty { margin: .3rem .2rem; }
.bm-cal-daylist { display: flex; flex-direction: column; gap: 6px; padding: 0 1rem 1rem; }
.bm-cal-daylist .bm-ev { font-size: .88rem; padding: .5rem .7rem; }
.bm-cal-daylist .bm-ev-m { font-size: .8rem; }
.bm-cal-legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .8rem; }
.bm-cal-legend .bm-ev { width: auto; cursor: default; }
@media (max-width: 1100px) { .bm-cal-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bm-cal-wday { min-height: 0; } }
@media (max-width: 760px) {
    .bm-cal-cell { min-height: 64px; padding: .2rem; } .bm-cal-cell .bm-ev { font-size: 0; padding: 0; height: 6px; border-width: 0; border-radius: 3px; }
    .bm-cal-cell .bm-ev .bm-ev-t { display: none; } .bm-cal-week { grid-template-columns: 1fr; }
}
.bm-cal-whead small { white-space: nowrap; }

/* 31. Obaveštenja, ikone u naslovima */
.bm-h-icon { display: flex; align-items: center; gap: .5rem; }
.bm-h-icon svg { width: 1.15rem; height: 1.15rem; color: var(--s-brand-2); flex: none; }
.bm-notify-tbl th.c, .bm-notify-tbl td.c { text-align: center; width: 140px; }
.bm-notify-tbl th svg { width: 1rem; height: 1rem; vertical-align: -3px; margin-right: .2rem; }
.bm-notify-ev { display: flex; gap: .7rem; align-items: center; }
.bm-ev-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--s-brand-soft); color: var(--s-brand); }
.bm-ev-ico svg { width: 18px; height: 18px; }
.bm-ev-ico.is-danger { background: #fdecec; color: #b42318; } .bm-ev-ico.is-warning { background: #fff5e3; color: #b7791f; }
.bm-ev-ico.is-success { background: #e8f6ee; color: #1e7d4f; }
.dark .bm-ev-ico.is-danger { background: rgba(180,35,24,.2); } .dark .bm-ev-ico.is-warning { background: rgba(183,121,31,.2); } .dark .bm-ev-ico.is-success { background: rgba(30,125,79,.2); }
.bm-doclist { list-style: none; margin: 0; padding: 0 1rem .6rem; }
.bm-doclist li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--s-line); }
.bm-doclist li:first-child { border-top: 0; }
.bm-doc-main { flex: 1; min-width: 0; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.bm-doc-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bm-doc-main:hover b { color: var(--s-brand); text-decoration: underline; }
.bm-row-act { text-align: right; white-space: nowrap; }
.bm-card-head .bm-btn svg { width: 1rem; height: 1rem; }
.bm-timeline small svg { width: .9rem; height: .9rem; vertical-align: -2px; }
.bm-kpi { position: relative; }
.bm-kpi-ico { position: absolute; top: .7rem; right: .75rem; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: var(--s-brand-soft); color: var(--s-brand); font-style: normal; }
.bm-kpi-ico svg { width: 17px; height: 17px; }
.bm-kpi:has(.bm-kpi-ico) > span { padding-right: 2.2rem; }
.bm-prefs-wide { grid-column: 1 / -1; }

/* 32. E-potpis, LOTO */
.bm-sigpad-area { width: 100%; height: auto; aspect-ratio: 600 / 180; background: #fff; border: 1px solid var(--s-line-2); border-radius: 10px; touch-action: none; cursor: crosshair; }
.bm-sigpad-bar { display: flex; justify-content: space-between; margin-top: .3rem; font-size: .82rem; }
.bm-sig-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.bm-sig-list li { display: flex; gap: .8rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--s-line); border-radius: 10px; }
.bm-sig-list .bm-sig-img { width: 150px; flex: none; background: #fff; border-radius: 6px; border: 1px solid var(--s-line); }
.bm-sig-list .bm-sig-img svg { width: 100%; height: auto; display: block; }
.bm-loto { border-left: 4px solid #b42318; background: #fdecec; border-radius: 10px; padding: .8rem 1rem; }
.bm-loto.is-off { border-color: var(--s-ok-ink); background: var(--s-ok-bg, #e8f6ee); }
.bm-loto.is-pending { border-color: #b7791f; background: #fff5e3; }
.dark .bm-loto { background: rgba(180,35,24,.15); } .dark .bm-loto.is-off { background: rgba(30,125,79,.15); } .dark .bm-loto.is-pending { background: rgba(183,121,31,.15); }
.bm-chg { font-size: .82rem; line-height: 1.45; } .bm-chg span { color: var(--s-muted); } .bm-chg del { color: var(--s-bad-ink); text-decoration-thickness: 1px; }
.bm-cal-dtop { display: flex; align-items: center; gap: .3rem; min-width: 0; }
.bm-cal-hol { font-size: .68rem; font-weight: 600; color: #b42318; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-cal-cell.is-hol { background: color-mix(in srgb, #fdecec 55%, transparent); }
.bm-hbar b svg { display: inline; width: 1rem; height: 1rem; vertical-align: -2px; }

/* 33. Kancelarija vlasnika i platforma */
.bm-dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.bm-dl dt { color: var(--ink-3, #5e6678); font-size: .85rem; } .bm-dl dd { margin: 0; }
.bm-checklist { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .25rem .75rem; }
.bm-checklist li { font-size: .88rem; } .bm-checklist li.is-on { color: var(--s-ok-ink, #1e7d4f); font-weight: 600; } .bm-checklist li.is-off { color: var(--ink-3, #9aa3b5); }
.bm-btn.bm-btn-primary { background: var(--brand, #1f3a68); border-color: var(--brand, #1f3a68); color: #fff; }
.bm-btn.bm-btn-primary:hover { filter: brightness(1.1); }
.bm-sub-check { font-weight: 600; } .bm-sub-check.is-ok { color: var(--s-ok-ink, #1e7d4f); } .bm-sub-check.is-bad { color: var(--s-bad-ink, #b42318); }
.bm-copy { width: 100%; margin-top: .4rem; padding: .35rem .5rem; font: 12px ui-monospace, monospace; border: 1px solid var(--line, #d5dae3); border-radius: 6px; background: transparent; color: inherit; }
.fi-simple-header .bm-brand { color: var(--s-brand-text, #1f3a68); }
/* 34. DataSync */
.bm-pair-code { font: 700 1.6rem/1.2 ui-monospace, monospace; letter-spacing: .12em; padding: .5rem .75rem; margin: .25rem 0 .5rem; border-radius: 8px; background: var(--s-info-bg, #e8eef8); color: var(--brand, #1f3a68); text-align: center; }
.bm-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; font-size: .9rem; }
.bm-pre { margin: .35rem 0 0; padding: .5rem .65rem; border-radius: 6px; background: var(--s-panel, #f7f8fa); border: 1px solid var(--line, #e3e6ec); font: 12px/1.4 ui-monospace, monospace; white-space: pre-wrap; word-break: break-all; }

/* 35. Nadzor sistema (konzola platforme) */
.bm-health-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* 36. Ponuda dodatnog modula (npr. CMMS na kartonu sredstva) */
.bm-upsell { border: 1px dashed var(--s-brand-2, #3b6fd8); background: linear-gradient(180deg, var(--s-info-bg, #eef3fc), transparent 70%); display: grid; gap: .8rem; align-content: start; }
.bm-upsell-head { display: flex; gap: .8rem; align-items: flex-start; } .bm-upsell-head h2 { margin: 0 0 .15rem; font-size: 1.05rem; } .bm-upsell-head p { margin: 0; }
.bm-upsell-ico { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: var(--s-brand-2, #3b6fd8); color: #fff; }
.bm-upsell-ico svg { width: 1.3rem; height: 1.3rem; }
.bm-upsell-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .92rem; }
.bm-upsell-list li { display: flex; gap: .45rem; align-items: flex-start; } .bm-upsell-list svg { width: 1rem; height: 1rem; flex: none; margin-top: .15rem; color: var(--s-ok-ink, #1a7f37); }
.bm-upsell .bm-btn { justify-self: start; }
.bm-upsell-row { grid-template-columns: 1fr auto; align-items: center; } @media (max-width: 640px) { .bm-upsell-row { grid-template-columns: 1fr; } }

/* 37. Popis — ručni unos (osnovni popis) */
.bm-manual-bar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bm-manual-bar .bm-field { min-width: 12rem; }
.bm-audit-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line, #e3e6ec); padding-top: 0; }
.bm-audit-tools input[type=search] { flex: 1 1 16rem; max-width: 26rem; }
.bm-btn-sm { padding: .2rem .55rem; font-size: .8rem; min-height: 0; }
.bm-input-sm { padding: .2rem .4rem; font-size: .8rem; max-width: 14rem; }
td > input.bm-check { width: 16px; height: 16px; accent-color: var(--s-brand); }
.bm-row-act { white-space: nowrap; }

/* 38. Kancelarija — moduli firme (proba i dodavanje) */
.bm-shop tr.is-focus td { background: var(--s-info-bg, #eef3fc); }
.bm-shop tr.is-focus td:first-child { box-shadow: inset 3px 0 var(--s-brand-2, #3b6fd8); }
.bm-shop-act { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }

/* 39. Dnevna proizvodnja po radniku i cilj do roka */
.bm-daily-head { display: grid; grid-template-columns: 1fr minmax(12rem, 18rem) auto; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line, #e3e6ec); }
.bm-daily-prog small { display: block; text-align: right; }
.bm-goal { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; padding: .55rem 1rem; font-size: .88rem; background: var(--s-ok-bg); color: var(--s-ok-ink); }
.bm-goal.warn { background: var(--s-warn-bg); color: var(--s-warn-ink); } .bm-goal.bad { background: var(--s-bad-bg); color: var(--s-bad-ink); }
.bm-goal-main { font-weight: 700; font-size: .98rem; }
.bm-goal-warn { font-weight: 600; }
.bm-goal span + span::before { content: "·"; margin-right: .6rem; opacity: .5; }
.bm-row-other td { background: var(--s-soft, #f6f8fb); }
.bm-daily-order tfoot td { border-top: 2px solid var(--line, #e3e6ec); }
@media (max-width: 720px) { .bm-daily-head { grid-template-columns: 1fr; } }
.bm-flow td { vertical-align: middle; }
.bm-idle-cell { min-width: 7.5rem; } .bm-idle-cell > * { display: block; width: 100%; max-width: none; } .bm-idle-cell select { margin-top: .25rem; }

/* ── 40. Predlog preraspodele radnika (porudžbina) ───────────────────────────── */
.bm-rebal { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .5rem; }
.bm-rebal li { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; padding: .6rem .75rem; border-radius: .5rem;
    border: 1px solid var(--bm-line, #e3e7ee); border-left: 4px solid #2f6fdb; background: var(--bm-soft, #f7f9fc); }
.bm-rebal li.ot { border-left-color: #d99a0b; } .bm-rebal li.bad { border-left-color: #c8372d; }
.bm-rebal-arrow { display: block; font-size: 1.02em; margin-bottom: .15rem; } .bm-rebal-arrow b { white-space: nowrap; } .bm-rebal-arrow i { font-style: normal; color: #2f6fdb; font-weight: 700; margin: 0 .25rem; }
@media (max-width: 720px) { .bm-rebal li { grid-template-columns: 1fr; } }
.bm-rebal li > div { min-width: 0; }

/* ── 41. Metar — očitavanja ─────────────────────────────────────────────────── */
.bm-round-list { list-style: none; margin: 0; padding: 0; }
.bm-round { display: grid; grid-template-columns: 1fr minmax(18rem, 26rem); gap: .5rem 1rem; align-items: center; padding: .75rem 1rem; border-top: 1px solid var(--s-line); border-left: 4px solid transparent; }
.bm-round.st-due { border-left-color: #d99a0b; } .bm-round.st-late, .bm-round.st-missed { border-left-color: #c8372d; } .bm-round.st-done { border-left-color: #2f9e6a; }
.bm-round.st-upcoming { opacity: .7; }
.bm-round-entry { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .4rem; align-items: center; }
.bm-round-entry .bm-input { width: 100%; font-size: 1rem; }
.bm-round-done { text-align: right; } .bm-round-done b { font-size: 1.1rem; }
.bm-round-hint { color: var(--s-ink-2, #475467); margin-top: .2rem; }
.bm-err { color: #c8372d; grid-column: 1 / -1; }
.bm-daynav { display: flex; gap: .35rem; align-items: center; }
.bm-check-label { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; }
.bm-meter-chart { width: 100%; height: auto; max-height: 220px; display: block; margin: .25rem 0 .75rem; }
.bm-meter-chart .bar { fill: #3b6fb6; } .bm-meter-chart .bad { fill: #c8372d; } .bm-meter-chart .pt { fill: #3b6fb6; }
.bm-meter-chart .ln { fill: none; stroke: #3b6fb6; stroke-width: 2; } .bm-meter-chart .rng { stroke: #9cc3e8; stroke-width: 6; stroke-linecap: round; }
.bm-meter-chart .lim { stroke: #c8372d; stroke-dasharray: 4 4; } .bm-meter-chart .lbl { font-size: 10px; fill: var(--s-muted, #667085); }
.bm-tbl tr.is-sel td { background: var(--s-info-bg, #eef4ff); }
@media (max-width: 720px) { .bm-round { grid-template-columns: 1fr; } .bm-round-done { text-align: left; } .bm-round-entry { grid-template-columns: 1fr auto; } .bm-round-entry .bm-input:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }

/* ── 42. Sledeći korak, čipovi naloga, ćelije tabela ───────────────────────────── */
.bm-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-top: 1rem; padding: .85rem 1rem;
    border-radius: var(--s-radius, 10px); border: 1px solid var(--s-line); border-left: 4px solid #2f6fdb; background: var(--s-info-bg, #eef4ff); }
.bm-next.ok { border-left-color: #2f9e6a; background: var(--s-ok-bg, #eaf7f0); } .bm-next.warn { border-left-color: #d99a0b; background: var(--s-warn-bg, #fff6e5); }
.bm-next-text { display: grid; gap: .1rem; min-width: 16rem; flex: 1 1 22rem; } .bm-next-text b { font-size: 1.02rem; } .bm-next-text small { color: var(--s-ink-2, #475467); }
.bm-next-label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s-muted); }
.bm-next-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bm-cell-product { min-width: 13rem; } .bm-cell-orders { min-width: 12rem; }
.bm-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .35rem; }
.bm-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 600; text-decoration: none;
    background: var(--s-soft, #f2f4f7); color: var(--s-ink); border: 1px solid var(--s-line); white-space: nowrap; }
.bm-chip::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: #98a2b3; }
.bm-chip.st-released::before { background: #2f6fdb; } .bm-chip.st-running::before { background: #d99a0b; } .bm-chip.st-paused::before { background: #c8372d; }
.bm-chip.st-completed::before, .bm-chip.st-closed::before { background: #2f9e6a; }
.bm-chip:hover { border-color: var(--s-brand-2); }
.bm-flash.info { background: var(--s-info-bg, #eef4ff); color: var(--s-info-ink, #1d4ed8); border-color: #c7d7fe; }
.bm-flash-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.bm-chain { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .75rem; }
.bm-chain > i { font-style: normal; color: var(--s-muted); } .bm-chain .bm-next-label { margin-right: .25rem; }
.bm-chip.is-current { background: var(--s-brand, #1f3a68); color: #fff; border-color: var(--s-brand, #1f3a68); }
/* stavke kao tabela: prva kolona (materijal/proizvod) dovoljno široka za šifru i naziv */
.fi-fo-table-repeater table td:first-child, .fi-fo-table-repeater table th:first-child { min-width: 20rem; }
.fi-fo-table-repeater table td { vertical-align: top; }
.fi-fo-table-repeater table td:nth-child(3), .fi-fo-table-repeater table th:nth-child(3) { min-width: 6.5rem; }

/* ── 43. Tabele: kolone sa dužim tekstom (prelamaju se) ne smeju se suziti na reč po red ── */
.fi-ta-text.fi-wrapped { min-width: 13rem; }

/* ── 44. Porudžbina iz dokumenta ─────────────────────────────────────────────── */
.bm-import-form { display: grid; gap: .75rem; margin-top: .75rem; }
.bm-dropzone { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 2.2rem 1rem; border: 2px dashed var(--s-line-2, #cfd6e0);
    border-radius: var(--s-radius, 10px); background: var(--s-soft, #f7f9fc); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.bm-dropzone:hover, .bm-dropzone.is-over { border-color: var(--s-brand-2, #2f6fdb); background: var(--s-info-bg, #eef4ff); }
.bm-dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bm-dropzone-ico { font-size: 1.8rem; color: var(--s-brand-2, #2f6fdb); line-height: 1; }
.bm-import-hints { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--s-ink-2, #475467); font-size: .9rem; display: grid; gap: .2rem; }
.bm-import-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem 1rem; }
.bm-import-grid .bm-field { display: grid; gap: .3rem; } .bm-import-grid .bm-field > span { font-size: .85rem; font-weight: 600; }
.bm-span2 { grid-column: span 2; } .bm-span-all { grid-column: 1 / -1; }
@media (max-width: 900px) { .bm-import-grid { grid-template-columns: 1fr 1fr; } }
.bm-import-lines td:first-child { min-width: 22rem; } .bm-import-lines .bm-input { width: 100%; }
.bm-import-lines tr.is-unmatched td:first-child select { border-color: #c8372d; }
.bm-import-src { font-style: italic; margin: .25rem 0; max-width: 34rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-import-raw summary { cursor: pointer; font-weight: 600; } .bm-import-raw pre { white-space: pre-wrap; font-size: .78rem; max-height: 22rem; overflow: auto; margin: .75rem 0 0; }
.bm-import-lines td:nth-child(3) select { min-width: 5.5rem; }

/* ── 45. Dokumenti (DMS) ─────────────────────────────────────────────────────── */
.bm-dms { display: grid; grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .bm-dms { grid-template-columns: minmax(0, 1fr); } .bm-dms-side { position: static !important; max-height: none !important; } }
.bm-dms-side { position: sticky; top: 4.5rem; max-height: calc(100vh - 6rem); display: flex; flex-direction: column; gap: .6rem; padding: .75rem; }
.bm-dms-search { position: relative; display: block; }
.bm-dms-search > span { position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); color: var(--s-muted); display: flex; }
.bm-dms-search > span svg { width: 1rem; height: 1rem; }
.bm-dms-search .bm-input { width: 100%; padding-left: 2rem; }
.bm-dms-tree { overflow: auto; flex: 1; display: grid; align-content: start; gap: 1px; margin: 0 -.25rem; padding: 0 .25rem; }
.bm-dms-node { display: flex; align-items: center; gap: .4rem; width: 100%; padding: .38rem .5rem .38rem calc(.5rem + var(--d, 0) * .95rem); border: 0;
    background: none; border-radius: 6px; color: var(--s-ink); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.bm-dms-node:hover { background: var(--s-hover); }
.bm-dms-node.is-current { background: var(--s-info-bg); color: var(--s-info-ink); font-weight: 600; }
.bm-dms-node.is-passthrough { color: var(--s-muted); }
.bm-dms-node svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--s-brand-2); }
.bm-dms-node.is-passthrough svg { color: var(--s-muted); }
.bm-dms-node-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.bm-dms-caret { width: .7rem; flex: none; font-size: .7rem; color: var(--s-muted); }
.bm-dms-lock svg { width: .8rem !important; height: .8rem !important; color: var(--s-muted) !important; }
.bm-dms-trashlink { border-top: 1px solid var(--s-line); border-radius: 0 0 6px 6px; padding-top: .55rem; }
.bm-dms-main.is-loading { opacity: .6; transition: opacity .15s; }
.bm-dms-head { display: grid; gap: .55rem; }
.bm-dms-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .86rem; color: var(--s-muted); }
.bm-dms-crumbs .bm-link { text-decoration: none; } .bm-dms-crumbs .bm-link:hover { text-decoration: underline; }
.bm-dms-title h2 { margin: 0; flex-wrap: wrap; } .bm-dms-title .bm-tag svg { width: .8rem; height: .8rem; }
.bm-dms-sub { margin: .3rem 0 0; font-size: .9rem; }
.bm-dms-tools { display: flex; flex-wrap: wrap; gap: .5rem; } .bm-dms-tools svg { width: 1rem; height: 1rem; }
.bm-dms-danger { color: var(--s-bad-ink); } .bm-dms-danger:hover { background: var(--s-bad-bg); }
.bm-dms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .75rem; }
.bm-dms-tile { display: grid; justify-items: start; gap: .2rem; padding: .85rem .95rem; border: 1px solid var(--s-line); border-radius: var(--s-radius);
    background: var(--s-panel); color: var(--s-ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--s-shadow-sm);
    transition: border-color .15s, background .15s; min-width: 0; }
.bm-dms-tile:hover { border-color: var(--s-brand-2); background: var(--s-soft); }
.bm-dms-tile b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; line-height: 1.3; overflow-wrap: anywhere; }
.bm-dms-tile small svg { width: .75rem; height: .75rem; display: inline; vertical-align: -1px; }
.bm-dms-tile-ico svg { width: 1.6rem; height: 1.6rem; color: var(--s-brand-2); }
.bm-dms-tile.is-passthrough { opacity: .75; } .bm-dms-tile.is-passthrough .bm-dms-tile-ico svg { color: var(--s-muted); }
.bm-dms-files { margin-top: 0; } .bm-dms-files td { vertical-align: middle; }
.bm-dms-fname { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--s-ink); }
.bm-dms-fname svg { width: 1.15rem; height: 1.15rem; color: var(--s-brand-2); flex: none; }
.bm-dms-desc { font-size: .82rem; margin-top: .15rem; max-width: 34rem; }
.bm-dms-act { white-space: nowrap; text-align: right; width: 1%; } .bm-dms-act > * { margin-left: .15rem; } .bm-dms-act svg { width: 1rem; height: 1rem; }
.bm-dms-act .bm-icon-btn { width: 30px; height: 30px; }
.bm-dms-namecell { min-width: 15rem; } .bm-dms-fname span { overflow-wrap: anywhere; }
.bm-dms-meta { font-size: .78rem; margin-top: .1rem; } .bm-dms-roots { margin-top: 1rem; }
.bm-dms-empty { display: grid; justify-items: start; gap: .5rem; } .bm-dms-empty p { margin: 0; }
.bm-dms-access summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: .4rem; } .bm-dms-access summary svg { width: 1rem; height: 1rem; }
.bm-dms-acl { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .2rem; font-size: .9rem; }
.bm-dms-info h3 { margin: 1rem 0 .4rem; } .bm-dms-info .bm-tbl { margin-top: 0; }
.bm-dms-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; } .bm-dms-log li { display: flex; gap: .5rem; flex-wrap: wrap; }
.bm-nowrap { white-space: nowrap; } .bm-scroll-x { overflow-x: auto; }

/* ── 46. Interna kontrola — procedura kao dokument ───────────────────────────── */
.qc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .qc-wrap { grid-template-columns: minmax(0, 1fr); } }
.qc-main { display: grid; gap: .75rem; min-width: 0; }
.qc-side { position: sticky; top: 4.5rem; } @media (max-width: 1100px) { .qc-side { position: static; } }
.qc-side h3 { margin: 0 0 .5rem; font-size: 1rem; } .qc-side .bm-h-icon svg { width: 1.1rem; height: 1.1rem; }
.qc-side details summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.qc-paper { padding: 1.6rem 1.8rem; font-size: .94rem; line-height: 1.55; }
.qc-head { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.qc-head td { border: 1px solid var(--s-line-strong, #9aa6b8); padding: .45rem .7rem; vertical-align: middle; }
.qc-head-title { font-size: 1.15rem; text-align: center; letter-spacing: .01em; }
.qc-head-k { width: 9rem; text-align: center; font-size: .85rem; color: var(--s-muted); }
.qc-head-v { text-align: center; font-weight: 800; font-size: 1.15rem; }
.qc-head-meta { font-size: .9rem; }
.qc-change { margin: 0 0 1rem; padding: .5rem .7rem; background: var(--s-soft); border-radius: 6px; font-size: .9rem; }
.qc-doc h3 { font-size: .98rem; margin: 1.2rem 0 .35rem; color: var(--s-brand); letter-spacing: .01em; }
.qc-doc .qc-phase { margin-top: .4rem; padding-top: .2rem; }
.qc-doc .qc-phase-h { border-bottom: 2px solid var(--s-line); padding-bottom: .25rem; margin-top: 1.4rem; }
.qc-pre { white-space: pre-line; } .qc-empty { color: var(--s-muted); margin: 0; }
.qc-machines { margin: .3rem 0 .6rem; font-size: .9rem; }
.qc-block { margin: .5rem 0 1rem; } .qc-block h4 { margin: 0 0 .35rem; font-size: .95rem; font-weight: 700; }
.qc-cond, .qc-caption { margin: 0 0 .35rem; font-size: .88rem; color: var(--s-muted); }
.qc-tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.qc-tbl th, .qc-tbl td { border: 1px solid var(--s-line); padding: .3rem .5rem; text-align: left; vertical-align: top; }
.qc-tbl th { background: var(--s-soft); font-weight: 600; }
.qc-tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .qc-tbl .n { width: 2.2rem; text-align: center; color: var(--s-muted); }
.qc-rich p { margin: 0 0 .4rem; } .qc-rich ul, .qc-rich ol { margin: 0 0 .4rem; padding-left: 1.3rem; } .qc-rich ul { list-style: disc; } .qc-rich ol { list-style: decimal; }
.qc-imgs { display: flex; flex-wrap: wrap; gap: .6rem; } .qc-imgs img { max-width: 22rem; max-height: 16rem; border: 1px solid var(--s-line); border-radius: 6px; }
.qc-sign { margin: 1.4rem 0 0; padding-top: .6rem; border-top: 1px solid var(--s-line); font-size: .88rem; color: var(--s-muted); }
.qc-dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: 0; font-size: .9rem; } .qc-dl dt { color: var(--s-muted); } .qc-dl dd { margin: 0; }
.qc-small { font-size: .82rem; }
.qc-trials, .qc-versions, .qc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .9rem; }
.qc-trials li { padding-bottom: .55rem; border-bottom: 1px solid var(--s-line); } .qc-trials li:last-child { border-bottom: 0; padding-bottom: 0; }
.qc-trial-h { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.qc-trial-act { display: flex; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; } .qc-trial-act svg { width: 1rem; height: 1rem; }
.qc-ready { margin: .7rem 0 0; color: var(--s-ok-ink); font-weight: 600; display: flex; gap: .35rem; align-items: center; } .qc-ready svg { width: 1.1rem; height: 1.1rem; }
.qc-versions li { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; } .qc-versions li > div { flex-basis: 100%; }
.qc-versions li.is-current .bm-link { font-weight: 800; }
.qc-log li { line-height: 1.4; }
.qc-head-kind { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--s-muted); margin-bottom: .15rem; }
.qc-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; }
.qc-step { border: 1px solid var(--s-line); border-radius: 10px; padding: .6rem; display: grid; gap: .45rem; align-content: start; background: var(--s-panel); }
.qc-step-no { font-weight: 800; color: var(--s-brand); }
.qc-step img { width: 100%; max-height: 14rem; object-fit: contain; border-radius: 6px; background: var(--s-soft); }
.qc-step-text { font-size: .88rem; } .qc-step-warn { font-size: .84rem; color: var(--s-bad-ink); }
.qc-ppe { display: flex; flex-wrap: wrap; gap: .4rem; } .qc-ppe-chip { border: 1.5px solid var(--s-ok-ink); color: var(--s-ok-ink); border-radius: 999px; padding: .1rem .6rem; font-weight: 600; font-size: .84rem; }
.qc-ack-bar { height: .5rem; border-radius: 999px; background: var(--s-soft); overflow: hidden; margin: .2rem 0 .35rem; } .qc-ack-bar span { display: block; height: 100%; background: var(--s-ok-ink); }
.qc-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.qc-kpi { display: grid; gap: .15rem; border-left: 4px solid var(--s-line); }
.qc-kpi span { font-size: .84rem; color: var(--s-muted); } .qc-kpi b { font-size: 1.7rem; line-height: 1.1; } .qc-kpi small { color: var(--s-muted); }
.qc-kpi.ok { border-left-color: var(--s-ok-ink); } .qc-kpi.warn { border-left-color: var(--s-warn-ink); } .qc-kpi.bad { border-left-color: var(--s-bad-ink); }
.qc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; } @media (max-width: 1000px) { .qc-two { grid-template-columns: minmax(0, 1fr); } }
.qc-two .bm-btn svg { width: 1rem; height: 1rem; }

/* ── 47. Kontrolne liste ─────────────────────────────────────────────────────── */
.qcl-tbl td { vertical-align: top; } .qcl-tbl .qcl-ans { text-align: right; width: 1%; }
.qcl-sec th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--s-muted); padding-top: .9rem; }
.qcl-nok td { background: color-mix(in srgb, var(--s-bad-ink) 7%, transparent); }
.qcl-note { font-size: .84rem; color: var(--s-muted); margin-top: .2rem; white-space: pre-line; }
.qcl-pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--s-line); }
.qcl-pill.yes { background: color-mix(in srgb, var(--s-ok-ink) 15%, transparent); color: var(--s-ok-ink); }
.qcl-pill.no { background: color-mix(in srgb, var(--s-bad-ink) 15%, transparent); color: var(--s-bad-ink); }
.qcl-photo { max-width: 160px; max-height: 120px; border-radius: 6px; }
.qcl-sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; margin-top: 1rem; font-size: .88rem; }
.qcl-sign dt { color: var(--s-muted); font-size: .78rem; } .qcl-sign dd { margin: 0; }
.fi-fo-table-repeater.qcl-items table td:first-child, .fi-fo-table-repeater.qcl-items table th:first-child { min-width: 0; width: 2.5rem; }
.fi-fo-table-repeater.qcl-items table td:nth-child(3), .fi-fo-table-repeater.qcl-items table th:nth-child(3) { min-width: 14rem; }

/* ── 48. Meni po modulima ────────────────────────────────────────────────────── */
/* Drugi red gornje trake: moduli. Na užim ekranima (< 1024px) moduli su u levom meniju (izbor modula). */
@media (min-width: 1024px) {
  :root { --topbar-height: calc(var(--s-top) + 42px); }
  .fi-topbar { flex-wrap: wrap; height: auto !important; min-height: var(--s-top); align-content: flex-start; }
  .fi-topbar > * { min-height: var(--s-top); }
  .fi-topbar > .bm-modbar { min-height: 42px; }
  .bm-modsel { display: none; }
}
@media (max-width: 1023px) { .bm-modbar { display: none !important; } }
.bm-modbar { order: 99; flex: 0 0 calc(100% + 2rem); display: flex; align-items: stretch; gap: .15rem; margin-inline: -1rem;
  padding-inline: 1rem; background: color-mix(in srgb, var(--s-topbar) 82%, #000); border-top: 1px solid rgba(255,255,255,.08); overflow-x: auto; scrollbar-width: none; }
.bm-mod { display: inline-flex; align-items: center; gap: .45rem; padding: 0 .85rem; color: rgba(255,255,255,.78); font-size: .9rem; font-weight: 500;
  white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; transition: color .12s, background .12s; }
.bm-mod svg { width: 18px; height: 18px; opacity: .85; }
.bm-mod:hover, .bm-mod:focus-visible { color: #fff; background: rgba(255,255,255,.07); outline: none; }
.bm-mod.is-active { color: #fff; font-weight: 600; border-bottom-color: #F08A24; background: rgba(255,255,255,.06); }
.bm-mod.is-active svg { opacity: 1; }
/* izbor modula u levom meniju (telefon, tablet) */
.bm-modsel { position: relative; margin: 0 0 .5rem; }
.bm-modsel-btn { width: 100%; display: grid; grid-template-columns: 20px 1fr 18px; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; text-align: left;
  padding: .5rem .7rem; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: var(--s-panel); }
.bm-modsel-btn small { grid-column: 1 / -1; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--s-muted); }
.bm-modsel-btn svg { width: 20px; height: 20px; color: var(--s-brand); } .bm-modsel-btn svg:last-child { width: 18px; color: var(--s-muted); }
.bm-modsel-list { position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 4px); background: var(--s-panel); border: 1px solid var(--s-line); border-radius: var(--s-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: .3rem; }
.bm-modsel-list a { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 6px; font-size: .95rem; }
.bm-modsel-list a svg { width: 20px; height: 20px; color: var(--s-muted); }
.bm-modsel-list a:hover, .bm-modsel-list a.is-active { background: var(--s-hover, #eef2f8); } .bm-modsel-list a.is-active { font-weight: 600; }
/* prečice: jedno dugme sa natpisom i spiskom */
.bm-sc-star { width: auto; padding: 0 .65rem; display: inline-flex; gap: .4rem; font-size: .88rem; font-weight: 500; }
.bm-sc-star svg { width: 18px; height: 18px; }
.bm-sc-empty { padding: .6rem .8rem; color: var(--s-muted); font-size: .88rem; }
@media (max-width: 1279px) { .bm-sc-txt { display: none; } .bm-sc-star { width: 38px; padding: 0; justify-content: center; } }
/* naslov modula u levom meniju */
.fi-sidebar-group:first-of-type .fi-sidebar-group-label { color: var(--s-brand-text) !important; }
.fi-topbar .fi-global-search-field input:focus { outline: none !important; box-shadow: none !important; }
.fi-topbar .fi-global-search-field .fi-input-wrp-suffix { background: transparent !important; border: 0 !important; color: rgba(255,255,255,.6) !important; font-size: .75rem; }
.fi-topbar .fi-global-search-field .fi-input-wrp-suffix * { color: inherit !important; }
.fi-global-search-field { min-width: 18rem; }
@media (max-width: 1023px) { .fi-topbar .fi-global-search-field .fi-input-wrp-suffix { display: none !important; } .fi-global-search-field { min-width: 0; } }
.bm-mod-badge { font-style: normal; font-size: .7rem; font-weight: 700; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px;
  display: inline-grid; place-items: center; background: #F08A24; color: #fff; margin-inline-start: .1rem; }
.bm-mod-badge.is-danger { background: #d92d20; }
.bm-modsel-list .bm-mod-badge { margin-inline-start: auto; }

/* ── 49. UI standard: tabele, zaglavlja, forme ──────────────────────────────── */
/* dugmad u redu tabele uvek vidljiva: kolona radnji je zalepljena desno kad tabela ne staje u širinu */
@media (min-width: 640px) {
  .fi-ta-table td.fi-ta-cell:has(> .fi-ta-actions), .fi-ta-table th.fi-ta-actions-header-cell {
    position: sticky; right: 0; z-index: 1; background: var(--s-panel, #fff); box-shadow: -10px 0 10px -10px rgba(16, 24, 40, .18); }
  .fi-ta-row:hover td.fi-ta-cell:has(> .fi-ta-actions) { background: inherit; }
}
/* tabela kao kartice na telefonu: natpis sitno iznad vrednosti, dugmad preko cele širine */
@media (max-width: 639px) {
  .fi-ta-table-stacked-on-mobile .fi-ta-cell-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--s-muted); }
  .fi-ta-table-stacked-on-mobile .fi-ta-actions { justify-content: flex-start; flex-wrap: wrap; }
  .fi-ta-table-stacked-on-mobile .fi-ta-actions .fi-btn { min-height: 40px; }
}
/* zaglavlje strane: „Pomoć” kao ikona pored glavnih dugmadi */
.fi-header-actions-ctn [data-help] { color: var(--s-muted); }
/* „Za danas”: ista poruka za više pogona u jednom redu, pogoni na klik */
.bm-alert-group details summary { cursor: pointer; list-style: none; }
.bm-alert-group details summary::-webkit-details-marker { display: none; }
.bm-alert-group details summary::after { content: " ▾"; opacity: .7; }
.bm-alert-group details[open] summary::after { content: " ▴"; }
.bm-alert-sub { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .45rem; }
.bm-alert-sub a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
/* donja traka na telefonu */
.bm-bottombar { display: none; }
@media (max-width: 639px) {
  .bm-bottombar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 25; inset-inline: 0; bottom: 0;
    background: var(--s-panel, #fff); border-top: 1px solid var(--s-line); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(16,24,40,.06); }
  .bm-bottombar a, .bm-bottombar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .3rem .15rem;
    font-size: .68rem; line-height: 1.15; color: var(--s-muted); text-align: center; border-radius: 8px; min-height: 48px; justify-content: center; }
  .bm-bottombar span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .bm-bottombar svg { width: 22px; height: 22px; }
  .bm-bottombar .is-active { color: var(--s-brand); font-weight: 600; background: color-mix(in srgb, var(--s-brand) 8%, transparent); }
  .bm-bottombar .bm-mod-badge { position: absolute; top: 2px; left: calc(50% + 6px); }
  .fi-main-ctn, .fi-footer { padding-bottom: 4.5rem; }
}

/* 50. Ekrani u hali (Display Board): link za televizor na strani ekrana */
.bm-tv-link code { display: block; padding: .6rem .8rem; border-radius: .5rem; background: var(--s-bg-soft, #f3f5f9); border: 1px solid var(--s-line, #dde3ec); font-size: .85rem; word-break: break-all; user-select: all; }
.bm-tv-link p { margin-top: .5rem; font-size: .8rem; color: var(--s-muted, #5d6b85); }

/* 51. Učinak po radniku i smeni */
.bm-linkbtn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.bm-linkbtn:hover b, .bm-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.bm-h-note { font-size: .75rem; font-weight: 400; margin-left: .5rem; }
.bm-trend { font-weight: 700; font-variant-numeric: tabular-nums; }
.bm-trend.up { color: #12855a; } .bm-trend.down { color: #c4291c; }
.bm-tbl tr.is-selected > td { background: color-mix(in srgb, #F08A24 8%, transparent); }
.bm-tbl tr.bm-subrow > td { background: #f6f8fb; padding: .75rem 1rem 1rem; }
.bm-subhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.bm-subhead .bm-linkbtn { color: #5d6b85; font-size: .8rem; }
.bm-tbl-sm td, .bm-tbl-sm th { padding-top: .3rem; padding-bottom: .3rem; font-size: .82rem; }
.dark .bm-tbl tr.bm-subrow > td { background: rgba(255,255,255,.03); }

/* 52. Sledljivost */
.bm-grow { flex: 1; min-width: 260px; }
.bm-trace-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .bm-trace-cols { grid-template-columns: 1fr; } }
.bm-tree { list-style: none; margin: 0; padding-left: 0; }
.bm-tree .bm-tree { padding-left: 1.1rem; border-left: 2px solid #e3e8f0; margin: .35rem 0 .2rem .35rem; }
.bm-tree li { padding: .3rem 0 .3rem 1.4rem; position: relative; font-size: .88rem; }
.bm-tree li::before { position: absolute; left: 0; top: .3rem; font-size: .85rem; }
.bm-tree li.is-receipt::before { content: "📥"; } .bm-tree li.is-order::before { content: "⚙️"; }
.bm-tree li.is-lot::before { content: "📦"; } .bm-tree li.is-ship::before { content: "🚚"; }
.bm-print-only { display: none; }
@media print {
  .bm-noprint, .fi-sidebar, .fi-topbar, .fi-header-actions, .bm-module-bar, .bm-bottom-bar { display: none !important; }
  .bm-print-only { display: block; }
  .bm-trace-cols { grid-template-columns: 1fr 1fr; }
}
.bm-flash.bad { background: #fdecea; color: #a1251a; border-color: #f5c2bc; }
.bm-empty-card p { color: #5d6b85; margin: 0; }

/* 53. Uvoz podataka */
.bm-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.bm-choice-item { border: 1.5px solid #dde3ec; border-radius: .75rem; padding: .8rem 1rem; cursor: pointer; display: grid; gap: .2rem; }
.bm-choice-item input { position: absolute; opacity: 0; pointer-events: none; }
.bm-choice-item small { color: #5d6b85; font-size: .8rem; }
.bm-choice-item.is-on { border-color: #F08A24; background: color-mix(in srgb, #F08A24 6%, transparent); }
.bm-drop { display: flex; align-items: center; justify-content: center; border: 2px dashed #c8d1df; border-radius: .75rem; padding: 1.6rem; cursor: pointer; color: #3a4a66; font-weight: 600; }
.bm-drop:hover { border-color: #F08A24; }
.bm-drop input { display: none; }
.bm-inline { display: flex; flex-wrap: wrap; gap: .4rem; }
.bm-btn-ico { width: 1.1em; height: 1.1em; }
.bm-tbl tr.is-error > td { background: #fdf1ef; }
.bm-tbl tr.is-error-msg > td { background: #fdf1ef; color: #a1251a; font-size: .8rem; padding-top: 0; }

/* 54. Plan kapaciteta */
.bm-cap-legend { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: #5d6b85; margin-left: auto; align-self: end; padding-bottom: .5rem; }
.bm-cap-legend i { display: inline-block; width: .9rem; height: .9rem; border-radius: .25rem; margin-left: .5rem; }
.bm-cap-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.bm-cap-grid th { font-weight: 600; color: #5d6b85; padding: .55rem .3rem; text-align: center; border-bottom: 1px solid #e3e8f0; white-space: nowrap; font-size: .75rem; }
.bm-cap-grid th small { display: block; font-weight: 500; font-size: .68rem; text-transform: uppercase; }
.bm-cap-grid th.is-week, .bm-cap-grid td.is-week { border-left: 2px solid #d5dce8; }
.bm-cap-grid td { border-bottom: 1px solid #eef1f6; padding: 0; text-align: center; }
.bm-cap-name { text-align: left !important; padding: .5rem .75rem !important; min-width: 210px; position: sticky; left: 0; background: #fff; z-index: 1; }
.bm-cap-name small { display: block; color: #5d6b85; font-size: .72rem; }
.bm-cap-name .bm-tag { margin-top: .2rem; }
.bm-cap-machine .bm-cap-name { padding-left: 1.4rem !important; font-size: .8rem; }
.bm-cap-cell button { width: 100%; min-height: 2.6rem; border: 0; background: none; font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.bm-cap-cell.cap-ok, .bm-cap-legend .cap-ok { background: #e3f5ea; } .bm-cap-cell.cap-ok button { color: #12855a; }
.bm-cap-cell.cap-tight, .bm-cap-legend .cap-tight { background: #fdf0d8; } .bm-cap-cell.cap-tight button { color: #a15c00; }
.bm-cap-cell.cap-over, .bm-cap-legend .cap-over { background: #fbdcd8; } .bm-cap-cell.cap-over button { color: #b42318; }
.bm-cap-cell.is-sel { outline: 2px solid #1f3a68; outline-offset: -2px; }
.bm-cap-unit td { border-top: 1px solid #dde3ec; }
.bm-cap-grid td.num { text-align: right; padding: .4rem .75rem; white-space: nowrap; } .bm-cap-grid td.num small { display: block; color: #5d6b85; }
.bm-input-sm { min-height: 32px; padding: .2rem .5rem; font-size: .82rem; }
.dark .bm-cap-name { background: #18212f; }

/* 55. Kalendar i zadaci */
.bm-cal-bar { align-items: center; justify-content: space-between; }
.bm-cal-nav { display: flex; align-items: center; gap: .5rem; }
.bm-cal-month { font-size: 1.15rem; min-width: 10rem; text-align: center; }
.bm-cal-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.bm-cal-chip { border: 1.5px solid #dde3ec; background: #fff; border-radius: 99px; padding: .25rem .75rem; font-size: .8rem; font-weight: 600; color: #5d6b85; cursor: pointer; }
.bm-cal-chip.is-on { color: #fff; border-color: transparent; }
.bm-cal-chip.k-task.is-on { background: #1f3a68; } .bm-cal-chip.k-order.is-on { background: #F08A24; } .bm-cal-chip.k-delivery.is-on { background: #12855a; }
.bm-cal-chip.k-purchase.is-on { background: #6d4bc4; } .bm-cal-chip.k-maintenance.is-on { background: #8a5a00; }
.bm-cal-mine { font-size: .82rem; display: inline-flex; gap: .3rem; align-items: center; margin-left: .4rem; }
.bm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #e3e8f0; border-radius: .75rem; overflow: hidden; background: #fff; }
.bm-cal-head { padding: .45rem .6rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: #5d6b85; background: #f6f8fb; border-bottom: 1px solid #e3e8f0; }
.bm-cal-day { min-height: 7.2rem; padding: .35rem .4rem; border-right: 1px solid #eef1f6; border-bottom: 1px solid #eef1f6; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.bm-cal-day:nth-child(7n) { border-right: 0; }
.bm-cal-day.is-out { background: #fafbfd; } .bm-cal-day.is-out .bm-cal-num { color: #b3bccb; }
.bm-cal-day.is-off { background: repeating-linear-gradient(135deg, #fafbfd, #fafbfd 6px, #f3f5f9 6px, #f3f5f9 12px); }
.bm-cal-day.is-today .bm-cal-num { color: #fff; background: #F08A24; border-radius: 99px; padding: 0 .45rem; align-self: flex-start; }
.bm-cal-num { font-size: .8rem; font-weight: 700; color: #3a4a66; display: flex; gap: .3rem; align-items: baseline; }
.bm-cal-num small { font-weight: 500; color: #a1251a; font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-cal-item { display: block; font-size: .72rem; line-height: 1.25; padding: .12rem .35rem; border-radius: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-left: 3px solid; background: #f3f5f9; color: #22304a; text-decoration: none; }
.bm-cal-item:hover { filter: brightness(.95); text-decoration: none; }
.bm-cal-item.k-task { border-color: #1f3a68; } .bm-cal-item.k-order { border-color: #F08A24; } .bm-cal-item.k-delivery { border-color: #12855a; }
.bm-cal-item.k-purchase { border-color: #6d4bc4; } .bm-cal-item.k-maintenance { border-color: #8a5a00; }
.bm-cal-item.is-late { background: #fdecea; color: #a1251a; font-weight: 600; }
.bm-cal-item.is-done { opacity: .5; text-decoration: line-through; }
.bm-cal-more { font-size: .7rem; color: #5d6b85; padding-left: .35rem; }
@media (max-width: 768px) { .bm-cal-day { min-height: 4.5rem; } .bm-cal-item { font-size: .62rem; } }
.dark .bm-cal-grid, .dark .bm-cal-chip { background: #18212f; }

/* 56. Podaci firme: primer IPS koda */
.bm-ips-preview { display: flex; gap: 18px; align-items: flex-start; }
.bm-ips-qr { flex: 0 0 150px; background: #fff; padding: 6px; border: 1px solid #dde3ec; border-radius: 8px; }
.bm-ips-qr svg { width: 136px; height: 136px; display: block; }
.bm-ips-preview code { display: block; font-size: 11px; word-break: break-all; background: #f3f5f9; padding: 6px 8px; border-radius: 6px; margin-top: 6px; }
/* 57. Prostor za fajlove */
.bm-storage { margin: .35rem 0 .5rem; font-size: .875rem; } .bm-storage .bm-meter { max-width: 340px; }
.bm-meter.warn i { background: var(--s-warn-ink, #b7791f); } .bm-meter.bad i { background: var(--s-bad-ink, #b42318); }
/* 58. CRM: faze prilike, hronologija aktivnosti, prodajna tabla */
.bm-crm-stages { display: flex; gap: 0; flex-wrap: wrap; }
.bm-crm-stages > * { flex: 1; min-width: 110px; text-align: center; padding: .55rem .5rem; font-size: .82rem; font-weight: 600; background: var(--s-soft); color: var(--s-muted);
    border: 1px solid var(--s-line); margin-left: -1px; font-family: inherit; }
.bm-crm-stages > *:first-child { border-radius: 8px 0 0 8px; margin-left: 0; } .bm-crm-stages > *:last-child { border-radius: 0 8px 8px 0; }
.bm-crm-stages button { cursor: pointer; } .bm-crm-stages button:hover { background: var(--s-brand-soft); color: var(--s-brand); }
.bm-crm-stages .past { background: var(--s-ok-bg, #e8f6ee); color: var(--s-ok-ink); } .bm-crm-stages .on { background: var(--s-brand); color: #fff; border-color: var(--s-brand); }
.bm-crm-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.bm-crm-timeline li { display: grid; grid-template-columns: 30px 1fr; gap: .6rem; }
.bm-crm-timeline .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--s-brand-soft); color: var(--s-brand); display: grid; place-items: center; }
.bm-crm-timeline .ic svg { width: 16px; height: 16px; }
.bm-crm-timeline b { display: block; } .bm-crm-timeline small { display: block; } .bm-crm-timeline p { margin: .25rem 0 0; font-size: .9rem; }
.bm-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: .8rem; overflow-x: auto; align-items: start; }
.bm-board-col { background: var(--s-soft); border: 1px solid var(--s-line); border-radius: 10px; padding: .6rem; min-height: 200px; }
.bm-board-col h3 { margin: 0 0 .2rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; display: flex; justify-content: space-between; }
.bm-board-col .sum { font-size: .78rem; color: var(--s-muted); margin-bottom: .6rem; }
.bm-board-card { background: var(--s-panel, #fff); border: 1px solid var(--s-line); border-radius: 8px; padding: .55rem .65rem; margin-bottom: .5rem; }
.bm-board-card a.tt { font-weight: 600; color: inherit; text-decoration: none; display: block; } .bm-board-card a.tt:hover { color: var(--s-brand); }
.bm-board-card small { display: block; color: var(--s-muted); }
.bm-board-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: .35rem; font-size: .85rem; }
.bm-board-card .mv { display: flex; gap: .25rem; } .bm-board-card .mv button { border: 1px solid var(--s-line); background: transparent; border-radius: 6px; width: 26px; height: 24px; cursor: pointer; color: var(--s-muted); }
.bm-board-card .mv button:hover { color: var(--s-brand); border-color: var(--s-brand); }
.bm-board-card.late { box-shadow: inset 3px 0 0 #c43c3c; }
.bm-h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--s-muted); margin: 0; }
/* 59. Sistem menadžmenta: matrica obuka, rizici */
.bm-tmx { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 700; font-size: .8rem; }
.bm-tmx.valid { background: #e3f4ea; color: #1e7d4f; } .bm-tmx.expiring { background: #fff4d6; color: #9a6400; }
.bm-tmx.expired { background: #fdecea; color: #b42318; } .bm-tmx.missing { background: #fff; color: #b42318; border: 1.5px dashed #e3a39c; }
.bm-tmx-legend { font-size: .82rem; color: var(--s-muted); display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.bm-tmx-table td.center { text-align: center; } .bm-tmx-table th.rot { min-width: 64px; max-width: 110px; font-size: .75rem; white-space: normal; text-align: center; vertical-align: bottom; }
.bm-heat { border-collapse: separate; border-spacing: 3px; margin: .3rem 0; }
.bm-heat td { width: 38px; height: 30px; text-align: center; font-weight: 700; border-radius: 5px; font-size: .9rem; }
.bm-heat th { font-size: .75rem; color: var(--s-muted); font-weight: 600; width: 18px; }
.bm-heat td.low { background: #e3f4ea; color: #1e7d4f; } .bm-heat td.medium { background: #fff4d6; color: #9a6400; }
.bm-heat td.high { background: #fde3cf; color: #b54708; } .bm-heat td.critical { background: #fdecea; color: #b42318; }
a.bm-kpi { color: inherit; text-decoration: none; } a.bm-kpi:hover { border-color: var(--s-brand); }

/* ---- Katalog partnera / panel partnera ---- */
.bm-callout { border-left: 4px solid var(--bm-accent, #2c5299); }
.bm-callout.info { border-left-color: #2c5299; background: #f3f6fc; }
.bm-callout.warn { border-left-color: #b7791f; background: #fdf8ef; }
.bm-callout.bad { border-left-color: #b42318; background: #fdf3f2; }
.dark .bm-callout.info, .dark .bm-callout.warn, .dark .bm-callout.bad { background: transparent; }
.bm-mp-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bm-mp-card { display: flex; flex-direction: column; border: 1px solid var(--bm-line, #e3e6ec); border-radius: 10px; overflow: hidden; background: var(--bm-surface, #fff); }
.dark .bm-mp-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.bm-mp-img { aspect-ratio: 16 / 9; background: #eef0f4 center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #9aa3b5; }
.bm-mp-body { padding: .7rem .85rem .85rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.bm-mp-body h4 { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.bm-mp-vendor { font-size: .78rem; color: #5e6678; display: flex; align-items: center; gap: .35rem; }
.bm-mp-vendor img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.bm-mp-sum { font-size: .82rem; color: #454c5c; margin: 0; }
.dark .bm-mp-sum { color: #c3c9d5; }
.bm-mp-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .45rem; }
.bm-mp-price { font-weight: 600; font-size: .85rem; }
.bm-mp-ad { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: #9aa3b5; }
.bm-mp-strip { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.bm-mp-strip .bm-mp-img { aspect-ratio: 3 / 1; }
.bm-mp-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.bm-mp-filters .bm-chip { border: 1px solid var(--bm-line, #d5dae3); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; cursor: pointer; background: transparent; }
.bm-mp-filters .bm-chip.on { background: #1f3a68; color: #fff; border-color: #1f3a68; }
.bm-plan-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.bm-plan { border: 1px solid var(--bm-line, #e3e6ec); border-radius: 10px; padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.bm-plan.on { border-color: #2c5299; box-shadow: 0 0 0 2px rgba(44,82,153,.2); }
.bm-plan h3 { margin: 0; font-size: 1.05rem; }
.bm-plan .price { font-size: 1.4rem; font-weight: 700; }
.bm-plan ul { margin: .2rem 0 .6rem; padding-left: 1.1rem; font-size: .85rem; }
.bm-plan .bm-btn { margin-top: auto; }
.bm-plan .price small { font-size: .8rem; font-weight: 500; }
