:root {
  --ins-logo-padding-y: 6px;
  --ins-logo-lg-height: 150px;
}

html[data-sidenav-size="condensed"] .content-page {
  min-height: initial;
}

.sidenav-menu [data-simplebar] {
  height: calc(100% - var(--ins-logo-lg-height) - 4 * var(--ins-logo-padding-y));
}

.logo {
  padding-top: var(--ins-logo-padding-y);
  padding-bottom: var(--ins-logo-padding-y);
}

.logo-bg {
  background: url("../../img/intranet/logo-bg-pattern.472e14f4a346.png");
  background-size: cover !important;
  width: calc(100% + 1px);
}

.dt-layout-table > div {
  overflow: auto;
  max-width: 100%;
}

.fc-event {
  font-size: var(--fc-small-font-size);
  padding: 0 5px;
}

.fc .fc-daygrid-day-frame {
  min-height: 100px;
}

.input-group > .select2-container--default {
  width: auto !important;
  flex: 1 1 auto !important;
}

.input-group > .select2-container--default .select2-selection--single {
  height: 100% !important;
  line-height: inherit !important;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#theme-toggle .theme-icon-when-auto,
#theme-toggle .theme-icon-when-dark,
#theme-toggle .theme-icon-when-light {
  display: none;
}

html[data-theme="auto"] #theme-toggle .theme-icon-when-auto {
  display: block;
}

html[data-theme="dark"] #theme-toggle .theme-icon-when-dark {
  display: block;
}

html[data-theme="light"] #theme-toggle .theme-icon-when-light {
  display: block;
}
