/** Reset EC style */
.ec {
  color-scheme: light;
  --ec-border-color: var(--bs-border-color-translucent);
  --ec-button-active-border-color: var(--ec-color-400);
  /* --ec-color-400: oklch(70.8% 0 0);
  --ec-color-300: oklch(87% 0 0);
  --ec-color-200: oklch(92.2% 0 0);
  --ec-color-100: oklch(97% 0 0);
  --ec-color-50: oklch(98.5% 0 0);
  --ec-bg-color: #fff;
  --ec-text-color: currentcolor;
  --ec-button-bg-color: var(--ec-bg-color);
  --ec-button-border-color: var(--ec-border-color);
  --ec-button-text-color: var(--ec-text-color);
  --ec-button-active-bg-color: var(--ec-color-200);

  --ec-button-active-text-color: var(--ec-button-text-color);
  --ec-today-bg-color: oklch(98.7% .026 102.212);
  --ec-highlight-color: oklch(98.4% .019 200.873);
  --ec-event-bg-color: oklch(70.7% .165 254.624);
  --ec-event-text-color: #fff;
  --ec-bg-event-color: var(--ec-color-300);
  --ec-bg-event-opacity: .3;
  --ec-event-col-gap: .375rem;
  --ec-now-indicator-color: oklch(63.7% .237 25.331);
  --ec-popup-bg-color: var(--ec-bg-color)
  */
}

.ec-dark .ec {
  color-scheme: dark;
  --ec-color-400: oklch(43.9% 0 0);
  --ec-color-300: oklch(37.1% 0 0);
  --ec-color-200: oklch(26.9% 0 0);
  --ec-color-100: oklch(20.5% 0 0);
  --ec-color-50: oklch(14.5% 0 0);
  --ec-bg-color: var(--ec-color-100);
  --ec-today-bg-color: oklch(28.6% .066 53.813);
  --ec-highlight-color: oklch(30.2% .056 229.695);
  --ec-bg-event-opacity: .5
}

.ec {
  max-height: 85vh;
  overflow-y: auto;
}
.ec-slot{
  font-size: 0.875rem !important;
}
.ec-toolbar {
  /* display: flex;
  justify-content: space-between;
  */
  margin-block-end: 0.2em;
  align-items: baseline;
}
.ec-event:not(.ec-pointer) {
  border-left: 4px solid rgba(0, 0, 0, .25);
}
.ec:not(.ec-timeline):not(.ec-list)  .ec-event:not(.ec-pointer) {
  border-radius: 0 0.725rem 0.725rem;
}

/** DAY LIST **/
.ec-col-head {
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  padding: 0;
}

.ec-day .ec-event {
  border-left: 4px solid transparent;
  margin-bottom: 0.25rem;
  border-bottom: 1px dashed rgba(0, 0, 0, .15);
}

a.ec-event-title {
  font-size: 0.85rem !important;
  padding-top: 0.15rem !important;
  padding-bottom: 0.15rem !important;
  color: currentColor !important;
  line-height: 1 !important;
}

.ec-list a.ec-event-title{
  font-size: var(--bs-font-size-h3) !important;
}
.ec-timeline article{
  min-width: 50px !important;
}
.ec-timeline .ec-event-title {
  font-size: var(--bs-font-size-h4) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.ec-body aside.ec-sidebar {
  box-shadow: 6px 0px 9px -1px rgba(0, 0, 0, 0.36);
}
.ec-event-tag{
  margin-inline-end: 0;
}




.ec-time-grid .ec-event:hover {
  z-index: 777 !important;
  /* inline-size: 100% !important; */
  inline-size: calc(100% - var(--ec-event-col-gap)) !important;
  min-block-size: 5rem !important;
  /* block-size: max-content !important; */
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.375);
  transform: scale(1.015);
  transition: transform 0.15s ease-in-out;
}
.schedule_event{
  display: none;
}
.schedule_event_list_day{
  display: inline-block;
}
.ec-time-grid .ec-event:hover .schedule_event {
  display: block;
}

.ec-time-grid:has(.ec-event:hover) .ec-event:not(:hover) {
  opacity: 0.65;
}

/* .ec-event:has(.ec-event-tag):hover{
  background-color: var(--bs-active-bg);
} */
.ec-event:has(.ec-event-tag):hover .list_day_date_title {
      box-shadow: var(--bs-box-shadow-sm) !important;
}

.ec-grid {
  box-shadow: 0 0.8rem 1.2rem rgba(0, 0, 0, 0.115);
}
.ec-row-head {
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0 !important;
}

.ec-list .ec-main{
  border: none;
}
.ec-list article{
  border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color-translucent) !important;
  box-shadow: var(--bs-box-shadow-sm) !important;
}
.ec-list .ec-event {
  border-left: 0px solid transparent;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(0, 0, 0, .15);
  border-top: 1px dashed rgba(0, 0, 0, .15);
}
.ec-list .ec-event{
  padding: .5em 1.5em .5em 0 !important1;
}
.ec-list .ec-day-head {
  /* background-color: var(--bs-body-bg);
  border-block-end: 1px solid var(--ec-border-color);
  flex-direction: unset;
  margin: 0 0 -1px;
  padding: 1.5em 1.5em;
  position: sticky;
  inset-block-start: 0;
  z-index: 2; */
  container-type: scroll-state;
  position: sticky;
      background-color: color-mix(in srgb, var(--bs-azure) calc(var(--bs-bg-opacity, 1) * 100%), transparent);
        color: var(--bs-azure-fg);

  /* margin: 1.2rem 0; */

  box-shadow: var(--bs-box-shadow-sm);

    /* like container queries, can't query self */
    >time {
      /* background: var(--bs-body-bg); */
      padding: 0.5em 0;
      font-size: 1.05rem;

      transition:
        background-color .3s cubic-bezier(.25, 0, .3, 1),
        box-shadow .3s cubic-bezier(.25, 0, .3, 1),
        padding .3s linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1), border-radius .3s cubic-bezier(.25, 0, .3, 1);

      @container scroll-state(stuck: top) {
        /* background: color-mix(in srgb, var(--bs-azure-lt) calc(var(--bs-bg-opacity, 1) * 100%), transparent) !important; */
        color: var(--bs-azure-fg) !important;
       /*  box-shadow: var(--bs-box-shadow-sm) !important; */
        /* border-radius: 10px; */
        padding: 0 0;
        font-size: var(--bs-font-size-h4);
        /* margin-inline: 20px; */
      }
    }
}

.ec-event-time{
  font-size: 0.5rem;
}
.ec-timeline .ec-row-head,
.ec-time-grid.ec-resource .ec-col-head{
  padding: 0 !important;
}
.ec-timeline .ec-row-head > span:first-child{
  width: 100%;
}
.ec-timeline .ec-col-head{
  text-align: left;
  font-weight: bold;
}
.ec-list .ec-event{
  padding: 0 !important;
  /* padding: 0 .5rem 0 0 !important; */
}
.list_more_btn{
  transition: transform .3s ease-out,
    opacity .3s ease-out,
    box-shadow .3s ease-out;
}
.list_detail_collapse svg{
  transition: transform 0.3s;
}
.row.collapse.show{
  margin-bottom: 1.5rem !important;
}
.list_detail_collapse[aria-expanded="true"] svg{
  transform: rotate(180deg);
}
.list_detail_collapse[aria-expanded="true"]{
  color: color-mix(in srgb, var(--bs-azure) calc(var(--bs-text-opacity, 1) * 100%), transparent) !important;
  background-color: color-mix(in srgb, var(--bs-azure-lt) calc(var(--bs-bg-opacity, 1) * 100%), transparent) !important;
}
.list_more_btn:hover{
  box-shadow: rgba(var(--bs-body-color-rgb), .16) 0 2px 16px 0;
      transform: translateY(-2px);
        opacity: 1;
}
.ec-arrow {
  position: absolute;
  right: 0px;
  bottom: 0px;
  /* border-style: solid; */
  /* border-width: 0 9px 9px 9px; */
  /* border-color: transparent transparent rgba(255, 255, 255, .5) transparent; */
  /* cursor: ew-resize; */
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  width: 6px;
  height: 6px;
  /* background: rgba(255, 255, 255, .5); */
}
.ec-prev, .ec-next{
  border-radius: 0 !important;
}
.btn.btn-icon.ec-stages{
--bs-btn-icon-size: 1.5rem !important;
/*  width: 1.5rem !important;
height: 1.5rem !important; */
}
/* .btn.btn-icon.ec-dayTimeLine{
  --bs-btn-icon-size: 1.25rem !important;
} */

.popover {
  min-width: 15rem;
  --bs-popover-max-width: 30rem;
  --bs-popover-box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

h3.popover-header {
  text-align: center;
}

.ec-dark .popover .card-title {
  color: var(--bs-heading-color) !important;
}
.choices__inner {
  background-color: transparent;
  border-radius: var(--bs-border-radius-lg);
}
.choices__input {
  display: inline-block;
  vertical-align: baseline;
  background-color: transparent;
  font-size: 14px;
  margin-bottom: 5px;
  border: 0;
  border-radius: 0;
  max-width: 100%;
  padding: 4px 2px 2px 4px;
}
.choices__list--dropdown .choices__item--selectable,
.choices__list[aria-expanded] .choices__item--selectable {
  padding-right: 0 !important;
  word-break: break-word;
}
.choices[data-type*=select-multiple] .choices__button{
  border-left: 1px solid transparent;
}
.form-select-lg {
  padding-top: 0.6875rem;
  padding-bottom: 0.6875rem;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  border-radius: var(--bs-border-radius-lg);
}
#show_types_filter_wrapper .form-check-label{
  font-size: var(--bs-body-font-size);
  padding-top: 0.25rem !important;
}
#show_full_filters_wrapper, #shows_calendar_wrapper{
  transition: all 0.2s ease;
}
#show_full_filters_wrapper.collapsed{
  width: 0;
  padding: 0;
  visibility: hidden !important;
}

.toggle-btn {
  /* position: absolute;
  left: 0px;
  top: 0px;
  z-index: 100;
  */
  display: none;
  transition: transform 0.2s ease;
}

.toggle-btn.expanded svg {
  transform: rotate(180deg);
}
.toggle-btn.expanded {
  color: var(--bs-btn-active-color);
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
  box-shadow: var(--bs-btn-active-shadow);
}
.show_type_filter_el .form-check:last-child,
#show_types_filter_wrapper label.form-check:last{
  margin-bottom: 0 !important;
}
.btn-floating-right {
  position: fixed;
  z-index: 1030;
  bottom: 1rem;
  right: 1rem;
  box-shadow: var(--bs-shadow-dropdown);
}
.icon_modal_date{
  --bs-icon-size: 3rem;
}

.input-group-text {
  display: flex  !important;
  border: var(--bs-border-width) solid #bdbec1;
}


/** LOADERS ========================== */
/* HTML: <div class="loader-3spin"></div> */
.loader-3spin {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  border: 4px solid #0000;
  border-radius: 50%;
  border-right-color: #25b09b;
  animation: l15 1s infinite linear;
}

.loader-3spin::before,
.loader-3spin::after {
  content: "";
  grid-area: 1/1;
  margin: 2px;
  border: inherit;
  border-radius: 50%;
  animation: l15 2s infinite;
}

.loader-3spin::after {
  margin: 8px;
  animation-duration: 3s;
}

@keyframes l15 {
  100% {
    transform: rotate(1turn)
  }
}


/* HTML: <div class="loader_spin"></div> */
.loader_spin {
  position: absolute;
  width: 100px;
  height: 100px;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
  animation: rotAnim 750ms ease-in-out infinite;
}

.loader_spin::before,
.loader_spin::after {
  content: "";
  position: absolute;
  width: 25%;
  height: 25%;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 40px #7aa8ff, 0 0 10px #7aa8ff;
}

.loader_spin::after {
  top: unset;
  left: unset;
  bottom: 0;
  right: 0;
}

@keyframes rotAnim {
  0% {
    rotate: 0deg;
  }

  100% {
    rotate: 360deg;
  }
}

@keyframes colorRot {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}
/** ./ END LOADERS ========================== */

.collapse-width {
  /* Initial state: full width, visible content */
  width: 200px;
  /* Or any initial width */
  overflow: hidden;
  transition: width 0.3s ease-out;
  /* Smooth transition for width property */
}

.collapse-width.collapsed {
  /* Collapsed state: width 0 */
  width: 0;
}

.collapse-content {
  /* Ensure content doesn't wrap or take up extra space when collapsed */
  white-space: nowrap;
  padding: 10px;
}

.nav-tabs .nav-link.active{
  color: #4299e1 !important;
}
#settings_dd.dropdown-toggle:after{
  display: none;
}
