/*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*/

/* DATATABLES FIXES */

.sticky-box {
  position: sticky;
  top: var(--sticky-offset, 0px);
  /* default offset */
  --vz-bg-opacity: 1;
  background-color: rgba(
    var(--vz-body-bg-rgb),
    var(--vz-bg-opacity)
  ) !important;
  padding: 1rem;
}

.dt-container:has(.dataTable.acitivity-timeline) thead,
.dt-container:has(.dataTable.acitivity-timeline) colgroup,
.dt-container:has(.dataTable.acitivity-timeline) .table > :not(:first-child) {
  border: none;
}

.dt-container:has(.dataTable.acitivity-timeline) .dt-scroll-body {
  border: none !important;
}

.dt-container .dt-length {
  margin-left: 0.25rem;
}

.dt-container .dt-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dt-container .dt-paging {
  margin-left: auto !important;
}

.dt-footer-custom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-item-align: stretch;
  align-self: stretch;
}
.filters-wrapper-ref {
  margin-bottom: 0.25rem;
}

table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
  text-align: center !important;
}

html.sidebar-transition {
  transition: all 2.8s ease;
}

html[data-sidebar-size="sm"] #scrollbar {
  position: fixed;
  height: 100vh;
  width: var(--sidebar-collapsed-width, 70px);
  /* z-index: 100; */
}

/* XXL Modal - Extra Large Screens */
@media (min-width: 1400px) {
  /* Targeting larger screens */
  .modal-xxl {
    --vz-modal-width: 1800px; /* Set a wider modal width */
  }
}

/* XXL Modal - Large Screens */
@media (min-width: 1200px) {
  .modal-xxl {
    --vz-modal-width: 1600px; /* Wider than XL */
  }
}

/* XXL Modal - Medium Screens */
@media (min-width: 992px) {
  .modal-xxl {
    --vz-modal-width: 1500px; /* Ensure it is still wider than XL */
  }
}

/* Draw the red dot via ::after so theme rules that hide spans/badges don't affect it */
.menu-item-container > a .menu-icon {
  position: relative;
}

/* Hide empty counts everywhere */
.noti-count:empty {
  display: none !important;
}

/* In small sidebar, show counts only in the flyout AND only if not empty */
[data-sidebar-size="sm"]
  .navbar-menu
  .menu-dropdown.show
  .nav-link
  .noti-count:not(:empty) {
  display: inline-block !important; /* or inline-flex if you prefer */
}

/* Only show when sidebar is small AND the item has notices */
[data-sidebar-size="sm"]
  .menu-item-container.has-notices
  > a
  .menu-icon::after {
  content: "";
  position: absolute;
  top: 0.1rem; /* tweak to taste */
  right: -0.1rem; /* tweak to taste */
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bs-danger, #dc3545);
  outline: 2px solid rgba(0, 0, 0, 0.6); /* helps on dark sidebars */
}

.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;
}

.ghost-element * {
  pointer-events: none; /* disables interaction */
  opacity: 0.8;
  filter: grayscale(50%);
}

.col-1-2 {
  width: 10%;
  flex: 0 0 11%;
}

.modified-input {
  background-color: #fdf4d0 !important;
}
.form-check .form-check-input.modified-input:checked {
  background-color: #f7b84b !important;
  border-color: #f7b84b;
}

.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(/mdt/image/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;
}

/* SELECT 2 CSS FIXES */
.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;
}

.select2-container--bootstrap-5 .select2-search__field {
  background-color: var(--vz-input-bg-custom) !important;
  color: var(--vz-body-color) !important;
  border: var(--vz-border-width) solid var(--vz-input-border-custom) !important;
}
.select2-container--bootstrap-5 .select2-selection {
  background-color: var(--vz-input-bg-custom) !important;
  color: var(--vz-body-color) !important;
  border: var(--vz-border-width) solid var(--vz-input-border-custom) !important;
}

.select2-container.select2-container--bootstrap-5
  .select2-selection
  .select2-selection--single {
  color: var(--vz-secondary-color);
}

.select2-container--bootstrap-5 .select2-results__option {
  background-color: var(--vz-secondary-bg);
  color: var(--vz-body-color);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
  background-color: var(--vz-primary-bg-subtle) !important;
  color: var(--vz-primary-color) !important;
}

.select2-container--bootstrap-5.select2-container--open .select2-dropdown {
  background-color: var(--vz-secondary-bg);
  border: var(--vz-border-width) solid var(--vz-border-color);
  box-shadow: 0 1px 2px rgba(56, 65, 74, 0.15);
  /* z-index: 1056; */
}

.autoComplete_wrapper > ul {
  z-index: 2 !important;
  position: absolute;
}
.files-wrapper .cursor-p:hover {
  background-color: var(--vz-success-bg-subtle) !important;
}

/* Selected item in single select box */
.select2-container--bootstrap-5
  .select2-selection--single
  .select2-selection__rendered {
  color: var(--vz-heading-color) !important;
}
.select2-container--bootstrap-5
  .select2-dropdown
  .select2-results__options
  .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5
  .select2-dropdown
  .select2-results__options
  .select2-results__option[aria-selected="true"]:not(
    .select2-results__option--highlighted
  ) {
  color: #fff;
  background-color: var(--vz-primary-bg-subtle) !important;
}
.select2-container--bootstrap-5
  .select2-dropdown
  .select2-results__options
  .select2-results__option.select2-results__option--highlighted {
  color: #fff;
  background-color: var(--vz-secondary-bg-subtle) !important;
}
/* Dropdown item text */
.select2-container--bootstrap-5 .select2-results__option {
  color: var(--vz-heading-color) !important;
}

/* Hovered dropdown item */
.select2-container--bootstrap-5 .select2-results__option--highlighted {
  background-color: #444 !important;
  color: var(--vz-heading-color) !important;
}

/* Clear (X) icon */
.select2-container--bootstrap-5 .select2-selection__clear {
  color: var(--vz-heading-color) !important;
  background-color: white !important;
}

/* TAGS */
.tag-reference {
  text-decoration-line: underline;
}

/* TICKET */
/* Style for the image wrapper */
.figure-image-wrapper,
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  /* Rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper {
  width: 120px;
  /* Adjust width as needed */
  height: 120px;
  /* Adjust height as needed */
  background-color: #333;
  /* Background for contrast */
}

/* 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;
}

.figure-image-wrapper .close-btn {
  top: 13px;
  right: 22px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.7);
  /* Transparent background */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  text-align: center;
  line-height: 18px;
  color: #000;
}

.close-btn {
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
}

.ctext-wrap-content .figure-image-wrapper:hover .close-btn,
.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) .figure-image-wrapper:hover .close-btn,
: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 */
}

/* APEX CHARTS */
.devices-charts .apexcharts-subtitle-text,
.apexcharts-title-text {
  fill: black !important;
}

/* 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%;
}

/* FILTERS */
.filters-wrapper-ref input[type="text"].search-table-ref:first-of-type {
  min-width: 17vh;
}

/* for first row of short filters */
.filters-wrapper-ref .short-filters {
  gap: 0.5rem !important;
}
/* for second row of wide filters */
.filters-wrapper-ref .wide-filters {
  display: inline-flex;
  flex-direction: row;
}
/* .filters-wrapper-ref .select2-results__option {
  white-space: nowrap;
} */

.hover-bg-dark:hover {
  /* background-color: #508bad; */
  color: #508bad;
}

.tag-reference:hover {
  color: #508bad;
}

.bg-light .acitivity-avatar {
  background-color: var(--vz-light-rgb) !important;
  border: 3px solid var(--vz-light-rgb) !important;
}

/* 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%
  );
}
.bg-gradient-dark-subtle {
  background: linear-gradient(
    135deg,
    var(--vz-warning-bg-subtle) 0,
    var(--vz-dark-bg-subtle) 20%
  );
}

.gslide-inline .ginlined-content {
  padding: 0%;
}

.white-space-normal {
  white-space: normal !important;
}

.opened-form-div {
  background-color: var(--vz-primary-bg-subtle) !important;
  border-radius: 20px;
}

/* DEVICES PANELS AND BUTTONS */

.select2-container--bootstrap-5
  .select2-selection--single
  .select2-selection__rendered {
  margin-right: 2vh;
}

.select2-results__option {
  white-space: nowrap;
}

/* DEVICE BUTTONS */
.device-btn-wrapper {
  display: flex;
  width: 100%;
  flex-direction: row;
}

.device-main-btn,
.close-device-btn {
  transition: all 0.3s ease;
  white-space: normal;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

/* Initial state */
.device-main-btn {
  flex: 1 1 100%;
}

.close-device-btn {
  opacity: 0;
  flex: 0 0 0;
  height: 0;
  padding: 0;
  border: none;
  margin: 0;
  visibility: hidden;
  pointer-events: none;
}

/* On hover: equal width and visible close button */
.device-btn-wrapper:hover .device-main-btn {
  flex: 2 1 0%;
  height: auto;
}

.device-btn-wrapper:hover .close-device-btn {
  flex: 1 1 0%;
  height: auto;
}

.device-btn-wrapper:hover .close-device-btn {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* PANELS */

.right-panel {
  flex: 11;
}

.left-panel,
.right-panel {
  transition: all 0.3s ease;
}

/* Default state: hidden left panel */
.left-panel.hidden {
  opacity: 0;
  flex-basis: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

/* Visible state: takes up 1/12 of space */
.left-panel.visible {
  opacity: 1;
  flex: 1;
  visibility: visible;
}

/* Right panel adapts based on left panel */
.right-panel.full {
  flex: 12;
}

.right-panel.shrinked {
  flex: 11;
}

.hover-body:hover {
  background-color: var(--ck-color-button-default-hover-background);
}

/*Milda konec*/

/* MICHAL CSS */

#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 */
}

tfoot.attendance-footer-styling {
  border-style: none !important;
  border-color: #e9ecef !important; /* Ensures the border color is black */
  height: auto !important;
  --vz-table-striped-bg: transparent !important; /* Set the variable to transparent */
}

.attendance-footer-styling,
.attendance-footer-styling th,
.attendance-footer-styling td,
.attendance-footer-styling tr {
  border: none !important; /* Remove borders */
  height: auto !important; /* Set the height */
  background-color: transparent !important; /* Reset background color */
}

.cursor-default,
.cursor-default td,
.cursor-default tr {
  cursor: default !important;
}

.cursor-default .fw-bolder.text-secondary {
  cursor: pointer !important;
}

/* VACATION */
.days-28 th:nth-child(n + 1) {
  width: calc(85% / 28) !important;
}
.days-29 th:nth-child(n + 1) {
  width: calc(85% / 29) !important;
}
.days-30 th:nth-child(n + 1) {
  width: calc(85% / 30) !important;
}
.days-31 th:nth-child(n + 1) {
  width: calc(85% / 31) !important;
}
.days th:nth-child(1) {
  width: 15% !important; /* First column width */
  min-width: 210px;
}

.legend-menu button {
  border-radius: 0;
  /* color: black; */
  color: var(--vz-body-color);
  cursor: default !important;
  pointer-events: none;
  text-transform: uppercase !important;
  width: 7vw;
}

.legend-menu button:hover {
  background-color: inherit !important;
  color: inherit !important;
  border-color: inherit !important;
  box-shadow: none !important;
}

table.monthly-review-column-sizes td:nth-child(2),
table.monthly-review-column-sizes td:nth-child(4) {
  width: 56% !important;
}

#datatable-daily-review td {
  word-wrap: break-word; /* Break words if necessary */
  white-space: normal; /* Allow text to wrap and not overflow */
}

#staticHeader {
  position: fixed;
  top: -100px; /* Initially hidden above */
  /* left: 0; */
  /* width: 100%; */
  background: white;
  z-index: 1000;
  /* padding: 10px; */
  /* border-bottom: 2px solid #ccc; */
  /* box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); */
  transition: top 0.3s ease-in-out; /* Smooth animation */
}

.text-align-center-table-vacation {
  text-align: center;
}

.text-align-center-table-vacation th:nth-child(1),
.text-align-center-table-vacation td:nth-child(1) {
  text-align: start;
}

/* VACATION END */

/* ATTENDANCE */
.table-monitoring th {
  width: auto !important; /* Reset any inline width */
}

.table-monitoring th:nth-child(n + 1) {
  width: calc(90% / 15) !important;
}

.text-align-center-table,
.text-align-center-table input {
  text-align: center;
}

.text-align-center-table td:nth-last-child(2) input {
  text-align: start;
}

.text-align-center-date {
  text-align: center;
}

/* ATTENDANCE END */

/* Ensure the row and columns are still equal height */
.equal-height-row {
  display: flex;
  flex-wrap: wrap;
}

/* Each column that needs to stretch to the same height */
.equal-height-col {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Makes each column stretch to take up equal height */
}

/* Make sure the card takes the full height of its column */
.equal-height-col .card {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.equal-height-col .card-body {
  flex-grow: 1; /* Allows the body to expand */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes button to bottom */
}

/* First card in the first column: Keep normal height */
.equal-height-col:first-child .card:first-of-type {
  flex-grow: 0; /* Keep its natural height */
}

/* Second card in the first column: Stretch to fill remaining height */
.equal-height-col:first-child .card:nth-of-type(2) {
  flex-grow: 1; /* Makes it grow and take up remaining space */
}

/* Ensure parent is a perfect circle */
.colleague-image {
  border-radius: 50%; /* Make the container circular */
  overflow: hidden; /* Prevent image overflow */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style only the colleague image */
.colleague-image .colleague-img {
  width: 100%; /* Make image fill container */
  height: 100%;
  object-fit: cover; /* Prevent distortion */
  border-radius: 50%; /* Ensure the image itself is circular */
}

/* MICHAL CSS END */

#simple-info {
  display: flex;
  align-items: flex-start; /* Aligns text to the top */
  gap: 15px; /* Adds space between label and address */
  font-size: 14px;
  top: 10px; /* Adjusts distance from the top */
}

/* MICHAL CUSTOM COLORS */
/* WORKING DAY */
.bg-info-striped {
  background: repeating-linear-gradient(
    -45deg,
    rgba(var(--vz-info-rgb), 1),
    rgba(var(--vz-info-rgb), 1) 5px,
    #ffffff 5px,
    #ffffff 10px
  );
}

/* ILLNESS */
.bg-danger-striped {
  background: repeating-linear-gradient(
    -45deg,
    rgba(var(--vz-danger-rgb), 1),
    rgba(var(--vz-danger-rgb), 1) 5px,
    #ffffff 5px,
    #ffffff 10px
  );
}

/* VACATION */
.bg-success-striped {
  background: repeating-linear-gradient(
    -45deg,
    rgba(var(--vz-success-rgb), 1),
    rgba(var(--vz-success-rgb), 1) 5px,
    #ffffff 5px,
    #ffffff 10px
  );
}

/* HOMEOFFICE */
.bg-primary-striped {
  background: repeating-linear-gradient(
    -45deg,
    rgba(var(--vz-primary-rgb), 1),
    rgba(var(--vz-primary-rgb), 1) 5px,
    #ffffff 5px,
    #ffffff 10px
  );
}

/* SCHOOL */
.bg-secondary-striped {
  background: repeating-linear-gradient(
    -45deg,
    rgba(var(--vz-secondary-rgb), 1),
    rgba(var(--vz-secondary-rgb), 1) 5px,
    #ffffff 5px,
    #ffffff 10px
  );
}

/* DOCTOR */
.bg-warning-striped {
  background: repeating-linear-gradient(
    -45deg,
    rgba(var(--vz-warning-rgb), 1),
    rgba(var(--vz-warning-rgb), 1) 5px,
    #ffffff 5px,
    #ffffff 10px
  );
}
/* // MICHAL CUSTOM COLORS */

/* InfoLine */

.weekend-infoline {
  background-color: #b5b7ba;
}
.exemployee-infoline {
  background-color: #441151;
  color: white;
}

.holiday-infoline {
  background-color: #7d6486;
  color: white;
}

.me-infoline {
  font-weight: bold;
}

.date-column-infoline {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#infoline-plan-table td,
#infoline-plan-table th {
  border-left: none !important;
  border-right: none !important;
}

.select-width-infoline {
  width: 30%;
  min-width: 150px; /* Optional: prevent it from becoming too narrow */
}

.btn-size-infoline {
  padding: 6px 16px;
  font-size: 0.9rem;
}

/* Remove vertical borders but keep horizontal lines */
#users-settings-dt th,
#users-settings-dt td {
  border-left: none !important;
  border-right: none !important;
}

/* Narrow checkbox columns (2nd and 3rd) */
#users-settings-dt th:nth-child(2),
#users-settings-dt td:nth-child(2),
#users-settings-dt th:nth-child(3),
#users-settings-dt td:nth-child(3) {
  width: 50px;
  text-align: center;
}

/* Optional: align checkboxes center */
#users-settings-dt input.setting-toggle {
  display: block;
  margin: 0 auto;
}
.date-filter {
  width: 130px; /* more natural size for date inputs */
  min-width: 120px;
}
#status-filter {
  max-width: 200px;
}

/* Remove vertical borders but keep horizontal lines */
#datatable-logs-view th,
#datatable-logs-view td {
  border-left: none !important;
  border-right: none !important;
}

#datatable-logs-view td:last-child,
#datatable-logs-view th:last-child {
  width: 10%;
  max-width: 10%;
  white-space: nowrap; /* optional: prevent wrapping */
}
