:root {
  --hps-orange: #fcb712;
  --hps-orange-300: #fde6a8;
  --hps-orange-500: #fdd36a;
  --hps-orange-700: #e0a800;
  --hps-input-bg: #f3f4f4;
  --hps-placeholder: #999;
  --hps-radius: 8px;

  --hps-active-bg: #e9ecef;
  --hps-sep: #e7ebee;
  --hps-dark: #0f2022;
  --hps-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --hps-orange-50: #fff6dd;
  --hps-orange-600: #c99700;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

.btn-primary {
  --bs-btn-bg: var(--hps-orange);
  --bs-btn-border-color: var(--hps-orange);
  --bs-btn-hover-bg: var(--hps-orange-700);
  --bs-btn-hover-border-color: var(--hps-orange-700);
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  border-radius: 12px;
}
.link-primary {
  color: var(--hps-orange);
}
.link-primary:hover {
  color: var(--hps-orange-700);
}
.text-hps {
  color: var(--hps-orange) !important;
}
.bg-hps-50 {
  background: var(--hps-orange-50);
}

.hps-topbar {
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}
.hps-brand {
  color: var(--hps-dark);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.hps-navbar {
  background: #fff;
  border-bottom: 1px solid var(--hps-sep);
}
.hps-navbar .navbar {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}
.hps-navbar .navbar-nav {
  gap: 1rem;
}
.hps-navbar .nav-link {
  display: inline-block;
  padding: 0.72rem 1rem;
  border-radius: 0.35rem;
  color: var(--hps-orange);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}
.hps-navbar .nav-link:hover {
  background: var(--hps-active-bg);
  color: var(--hps-orange-700);
}
.hps-navbar .nav-link.active {
  background: var(--hps-active-bg);
  color: #111 !important;
}
.hps-navbar-underline {
  height: 6px;
  background: #e9ecef;
}

.hps-navbar .navbar-toggler {
  border-color: #e1e6e9;
  padding: 0.35rem 0.5rem;
}
.hps-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(10, 123, 79, 0.18);
}
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,.6)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
  .hps-navbar .navbar-nav {
    gap: 0.25rem;
  }
  .hps-navbar .nav-link {
    display: block;
    padding: 0.8rem 0.95rem;
  }
}

.hero {
  background: linear-gradient(135deg, #f7faf9 0%, #ffffff 60%);
  border-radius: var(--hps-radius);
  box-shadow: var(--hps-shadow);
}

.hps-card.card {
  border: 1px solid #edf1f2;
  border-radius: var(--hps-radius);
  box-shadow: var(--hps-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.hps-card.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  border-color: #e3e9ea;
}
.hps-card .card-title a {
  color: inherit;
  text-decoration: none;
}
.hps-chip {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--hps-orange-50);
  color: var(--hps-orange-600);
  font-size: 0.8rem;
  font-weight: 600;
}

.section-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-hr {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--hps-orange), transparent);
  opacity: 0.35;
  margin: 0.25rem 0 1.25rem 0;
}

.table-hps thead th {
  background: #f5f8f7;
  border-bottom: 1px solid #e1e7e6;
  font-weight: 600;
}
.table-hps tbody tr {
  transition: background-color 0.18s ease;
}
.table-hps tbody tr:hover {
  background: #f9fbfb;
}

.pdf-list .pdf-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #edf1f2;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.pdf-list .pdf-item:hover {
  background: #fbfdfc;
  border-color: #e6eeee;
}
.pdf-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--hps-orange-50);
}

@keyframes validPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 123, 79, 0.25);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(10, 123, 79, 0);
  }
}
.is-valid {
  animation: validPulse 0.6s ease-out;
}

.hps-footer {
  border-top: 1px solid #e9ecef;
  color: #4b5456;
  font-size: 0.9rem;
}

.container-iframe {
  padding: 24px 18px;
}
@media (max-width: 575.98px) {
  .container-iframe {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.hps-input.form-control,
.hps-input.form-select,
.hps-input textarea.form-control {
  background: #fff;
  background: var(--hps-input-bg);
  border: none;
  border-radius: var(--hps-radius) var(--hps-radius) 0 0;
  padding: 0.65rem 0.9rem;
  line-height: 1.4;
  box-shadow:
    0 2px 0 0 transparent,
    0 0 0 1px #e5e7eb;
  transition:
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.hps-input.form-control:hover,
.hps-input.form-select:hover,
.hps-input textarea.form-control:hover {
  box-shadow: inset 0 -3px 0 0 var(--hps-orange-500);
}
.hps-input.form-control:focus,
.hps-input.form-select:focus,
.hps-input textarea.form-control:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(252, 183, 18, 0.35);
  outline: 0;
}
.hps-input::placeholder {
  color: var(--hps-placeholder);
  opacity: 1;
}
.hps-input:disabled,
.hps-input[readonly] {
  opacity: 0.85;
  box-shadow: inset 0 -3px 0 0 GainsBoro;
}
.hps-input[readonly].iskljuci {
  cursor: not-allowed;
  pointer-events: none;
  background: Gainsboro;
}
.hps-input.is-invalid,
.was-validated .hps-input:invalid {
  box-shadow: inset 0 -3px 0 0 #dc3545;
  background: #fff;
}
.hps-input.is-valid,
.was-validated .hps-input:valid {
  box-shadow: inset 0 -3px 0 0 var(--hps-orange);
}
.hps-input.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 16 10'%3E%3Cpath fill='%23888' d='M1.3 1.3a1 1 0 011.4 0L8 6.6l5.3-5.3a1 1 0 111.4 1.4l-6 6a1 1 0 01-1.4 0l-6-6a1 1 0 010-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  padding-right: 2.2rem;
}
.hps-input.textarea,
textarea.hps-input {
  padding-top: 0.8rem;
  resize: vertical;
}
.hps-label {
  font-size: 0.9rem;
  color: #6b7579;
  margin-bottom: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.input-group .hps-input {
  border-radius: var(--hps-radius) var(--hps-radius) 0 0 !important;
}
.input-group-text {
  background: #eef2f1;
  border: none;
  box-shadow:
    0 2px 0 0 transparent,
    0 0 0 1px #e5e7eb;
  border-radius: var(--hps-radius) 0 0 0;
}

.form-check-input[type="radio"] {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.2em;
  border: 2px solid var(--hps-orange-500);
  background-color: #fff;
  cursor: pointer;
  transition: all 0.18s ease;
  appearance: none;
  border-radius: 50%;
  position: relative;
}

.form-check-input[type="radio"]:hover {
  border-color: var(--hps-orange-700);
  background-color: var(--hps-orange-50);
}

.form-check-input[type="radio"]:checked {
  border-color: var(--hps-orange);
  background-color: var(--hps-orange);
  box-shadow: 0 0 0 0.2rem rgba(10, 123, 79, 0.15);
}

.form-check-input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background-color: #fff;
  transform: translate(-50%, -50%);
}

.was-validated .form-check-input:invalid ~ .form-check-label,
.form-check-input.is-invalid ~ .form-check-label {
  color: #dc3545;
}

.form-check-input.is-invalid {
  border-color: #dc3545;
  background-color: #fff;
}

.was-validated .form-check-input:valid:checked,
.form-check-input.is-valid:checked {
  border-color: var(--hps-orange);
  background-color: var(--hps-orange);
}

.form-check-input:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(10, 123, 79, 0.15);
}

.form-check-label {
  font-weight: 500;
  color: var(--hps-dark);
  margin-left: 0.3em;
  cursor: pointer;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.login-container {
  position: relative;
  z-index: 2;
  max-width: 400px;
  width: 100%;
  border-radius: var(--hps-radius);
  box-shadow: var(--hps-shadow);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

@media (max-width: 575.98px) {
  .login-container {
    padding: 2rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
  }
}

.hps-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.hps-links a {
  color: #0b7d3e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hps-links a:hover {
  color: #065a2c;
  text-decoration: underline;
}

.hps-links span {
  color: #a8b3a8;
}

.hps-field {
  position: relative;
  width: 100%;
}

.pr-eye {
  padding-right: 2.5rem !important;
}

.password-eye {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.25rem;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7579;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
  border-radius: var(--hps-radius);
}

.password-eye .bi {
  font-size: 1.1rem;
  line-height: 1;
}

.password-eye:hover {
  color: var(--hps-orange-700);
  background-color: rgba(10, 123, 79, 0.05);
}

.password-eye:focus-visible {
  outline: 2px solid rgba(10, 123, 79, 0.25);
  outline-offset: 2px;
}

.hps-input[readonly] + .password-eye,
.hps-input:disabled + .password-eye {
  opacity: 0.6;
  pointer-events: none;
}

.is-invalid {
  border-color: #dc3545 !important;
  background-color: #ffe6e6;
}

/* ===== Select2 — hps theme ===== */
.hps-select2 .select2-container {
  width: 100% !important;
  font-family: inherit;
}

/* Single selection */
.hps-select2 .select2-container--default .select2-selection--single {
  background: var(--hps-input-bg);
  border: none;
  border-radius: var(--hps-radius) var(--hps-radius) 0 0;
  height: auto;
  min-height: calc(1.4em + 0.65rem + 0.65rem);
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  box-shadow:
    0 2px 0 0 transparent,
    0 0 0 1px #e5e7eb;
  transition:
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

/* Text/placeholder */
.hps-select2 .select2-selection__rendered {
  padding: 0;
  line-height: 1.4;
  color: inherit;
}
.hps-select2
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: var(--hps-placeholder);
  opacity: 1;
}

.hps-select2
  .select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  margin-right: 0.35rem;
  color: #7a8588;
}

.hps-select2
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 0.55rem;
  width: 1.6rem;
}
.hps-select2
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border: none !important;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 16 10'%3E%3Cpath fill='%23888' d='M1.3 1.3a1 1 0 011.4 0L8 6.6l5.3-5.3a1 1 0 111.4 1.4l-6 6a1 1 0 01-1.4 0l-6-6a1 1 0 010-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  margin-left: 0.25rem;
}

.hps-select2 .select2-container--default .select2-selection--single:hover {
  box-shadow: inset 0 -3px 0 0 var(--hps-orange-500);
}

.hps-select2
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(252, 183, 18, 0.35);
  outline: 0;
}

.hps-select2
  .select2-container--default.select2-container--disabled
  .select2-selection--single {
  opacity: 0.85;
  box-shadow: inset 0 -3px 0 0 Gainsboro;
  background: var(--hps-input-bg);
  cursor: not-allowed;
}

.hps-select2.is-invalid .select2-selection,
.hps-select2 .is-invalid + .select2 .select2-selection {
  background: #fff;
  box-shadow: inset 0 -3px 0 0 #dc3545;
}
.hps-select2.is-valid .select2-selection,
.hps-select2 .is-valid + .select2 .select2-selection {
  box-shadow: inset 0 -3px 0 0 var(--hps-orange);
}

.hps-select2 .select2-container--default .select2-selection--multiple {
  background: var(--hps-input-bg);
  border: none;
  border-radius: var(--hps-radius) var(--hps-radius) 0 0;
  min-height: calc(1.4em + 0.65rem + 0.65rem);
  padding: 0.35rem 0.35rem 0.25rem 0.5rem;
  box-shadow:
    0 2px 0 0 transparent,
    0 0 0 1px #e5e7eb;
  transition:
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.hps-select2 .select2-container--default .select2-selection--multiple:hover {
  box-shadow: inset 0 -3px 0 0 var(--hps-orange-500);
}
.hps-select2
  .select2-container--default.select2-container--focus
  .select2-selection--multiple {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(252, 183, 18, 0.35);
}

.hps-select2
  .select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background: var(--hps-orange-50);
  border: 1px solid var(--hps-orange-300);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  color: var(--hps-orange-600);
  font-weight: 600;
  margin: 0.2rem 0.25rem 0.2rem 0;
}
.hps-select2
  .select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: var(--hps-orange-700);
  margin-right: 0.25rem;
}

.hps-select2
  .select2-container--default
  .select2-selection--multiple
  .select2-search__field {
  margin-top: 0.2rem;
  padding: 0.35rem 0.25rem;
}
.hps-select2 .select2-container .select2-dropdown {
  border: 1px solid #e3e9ea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--hps-shadow);
}
.hps-select2
  .select2-container--default
  .select2-search--dropdown
  .select2-search__field {
  border: 1px solid #e5ebea;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  outline: 0;
}
.hps-select2 .select2-results__options {
  max-height: 260px;
}

.hps-select2 .select2-container--default .select2-results__option {
  padding: 0.5rem 0.75rem;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}
.hps-select2
  .select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background: #f5f8f7;
  color: inherit;
}
.hps-select2
  .select2-container--default
  .select2-results__option[aria-selected="true"] {
  background: var(--hps-orange-50);
  color: var(--hps-orange-600);
  font-weight: 600;
}

.input-group .select2-container .select2-selection--single {
  border-radius: var(--hps-radius) var(--hps-radius) 0 0 !important;
}

/* --- hps + Select2: style when the original <select> has .hps-input --- */
select.hps-input + .select2-container .select2-selection--single {
  background: var(--hps-input-bg);
  border: none;
  border-radius: var(--hps-radius) var(--hps-radius) 0 0;
  min-height: calc(1.4em + 0.65rem + 0.65rem);
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  box-shadow:
    0 2px 0 0 transparent,
    0 0 0 1px #e5e7eb;
  transition:
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
select.hps-input + .select2-container .select2-selection__rendered {
  padding: 0;
  line-height: 1.4;
  color: inherit;
}
select.hps-input + .select2-container .select2-selection__placeholder {
  color: var(--hps-placeholder);
  opacity: 1;
}
select.hps-input
  + .select2-container
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 0.55rem;
  width: 1.6rem;
}
select.hps-input
  + .select2-container
  .select2-selection--single
  .select2-selection__arrow
  b {
  border: none !important;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 16 10'%3E%3Cpath fill='%23888' d='M1.3 1.3a1 1 0 011.4 0L8 6.6l5.3-5.3a1 1 0 111.4 1.4l-6 6a1 1 0 01-1.4 0l-6-6a1 1 0 010-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  margin-left: 0.25rem;
}
select.hps-input + .select2-container .select2-selection--single:hover {
  box-shadow: inset 0 -3px 0 0 var(--hps-orange-500);
}
select.hps-input
  + .select2-container.select2-container--focus
  .select2-selection--single,
select.hps-input:focus + .select2-container .select2-selection--single {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(252, 183, 18, 0.35);
  outline: 0;
}
/* Validation helper using sibling of .is-invalid/.is-valid */
select.hps-input.is-invalid + .select2-container .select2-selection {
  background: #fff;
  box-shadow: inset 0 -3px 0 0 #dc3545;
}
select.hps-input.is-valid + .select2-container .select2-selection {
  box-shadow: inset 0 -3px 0 0 var(--hps-orange);
}

.markice-input.is-valid,
.was-validated .markice-input:valid,
.markice-input:valid {
  background-image: none !important;
}

.suppress-valid input.is-valid,
.suppress-valid select.is-valid,
.suppress-valid textarea.is-valid,
.suppress-valid .was-validated input:valid,
.suppress-valid .was-validated select:valid,
.suppress-valid .was-validated textarea:valid,
.suppress-valid input:valid,
.suppress-valid select:valid,
.suppress-valid textarea:valid {
  background-image: none !important;
}

.dt-card {
  border: 1px solid #eef0f2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
}
.dt-card .card-body {
  padding: 22px;
}

table.dataTable thead th {
  background: #437e67;
  color: #fcb712;
  font-weight: 600;
  border-bottom: 1px solid #e6e9ee !important;
}
table.dataTable tbody td {
  border-color: #eef0f2;
}
table.dataTable.table-hover tbody tr:hover > * {
  background-color: #f5f8fc !important;
}
table.dataTable thead th:first-child {
  border-top-left-radius: 12px;
}
table.dataTable thead th:last-child {
  border-top-right-radius: 12px;
}

table.dataTable thead th {
  background: #f7f8fa;
  color: #fcb712;
  font-weight: 600;
  border-bottom: 1px solid #e6e9ee !important;
}

table.dataTable tfoot th {
  background: #f7f8fa;
  color: #fcb712;
  font-weight: 600;
  border-bottom: 1px solid #e6e9ee !important;
}
table.dataTable.table-hover tbody tr:hover > * {
  background: #f5f8fc !important;
}
table.dataTable thead th:first-child {
  border-top-left-radius: 12px;
}
table.dataTable thead th:last-child {
  border-top-right-radius: 12px;
}

/* ===== DataTables toolbar – jedan red ===== */
.dataTables_wrapper .dt-actions {
  flex-wrap: nowrap;
}

.dataTables_wrapper .dt-buttons {
  display: flex;
  align-items: center;
}
.dataTables_wrapper .dt-buttons .btn {
  background: transparent !important;
  color: #344054 !important;
  border-color: #c7cdd6 !important;
  box-shadow: none !important;

  height: 32px;
  line-height: 1.25;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.dataTables_wrapper .dt-buttons .btn:hover {
  background: #f8fafc !important;
  border-color: #98a2b3 !important;
}
.dataTables_wrapper .dt-buttons .btn .bi {
  color: inherit;
  font-size: 1rem;
}

.dataTables_filter label {
  margin-bottom: 0;
}
.dataTables_filter input {
  background: var(--hps-input-bg);
  border: none;
  border-radius: var(--hps-radius) var(--hps-radius) 0 0;
  padding: 0.65rem 0.9rem;
  line-height: 1.4;
  box-shadow:
    0 2px 0 0 transparent,
    0 0 0 1px #e5e7eb;
  transition:
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
  height: 40px;
}

.dataTables_filter input:hover {
  box-shadow: inset 0 -3px 0 0 var(--hps-orange-500);
}

.dataTables_filter input:focus {
  background: #fff;
  box-shadow:
    inset 0 -3px 0 0 var(--hps-orange-700),
    0 0 0 0.15rem rgba(10, 123, 79, 0.08);
  outline: 0;
}

.dataTables_filter input::placeholder {
  color: var(--hps-placeholder);
  opacity: 1;
}

.dataTables_paginate .pagination {
  margin: 0;
  gap: 0.4rem;
}

.dataTables_paginate .page-link {
  background: var(--hps-input-bg);
  border: none;
  color: var(--hps-dark);
  border-radius: var(--hps-radius);
  padding: 0.5rem 0.75rem;
  line-height: 1.2;
  box-shadow:
    0 2px 0 0 transparent,
    0 0 0 1px #e5e7eb;
  transition:
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.dataTables_paginate .page-link:hover {
  color: var(--hps-orange-700);
  box-shadow: inset 0 -3px 0 0 var(--hps-orange-500);
}

.dataTables_paginate .page-link:focus {
  outline: 0;
  box-shadow:
    inset 0 -3px 0 0 var(--hps-orange-700),
    0 0 0 0.15rem rgba(10, 123, 79, 0.08);
}

.dataTables_paginate .page-item.active .page-link {
  background: #fff;
  color: var(--hps-orange-700);
  box-shadow:
    inset 0 -3px 0 0 var(--hps-orange-700),
    0 0 0 0.15rem rgba(10, 123, 79, 0.08);
}

.dataTables_paginate .page-item.disabled .page-link {
  opacity: 0.6;
  box-shadow: inset 0 -3px 0 0 Gainsboro;
}

#loading {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.7;
  background-color: #fff;
  z-index: 99999999;
}

#loading-image {
  z-index: 999999999;
}

.hps-checkbox {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.2rem;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border-radius: 4px;
  border: 2px solid var(--hps-orange-500);
  background-color: #fff;
  position: relative;
  transition: all 0.16s ease;
}

.hps-checkbox:hover {
  border-color: var(--hps-orange-700);
  background-color: var(--hps-orange-50);
}

.hps-checkbox:checked {
  border-color: var(--hps-orange);
  background-color: var(--hps-orange);
  box-shadow: 0 0 0 0.18rem rgba(10, 123, 79, 0.18);
}

.hps-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55em;
  height: 0.3em;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
}

/* ===== Input refresh (v2) ===== */
/* Goal: modern, form-first look (map + form), no "underline" vibe. */
:root {
  --hps-input-radius: 12px;
  --hps-input-border: #e5e7eb;
  --hps-input-border-hover: #d1d5db;
  --hps-input-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --hps-input-focus-ring: 0 0 0 0.22rem rgba(252, 183, 18, 0.35);
}

.hps-label {
  font-size: 0.9rem;
  color: #475467;
}

/* Inputs */
.hps-input.form-control,
.hps-input.form-select,
.hps-input textarea.form-control,
.dataTables_filter input {
  background: #fff;
  border: 1px solid var(--hps-input-border);
  border-radius: var(--hps-input-radius);
  padding: 0.72rem 0.95rem;
  line-height: 1.35;
  box-shadow: var(--hps-input-shadow);
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    color 0.14s ease;
}

.hps-input.form-control:hover,
.hps-input.form-select:hover,
.hps-input textarea.form-control:hover,
.dataTables_filter input:hover {
  background: #fffdf4 !important;
  border-color: rgba(252, 183, 18, 0.55) !important;
  box-shadow:
    0 6px 18px rgba(16, 24, 40, 0.08),
    0 0 0 1px rgba(252, 183, 18, 0.18) !important;
}

.hps-input.form-control:focus,
.hps-input.form-select:focus,
.hps-input textarea.form-control:focus,
.dataTables_filter input:focus {
  background: #fff;
  border-color: var(--hps-orange);
  box-shadow: var(--hps-input-shadow), var(--hps-input-focus-ring);
  outline: 0;
  transform: translateY(-1px);
}

.hps-input::placeholder,
.dataTables_filter input::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.hps-input:disabled,
.hps-input[readonly] {
  background: #f9fafb;
  border-color: #e5e7eb;
  box-shadow: none;
  opacity: 0.9;
}

.hps-input[readonly].iskljuci {
  cursor: not-allowed;
  pointer-events: none;
  background: #f2f4f7;
}

/* Validation */
.hps-input.is-invalid,
.was-validated .hps-input:invalid {
  border-color: #dc3545 !important;
  box-shadow:
    var(--hps-input-shadow),
    0 0 0 0.18rem rgba(220, 53, 69, 0.18);
  background: #fff;
}
.hps-input.is-valid,
.was-validated .hps-input:valid {
  border-color: var(--hps-orange) !important;
  box-shadow:
    var(--hps-input-shadow),
    0 0 0 0.18rem rgba(252, 183, 18, 0.22);
}

/* Select arrow for native select */
.hps-input.form-select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 16 10'%3E%3Cpath fill='%23667085' d='M1.3 1.3a1 1 0 011.4 0L8 6.6l5.3-5.3a1 1 0 111.4 1.4l-6 6a1 1 0 01-1.4 0l-6-6a1 1 0 010-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}

/* Input group */
.input-group-text {
  background: #fff;
  border: 1px solid var(--hps-input-border);
  border-right: 0;
  border-radius: var(--hps-input-radius) 0 0 var(--hps-input-radius);
  box-shadow: var(--hps-input-shadow);
  color: #667085;
}

/* Default: keep normal rounding even if you wrap a single input in .input-group */
.input-group > .hps-input {
  border-radius: var(--hps-input-radius) !important;
}

/* Only remove the left radius/border when there is something before the input (prefix icon/text/etc.) */
.input-group > .input-group-text + .hps-input,
.input-group > .btn + .hps-input,
.input-group > .hps-input + .btn {
  border-left: 0;
  border-radius: 0 var(--hps-input-radius) var(--hps-input-radius) 0 !important;
}

/* Password eye */
.password-eye:hover {
  color: var(--hps-orange-700);
  background-color: rgba(252, 183, 18, 0.1);
}
.password-eye:focus-visible {
  outline: 2px solid rgba(252, 183, 18, 0.45);
  outline-offset: 2px;
}

/* Select2 */
.hps-select2 .select2-container--default .select2-selection--single,
select.hps-input + .select2-container .select2-selection--single,
.hps-select2 .select2-container--default .select2-selection--multiple {
  background: #fff;
  border: 1px solid var(--hps-input-border);
  border-radius: var(--hps-input-radius);
  box-shadow: var(--hps-input-shadow);
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    color 0.14s ease;
}

.hps-select2 .select2-container--default .select2-selection--single:hover,
select.hps-input + .select2-container .select2-selection--single:hover,
.hps-select2 .select2-container--default .select2-selection--multiple:hover {
  background: #fffdf4 !important;
  border-color: rgba(252, 183, 18, 0.55) !important;
  box-shadow:
    0 6px 18px rgba(16, 24, 40, 0.08),
    0 0 0 1px rgba(252, 183, 18, 0.18) !important;
}

.hps-select2
  .select2-container--default.select2-container--focus
  .select2-selection--single,
.hps-select2
  .select2-container--default.select2-container--focus
  .select2-selection--multiple,
select.hps-input
  + .select2-container.select2-container--focus
  .select2-selection--single {
  border-color: var(--hps-orange);
  box-shadow: var(--hps-input-shadow), var(--hps-input-focus-ring);
  transform: translateY(-1px);
}

.hps-select2 .select2-container .select2-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

/* Select2 validation */
.hps-select2.is-invalid .select2-selection,
select.hps-input.is-invalid + .select2-container .select2-selection {
  border-color: #dc3545 !important;
  box-shadow:
    var(--hps-input-shadow),
    0 0 0 0.18rem rgba(220, 53, 69, 0.18) !important;
}
.hps-select2.is-valid .select2-selection,
select.hps-input.is-valid + .select2-container .select2-selection {
  border-color: var(--hps-orange) !important;
  box-shadow:
    var(--hps-input-shadow),
    0 0 0 0.18rem rgba(252, 183, 18, 0.22) !important;
}

/* DataTables pagination buttons match new input style */
.dataTables_paginate .page-link {
  background: #fff;
  border: 1px solid var(--hps-input-border);
  box-shadow: var(--hps-input-shadow);
  border-radius: 10px;
}
.dataTables_paginate .page-link:hover {
  border-color: var(--hps-input-border-hover);
  color: var(--hps-dark);
}
.dataTables_paginate .page-item.active .page-link {
  border-color: var(--hps-orange);
  box-shadow: var(--hps-input-shadow), var(--hps-input-focus-ring);
  color: #111;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f9fafb !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}
.select2-container--default.select2-container--disabled .select2-selection--single:hover {
    border-color: #f9fafb !important;
}