@charset "UTF-8";
/* CSS Document */
.selectize-table {
  margin: auto;
  text-align: center;
}
.fixed-text {
  line-height: 34px;
  font-size: 14px;
}
.width-38 {
  width: 38% !important;
}
.width-33 {
  width: 33% !important;
}

.badge-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 1px;
  height: 20px !important;
}
#fileupload label {
  width: 40%;
  margin: auto;
}
.selectize {
  display: inline-block;
  width: 30%;
}

.helpButtonFixSelectize {
  position: relative;
  top: -14px;
}
.dropdown-colorpicker {
  float: left;
  top: 5px;
}
a:focus {
  outline: 0;
  border: 0;
}
body {
  font-family: "Open Sans", sans-serif;
}
.selectize {
  display: inline-block;
  width: 33%;
  text-align: left;
}
.selectize-control:focus {
  border-color: #f59942 !important;
}
/*.selectize input:placeholder-shown{
    width: 100% !important;
}*/
small.navbar_title {
  position: relative;
  margin-left: 10px;
  top: 25px;
  font-size: 15px;
  color: #fff;
}

.ace-nav > li {
  height: 60px;
}
.ace-nav > li > a {
  padding-top: 0px;
}
.ace-nav .nav-user-photo {
  margin: 10px 8px 0 0;
}

.user-info {
  top: 12px;
}

.noPadding {
  padding: 0;
}
.textOnly {
  position: relative;
  top: 9px;
  float: left;
  margin-right: 5px;
}
/******
******* Header ********************/

.page-header {
  border-bottom: 1px solid #438eb9;
}

.user_photo {
  margin-left: 10px;
}
.bigger-110 {
  font-size: 16px;
}

.table thead tr th [class*="fa-"]:first-child {
  margin-right: 5px;
}
.pl-10 {
  padding-left: 10px;
}

.ml-10 {
  margin-left: 10px;
}
.mr12 {
  margin-right: 12px;
}
.mr20 {
  margin-right: 20px;
}
.mt15 {
  margin-top: 15px;
}
.mt-5 {
  margin-top: 5px;
}
.mrT60 {
  margin-top: 60px;
}
.mrB10 {
  margin-bottom: 10px;
}
.mrL10 {
  margin-left: 10% !important;
}
.mrR50 {
  margin-right: 50px !important;
}
.bbd {
  margin-bottom: 10px;
}
.bbd img {
  margin-right: 14px;
  outline: 1px solid #e2e2e2;
  margin-bottom: 10px;
}
.bbd img:nth-child(6n) {
  margin-right: 0px;
}
.text-inline {
  font-size: 12px;
}
.help-button {
  line-height: 19px;
}
.vkHelpButtonFix {
  position: relative;
  top: -55px;
  vertical-align: middle;
}
.helpButtonFixSelctize {
  position: relative;
  top: -14px;
}
.helpButtonFix {
  position: relative;
  top: -7px;
}
.typeaheadHelpButtonFix {
  position: relative;
  top: 5px;
}
.txtOnlyHelpButtonFix,
.spinnerHelpButtonFix {
  position: relative;
  top: 5px;
}
.dateHelpButtonFix {
  position: relative;
  top: -4px;
  left: 4px;
}
#gore.btn,
#dole.btn {
  padding: 0 0 0 5px;
}
a#izmena {
  position: relative;
  top: 3px;
  margin-right: 5px;
}
.menu-toggler .menu-text {
  display: block;
  color: #fff;
  position: relative;
  top: 3px;
  text-transform: uppercase;
}
.navbar {
  /*background-image: url("../img/logo.png");*/
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: #438eb9;
}

.navbar .navbar-brand {
  padding-top: 10px;
  padding-bottom: 0;
  padding-left: 0;
  margin-left: 0;
  margin-right: 0;
}
.logo-text {
  font-size: 24px;
  padding: 0 10px 0 5px;
  position: relative;
  top: 7px;
  font-weight: 600;
}
.datepicker {
  z-index: 1200 !important;
}
.welcome {
  font-size: 18px;
}

.infobox-container {
  margin-bottom: 30px;
}

.login-layout {
  background-color: #0c4076 !important;
}

.logImg {
  position: relative;
  margin-top: 20px;
  margin-bottom: 10px;
}
.white {
  color: #fff;
}
td.widthCol {
  width: 100px;
  outline: 1px solid red;
}
.gritter-centerAkcijaView {
  position: fixed;
  left: 40%;
  right: 40%;

  top: 33%;
}
.sendTestKampanja {
  margin-top: 20px;
}
.sendTestKampanja input {
  margin-left: 25px;
}

ul.listTableField,
ul.listTableFieldHead {
  list-style: none;
}
.listTableFieldHead li {
  font-size: 12px;
  float: left;
  margin-right: 1%;
  background-color: #1b6aaa;
  text-align: center;
  border: 4px solid #428bca;
  padding: 10px 15px;
  color: #fff;
  width: 32%;
  height: 110px;
}
.listTableField li {
  font-size: 14px;
  margin-top: 30px;
}
.listTableFieldHead li h4 {
  color: #fff;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #fff;
  margin-bottom: 10px;
  padding-bottom: 10px;
}
.listTableField li h4 {
  color: #478fca;
  text-transform: uppercase;
  font-size: 16px;
}
strong.br {
  background-color: #fff;
  color: #1b6aaa;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 15px;
  padding: 5px 10px;
  position: relative;
  top: 5px;
}
a.aHrefGrupa:focus {
  outline: 0 !important;
  border: 4px solid #d15b47;
}
a.aHrefGrupa:active {
  top: 1px;
}
.alert.mt-5 {
  margin-bottom: 0 !important;
}
.alert-grey {
  background-color: #bfbfbf;
}
input.tt-hint,
.form-group input.tt-hint {
  background-color: transparent !important;
}
/* Added from this point */
.twitter-typeahead {
  width: 100%;
}
.tt-dropdown-menu {
  width: 100%;
}
input.ajax-typeahead {
  /* This is optional */
  width: 90%;
}
.pointer {
  cursor: pointer;
}
.form-group .input-icon {
  padding: 0;
  margin: 0;
  width: 90%;
}
.form-group .input-icon input,
.form-group .input-icon .chosen-container-multi .chosen-choices {
  padding-left: 30px;
}

@media (max-width: 520px) {
  .logo-text {
    font-size: 17px;
  }
}

@media (max-width: 479px) {
  .navbar .navbar-brand {
    padding: 10px 0 10px 10px;
  }
  .navbar:not(.navbar-collapse) .ace-nav > li {
    float: right !important;
  }
}
@media (max-width: 320px) {
  .menu-toggler .menu-text {
    display: none;
  }
}

button.search-btn {
  position: absolute;
  left: 0;
  background: transparent;
  border: 0;
}

button.search-btn i {
  position: relative;
  top: 2px;
  left: -2px;
}

.bootstrap-table-fix {
  float: left;
  width: 100%;
  padding: 0px;
  margin-bottom: 30px;
}
.bootstrap-table-delete-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: #dd5a43;
  font-size: 1.3em;
  cursor: pointer;
}
.bootstrap-table-delete-btn:hover {
  color: #bb4530;
}
.btn-bootstrap {
  line-height: 1.6em;
  margin: 0px !important;
  border: inherit !important;
  border-radius: 5px;
  background-color: #6faed9 !important;
}
.btn-bootstrap:hover {
  background-color: #438eb9 !important;
}
.btn-bootstrap:focus {
  background-color: #6faed9 !important;
}
span.dropup > .btn-bootstrap {
  border-radius: 5px !important;
  padding: 3px;
}
span.dropup > .btn-bootstrap > .caret {
  margin: 0px;
}
.btn.dropdown-toggle:focus {
  background-color: #6faed9 !important;
}
.mr-5 {
  margin-right: 5px !important;
}

/* =============================================
   MODERN CMS DESIGN SYSTEM
   ============================================= */

/* --- CMS Card --- */
.cms-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border: 1px solid #e8edf2;
  overflow: hidden;
}
.cms-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #edf1f5;
  background: #f8fafc;
}
.cms-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  letter-spacing: 0.2px;
}
.cms-card-title i {
  color: #4a90d9;
  margin-right: 7px;
}
.cms-card-tools {
  display: flex;
  gap: 8px;
}
.cms-card-body {
  padding: 20px;
}
.cms-save-card .cms-card-body {
  padding: 16px;
}
.cms-save-card .btn {
  margin-bottom: 8px;
}
.cms-save-card .btn:last-child {
  margin-bottom: 0;
}

/* --- Form Elements --- */
.cms-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  display: block;
  margin-bottom: 6px;
}
.cms-input,
.cms-textarea {
  border: 1.5px solid #dde3ea;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  color: #2d3748;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fff;
  width: 100%;
}
.cms-input:focus,
.cms-textarea:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
  outline: none;
}
.cms-textarea {
  resize: vertical;
  min-height: 100px;
}
.cms-field-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 5px;
}
.cms-field-hint i {
  margin-right: 3px;
}

/* --- File Upload --- */
.cms-file-upload {
  position: relative;
  margin-top: 4px;
}
.cms-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.cms-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #c4d0dc;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
  color: #64748b;
}
.cms-file-label:hover {
  border-color: #4a90d9;
  background: #f0f6ff;
  color: #4a90d9;
}
.cms-file-label i {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}
.cms-file-label span {
  font-size: 13px;
  font-weight: 500;
}
.cms-file-label small {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
.cms-current-image {
  margin-bottom: 16px;
}
.cms-image-preview {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  max-width: 100%;
}
.cms-image-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

/* --- Toggle Switch --- */
.cms-status-toggle {
  margin-top: 4px;
}
.cms-toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  margin: 0;
  font-weight: 400;
}
.cms-toggle-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cms-toggle-label input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cms-toggle-label input[type="checkbox"]:checked {
  background: #22c55e;
}
.cms-toggle-label input[type="checkbox"]:checked::after {
  left: 21px;
}
.cms-toggle-text {
  font-size: 13px;
  color: #4a5568;
}

/* --- Info Table --- */
.cms-info-table {
  margin: 0;
}
.cms-info-table td {
  padding: 5px 8px;
  border: none;
  font-size: 12px;
}
.cms-info-table td:first-child {
  width: 80px;
}

/* --- Buttons (header kartice) - JEDNA geometrija za sve, kao .cms-card-header-btn;
       !important je obavezan jer Ace tema boji svaki .btn u sivo sa !important --- */
.btn-cms-primary,
.btn-cms-secondary,
.btn-cms-view {
  border-radius: 6px !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
  line-height: 1.5 !important;
  transition: background 0.15s, box-shadow 0.15s !important;
}
/* Primarna akcija (Novi tag, Nova vest, Podešavanja...) - puni teal */
.btn-cms-primary {
  background: #00529f !important;
  border-color: #00529f !important;
  color: #fff !important;
  box-shadow: 0 1px 4px rgba(0, 82, 159, 0.2) !important;
}
.btn-cms-primary:hover,
.btn-cms-primary:focus {
  background: #003e78 !important;
  border-color: #003e78 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 82, 159, 0.3) !important;
}
/* Sekundarna akcija uz primarnu (Grupe, Dodaj grupu...) - belo sa teal okvirom */
.btn-cms-secondary {
  background: #fff !important;
  border-color: #00529f !important;
  color: #00529f !important;
  box-shadow: none !important;
}
.btn-cms-secondary:hover,
.btn-cms-secondary:focus {
  background: #f1f6fc !important;
  border-color: #003e78 !important;
  color: #003e78 !important;
}
/* Redosled u tabelama - STANDARD za sve module: drag-handle (prevlačenje) + strelice gore/dole */
.cms-ord-btns {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  vertical-align: middle;
  margin-left: 4px;
}
.cms-ord-btns button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 16px;
  cursor: pointer;
  color: #64748b;
}
.cms-ord-btns button:hover {
  background: #f1f6fc;
  color: #00529f;
  border-color: #00529f;
}
.cms-ord-broj {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  color: #94a3b8;
  vertical-align: middle;
}

/* „Pogledaj na sajtu" / export - svetli teal (kao btn-tbl-view) */
.btn-cms-view {
  background: #ecfeff !important;
  border-color: #a5f3fc !important;
  color: #0e7490 !important;
  box-shadow: none !important;
}
.btn-cms-view:hover,
.btn-cms-view:focus {
  background: #cffafe !important;
  border-color: #67e8f9 !important;
  color: #155e75 !important;
  box-shadow: 0 2px 8px rgba(14, 116, 144, 0.25) !important;
  text-decoration: none;
}
.btn-cms-edit {
  background: #f0f6ff;
  border-color: #bdd7f8;
  color: #4a90d9;
  border-radius: 4px;
  padding: 4px 9px;
}
.btn-cms-edit:hover {
  background: #4a90d9;
  border-color: #4a90d9;
  color: #fff;
}
.btn-cms-delete {
  background: #fff5f5;
  border-color: #fecaca;
  color: #ef4444;
  border-radius: 4px;
  padding: 4px 9px;
}
.btn-cms-delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.btn-cms-active {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #22c55e;
  border-radius: 4px;
  padding: 4px 9px;
}
.btn-cms-active:hover {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.btn-cms-inactive {
  background: #fafafa;
  border-color: #e5e7eb;
  color: #9ca3af;
  border-radius: 4px;
  padding: 4px 9px;
}
.btn-cms-inactive:hover {
  background: #6b7280;
  border-color: #6b7280;
  color: #fff;
}
.btn-toggle-status {
  cursor: pointer;
}

/* --- Badges --- */
.cms-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-block;
}
.badge-cms-active {
  background: #dcfce7;
  color: #15803d;
}
.badge-cms-inactive {
  background: #f1f5f9;
  color: #94a3b8;
}

/* --- Modern Table --- */
.cms-table {
  border-collapse: collapse;
}
.cms-table thead tr th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e8edf2;
  padding: 10px 12px;
}
.cms-table tbody tr {
  transition: background 0.15s;
}
.cms-table tbody tr:hover {
  background: #f8fafc !important;
}
.cms-table td {
  vertical-align: middle !important;
  padding: 10px 12px !important;
  border-color: #f1f5f9 !important;
}
.cms-table .fixed-table-toolbar {
  padding: 0 0 12px 0;
}

/* --- Page header improvement --- */
.page-header h1 {
  font-size: 20px;
  color: #2d3748;
  font-weight: 600;
}
.page-header h1 small {
  font-size: 13px;
  color: #94a3b8;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  background: #0e2a4d !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: none !important;
  min-height: 50px;
}
.navbar .navbar-container {
  background: #0e2a4d !important;
}
.ats-navbar-brand {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 0 18px !important;
  height: 50px;
  text-decoration: none !important;
}
.ats-logo-svg {
  display: flex;
  align-items: center;
}
.ats-logo-svg svg {
  height: 28px;
  width: auto;
}
.ats-navbar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.ats-navbar-text strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.ats-navbar-text small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
/* Wordmark (belo, U žuto - uz grb) */
.fuzip-wordmark strong {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2.5px;
}
.fuzip-wordmark .fuzip-u {
  color: #ffcd05;
}
.fuzip-navbar-grb {
  height: 34px;
  width: 34px;
  object-fit: contain;
  margin-right: 9px;
  vertical-align: middle;
}
.ats-navbar-brand {
  display: flex !important;
  align-items: center;
}

.ace-nav {
  height: 50px;
}
.ace-nav > li {
  height: 50px;
}
.ace-nav > li > a {
  color: rgba(255, 255, 255, 0.65) !important;
  line-height: 50px;
  padding: 0 14px !important;
}
.ace-nav > li > a:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}
.ace-nav > li > a .badge {
  background: #00529f;
  font-size: 10px;
}
.ace-nav .nav-user-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 9px 8px 0 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.user-info {
  top: 10px;
}

/* =============================================
   SIDEBAR - moderan svetli meni (grupe + zaobljene stavke)
   ============================================= */
.sidebar,
.sidebar .sidebar-scroll,
.sidebar .sidebar-scroll .nav-wrap,
.sidebar .nav-list {
  background: #fff !important;
}
.sidebar {
  border-right: 1px solid #e8edf2 !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}
.sidebar .nav-list {
  padding-top: 6px;
}
/* Širi meni (190px je pretesno za pločice ikonica) - samo desktop, skupljeni režim ne diramo */
@media only screen and (min-width: 992px) {
  .sidebar:not(.menu-min) {
    width: 232px;
  }
  .sidebar:not(.menu-min) + .main-content {
    margin-left: 232px;
  }
  .sidebar:not(.menu-min) + .main-content .breadcrumbs-fixed {
    left: 232px;
  }
}
.sidebar .sidebar-shortcuts,
.sidebar .sidebar-shortcuts-mini {
  background: #f8fafc !important;
  border-bottom: 1px solid #e8edf2 !important;
}
.sidebar-shortcuts-mini .btn {
  background: #e8edf2 !important;
  border: none !important;
  color: #64748b !important;
}

/* Naslovi grupa */
.nav-list > li.fuzip-nav-grupa {
  border: none !important;
  background: transparent !important;
  padding: 16px 20px 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9aa7b5;
  cursor: default;
}
/* U skupljenom meniju naslov grupe postaje tanka linija */
.sidebar.menu-min .nav-list > li.fuzip-nav-grupa {
  padding: 6px 0;
}
.sidebar.menu-min .nav-list > li.fuzip-nav-grupa > span {
  display: none;
}
.sidebar.menu-min .nav-list > li.fuzip-nav-grupa:before {
  content: "";
  display: block !important;
  position: static !important;
  height: 0 !important;
  width: auto !important;
  max-width: none !important;
  border-top: 1px solid #edf1f5;
  background: transparent !important;
  margin: 0 10px;
}

/* Top-level stavke - zaobljene "pilule" */
.nav-list > li {
  border: none !important;
  background: transparent !important;
}
.nav-list > li > a {
  position: relative;
  height: auto !important;
  color: #44505e !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px !important;
  transition:
    background 0.15s,
    color 0.15s;
  background: transparent !important;
}
.sidebar:not(.menu-min) .nav-list > li > a {
  margin: 2px 10px;
  padding: 6px 10px !important;
  border-radius: 9px;
  white-space: nowrap;
  overflow: hidden;
}
.nav-list > li > a:hover {
  background: #eef4fb !important;
  color: #00529f !important;
}
.nav-list > li.active > a,
.nav-list > li.open > a {
  color: #007f72 !important;
  background: #e8eff8 !important;
  font-weight: 600;
}

/* Ikonice - ujednačene pločice */
.nav-list > li > a > [class*="fa-"]:not(.arrow),
.nav-list > li > a > .menu-icon {
  color: #64748b !important;
  background: #f1f5f9;
  width: 30px;
  height: 30px;
  line-height: 30px !important;
  border-radius: 8px;
  margin-right: 10px;
  font-size: 13px !important;
  text-align: center;
  display: inline-block;
  vertical-align: top;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-list > li > a:hover > [class*="fa-"]:not(.arrow),
.nav-list > li > a:hover > .menu-icon {
  background: #d9efec;
  color: #00529f !important;
}
.nav-list > li.active > a > [class*="fa-"]:not(.arrow),
.nav-list > li.active > a > .menu-icon,
.nav-list > li.open > a > [class*="fa-"]:not(.arrow),
.nav-list > li.open > a > .menu-icon {
  background: #00529f !important;
  color: #fff !important;
}
/* U skupljenom meniju bez pločica - samo glif, ACE određuje raspored */
.sidebar.menu-min .nav-list > li > a > [class*="fa-"]:not(.arrow),
.sidebar.menu-min .nav-list > li > a > .menu-icon {
  background: transparent !important;
  width: auto;
  height: auto;
  margin-right: 0;
  font-size: 16px !important;
  line-height: inherit !important;
  border-radius: 0;
  color: #64748b !important;
}
.sidebar.menu-min .nav-list > li > a:hover > [class*="fa-"]:not(.arrow),
.sidebar.menu-min .nav-list > li > a:hover > .menu-icon,
.sidebar.menu-min .nav-list > li.active > a > [class*="fa-"]:not(.arrow),
.sidebar.menu-min .nav-list > li.active > a > .menu-icon,
.sidebar.menu-min .nav-list > li.open > a > [class*="fa-"]:not(.arrow),
.sidebar.menu-min .nav-list > li.open > a > .menu-icon {
  background: transparent !important;
  color: #00529f !important;
}

/* Strelica - rotira se pri otvaranju */
.nav-list > li > a > .arrow {
  right: 18px;
  top: 50% !important;
  margin-top: -7px;
  font-size: 13px;
  color: #b0bcc8 !important;
  transition: transform 0.2s;
}
.nav-list > li.open > a > .arrow {
  transform: rotate(180deg);
  color: #00529f !important;
}
.nav-list > li > a > .arrow:before {
  color: inherit !important;
}

/* Bedž nepročitanog na stavci (Porudžbine / Poruke) */
.fuzip-nav-badge {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  pointer-events: none;
}
.sidebar.menu-min .fuzip-nav-badge {
  position: static;
  transform: none;
  margin-left: 8px;
}

/* Isključeni stari ACE indikatori */
.nav-list > li:not(.fuzip-nav-grupa):before,
.nav-list > li.active:not(.fuzip-nav-grupa):before {
  display: none !important;
}
.nav-list > li.active > a:after,
.nav-list > li.active:after,
.nav-list > li.open:after,
.nav-list > li.highlight.active:after,
.nav-list > li.highlight.active:before {
  display: none !important;
}

/* Submenu - uvučen, sa vertikalnom linijom vodiljom */
.sidebar:not(.menu-min) .nav-list > li .submenu,
.sidebar:not(.menu-min) .submenu {
  background: transparent !important;
  border: none !important;
  margin: 0 10px 4px 34px;
  border-left: 2px solid #e2ecea !important;
}
.sidebar:not(.menu-min) .nav-list > li > .submenu:before,
.sidebar:not(.menu-min) .nav-list > li > .submenu > li:before {
  display: none !important;
}
.sidebar:not(.menu-min) .submenu > li > a {
  color: #64748b !important;
  font-size: 12.5px;
  margin: 1px 0 1px 8px;
  padding: 6px 10px !important;
  border-radius: 7px;
  border-top: none !important;
  background: transparent !important;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar:not(.menu-min) .submenu > li > a:hover {
  color: #00529f !important;
  background: #eef4fb !important;
}
.sidebar:not(.menu-min) .submenu > li.active > a {
  color: #007f72 !important;
  font-weight: 600;
  background: #eef4fb !important;
}
.sidebar:not(.menu-min) .submenu > li.active > a:after,
.sidebar:not(.menu-min) .submenu > li.active:after {
  display: none !important;
}
.sidebar:not(.menu-min) .submenu > li a > .menu-icon {
  display: none !important;
}
/* Skupljeni meni (flyout) - samo boje, raspored ostavljamo ACE-u */
.sidebar.menu-min .submenu {
  background: #fff !important;
  border: 1px solid #e8edf2 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.sidebar.menu-min .submenu > li > a {
  color: #64748b !important;
  background: transparent !important;
}
.sidebar.menu-min .submenu > li > a:hover,
.sidebar.menu-min .submenu > li.active > a {
  color: #00529f !important;
}
.sidebar.menu-min .nav-list > li > a > .menu-text {
  background: #fff !important;
  color: #44505e !important;
  border: 1px solid #e8edf2 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
/* Badge u submeniju - neutralan broj; crveno ostaje samo za badge-important (nepročitano) */
.submenu .badge {
  background: #eef2f6;
  color: #64748b;
  font-size: 10px;
}
.submenu .badge.badge-important {
  background: #ef4444;
  color: #fff;
}

/* Dugme za skupljanje menija */
.sidebar > .sidebar-toggle {
  background: #fff !important;
  border-top: 1px solid #eef2f6 !important;
  border-bottom: none !important;
  padding: 8px 0;
}
.sidebar > .sidebar-toggle > .fa {
  border: 1px solid #d7dee6 !important;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 24px;
  color: #8a97a5;
  background: #fff !important;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.sidebar > .sidebar-toggle:hover > .fa {
  color: #00529f;
  border-color: #00529f !important;
}

/* =============================================
   BREADCRUMB + PAGE LAYOUT
   ============================================= */
.breadcrumbs {
  background: #fff !important;
  border-bottom: 1px solid #e8edf2 !important;
  box-shadow: none;
  min-height: 36px;
}
.breadcrumb {
  font-size: 12px;
  margin: 0;
  padding: 9px 20px;
  background: transparent;
}
.breadcrumb li {
  color: #64748b;
}
.breadcrumb li.active {
  color: #94a3b8;
}
.breadcrumb > li + li:before {
  color: #cbd5e1;
  content: "\f105";
  font-family: FontAwesome;
  font-size: 11px;
  padding: 0 6px;
}
.breadcrumb a {
  color: #00529f;
}
.breadcrumb .home-icon {
  color: #94a3b8;
  font-size: 14px;
}

.main-content {
  background: #f4f7fb;
}
.page-content {
  padding: 20px 20px 80px;
}

.page-header {
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0 !important;
  background: transparent;
}
.page-header h1 {
  font-size: 20px;
  color: #1e293b;
  font-weight: 700;
  margin: 0;
}
.page-header h1 small {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 8px;
}

/* =============================================
   STICKY SAVE BAR (bottom)
   ============================================= */
/* =============================================
   SAVE BAR - floating pill, fixed bottom
   ============================================= */
.cms-save-bar {
  position: fixed;
  bottom: 20px;
  left: 190px;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  pointer-events: none;
}
.cms-save-bar-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #e8edf2;
  pointer-events: all;
}
.cms-save-bar-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: #e2e8f0;
  margin: 0 4px;
  border-radius: 1px;
}
.cms-save-bar .btn {
  min-width: 0;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
  border-width: 1.5px;
}
.cms-save-bar .btn > i {
  margin-right: 6px;
}
/* Kill Bootstrap's inset press effect */
.cms-save-bar .btn:active,
.cms-save-bar .btn:active:focus,
.cms-save-bar .btn:focus,
.cms-save-bar .btn.active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-transform: none !important;
  transform: none !important;
}
/* Primary - Sačuvaj i zatvori */
.cms-save-bar .btn-primary {
  background: #00529f !important;
  border-color: #00529f !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,82,159,0.28) !important;
}
.cms-save-bar .btn-primary:hover {
  background: #003e78 !important;
  border-color: #003e78 !important;
  box-shadow: 0 4px 14px rgba(0,82,159,0.38) !important;
}
.cms-save-bar .btn-primary:active {
  background: #006da3 !important;
}
/* Default - Sačuvaj i ostani */
.cms-save-bar .btn-default {
  background: #fff !important;
  border-color: #00529f !important;
  color: #00529f !important;
  box-shadow: none !important;
}
.cms-save-bar .btn-default:hover {
  background: #f1f6fc !important;
}
/* Vesti/Faq/Stranice koriste .btn-save / .btn-save-stay - ista logika kao btn-primary / btn-default */
.cms-save-bar .btn-save {
  background: #00529f !important;
  border-color: #00529f !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 82, 159, 0.28) !important;
}
.cms-save-bar .btn-save:hover {
  background: #003e78 !important;
  border-color: #003e78 !important;
}
.cms-save-bar .btn-save-stay {
  background: #fff !important;
  border-color: #00529f !important;
  color: #00529f !important;
  box-shadow: none !important;
}
.cms-save-bar .btn-save-stay:hover {
  background: #f1f6fc !important;
}
/* Cancel - Odustani */
.cms-save-bar .btn-cancel {
  background: #fef3c7 !important;
  border: 1.5px solid #fcd34d !important;
  color: #b45309 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}
.cms-save-bar .btn-cancel:hover {
  background: #fde68a !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}
.cms-save-bar .save-info {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
}
/* Sidebar offset adjustments */
.sidebar.compact-sidebar ~ .main-content .cms-save-bar,
body.sidebar-collapse .cms-save-bar {
  left: 43px;
}
.sidebar.compact ~ .main-content .cms-save-bar {
  left: 105px;
}
.sidebar.menu-min ~ .main-content .cms-save-bar {
  left: 43px;
}
/* Dimmed when modal is open */
.modal-open .cms-save-bar {
  filter: brightness(0.6);
  pointer-events: none;
}

/* Uski ekrani: bočni meni je sakriven, pa traka ide od ivice do ivice; na telefonu se dugmad prelamaju
   (dva dugmeta za čuvanje u prvom redu, Odustani ispod) da nijedno ne ostane van ekrana */
@media only screen and (max-width: 991px) {
  .cms-save-bar,
  .sidebar.menu-min ~ .main-content .cms-save-bar { left: 0; }
}
@media only screen and (max-width: 600px) {
  .cms-save-bar { bottom: 10px; left: 8px !important; right: 8px; }
  .cms-save-bar-inner { flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px; max-width: 100%; }
  .cms-save-bar-sep { display: none; }
  .cms-save-bar .btn { flex: 1 1 auto; padding: 9px 10px; white-space: nowrap; }
  /* mesto ispod forme da traka ne prekrije poslednja polja */
  .page-content:has(.cms-save-bar) { padding-bottom: 130px; }
}


/* =============================================
   BOOTSTRAP TABLE
   ============================================= */
.cms-card .fixed-table-toolbar {
  padding: 0 0 10px;
  background: transparent;
}
.cms-card .fixed-table-container {
  border: none !important;
}
.cms-card .fixed-table-border {
  border: 1px solid #e8edf2 !important;
  border-radius: 6px;
  overflow: hidden;
}
.fixed-table-container .table {
  margin-bottom: 0;
}
.bootstrap-table .table > thead > tr > th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-color: #e8edf2;
  white-space: nowrap;
  padding: 11px 14px;
}
.bootstrap-table .table > tbody > tr > td {
  vertical-align: middle;
  border-color: #f1f5f9;
  color: #374151;
  font-size: 13px;
  padding: 11px 14px;
}
.bootstrap-table .table > tbody > tr:hover > td {
  background: #f8fafc !important;
}
.bootstrap-table .table-striped > tbody > tr:nth-of-type(odd) {
  background: #fafbfe;
}
.fixed-table-pagination {
  padding: 14px 4px 4px;
  margin-top: 8px;
  border-top: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.fixed-table-pagination > .pull-left,
.fixed-table-pagination > .pull-right {
  float: none !important;
}
.fixed-table-pagination .pagination-detail {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.fixed-table-pagination .pagination-info {
  color: #64748b;
}
/* Izbor „koliko po stranici" (dropdown) */
.fixed-table-pagination .page-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fixed-table-pagination .page-list .btn {
  border: 1.5px solid #e2e8f0 !important;
  background: #fff !important;
  color: #334155 !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  padding: 5px 12px !important;
  height: auto !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  white-space: nowrap !important;
}
.fixed-table-pagination .page-list .btn:hover,
.fixed-table-pagination .page-list .btn:focus {
  border-color: #00529f !important;
  color: #00529f !important;
}
.fixed-table-pagination .page-list .btn .caret {
  margin: 0;
  color: #94a3b8;
}
.fixed-table-pagination .page-list .dropdown-menu {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  min-width: 72px;
  padding: 4px;
}
.fixed-table-pagination .page-list .dropdown-menu > li > a {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 5px;
  color: #334155;
}
.fixed-table-pagination .page-list .dropdown-menu > li > a:hover {
  background: #f1f6fc;
  color: #00529f;
}
.fixed-table-pagination .page-list .dropdown-menu > li.active > a {
  background: #00529f;
  color: #fff;
}
/* Strelice / brojevi stranica */
.fixed-table-pagination .pagination {
  margin: 0;
  display: inline-flex;
  gap: 4px;
}
.fixed-table-pagination .pagination > li > a,
.fixed-table-pagination .pagination > li > span {
  color: #475569;
  border: 1.5px solid #e2e8f0;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 7px !important;
  min-width: 34px;
  text-align: center;
  transition: all 0.12s;
}
.fixed-table-pagination .pagination > li > a:hover {
  border-color: #00529f;
  color: #00529f;
  background: #f1f6fc;
}
.fixed-table-pagination .pagination > li.active > a,
.fixed-table-pagination .pagination > li.active > a:hover {
  background: #00529f;
  border-color: #00529f;
  color: #fff;
}
.fixed-table-pagination .pagination > li.disabled > a,
.fixed-table-pagination .pagination > li.disabled > a:hover {
  color: #cbd5e1;
  background: #fff;
  border-color: #eef2f6;
  cursor: not-allowed;
}
.search .form-control {
  border: 1.5px solid #dde3ea;
  border-radius: 6px;
  font-size: 13px;
  height: 34px;
  padding: 6px 10px;
}
.search .form-control:focus {
  border-color: #00529f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.1);
}
.fixed-table-toolbar .btn {
  border-radius: 6px;
  font-size: 12px;
}

/* =============================================
   RICH CONTENT EDITOR - jedinstven izgled + fullscreen (svi moduli)
   ============================================= */
.rte-wrap, .cms-wysiwyg-wrap {
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  overflow: hidden;
  background: #fff;
}
.rte-wrap:focus-within, .cms-wysiwyg-wrap:focus-within { border-color: #00529f !important; }
.rte-toolbar, .cms-wysiwyg-toolbar {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 6px 8px !important;
  display: flex !important;
  gap: 3px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}
.rte-toolbar .btn, .cms-wysiwyg-toolbar .btn { padding: 3px 9px; font-size: 12px; }
.rte-toolbar .btn-group, .cms-wysiwyg-toolbar .btn-group { display: inline-flex; gap: 3px; }
.rte-editor, .cms-wysiwyg-editor {
  min-height: 320px !important;
  max-height: 620px !important;
  overflow-y: auto !important;
  padding: 16px 18px !important;
  outline: none;
  font-size: 14px;
  line-height: 1.7;
}
.rte-editor:empty:before, .cms-wysiwyg-editor:empty:before { content: attr(data-placeholder); color: #cbd5e1; }
.rte-sep { width: 1px; height: 18px; background: #e2e8f0; margin: 0 3px; display: inline-block; }
/* Fullscreen dugme - uvek desno, dosledno */
.cms-fs-btn { margin-left: auto !important; }
.cms-fs-btn.active { background: #00529f !important; color: #fff !important; border-color: #00529f !important; }
/* Fullscreen stanje (globalni mehanizam preko .cms-ed-wrap) */
.cms-ed-wrap.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff;
  margin: 0 !important;
}
.cms-ed-wrap.is-fullscreen .rte-toolbar,
.cms-ed-wrap.is-fullscreen .cms-wysiwyg-toolbar { position: sticky; top: 0; }
.cms-ed-wrap.is-fullscreen .rte-editor,
.cms-ed-wrap.is-fullscreen .cms-wysiwyg-editor {
  max-height: none !important;
  flex: 1 !important;
  min-height: 0 !important;
  padding: 28px clamp(16px, 8vw, 160px) !important;
}
body.cms-ed-fs-lock { overflow: hidden !important; }

/* =============================================
   „Regeneriši iz ćirilice" dugme - JEDINSTVEN izgled u svim modulima
   ============================================= */
.lat-auto-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.lat-auto-row .cms-label {
  margin: 0;
}
.lat-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #00529f;
  cursor: pointer;
  background: #f1f6fc;
  border: 1px solid #bfdfff;
  border-radius: 5px;
  padding: 3px 9px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background 0.15s;
}
.lat-sync-btn:hover {
  background: #dbeafe;
}
.lat-sync-btn i {
  font-size: 11px;
}
/* Varijanta „regeneriši sve" (šira, iznad grupe polja) */
.lat-sync-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #00529f;
  cursor: pointer;
  background: #f1f6fc;
  border: 1px solid #bfdfff;
  border-radius: 6px;
  padding: 5px 12px;
  margin-bottom: 14px;
  transition: background 0.15s;
}
.lat-sync-all:hover {
  background: #dbeafe;
}

/* =============================================
   FORM - improved elements
   ============================================= */
.cms-label-note {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #94a3b8;
  font-size: 11px;
  margin-left: 6px;
}

/* Image preview */
.cms-img-preview-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  line-height: 0;
}
.cms-img-preview {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.cms-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  padding: 20px 12px 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.cms-img-preview-wrap:hover .cms-img-overlay {
  opacity: 1;
}
.cms-img-change-btn {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: #00529f;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}
.cms-card-header-btn {
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  border-width: 1.5px !important;
  line-height: 1.5 !important;
  transition: background 0.15s, box-shadow 0.15s !important;
}
.cms-card-header-btn.btn-primary {
  background: #00529f !important;
  border-color: #00529f !important;
  color: #fff !important;
  box-shadow: 0 1px 4px rgba(0,82,159,.20) !important;
}
.cms-card-header-btn.btn-primary:hover {
  background: #003e78 !important;
  border-color: #003e78 !important;
  box-shadow: 0 2px 8px rgba(0,82,159,.30) !important;
}
.cms-card-badge-ok {
  font-size: 11px;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 12px;
  padding: 3px 10px;
  font-weight: 600;
}

/* File upload drop zone */
.cms-file-upload {
  position: relative;
}
.cms-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.cms-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
  color: #6b7280;
  line-height: 1.6;
}
.cms-file-label:hover {
  border-color: #00529f;
  background: #f1f6fc;
  color: #00529f;
}
.cms-file-label .fa {
  font-size: 30px;
  margin-bottom: 10px;
  color: #cbd5e1;
}
.cms-file-label:hover .fa {
  color: #00529f;
}
.cms-file-label strong {
  font-size: 14px;
  font-weight: 600;
}
.cms-file-label small {
  font-size: 12px;
  color: #9ca3af;
}
.cms-file-hint {
  font-size: 11px;
  color: #b0b8c4;
  margin-top: 4px;
}

/* Settings rows */
.cms-setting-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 6px 0;
}
.cms-setting-label span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}
.cms-setting-label small {
  font-size: 11px;
  color: #9ca3af;
}
.cms-setting-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 14px 0;
}

/* Toggle switch - redesigned */
.cms-toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}
.cms-toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cms-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  transition: background 0.2s;
  display: block;
  flex-shrink: 0;
}
.cms-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.cms-toggle-label input:checked + .cms-toggle-track {
  background: #00529f;
}
.cms-toggle-label input:checked + .cms-toggle-track .cms-toggle-thumb {
  left: 23px;
}

/* Info rows */
.cms-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 12px;
}
.cms-info-row:last-child {
  border-bottom: none;
}
.cms-info-row span {
  color: #94a3b8;
}
.cms-info-row strong {
  color: #374151;
}

/* =============================================
   LOGIN - remember me
   ============================================= */
.ats-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  cursor: pointer;
}
.ats-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #00529f;
  cursor: pointer;
}
.ats-remember span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
}

/* =============================================
   NAVBAR USER AREA - fix teal/light-blue
   ============================================= */
.ace-nav > li.light-blue,
.ace-nav > li.light-blue > a {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.75) !important;
}
.ace-nav > li.light-blue > a:hover,
.ace-nav > li.light-blue.open > a {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}
.ace-nav > li.light-blue .user-info {
  color: #fff !important;
  top: 8px;
}
.ace-nav > li.light-blue .user-info small {
  color: rgba(255, 255, 255, 0.4) !important;
  display: block;
}

/* Dropdown overflow fix */
.ace-nav,
.navbar-header.pull-right,
.navbar-container {
  overflow: visible !important;
}

/* User dropdown menu - jedini blok, bez pozicije, samo boje */
.ace-nav .dropdown-yellow {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 2px solid #00529f !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13) !important;
  border-radius: 4px !important;
  min-width: 200px !important;
  padding: 4px 0 !important;
  right: 0 !important;
  left: auto !important;
}
.ace-nav .dropdown-yellow li > a {
  color: #374151 !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  background: transparent !important;
  white-space: nowrap !important;
}
.ace-nav .dropdown-yellow li > a:hover {
  background: #eef4fb !important;
  color: #00529f !important;
}
.ace-nav .dropdown-yellow li > a > i {
  color: #94a3b8 !important;
  margin-right: 8px !important;
}
.ace-nav .dropdown-yellow li > a:hover > i {
  color: #00529f !important;
}
.ace-nav .dropdown-yellow li.divider {
  background: #e2e8f0 !important;
  margin: 4px 0 !important;
}

/* Nav user photo - circular, clean */
.ace-nav .nav-user-photo {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  margin: 0 8px 0 0 !important;
  vertical-align: middle;
  object-fit: cover;
}

/* =============================================
   FORM LABELS - remove uppercase, cleaner
   ============================================= */
.cms-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #374151 !important;
  margin-bottom: 5px !important;
}

/* =============================================
   FORM INPUTS - better focus ring, no Bootstrap bleed
   ============================================= */
.cms-input,
.cms-textarea,
.form-control.cms-input,
.form-control.cms-textarea {
  border: 1.5px solid #dde3ea !important;
  border-radius: 7px !important;
  padding: 9px 12px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  background: #fff !important;
  box-shadow: none !important;
  transition:
    border-color 0.18s,
    box-shadow 0.18s !important;
  height: auto !important;
}
.cms-input:focus,
.cms-textarea:focus,
.form-control.cms-input:focus,
.form-control.cms-textarea:focus {
  border-color: #00529f !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.13) !important;
  outline: none !important;
}
.cms-input::placeholder,
.cms-textarea::placeholder {
  color: #c1c8d4 !important;
}

/* Number input - hide spinners, look cleaner */
input[type="number"].cms-input::-webkit-inner-spin-button,
input[type="number"].cms-input::-webkit-outer-spin-button {
  opacity: 0.4;
}


/* =============================================
   SIDEBAR COMPACT (minimized) - 105px icon mode
   ============================================= */
.sidebar.compact .nav-list > li {
  border-bottom: none !important;
}
.sidebar.compact .nav-list > li > a {
  border-left: none !important;
  padding: 6px 0 8px !important;
}
.sidebar.compact .nav-list > li.active > a,
.sidebar.compact .nav-list > li.open > a {
  border-left: none !important;
  background: #e8eff8 !important;
}
.sidebar.compact .nav-list > li > a > .menu-icon {
  color: #64748b !important;
  font-size: 18px !important;
}
.sidebar.compact .nav-list > li.active > a > .menu-icon,
.sidebar.compact .nav-list > li.open > a > .menu-icon {
  color: #00529f !important;
}

/* =============================================
   NAVBAR BRAND - logo breathing room
   ============================================= */
.ats-navbar-brand {
  padding: 0 24px !important;
  gap: 12px !important;
}

/* =============================================
   LOGO - više prostora oko branda
   ============================================= */
.ats-navbar-brand {
  padding: 0 24px 0 22px !important;
  min-width: 180px;
}
.ats-logo-svg svg {
  height: 30px !important;
}

/* duplicate dropdown blok uklonjen - aktivan je gore */

/* =============================================
   SETTINGS PANEL - tighten toggle + ordinal
   ============================================= */
.cms-setting-row {
  justify-content: flex-start !important;
  gap: 14px !important;
}
.cms-setting-label {
  flex: 1;
  min-width: 0;
}

/* Ordinal number - narrow input */
.cms-ordinal-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cms-ordinal-input {
  width: 80px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  padding: 7px 8px !important;
}

/* =============================================
   SLIDE TYPE TOGGLE (link vs youtube)
   ============================================= */
.cms-type-toggle {
  display: flex;
  gap: 8px;
}
.cms-type-option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  transition: all 0.15s;
  margin: 0;
  user-select: none;
}
.cms-type-option:hover {
  border-color: #00529f;
  color: #00529f;
  background: #f1f6fc;
}
.cms-type-option.active {
  border-color: #00529f;
  background: #e8eff8;
  color: #00529f;
  font-weight: 600;
}
.cms-type-option input[type="radio"] {
  display: none;
}

/* Logo - navbar-header margin-top */
.navbar-header.pull-left {
  margin-top: 10px !important;
}

/* Dropdown - li mora imati position:relative da dropdown bude ispod njega */
.ace-nav > li {
  position: relative !important;
}

/* =============================================
   USER BUTTON - fiksna širina, lijepa kartica
   ============================================= */
.ace-nav > li.light-blue {
  width: 200px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.ace-nav > li.light-blue > a.dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 0 14px !important;
  height: 50px !important;
  line-height: 1 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  transition: background 0.15s !important;
}
.ace-nav > li.light-blue > a.dropdown-toggle:hover,
.ace-nav > li.light-blue.open > a.dropdown-toggle {
  background: rgba(255, 255, 255, 0.1) !important;
}
.ace-nav > li.light-blue .nav-user-photo {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  margin: 0 !important;
  flex-shrink: 0;
  object-fit: cover;
}
.ace-nav > li.light-blue .user-info {
  position: static !important;
  top: auto !important;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.ace-nav > li.light-blue .user-info small {
  display: block !important;
  font-size: 10px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ace-nav > li.light-blue .user-info strong,
.ace-nav > li.light-blue .user-info span {
  display: block;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.ace-nav > li.light-blue .fa-caret-down {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 11px !important;
  margin-left: auto !important;
  flex-shrink: 0;
}

/* Dropdown - isto širok kao parent li */
.ace-nav > li.light-blue .dropdown-yellow {
  width: 200px !important;
  min-width: 200px !important;
  right: 0 !important;
  left: 0 !important;
  border-top: 2px solid #00529f !important;
  border-radius: 0 0 6px 6px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
  margin-top: 0 !important;
  padding: 6px 0 !important;
}

/* =============================================
   SIDEBAR MINIMIZED (menu-min) - 43px icon strip
   ============================================= */
.sidebar.menu-min {
  background: #fff !important;
  border-right: 1px solid #e2e8f0 !important;
}

/* Icon - perfectly centered in 43px strip */
.sidebar.menu-min .nav-list > li > a > .menu-icon {
  width: 43px !important;
  text-align: center !important;
  font-size: 17px !important;
  line-height: 43px !important;
  display: block !important;
  color: #64748b !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* Remove border-left on active - no room in 43px */
.sidebar.menu-min .nav-list > li > a {
  height: 43px !important;
  line-height: 43px !important;
  padding: 0 !important;
  border-left: none !important;
}
.sidebar.menu-min .nav-list > li {
  border-bottom: 1px solid #f1f5f9 !important;
}

/* Active/hover icon - ATS blue */
.sidebar.menu-min .nav-list > li.active > a > .menu-icon,
.sidebar.menu-min .nav-list > li:hover > a > .menu-icon,
.sidebar.menu-min .nav-list > li.open > a > .menu-icon {
  color: #00529f !important;
}

/* Active item - blue left border inside icon */
.sidebar.menu-min .nav-list > li.active {
  background: #f1f6fc !important;
  border-left: 3px solid #00529f !important;
}
.sidebar.menu-min .nav-list > li.active > a > .menu-icon {
  width: 40px !important; /* compensate 3px border */
}

/* Hover tooltip (menu-text flyout) - light style */
.sidebar.menu-min .nav-list > li:hover > a > .menu-text,
.sidebar.menu-min .nav-list > li.hover-show > a > .menu-text {
  background: #fff !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
  border-left-color: #00529f !important;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.09) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

/* Submenu flyout in menu-min */
.sidebar.menu-min .nav-list > li > .submenu {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 2px solid #00529f !important;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.09) !important;
}
.sidebar.menu-min .nav-list > li > .submenu > li > a {
  color: #374151 !important;
  font-size: 12px !important;
}
.sidebar.menu-min .nav-list > li > .submenu > li > a:hover {
  background: #f1f6fc !important;
  color: #00529f !important;
}

/* Sidebar shortcuts in menu-min */
.sidebar.menu-min .sidebar-shortcuts-mini {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 6px 0 !important;
  text-align: center !important;
}


/* =============================================
   FORM VALIDATION - obavezna polja
   ============================================= */
.cms-required {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}
.cms-field-error {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 5px;
  font-weight: 500;
}
.cms-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.cms-card-error {
  border: 1.5px solid #fca5a5 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}
.cms-card-error .cms-card-header {
  background: #fff5f5 !important;
  border-bottom-color: #fca5a5 !important;
}

/* =============================================
   SETTINGS SIDEBAR CARD - desna kolona
   ============================================= */
.cms-side-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 16px;
}
.cms-side-section {
  padding: 16px 18px;
}
.cms-side-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0;
}
.cms-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cms-side-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.cms-side-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.4;
}
.cms-side-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cms-side-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 12px;
}
.cms-side-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cms-side-meta-row > span:first-child {
  color: #64748b;
}
.cms-side-meta-row > strong {
  color: #1e293b;
  font-size: 12px;
}


/* =============================================
   DRAG-AND-DROP TABLE SORT
   ============================================= */
.drag-handle {
  cursor: grab !important;
  opacity: 0.45;
  transition: opacity 0.15s;
}
.drag-handle:hover {
  opacity: 1;
}
.cms-sort-dragging {
  background: #f1f6fc !important;
  box-shadow: 0 4px 14px rgba(0, 82, 159, 0.15) !important;
  border-radius: 6px;
  opacity: 0.95;
}
.cms-sort-placeholder {
  height: 52px;
  background: #e8eff8 !important;
  border: 2px dashed #00529f !important;
  visibility: visible !important;
}
/* Cela #-kolona je hvatač za sortiranje - lakše za klijenta (ne mora baš na ikonicu) */
.cms-sortable-table tbody > tr > td:first-child {
  cursor: grab;
}
.cms-sortable-table tbody > tr > td:first-child:active {
  cursor: grabbing;
}
.cms-sortable-table tbody > tr:hover > td:first-child {
  background: #f3f9fd;
}
.cms-sortable-table tbody > tr > td:first-child .drag-handle {
  opacity: 0.7;
}

/* =============================================
   AUDIT LOG - istorija izmena
   ============================================= */
.cms-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cms-log-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.cms-log-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}
.cms-log-created {
  background: #dcfce7;
  color: #16a34a;
}
.cms-log-modified {
  background: #dbeafe;
  color: #1d4ed8;
}
.cms-log-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cms-log-user {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}
.cms-log-action {
  font-size: 10px;
  color: #64748b;
}
.cms-log-time {
  font-size: 10px;
  color: #94a3b8;
}

/* Log extra types + clickable */
.cms-log-deleted {
  background: #fee2e2;
  color: #dc2626;
}
.cms-log-restored {
  background: #dcfce7;
  color: #16a34a;
}
.cms-log-clickable {
  cursor: pointer;
  border-radius: 6px;
  padding: 3px;
  margin: -3px;
  transition: background 0.12s;
}
.cms-log-clickable:hover {
  background: #f1f6fc;
}

/* =============================================
   TABLE FILTER TABS
   ============================================= */
.cms-filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0;
}
.cms-filter-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  border-radius: 0;
}
.cms-filter-tab:hover {
  color: #00529f;
}
.cms-filter-tab.active {
  color: #00529f;
  border-bottom-color: #00529f;
  font-weight: 600;
}
.cms-filter-tab:nth-child(2).active {
  color: #dc2626;
  border-bottom-color: #dc2626;
}
.cms-filter-tab:nth-child(2).active i {
  color: #dc2626;
}
.cms-filter-count {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 1px 7px;
  color: #64748b;
  min-width: 20px;
  text-align: center;
}
.cms-filter-tab.active .cms-filter-count {
  background: #dbeafe;
  color: #1d4ed8;
}
.cms-filter-tab:nth-child(2).active .cms-filter-count {
  background: #fee2e2;
  color: #dc2626;
}

/* =============================================
   LOG DETAIL MODAL - Flowbite stil
   ============================================= */

.cms-log-modal .modal-dialog {
  width: 580px;
  max-width: calc(100vw - 32px);
  margin: 80px auto;
}
.cms-log-modal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background: #fff;
}

/* Header - belo, title + X */
.cms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0 24px;
  background: #fff;
}
.cms-modal-title-wrap {
  flex: 1;
}
.cms-modal-icon {
  display: none;
}
.cms-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.cms-modal-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.cms-modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition:
    background 0.12s,
    color 0.12s;
}
.cms-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Separator */
.cms-modal-header::after {
  display: none;
}

/* Body */
.cms-modal-body {
  padding: 0 24px 8px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}
.cms-modal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  table-layout: fixed;
}
.cms-modal-body table tr {
  border-bottom: 1px solid #f3f4f6;
}
.cms-modal-body table tr:last-child {
  border-bottom: none;
}
.cms-modal-body table td {
  padding: 10px 0;
  vertical-align: top;
  background: #fff !important;
}
.cms-modal-body table td:first-child {
  width: 140px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  padding-right: 12px;
  white-space: nowrap;
}
.cms-modal-body table td:last-child {
  color: #111827;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}

/* Footer */
.cms-modal-footer {
  padding: 12px 24px 20px;
  background: #fff !important;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cms-modal-footer .btn {
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  border-radius: 8px !important;
  padding: 7px 18px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.cms-modal-footer .btn:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
}
.cms-modal-footer .btn-primary {
  background: #00529f !important;
  border-color: #003e78 !important;
  color: #fff !important;
}
.cms-modal-footer .btn-primary:hover {
  background: #003e78 !important;
  border-color: #005f8e !important;
}


/* =============================================
   ISTORIJA IZMENA - scroll, klikabilni redovi
   ============================================= */
.cms-log {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
}
.cms-log::-webkit-scrollbar {
  width: 4px;
}
.cms-log::-webkit-scrollbar-track {
  background: transparent;
}
.cms-log::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.cms-log-clickable {
  cursor: pointer !important;
  border-radius: 6px;
  transition: background 0.12s;
}
.cms-log-clickable:hover {
  background: #eff5fb;
}

/* Snap icon */
.cms-log-snap-icon {
  color: #00529f;
  font-size: 9px;
  margin-left: 3px;
  opacity: 0.45;
}
.cms-log-clickable:hover .cms-log-snap-icon {
  opacity: 1;
}

/* =============================================
   DIFF - crveno/zeleno prikaz izmena
   ============================================= */
.cms-diff-from {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  text-decoration: line-through;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 2px;
}
.cms-diff-arrow {
  color: #94a3b8;
  margin: 0 4px;
  font-size: 11px;
}
.cms-diff-to {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Image preview - puna visina, ne iseći */
#imgPreview {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain !important;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: block;
  margin: 0 auto;
}


/* =============================================
   SLIDER IMAGE GALLERY
   ============================================= */
.cms-img-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.cms-img-tile {
  position: relative;
  width: 130px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}
.cms-img-tile-main {
  border-color: #00529f;
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.25);
}
/* Stalno vidljiva oznaka glavne slike (ne samo na hover) */
.cms-img-main-flag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #00529f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
}
.cms-img-main-flag .fa {
  margin-right: 3px;
  font-size: 9px;
}
.cms-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.15s;
}
.cms-img-tile:hover .cms-img-thumb {
  transform: scale(1.04);
}
.cms-img-tile-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 5px;
  opacity: 0;
  transition: opacity 0.15s;
}
.cms-img-tile:hover .cms-img-tile-actions {
  opacity: 1;
}
.cms-img-set-main,
.cms-img-delete {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.1s;
}
.cms-img-set-main:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fbbf24;
}
.cms-img-delete:hover {
  background: rgba(220, 38, 38, 0.7);
}
.cms-img-main-badge {
  font-size: 10px;
  color: #fbbf24;
  font-weight: 600;
}
.cms-file-upload-sm {
  margin-top: 4px;
}
.cms-file-upload-sm .cms-file-label {
  padding: 10px 16px !important;
  font-size: 12px !important;
}

/* Lightbox */
.cms-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cms-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}
.cms-lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cms-lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  display: block;
}
.cms-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cms-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.cms-lightbox-prev {
  left: 16px;
}
.cms-lightbox-next {
  right: 16px;
}
.cms-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cms-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* =============================================
   TABLE ACTION BUTTONS - sa tekstom
   ============================================= */
.btn-tbl {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s, border-color .12s, color .12s;
    line-height: 1.4;
}
.btn-tbl-edit {
    background: #eff5fb;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.btn-tbl-edit:hover {
    background: #dbeafe;
    color: #1e40af;
    text-decoration: none;
}
.btn-tbl-status {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}
.btn-tbl-status:hover {
    background: #dcfce7;
    color: #166534;
}
/* Neaktivan slajd - status dugme pokazuje "Aktiviraj" */
.btn-tbl-status.btn-cms-inactive {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}
.btn-tbl-status.btn-cms-inactive:hover {
    background: #ffedd5;
}
.btn-tbl-delete {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}
.btn-tbl-delete:hover {
    background: #ffe4e6;
    color: #9f1239;
}
.btn-tbl-restore {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}
.btn-tbl-restore:hover {
    background: #dcfce7;
}
.btn-tbl-view {
    background: #ecfeff;
    color: #0e7490;
    border-color: #a5f3fc;
}
.btn-tbl-view:hover {
    background: #cffafe;
    color: #155e75;
    text-decoration: none;
}

/* Kreirao info iznad istorije */
.cms-log-created-by {
    font-size: 11px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 7px 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.cms-log-created-by i { color: #94a3b8; }
.cms-log-created-by strong { color: #374151; font-weight: 600; }
.cms-log-created-by span { color: #94a3b8; margin-left: auto; }

/* =============================================
   "KAKO?" VODIČ - spotlight ture kroz panel
   ============================================= */
.hv-spot {
  position: fixed;
  z-index: 10050;
  border-radius: 10px;
  box-shadow:
    0 0 0 9999px rgba(13, 27, 25, 0.62),
    0 0 0 3px rgba(0, 146, 208, 0.9);
  pointer-events: none;
  transition: top 0.25s, left 0.25s, width 0.25s, height 0.25s;
}
.hv-pop {
  position: fixed;
  z-index: 10051;
  width: 380px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(2, 20, 18, 0.35);
  padding: 14px 16px 12px;
  font-size: 13px;
  color: #334155;
}
.hv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.hv-brojac {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
}
.hv-x {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.hv-x:hover { background: #f1f5f9; color: #334155; }
.hv-naslov {
  font-size: 15px;
  font-weight: 700;
  color: #0f2c28;
  margin-bottom: 6px;
}
.hv-tekst { line-height: 1.55; }
.hv-tekst code {
  background: #f1f5f9;
  color: #0f766e;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.hv-nema-el {
  margin-top: 8px;
  font-size: 12px;
  color: #b45309;
  background: #fef3c7;
  border-radius: 8px;
  padding: 7px 10px;
}
.hv-caka {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 10px;
  background: #eef4fb;
  border: 1px solid #dce9f7;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.5;
}
.hv-caka .fa {
  color: #ffcd05;
  font-size: 15px;
  margin-top: 1px;
}
.hv-caka strong { color: #007f72; }
.hv-klikni {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #007f72;
  background: #e8eff8;
  border-radius: 8px;
  padding: 7px 10px;
  animation: hvPulse 1.6s ease-in-out infinite;
}
@keyframes hvPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.hv-noga {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
}
.hv-tacke { display: flex; gap: 5px; flex-wrap: wrap; max-width: 150px; }
.hv-tacka {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dbe4ec;
}
.hv-tacka.aktivna { background: #00529f; }
.hv-dugmad { display: flex; gap: 8px; }
.hv-btn {
  border: 1px solid #d7dee6;
  background: #fff;
  color: #475569;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.hv-btn:hover { border-color: #00529f; color: #00529f; }
.hv-btn-primarno {
  background: #00529f;
  border-color: #00529f;
  color: #fff;
}
.hv-btn-primarno:hover { background: #007f72; border-color: #007f72; color: #fff; }

/* --- Navbar dugme "Kako?" --- */
.cms-vodic-li > a.cms-vodic-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 100%;
  min-height: 45px;
  padding: 0 !important;
  background: transparent !important;
  border: none;
  color: rgba(255, 255, 255, 0.65) !important;
  cursor: pointer;
}
.cms-vodic-li > a.cms-vodic-toggle:hover { color: #fff !important; background: rgba(255, 255, 255, 0.07) !important; }
.cms-vodic-li > a.cms-vodic-toggle > .fa { font-size: 16px; }

/* --- Panel "Kako da...?" --- */
.hv-panel-pozadina {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 25, 0.45);
  z-index: 10040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
.hv-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  z-index: 10041;
  box-shadow: -8px 0 30px rgba(2, 20, 18, 0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}
body.hv-panel-otvoren .hv-panel { right: 0; }
body.hv-panel-otvoren .hv-panel-pozadina { opacity: 1; visibility: visible; }
.hv-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: #0e2a4d;
}
.hv-panel-head .naslov {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.hv-panel-head .naslov small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
}
.hv-panel-head .hv-x { color: rgba(255, 255, 255, 0.6); }
.hv-panel-head .hv-x:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
/* Pretraga vodiča */
.hv-panel-pretraga-wrap {
  position: relative;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f6;
  background: #f8fafc;
}
.hv-panel-pretraga-wrap .fa {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}
.hv-panel-pretraga-wrap input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 9px 12px 9px 34px;
  font-size: 13px;
  color: #1e293b;
  background: #fff;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.hv-panel-pretraga-wrap input:focus {
  border-color: #00529f;
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.12);
}
.hv-panel-prazno {
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  padding: 30px 12px;
}
.hv-panel-telo {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 20px;
}
/* Tura za stranu na kojoj korisnik trenutno jeste - istaknuta */
.hv-panel-tura.hv-tekuca {
  border-color: #00529f;
  background: #eef4fb;
  box-shadow: 0 0 0 1px #00529f inset;
}
.hv-panel-grupa {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #9aa7b5;
  padding: 16px 6px 6px;
}
.hv-panel-tura {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  border: 1px solid #eef2f6;
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.hv-panel-tura:hover { border-color: #00529f; background: #f7fcfb; }
.hv-panel-tura .ikona {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e8eff8;
  color: #00529f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.hv-panel-tura .naslov {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-bottom: 2px;
}
.hv-panel-tura .opis {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  display: block;
}
.hv-panel-tura .koraka {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  margin-left: auto;
  padding-top: 2px;
}

/* =============================================
   NASLOVNA - vizuelni "board" (pločice se prevlače levo/desno)
   ============================================= */
.nasl-board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
  min-height: 60px;
}
.nasl-board-prazno {
  color: #94a3b8;
  font-size: 13px;
  padding: 18px 4px;
}
.nasl-tile {
  flex: 1 1 300px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 44, 40, 0.05);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.nasl-tile:hover {
  border-color: #b8dcd7;
  box-shadow: 0 6px 18px rgba(15, 44, 40, 0.1);
}
/* Velike sekcije = širi baneri; kartice srednje; traka = uže pločice sa ikonicom.
   Pločice rastu da popune red i centriraju se (bez praznog prostora s desne strane). */
.nasl-board[data-tip="1"] .nasl-tile { flex-basis: 380px; max-width: 760px; }
.nasl-board[data-tip="3"] .nasl-tile { flex-basis: 300px; max-width: 680px; }
.nasl-board[data-tip="2"] .nasl-tile { flex-basis: 220px; max-width: 460px; }

.nasl-tile-drag {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c3ccd6;
  background: #f7f9fc;
  border-bottom: 1px solid #eef2f6;
  cursor: grab;
  font-size: 12px;
  letter-spacing: 4px;
}
.nasl-tile-drag:active { cursor: grabbing; }
.nasl-tile:hover .nasl-tile-drag { color: #00529f; background: #eef4fb; }

.nasl-tile-media {
  position: relative;
  height: 180px;
  background: #eef2f6;
  overflow: hidden;
}
.nasl-board[data-tip="2"] .nasl-tile-media { height: 130px; }
.nasl-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nasl-tile-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 26px;
}
.nasl-tile-ikona {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef8f6 0%, #dce9f7 100%);
}
.nasl-tile-ikona .material-symbols-outlined {
  font-size: 46px;
  color: #00529f;
}
.nasl-tile-uloga {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 127, 114, 0.92);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(2px);
}
.nasl-tile-skriveno {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(30, 41, 59, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.nasl-tile.is-hidden .nasl-tile-media img,
.nasl-tile.is-hidden .nasl-tile-ikona {
  filter: grayscale(1);
  opacity: 0.5;
}
.nasl-tile.is-hidden { border-style: dashed; }
.nasl-tile.is-hidden .nasl-tile-naslov { color: #94a3b8; }

.nasl-tile-naslov {
  padding: 10px 12px 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nasl-tile-akcije {
  display: flex;
  gap: 6px;
  padding: 8px 12px 12px;
}
.nasl-tile-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #d7dee6;
  background: #fff;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nasl-tile-edit { border-color: #b8dcd7; color: #007f72; }
.nasl-tile-edit:hover { background: #00529f; border-color: #00529f; color: #fff; }
.nasl-tile-toggle:hover { background: #f1f5f9; color: #1e293b; }

.nasl-tile-placeholder {
  flex: 1 1 300px;
  max-width: 520px;
  border: 2px dashed #7dd3cc;
  border-radius: 12px;
  background: #eef4fb;
}
.nasl-board[data-tip="1"] .nasl-tile-placeholder { flex-basis: 380px; max-width: 760px; }
.nasl-board[data-tip="3"] .nasl-tile-placeholder { flex-basis: 300px; max-width: 680px; }
.nasl-board[data-tip="2"] .nasl-tile-placeholder { flex-basis: 220px; max-width: 380px; }
.nasl-tile-dragging {
  box-shadow: 0 12px 30px rgba(2, 20, 18, 0.22) !important;
  transform: rotate(-1deg);
}

/* Prečica ka vodiču - diskretno dugme uz naslov strane („Kako se ovo popunjava?") */
.page-header { position: relative; }
.hv-precica {
  position: absolute;
  right: 0;
  top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.hv-precica:hover { background: #eef4fb; color: #00529f; }
.hv-precica .fa { font-size: 13px; color: #00529f; }
/* Na uskim ekranima ostaje samo ikonica „?" */
@media (max-width: 700px) {
  .hv-precica-tekst { display: none; }
}
/* Ako prečica završi u traci putanje (strana bez page-header-a) */
.breadcrumbs { position: relative; }
.breadcrumbs .hv-precica { top: 50%; transform: translateY(-50%); right: 12px; }

/* Chosen padajući meni mora da IZAĐE iz kartice (kartica ima overflow:hidden pa bi ga sekla) */
#card-tagovi,
#card-povezane,
.cms-card:has(.chosen-container) {
  overflow: visible;
}
/* Chosen padajući meni - otvori NAGORE kad nema mesta ispod (npr. poslednja kartica iznad save bara) */
.chosen-container.chosen-flip-up .chosen-drop {
  top: auto;
  bottom: 100%;
  border-top: 1px solid #d7dee6;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  box-shadow: 0 -6px 16px rgba(15, 44, 40, 0.12);
}
.chosen-container-multi.chosen-flip-up.chosen-with-drop .chosen-choices {
  border-radius: 0 0 7px 7px;
}

/* =====================================================================
   Dorade 19.07.2026. - pojačan kontrast (IPS monitori),
   globalna pretraga tabela sa lupom, chosen filteri u toolbaru
   ===================================================================== */

/* --- Kontrast: kartice i sekcije jasnije odvojene od pozadine --- */
.cms-card {
  border: 1px solid #d5dde8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07), 0 5px 16px rgba(15, 23, 42, 0.05);
}
.cms-card-header {
  background: #edf2f8;
  border-bottom-color: #d5dde8;
}
.cms-card-title { color: #1e293b; }
.cms-side-card {
  border: 1px solid #d5dde8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07), 0 5px 16px rgba(15, 23, 42, 0.05);
}
.main-content { background: #f2f5f9; }
.page-content { background: #f2f5f9; }

/* --- Kontrast: tabele --- */
.cms-table thead tr th {
  background: #edf2f8;
  color: #475569;
  border-bottom-color: #c6d3e1;
}
.cms-table td { border-color: #e0e7ef !important; }
.cms-table tbody tr:hover { background: #eef4fb !important; }
.cms-filter-tabs { border-bottom: 2px solid #d5dde8; }

/* --- Pretraga tabela (sve liste): zaobljeno polje sa lupom, živo filtriranje --- */
.fixed-table-toolbar .search input {
  height: 38px !important;
  min-width: 220px;
  border: 1.5px solid #cbd6e2 !important;
  border-radius: 10px !important;
  padding: 0 12px 0 34px !important;
  font-size: 13px;
  color: #1e293b;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 512 512'%3E%3Cpath d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' fill='none' stroke='%2394a3b8' stroke-miterlimit='10' stroke-width='40'/%3E%3Cpath d='M338.29 338.29L448 448' fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='40'/%3E%3C/svg%3E") no-repeat 11px center !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fixed-table-toolbar .search input:focus {
  border-color: #00529f !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.10);
  outline: none;
}
.fixed-table-toolbar .search input::placeholder { color: #94a3b8; }

/* --- Filteri-grupice u toolbaru tabele (GLOBALNO - važi za sve module; poreklo: Korisnici) --- */
.kor-filteri {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-right: 16px; /* jasno odvajanje od polja pretrage */
}
.kor-filter-grupa {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 13px;
  background: #fff;
  border: 1.5px solid #d5dde8;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.kor-filter-grupa:hover { border-color: #b9cbe3; }
.kor-filter-grupa:focus-within {
  border-color: #00529f;
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.10);
}
.kor-filter-grupa > i { color: #94a3b8; font-size: 13px; transition: color .15s; }
.kor-filter-grupa label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
}
.kor-filter-grupa select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  height: 35px;
  max-width: 230px;
  padding: 0 20px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right center;
}
.kor-filter-grupa.aktivan { border-color: #00529f; background: #eff5fb; }
.kor-filter-grupa.aktivan > i,
.kor-filter-grupa.aktivan label { color: #00529f; }
.kor-filter-reset {
  display: none; /* JS ga pali samo uz aktivan filter */
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  background: #fff;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
}
.kor-filter-reset:hover { background: #fef2f2; }
.fixed-table-toolbar .bs-bars { display: flex; align-items: center; }

/* --- Chosen filteri u toolbaru (pretraživi padajući meniji) --- */
.kor-filter-grupa .chosen-container { font-size: 13px; }
/* filter-čip: chosen bez ivice (pill je spoljni okvir .kor-filter-grupa) - !important
   da NADJAČA globalnu chosen-formu temu (koja koristi !important na nižoj specifičnosti) */
.kor-filter-grupa .chosen-container-single .chosen-single {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  height: 35px !important;
  min-height: 0 !important;
  line-height: 35px !important;
  padding: 0 22px 0 0 !important;
  color: #1e293b !important;
  font-weight: 600;
  border-radius: 0 !important;
  display: block !important;
}
.kor-filter-grupa .chosen-container-single .chosen-single span { margin-right: 18px; color: #1e293b; }
.kor-filter-grupa .chosen-container-single .chosen-single div { width: 18px !important; }
.kor-filter-grupa .chosen-container-single .chosen-single div b {
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center !important;
}
.kor-filter-grupa .chosen-container .chosen-drop {
  border: 1.5px solid #cbd6e2;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  margin-top: 7px;
  overflow: hidden;
}
.kor-filter-grupa .chosen-container .chosen-search { padding: 8px; }
.kor-filter-grupa .chosen-container .chosen-search input[type="text"] {
  border: 1.5px solid #cbd6e2;
  border-radius: 8px;
  padding: 6px 10px 6px 30px;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 512 512'%3E%3Cpath d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' fill='none' stroke='%2394a3b8' stroke-miterlimit='10' stroke-width='40'/%3E%3Cpath d='M338.29 338.29L448 448' fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='40'/%3E%3C/svg%3E") no-repeat 9px center;
}
.kor-filter-grupa .chosen-container .chosen-results { margin: 0 6px 6px; }
.kor-filter-grupa .chosen-container .chosen-results li { padding: 8px 10px; border-radius: 7px; font-size: 12.5px; }
.kor-filter-grupa .chosen-container .chosen-results li.highlighted { background: #00529f; }
/* optgroup u chosen padajućem meniju: naslov grupe kao mala plava kapica, stavke uvučene */
.kor-filter-grupa .chosen-container .chosen-results li.group-result {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #00529f;
  border-top: 1px solid #eef2f7;
  margin-top: 4px;
  padding-top: 10px;
}
.kor-filter-grupa .chosen-container .chosen-results li.group-result:first-child { border-top: none; margin-top: 0; }
.kor-filter-grupa .chosen-container .chosen-results li.group-option { padding-left: 22px; }

/* --- Dokumenta + Grupe dokumenata (19.07.2026. uveče) - IPS kontrast: jasne ivice #d5dde8 --- */

/* Badge grupe u listi dokumenata: leva ivica u boji grupe */
.dok-grupa-badge {
  display: inline-block;
  max-width: 100%;
  padding: 3px 9px 3px 8px;
  background: #f1f6fc;
  border: 1px solid #d5dde8;
  border-left: 3px solid #00529f;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Lista grupa: kockica boje grupe + oznaka nivoa + uvučene podgrupe */
.grp-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.grp-nivo-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  background: #edf2f8;
  border: 1px solid #d5dde8;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  vertical-align: middle;
}
.grp-podred {
  display: inline-flex;
  align-items: center;
  padding-left: 26px;
}

/* ===== Dorada 19.07.2026. (2): skupljanje podgrupa u listi Grupa dokumenata ===== */
.grp-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d5dde8;
  background: #ffffff;
  border-radius: 6px;
  color: #64748b;
  font-size: 11px;
  margin-right: 8px;
  cursor: pointer;
  vertical-align: middle;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.grp-toggle:hover {
  background: #e8eff8;
  color: #00529f;
  border-color: #b9cbe3;
}

.grp-toggle-spacer {
  display: inline-block;
  width: 32px;
  vertical-align: middle;
}

.grp-pod-broj {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 8px;
  white-space: nowrap;
}

tr.grp-red-pod td {
  background: #f8fafc;
}

tr.grp-red-pod:hover td {
  background: #eef4fb;
}

/* ===== Upitnici (19.07.2026. kasno veče) - builder + ocenjivanje; IPS ivice #d5dde8 ===== */

/* --- builder: paleta elemenata --- */
.upit-paleta {
  background: #f2f6fb;
  border: 1.5px solid #d5dde8;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.upit-paleta-naslov {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 9px;
}
.upit-paleta-dugmad { display: flex; flex-wrap: wrap; gap: 8px; }
.upit-el-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #fff;
  border: 1.5px solid #cbd6e2;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: grab;
  transition: border-color .12s, box-shadow .12s, color .12s;
}
.upit-el-btn i { color: #00529f; }
.upit-el-btn:hover { border-color: #00529f; color: #00529f; box-shadow: 0 3px 10px rgba(0, 82, 159, .12); }
.upit-el-btn-drag { opacity: .9; box-shadow: 0 8px 20px rgba(13, 42, 77, .22); z-index: 50; }

/* --- builder: kanvas i blokovi pitanja --- */
.upit-kanvas { min-height: 40px; }
.upit-blok {
  background: #fff;
  border: 1.5px solid #d5dde8;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.upit-blok-sekcija { border-left: 5px solid #ffcd05; background: #fffdf4; }
.upit-blok-greska { border-color: #e8a0a0; box-shadow: 0 0 0 3px rgba(237, 21, 86, .08); }
.upit-blok-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f7fafd;
  border-bottom: 1px solid #e4ebf3;
}
.upit-blok-sekcija .upit-blok-header { background: #fff8dc; border-bottom-color: #f3e6a9; }
.upit-blok-drag { cursor: grab; color: #cbd5e1; padding: 2px 4px; }
.upit-blok-drag:hover { color: #64748b; }
.upit-blok-tip { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.upit-blok-tip i { color: #00529f; margin-right: 3px; }
.upit-blok-broj { font-size: 12px; font-weight: 700; color: #00529f; }
.upit-blok-alati { margin-left: auto; display: flex; gap: 4px; }
.upit-blok-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  width: 28px;
  height: 26px;
  color: #94a3b8;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.upit-blok-btn:hover { background: #e8eff8; color: #00529f; }
.upit-btn-obrisi:hover { background: #fdecec; color: #c0392b; }
.upit-blok-body { padding: 12px 14px; }
.upit-blok-body .upit-inp-pitanje { font-weight: 600; margin-bottom: 8px; }
.upit-blok-body .upit-inp-opis { font-size: 12.5px; margin-bottom: 8px; }
.upit-blok-placeholder {
  height: 52px;
  border: 2px dashed #9cc0e8;
  border-radius: 12px;
  background: #eef4fb;
  margin-bottom: 12px;
}
.upit-kanvas-locked .upit-blok { background: #fbfcfe; }
.upit-kanvas-prazan {
  text-align: center;
  color: #94a3b8;
  padding: 26px 10px;
  border: 2px dashed #d5dde8;
  border-radius: 12px;
}
.upit-kanvas-prazan i { font-size: 20px; margin-bottom: 6px; display: block; }
.upit-br-pitanja {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  background: #dce9f7;
  color: #00529f;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  margin-left: 6px;
}

/* --- builder: editor opcija --- */
.upit-opcije { margin: 4px 0 8px; }
.upit-opcija-red { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.upit-opcija-red > i { color: #cbd5e1; font-size: 12px; }
.upit-opcija-red .upit-inp-opcija { flex: 1; height: 32px; font-size: 12.5px; }
.upit-btn-opcija-x {
  border: none; background: transparent; color: #cbd5e1; cursor: pointer;
  width: 26px; height: 26px; border-radius: 6px;
}
.upit-btn-opcija-x:hover { background: #fdecec; color: #c0392b; }
.upit-btn-dodaj-opciju {
  border: 1.5px dashed #cbd6e2; background: #fff; color: #64748b;
  border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color .12s, color .12s;
}
.upit-btn-dodaj-opciju:hover { border-color: #00529f; color: #00529f; }
.upit-obavezno-check {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: #334155; margin: 0; cursor: pointer;
}

/* --- objavljen/zaključan upitnik --- */
.upit-locked-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff8e1;
  border: 1.5px solid #f0dc9a;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6b5b1e;
}
.upit-locked-note > i { color: #b45309; font-size: 16px; margin-top: 2px; }
.upit-status-red { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* --- pregled u modalu: IMITIRA PRAVU STRANU PORTALA (Arial, kartice, žuta linija ispod naslova) --- */
#pregledBody { background: #f2f5f9; padding: 26px 22px; }
.upit-pregled-strana { max-width: 640px; margin: 0 auto; font-family: Arial, Helvetica, sans-serif; }
.upit-pregled-naslov {
  text-align: center; font-size: 24px; font-weight: 700; color: #14263c; margin: 0 0 4px; line-height: 1.3;
}
.upit-pregled-naslov span {
  display: inline-block; padding-bottom: 9px; border-bottom: 4px solid #ffcd05;
}
.upit-pregled-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: #6c7a8c; margin: 12px 0 14px;
}
.upit-pregled-bedz {
  background: #00529f; color: #fff; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 3px 12px;
}
.upit-pregled-opis { color: #6c7a8c; font-size: 13px; line-height: 1.55; margin: 0 0 12px; }
.upit-pregled-progres { height: 7px; background: #e4ebf3; border-radius: 999px; overflow: hidden; }
.upit-pregled-progres > div { height: 100%; width: 0; background: #0092d0; }
.upit-pregled-progres-tekst { font-size: 11.5px; color: #94a3b8; margin: 5px 0 16px; }
.upit-pregled-sekcija {
  background: #eaf1fa; border-left: 4px solid #00529f; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 14px; font-size: 14px; color: #00529f;
}
.upit-pregled-sekcija small { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.upit-pregled-pitanje {
  background: #fff; border: 1px solid #dbe4f0; border-radius: 12px;
  padding: 15px 17px; margin-bottom: 13px;
}
.upit-pregled-pitanje > label { font-size: 13.5px; font-weight: 700; color: #14263c; margin: 0 0 8px; display: block; }
.upit-pregled-rb { color: #00529f; }
.upit-pregled-pomoc { font-size: 12px; color: #94a3b8; margin: -4px 0 8px; }
.upit-pregled-unos {
  display: block; width: 100%; background: #fff; border: 1px solid #cbd6e2;
  border-radius: 9px; padding: 8px 12px; font-size: 13px; color: #94a3b8;
}
.upit-pregled-izbor {
  display: flex; align-items: center; gap: 9px; font-size: 13px; color: #334155;
  border: 1px solid #e4ebf3; border-radius: 9px; padding: 8px 12px; margin-bottom: 6px;
}
.upit-pregled-kruzic { width: 15px; height: 15px; border: 1.5px solid #b6c2d1; border-radius: 50%; flex: 0 0 15px; }
.upit-pregled-kockica { width: 15px; height: 15px; border: 1.5px solid #b6c2d1; border-radius: 4px; flex: 0 0 15px; }
.upit-pregled-fajl {
  font-size: 13px; color: #6c7a8c; border: 2px dashed #b9cbe3; background: #f7fafd;
  border-radius: 12px; padding: 18px 14px; text-align: center;
}
.upit-pregled-fajl i { font-size: 20px; color: #0092d0; }

/* --- statusi dodela (bedževi) --- */
.upit-status-utoku   { background: #dce9f7; color: #00529f; }
.upit-status-predato { background: #fff3d6; color: #b45309; }
.upit-status-vraceno { background: #ffe9d6; color: #c2570f; }
.upit-status-ocenjeno{ background: #e6f4ea; color: #1e7e34; }

/* --- strana ocenjivanja --- */
.upit-ocena-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #64748b; margin-bottom: 16px;
}
.upit-ocena-sekcija {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #00529f; border-bottom: 2px solid #ffcd05; padding: 14px 2px 6px; margin-bottom: 12px;
}
.upit-ocena-sekcija small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; color: #94a3b8; }
.upit-ocena-pitanje { margin-bottom: 12px; }
.upit-ocena-pit-naslov { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; }
.upit-ocena-rb {
  flex: 0 0 24px; height: 24px; border-radius: 50%;
  background: #dce9f7; color: #00529f; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.upit-ocena-pit-tekst { font-size: 13.5px; font-weight: 700; color: #1e293b; }
.upit-ocena-pit-opis { font-size: 12px; color: #94a3b8; }
.upit-ocena-odgovor {
  background: #f7fafd; border: 1.5px solid #e4ebf3; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; color: #334155; margin-bottom: 10px;
}
.upit-odg-prazan { color: #b0bcc9; font-style: italic; }
.upit-odg-tag {
  display: inline-block; background: #dce9f7; color: #00529f;
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; margin: 1px 2px 1px 0;
}
.upit-odg-fajl { font-weight: 600; color: #00529f; text-decoration: none; }
.upit-odg-fajl:hover { text-decoration: underline; }
.upit-ocena-red { display: flex; gap: 10px; align-items: flex-start; }
.upit-ocena-polje label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #94a3b8; display: block; margin-bottom: 3px;
}
.upit-ocena-polje .upit-inp-ocena { width: 76px; height: 34px; padding: 4px 8px; }
.upit-ocena-polje .upit-inp-komentar { min-height: 34px; font-size: 12.5px; }
.upit-ocena-sacuvano {
  align-self: flex-end; color: #1e7e34; opacity: 0; transition: opacity .25s; padding-bottom: 8px;
}
.upit-ocena-sacuvano.vidljivo { opacity: 1; }
.upit-ocena-bedz {
  display: inline-flex; align-items: baseline; gap: 1px;
  background: #e6f4ea; color: #1e7e34; font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 3px 11px;
}
.upit-ocena-bedz small { font-size: 10.5px; font-weight: 600; color: #6aa576; }
.upit-akcije-dugmad { display: flex; flex-direction: column; gap: 8px; }
.upit-akcije-dugmad .btn { width: 100%; }
.upit-prazno-predaje { text-align: center; color: #94a3b8; padding: 34px 10px; }
.upit-prazno-predaje i { font-size: 22px; display: block; margin-bottom: 8px; }

/* ===== Dorada 20.07.2026. - (1) JEDNA strelica u chosen filterima:
   ace tema dodaje svoj FontAwesome caret kroz :before, mi svoju SVG pozadinu - gasimo ace-ov ===== */
.kor-filter-grupa .chosen-container-single .chosen-single div b:before { content: none !important; }

/* ===== (2) Builder upitnika - utezanje: jasnija hijerarhija, prijatnije popunjavanje ===== */
/* paleta prati skrol da elementi budu uvek pri ruci */
.upit-paleta { position: sticky; top: 10px; z-index: 40; box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }

/* redni broj kao krug (kao na portalu), tip diskretniji */
.upit-blok-broj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 50%;
  background: #dce9f7;
  color: #00529f;
  font-size: 12px;
  font-weight: 700;
}
.upit-blok-broj:empty { display: none; }
.upit-blok-header { padding: 9px 14px; }
.upit-blok-tip { font-size: 10.5px; }

/* alati bloka se pojave tek na hover - manje vizuelne buke */
.upit-blok-alati { opacity: .25; transition: opacity .15s; }
.upit-blok:hover .upit-blok-alati,
.upit-blok:focus-within .upit-blok-alati { opacity: 1; }

/* PITANJE je glavna stvar - krupno; opis diskretan ispod */
.upit-blok-body .upit-inp-pitanje {
  font-size: 14.5px;
  font-weight: 600;
  height: 42px;
  color: #14263c;
}
.upit-blok-body .upit-inp-pitanje::placeholder { font-weight: 400; color: #a9b6c6; }
.upit-blok-body .upit-inp-opis {
  height: 32px;
  font-size: 12px;
  background: #fbfcfe;
  border-style: dashed;
  color: #64748b;
}
.upit-blok-body .upit-inp-opis:focus { background: #fff; border-style: solid; }

/* sekcija: unos izgleda kao naslov */
.upit-blok-sekcija .upit-inp-pitanje {
  font-size: 15.5px;
  font-weight: 700;
  color: #00529f;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.upit-blok-sekcija .upit-inp-pitanje::placeholder { text-transform: none; letter-spacing: 0; }

/* opcije: hvataljka za redosled + urednije */
.upit-opcije {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 12px;
}
.upit-opcija-red > i { cursor: grab; color: #b6c2d1; }
.upit-opcija-red > i:hover { color: #00529f; }
.upit-opcija-red .upit-inp-opcija { background: #fff; }
.upit-opcija-placeholder {
  height: 32px;
  border: 1.5px dashed #9cc0e8;
  border-radius: 8px;
  background: #eef4fb;
  margin-bottom: 6px;
}
.upit-obavezno-check input[type="checkbox"] { accent-color: #00529f; width: 15px; height: 15px; }
.upit-obavezno-check { margin-top: 4px; }

/* rok: datum + vreme u redu */
.upit-rok-red { display: flex; gap: 8px; }
.upit-rok-red .datepicker { flex: 1; }
.upit-rok-red input[name="txtRokVreme"] { width: 84px; text-align: center; }

/* (Pregled dugme koristi standardni .btn-cms-primary - usaglašeno sa ostalim modulima) */

/* ===== (3) Zbirna strana Predaje - red vodi na ocenjivanje ===== */
.upit-predaje-red { cursor: pointer; }
.upit-predaje-red:hover td { background: #f1f6fc; }
.upit-predaje-upitnik { font-size: 11.5px; color: #94a3b8; display: block; margin-top: 2px; }

/* ===== Istorija/autorstvo ocena i komentara (20.07.2026.) ===== */
.upit-ocena-autor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  min-height: 18px;
}
.upit-autor-tekst { font-size: 11px; color: #94a3b8; }
.upit-autor-tekst i { margin-right: 3px; }
.upit-btn-istorija {
  border: 1px solid #d5dde8;
  background: #fff;
  border-radius: 7px;
  color: #64748b;
  font-size: 11px;
  padding: 2px 9px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}
.upit-btn-istorija:hover { background: #e8eff8; color: #00529f; border-color: #b9cbe3; }
.upit-istorija-red { border-bottom: 1px solid #eef2f7; padding: 9px 2px; }
.upit-istorija-red:last-child { border-bottom: none; }
.upit-istorija-vrh { font-size: 12px; color: #334155; margin-bottom: 4px; }
.upit-istorija-vrh span { color: #64748b; }
.upit-istorija-vrh em { color: #94a3b8; font-style: normal; font-size: 11px; }
.upit-istorija-staro {
  font-size: 12px; color: #b91c1c; background: #fdecec; border-radius: 6px;
  padding: 5px 9px; margin-bottom: 4px; text-decoration: line-through;
}
.upit-istorija-novo {
  font-size: 12px; color: #14532d; background: #e6f4ea; border-radius: 6px; padding: 5px 9px;
}

/* ====================================================================
   Dorada (feedback 21.07.) - USAGLAŠENA DUGMAD kroz sve module
   Ace tema svakom .btn nameće sivo sa !important; dajemo dosledan
   Jedinstven izgled (ista geometrija + paleta) svim akcijskim dugmićima u
   sadržaju modula. Primarno=plavo, neutral=belo/okvir, uspeh=zeleno,
   upozorenje=amber, opasno=crveno.
   ==================================================================== */
.page-content .btn-default,
.cms-modal .btn-default,
.cms-modal-footer .btn-default {
  border-radius: 6px !important;
  border: 1.5px solid #cdd7e5 !important;
  background: #ffffff !important;
  color: #3d5975 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: background .15s, border-color .15s, color .15s !important;
}
.page-content .btn-default:hover,
.page-content .btn-default:focus,
.cms-modal .btn-default:hover {
  background: #f1f6fc !important;
  border-color: #00529f !important;
  color: #00529f !important;
}
.page-content .btn-primary {
  border-radius: 6px !important;
  border: 1.5px solid #00529f !important;
  background: #00529f !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 4px rgba(0, 82, 159, .2) !important;
}
.page-content .btn-primary:hover,
.page-content .btn-primary:focus {
  background: #003e78 !important; border-color: #003e78 !important; color: #fff !important;
}
.page-content .btn-success {
  border-radius: 6px !important; border: 1.5px solid #4c9a2a !important;
  background: #4c9a2a !important; color: #fff !important; font-weight: 600 !important; box-shadow: none !important;
}
.page-content .btn-success:hover { background: #3d7f22 !important; border-color: #3d7f22 !important; color: #fff !important; }
.page-content .btn-warning:not(.ace-settings-btn) {
  border-radius: 6px !important; border: 1.5px solid #e0850e !important;
  background: #f59e0b !important; color: #fff !important; font-weight: 600 !important; box-shadow: none !important;
}
.page-content .btn-warning:not(.ace-settings-btn):hover { background: #d9820a !important; border-color: #d9820a !important; }
.page-content .btn-danger {
  border-radius: 6px !important; border: 1.5px solid #c8104a !important;
  background: #ed1556 !important; color: #fff !important; font-weight: 600 !important; box-shadow: none !important;
}
.page-content .btn-danger:hover { background: #c8104a !important; border-color: #c8104a !important; color: #fff !important; }

/* ====================================================================
   Dorada (feedback 21.07.) - builder: pregled polja za odgovor
   (blokovi liče na pravi formular - disabled mock ispod pitanja)
   ==================================================================== */
.upit-pregled { margin-top: 6px; }
.upit-pregled-inp {
  width: 100%; background: #f6f9fc; border: 1px dashed #cdd9e8; border-radius: 8px;
  padding: 8px 12px; font-size: 13px; color: #97a6ba; pointer-events: none;
}
.upit-pregled-inp.upit-pregled-kratko { max-width: 210px; }
textarea.upit-pregled-inp { resize: none; }
.upit-pregled-izbor { display: flex; gap: 24px; padding: 5px 2px; }
.upit-pregled-opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #64748b; }
.upit-pregled-radio { width: 16px; height: 16px; border: 2px solid #cdd9e8; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.upit-pregled-select {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-width: 210px; max-width: 260px; background: #f6f9fc; border: 1px dashed #cdd9e8; border-radius: 8px;
  padding: 8px 12px; font-size: 13px; color: #97a6ba;
}
.upit-pregled-select i { color: #b6c2d1; }
.upit-pregled-fajl {
  background: #f6f9fc; border: 1px dashed #cdd9e8; border-radius: 8px; padding: 11px 14px;
  font-size: 13px; color: #97a6ba; display: flex; align-items: center; gap: 8px;
}

/* ============================================================================
   Upitnici - TURE / VERZIJE / raspored slanja (23.07.2026.)
   Stilovi za nove elemente buildera i liste (ostalo dodao Agent A u markup).
   Paleta: primarna #00529f, tintovi #e8eff8/#dce9f7, ivice #e2e8f0.
   ============================================================================ */

/* --- Info traka o verziji (iznad forme buildera) --- */
.upit-verzija-info {
  display: flex; gap: 11px; align-items: flex-start;
  background: #eef4fb; border: 1px solid #c2d8f0; border-left: 4px solid #00529f;
  border-radius: 8px; padding: 12px 15px; margin: 0 0 16px;
  font-size: 12.5px; color: #33465c; line-height: 1.55;
}
.upit-verzija-info > i { color: #00529f; font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.upit-verzija-info strong { color: #0e2a4d; }
.upit-verzija-info.upit-verzija-info-priprema {
  background: #f5f8fc; border-color: #dbe4f0; border-left-color: #94a3b8;
}
.upit-verzija-info.upit-verzija-info-priprema > i { color: #94a3b8; }

/* --- Verzija bedž (v1, v2…) - u listi, turama, modalu --- */
.upit-verzija-bedz {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  color: #00529f; background: #dce9f7; border: 1px solid #b7d3f0;
  border-radius: 5px; padding: 1px 7px; letter-spacing: .3px; line-height: 1.5;
}

/* --- Sekcija "Slanje" (desna kolona) --- */
.upit-status-red { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upit-slanje-red { }                     /* JS toggluje inline display */
.upit-rok-red { display: flex; gap: 8px; }
.upit-rok-red #txtRokDatum { flex: 1; }
.upit-rok-red #txtRokVreme { width: 84px; flex-shrink: 0; text-align: center; }

/* dvokolona (vreme slanja + rok dana) - inline-block da preživi jQuery show (block) */
.upit-slanje-dvokolona > .form-group {
  display: inline-block; width: 48.5%; vertical-align: top; margin: 0 !important;
}
.upit-slanje-dvokolona > .form-group:first-child { margin-right: 2% !important; }

/* "Sledeće slanje" pilula */
.upit-sledece {
  background: #eef7ef; border: 1px solid #c6e4c9; border-radius: 7px;
  padding: 8px 12px; font-size: 12px; color: #2f6b36; margin-top: 12px !important;
}
.upit-sledece i { color: #2e7d32; margin-right: 4px; }
.upit-sledece strong { color: #1e5427; }

/* --- Lista tura (desna kolona) --- */
.upit-ture-lista { display: flex; flex-direction: column; gap: 7px; }
.upit-tura-red {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; background: #f5f8fc; border: 1px solid #e2e8f0; border-radius: 8px;
  transition: background .12s, border-color .12s, opacity .12s;
}
.upit-tura-red:hover { background: #eef4fb; border-color: #b7d3f0; }
.upit-tura-info {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px;
  flex: 1; min-width: 0; text-decoration: none !important;
}
.upit-tura-broj { font-size: 12.5px; font-weight: 700; color: #1e293b; }
.upit-tura-meta { font-size: 11px; color: #7c8ba0; line-height: 1.4; }
.upit-tura-oko {
  flex-shrink: 0; width: 30px; height: 30px; border: 1px solid #cdd9e8; border-radius: 7px;
  background: #fff; color: #64748b; cursor: pointer; transition: all .12s;
}
.upit-tura-oko:hover { border-color: #00529f; color: #00529f; background: #eef4fb; }
.upit-tura-red.upit-tura-skrivena { opacity: .62; background: #f1f3f6; }
.upit-tura-red.upit-tura-skrivena .upit-tura-oko { color: #b45309; border-color: #f0d59a; background: #fff8e9; }

/* --- Modal verzija (lista + read-only pitanja) --- */
.upit-ver-red { border: 1px solid #e2e8f0; border-radius: 9px; margin-bottom: 10px; overflow: hidden; }
.upit-ver-vrh {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  background: #f7fafd; cursor: pointer; user-select: none;
}
.upit-ver-vrh:hover { background: #eef4fb; }
.upit-ver-aktuelna {
  font-size: 10.5px; font-weight: 700; color: #1e7e34; background: #e6f4ea;
  border: 1px solid #b7e0c0; border-radius: 5px; padding: 1px 7px; text-transform: uppercase; letter-spacing: .4px;
}
.upit-ver-meta { font-size: 11.5px; color: #7c8ba0; flex: 1; }
.upit-ver-vrh > i.fa-angle-down { color: #b6c2d1; transition: transform .15s; }
.upit-ver-red.otvoren .upit-ver-vrh > i.fa-angle-down { transform: rotate(180deg); }
.upit-ver-diff {
  font-size: 11.5px; color: #64748b; padding: 8px 14px; background: #fbfcfe;
  border-top: 1px dashed #e2e8f0;
}
.upit-ver-detalj { display: none; padding: 6px 14px 12px; border-top: 1px solid #eef2f7; }
.upit-ver-red.otvoren .upit-ver-detalj { display: block; }
.upit-ver-pit { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.upit-ver-pit:last-child { border-bottom: 0; }
.upit-ver-pit-sekcija {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: #00529f; padding: 10px 0 4px;
}
.upit-ver-pit-rb { font-size: 12px; font-weight: 700; color: #94a3b8; flex-shrink: 0; }
.upit-ver-pit-telo { flex: 1; min-width: 0; }
.upit-ver-pit-tekst { font-size: 13px; color: #1e293b; font-weight: 600; }
.upit-ver-pit-tip { display: inline-block; font-size: 11px; color: #8a99ad; margin-left: 8px; }
.upit-ver-pit-tip i { color: #b6c2d1; }
.upit-ver-pit-opis { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.upit-ver-pit-opcije { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

/* --- Lista upitnika: ćelija akcija (dva reda kompaktnih dugmadi) --- */
.upit-akcije-cell { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* ============================================================================
   Dokumenta - VERZIJE u CMS-u (23.07.2026.)
   ============================================================================ */
.dok-verzija-cms-bedz {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 5px; font-size: 11px;
  font-weight: 700; color: #00529f; background: #dce9f7; border: 1px solid #b7d3f0; vertical-align: middle;
}
.dok-verzije-cms { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e2e8f0; }
.dok-verzije-cms-naslov { font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.dok-verzije-cms-naslov i { color: #00529f; }
.dok-verzija-cms-red { display: flex; align-items: flex-start; gap: 11px; padding: 9px 11px; border: 1px solid #e6edf5; border-radius: 9px; margin-bottom: 8px; background: #fff; }
.dok-verzija-cms-red.aktuelna { border-color: #b7d3f0; background: #f5f9fd; }
.dok-verzija-cms-broj { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #94a3b8; color: #fff; font-weight: 700; font-size: 12.5px; }
.dok-verzija-cms-red.aktuelna .dok-verzija-cms-broj { background: #00529f; }
.dok-verzija-cms-telo { flex: 1; min-width: 0; }
.dok-verzija-cms-vrh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dok-verzija-cms-vrh strong { font-size: 13px; color: #1e293b; }
.dok-verzija-cms-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #1e7e34; background: #e6f4ea; border: 1px solid #b7e0c0; border-radius: 4px; padding: 0 6px; }
.dok-verzija-cms-datum { font-size: 11px; color: #94a3b8; }
.dok-verzija-cms-kom { font-size: 11px; color: #78899e; background: #eef2f7; border-radius: 10px; padding: 0 8px; margin-left: auto; }
.dok-verzija-cms-promena { font-size: 12px; color: #33465c; margin-top: 5px; line-height: 1.45; }
.dok-verzija-cms-promena i { color: #1e7e34; }
.dok-verzija-cms-preuzmi { flex-shrink: 0; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cdd9e8; border-radius: 7px; color: #64748b; }
.dok-verzija-cms-preuzmi:hover { border-color: #00529f; color: #00529f; background: #eef4fb; }

/* ============================================================================
   Chosen select-ovi u FORMAMA - ujednačen izgled sa .cms-input poljima (23.07.2026.)
   (filter-čipovi .kor-filter-grupa zadržavaju svoj kompaktni stil - specifičniji su)
   ============================================================================ */
.chosen-container { font-size: 14px; }

/* --- Jednostruki select (npr. Grupa, filteri u formi) --- */
.chosen-container-single .chosen-single {
  height: auto !important;
  min-height: 40px;
  line-height: 22px;
  padding: 8px 32px 8px 12px !important;
  border: 1.5px solid #dde3ea !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #1e293b !important;
  display: flex;
  align-items: center;
}
.chosen-container-single .chosen-single span { color: #1e293b; margin-right: 0; flex: 1; }
.chosen-container-single .chosen-default,
.chosen-container-single .chosen-default span { color: #c1c8d4 !important; }
.chosen-container-single .chosen-single div { width: 30px; top: 0; bottom: 0; }
.chosen-container-single .chosen-single div b:before { content: none !important; }
.chosen-container-single .chosen-single div b {
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a99ad' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center !important;
  height: 100% !important;
}
.chosen-container-active .chosen-single,
.chosen-container-active.chosen-with-drop .chosen-single {
  border-color: #00529f !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.13) !important;
}
.chosen-container-active.chosen-with-drop .chosen-single { border-radius: 7px 7px 0 0 !important; }

/* --- Višestruki select (Kantoni, Inspektorati, Dodela…) --- */
.chosen-container-multi .chosen-choices {
  border: 1.5px solid #dde3ea !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 3px 8px !important;
  min-height: 40px;
}
.chosen-container-active .chosen-choices {
  border-color: #00529f !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.13) !important;
}
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
  color: #1e293b !important; font-size: 14px !important; height: 30px !important; font-family: inherit;
}
.chosen-container-multi .chosen-choices li.search-field input[type="text"]::placeholder { color: #c1c8d4; }
.chosen-container-multi .chosen-choices li.search-choice {
  background: #e8eff8 !important;
  border: 1px solid #b7d3f0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: #00529f;
  padding: 4px 22px 4px 9px !important;
  margin: 4px 5px 2px 0 !important;
  font-size: 12.5px !important;
  line-height: 1.5;
}
.chosen-container-multi .chosen-choices li.search-choice span { color: #00529f; }
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  top: 7px !important; right: 7px !important; background: none !important;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before {
  content: '×'; position: absolute; top: -3px; left: -1px; color: #00529f; font-size: 15px; line-height: 1;
}
.chosen-container-multi .chosen-choices li.search-choice-focus { background: #d3e2f4 !important; }

/* --- Padajući meni --- */
.chosen-container .chosen-drop {
  border: 1.5px solid #cbd6e2 !important;
  border-top: 0 !important;
  border-radius: 0 0 9px 9px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
  background: #fff;
  margin-top: 0;
}
.chosen-container .chosen-search { padding: 8px !important; }
.chosen-container .chosen-search input[type="text"] {
  border: 1.5px solid #dde3ea !important;
  border-radius: 7px !important;
  padding: 7px 10px 7px 30px !important;
  font-size: 13px;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 512 512'%3E%3Cpath d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' fill='none' stroke='%2394a3b8' stroke-miterlimit='10' stroke-width='40'/%3E%3Cpath d='M338.29 338.29L448 448' fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='40'/%3E%3C/svg%3E") no-repeat 9px center !important;
}
.chosen-container .chosen-results { margin: 2px 6px 6px !important; padding: 0 !important; }
.chosen-container .chosen-results li { padding: 8px 11px !important; border-radius: 7px; font-size: 13px; color: #334155; }
.chosen-container .chosen-results li.highlighted { background: #00529f !important; color: #fff !important; }
.chosen-container .chosen-results li.result-selected { color: #94a3b8 !important; font-weight: 400; }
.chosen-container .chosen-results li.no-results { color: #94a3b8; background: #f8fafc; }
.chosen-container .chosen-results li.group-result {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #00529f; border-top: 1px solid #eef2f7; margin-top: 4px; padding-top: 10px !important;
}
.chosen-container .chosen-results li.group-result:first-child { border-top: none; margin-top: 0; }
.chosen-container .chosen-results li.group-option { padding-left: 22px !important; }

/* =============================================
   TASK MANAGER - dopune posle preuzimanja teme
   (sve iznad ovog bloka je tema u izvornom obliku)
   ============================================= */

/* Kratke strane: siva podloga sadržaja ide do dna prozora, bez belog polja ispod.
   (.main-container:before je podloga pune visine; kolona menija ima svoju belu podlogu) */
.main-container:before {
  background-color: #f2f5f9;
}

/* Znak aplikacije u gornjoj traci: ikonica u pločici, na mestu slike logotipa (.fuzip-navbar-grb daje 34x34) */
.ats-navbar-brand .tm-navbar-znak {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  border-radius: 9px;
  background: #00529f;
  color: #fff;
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.ats-navbar-brand .tm-navbar-znak .fa {
  line-height: 1;
  position: relative;
  top: 1px;
}
/* Naziv aplikacije iz dve reči: verzal, uži razmak slova */
.fuzip-wordmark.tm-wordmark strong {
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* Inicijali korisnika u krugu: ista geometrija kao .nav-user-photo (32px) */
.ace-nav > li.light-blue .nav-user-photo.tm-inicijali {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #00529f;
  color: #fff;
  font: 700 12px/1 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
}

/* Strelice paginacije tabele: bootstrap-table ih crta fontom koji ova aplikacija nema, pa se koristi FontAwesome */
.fixed-table-pagination .pagination .icon-left-open-big,
.fixed-table-pagination .pagination .icon-right-open-big {
  font: normal normal normal 14px/1 FontAwesome;
}
.fixed-table-pagination .pagination .icon-left-open-big:before { content: "\f104"; }
.fixed-table-pagination .pagination .icon-right-open-big:before { content: "\f105"; }

/* =============================================
   FOKUS SA TASTATURE
   Okvir se vidi samo pri kretanju tasterom Tab (:focus-visible); klik mišem izgleda kao i do sada.
   ============================================= */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.cms-save-bar .btn:focus-visible,
.cms-save-bar .btn:active:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid #00529f !important;
  outline-offset: 2px;
}
.navbar a:focus-visible {
  outline-color: #fff !important;
  outline-offset: -3px;
}
.sidebar .nav-list a:focus-visible {
  outline-offset: -2px;
}
.cms-toggle-label input:focus-visible + .cms-toggle-track {
  box-shadow: 0 0 0 3px rgba(0, 82, 159, 0.35);
}

/* Dugačak naziv u zaglavlju strane (podnaslov forme): reč bez razmaka se prelama, da strana ne dobije vodoravni klizač */
.page-header h1,
.page-header h1 small {
  overflow-wrap: anywhere;
  word-break: break-word;
}
