/* CalendarWidget */
.CalendarWidget {
  display: flex;
  flex-direction: column;
  background-color: white;
  min-width: 200px;
  min-height: 194px;
}
.CalendarWidget .month {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.CalendarWidget .month .button {
  color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: .25rem;
  padding: 0 .5rem;
  margin: .25rem;
  cursor: pointer;
}
.CalendarWidget .days {
  display: flex;
  flex-direction: column;
}
.CalendarWidget .week {
  display: flex;
}
.CalendarWidget .day {
  flex: 1 1 0;
  text-align: center;
  border-radius: .25rem;
  margin: .25rem;
}
.CalendarWidget .day:not(.blank) {
  cursor: pointer;
}
.CalendarWidget .day.active {
  color: white;
  background-color: var(--secondary);
}

/* TableWidget */
.TableWidget table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
}
.TableWidget td {
  background-color: white;
  overflow-wrap: break-word;
}
.TableWidget tr.hoverable {
  cursor: pointer;
}
.TableWidget tr.hoverable:hover > td {
  filter: brightness(90%);
}
.SimpleTableWidget {
  overflow-x: auto;
}
.FixedTableWidget div.header,
.FixedTableWidget div.footer,
.FixedTableWidget td.colFixed {
  position: -webkit-sticky;
  position: sticky;
}
.FixedTableWidget td.colFixed {
  z-index: 50;
}
.FixedTableWidget div.header,
.FixedTableWidget div.footer {
  z-index: 100;
}
.FixedTableWidget div.header td.colFixed,
.FixedTableWidget div.footer td.colFixed {
  z-index: 150;
}
.FixedTableWidget div.footer {
  bottom: 0;
}
.FixedTableWidget > div {
  overflow-x: auto;
}
.FixedTableWidget > div:not(.footer) {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.FixedTableWidget > div:not(.footer)::-webkit-scrollbar {
  display: none;
}

/* TabsWidget */
.TabsWidget {
  position: relative;
  display: flex;
  width: 100%;
  background-color: white;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.TabsWidget .tab {
  flex: 0 0 auto;
  min-width: 6em;
  overflow-x: hidden;
  border: 1px solid var(--border-color);
  border-top-left-radius: .25em;
  border-top-right-radius: .25em;
  padding: .25em .5em;
  color: var(--secondary);
  text-overflow: ellipsis;
  cursor: pointer;
}
.TabsWidget .tab.active {
  color: black;
  font-weight: 600;
  border-bottom-color: white;
  background-image: linear-gradient(to bottom, var(--border-color), white);
}
.TabsWidget.overflow .tab.active {
  position: -webkit-sticky;
  position: sticky;
  left: 2em;
  right: 2em;
}
.TabsWidget .buttonLeft,
.TabsWidget .buttonRight {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  right: 0;
  min-width: 2em;
  max-width: 2em;
  text-align: center;
  padding-top: .35em;
  background-color: var(--border-color);
  color: var(--secondary);
  cursor: pointer;
}
.TabsWidget:not(.overflow) .buttonLeft,
.TabsWidget:not(.overflow) .buttonRight {
  display: none;
}
.TabsWidget .margin {
  min-width: 1rem;
  max-width: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.TabsWidget.overflow .margin {
  display: none;
}
.TabsWidget .space {
  flex: 1 1 0;
  border-bottom: 1px solid var(--border-color);
}

/* SizeSensorWidget */
.SizeSensorWidget {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  overflow: hidden;
}
.SizeSensorWidget div {
  flex: 0 0 auto;
}
.SizeSensorWidget .pixel {
  width: 2px;
  height: 2px;
}
