:root {

  --breakpoint-sm: 425px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1440px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

[hidden],
.hidden {
  display: none;
}

@media(max-width: var(--breakpoint-sm)) {

  .hidden\@ml,
  .hidden-ml {
    display: none;
  }
}

@media(max-width: var(--breakpoint-md)) {

  .hidden\@md,
  .hidden-t {
    display: none;
  }
}

@media(max-width: var(--breakpoint-lg)) {

  .hidden\@lg,
  .hidden-l {
    display: none;
  }
}

@media(max-width: var(--breakpoint-xl)) {

  .hidden\@xl,
  .hidden-ll {
    display: none;
  }
}

.pointer {
  cursor: pointer;
}
.no-cursor {
  cursor: default;
}

.to-left {
  float: left;
}

.to-right {
  float: right;
}

.no-appearance {
  appearance: none;
}

.no-transition {
  transition: none;
}

a.no-appearance,
a.no-appearance:link,
a.no-appearance:focus,
a.no-appearance:active,
a.no-appearance:visited {
  color: inherit;
  text-decoration: none;
}

ul.no-appearance {
  margin: 0;
  padding: 0;
}
fieldset.no-appearance {
  border: 0;
  padding: 0;
  margin: 0;
}

[hidden] {
  display: none !important;
}

.align-center:not(table) {
  display: flex;
  align-items: center;
}
table.align-center {

  th, thead > th, td, tbody > td {
    text-align: center;
  }
}

.h-90v {
  height: 90vh !important;
}

.h-100 {
  height: 100%;
}

.min-height-80v {
  min-height: 80vh;
}

.mh-100v {
  max-height: 100vh;
}

.gap-1 {
  gap: 1rem;
}
.gap-2 {
  gap: 2vw !important;
}
.gap > * {
  margin-left: 1rem;
}
.gap {
  margin-left: -1rem;
}
.gap-v > * {
  margin-bottom: 1rem;
}
.gap-v {
  margin-bottom: -1rem;
}
.gap-v1 > * {
  margin-bottom: 0.5rem;
}
.gap-v1 {
  margin-bottom: -0.5rem;
}
.gap-1 {
  margin-left: -1vw;
}
.gap-1 > * {
  margin-left: 1vw;
}
.gap-v-1 > * {
  margin-bottom: 1vw;
}
.gap-v-1 > *:last-child {
  margin-bottom: 0;
}

.flex-column {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
}

.p-0 {
  padding: 0 !important;
}

.p {
  padding: 0.5rem  !important;
}
.px {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.py {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.p-1 {
  padding: 0.8vw !important;
}

.p-2 {
  padding: 2vw !important;
}

.p-small {
  padding: 0.5rem;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.px-1 {
  padding-left: 1vw;
  padding-right: 1vw;
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.py-1 {
  padding-top: 1vw;
  padding-bottom: 1vw;
}

.pi-1 > * {
  padding: 0.8vw;
}

.m {
  margin: .5rem;
}

.ms-auto {
  margin-left: auto !important;
}

.ms-0 {
  margin-left: 0 !important;
}

.ms {
  margin-left: 0.5rem !important;
}

.ms-1 {
  margin-left: 1rem !important;
}

.ms-2 {
  margin-left: 2rem;
}

.me-0 {
  margin-right: 0 !important;
}

.me {
  margin-right: 0.5rem !important;
}

.me-1 {
  margin-right: 1rem !important;
}

.me-2 {
  margin-right: 2rem;
}

.m-0 {
  margin: 0 !important;
}

.m-1 {
  margin: 1vw;
}

.mr-1 {
  margin-right: 1vw;
}

.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}

.my {
  margin-top: 0.5vw !important;
  margin-bottom: 0.5vw !important;
}

.my-1 {
  margin-top: 0.8vw !important;
  margin-bottom: 0.8vw !important;
}

.my-2 {
  margin-top: 2vw  !important;
  margin-bottom: 2vw  !important;
}

.mt-0 {
  margin-top: 0;
}

.mt {
  margin-top: 0.5rem;
}

.mt-1 {
  margin-top: 1vw;
}

.mt-2 {
  margin-top: 2vw;
}

.mb-0 {
  margin-bottom: 0;
}

.mb {
  margin-bottom: 0.5rem;
}

.mb-1 {
  margin-bottom: 1vw;
}

.mb-2 {
  margin-bottom: 2vw;
}

.background {
  background-color: #f5f5f5;
}

.no-select {
  user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.no-events {
  cursor: default;
  pointer-events: none;
}

.no-border {
  border: none;
}

.block,
.d-block {
  display: block !important;
}

table.collapse {
  border-collapse: collapse;

  th, td {
    border: 0;
    border-radius: 0;
  }
}
th.collapse,
td.collapse {
  width: 0;
}

.w-10 {
  width: 10%;
  flex-basis: 10%;
}
.w-20 {
  width: 20%;
  flex-basis: 20%;
}


.ms-20 {
  margin-left: 20%;
}

.w-25 {
  box-sizing: border-box;
  width: 25%;
  flex-basis: 25%;
}

.w-30 {
  width: 30%;
  flex-basis: 30%;
}

.w-40 {
  width: 40%;
  flex-basis: 40%;
}

.w-50 {
  box-sizing: border-box;
  width: 50%;
  flex-basis: 50%;
}

.w-60 {
  width: 60% !important;
}

.w-70 {
  width: 70% !important;
}

.w-80 {
  width: 80%;
}

.w-90 {
  width: 90%;
}

.w-100 {
  box-sizing: border-box;
  min-width: 100%;
}

.w-v40 {
  width: 40vw !important;
}

.w-auto {
  width: auto !important;
}

.contain {
  max-width: 100%;
}

@media (max-width: 425px) {
  .w-v100-ml {
    width: 100vw !important;
  }

  .w-100-ml {
    width: 100%;
    flex-basis: 100%;
  }
}
@media (max-width: 768px) {
  .w-60-t {
    width: 60%;
  }

  .w-v60-t {
    width: 60vw !important;
  }

  .w-100-t {
    width: 100%;
    flex-basis: 100%;
  }
}
.w-v40 {
  width: 40vw;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-no-wrap {
  white-space: nowrap;
}

.text-wrap {
  white-space: wrap;
  word-break: break-word;
}

.stack-h > *,
.stack-horizontal > * {
  display: block;
  margin-right: 1rem;
}

.stack-h > *:last-child,
.stack-horizontal > *:last-child {
  margin-right: 0;
}

.stack-v > *,
.stack-vertical > * {
  display: block;
  margin-bottom: 1rem;
}

.stack-v > *:last-child,
.stack-vertical > *:last-child {
  margin-bottom: 0;
}

.stacked {

  &.flex > * {
    display: flex;
  }
  &.medium > * {
    margin-bottom: 1rem;
  }

  & > * {
    display: block;
    margin-bottom: 0.5rem;
  }
  & > *:last-child {
    margin-bottom: 0;
  }
}


.stack-v-2 > *,
.stack-vertical-2 > * {
  display: block;
  margin-bottom: 5vh;
}

.stack-v-2 > *:last-child,
.stack-vertical-2 > *:last-child {
  margin-bottom: 0;
}

.flex-stack {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}
.flex-stack > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.flex-stack.small {
  gap: 0.3rem;
}
.flex-stack.medium {
  gap: 0.5rem;
}
.flex-stack.large {
  gap: 1rem;
}
.flex-stack.xlarge {
  gap: 5vh;
}
.flex-stack.compact {
  justify-content: flex-start;
}

.label.stacked,
label.stacked {
  display: block;
  margin: .3rem;
}

.label.stacked > span:first-child,
label.stacked > span:first-child {
  margin-bottom: 0.5rem;
  display: block;
}

.label.inline,
label.inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.label.inline > span:first-child,
label.inline > span:first-child {
  white-space: nowrap;
}

.label-help {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  color: #999 !important;
  font-style: italic;
  display: inline-block;
}

.label.inline > .label-help,
label.inline > .label-help {
  margin: 0;
}

.margin-remove {
  margin: 0 !important;
}

.padding-remove {
  padding: 0 !important;
}

.padding-remove-y {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.borders-remove {
  border: 0 !important;
}

.container-md {
  width: 60vw;
  max-width: 800px;
}

.container-sm {
  width: 30vw;
  max-width: 500px;
}

@media (max-width: 1024px) {
  .container-md {
    width: 80vw;
  }

  .wrapper-md {
    width: 80%;
  }

  .container-sm {
    width: 40vw;
  }
}
@media (max-width: 768px) {
  .container-md {
    width: 80vw;
  }

  .wrapper-md {
    width: 80%;
  }

  .container-sm {
    width: 60vw;
  }
}
@media (max-width: 425px) {
  .container-md {
    width: 90vw;
  }

  .wrapper-md {
    width: 90%;
  }

  .container-sm {
    width: 90vw;
  }
}

.container {
    max-width: 100%;
}
@media (min-width: 1024px) {
  .container {
    max-width: 80%;
  }
}
@media (min-width: 1440px) {
  .container {
    max-width: 60%;
  }
}

.container.small {
  max-width: 40vw;
}
@media (max-width: 1024px) {
  .container.small {
    max-width: 60vw;
  }
}
@media (max-width: 768px) {
  .container.small {
    max-width: 80vw;
  }
}
@media (max-width: 425px) {
  .container.small {
    max-width: 100vw;
  }
}

.columns {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}
.columns > *,
.columns .column {
  flex: 1;
}
.columns .col-1 {
  flex: 1;
}
.columns .col-2 {
  flex: 2;
}
.columns .col-3 {
  flex: 3;
}
.columns .col-4 {
  flex: 4;
}
.columns .col-5 {
  flex: 5;
}
.columns .col-6 {
  flex: 6;
}
.columns .col-7 {
  flex: 7;
}
.columns .col-8 {
  flex: 8;
}
.columns .col-9 {
  flex: 9;
}
.columns .col-10 {
  flex: 10;
}
.columns .col-11 {
  flex: 11;
}
.columns .col-12 {
  flex: 12;
}

.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  height: 1em;
  line-height: 1em;
}

.overflow-scroll {
  overflow: scroll;
}

.invisible {
  visibility: hidden;
}

.invisible-opacity {
  opacity: 0;
}

.invisible-absolute {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
}

.loader-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 1000;
  background: rgba(255,255,255,0.8);
}

.loader {
  width: 45px;
  aspect-ratio: 1;
  --c: no-repeat linear-gradient(#000 0 0);
  background: var(--c) 0% 50%, var(--c) 50% 50%, var(--c) 100% 50%;
  background-size: 20% 100%;
  animation: l1 1s infinite linear;
}

@keyframes l1 {
  0% {
    background-size: 20% 100%, 20% 100%, 20% 100%;
  }
  33% {
    background-size: 20% 10%, 20% 100%, 20% 100%;
  }
  50% {
    background-size: 20% 100%, 20% 10%, 20% 100%;
  }
  66% {
    background-size: 20% 100%, 20% 100%, 20% 10%;
  }
  100% {
    background-size: 20% 100%, 20% 100%, 20% 100%;
  }
}

.list:not(table) {
  display: flex;
  flex-flow: column;

  &:not(.list-clear) > *:nth-child(odd) {
    background-color: whitesmoke;
  }
  &:not(.list-clear) > *:nth-child(even) {
    background-color: white;
  }
  &.list-clear > * {
    padding: 0.5rem 0.6rem;
    background-color: trasparent;
  }
  &.list-hover > * {
    padding: 0.5rem 0.6rem;
    border-radius: 3px;
  }
  &.list-hover > *:hover {
    background-color: #EAEAEA;
  }
  &.list-divider:not(.list-clear) > *:first-child {
    border-top: 1px solid #B2B2B2;
  }
  &.list-divider > * {
    border-bottom: 1px solid #E0E0E0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 0;
  }
  &.list-divider:not(.list-clear) > *:last-child {
    border-bottom: 1px solid #B2B2B2;
  }
  &.list-compact > * {
    padding: 0.3rem 0.5rem;
  }
}

table.list {
  border-collapse: collapse;

  & > tbody > tr:nth-child(odd) {
    background-color: whitesmoke;
  }
  & > tbody > tr:nth-child(even) {
    background-color: white;
  }

  td {
    padding-top: .3rem;
    padding-bottom: .3rem;
    vertical-align: middle;
  }

  &.list-hover > tbody > tr {

    &:hover {
      background-color: #EAEAEA;
    }
  }

  &.list-divider > tbody > tr {

    &:first-child > td {
      border-top: 1px solid #B2B2B2;
    }
    & > td {
      border-bottom: 1px solid #E0E0E0;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
      margin: 0;
    }
    &:last-child  {
      border-bottom: 1px solid #B2B2B2;
    }
  }

  &.list-compact > tbody > tr {

    & > td {
      padding: 0.3rem 0.5rem;
    }
  }
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 998;
}

.sticky-top {
  position: sticky;
  top: 1rem;
}

.sticky-bottom {
  position: sticky;
  bottom: 0;
  z-index: 998;
}

.sticky-scroll {
  overflow: scroll;
  max-height: 100vh;
  padding-right: 18px;
  margin-right: -18px;
}

.cols {
  column-count: 1;

  &.n2 {
    column-count: 2;
  }
  &.n3 {
    column-count: 3;
  }
  &.n4 {
    column-count: 4;
  }
  &.n5 {
    column-count: 5;
  }
  &.balance {
    column-fill: balance;
  }
  &.gap {
    column-gap: 1rem;
  }
}

@media (max-width: var(--breakpoint-sm)) {

  .cols {
    &.n2\@s, &.n2\@sm {
      column-count: 2;
    }
    &.n3\@s, &.n3\@sm {
      column-count: 3;
    }
    &.n4\@s, &.n4\@sm {
      column-count: 4;
    }
    &.n5\@s, &.n5\@sm {
      column-count: 5;
    }
  }
}

@media (max-width: var(--breakpoint-md)) {

  .cols {
    &.n2\@m, &.n2\@md {
      column-count: 2;
    }
    &.n3\@m, &.n3\@md {
      column-count: 3;
    }
    &.n4\@m, &.n4\@md {
      column-count: 4;
    }
    &.n5\@m, &.n5\@md {
      column-count: 5;
    }
  }
}

@media (max-width: var(--breakpoint-lg)) {

  .cols {
    &.n2\@l, &.n2\@lg {
      column-count: 2;
    }
    &.n3\@l, &.n3\@lg{
      column-count: 3;
    }
    &.n4\@l, &.n4\@lg {
      column-count: 4;
    }
    &.n5\@l, &.n5\@lg {
      column-count: 5;
    }
  }
}

@media (max-width: var(--breakpoint-xl)) {

  .cols {
    &.n2\@xl {
      column-count: 2;
    }
    &.n3\@xl {
      column-count: 3;
    }
    &.n4\@xl {
      column-count: 4;
    }
    &.n5\@xl {
      column-count: 5;
    }
  }
}

.break-inside-avoid {
  break-inside: avoid;
}
