.mh {
  max-height: 100px;
}
/*Categorieen*/
.primary_cat {
  padding-left: 5px;
  font-weight: bold;
  background-color: #f2f9fa;
}
.sub_cat_1 {
  padding-left: 20px !important;
}
.sub_cat_2 {
  padding-left: 35px !important;
}
.sub_cat_3 {
  padding-left: 45px !important;
}
.sub_cat_4 {
  padding-left: 60px !important;
}
.sub_cat_5 {
  padding-left: 75px !important;
}
/*Formulier*/
table.formulierOpmaak {
  width: auto;
  margin: 0px;
  margin-bottom: 20px;
  padding: 0px;
}
table.formulierOpmaak tr th {
  height: 30px !important;
  height: 20px;
  width: 150px;
  padding: 2px 5px;
  margin: 0px;
  text-align: left;
  color: black;
  font-weight: normal;
  border-bottom: 1px #ccc solid;
}
table.formulierOpmaak tr td {
  height: 30px !important;
  height: 20px;
  width: auto;
  padding: 2px 5px;
  margin: 0px;
  border-bottom: 1px #ccc solid;
  border-left: 1px #ccc solid;
  line-height: 14pt;
}
table.formulierOpmaak tr th.header {
  width: auto;
  height: 30px;
  padding-top: 0px;
  padding-bottom: 0px;
  text-align: left;
  color: black;
  font-weight: bold;
  font-size: 8pt;
  line-height: 16pt;
  background-color: #f2f2f2;
  background: none;
  border-bottom: 1px #ccc solid;
  vertical-align: bottom;
}
div.scrollbox {
  position: relative;
  height: 250px;
  overflow-y: scroll;
  overflow-x: hidden;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 1px solid #d4d0c8;
  border-bottom: 1px solid #d4d0c8;
  font-size: 1rem;
  color: #333;
}
table.formulierOpmaak tr td.spacer {
  height: 10px !important;
  line-height: 10px;
  padding: 0px;
  border-left: none;
}
table.formulierOpmaak .required,
.card .required {
  background-color: #d8d8d8;
}

small {
  font-size: smaller;
}
table.overzicht tr td {
  padding: 7px;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 0.9rem;
  border-bottom: 1px #ccc solid;
  border-left: 1px #ccc dotted;
}
/*Bootstrap Duallistbox*/
.moveall,
.removeall,
.move {
  border: 1px solid #ccc !important;
}
.moveall:hover,
.removeall:hover,
.move:hover {
  background: #efefef;
}

.moveall::after {
  content: attr(title);
}

.removeall::after {
  content: attr(title);
}

.form-control option {
  padding: 10px;
  color: black;
  border-bottom: 1px solid #efefef;
}
.bootstrap-select.required_select .btn {
  background-color: #d8d8d8;
  color: black;
}
/*Voorraad Error*/
.stock_error {
  animation: error_animation 1s;
  /*animation: shake 0.5s;*/
}
@keyframes error_animation {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    background-color: white;
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    background-color: red;
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    background-color: white;
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    background-color: red;
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    background-color: white;
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}
.dropzone .dz-preview .dz-image {
  width: 250px !important;
  height: 250px !important;
}

/* Tabs */
.main-tab,
form#newItemForm,
#tabs,
ul.ui-tabs-nav {
  background-color: #f2f2f2;
  border: none;
}

.home-tab .tab-content {
  padding: 0px 0 !important;
}

.ui-corner-top {
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.ui-tabs-active {
  background-color: white !important;
  border: none !important;
}

.ui-tabs-panel {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
}

.ui-tabs-anchor {
  padding: 0.15em 1em !important;
}

.btn-secondary:hover,
.wizard > .actions .disabled a:hover,
.btn-secondary:focus,
.wizard > .actions .disabled a:focus {
  background: #5f5f5f !important;
  color: white !important;
}

.hide {
  display: none !important;
}
/* Tabs */
/*Button press style*/
.btn-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  background-color: #fff !important;
  border-color: #000 !important;
  color: #000 !important;
}
.btn-primary,
.wizard > .actions a {
  background: #e0ac1d !important;
  /*border-color: #000 !important;*/
  color: #000 !important;
}
/*Button press style*/
/*Data Tables*/
.dataTable tr img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 20% !important;
}
/*Data Tables*/
/* Background */
.bg-primary {
  background-color: #e0ac1d !important;
}
/* Background */
/*Duallist*/
.moveall,
.removeall {
  background: #393939 !important;
  color: white !important;
}
.duallist-select option {
}
.dualbox-option:not(.disabled):hover {
  color: var(--bs-primary);
}
.select_div {
  min-height: 150px;
  overflow: auto;
}
.dualbox-option {
  max-height: 40px;
  min-height: 40px;
  padding-bottom: 2px;
}
/*Duallist*/

/*tags*/
div.tagsinput span.tag {
  background: var(--bs-secondary) !important;
  color: white !important;
}
div.tagsinput span.tag a {
  color: var(--bs-primary) !important;
}
/*tags*/

.ui-tabs-active,
.ui-state-hover {
  /*box-shadow: 0 4px 2px -2px var(--bs-primary) !important;*/
  /*border-bottom: 2px solid var(--bs-primary) !important;*/
}
.ui-tabs-active a {
  color: black !important;
}
/*Modal*/
.modal-content {
  background-color: #f2f2f2 !important;
}
/*Modal*/
/*Media Table*/
.media_table td:hover {
  cursor: move;
}
.ui-sortable-handle {
  cursor: move;
}
/*Media Table*/

/*Dashboard Chart*/
.chartjs-legend ul li span,
.widget-span {
  height: 10px;
  width: 10px;
  border-radius: 100%;
  margin-right: 10px;
  display: inline-block;
  font-size: 0.812rem;
}

/*Dashboard Chart*/
/*Navbar*/
.navbar .navbar-menu-wrapper .navbar-nav .nav-item .button {
  padding: 8px 15px;
  border-radius: 6px;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  min-width: auto;
  height: 34px;
}
/*Navbar*/
/*Buttons*/
.edit_button {
  opacity: 5 !important;
  width: 18px !important;
  height: 18px !important;
  border: none !important;
  background-image: url("../images/buttons/edit_button.png") !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}
.order_edit_button {
  opacity: 5 !important;
  width: 18px !important;
  height: 18px !important;
  border: none !important;
  background-image: url("../images/buttons/edit_button.png") !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}
.order_cancel_button {
  opacity: 5 !important;
  width: 18px !important;
  height: 18px !important;
  border: none !important;
  background-image: url("../images/buttons/cancel_button.svg") !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}
.show_button {
  opacity: 5 !important;
  width: 18px !important;
  height: 18px !important;
  border: none !important;
  background-image: url("../images/buttons/view_button.svg") !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}
.account_button {
  opacity: 5 !important;
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  background-image: url("../images/buttons/Account.svg") !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}
.check_mark_icon {
  opacity: 5 !important;
  width: 16px !important;
  height: 16px !important;
  border: none !important;
  background-image: url("../images/buttons/check_mark.svg") !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}
.delete_button {
  width: 18px !important;
  height: 18px !important;
  border: none !important;
  background-image: url("../images/buttons/delete_button.png") !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}
.edit_button:hover,
.order_edit_button:hover,
.order_cancel_button:hover,
.delete_button:hover,
.show_button:hover {
  zoom: 1 !important;
  filter: alpha(opacity=50) !important;
  opacity: 0.5 !important;
}
/*Buttons*/
.loader-box {
  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: 99;
}

.card {
  border-radius: 0 !important;
}

.bg-table-head {
  background-color: #ebedf0 !important;
}

.saveNotes:hover .saveNotesIcon {
  color: #fff !important;
}

/* Sensitive field icons - positioned next to field labels */
.sensitive-field-icon {
  display: inline-block !important;
  margin-left: 8px !important;
  color: #dc3545 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  cursor: default !important;
  transition: color 0.3s ease !important;
}

.sensitive-field-icon.unlocked {
  color: #28a745 !important;
}

.sensitive-field-icon.locked {
  color: #dc3545 !important;
}

/* Ensure icons are properly styled within table headers */
th .sensitive-field-icon {
  font-weight: normal !important;
}

/* Icon styling */
.sensitive-field-icon i {
  display: inline-block !important;
  font-style: normal !important;
}

/* Unlock button styling - matches backoffice button style */
#unlockSensitiveFields {
  white-space: nowrap !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
  line-height: 1.2 !important;
  height: auto !important;
  align-self: center !important;
}

#unlockSensitiveFields .btn-icon-prepend {
  margin-right: 4px !important;
  font-size: 11px !important;
}

/* Ensure button stays on the right in the tabs header */
.ui-tabs .d-sm-flex .ml-auto {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
}

/* Ensure proper spacing in the tabs header without extra height */
.ui-tabs .d-sm-flex {
  min-height: auto !important;
}

/* Global Auto-Lock Modal Styles */
#globalAutoLockModal .modal-content {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

#globalAutoLockModal .modal-header {
  border-bottom: none;
  padding: 20px 24px 10px;
  border-radius: 8px 8px 0 0;
}

#globalAutoLockModal .modal-header.bg-warning {
  background-color: #ffc107 !important;
}

#globalAutoLockModal .modal-header .modal-title {
  color: #000;
  font-weight: 600;
  font-size: 1.25rem;
}

#globalAutoLockModal .modal-body {
  padding: 20px 24px 24px;
}

#globalAutoLockModal .mdi-lock-outline {
  animation: lock-pulse 2s ease-in-out infinite;
}

@keyframes lock-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

#globalAutoLockModal .form-control:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

#globalAutoLockModal #globalPasswordError {
  font-size: 0.875rem;
  padding: 10px;
  margin-bottom: 15px;
  margin-top: 10px;
}

#globalAutoLockModal .modal-dialog {
  max-width: 400px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

#globalAutoLockModal.modal {
  overflow-y: hidden !important;
}

#globalAutoLockModal .modal-content {
  overflow: hidden;
}

/* Prevent interaction with page when locked - stronger backdrop */
#globalAutoLockModal.show ~ .modal-backdrop.show {
  opacity: 0.8;
  background-color: #000;
}

/* Style for the submit button */
#globalAutoLockModal #globalUnlockSubmitBtn {
  font-weight: 500;
}

#globalAutoLockModal #globalUnlockSubmitBtn .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15rem;
}
