@font-face {
  font-family: "Oately";
  src: local("Oately-BoldDisplay"),
    url("https://css.justworks.com/fonts/Oately-BoldDisplay.woff2")
      format("woff2"),
    url("https://css.justworks.com/fonts/Oately-BoldDisplay.woff")
      format("woff"),
    url("https://css.justworks.com/fonts/Oately-BoldDisplay.ttf") format("ttf");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Oately";
  src: local("Oately-Bold"),
    url("https://css.justworks.com/fonts/Oately-Bold.woff2") format("woff2"),
    url("https://css.justworks.com/fonts/Oately-Bold.woff") format("woff"),
    url("https://css.justworks.com/fonts/Oately-Bold.ttf") format("ttf");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Oately";
  src: local("Oately"),
    url("https://css.justworks.com/fonts/Oately-Regular.woff2") format("woff2"),
    url("https://css.justworks.com/fonts/Oately-Regular.woff") format("woff"),
    url("https://css.justworks.com/fonts/Oately-Regular.ttf") format("ttf");
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 64rem;
  font-family: Oately, sans-serif;
  color: #1c1d1f;
  margin: 2rem auto;
  padding: 0 1rem;
}

h2 {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.5rem;
  margin: 0;
  margin-bottom: 1.5rem;
}

.list {
  display: flex;
  flex-flow: column nowrap;
  list-style-type: none;
  gap: 1rem;
  padding: 0;
}

.list-item {
  position: relative;
  border: 1px solid #d9dce1;
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-flow: row nowrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.main-action,
.main-action:hover {
  color: #1c1d1f;
  font-weight: bold;
  text-decoration: none;
}

.main-action::after {
  content: '';
  position: absolute;
  inset: 0;
}

.list-item a:not(.main-action),
.list-item abbr:not(.main-action) {
  position: relative;
}

abbr {
  cursor: help;
}

a {
  text-decoration: none;
  color: #0070d4;
}

a:hover {
  color: #0e57b5;
  text-decoration: underline;
}

*:focus {
  outline: 2px solid #0092f6;
  border-radius: 0.25rem;
  outline-offset: 2px;
}

.title {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #5e6167;
}

section + section {
  margin-top: 4rem;
}

.metadata {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-flow: row wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.metadata li {
  display: flex;
  flex-flow: row nowrap;
  gap: 0.25rem;
  align-items: center;
}

.metadata i {
  color: #5e6167;
}

.actions {
  opacity: 0;
  position: relative;
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-flow: row nowrap;
  gap: 0.25rem;
  font-size: 1.25rem;
}

.list--pto-policies .actions {
  opacity: 1;
}

button {
  background-color: transparent;
  border: none;
  font-size: inherit;
  color: #0070d4;
  border-radius: 0.25rem;
  line-height: 1;
  padding: 0.5rem;
}

button:hover {
  background-color: rgba(82, 176, 255, 0.15);
}

button.destructive {
  color: #cb431d;
}

button.destructive:hover {
  background-color: rgba(251, 127, 89, 0.15);
}

.list-item a:focus {
  text-decoration: underline;
}

.list-item:focus-within a:focus {
  text-decoration: none;
}

.list-item:hover {
  background-color: #f7f8fb;
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: background-color 250ms;
}

/* If hovering one of the other interactive elements, don't change the background color of the list item */
.list-item:hover:has(button:hover, a:not(.main-action):hover, abbr:hover) {
  background-color: #fff;
}

.list-item p:last-child {
  margin-bottom: 0;
}

.list-item:hover .actions,
.actions:has(button:focus) {
  opacity: 1;
}

.list--documents .metadata {
  gap: 0.5rem 1.5rem;
}

abbr {
  text-wrap: nowrap;
}

.list--documents .actions {
  opacity: 1;
}

.list--documents .actions > li {
  opacity: 0;
}

.list--documents .actions > li:last-child {
  opacity: 1;
}

.list--documents .list-item:hover .actions > li,
.list--documents .actions:has(button:focus) > li {
  opacity: 1;
}

.list--documents .metadata {
  color: #5e6167;
}

.dialog--office {
  font-size: 0.875rem;
  margin: 0;
  padding: 1rem;
  position: fixed;
  inset: 0;
  z-index: var(--layer-important);
  border: 1px solid #dcd9e1;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dialog--office:focus {
  outline: none;
}

h3 {
  font-size: 1rem;
  line-height: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

address {
  font-style: normal;
}

.list--avatar-stack {
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 0;
  list-style-type: none;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  margin-left: -0.25rem;
}

.stack-overflow {
  margin-left: 0.625rem;
}

.list-item--avatar {
  margin-left: 0.25rem;
}

.stack-overflow > .list-item--avatar {
  margin-left: -0.625rem;
}

.list-item--endnote {
  color: #5e6167;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.avatar {
  border: 1px solid #fff;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #bbb;
  border-radius: 50%;
}

.avatar--blue {
  background-color: #b6e5ff;
}

.avatar--red {
  background-color: #ffcfc0;
}

.avatar--green {
  background-color: #98e2c5;
}

.avatar--yellow {
  background-color: #ffdb7b;
}

.avatar--purple {
  background-color: #e0d0ff;
}

.tag {
  display: block;
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #5e6167;
  border: 1px solid #d9dce1;
  font-weight: 500;
}

.list--pto-policies > .list-item {
  justify-content: flex-start;
  flex-flow: column nowrap;
  align-items: flex-start;
}



@media (min-width: 48rem) {
  .list--pto-policies > .list-item {
    flex-flow: row nowrap;
    align-items: center;
  }

  .list-item__pto-policy-id {
    flex: 1;
  }

  .list-item__pto-policy-attributes {
    flex: 2;
  }

  .list-item__pto-policy-actions {
    display: flex;
    justify-content: flex-end;
    flex: 0;
  }
}

dl {
  display: flex;
  flex-flow: row wrap;
  gap: 0.5rem 4rem;
}

dt {
  color: #5e6167;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

dd {
  font-size: 1rem;
  margin-left: 0;
}