/*Roman - start*/

.mdtMultiselectWithLabel label {
  color: rgba(var(--vz-body-color-rgb), 0.65);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  padding: 1rem 0.9rem;
}
.mdtMultiselectWithLabel .choices__inner {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}
.mdtMultiselectWithLabel .choices__list {
  z-index: 100;
}
/*Roman - end*/

/*Milda*/

.d-contents {
  display: contents;
}

.offcanvas-end-large {
  top: 0;
  right: 0;
  width: 900px;
  border-left: 2px solid rgba(67, 89, 113, 0.2);
  transform: translateX(100%);
}
.bg-label-infoline,
.bg-label-infoline-active,
.bg-label-infoline-non-active,
.bg-label-infoline-admin,
.bg-label-infoline-no-weekend,
.bg-label-infoline-double {
  background-color: #d7f5fc !important;
  color: #03c3ec !important;
}

.bg-label-infoline-active {
  border: 2px solid rgb(122, 238, 166) !important;
}
.bg-label-infoline-non-active {
  border: 2px solid rgb(160, 163, 161) !important;
}
.bg-label-infoline-admin {
  color: rgb(0, 0, 0) !important;
  border: 2px solid rgb(0, 0, 0) !important;
}
.bg-label-infoline-no-weekend {
  color: rgb(231, 182, 20) !important;
  border: 2px solid rgb(231, 182, 20) !important;
}
.bg-label-infoline-double {
  color: rgb(231, 20, 20) !important;
  border: 2px solid rgb(231, 20, 20) !important;
}
.bg-label-status-active {
  background-color: #e8fadf !important;
  color: #71dd37 !important;
}
.bg-label-status-repair {
  background-color: #e8fadf !important;
  color: #dd3737 !important;
}
.bg-label-status-inactive {
  background-color: #e8fadf !important;
  color: #bebebe !important;
}
.bg-label-status-stock {
  background-color: #e8fadf !important;
  color: #ddcc37 !important;
}

.bg-mdt-ekg {
  background-color: #e70da6 !important;
}
.bg-devices {
  background-color: #1fd355 !important;
}

.navbar-pills-active {
  color: #fff;
  background-color: #696cff;
  border-color: #696cff;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(105, 108, 255, 0.4);
}
.navbar-pills-nonactive {
  color: #a0a0a0;
  background-color: #696cff;
  border-color: #35367e;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(105, 108, 255, 0.4);
}

.select-none {
  user-select: none;
}

.gray50 {
  background-color: rgba(67, 89, 113, 0.05);
}

.btn-label-primary {
  color: #7674f9;
}

.user-profile-header-banner {
  height: 12rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: linear-gradient(to bottom, #026bce, #ff5733);
  position: relative;
  z-index: 1;
  width: 100%;
}
.user-profile-header {
  margin-top: -8rem;
  background-color: #ffffff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: -1;
  width: 100%;
}
.user-profile-header img {
  border: 3px solid var(--bs-body-bg);
  max-width: 100%;
  max-height: 100%;
  scale: 80%;
  display: block;
  object-fit: cover;
}
.user-profile-header > * {
  z-index: 2;
}
.mt-6 {
  margin-top: 4rem;
}
.offcanvas-start-short {
  height: 60%;
  width: 500px;
  border-radius: 10px;
  background: linear-gradient(to right, #ff0000, #0000ff);
  bottom: 0 !important;
  z-index: 9999;
}
.offcanvas-start-short label,
.offcanvas-start-short h1,
.offcanvas-start-short h2,
.offcanvas-start-short h3,
.offcanvas-start-short h4,
.offcanvas-start-short h5,
.offcanvas-start-short button {
  color: #d7f5fc !important;
}

.toggle-button-cover {
  display: table-cell;
  position: relative;
  width: 200px;
  height: 140px;
  box-sizing: border-box;
}

.button-cover {
  height: 100px;
  margin: 20px;
  background-color: #fff;
  box-shadow: 0 10px 20px -8px #c5d6d6;
  border-radius: 4px;
}
.button-cover:before {
  counter-increment: button-counter;
  content: counter(button-counter);
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d7e3e3;
  font-size: 12px;
  line-height: 1;
  padding: 5px;
}

.button-cover,
.knobs,
.layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.button {
  position: relative;
  top: 50%;
  width: 74px;
  height: 36px;
  margin: -20px auto 0 auto;
  overflow: hidden;
}

.button.r,
.button.r .layer {
  border-radius: 100px;
}

.button.b2 {
  border-radius: 2px;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.cursor-p {
  cursor: pointer;
}

.knobs {
  z-index: 2;
}

.layer {
  width: 100%;
  background-color: #ebf7fc;
  transition: 0.3s ease all;
  z-index: 1;
}
.bg-gradient {
  background: linear-gradient(
    to right,
    rgb(10, 179, 156),
    rgb(64, 81, 137)
  ) !important;
}
.avatar-xxl {
  width: 200px;
  height: 200px;
}

/*multiselect*/
.multi-option-wrapper {
  border: 1px solid var(--vz-input-border-custom);
  background-color: var(--vz-input-bg-custom);
  height: 550px;

  /* overflow-y: scroll; */
  /* display: flex; */
}
.multi-option-wrapper .item {
  color: var(--vz-body-color);
  transition:
    background-color 0.3s,
    border-color 0.3s; /* Optional: Smooth transition */
}

.multi-option-wrapper .item:hover {
  background-color: var(--ck-color-split-button-hover-background);
  border-color: var(--ck-color-split-button-hover-border);
}
.multi-option-wrapper .multi-all-options-wrapper {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
  flex-direction: column;
  display: flex;
}
.multi-option-wrapper .multi-selected-options-wrapper {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
  flex-direction: column;
  display: flex;
}
/* selected options */
.multi-all-options-wrapper a.option-selected {
  display: none;
}
.multi-option-wrapper .multi-group-name {
  display: flex !important;
}
.multi-selected-options-wrapper :not(.option-selected) {
  display: none;
}

/* disabled options */
.multi-all-options-wrapper .option-disabled {
  display: none;
}
.multi-selected-options-wrapper .option-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.5;
  display: flex;
  text-decoration: none !important;
}

/* searched options */
.multi-option-wrapper.searching .item:not(.option-searched) {
  display: none;
}

.multi-wrapper-xl {
  height: 550px; /* Set your desired height here */
}

.multi-wrapper-xl .non-selected-wrapper,
.multi-wrapper-xl .selected-wrapper {
  height: 495px;
  padding-top: 25px;
}

#navs-pills-personal-medical-departments
  .row
  .multi-wrapper.multi-wrapper-xl
  .non-selected-wrapper,
#navs-pills-personal-medical-departments
  .row
  .multi-wrapper.multi-wrapper-xl
  .selected-wrapper {
  height: 70vh; /* Set the desired height */
}

.multi-header {
  position: absolute;
  top: 56px;
  width: 45%;
  background: linear-gradient(
    to bottom,
    var(--vz-secondary-bg) 50%,
    var(--vz-input-bg-custom)
  );
  z-index: 2;
}

.validation-not-ok {
  border-color: #f9c1b6;
  color: #cc563d;
  background-color: #fde8e4 !important;
}

.validation-ok {
  border-color: #9de1d7;
  color: #099885;
  background-color: #9de1d7 !important;
}

.modified-input {
  background-color: #fdf4d0 !important;
}
.nav-link-not-validated {
  color: red !important;
}
.nav-link-validated {
  color: rgb(0, 255, 21) !important;
}
.nav-link-warning-validated {
  color: rgb(255, 174, 0) !important;
}
.infoline-tr-weekend {
  background-color: #82928f;
}
.system-modal {
  z-index: 1056;
}
/* .set-offcanvas {
  background-color: #e8e7f7;
}
.devices-offcanvas-left .set-offcanvas {
  background-color: #d5dff6 !important;
}
.device-offcanvas {
  background-color: #cccff4;
}
.devices-offcanvas-left .device-offcanvas {
  background-color: rgb(213, 223, 246) !important;
} */
.devices-offcanvas-left {
  position: fixed;
  bottom: 0;
  right: 0;
  top: unset !important;
  height: calc(100vh - 88px); /* Set the maximum height - 70px */
  width: 70% !important;
  overflow-y: auto; /* Enable vertical scrolling if needed */
  /* background-color: #f1f1f1;  */
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2); /* Optional shadow */
  z-index: 998;
  border-left: 5px solid #ccc; /* Adjust the width and color as needed */
  padding-left: 10px; /* Add padding to separate content from the border */
}

.devices-offcanvas-right {
  position: fixed;
  bottom: 0 !important;
  right: 0 !important;
  top: unset !important;
  height: calc(100vh - 88px); /* Set the maximum height - 70px */
  width: 35% !important;
  z-index: 999;
  overflow-y: auto; /* Enable vertical scrolling if needed */
  /* background-color: #f1f1f1;  */
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2); /* Optional shadow */
}
/* for modals above modals */
.modal-semi-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent black background */
  z-index: -1;
  /* Ensure it stays behind the content */
}

/* Style for the highlighted element in searchNotes */
.highlighted {
  background-color: yellow;
}
@keyframes flipAnimation {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.offcanvas-flip {
  /* transform-style: preserve-3d; */
  animation: flipAnimation 0.5s ease-in-out;
}
.contact-div {
  position: relative;
}
.contact-div::before {
  content: attr(data-watermark); /* Use data attribute for watermark text */
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  color: rgb(139, 129, 129); /* Set text color to light gray */
  font-style: italic; /* Make text italic */
  opacity: 0.9; /* Set opacity to make it semi-transparent */
}
.facility-contacts {
  position: relative;
  background: #b3d0ad;
  border-radius: 10px;
}
.facility-contacts::before {
  content: attr(data-watermark); /* Use data attribute for watermark text */
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  color: rgb(105, 111, 130); /* Set text color to light gray */
  font-style: italic; /* Make text italic */
  opacity: 0.9; /* Set opacity to make it semi-transparent */
}

.non-grouped-row {
  /* background-color: #e9f2eb; */
}

.medicalFacilityRow {
  background-color: #eff7fb;
}

.new-contact-div {
  background: #d1e1f0;
  border-radius: 10px;
}
.updated-contact-div {
  background: #ecf0d1;
  border-radius: 10px;
}

.auth-one-bg-mdt {
  background-image: url(/img/create-password.webp);
  background-position: center;
  background-size: cover;
}
.bg-overlay-mdt {
  position: absolute;
  height: 100%;
  width: 100%;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  opacity: 0.7;
  background-color: #06a;
}
.multi-wrapper .non-selected-wrapper .item.disabled,
.multi-wrapper .selected-wrapper .item.disabled {
  opacity: 0.5;
  display: block;
  text-decoration: none !important;
}
.multi-wrapper .non-selected-wrapper .item.selected {
  display: none;
}

.zoom {
  animation: zoom forwards 0.7s ease-out 1;
}
@keyframes zoom {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* Define the zoom-in animation */
@keyframes zoom-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Apply the animation to the content */
.zoom-in-content {
  animation: zoom-in 0.5s forwards;
}

.disabledRow {
  color: #82928f;
}

tr:has(.repair-tag) {
  background-color: rgba(
    177,
    6,
    6,
    0.56
  ); /* Applies only to <tr> elements with class "specialRow" */
}
tr:has(.monitoring-tag) {
  background-color: rgba(
    0,
    157,
    255,
    0.673
  ); /* Applies only to <tr> elements with class "specialRow" */
}
tr:has(.repaired-tag) {
  background-color: rgba(
    0,
    255,
    149,
    0.573
  ); /* Applies only to <tr> elements with class "specialRow" */
}
.history-div .dataTables_wrapper table thead {
  display: none;
}

.select2-dropdown.select2-xl .select2-results__options {
  max-height: 30rem !important;
  overflow-y: auto !important;
}

.select2-dropdown.select2-xl
  .select2-results__options.select2-results__options--nested {
  overflow: hidden !important;
}

/* TAGS */
.tag-reference {
  text-decoration-line: underline;
}

/* TICKET */
/* Style for the image wrapper */
.image-wrapper {
  position: relative;
  width: 120px;
  /* Adjust width as needed */
  height: 120px;
  /* Adjust height as needed */
  overflow: hidden;
  border-radius: 12px;
  /* Rounded corners */
  background-color: #333;
  /* Background for contrast */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style for the close button */
.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  /* Transparent background */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  line-height: 18px;
  color: #000;
}

.close-btn {
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
}

.ctext-wrap-content .image-wrapper:hover .close-btn {
  opacity: 0; /* Ensure the close button is hidden in .ctext-wrap-content */
  display: none; /* Prevent display */
}

:not(.ctext-wrap-content) .image-wrapper:hover .close-btn {
  opacity: 1;
  display: block;
}

/* Style for the image inside the wrapper */
.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0.7);
  /* To match the wrapper */
}

/* FULL IMAGE VIEW */
/* Make the modal content full width and height of the screen */
.modal-content-full-image {
  width: 100%;
  height: 100%;
  background-color: transparent; /* Optional: Make background transparent if you want just the image */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Make the image responsive and fill most of the modal */
#fullImage {
  max-width: 90%; /* Image takes up 90% of the width of the screen */
  max-height: 90%; /* Image takes up 90% of the height of the screen */
  object-fit: contain; /* Ensure the image maintains its aspect ratio */
  transition: transform 0.25s ease; /* Smooth zoom transition */
  transform-origin: center center; /* Zoom towards the center of the image */
}
.full-image-wrapper {
  width: 100%;
  height: 100%;
  background-color: #00000047;
  position: absolute;
  align-items: center;
  display: flex;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: transparent;
}
.full-image-wrapper img {
  border-radius: 20px;
}
.ctext-wrap-content .image-wrapper {
  background-color: #00000000;
}
/* ANIMATIONS */
.fade-out {
  transition: all 0.5s ease-in-out;
  overflow: hidden;
  opacity: 0;
}

.fade-in {
  transition: all 0.25s ease-in-out;
  overflow: hidden;
  opacity: 1; /* Fully visible */
}

/* Keyframes for hide-left animation */
@keyframes hide-left {
  0% {
    opacity: 1;
    transform: translateX(0); /* Start in its original position */
  }
  100% {
    opacity: 0;
    transform: translateX(-100px); /* Move left by 100px and fade out */
  }
}

/* Adding the custom animation class */
.hide-left {
  opacity: 1;
  animation: hide-left 0.5s ease forwards; /* 1s animation, easing, and forwards to keep its end state */
}

/* Base flex properties for flexible columns */
.col-flex {
  flex: 1 1 auto; /* Allow columns to grow and shrink */
  transition: all 0.5s ease-out; /* Smooth transition for resizing */
}

/* Set CSS variables for initial column sizes */
.col-flex {
  --base-flex-grow: 1;
  --base-flex-shrink: 0;
  --base-flex-basis: 0;
  flex: var(--base-flex-grow) var(--base-flex-shrink) var(--base-flex-basis);
  /* Adding transition for smooth resizing and fading */
  transition:
    flex-basis 0.5s ease-out,
    opacity 0.5s ease-out;
  opacity: 1; /* Fully visible by default */
}

/* When one column is hidden, remaining columns should grow to fill space */
.row .col-flex:not(.d-none) {
  flex-grow: 1; /* Allow the remaining visible columns to grow */
}

/* Specific overrides for flex basis on columns */
.col-3 {
  --base-flex-grow: 0;
  --base-flex-basis: 25%; /* Column 3 takes 25% width */
}

.col-9 {
  --base-flex-grow: 0;
  --base-flex-basis: 75%; /* Column 9 takes 75% width */
}

/* When only one column is left, let it take the full width */
.row .col-flex:not(.d-none):only-of-type {
  --base-flex-basis: 100%;
}

/* ANIMATED LOGO */

.ecg-loading-logo {
  fill: none;
  stroke: #007dc5;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: miter;
  opacity: 0;
  stroke-dashoffset: 1000;
  stroke-dasharray: 1000;
  animation: ecg-loading-logo 2.5s linear forwards infinite;
}
@keyframes ecg-loading-logo {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    stroke-dashoffset: 2000;
  }
  99% {
    opacity: 0;
    stroke-dashoffset: 3000;
  }
  100% {
    stroke-dashoffset: 1000;
  }
}

/* PROJECTS */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card-projects {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
}

.progress-bar {
  background-color: #eee;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background-color: #4caf50;
}

.bg-gradient-primary-subtle {
  background: linear-gradient(
    135deg,
    var(--vz-info-bg-subtle) 0,
    var(--vz-success-bg-subtle) 20%
  );
}

/*Milda konec*/

/* MICHAL CSS */
#left-panel,
#right-panel {
  transition: width 0.3s ease;
}

#datatable-valuation-monitoring th {
  white-space: normal;
  word-wrap: break-word;
}

#datatable-documents thead th {
  background-color: rgba(33, 37, 41, 0.04);
}

/* NOTICEBOARD CKEDITOR */
#new-post-modal .ck-editor__editable_inline {
  height: 30vh !important;
  overflow-y: auto !important;
}

/* Disable the entire div and its contents */
#disable-container {
  pointer-events: none; /* Disable interaction for the container and its children */
  opacity: 0.6; /* Optional: Make it visually appear disabled */
}

/* Optional: Style for specific elements like inputs or select elements */
#disable-container .choices__input,
#disable-container select,
#disable-container input[type="search"] {
  background-color: #e9ecef; /* Light gray background */
  cursor: not-allowed; /* "Not allowed" cursor */
}

.choices__list--dropdown {
  z-index: 9999; /* Adjust to the desired value */
}
/* MICHAL CSS END */
