html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* config vars */

:root {
  --container-width: 1240px;
  --container-width-M: 96%;
  --container-width-S: 90%;

  --all-white: #fff;
  --gray-100: #f6f6f6;
  --gray-150: #f2f2f2;
  --gray-200: #ecece8;
  --gray-250: #c6c7c5;
  --gray-300: #7f7f7f;
  --gray-350: #6f6f6f;
  --gray-400: #576266;
  --gray-500: #40433e;

  --red: #ea4848;

  --highlight: #6a2851;
  --highlight-400: #885374;
  --highlight-gradient: linear-gradient(
    45deg,
    rgba(106, 40, 81, 1) 4%,
    rgba(159, 95, 134, 1) 160%
  );
  --highlight-shadow: inset 0px 2px 2px 0px rgba(70, 35, 57, 1);

  --font-primary: "Inter Tight", sans-serif;
}

body {
  background-color: var(--gray-200);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.3px;
}

body * {
  box-sizing: border-box;
  transition: 0.3s all linear;
}

body.blue {
  --highlight: #0077ed;
  --highlight-400: #1a85ef;

  --highlight-gradient: linear-gradient(
    45deg,
    rgba(0, 119, 237, 1) 4%,
    rgba(102, 173, 244, 1) 160%
  );
  --highlight-shadow: inset 0px 2px 2px 0px rgba(0, 71, 142, 1);
}

body.green {
  --highlight: #139c6b;
  --highlight-400: #42b089;
  --highlight-gradient: linear-gradient(
    45deg,
    rgba(19, 156, 107, 1) 4%,
    rgba(90, 186, 151, 1) 160%
  );
  --highlight-shadow: inset 0px 2px 2px 0px rgba(11, 94, 64, 1);
}

.background {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 480px;
  top: 0;
  left: 0;
  display: flex;
  flex-grow: 1;
  z-index: -1;
}

.background div {
  position: absolute;
  border-radius: 100%;
  height: 0;
  filter: blur(96px);
}

.background div:nth-child(1) {
  width: 50%;
  height: 880px;
  left: 0;
  top: 40%;
  transform: translateX(-20%) translateY(-100%);
}

.background div:nth-child(3) {
  width: 64%;
  height: 480px;
  left: 50%;
  top: 25%;
  transform: translateX(-50%) translateY(-60%);
}

.background div:nth-child(2) {
  width: 40%;
  height: 880px;
  right: 0;
  top: -35%;
  transform: translateX(20%) translateY(-60%);
  opacity: 0.2;
}

/* blue */

.blue .background div:nth-child(1) {
  background: linear-gradient(132deg, #29c5f5 0%, #29c5f5 100%);

  --inop: 0.14;
  opacity: var(--inop);
}

.blue .background div:nth-child(3) {
  background: linear-gradient(132deg, #0082ff 0%, #0082ff 100%);

  --inop: 0.12;
  opacity: var(--inop);
}

.blue .background div:nth-child(2) {
  background: linear-gradient(132deg, #46d4ff 0%, #46d4ff 100%);

  --inop: 0.2;
  opacity: var(--inop);
}

/* purple */

.purple .background div:nth-child(1) {
  background: linear-gradient(132deg, #ed1697 0%, #ed1697 100%);

  --inop: 0.08;
  opacity: var(--inop);
}

.purple .background div:nth-child(3) {
  background: linear-gradient(132deg, #592fcf 0%, #592fcf 100%);

  --inop: 0.08;
  opacity: var(--inop);
}

.purple .background div:nth-child(2) {
  background: linear-gradient(132deg, #ff8b79 0%, #ff8b79 100%);

  --inop: 0.1;
  opacity: var(--inop);
}

/* green */

.green .background div:nth-child(1) {
  background: linear-gradient(132deg, #46ff4e 0%, #46ff4e 100%);

  --inop: 0.12;
  opacity: var(--inop);
}

.green .background div:nth-child(3) {
  background: linear-gradient(132deg, #81f7ff 0%, #81f7ff 100%);

  --inop: 0.16;
  opacity: var(--inop);
}

.green .background div:nth-child(2) {
  background: linear-gradient(132deg, #03f69f 0%, #03f69f 100%);

  --inop: 0.14;
  opacity: var(--inop);
}

/* animation */

.background.animate div:nth-child(1) {
  animation: first-fade 0.8s linear forwards;
}

.background.animate div:nth-child(3) {
  animation: second-fade 0.8s linear forwards 0.2s;
}

.background.animate div:nth-child(2) {
  animation: third-fade 0.8s linear forwards 0.4s;
}

@keyframes first-fade {
  0% {
    opacity: var(--inop);
    filter: blur(96px) contrast(100%) saturate(100%);
  }

  30% {
    opacity: 0.02;
    filter: blur(96px) contrast(200%) saturate(240%);
  }

  60% {
    opacity: 0.02;
    filter: blur(96px) contrast(200%) saturate(240%);
  }

  100% {
    opacity: var(--inop);
    filter: blur(96px) contrast(100%) saturate(100%);
  }
}

@keyframes second-fade {
  0% {
    opacity: var(--inop);
  }

  30% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: var(--inop);
  }
}

@keyframes third-fade {
  0% {
    opacity: var(--inop);
    filter: blur(96px) contrast(100%) saturate(100%);
  }

  30% {
    opacity: 0.02;
    filter: blur(96px) contrast(200%) saturate(240%);
  }

  60% {
    opacity: 0.02;
    filter: blur(96px) contrast(200%) saturate(240%);
  }

  100% {
    opacity: var(--inop);
    filter: blur(96px) contrast(100%) saturate(100%);
  }
}

.controls {
  top: 200px;
  left: 50px;
  position: absolute;
}

/* LAYOUT */

header {
  width: 100%;
  margin: 40px 0 64px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

header .logo {
  display: flex;
}

header .app-logo {
  background-color: var(--gray-500);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
}

header .app-jump {
  margin-left: 10px;
}

header .app-jump a {
  display: inline-block;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 14px;
  text-decoration: none;
  background-color: rgba(242, 242, 242, 0.8);
  padding: 8px 8px 8px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2);
}

header .app-jump a span {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  background-color: rgba(221, 221, 221, 0.9);
  display: inline-block;
  margin-left: 11px;
  border-radius: 4px;
}

header .app-jump a:hover {
  background-color: rgba(242, 242, 242, 1);
}

header .app-logo:hover {
  background-color: var(--highlight);
}

header .account {
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

header .account .profile {
  position: relative;
}

header .account .profile > a {
  width: 40px;
  height: 40px;
  color: var(--all-white);
  text-decoration: none;
  background-color: var(--gray-500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .account .profile > a:hover {
  background-color: var(--highlight);
}

header .account .profile > a:active {
  transform: scale(0.94);
}

header .account .profile.open > a {
  background-color: var(--highlight);
  transform: scale(0.94);
}

header .account .profile .account-menu {
  position: absolute;
  top: 110%;
  right: 0;
  transform-origin: top right;
  padding: 8px;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px, rgba(0, 0, 0, 0.05) 0px 2px 4px,
    rgba(0, 0, 0, 0.05) 0px 4px 8px, rgba(0, 0, 0, 0.05) 0px 8px 16px,
    rgba(0, 0, 0, 0.05) 0px 16px 32px, rgba(0, 0, 0, 0.05) 0px 32px 64px;

  transform: scale(0.01);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.47, 1.64, 0.41, 0.8);

  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

header .account .profile.open .account-menu {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

header .account .profile .account-menu a {
  display: flex;
  align-items: center;
  font-weight: 500;
  padding: 12px 16px 12px 12px;
  text-decoration: none;
  font-size: 16px;
  color: var(--gray-500);
  border-radius: 6px;
  width: 100%;
}

header .account .profile.open .account-menu a:hover,
header .account .profile .account-menu li.person > div:hover {
  background-color: var(--gray-200);
}

header .account .profile.open .account-menu a:active,
header .account .profile .account-menu li.person > div:active {
  transform: scale(0.98);
}

header .account .profile .account-menu li {
  margin-bottom: 4px;
}

header .account .profile .account-menu li:last-child {
  margin-bottom: 0;
}

header .account .profile .account-menu li.signout a {
  color: var(--red);
}

header .account .profile .account-menu a svg {
  margin-right: 12px;
}

header .account .profile .account-menu li.person .avatar img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 50%;
  vertical-align: middle;
}

header .account .profile .account-menu li.person > div {
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;

  display: flex;
  align-items: center;
  padding: 12px 16px 16px 12px;
  color: var(--gray-500);
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

header .account .profile .account-menu li.person .info {
  display: flex;
  flex-wrap: wrap;
}

header .account .profile .account-menu li.person .name {
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  margin: 0 0 4px 0;
}

header .account .profile .account-menu li.person .org {
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

header .account .teams {
  margin: 0 12px 0 0;
}

header .account .teams a {
  display: inline-block;
  font-weight: 600;
  color: var(--color-gray);
  text-decoration: none;
  position: relative;
  background-color: transparent;
  padding: 12px 12px 12px 40px;
  border-radius: 8px;
}

header .account .teams a:before {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  left: 12px;
  top: 8px;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("img/teams.svg");
}

header .account .teams a:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

header .account .teams a:active,
header .app-jump a:active {
  transform: scale(0.96);
}

.app-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
}

.navigation,
.subnav {
  background: radial-gradient(
    ellipse at 50% 100px,
    rgba(250, 247, 244, 0.2),
    rgba(250, 247, 244, 0.95)
  );
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: 48px;
  box-shadow: inset 0px -1px 1px 0px #fff, 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
}

.navigation {
  margin: 0 auto 24px;
  width: 460px;
  padding: 8px 10px;
}

.subnav {
  margin: 0 auto;
  width: fit-content;
  padding: 5px;
}

.navigation ul,
.subnav ul {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.navigation ul li {
  text-decoration: none;
  color: var(--gray-500);
  font-weight: 500;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all 0.4s linear;
}

.subnav ul li {
  text-decoration: none;
  color: var(--gray-500);
  font-weight: 600;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.4s linear;
}

.navigation ul li:not(.selected):hover {
  color: var(--gray-350);
  opacity: 0.9;
}

.navigation ul li:not(.selected):hover svg {
  stroke: #777;
  opacity: 0.9;
}

#mainnav .item.disabled,
#mainnav .item.selected {
  pointer-events: none;
}

.navigation ul .indicator {
  background: linear-gradient(
    135deg,
    rgba(245, 243, 239, 1) 4%,
    rgba(255, 255, 255, 1) 160%
  );
  border-radius: 24px;
  box-shadow: inset 0px -1px 0px 0px #fff,
    inset 0px 1px 2px 0px rgba(0, 0, 0, 0.4);

  position: absolute;
  min-width: 40px;
  left: 0;
  top: 0;
  z-index: 1;

  transition: all 0.52s cubic-bezier(0.47, 1.64, 0.41, 0.8);
  box-sizing: content-box;
}

.subnav ul .indicator {
  background: var(--highlight-gradient);
  border-radius: 24px;
  box-shadow: var(--highlight-shadow);
  color: var(--all-white);
  position: absolute;
  z-index: 1;

  min-width: 40px;
  transition: all 0.4s cubic-bezier(0.47, 1.64, 0.41, 0.8);
  box-sizing: content-box;
}

.navigation ul li svg {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  pointer-events: none;
}

.navigation ul li svg {
  stroke: var(--gray-500);
}

.subnav ul li.selected {
  color: var(--all-white);
}

.title-wrapper {
  display: flex;
  justify-content: space-between;
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 500;
  color: var(--gray-500);
}

.title-wrapper .screen-title .selectable {
  color: var(--highlight);
  font-weight: 600;
  position: relative;
  cursor: pointer;
}

.title-wrapper .screen-title .selectable:before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 106%;
  height: 106%;
  top: -3%;
  left: -3%;
  background-color: var(--all-white);
  z-index: -1;
  border-radius: 8px;
  opacity: 0;
  transition: all 0.32s ease-in-out;
}

.title-wrapper .screen-title .selectable:hover:before,
.title-wrapper .screen-title .selectable:active:before,
.title-wrapper .screen-title.open .selectable:before {
  opacity: 0.6;
}

.switcher-list {
  position: absolute;
  top: 110%;
  left: 50%;
  transform-origin: top center;
  padding: 0 8px 8px;
  border-radius: 8px;
  width: 106%;
  min-width: max-content;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px, rgba(0, 0, 0, 0.05) 0px 2px 4px,
    rgba(0, 0, 0, 0.05) 0px 4px 8px, rgba(0, 0, 0, 0.05) 0px 8px 16px,
    rgba(0, 0, 0, 0.05) 0px 16px 32px, rgba(0, 0, 0, 0.05) 0px 32px 64px;
  transform: translatex(-50%) scale(0.01);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.47, 1.64, 0.41, 0.8);
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

.screen-title.open .switcher-list {
  transform: translatex(-50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.switcher-list .menu-title {
  font-size: 12px;
  text-decoration: none;
  color: var(--gray-500);
  display: inline-block;
  padding: 0 16px 8px 8px;
}

.switcher-list ul li a {
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--gray-500);
  padding: 8px 16px 8px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.switcher-list ul li a:hover {
  background-color: var(--gray-250);
}

.switcher-list ul li a:active {
  transform: scale(0.98);
}

.switcher-list ul li img,
.switcher-list ul li svg {
  display: inline-block;
  margin: 0 7px 0 0;
}

.calendar-wrapper {
  background-color: var(--gray-150);
  border-radius: 8px;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.25);
  margin: 0 0 40px 0;
  padding: 16px 22px;
}

.calendar-wrapper .calendar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.calendar-wrapper .calendar .months {
  flex-basis: 70%;
}

.calendar-wrapper .calendar .months ul {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.calendar-wrapper .calendar .months ul li {
  padding: 10px 12px;
  color: var(--gray-500);
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  z-index: 2;
  cursor: pointer;
}

.calendar-wrapper .calendar .months ul li.selected {
  color: var(--all-white);
}

.calendar-wrapper .calendar .months ul li.disabled {
  cursor: crosshair;
  pointer-events: none;
  color: var(--gray-300);
}

.calendar-wrapper .calendar .months ul .indicator {
  background: var(--highlight);
  border-radius: 6px;
  position: absolute;
  z-index: 1;

  min-width: 20px;
  transition: all 0.32s ease-in-out;
  box-sizing: content-box;
}

.calendar-wrapper .calendar .days {
  flex-basis: 100%;
  margin: 16px 0 0 0;
}

.calendar-wrapper .calendar .days ul {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.calendar-wrapper .calendar .days ul li {
  padding: 8px 10px;
  color: var(--gray-500);
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  z-index: 2;
  cursor: pointer;
}

.calendar-wrapper .calendar .days ul li.selected {
  color: var(--all-white);
  /* background: var(--highlight); */
}

.calendar-wrapper .calendar .days ul li.disabled {
  cursor: not-allowed;
  pointer-events: none;
  color: var(--gray-300);
}

.calendar-wrapper .calendar .days ul .indicator {
  background: var(--highlight);
  border-radius: 6px;
  position: absolute;
  z-index: 1;

  min-width: 5px;
  transition: all 0.32s ease-in-out;
  box-sizing: content-box;
}

.calendar-wrapper .calendar .years {
  display: flex;
  align-items: center;
}

.calendar-wrapper .calendar .years .today {
  display: inline-block;
  margin: 0 16px 0 0;
  text-decoration: none;
  color: var(--highlight);
  font-weight: 600;
}

.calendar-wrapper .calendar .years .year-select {
  background-color: var(--highlight);
  color: var(--all-white);
  font-weight: 500;
  padding: 10px 12px;
  display: inline-block;
  cursor: pointer;
}

.calendar-wrapper .calendar .years .year-select span {
  display: inline-block;
}

.calendar-wrapper .calendar .years button {
  border: 0;
  background-color: var(--highlight);
  padding: 8px;
  height: 36px;
  transition: 0.3s all linear;
  cursor: pointer;
}

.calendar-wrapper .calendar .years button:hover,
.calendar-wrapper .calendar .years .year-select:hover {
  background-color: var(--highlight-400);
}

.calendar-wrapper .calendar .years .year-select:active span {
  transform: scale(0.96);
}

.calendar-wrapper .calendar .years button:active svg {
  transform: scale(0.9);
}

.calendar-wrapper .calendar .years button.prev {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.calendar-wrapper .calendar .years button.next {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

ul .indicator {
  opacity: 0;
  animation: fade-in 0.4s linear forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* TABLE FLEX */

.table-container {
  display: flex;
  flex-flow: column nowrap;
  font-size: 14px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  margin-bottom: 64px;
}

.table-container.even {
  background-color: var(--gray-150);
}

.table-container.odd {
  background-color: var(--all-white);
}

.table-head,
.table-foot,
.table-body {
  position: relative;
  z-index: 1;
}

.table-row {
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
}

.table-head {
  display: flex;
  flex-flow: row nowrap;
  background-color: var(--gray-400);
  text-align: left;
  color: var(--all-white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.table-head .cell {
  background-color: var(--gray-400);
  padding: 20px 0;
  text-align: left;
  color: var(--all-white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.table-head:before {
  content: "";
  background-color: var(--gray-400);
  bottom: -10px;
  left: 0;
  height: 10px;
  width: 10px;
  position: absolute;
  z-index: -1;
}

.table-head:after {
  content: "";
  background-color: var(--gray-400);
  bottom: -10px;
  right: 0;
  height: 10px;
  width: 10px;
  position: absolute;
  z-index: -1;
}

.table-head span {
  position: relative;
}

.table-head .name span:before,
.table-head .clockintime span:before,
.table-head .clockouttime span:before,
.table-head .totaltime span:before,
.table-head .leavetype span:before,
.table-head .leaveend span:before {
  content: "";
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 3px 4px 3px;
  border-color: transparent transparent #a2a4a7 transparent;
  top: 2px;
  right: -12px;
  position: absolute;
}

.table-head .name span:after,
.table-head .clockintime span:after,
.table-head .clockouttime span:after,
.table-head .totaltime span:after,
.table-head .leavetype span:after,
.table-head .leaveend span:after {
  content: "";
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 4px 3px 0 3px;
  border-color: #a2a4a7 transparent transparent transparent;
  top: 8px;
  right: -12px;
  position: absolute;
}

.table-head .clockintime span:before,
.table-head .leavetype span:before {
  border-color: transparent transparent var(--all-white) transparent;
}

.table-head .cell.clockintime,
.timesheet-team .table-row .cell:nth-child(3),
.timesheet-person .table-row .cell:nth-child(2) {
  width: 140px;
  flex: none;
}

.timesheet-person .table-row .cell.timeoff {
  width: auto;
}

.table-head .cell.clockouttime,
.timesheet-team .table-row .cell:nth-child(4),
.timesheet-person .table-row .cell:nth-child(3) {
  width: 120px;
  flex: none;
}

.table-head .cell.totaltime,
.timesheet-team .table-row .cell:nth-child(5),
.timesheet-person .table-row .cell:nth-child(4) {
  width: 96px;
  flex: none;
}

.table-head .cell.leavetype,
.onleave .table-row .cell:nth-child(3) {
  width: 140px;
  flex: none;
}

.table-head .cell.leaveend,
.onleave .table-row .cell:nth-child(4) {
  width: 110px;
  flex: none;
}

.table-head .cell:first-child {
  padding-left: 30px;
}

.table-body .table-row:first-of-type,
.table-head {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.table-body .table-row:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.table-body .table-row:first-child .cell:first-child,
.table-head .cell:first-child {
  border-top-left-radius: 8px;
}

.table-body .table-row:first-child .cell:last-child,
.table-head .cell:last-child {
  border-top-right-radius: 8px;
}

.table-body .table-row:last-child .cell:first-child,
.table-foot {
  border-bottom-left-radius: 8px;
}

.table-body .table-row:last-child .cell:last-child,
.table-foot {
  border-bottom-right-radius: 8px;
}

.table-body .table-row:nth-child(even) .cell {
  background-color: var(--all-white);
}

.table-body .table-row:nth-child(odd) .cell {
  background-color: var(--gray-100);
}

.table-body .cell {
  display: flex;
  flex: 1;
  font-size: 14px;
  justify-content: left;
  align-items: center;
  padding: 20px 0;
  font-weight: 600;
}

.timesheet-person .table-body .cell {
  padding: 24px 0;
}

.timesheet-team .table-body .table-row .cell:first-of-type,
.onleave .table-body .table-row .cell:first-of-type {
  padding: 18px 0 18px 30px;
  max-width: 80px;
}

.timesheet-person .table-body .table-row .cell:first-of-type {
  padding-left: 30px;
}

.table-head .cell:last-child,
.table-body .table-row .cell:last-child {
  padding-right: 30px;
}

.monogram {
  background-color: var(--gray-300);
  color: #fff;
  font-size: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 41px;
  font-weight: 600;
}

.table-body .table-row .cell.avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--all-white);
}

.table-body .table-row {
  /*  transition: all 0.32s cubic-bezier(0.4, 0, 0.6, 1); */
  transition: all 0.32s linear;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0),
    0px 15px 25px 0px rgba(0, 0, 0, 0);
}

.table-body .table-row:hover {
  transform: scale(1.008);
  /* transition: all 0.32s cubic-bezier(0.4, 0, 0.6, 1); */
  transition: all 0.32s linear;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2),
    0px 15px 25px 0px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  cursor: pointer;
  border-radius: 6px;
}

.table-body .table-row:nth-child(even).week:hover {
  border-bottom: 2px solid var(--all-white);
}

.table-body .table-row:nth-child(odd).week:hover {
  border-bottom: 2px solid var(--gray-100);
}

.table-body .table-row:active {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15),
    0px 10px 16px 0px rgba(0, 0, 0, 0.1);
  transform: scale(1.006);
}

.table-body .table-row:hover .cell:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.table-body .table-row:hover .cell:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.table-body .table-row.week {
  border-bottom: 2px solid var(--gray-300);
}

.table-body .table-row:hover .blink {
  animation: 1.5s blinking ease-in-out infinite;
}

@keyframes blinking {
  0% {
    opacity: 1;
  }

  10% {
    opacity: 1;
  }

  50% {
    opacity: 0.1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

.table-row .cell .clockin,
.table-row .cell .clockout,
.table-row .cell .total,
.table-row .cell .enddate {
  position: relative;
  display: inline-block;
  font-weight: 600;
  margin-left: 26px;
}

.table-row .cell .clockin:before,
.table-row .cell .clockout:before,
.table-row .cell .total:before,
.table-row .cell .enddate:before {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  left: -28px;
  top: -6px;
  background-repeat: no-repeat;
  background-position: center center;
}

.table-row .cell .clockin:before {
  background-image: url("img/clockin.svg");
}

.table-row .cell .clockout:before {
  background-image: url("img/clockout.svg");
}

.table-row .cell .total:before {
  background-image: url("img/clock-total.svg");
}

.table-row .cell .enddate:before {
  background-image: url("img/calendar.svg");
}

.table-foot .pagination {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  height: 60px;
}

.timesheet-person .table-foot {
  display: flex;
  justify-content: space-between;
  padding: 24px 30px;
  font-weight: 500;
}

.cell {
  display: flex;
  flex: 1;
  font-size: 14px;
  padding: 8px 0;
  justify-content: left;
  align-items: center;
}

@keyframes activeDot {
  0%,
  100% {
    transform: scaleY(1);
  }
  25% {
    transform: scaleY(0.75);
  }
}
@keyframes inactiveDot {
  0%,
  100% {
    transform: scaleX(1) scaleY(1);
  }
  25% {
    transform: scaleX(0.85) scaleY(1.25);
  }
}
@keyframes chevronEnterFirst {
  0% {
    opacity: 0;
    transform: rotate(0);
  }
  100% {
    transform: rotate(45deg);
  }
}
@keyframes chevronEnterSecond {
  0% {
    opacity: 0;
    transform: rotate(0);
  }
  100% {
    transform: rotate(-45deg);
  }
}

.pagination:hover button {
  display: block;
  opacity: 0.8;
}

.pagination ul {
  display: flex;
  padding: 0;
  gap: 0.1rem;
  list-style: none;
  margin: 0 auto;
  min-height: 40px;
  align-items: center;
}

.pagination ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
  cursor: pointer;
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.pagination ul li::before {
  content: "";
  display: block;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 0.25rem;
  background: var(--gray-500);
  transform-origin: 50% 50%;
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.2s ease-out,
    opacity 0.2s ease-out;
  opacity: 0.3;
}

.pagination:hover ul li::before {
  opacity: 0.5;
}

.pagination ul li[active] {
  width: 3rem;
}

.pagination ul li[active]::before {
  width: 1.25rem;
  animation: activeDot 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 1;
}

.pagination ul li:not([active])::before {
  animation: inactiveDot 0.6s ease backwards;
}

.pagination ul li:not([active]):hover::before {
  opacity: 0.75;
}

.pagination button {
  display: none;
  position: relative;
  height: 100%;
  width: 10%;
  padding: 0;
  border: none;
  background: transparent;
  appearance: none;
  cursor: pointer;
  transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.pagination button:hover {
  opacity: 1;
  /*background-color: var(--gray-200);*/
}
.pagination button:active {
  opacity: 0.8;
}

.pagination button:active::before {
  transform: rotate(35deg) scale(0.85);
}

.pagination button:active::after {
  transform: rotate(-35deg) scale(0.85);
}

.pagination button::before,
.pagination button::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  height: 2px;
  width: 10px;
  border-radius: 3px;
  background: var(--gray-500);
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.pagination button:before {
  transform: rotate(45deg);
  animation: chevronEnterFirst 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pagination button:after {
  transform: rotate(-45deg);
  animation: chevronEnterSecond 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pagination button.prev::before,
.pagination button.prev::after {
  left: 30px;
  transform-origin: 0% 50%;
}

.pagination button.next::before,
.pagination button.next::after {
  right: 30px;
  transform-origin: 100% 50%;
}

h2 {
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 32px 0;
}

.table-container.onleave {
  margin-bottom: 80px;
}

footer {
  max-width: 320px;
  margin: 80px auto;
  font-size: 14px;
  font-weight: 600;
}

footer .help {
  text-align: center;
  margin: 0 0 16px 0;
}

footer .help a {
  display: inline-block;
  text-decoration: none;
  color: var(--gray-500);
  line-height: 20px;
}

footer .help a:hover {
  color: var(--gray-350);
}

footer .help a img {
  vertical-align: bottom;
}

footer .status {
  text-align: center;
  margin: 0 0 8px 0;
}

footer .version {
  text-align: center;
  color: var(--gray-350);
}

footer .status a {
  padding: 8px 12px;
  border-radius: 16px;
  background-color: var(--gray-100);
  color: var(--gray-350);
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
}

footer .status a:hover {
  background-color: var(--all-white);
}

footer .status a .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #7abe80;
  box-sizing: content-box;
  border: 3px solid #c7f6cb;
  vertical-align: bottom;
  margin-right: 5px;
}

.jump-wrapper {
  position: fixed;
  left: 50%;
  top: 15%;
  transform: translatex(-50%);
  z-index: 99;
  display: none;

  perspective: 1000px;
  perspective-origin: 50% -50%;
}

.jump-open .jump-wrapper,
.jump-closed .jump-wrapper {
  display: block;
}

.jump-closed .jump-wrapper .jump-outline {
  animation: jump-out 0.32s ease-in-out forwards;
  pointer-events: none;
}

@keyframes jump-out {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(300px);
    opacity: 0;
  }
}

.jump-wrapper .jump-outline {
  box-shadow: 0 6px 14px 10px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);

  transform: translateZ(-250px) translateY(300px);
  animation: jump-in 0.52s ease-in-out forwards;
  opacity: 0;
}

.jump {
  width: 560px;
  height: 480px;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  outline: 10px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

@keyframes jump-in {
  0% {
    transform: translateZ(-250px) translateY(300px);
    opacity: 0;
  }

  50% {
    transform: translateZ(20px) translateY(-20px);
    opacity: 0.8;
  }

  75% {
    transform: translateZ(-10px) translateY(10px);
    opacity: 0.9;
  }

  100% {
    transform: translateZ(0) translateY(0px);
    opacity: 1;
  }
}

.jump .field {
  position: relative;
}

.jump .jumpfield {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 15px;
  padding: 20px 60px 20px 28px;
  font-weight: 500;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border: 0;
  background-color: transparent;
  border-bottom: 1px solid #bebebe;
}

.jump .field button {
  position: absolute;
  width: 64px;
  height: 100%;
  right: 0;
  top: 0;
  border-top-right-radius: 16px;
  border: 0;
  background-color: transparent;
}

.jump .field button svg {
  stroke: var(--highlight);
}

.jump .field button:hover svg {
  stroke: var(--gray-500);
}

.jump .results {
  width: 100%;
  height: 400px;
  overflow-y: scroll;
}

.jump .results {
  padding: 28px 10px 52px 10px;
}

.jump .results .section {
  margin: 0 0 24px 0;
}

.jump .results .section .title {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
  margin: 0 0 16px 18px;
}

.jump .results .section ul li {
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  margin: 0 0 2px 0;
}

strong {
  font-weight: 600;
}

.jump .results .section ul li.selected,
.jump .results .section ul li:hover {
  background-color: rgba(198, 199, 197, 0.7);
  cursor: pointer;
}

.jump .results .section ul li svg {
  stroke: var(--gray-500);
}

.jump .controls {
  position: fixed;
  width: 100%;
  background-color: vaR(--gray-100);
  bottom: 0;
  left: 0;
  top: auto;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  display: flex;
  justify-content: space-between;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  border-top: 1px solid #bebebe;
}

.jump .controls .navigate,
.jump .controls .open,
.jump .controls .close-jump {
  display: flex;
}

.jump .controls .navigate,
.jump .controls .open {
  align-items: center;
  margin: 0 24px 0 0;
}

.jump .controls .close-jump {
  align-items: center;
  justify-content: flex-end;
}

.jump .controls .key {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  margin: 0 8px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jump .controls .open {
  margin-right: auto;
}

.jump .controls .close-jump .key {
  width: 32px;
}

.jump .controls .navigate .key svg,
.jump .controls .open .key svg {
  stroke: var(--highlight);
}

.jump .controls .close-jump .key svg {
  fill: var(--highlight);
}

.blur {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 90;
  backdrop-filter: blur(3px);

  opacity: 0;
  transition: all 0.3s linear;
  pointer-events: none;
}

body.jump-open {
  overflow: hidden;
}

.jump-open .blur {
  opacity: 1;
  transition: all 0.3s linear;
  pointer-events: all;
}

/* TEAMS DISPLAY */

.teams-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0 0 80px 0;
}

.team-container {
  border-radius: 8px;
  box-shadow: inset 0px -1px 1px 0px #fff, 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
  background-color: var(--gray-100);
  flex-basis: 22%;
  padding: 48px 0 32px 0;
  margin: 0 4% 4% 0;
}

.member-container {
  border-radius: 8px;
  box-shadow: inset 0px -1px 1px 0px #fff, 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
  background-color: var(--gray-100);
  flex-basis: 22%;
  padding: 28px 0 32px 0;
  margin: 0 4% 4% 0;
}

.team-container:nth-child(4n),
.member-container:nth-child(4n) {
  margin: 0 0 4% 0;
}

.team-container .members,
.member-container .member-photo {
  text-align: center;
  margin: 0 0 16px 0;
}

.team-container .members ul {
  display: flex;
  width: 100%;
  justify-content: center;
}

.members ul li {
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: all 0.2s linear;
  will-change: margin;
}

.members ul li:first-child {
  z-index: 2;
}

.members ul li:nth-child(2) {
  z-index: 1;
}

.members ul li:nth-child(3) {
  z-index: 0;
}

.members ul li:nth-child(n + 2) {
  margin-left: -20px;
}

.members ul li img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--all-white);
}

.member-photo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--all-white);
}

.team-name {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--highlight);
  margin: 0 0 8px 0;
}

.total-members,
.member-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  text-align: center;
}

.team-container:hover,
.member-container:hover {
  box-shadow: inset 0px -1px 1px 0px #fff, 0px 4px 4px 0px rgba(0, 0, 0, 0.2),
    0px 15px 25px 0px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.team-container:active,
.member-container:active {
  box-shadow: inset 0px -1px 1px 0px #fff, 0px 4px 4px 0px rgba(0, 0, 0, 0.15),
    0px 10px 16px 0px rgba(0, 0, 0, 0.1);
  transform: scale(0.98);
}

.team-container:hover .members ul li:nth-child(n + 2) {
  margin-left: -10px;
}

.tocal-wrapper {
  background-color: var(--gray-150);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 1px 1px 0px;
  border-radius: 8px;
  margin: 0px 0px 40px;
  padding: 24px;
}

.tocal-wrapper .cal-days {
  display: flex;
}

.tocal-wrapper.seven-days .cal-days .day,
.tocal-wrapper.seven-days .cal-dates .date {
  flex-basis: calc(100% / 7);
  max-width: calc(100% / 7);
}

.tocal-wrapper.five-days .cal-days .day,
.tocal-wrapper.five-days .cal-dates .date {
  flex-basis: 20%;
  max-width: 20%;
}

.tocal-wrapper .cal-dates {
  display: flex;
  flex-wrap: wrap;
}

.tocal-wrapper .cal-days .day {
  font-weight: 600;
  font-size: 20px;
  color: var(--gray-500);
  padding: 0 0 20px 0;
  border-bottom: 2px solid var(--gray-300);
  margin: 0 0 12px 0;
}

.tocal-wrapper .cal-dates .date {
  padding: 12px 0 0 0;
  min-height: 120px;
  border-bottom: 1px solid var(--gray-250);
}

.tocal-wrapper .cal-dates .date.today span {
  position: relative;
  color: var(--highlight);
  font-weight: 700;
}

.tocal-wrapper .cal-dates .date span {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-500);
  display: block;
  margin: 0 0 8px 0;
}

.tocal-wrapper .cal-dates .date.other span {
  color: var(--gray-250);
}

.tocal-wrapper .cal-dates .date .time-off {
  background-color: var(--highlight);
  color: var(--all-white);
  font-size: 14px;
  padding: 6px 8px;
  font-weight: 600;
  margin: 1px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tocal-wrapper .cal-dates .date .time-off.begin {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.tocal-wrapper .cal-dates .date .time-off.end {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.tocal-wrapper .cal-dates .date .time-off.clear {
  background-color: transparent;
}

.tocal-wrapper .cal-dates .date .time-off:last-child {
  margin: 0 0 8px 0;
}
