:root {
  --year-dim: 260px;
  --year-body: 240px;
  --taskcolor0: #fff;
  --primarylight1: #4c9cf8;
  --primarylight2: #4BA0F4;
  --offwhite3: #70757a;
  --black000: #0c0e0e;
  --black0: #141617;
  --black1: #181a1b;
  --black2: #1c1f21;
  --black3: #131516;
  --darkgrey000: #111314;
  --darkgrey0: #1f2325;
  --darkgrey1: #222527;
  --darkgrey2: #1f2223;
  --darkgrey3: #3c4043;
  --darkgrey4: #1f2223;
  --mediumgrey0: #26292b;
  --mediumgrey1: #393d41;
  --mediumgrey2: #484c50;
  --mediumgrey3: #95a0a5;
  --primary1: #1a6ee2;
  --primary2: #125ab8;
  --primary3: #122e5c;
  --primary4: #0f2c4f;
  --primary5: #1c1f21;
  --taskcolor: #fcfbf9;
  --taskcolor2: #C0BAB2;
  --white1: #E8E6E3;
  --white2: #C0BAB2;
  --white3: #9C9E9F;
  --white4: #BFC0C1;
  --offwhite1: #9e9689;
  --offwhite2: #c0bab2;
  --error: #d93025;
  --red1: #B01244;
  --red2: #7b0d25;
  --red3: #480816;
  --green1: #2FAD76;
  --bordergrey: 1px solid var(--mediumgrey1);
  --borderdarkgrey: 1px solid var(--mediumgrey2);
  --borderradius: 4px;
  --scrollerThumbBackgroundHover: #3b4042;
  /* --scrollerThumbBackground: rgb(43, 47, 49); */
  /* --scrollerTrackBackground: var(--black1); */
  /* --scrollerThumbBorder: 4px solid var(--black1); */
  --scrollerThumbBorder: 4px solid rgb(48, 52, 54);
  --scrollerThumbBackground: #454a4d;
  --scrollerTrackBackground: #202324;
  --overlay1: rgba(0, 0, 0, 0.2);
  --overlay2: rgba(0, 0, 0, 0.5);
  --box-shadow1:
    rgba(0, 0, 0, 0.14) 0px 8px 10px 1px,
    rgba(0, 0, 0, 0.12) 0px 3px 14px 2px,
    rgba(0, 0, 0, 0.2) 0px 2px 4px -1px;
  --box-shadow2:
    rgba(83, 88, 95, 0.14) 0px 4px 5px 0px,
    rgba(0, 0, 0, 0.2) 0px 1px 10px 0px,
    rgba(83, 88, 95, 0.1) 0px 1px 2px -1px;
  --box-shadow3:
    rgba(0, 0, 0, 0.19) 0 10px 20px,
    rgba(0, 0, 0, 0.23) 0 6px 6px;
  --box-shadow4:
    rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  --box-shadow5:
    rgba(0, 0, 0, 0.14) 0px 8px 4px 0px,
    rgba(0, 0, 0, 0.12) 0px 3px 6px 0px,
    rgba(0, 0, 0, 0.2) 0px 2px 4px 0px;
  --box-shadow6:
    rgba(83, 88, 95, 0.14) 0px 1px 2px -1px,
    rgba(0, 0, 0, 0.2) 0px 1px 10px 0px,
    rgba(83, 88, 95, 0.1) 0px 4px 5px 0px;
  --box-shadow7:
    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;
  --box-shadow2-hover:
    rgba(60, 64, 67, 0.302) 0px 4px 4px 0px,
    rgba(60, 64, 67, 0.149) 0px 8px 10px 4px;
  --box-shadowbottom:
    rgba(0, 0, 0, 0.1) 3px 4px 5px 0px,
    rgba(0, 0, 0, 0.1) 3px 3px 6px 0px,
    rgba(0, 0, 0, 0.2) 3px 3px 4px -1px;
  --box-shadowinset1:
    rgba(0, 0, 0, 0.2) inset 3px 4px 5px 0px,
    rgba(0, 0, 0, 0.1) inset -1px -2px 3px 0px,
    rgba(0, 0, 0, 0.1) inset 3px 3px 6px 0px,
    rgba(0, 0, 0, 0.2) inset 3px 3px 4px -1px;
  --box-shadow-sbfixed:
    rgba(0, 0, 0, .3) 4px 6px 6px 0;
  --tr-1: color, opacity, background-color;
  /* --tr-1: color, opacity, background-color; */
}

.light-mode {
  --primary5: #e9eff6;
  --black000: rgb(224, 229, 237);
  --black0: #E8F0FE;
  --black1: #fff;
  --black2: #E8F0FE;
  --black3: #D2E3FC;
  --darkgrey000: #9AA0A6;
  --darkgrey0: #a9b0b7;
  --darkgrey1: #9da4aa;
  --darkgrey2: #979ea5;
  --darkgrey3: #f1f3f4;
  --darkgrey4: #f1f3f4;
  --mediumgrey0: rgb(219, 221, 224);
  --mediumgrey1: #dadce0;
  --mediumgrey2: #dadce0;
  --mediumgrey3: #dadce0;
  --taskcolor: #fff;
  --taskcolor2: #e8f0fe;
  --white1: #3c4043;
  --white2: #3c4043;
  --white3: #3c4043;
  --white4: #3c4043;
  --offwhite1: #7e848b;
  --offwhite2: #3C4043;
  --bordergrey: 1px solid #dadce0;
  --borderdarkgrey: 1px solid #dadce0;
  --primary3: #5693e8;
  --primary4: #41638c;
  --primarylight1: #2e7ae5;
  --scrollerThumbBackground: #dadce0;
  --scrollerThumbBorder: 4px solid #fff;
  --scrollerThumbBackgroundHover: #bdc1c6;
  --scrollerTrackBackground: #fff;
  --box-shadow5:
    rgba(51, 54, 55, 0.14) 0px 4px 4px 0px,
    rgba(51, 54, 55, 0.12) 0px 3px 2px 0px,
    rgba(51, 54, 55, 0.2) 0px 2px 3px 0px;
}


.weekview__top {
    display: grid;
    grid-template-columns: 76px 1fr;
    height: auto;
    /*overflow: hidden scroll;*/
    /*overflow: hidden auto;*/
  }
  
  .weekview__top::-webkit-scrollbar-track {
    background-color: var(--black1);
  }
  
  .weekview--header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    position: relative;
    height: 54px;
  }
  
  .wv-gmt {
    color: var(--offwhite1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
  }
  
  .weekview--header-day {
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-radius: 2px;
  }
  
  .weekview--header-day__title {
    text-align: center;
    font-weight: 400;
    user-select: none;
    color: var(--offwhite1);
    font-size: 10px;
    letter-spacing: 0.8px;
    line-height: 16px;
    pointer-events: none;
  }
  
  .weekview--header-day__number {
    font-size: 20px;
    font-weight: 500;
    width: 36px;
    height: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--offwhite1);
    border: 1px solid transparent;
  }
  
  /*
  .weekview--header-day__number:hover {
    background-color: var(--mediumgrey1);
  }
  */
  
  .wvh--selected {
    border: 2px solid var(--primarylight1);
  }
  
  .wvh--today {
    background-color: var(--primary1);
    color: var(--taskcolor0) !important;
  }
  
  .wvh--today:hover {
    background-color: var(--primarylight1);
  }
  
  .weekview--allday-module {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    height: 24px;
    width: 100%;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--mediumgrey1);
    box-shadow: 2px 4px 2px 0 rgba(0, 0, 0, 0.25);
  }
  
  .weekview--allday-module__title {
    font-size: 9px;
    text-align: center;
    color: var(--taskcolor);
    font-weight: 500;
    display: flex;
    pointer-events: none;
    user-select: none;
    padding: 8px;
    justify-content: center;
    align-items: center;
  }
  
  .weekview--allday-module::-webkit-scrollbar-track {
    background-color: var(--black1);
  }
  
  .allday--col {
    position: relative;
    width: 100%;
    height: 100%;
    border-left: var(--bordergrey);
  }
  
  .allday__cell {
    position: relative;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
  }
  
  .allday__cell:hover {
    background-color: var(--black2);
  }
  
  .wv-ad--taskicons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 8px;
    margin: 0 8px 0 6px;
    user-select: none;
    pointer-events: none;
  }
  
  .wv-ad--taskicon {
    width: 4px;
    height: 4px;
    margin: 1px 0;
    border-radius: 50%;
    filter: brightness(1.6) contrast(1.4);
  }
  
  .wv-ad--celltitle {
    font-family: var(--primaryFont);
    font-size: 9px;
    font-weight: 500;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white2);
    pointer-events: none;
  }
  
  .wv-ad--cellexpand {
    pointer-events: none;
    background-color: transparent;
    height: 100%;
    width: 18px;
    display: flex;
    align-items: center;
    padding: 2px;
    margin-top: 1px;
    justify-content: flex-end;
  }
  
  /* grid */
  .weekview__grid {
    display: grid;
    height: calc(100% - 36px);
    width: 100%;
    min-width: 100%;
    /*overflow-y: scroll;*/
    overflow-y: auto;
    grid-template-columns: 76px 1fr;
  }
  
  .weekview__grid::-webkit-scrollbar-thumb {
    min-height: 40px;
  }
  
  .weekview--sidebar {
    overflow: hidden;
    min-height: 1250px;
    max-height: 1250px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(25, 1fr);
    width: 76px;
    background-color: transparent;
    z-index: 2;
    user-select: none;
    pointer-events: none;
  }
  
  .sidegrid-cell {
    font-size: 12px;
    color: var(--offwhite1);
    height: 50px;
    display: flex;
    justify-content: center;
  }
  
  .sidegrid-cell:not(:first-child) {
    margin-top: -4px;
  }
  
  /* linear-gradient(
    to right, var(--mediumgrey1) 1px, transparent 1px), */
  .weekview--calendar {
    overflow: hidden;
    min-height: 1250px;
    max-height: 1250px;
    display: grid;
    width: 100%;
    background-color: var(--black1);
    grid-template-columns: repeat(7, 1fr);
    background-size: calc(100% / 7) 4%;
    background-image:
      linear-gradient(to bottom, var(--mediumgrey1) 1px, transparent 1px);
  }
  
  .week--col {
    height: 100%;
    margin-top: 1px;
    position: relative;
    width: 100%;
    padding-right: 8px;
    border-left: 1px solid var(--mediumgrey1);
  }
  
  .box {
    position: absolute;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 3;
    user-select: none;
    overflow: hidden;
    transition: filter 150ms ease-in-out;
  }
  
  /* box events */
  .box-dragging {
    pointer-events: none;
    z-index: 1000;
    box-shadow: var(--box-shadow1);
  }
  
  .box-resizing {
    pointer-events: none;
    box-shadow: var(--box-shadow1);
    z-index: 1000;
  }
  
  /* box events */
  .box-ontop {
    z-index: 3;
    border: 1px solid var(--black1);
    transition-duration: 150ms;
    transition-property: left, width;
    transition-timing-function: ease-in-out;
  }
  
  .wv-box-clicked {
    box-shadow: var(--box-shadow3) !important;
    z-index: 981 !important;
    filter: brightness(1.2);
  }
  
  .temporary-box {
    user-select: none;
    pointer-events: none;
    opacity: 0.5;
  }
  
  .box__header {
    display: flex;
    height: 12px;
    line-height: 12px;
    font-size: 12px;
    width: 100%;
    font-weight: 500;
    user-select: none;
    pointer-events: none;
  }
  
  .box__content {
    display: flex;
    flex-direction: column;
    height: 12px;
    line-height: 12px;
    font-weight: 500;
    font-size: 10px;
    pointer-events: none;
    user-select: none;
  }
  
  .box-title {
    color: var(--taskcolor);
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    padding-left: 3px;
  }
  
  .box-time {
    pointer-events: none;
    color: var(--taskcolor);
    user-select: none;
    white-space: pre-wrap;
    font-weight: 500;
    padding-left: 3px;
  }
  
  .box-resize-s {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 12px;
    width: 100%;
    border-radius: 4px;
    cursor: ns-resize;
    background-color: rgba(17, 20, 21, 0.8);
    opacity: 0;
  }
  
  .box-resize-s:hover {
    opacity: 1;
  }
  
  /*  Z INDICES */
  .box-one {
    z-index: 2;
  }
  
  .box-two {
    z-index: 4;
  }
  
  .box-three {
    z-index: 5;
  }
  
  .box-four {
    z-index: 6;
  }
  
  .box-five {
    z-index: 7;
  }
  
  .box-six {
    z-index: 8;
  }
  
  .box-seven {
    z-index: 9;
  }
  
  .box-eight {
    z-index: 10;
  }
  
  .box-nine {
    z-index: 11;
  }
  
  .box-ten {
    z-index: 12;
  }
  
  .box-eleven {
    z-index: 13;
  }
  
  .box-twelve {
    z-index: 14;
  }
  
  .box-thirteen {
    z-index: 15;
  }
  
  .box-fourteen {
    z-index: 16;
  }
  
  .box-fifteen {
    z-index: 17;
  }
  
  .box-sixteen {
    z-index: 18;
  }
  
  .box-seventeen {
    z-index: 19;
  }
  
  .box-eighteen {
    z-index: 20;
  }
  
  .box-nineteen {
    z-index: 21;
  }
  
  .box-twenty {
    z-index: 22;
  }
  
  .box-two:hover,
  .box-three:hover,
  .box-four:hover,
  .box-five:hover,
  .box-six:hover {
    opacity: .9;
    transition: .1s ease-in-out;
  }
  
  .box-dragging,
  .box-resizing {
    transition: none;
  }
  
  .weekview--footer {
    width: 100%;
    height: 62.5px;
    margin-top: -62.5px;
    background-color: var(--black1);
    position: relative;
    z-index: 50;
    border-top: var(--borderdarkgrey);
    display: none;
  }
  
  .wvh-collapse {
    transform: scaleY(0);
    height: 0;
    min-height: 0;
    opacity: 0;
    transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
  }
  
  .wvh-body-collapse {
    height: 100%;
  }
  
  @media screen and (max-width: 530px) {
    .allday__cell {
      justify-content: center;
      padding: 0 2px;
    }
  
    .wv-ad--taskicons {
      display: none;
    }
  
    .allday__cell--active {
      background-color: var(--black0);
    }
  
    .allday__cell--active:hover {
      background-color: var(--primary3);
    }
  
    .allday-modal-subtitle {
      display: none;
    }
  
    .wv-ad--celltitle {
      font-size: 10px;
    }
  }
  
  @media screen and (max-width:440px) {
    .wv-ad--celltitle {
      font-size: 8px;
    }
  }
  
  @media screen and (max-width:360px) {
    .wv-ad--celltitle::after {
      border-left: 2px solid transparent;
      border-right: 2px solid transparent;
      border-top: 2px solid var(--white3);
      right: 1px;
    }
  }
  
  @media screen and (max-height:470px) {
    .wv-ad--celltitle::after {
      border-left: 2px solid transparent;
      border-right: 2px solid transparent;
      border-top: 2px solid var(--white3);
    }
  }