* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100vh;
  margin: 0;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}


a {
  text-decoration: none;
}

body {
  background-color: #F4F8FB;
  /*max-width: 400px;*/
  font-family: Inter;
}

#root {
  height: 100vh;
}

.layout {
  padding: 24px 16px;
  transition: opacity 0.5s, margin-left 0.5s;
}

.layout.visible {
  transition: opacity 0.5s;
}

button {
  all: unset;
  cursor: pointer;
}

button:focus {
  outline: revert;
  cursor: pointer;
}

.header__welcome {
  font-weight: bold;
  font-size: 20px;
}

.header__welcome-tip {
  color: #353b5054;
  margin-top: 8px;
}

.main {
  display: flex;
  flex-direction: column;
}

.action,
.actions {
  height: 100px;
}

.action {
  background-color: #7d43b8;
}

.welcome .message {
  font-weight: 700;
  font-size: 1.2rem;
}

.welcome .description {
  display: block;
  font-size: 16px;
  font-weight: 400;
  margin-top: 4px;
  color: #353b5054;
}

.card {
  border-radius: 8px;
  height: 120px;
}

.counters-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
}

.counter-card {
  border-radius: 11px;
  background-color: #FFFFFF;
  padding: 11px 11px 16px 23px;
}

.counter-card .title {
  flex: 1;
  color: #353B5099;
  font-family: Inter;
  text-transform: uppercase;
  font-size: 8pt;
}

.counter-card .count {
  font-family: Inter;
  color: #353B50;
  font-size: 1.5rem;
  font-weight: 600;
  padding-top: 4px;
}

button.card {
  width: 100%;
}

.dark-text {
  font-size: 14px;
  color: #353B50;
}

.card-upcoming-container {
  position: relative;
  margin-top: 24px;
  background-color: #7d43b8;
  z-index: 1;
}

.card-upcoming {
  cursor: pointer;
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: auto;
  align-items: center;
  transition: opacity 1s ease;
  transition-delay: 0.5s;
  z-index: 3;
}

.card-upcoming.loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -999 !important;
  transition: opacity 0.5s;
  transition-delay: 0s;
  z-index: 2;
}

.card-grid {
  background-color: #7D43B8;
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: auto;
  align-items: center;
}

.card-grid .grid-item {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
}

.header {
  font-size: 1rem;
  font-weight: 700;
}

.card-upcoming .header-message, .card .header-message {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.card-upcoming .stats {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
}

.card-upcoming .subtext {
  font-size: 0.6rem;
  color: white;
}

.card-upcoming .date, .card-grid .date {
  margin-top: 6px;
  display:flex;
  align-items: center;
}
.card-upcoming .date .icon, .card-grid .date .icon {
  margin-right: 6px;
}


.card-upcoming .date .msg, .card-grid .date .msg {
  font-size: 0.8rem;
  font-weight: 400;
  color: #FFFFFF;
}

.stats {
  color: #ffffff;
}

.number .balance {
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1rem;
}

.number {
  display: flex;
  align-items: baseline;
}

.number .total,
.number .delimiter {
  line-height: 1.2rem;
  opacity: 0.6;
  font-size: 0.8rem;
}

.card-menu {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: space-around;
  row-gap: 12px;
  column-gap: 12px;
  color: #353b50;
  font-weight: 700;
}
.card-menu .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.card-menu .dayoff {
  cursor: pointer;
  background-color: #cfffdc;
}

.card-menu .sickday {
  cursor: pointer;
  background-color: #EA4A3533;
}

.card-menu .holidays {
  cursor: pointer;
  background-color: white;
}

.card-menu .profile {
  cursor: pointer;
  background-color: white;
  color: #353b50;
}

.ptitle {
  font-weight: 700;
  font-size: 1.2rem;
  color: #353b50;
  display: block;
  margin-bottom: 12px;
}

.vcard {
  min-height: 56px;
  border-radius: 11px;
  color: #353b50;
  display: flex;
  justify-content: space-between;
  padding: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.date-info {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  margin-top: 8px;
  margin-bottom: 5px;
}

.vcard .info {
  margin-left: 5px;
}

.vcard .title {
  font-size: 0.9rem;
  display: block;
  font-weight: 600;
  margin-top: 5px;
}

.vcard .date {
  font-size: 0.8rem;
  display: block;
  margin-left: 5px;
}

.vcard .date {
  display: block;
}

.vcard .relative {
  display: block;
  margin-left: 7px;
  color: #353b5099;
}

.vcard .icon {
  filter: brightness(0) saturate(100%) invert(22%) sepia(29%) saturate(522%) hue-rotate(189deg) brightness(89%)
    contrast(91%);
}

.vcard .remove {
  display: flex;
  align-items: center;
  background-color: #f5f8fb;
  border-radius: 8px 11px 11px 8px;
  padding: 15px;
  border: none;
}
.vcard .remove:hover {
  opacity: 0.8;
  cursor: pointer;
}

button.remove.loading {
  padding: 14px;
}

.progress-bar {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.progress-bar progress {
  visibility: hidden;
  height: 0;
  width: 0;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-main-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-image {
  border-radius: 100%;
}

.profile-fullname, .profile-nickname {
  color: #353B50;
}

.profile-fullname {
  font-weight: bold;
}

.profile-nickname {
  font-size: 12px;
  font-weight: 300;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;

  background-color: #FFFFFF;
  border-radius: 8px;
}

.card-confirm-vacation {
  margin-top: 21px;
  background-color: #7D43B8;
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: auto;
  align-items: center;
}

.card-upcoming .subtext {
  font-size: 0.6rem;
  color: white;
}


#holidays .menu {
  background-color: white;
  border-radius: 11px;
}

#holidays .hday {
  padding: 11px 0px;
  display: flex;
  justify-content: space-between;
}

#holidays .hadd {
  cursor: pointer;
  padding: 12px 16px;
  background-color: #F5F8FB;
  border-radius: 8px;
}

#holidays .hadd.loading {
  padding: 12px 12px 8px ;
  background-color: #F5F8FB;
  border-radius: 8px;
}

#holidays .hadded {
    width: 44px;
    height: 44px;
    cursor: pointer;
    background-color: #F5F8FB;
    border-radius: 8px;
}

#holidays .hadded img {
    padding: 7px 10px 6px 12px;
    filter: invert(30%) sepia(65%) saturate(1594%) hue-rotate(247deg) brightness(86%) contrast(87%);
}

#holidays .halladd .icon {
  margin-right: 8px;
  filter: brightness(0) saturate(100%) invert(100%) sepia(6%) saturate(6%) hue-rotate(304deg) brightness(104%) contrast(101%);
}

summary {
  cursor: pointer;
}

#holidays .halladd {
  margin-top: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background-color: #7D43B8;
  border-radius: 8px;
  color: #FFF;
  font-family: Inter;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

#holidays .hdate {
  color: #353B50;
  font-family: Inter;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

#holidays .hrelative {
  color: rgba(53, 59, 80, 0.40);
  font-family: Inter;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding-left: 8px;
}

#holidays .hday .title {
  color: #353B50;
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

#holidays .mitem {
  margin-top: 10px;
  padding: 16px 15px 14px 15px;
}

#holidays .title {
  color: #353B50;
  font-family: Inter;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

#holidays summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hdesc {
  margin-top: 14px;
}

#holidays summary .icon {
  margin-right: 16px;
}

details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}


#holidays .hday {
  border-top: 1px solid rgba(53, 59, 80, 0.05);
}
#holidays .htitle {
  color: #353B50;
  font-family: Inter;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;}


.mitem details[open] .right {
  display: none;
}

.mitem details:not([open]) .down {
  display: none;
}

.vacation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 16px;
}

.vacation-button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;

  padding: 12px 28px;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
}

.vacation-button.cancel {
  background-color: #FFFFFF;
  border-radius: 8px;
  color: #7D43B8;
}

.vacation-button.add {
  background-color: #7D43B8;
  border-radius: 8px;
  color: #FFFFFF;
}

.vacation-button.add.disabled {
  opacity: 0.3;
}

.warning {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-top: 12px;
  padding: 16px;
  border-radius: 8px;
  background-color: rgba(234, 74, 53, 0.1);
}

.warning-type, .warning-text {
  font-size: 14px;
}

.warning-type {
  text-transform: capitalize;
  font-weight: bold;
}

.warning-text {
  font-weight: 300;
}

.uppercase {
  text-transform: uppercase;
}

/* Calendar fixes */

.rdrDayToday .rdrDayNumber span:after {
  background: #7D43B8 !important;
}

.rdrDayToday:not(.rdrDayPassive) .rdrStartEdge ~ .rdrDayNumber span:after, .rdrDayToday:not(.rdrDayPassive) .rdrEndEdge ~ .rdrDayNumber span:after {
  background: #fff  !important;
}


/* Loading Spinner */

.loader-big {
  width : 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top:3px solid #FFF;
  border-right:3px solid transparent;
  animation: rotation 1s linear infinite;
}

.loader-small {
  width : 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  border-top:2px solid #FFF;
  border-right:2px solid transparent;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}

.loader-big2 {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader-small2 {
    width: 20px;
    height: 20px;
    border: 3px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader-small.purple, .loader-big.purple {
  border-top:2px solid #7d43b8;
}

.loader-small2.purple, .loader-big2.purple {
  border:2px solid #7d43b8;
  border-bottom-color: transparent;
}

#mood {
  height: var(--tg-viewport-height);
}

#mood h1 {
  padding-left: 24px;
  padding-top: 24px;
  font-size: 1.7rem;
}

#mood h1 + p {
  padding-left: 24px;
  font-size: 0.9rem;
  color: gray;
}

#mood .mood-select {
  padding: 24px 24px 20px 24px;
  position: relative;
  display: flex;
  justify-content: center;
  border-radius: 0px 0px 30px 30px;
  background-color: #f5f8fb;
  border-bottom: 1px solid #ccc;
}


#mood .mood-select input {
  opacity: 0;
  position: absolute;
}

#mood .mood-select label {
  position: relative;
  cursor: pointer;
  padding: 0.2rem;
  background: rgb(223 223 223 / 50%);
  border-radius: 50%;
  filter: grayscale(100%);
  transition: 0.1s filter linear;
  -webkit-tap-highlight-color: transparent
}

#mood .mood-select tgs-player {
    transition: 0.1s transform linear;
    width: 100%;
    height: 100%;
    min-width: 32px;
    min-height: 32px;
    z-index: 2;
}

#mood .mood-select tgs-player.background {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    filter: blur(12px);
    opacity: 0;
    transition: 0.2s opacity linear;
}

#mood .mood-select input:checked + label {
    filter: grayscale(0);
    display:flex;
    justify-content: center;
    align-items: center;
}

#mood .mood-select input:checked + label tgs-player {
    transform: scale(1.5);
}

#mood .mood-select input:checked + label tgs-player.background {
    opacity: 0.5;
}

#mood .mood-select input + label:hover {
    filter: grayscale(0%);
}

#mood .mood-select input + label + input + label {
    margin-left: 2vw;
}

#mood-history {
  padding: 24px 16px;
}

#mood-history .title {
  display: flex;
  align-items: center;
}

#mood-history tgs-player {
  width: 24px;
  height: 24px;
  padding-right: 4px;
  margin-left: -2px;
}
#mood-history-chart {
  width: 100%;
}

@keyframes widthGrow {
  from {
    width: 0;
  }
}

.skills-bar {
  animation: widthGrow 0.5s ease;
}

.dashed-custom {
  border-style: dashed;
  border-width: 1px;
  border-color: black;
  border-spacing: 10px;
  border-image: linear-gradient(to right, black 30%, rgba(255, 255, 255, 0) 0%) 1 100%;
}

mark {
  background: none;
}
