/*#region FONTS*/
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local("Roboto"), url(/fonts/roboto-v30-latin-regular.woff2) format('woff2')
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: local("Roboto Italic"), url(/fonts/roboto-v30-latin-italic.woff2) format('woff2')
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: local("Roboto Medium"), url(/fonts/roboto-v30-latin-500.woff2) format('woff2')
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 500;
  src: local("Roboto Medium Italic"), url(/fonts/roboto-v30-latin-500italic.woff2) format('woff2')
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local("Roboto Bold"), url(/fonts/roboto-v30-latin-700.woff2) format('woff2')
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  src: local("Roboto Bold Italic"), url(/fonts/roboto-v30-latin-700italic.woff2) format('woff2')
}

/*#endregion FONTS*/
/*#region RESET CSS */
* {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  user-select: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
li {
  display: block
}

fieldset {
  margin-inline: 0 0;
  padding-block: 0 0;
  padding-inline: 0 0;
  min-inline-size: unset;
}

legend {
  padding-inline: 0 0;
  padding: 0 10px;
}

button {
  background-color: transparent;
  border: none;
  color: inherit;
}

button,
label,
input[type=checkbox] {
  cursor: pointer;
}

html,
body {
  /*line-height: 1;*/
  line-height: 1.25;
  font-family: "Roboto", sans-serif;
  /*sans-serif;*/
  font-size: 1em;
  position: relative;
  scroll-snap-type: y proximity;
  overscroll-behavior-x: none;
}

main {
  display: block;
  position: relative;
  margin: auto;
  width: 100%;
  min-height: calc(100vh - 56px);
  /*min-height: calc(100dvh - 56px);*/
  /*Header + Footer + margin*/
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  text-align: center;
  background-color: var(--surface);
}

/*#endregion RESET CSS*/
/*#region COLOR PALETTE*/
:root {
  --primary: rgb(128 0 128);
  --surface-tint: rgb(158 42 155);
  --on-primary: rgb(255 255 255);
  --primary-container: rgb(146 29 144);
  --on-primary-container: rgb(255 246 249);
  --secondary: rgb(130 75 124);
  --on-secondary: rgb(255 255 255);
  --secondary-container: rgb(230 194 220);
  --on-secondary-container: rgb(95 45 91);
  --tertiary: rgb(107 0 40);
  --on-tertiary: rgb(255 255 255);
  --tertiary-container: rgb(163 29 71);
  --on-tertiary-container: rgb(255 248 247);
  --error: rgb(186 26 26);
  --on-error: rgb(255 255 255);
  --error-container: rgb(255 218 214);
  --on-error-container: rgb(65 0 2);
  --background: rgb(255 247 249);
  --on-background: rgb(34 25 32);
  --surface: rgb(255 2525 255);
  --on-surface: rgb(34 25 32);
  --surface-variant: rgb(243 220 236);
  --on-surface-variant: rgb(82 66 78);
  --outline: rgb(132 114 127);
  --outline-variant: rgb(214 192 207);
  --shadow: rgb(0 0 0);
  --scrim: rgb(0 0 0);
  --inverse-surface: rgb(55 45 53);
  --inverse-on-surface: rgb(253 236 246);
  --inverse-primary: rgb(255 170 243);
  --primary-fixed: rgb(255 215 245);
  --on-primary-fixed: rgb(56 0 56);
  --primary-fixed-dim: rgb(255 170 243);
  --on-primary-fixed-variant: rgb(129 1 129);
  --secondary-fixed: rgb(255 215 245);
  --on-secondary-fixed: rgb(53 6 52);
  --secondary-fixed-dim: rgb(244 178 233);
  --on-secondary-fixed-variant: rgb(103 52 99);
  --tertiary-fixed: rgb(255 217 222);
  --on-tertiary-fixed: rgb(63 0 21);
  --tertiary-fixed-dim: rgb(255 178 190);
  --on-tertiary-fixed-variant: rgb(142 7 57);
  --surface-dim: rgb(218 215 221);
  --surface-bright: rgb(249 247 255);
  --surface-container-lowest: rgb(255 255 255);
  --surface-container-low: rgb(251 248 254);
  --surface-container: rgb(243 240 246);
  --surface-container-high: rgb(237 234 241);
  --surface-container-highest: rgb(231 228 234);
  --warning-color: #E67E22;
  --layer-opacity: 0;
  --elevation1: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,
    rgba(0, 0, 0, 0.14) 0px 1px 1px 0px,
    rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;
  --elevation2: rgba(0, 0, 0, 0.2) 0px 3px 3px -2px,
    rgba(0, 0, 0, 0.14) 0px 3px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;
  --elevation3: rgba(0, 0, 0, 0.2) 0px 3px 5px -1px,
    rgba(0, 0, 0, 0.14) 0px 6px 10px 0px,
    rgba(0, 0, 0, 0.12) 0px 1px 18px 0px;
}

/*#endregion COLOR PALETTE*/
/*#region GLOBAL */

/*input::placeholder {
  color: var(--outline-variant);
}*/

:focus,
input:focus-visible {
  outline: none;
}

svg,
use {
  vertical-align: middle;
  pointer-events: none;
  height: 24px;
  aspect-ratio: 1;
}

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

input[type=text],
input[type=email],
input[type=password],
input[type=url],
input[type=number],
input[type=tel],
input[type=search],
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type=range] {
  cursor: pointer;
  accent-color: var(--primary);
}

input[type=range]::-webkit-slider-thumb {
  border: 10px solid var(--primary);
  border-radius: 50%;
}

.link {
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease-in;
  color: var(--primary);

  /*@media (hover: hover) and (pointer: fine) {
    &:hover {
      text-decoration: underline;
    }
  }*/
}

.hidden {
  display: none;
}

label:has(>.clearable) {
  position: relative;
  display: block;
  width: fit-content;
}

.clearinput {
  position: absolute !important;
  top: 50%;
  translate: 0 -50%;
  right: 8px;
}

a {
  text-decoration: none;
  color: unset;
}

body,
a {
  color: var(--on-surface);
  fill: var(--on-surface-variant);
}

@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-color: var(--outline-variant) transparent;
    scrollbar-width: thin;
  }

}

*::-webkit-scrollbar {
  background-color: transparent;
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--surface-container-highest);
  border-radius: 4px;
}

:disabled {
  pointer-events: none;
}

.bigger-target {
  position: relative;
  overflow: visible;
}

.bigger-target::before {
  content: "";
  position: absolute;
  inset-inline: calc(var(--target-inline) * -1);
  inset-block: calc(var(--target-block) * -1);
  z-index: 1;
}

.show-scrollable {
  position: relative;
}

.show-scrollable::before,
.show-scrollable::after {
  display: none;
  position: sticky;
  grid-column: 1 / -1;
  /* remove the element from the grid */
  content: "";
  z-index: 4;
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s;
}

.show-scrollable::before {
  top: 0;
}

.show-scrollable::after {
  bottom: 0;
}

.scrollable-up::before,
.scrollable-down::after {
  display: block;
  box-shadow: 0 0 60px 60px var(--surface);
}

.cesure {
  display: inline-block;
}

.sortable {
  position: relative;
}

.sortable li {
  position: relative;
  width: 100%;
  transition: top 0.3s;
}

.drag-clone {
  position: absolute;
  /*relative to document*/
  pointer-events: none;
  display: flex;
  flex-direction: column;
  opacity: 0.7;
  z-index: 50;
}

@keyframes loading {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes show {
  to {
    opacity: 1;
  }
}



svg.loading {
  opacity: 0;
  animation: loading 1500ms linear infinite, show 0ms 200ms forwards;
}

.sticking {
  transition: box-shadow 0.2s ease-in-out;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.15);
  border-radius: 0 !important;
  z-index: 2;
}