/* ==========================================================================
   MNS HRIS — Bootstrap 5 Overrides (SAFE GLOBAL + HR-REDESIGN SCOPED)
   --------------------------------------------------------------------------
   STRATEGIJA: Stare stranice koje koriste Bootstrap klase ne dizajnirane za
   "modern" izgled SE NE DIRAJU agresivno. Globalno menjamo samo brand boje
   (preko --bs-* CSS varijabli). Strukturalne promjene (heading veličine,
   button padding, ikon veličine, kartice) primjenjuju se SAMO unutar
   .hr-redesign scope-a — što su nove stranice opt-in.

   Učitati POSLIJE bootstrap.min.css i POSLIJE tokens.css.
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL — SAMO --bs-primary BRAND BOJA (najsigurnije)
   Bootstrap koristi --bs-primary za primary buttons, focus stilove, alerts,
   itd. Setujemo ga na našu brand boju da svi primary elementi koriste novi
   brand. NE diramo border-radius, padding, font-size, ništa drugo globalno.
   ========================================================================== */
:root {
  --bs-primary:          var(--hr-primary);
  --bs-primary-rgb:      var(--hr-primary-rgb);
  --bs-link-color:       var(--hr-primary);
  --bs-link-hover-color: var(--hr-primary-dark);
  --bs-link-color-rgb:   var(--hr-primary-rgb);
}

/* btn-primary brand color — samo boje, ne menja padding/size */
.btn-primary {
  --bs-btn-bg:                  var(--hr-primary);
  --bs-btn-border-color:        var(--hr-primary);
  --bs-btn-hover-bg:            var(--hr-primary-dark);
  --bs-btn-hover-border-color:  var(--hr-primary-dark);
  --bs-btn-active-bg:           var(--hr-primary-dark);
  --bs-btn-active-border-color: var(--hr-primary-dark);
}
.btn-outline-primary {
  --bs-btn-color:              var(--hr-primary);
  --bs-btn-border-color:       var(--hr-primary);
  --bs-btn-hover-bg:           var(--hr-primary);
  --bs-btn-hover-border-color: var(--hr-primary);
}

/* ==========================================================================
   GLOBAL: COLORED OUTLINE BUTTONS — refresh sa našom paletom
   Bootstrap btn-outline-info/warning/danger/success default boje (cyan/yellow/red/green)
   su gradijentne i ne odgovaraju našem branding-u. Zamjenjujemo sa našom status paletom
   koja se primjenjuje GLOBALNO (na svim stranicama, ne samo .hr-redesign).
   ========================================================================== */
.btn-outline-info {
  --bs-btn-color:              var(--hr-status-info-fg);
  --bs-btn-border-color:       var(--hr-border);
  --bs-btn-bg:                 transparent;
  --bs-btn-hover-bg:           var(--hr-status-info-bg);
  --bs-btn-hover-border-color: var(--hr-status-info-dot);
  --bs-btn-hover-color:        var(--hr-status-info-fg);
  --bs-btn-active-bg:          var(--hr-status-info-dot);
  --bs-btn-active-border-color:var(--hr-status-info-dot);
  --bs-btn-active-color:       var(--hr-white);
}
.btn-outline-warning {
  --bs-btn-color:              var(--hr-status-leave-fg);
  --bs-btn-border-color:       var(--hr-border);
  --bs-btn-bg:                 transparent;
  --bs-btn-hover-bg:           var(--hr-status-leave-bg);
  --bs-btn-hover-border-color: var(--hr-status-leave-dot);
  --bs-btn-hover-color:        var(--hr-status-leave-fg);
  --bs-btn-active-bg:          var(--hr-status-leave-dot);
  --bs-btn-active-border-color:var(--hr-status-leave-dot);
  --bs-btn-active-color:       var(--hr-white);
}
.btn-outline-danger {
  --bs-btn-color:              var(--hr-status-inactive-fg);
  --bs-btn-border-color:       var(--hr-border);
  --bs-btn-bg:                 transparent;
  --bs-btn-hover-bg:           var(--hr-status-inactive-bg);
  --bs-btn-hover-border-color: var(--hr-status-inactive-dot);
  --bs-btn-hover-color:        var(--hr-status-inactive-fg);
  --bs-btn-active-bg:          var(--hr-status-inactive-dot);
  --bs-btn-active-border-color:var(--hr-status-inactive-dot);
  --bs-btn-active-color:       var(--hr-white);
}
.btn-outline-success {
  --bs-btn-color:              var(--hr-status-active-fg);
  --bs-btn-border-color:       var(--hr-border);
  --bs-btn-bg:                 transparent;
  --bs-btn-hover-bg:           var(--hr-status-active-bg);
  --bs-btn-hover-border-color: var(--hr-status-active-dot);
  --bs-btn-hover-color:        var(--hr-status-active-fg);
  --bs-btn-active-bg:          var(--hr-status-active-dot);
  --bs-btn-active-border-color:var(--hr-status-active-dot);
  --bs-btn-active-color:       var(--hr-white);
}
.btn-outline-secondary {
  --bs-btn-color:              var(--hr-text-muted);
  --bs-btn-border-color:       var(--hr-border);
  --bs-btn-bg:                 transparent;
  --bs-btn-hover-bg:           var(--hr-bg-hover);
  --bs-btn-hover-border-color: var(--hr-text-dim);
  --bs-btn-hover-color:        var(--hr-text);
}

/* Filled coloured buttons takođe — koriste status dot boje */
.btn-info {
  --bs-btn-bg:                 var(--hr-status-info-dot);
  --bs-btn-border-color:       var(--hr-status-info-dot);
  --bs-btn-color:              var(--hr-white);
  --bs-btn-hover-bg:           var(--hr-status-info-fg);
  --bs-btn-hover-border-color: var(--hr-status-info-fg);
  --bs-btn-hover-color:        var(--hr-white);
}
.btn-warning {
  --bs-btn-bg:                 var(--hr-status-leave-dot);
  --bs-btn-border-color:       var(--hr-status-leave-dot);
  --bs-btn-color:              var(--hr-white);
  --bs-btn-hover-bg:           var(--hr-status-leave-fg);
  --bs-btn-hover-border-color: var(--hr-status-leave-fg);
  --bs-btn-hover-color:        var(--hr-white);
}
.btn-danger {
  --bs-btn-bg:                 var(--hr-status-inactive-dot);
  --bs-btn-border-color:       var(--hr-status-inactive-dot);
  --bs-btn-color:              var(--hr-white);
  --bs-btn-hover-bg:           var(--hr-status-inactive-fg);
  --bs-btn-hover-border-color: var(--hr-status-inactive-fg);
  --bs-btn-hover-color:        var(--hr-white);
}
.btn-success {
  --bs-btn-bg:                 var(--hr-status-active-dot);
  --bs-btn-border-color:       var(--hr-status-active-dot);
  --bs-btn-color:              var(--hr-white);
  --bs-btn-hover-bg:           var(--hr-status-active-fg);
  --bs-btn-hover-border-color: var(--hr-status-active-fg);
  --bs-btn-hover-color:        var(--hr-white);
}

/* ==========================================================================
   GLOBAL: COLORED BADGES — refresh sa našom paletom
   Bootstrap .bg-* na badges koriste vivid colors. Override-ujemo na našu paletu.
   ========================================================================== */
.badge.bg-primary, .badge.text-bg-primary {
  background: var(--hr-primary) !important;
  color: var(--hr-white) !important;
}
.badge.bg-secondary, .badge.text-bg-secondary {
  background: var(--hr-bg-soft) !important;
  color: var(--hr-text-muted) !important;
}
.badge.bg-success, .badge.text-bg-success {
  background: var(--hr-status-active-bg) !important;
  color: var(--hr-status-active-fg) !important;
}
.badge.bg-danger, .badge.text-bg-danger {
  background: var(--hr-status-inactive-bg) !important;
  color: var(--hr-status-inactive-fg) !important;
}
.badge.bg-warning, .badge.text-bg-warning {
  background: var(--hr-status-leave-bg) !important;
  color: var(--hr-status-leave-fg) !important;
}
.badge.bg-info, .badge.text-bg-info {
  background: var(--hr-status-info-bg) !important;
  color: var(--hr-status-info-fg) !important;
}
.badge.bg-light, .badge.text-bg-light {
  background: var(--hr-bg-soft) !important;
  color: var(--hr-text) !important;
}
.badge.bg-dark, .badge.text-bg-dark {
  background: var(--hr-text) !important;
  color: var(--hr-white) !important;
}

/* ==========================================================================
   GLOBAL: COLORED CARD HEADERS — 60+ templates
   Stari pattern "card-header bg-primary text-white" je amaterski Bootstrap look.
   Override-ujemo da bude soft branded — bijela pozadina + border umjesto solid color.
   ========================================================================== */
.card-header.bg-primary,
.card-header.bg-secondary,
.card-header.bg-success,
.card-header.bg-danger,
.card-header.bg-warning,
.card-header.bg-info,
.card-header.bg-dark,
.card-header.bg-light {
  background: var(--hr-bg-soft) !important;
  color: var(--hr-text) !important;
  border-bottom: 1px solid var(--hr-border) !important;
}
.card-header.bg-primary { border-left: 4px solid var(--hr-primary) !important; }
.card-header.bg-success { border-left: 4px solid var(--hr-status-active-dot) !important; }
.card-header.bg-danger  { border-left: 4px solid var(--hr-status-inactive-dot) !important; }
.card-header.bg-warning { border-left: 4px solid var(--hr-status-leave-dot) !important; }
.card-header.bg-info    { border-left: 4px solid var(--hr-status-info-dot) !important; }
.card-header.bg-dark    { border-left: 4px solid var(--hr-text) !important; }
/* Text in coloured card headers should be dark, not white */
.card-header.bg-primary .card-title,
.card-header.bg-primary .modal-title,
.card-header.bg-success .card-title,
.card-header.bg-danger .card-title,
.card-header.bg-warning .card-title,
.card-header.bg-info .card-title,
.card-header.bg-dark .card-title,
.card-header.text-white {
  color: var(--hr-text) !important;
}
/* Close button on coloured cards/modals */
.card-header.bg-primary .btn-close-white,
.card-header.bg-danger .btn-close-white,
.modal-header.bg-primary .btn-close-white,
.modal-header.bg-danger .btn-close-white {
  filter: none !important;
}

/* ==========================================================================
   GLOBAL: TABLE HEAD VARIANTS — 41+ templates
   Bootstrap thead "table-primary/table-dark/table-light" mijenjamo na naš
   uniform uppercase muted style (kao u .hr-table).
   ========================================================================== */
.table > thead.table-primary,
.table > thead.table-dark,
.table > thead.table-light,
.table > thead.table-secondary {
  background: var(--hr-bg-soft) !important;
}
.table > thead.table-primary > tr > th,
.table > thead.table-dark > tr > th,
.table > thead.table-light > tr > th,
.table > thead.table-secondary > tr > th {
  background: var(--hr-bg-soft) !important;
  color: var(--hr-text-muted) !important;
  border-bottom: 1px solid var(--hr-border) !important;
  font-size: var(--hr-font-size-sm) !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  padding: 10px 12px !important;
  white-space: nowrap !important;
}
/* Generic .table thead th (no variant class) — same treatment */
.table > thead > tr > th {
  background: var(--hr-bg-soft);
  color: var(--hr-text-muted);
  font-size: var(--hr-font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--hr-border);
  padding: 10px 12px;
}

/* ==========================================================================
   GLOBAL: ALERT polish — softer look
   ========================================================================== */
.alert {
  border-radius: var(--hr-radius) !important;
  border: 1px solid transparent !important;
}
.alert-primary, .alert-info {
  background: var(--hr-status-info-bg) !important;
  color: var(--hr-status-info-fg) !important;
  border-color: var(--hr-status-info-bg) !important;
}
.alert-success {
  background: var(--hr-status-active-bg) !important;
  color: var(--hr-status-active-fg) !important;
  border-color: var(--hr-status-active-bg) !important;
}
.alert-danger {
  background: var(--hr-status-inactive-bg) !important;
  color: var(--hr-status-inactive-fg) !important;
  border-color: var(--hr-status-inactive-bg) !important;
}
.alert-warning {
  background: var(--hr-status-leave-bg) !important;
  color: var(--hr-status-leave-fg) !important;
  border-color: var(--hr-status-leave-bg) !important;
}
.alert-secondary, .alert-light, .alert-dark {
  background: var(--hr-bg-soft) !important;
  color: var(--hr-text-muted) !important;
  border-color: var(--hr-border) !important;
}

/* ==========================================================================
   GLOBAL: CENTERED TITLES — soft fix
   Stari pattern <h1 class="card-title text-center"> centered title.
   Ne možemo da ga left-align globalno (može razbiti namjeran centering),
   ali možemo da damo branded look — primary color border below.
   ========================================================================== */
.card-body > h1.card-title.text-center,
.card-body > h2.card-title.text-center {
  font-size: var(--hr-h2-size, 24px);
  font-weight: 700;
  color: var(--hr-text);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.card-body > h1.card-title.text-center::after,
.card-body > h2.card-title.text-center::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--hr-primary);
  border-radius: 2px;
}

/* ==========================================================================
   GLOBAL: List-group polish
   ========================================================================== */
.list-group-item {
  border-color: var(--hr-border-soft) !important;
  font-size: var(--hr-font-size);
}
.list-group-item.active {
  background: var(--hr-primary) !important;
  border-color: var(--hr-primary) !important;
}
.list-group-item-action:hover {
  background: var(--hr-bg-hover) !important;
}

/* ==========================================================================
   GLOBAL: Form check polish
   ========================================================================== */
.form-check-input:checked {
  background-color: var(--hr-primary) !important;
  border-color: var(--hr-primary) !important;
}
.form-check-input:focus {
  border-color: var(--hr-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--hr-primary-rgb), 0.15) !important;
}

/* ==========================================================================
   2. SCOPED ZA .hr-redesign — strukturalni overrides, heading-i, ikone
   Primijenjuje se SAMO na nove stranice koje imaju .hr-redesign wrapper.
   ========================================================================== */

/* Unutar .hr-redesign override-ujemo Bootstrap CSS varijable lokalno —
   sve Bootstrap komponente unutar (.btn, .card, .modal, .pagination, .dropdown)
   automatski dobijaju softer radius bez toga da diramo ostatak app-a. */
.hr-redesign {
  --bs-border-radius:      var(--hr-radius);
  --bs-border-radius-sm:   var(--hr-radius-sm);
  --bs-border-radius-lg:   var(--hr-radius-lg);
  --bs-border-radius-pill: var(--hr-radius-pill);
}

/* Body typography (samo unutar .hr-redesign — ne dira ostatak app-a) */
.hr-redesign {
  font-family: var(--hr-font);
  font-size: var(--hr-font-size);
  line-height: var(--hr-leading-normal);
  color: var(--hr-text);
}

/* Headings — samo unutar nove stranice */
.hr-redesign h1, .hr-redesign .h1 {
  font-size: var(--hr-h1-size); font-weight: var(--hr-h1-weight);
  letter-spacing: var(--hr-h1-ls); line-height: var(--hr-leading-tight);
  color: var(--hr-text); margin-bottom: var(--hr-space-3);
}
.hr-redesign h2, .hr-redesign .h2 {
  font-size: var(--hr-h2-size); font-weight: var(--hr-h2-weight);
  letter-spacing: var(--hr-h2-ls); line-height: var(--hr-leading-tight);
  color: var(--hr-text); margin-bottom: var(--hr-space-3);
}
.hr-redesign h3, .hr-redesign .h3 {
  font-size: var(--hr-h3-size); font-weight: var(--hr-h3-weight);
  letter-spacing: var(--hr-h3-ls); line-height: var(--hr-leading-snug);
  color: var(--hr-text); margin-bottom: var(--hr-space-2);
}
.hr-redesign h4, .hr-redesign .h4 {
  font-size: var(--hr-h4-size); font-weight: var(--hr-h4-weight);
  color: var(--hr-text); margin-bottom: var(--hr-space-2);
}
.hr-redesign h5, .hr-redesign .h5 {
  font-size: var(--hr-h5-size); font-weight: var(--hr-h5-weight);
  color: var(--hr-text); margin-bottom: var(--hr-space-2);
}
.hr-redesign h6, .hr-redesign .h6 {
  font-size: var(--hr-h6-size); font-weight: var(--hr-h6-weight);
  letter-spacing: var(--hr-h6-ls); color: var(--hr-text-muted);
  text-transform: uppercase; margin-bottom: var(--hr-space-2);
}

/* Bootstrap form controls — samo u .hr-redesign */
.hr-redesign .form-control,
.hr-redesign .form-select {
  font-size: var(--hr-font-size);
  padding: 8px 12px;
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
  color: var(--hr-text);
  background: var(--hr-white);
  transition: border-color var(--hr-transition), box-shadow var(--hr-transition);
}
.hr-redesign .form-control:focus,
.hr-redesign .form-select:focus {
  border-color: var(--hr-primary);
  box-shadow: var(--hr-ring-soft);
  outline: none;
}
.hr-redesign .form-control::placeholder { color: var(--hr-text-dim); }
.hr-redesign .form-label {
  font-size: var(--hr-font-size-sm);
  color: var(--hr-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

/* Tabele — samo u .hr-redesign */
.hr-redesign .table {
  font-size: var(--hr-font-size);
  color: var(--hr-text);
  --bs-table-bg: transparent;
}
.hr-redesign .table thead th {
  background: var(--hr-bg-soft);
  border-bottom: 1px solid var(--hr-border);
  font-size: var(--hr-font-size-sm);
  text-transform: uppercase;
  color: var(--hr-text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 12px;
}
.hr-redesign .table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hr-border-soft);
  vertical-align: middle;
}
.hr-redesign .table-hover tbody tr:hover { background: var(--hr-bg-hover); }

/* Kartice — samo u .hr-redesign (stari templates zadržavaju svoj card stil) */
.hr-redesign .card {
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius-lg);
  box-shadow: var(--hr-shadow-xs);
  background: var(--hr-white);
}
.hr-redesign .card:hover { transform: none; }   /* nullify stari "translateY(-5px)" */
.hr-redesign .card-header {
  background: var(--hr-bg-soft);
  border-bottom: 1px solid var(--hr-border);
  font-weight: 600;
}

/* Modal/Offcanvas — softer shadow + radius (samo .hr-redesign) */
.hr-redesign .modal-content,
.hr-redesign + .modal .modal-content {
  border: none;
  border-radius: var(--hr-radius-lg);
  box-shadow: var(--hr-shadow-xl);
}

/* Alerts — samo u .hr-redesign */
.hr-redesign .alert {
  border: none;
  border-radius: var(--hr-radius);
}
.hr-redesign .alert-success { background: var(--hr-status-active-bg);   color: var(--hr-status-active-fg); }
.hr-redesign .alert-warning { background: var(--hr-status-leave-bg);    color: var(--hr-status-leave-fg); }
.hr-redesign .alert-danger  { background: var(--hr-status-inactive-bg); color: var(--hr-status-inactive-fg); }
.hr-redesign .alert-info    { background: var(--hr-status-info-bg);     color: var(--hr-status-info-fg); }

/* Dropdown menu — softer (samo .hr-redesign) */
.hr-redesign .dropdown-menu {
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius);
  box-shadow: var(--hr-shadow-lg);
}
.hr-redesign .dropdown-item:hover,
.hr-redesign .dropdown-item:focus {
  background: var(--hr-primary-soft);
  color: var(--hr-primary);
}

/* Pagination — samo u .hr-redesign */
.hr-redesign .pagination .page-link {
  color: var(--hr-text);
  border-color: var(--hr-border);
}
.hr-redesign .pagination .page-link:hover {
  background: var(--hr-primary-soft);
  border-color: var(--hr-primary);
  color: var(--hr-primary);
}
.hr-redesign .pagination .page-item.active .page-link {
  background: var(--hr-primary);
  border-color: var(--hr-primary);
}

/* Nav tabs — samo u .hr-redesign */
.hr-redesign .nav-tabs { border-bottom: 1px solid var(--hr-border); }
.hr-redesign .nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--hr-text-muted);
  background: transparent;
}
.hr-redesign .nav-tabs .nav-link:hover {
  color: var(--hr-primary);
  border-bottom-color: rgba(var(--hr-primary-rgb), 0.3);
}
.hr-redesign .nav-tabs .nav-link.active {
  color: var(--hr-primary);
  border-bottom-color: var(--hr-primary);
  font-weight: 600;
}

/* Tooltip — bolji default (samo u .hr-redesign) */
.hr-redesign .tooltip-inner {
  background: var(--hr-text);
  color: var(--hr-white);
  font-size: var(--hr-font-size-sm);
  border-radius: var(--hr-radius-sm);
}

/* Breadcrumb — samo u .hr-redesign */
.hr-redesign .breadcrumb {
  font-size: var(--hr-font-size-sm);
  color: var(--hr-text-muted);
  background: transparent;
}
.hr-redesign .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--hr-text-dim);
}

/* Material Icons unutar .hr-redesign — kontrolisana veličina (suptilno) */
.hr-redesign .material-icons {
  vertical-align: middle;
  line-height: 1;
}
/* Icon size utility klase — koristi po potrebi, ne globalno */
.hr-redesign .icon-xs { font-size: var(--hr-icon-size-xs) !important; }
.hr-redesign .icon-sm { font-size: var(--hr-icon-size-sm) !important; }
.hr-redesign .icon-md { font-size: var(--hr-icon-size) !important; }
.hr-redesign .icon-lg { font-size: var(--hr-icon-size-lg) !important; }
.hr-redesign .icon-xl { font-size: var(--hr-icon-size-xl) !important; }

/* Selection branding (samo u .hr-redesign) */
.hr-redesign ::selection {
  background: var(--hr-selection-bg);
  color: var(--hr-selection-fg);
}

/* ==========================================================================
   GLOBAL OVERRIDES — komponente koje pop-up-uju van .hr-redesign konteksta
   (modal/dropdown/offcanvas/toast su Bootstrap-injected u <body>, ne mogu
   pod .hr-redesign scope). Override-uju se globalno da i njih dobijemo
   custom brand izgled.
   ========================================================================== */

/* MODAL — pravi 100% custom look */
.modal-content {
  border: none !important;
  border-radius: var(--hr-radius-lg) !important;
  box-shadow: var(--hr-shadow-xl) !important;
  background: var(--hr-white) !important;
}
.modal-header {
  border-bottom: 1px solid var(--hr-border) !important;
  padding: 16px 20px !important;
  background: var(--hr-bg-soft);
  border-radius: var(--hr-radius-lg) var(--hr-radius-lg) 0 0 !important;
}
.modal-title {
  font-size: var(--hr-font-size-lg) !important;
  font-weight: 700 !important;
  color: var(--hr-text) !important;
}
.modal-body { padding: 20px !important; font-size: var(--hr-font-size); color: var(--hr-text); }
.modal-footer {
  border-top: 1px solid var(--hr-border) !important;
  padding: 12px 20px !important;
  background: var(--hr-bg-soft);
  border-radius: 0 0 var(--hr-radius-lg) var(--hr-radius-lg) !important;
}
.modal-backdrop.show { opacity: 0.55; }
/* Skidamo Bootstrap header coloured backgrounds (bg-primary, bg-danger) — to je amaterski look */
.modal-header.bg-primary, .modal-header.bg-danger, .modal-header.bg-warning, .modal-header.bg-success {
  background: var(--hr-bg-soft) !important;
  color: var(--hr-text) !important;
}
.modal-header.bg-primary .modal-title,
.modal-header.bg-danger .modal-title,
.modal-header.bg-warning .modal-title,
.modal-header.bg-success .modal-title { color: var(--hr-text) !important; }
.modal-header .btn-close-white {
  filter: none !important;
  opacity: 0.7;
}

/* DROPDOWN — globalno (Bootstrap renderuje u body) */
.dropdown-menu {
  border: 1px solid var(--hr-border) !important;
  border-radius: var(--hr-radius) !important;
  box-shadow: var(--hr-shadow-lg) !important;
  padding: 4px !important;
  font-size: var(--hr-font-size);
  background: var(--hr-white) !important;
}
.dropdown-item {
  border-radius: var(--hr-radius-sm) !important;
  padding: 8px 12px !important;
  color: var(--hr-text) !important;
  font-size: var(--hr-font-size);
  transition: background var(--hr-transition);
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background: var(--hr-primary-soft) !important;
  color: var(--hr-primary) !important;
}
.dropdown-divider { border-color: var(--hr-border-soft) !important; margin: 4px 0; }
.dropdown-header {
  color: var(--hr-text-muted) !important;
  font-size: var(--hr-font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
}

/* TOOLTIP — globalno (Bootstrap renderuje u body) */
.tooltip-inner {
  background: var(--hr-text) !important;
  color: var(--hr-white) !important;
  font-size: var(--hr-font-size-sm) !important;
  font-weight: 500 !important;
  padding: 6px 10px !important;
  border-radius: var(--hr-radius-sm) !important;
  box-shadow: var(--hr-shadow);
  max-width: 280px;
}
.bs-tooltip-top .tooltip-arrow::before    { border-top-color:    var(--hr-text) !important; }
.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: var(--hr-text) !important; }
.bs-tooltip-start .tooltip-arrow::before  { border-left-color:   var(--hr-text) !important; }
.bs-tooltip-end .tooltip-arrow::before    { border-right-color:  var(--hr-text) !important; }

/* POPOVER — globalno */
.popover {
  border: 1px solid var(--hr-border) !important;
  border-radius: var(--hr-radius-lg) !important;
  box-shadow: var(--hr-shadow-lg) !important;
}
.popover-header {
  background: var(--hr-bg-soft) !important;
  border-bottom: 1px solid var(--hr-border) !important;
  font-size: var(--hr-font-size) !important;
  font-weight: 600 !important;
  color: var(--hr-text) !important;
}
.popover-body {
  font-size: var(--hr-font-size-sm) !important;
  color: var(--hr-text) !important;
}

/* TOAST — globalno (pozicionira se fixed u body) */
.toast {
  border: 1px solid var(--hr-border) !important;
  border-radius: var(--hr-radius) !important;
  box-shadow: var(--hr-shadow-lg) !important;
  background: var(--hr-white) !important;
}
.toast-header {
  background: var(--hr-bg-soft) !important;
  border-bottom: 1px solid var(--hr-border) !important;
  color: var(--hr-text) !important;
  font-weight: 600;
}
.toast-body {
  font-size: var(--hr-font-size);
  color: var(--hr-text);
}
/* Coloured toasts → naša paleta */
.toast.bg-success, .toast.text-bg-success { background: var(--hr-status-active-dot) !important; color: var(--hr-white) !important; border-color: var(--hr-status-active-dot) !important; }
.toast.bg-danger, .toast.text-bg-danger { background: var(--hr-status-inactive-dot) !important; color: var(--hr-white) !important; border-color: var(--hr-status-inactive-dot) !important; }
.toast.bg-warning, .toast.text-bg-warning { background: var(--hr-status-leave-dot) !important; color: var(--hr-white) !important; border-color: var(--hr-status-leave-dot) !important; }
.toast.bg-info, .toast.text-bg-info { background: var(--hr-status-info-dot) !important; color: var(--hr-white) !important; border-color: var(--hr-status-info-dot) !important; }

/* OFFCANVAS — globalno (Bootstrap renderuje van .hr-redesign) */
.offcanvas {
  border: none !important;
  box-shadow: var(--hr-shadow-xl) !important;
  background: var(--hr-white) !important;
}
.offcanvas-header {
  border-bottom: 1px solid var(--hr-border) !important;
  padding: 16px 20px;
}
.offcanvas-title {
  font-size: var(--hr-font-size-lg) !important;
  font-weight: 700 !important;
  color: var(--hr-text) !important;
}
.offcanvas-body { padding: 20px; font-size: var(--hr-font-size); color: var(--hr-text); }

/* ACCORDION — globalno za .hr-redesign stranice koje ga koriste */
.hr-redesign .accordion {
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius-lg);
  overflow: hidden;
}
.hr-redesign .accordion-item {
  border: none;
  border-bottom: 1px solid var(--hr-border);
  background: var(--hr-white);
}
.hr-redesign .accordion-item:last-child { border-bottom: none; }
.hr-redesign .accordion-button {
  background: var(--hr-white);
  color: var(--hr-text);
  font-weight: 600;
  padding: 14px 16px;
  font-size: var(--hr-font-size);
  box-shadow: none !important;
}
.hr-redesign .accordion-button:not(.collapsed) {
  background: var(--hr-primary-soft);
  color: var(--hr-primary);
}
.hr-redesign .accordion-button:focus {
  box-shadow: var(--hr-ring-soft) !important;
  border-color: var(--hr-primary) !important;
}
.hr-redesign .accordion-body {
  padding: 16px;
  font-size: var(--hr-font-size);
  color: var(--hr-text);
}

/* FORM CHECK / SWITCH — globalno (radi i van .hr-redesign za stari forme) */
.form-check-input {
  border-color: var(--hr-border);
  cursor: pointer;
}
.form-check-input:focus {
  border-color: var(--hr-primary);
  box-shadow: var(--hr-ring-soft);
}
.form-check-input:checked {
  background-color: var(--hr-primary) !important;
  border-color: var(--hr-primary) !important;
}
.form-check-label { cursor: pointer; }

/* SPINNER — branded */
.spinner-border, .spinner-grow {
  color: var(--hr-primary);
}

/* PROGRESS BAR — branded */
.progress {
  background: var(--hr-border) !important;
  border-radius: var(--hr-radius-pill) !important;
  height: 8px;
}
.progress-bar {
  background: var(--hr-primary) !important;
  border-radius: var(--hr-radius-pill) !important;
}

/* CLOSE BUTTON — branded */
.btn-close {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235A6B7C'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  opacity: 0.6;
  transition: opacity var(--hr-transition);
}
.btn-close:hover { opacity: 1; }
