@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope/Manrope-VariableFont_wght.ttf") format("woff2-variations");
  font-weight: 125 950;
  font-stretch: 75% 125%;
  font-style: normal;
}

@font-face {
  font-family: "Ubuntu-Mono";
  src: url("/assets/fonts/Ubuntu_Mono/UbuntuMono-Regular.ttf");
  font-style: normal;
}

body.no-scroll {
  overflow: hidden;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ego-text-color);
}

h1,
h2 {
  text-align: center;
}

a {
  color: var(--ego-text-color-a);
}

.options {
  display: flex;
  color: white;
  gap: 8px;
  align-items: center;
}

.options button {
  width: 0;
  flex-grow: 1;
  margin: 0;
  max-width: 102px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--ego-bg-1);
  font-family: Arial, Helvetica, sans-serif;
  font-family: "Manrope";
  margin: 0;
}

.width-xs {
  max-width: 340px;
  margin: 0 auto;
  padding: 0 10px;
}

.width-s {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 10px;
}

.width-m {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 10px;
}

.width-l {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 10px;
}

.width-xl {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
}

.width-xxl {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 10px;
}

.width-xxxl {
  max-width: 2560px;
  margin: 0 auto;
  padding: 0 10px;
}

input,
textarea {
  display: block;
  width: 100%;
  background: var(--ego-interactable);
  color: var(--ego-interactable-content);
  margin: 10px 0;
  border-radius: 18px;
  border: none;
  padding: 10px;
  min-height: 30px;
}

input:read-only {
  background: var(--ego-interactable-disabled);
  color: var(--ego-interactable-content-disabled);
}

input[type="date"] {
  display: block;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  min-height: 1.2em;
}

text {
  resize: vertical;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #ccc;
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #ccc;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #ccc;
}

button,
a.button {
  display: block;
  width: 100%;
  background: var(--ego-interactable);
  color: var(--ego-interactable-content);
  margin: 10px 0;
  border-radius: var(--border-radius-lg);
  border: none;
  padding: 10px;
}

a.button {
  text-decoration: none;
  text-align: center;
}

button:hover,
a.button:hover {
  background: var(--ego-interactable-hover);
}

button.disabled,
button:disabled {
  opacity: 0.7;
  background: var(--ego-interactable-disabled);
  color: rgb(147, 163, 189);
}

button.active {
  background: var(--ego-interactable-active);
}

button.action {
  background: var(--interact-action);
  color: var(--interact-action-content);
}

button.file-upload {
  display: block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button.file-upload>.progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: rgb(93, 152, 72);
  z-index: -1;
  transition: width 0.3s linear;
}

button.file-upload.succes>.progress {
  background: rgb(67, 170, 67);
}

button.file-upload.error>.progress {
  background: rgb(192, 96, 44);
}

.search {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 10px;
}


#notofications {
  z-index: 2000;
  position: fixed;
  bottom: 100px;
  right: 0;
  width: 100%;
  max-width: 500px;
  padding: 0 25px;
}

#notofications>div>div {
  position: relative;
  background: #346ad7ef;
  color: whitesmoke;
  padding: 20px;
  margin: 10px 0;
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(3px);
}

#notofications>div>div>button {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 32px;
  border-radius: 16px;
  background: var(--ego-interactable);
  color: var(--ego-interactable-content);

  opacity: 0;
  transition: opacity .2s ease;
}

#notofications>div>div:hover>button {
  opacity: 1;
}

@media screen and (max-width: 480px) {
  #notofications {
    padding: 5px;
  }
}

#notofications>div>div.success {
  background: #639146ef;
}

#notofications>div>div.error {
  background: #d0372fef;
}

#notofications>div .content {
  display: flex;
  align-items: center;
}

#notofications .content h3 {
  margin: 0;
  font-weight: bold;
  font-size: 14pt;
}

#notofications .content p {
  margin: 4px 0;
  font-size: 10pt;
}

#notofications>div .content>i {
  margin-right: 16px;
  font-size: 28px;
}

#notofications .progress p {
  text-align: right;
  margin: 5px 0;
}

#notofications .progress-bg {
  height: 8px;
  border-radius: 4px;
  background: var(--ego-bg-2);
}

#notofications .progress-bar {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 0.3s ease;
  background: var(--ego-interactable);
}

#scroll-to-top {
  display: none;
  position: fixed;
  right: 64px;
  bottom: 8px;

  border-radius: 8px;
  width: 48px;
  height: 48px;
  font-size: 16pt;
  z-index: 3;
  margin: 0;
}

@media screen and (min-width: 768px) {
  #scroll-to-top {
    right: 8px;
    bottom: 96px;

    border-radius: 18px;
    width: 56px;
    height: 56px;

    outline: solid 4px var(--ego-bg-1);
  }
}

.rq .file a.button {
  position: unset;
}

#calendar-widget-widget {
  min-height: 50px;

  max-width: 480px;
  margin: 0 auto;
}

#calendar-widget .content {
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  max-width: 480px;
  margin: 0 auto;
  justify-items: center;
}

#calendar-widget .content>.day {
  text-align: center;
  padding-top: 8px;
  margin: 5px 0;
  height: 38px;
  max-width: 38px;
  width: 100%;
  color: #bbb;
  border-radius: 8px;
  transition: all 0.3 ease;
}

#calendar-widget .content>.day:hover {
  background-color: var(--ego-interactable-active);
}

#calendar-widget .content>.day.disabled {
  color: #888;
  opacity: 0.6;
}

#calendar-widget .content>.day.disabled:hover {
  background-color: #7772;
  opacity: 0.8;
}

#calendar-widget .content>.day.hascontent {
  background-color: var(--ego-interactable);
  color: white;
  position: relative;
  font-weight: bold;
}

#calendar-widget .content>.day.hascontent.incomplete {
  background-color: rgb(208, 110, 53);
}

#calendar-widget .content>.day.active,
#calendar-widget .content>.day.active.incomplete,
#calendar-widget .content>.day.active.disabled {
  background-color: whitesmoke;
  color: black;
}

/* Inputs */
select {
  height: 38px;
  padding-left: 16px;
  padding-right: 16px;
  background: var(--ego-interactable);
  background: url(https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome_whitevariation.svg) no-repeat right 0.8em center / 1.4em, var(--ego-interactable);
  color: var(--ego-interactable-content);
  margin: 10px 0;
  border-radius: var(--border-radius-lg);
  border: none;

  position: relative;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}

select:hover {
  background: var(--ego-interactable-hover);
  background: url(https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome_whitevariation.svg) no-repeat right 0.8em center / 1.4em, var(--ego-interactable-hover);
}

select::before {
  content: "▼";
  right: 0;
  top: 0;
  transform: translateY(-1px);
}

#tools {
  position: absolute;
  right: 40px;
  top: 0;
  padding: 8px;
  display: flex;
  gap: 8px;
}

#tools>span {
  color: var(--ego-text-color);
  opacity: 0.75;
  background: var(--ego-bg-3);
  width: unset;
  min-width: 36px;
  padding: 0 8px;
}

#tools>span>span {

  padding: 0 4px;
  background: var(--ego-bg-2);
  margin-left: 4px;
  border-radius: 4px;
}

#tools>* {
  text-align: center;
  font-size: 12pt;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  line-height: 36px;
  margin: 0;
  padding: 0;
}

.mini-editor {}

.mini-editor {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.mini-editor .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  background: #15161bd2;
  z-index: 1;
}

.mini-editor .content {
  background: var(--ego-bg-2);
  padding: 15px;
  max-height: 85%;
  width: 100%;
  overflow-y: auto;
  z-index: 2;
  box-shadow: 2px 3px 8px #22252ec4;
}

.mini-editor .content.int-scroll {
  overflow-y: visible;
  display: flex;
  flex-direction: column;
}


.mini-editor .content.int-scroll>.scroll {
  overflow-y: auto;
  max-height: 85%;
}


.mini-editor .content>p {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 16pt;
  font-weight: 500;
}

.mini-editor .labeled {
  display: flex;
  align-items: center;
  color: var(--ego-text-color);
  gap: 8px;
}

.mini-editor .labeled input,
.mini-editor .labeled select,
.mini-editor .labeled textarea {
  display: block;
  width: 0;
  flex-grow: 1;
}

.mini-editor .labeled>div {
  width: 86px;
}

.mini-editor .labeled.lg>div {
  width: 128px;
}

.mini-editor .actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.mini-editor .actions>button {
  width: 0;
  flex-grow: 1;
  margin: 0;
}

@media screen and (min-width: 480px) {
  .mini-editor .bg {
    background: #22252ec4;
  }

  .mini-editor .content {
    padding: 20px;
    width: 90%;
    border-radius: 16px;
    max-width: 480px;
    max-height: 75%;
  }
}



.badge,
.user-badge,
.site-badge {
  position: relative;
  display: inline-block;
  line-height: 28px;
  padding: 2px 18px;
  margin: 0 4px;
  text-align: center;
  min-width: 72px;
  background: var(--ego-c-bg);
  color: var(--ego-text-color);
  border-radius: 16px;
  font-weight: bold;
}

.badge.id {
  padding-right: 8px;
}

.badge.green,
.site-badge.green {
  color: var(--ego-c-g);
  font-weight: normal;
}

.badge.blue,
.site-badge.blue {
  color: var(--ego-c-b);
  font-weight: normal;
}

.badge.red,
.site-badge.red {
  color: var(--ego-c-r);
  background: var(--ego-c-r-bg);
  font-weight: normal;
}

.badge>span,
.user-badge>span,
.site-badge>span {
  opacity: 0.4;
  margin-left: 4px;
}


.badge.user,
.user-badge {

  padding-left: 36px;
  text-align: left;
}

.badge>img,
.user-badge>img {
  position: absolute;
  left: 2px;
  top: 2px;
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 14px;
}

@font-face {
  font-family: 'FE-FONT';
  src: url('/assets/fonts/FE-FONT.TTF');
}

.car-license-plate {
  display: inline-block;
  background: #0F4FAA;
  border: solid 1px #141414;
  border-radius: 4px;
  padding: 0 16px;
  height: 32px;
}

.car-license-plate>span {
  display: block;
  min-width: 102px;
  min-height: 28px;
  background: #f1f1f1;
  color: #1a1a1a;
  padding: 0 8px;
  font-family: "FE-FONT";
  line-height: 30px;
  height: 30px;
}


#editor-user-dpi .content>p {
  margin-bottom: 0;
}

#editor-user-dpi .content select {
  width: 100%;
}

#editor-user-dpi-direction {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

#editor-user-dpi-direction>div {
  width: 0;
  flex-grow: 1;
  height: 32px;
}

#editor-user-dpi-direction>div>span.user-badge {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  margin: 0;
  padding-right: 8px;
}

#editor-user-dpi-direction>span {
  width: 36px;
  height: 36px;
  line-height: 36px;
  margin: 0 4px;
  text-align: center;
  display: inline-block;
  color: white;
  background: var(--ego-interactable-disabled);
  border-radius: 32px;
  padding: 2px 0;
}

#editor-user-dpi-count {
  display: flex;
  align-items: center;
}

#editor-user-dpi-count>input {
  width: 0;
  flex-grow: 1;
}

#editor-user-dpi-count>span {
  display: block;
  min-width: 48px;
  text-align: center;
  color: var(--ego-text-color);
}


.btn-flat {
  background: var(--ego-flat);
}

.btn-flat.active {
  background: var(--ego-flat-active);
}

.btn-flat:hover {
  background: var(--ego-flat-hover);
}








/* APP V2 */

#app {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}

#app-content {
  height: 0;
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
}

@media screen and (min-width: 768px) {
  #app {
    padding-left: 72px;
  }
}



/* Buttons color palette - Main interactable */

.btn-palette-main {
  background: var(--ego-interactable);
  color: var(--ego-interactable-content);
}

.btn-palette-main:hover {
  background: var(--ego-interactable-hover);
}

.btn-palette-main.active,
.btn-palette-main:active {
  background: var(--ego-interactable-active);
}

.btn-palette-main.disabled,
.btn-palette-main:disabled {
  background: var(--ego-interactable-disabled);
  color: var(--ego-interactable-content-disabled);
}


/* Buttons color palette - Neutral */

.btn-palette-neutral {
  background: var(--interact-neutral);
  color: var(--interact-neutral-content);
}

.btn-palette-neutral:hover {
  background: var(--interact-neutral-hover);
}

.btn-palette-neutral.active,
.btn-palette-neutral:active {
  background: var(--interact-neutral-active);
}

.btn-palette-neutral.disabled,
.btn-palette-neutral:disabled {
  background: var(--interact-neutral-disabled);
  color: var(--interact-neutral-content-disabled);
}


/* Buttons color palette - Green */

.btn-palette-green {
  background: var(--interact-green);
  color: var(--interact-green-content);
}

.btn-palette-green:hover {
  background: var(--interact-green-hover);
}

.btn-palette-green.active,
.btn-palette-green:active {
  background: var(--interact-green-active);
}

.btn-palette-green.disabled,
.btn-palette-green:disabled {
  background: var(--interact-green-disabled);
  color: var(--interact-green-content-disabled);
}


/* Buttons color palette - Action */

.btn-palette-action {
  background: var(--interact-action);
  color: var(--interact-action-content);
}

.btn-palette-action:hover {
  background: var(--interact-action-hover);
}

.btn-palette-action.active,
.btn-palette-action:active {
  background: var(--interact-action-active);
}

.btn-palette-action.disabled,
.btn-palette-action:disabled {
  background: var(--interact-action-disabled);
  color: var(--interact-action-content-disabled);
}


/* Buttons color palette - Red */

.btn-palette-red {
  background: var(--interact-red);
  color: var(--interact-red-content);
}

.btn-palette-red:hover {
  background: var(--interact-red-hover);
}

.btn-palette-red.active,
.btn-palette-red:active {
  background: var(--interact-red-active);
}

.btn-palette-red.disabled,
.btn-palette-red:disabled {
  background: var(--interact-red-disabled);
  color: var(--interact-red-content-disabled);
}