.overlay {
  padding: 0px !important;
  position: unset;
}

#taskOverlay.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay.open .task-overlay-panel {
  transform: translateX(0);
}

#taskOverlay.overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

body.modal-open {
  overflow: hidden;
}

.task-overlay-panel {
  height: 870px;
  width: 1116px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  padding: 20px 10px 0px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transform: translateX(84vw);
  transition: transform 0.35s ease;
}

.task-overlay-panel.no-anim {
  transform: translateX(0) !important;
  transition: none !important;
}

#taskOverlay.no-fade {
  transition: none !important;
  animation: none !important;
}

.addTaskOverlayWrapper {
  display: flex;
  flex-direction: column;
  transition: padding-left 0.3s ease;
  padding-top: 44px;
}

.addTaskOverlayFooter {
  position: absolute;
  bottom: 64px;
  width: 977px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 5;
}

#taskOverlay .task-overlay-title {
  font-size: 40px;
  font-weight: 800;
  margin: 6px 0 18px;
}

#taskOverlay .task-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 1px minmax(360px, 1fr);
  column-gap: 32px;
  row-gap: 0;
  align-items: start;
}

#taskOverlay .task-divider {
  width: 1px;
  background: #e6e9ef;
  align-self: stretch;
  min-height: 340px;
}

#taskOverlay .task-col {
  display: flex;
  flex-direction: column;
  row-gap: 14px;
  padding: 2px 6px;
}

#taskOverlay .lbl {
  display: block;
  font-weight: 600;
  margin: 10px 0 6px;
}

#taskOverlay .req {
  color: var(--input-error);
  margin-left: 4px;
}

#taskOverlay .task-col .title,
#taskOverlay .task-col textarea.title,
#taskOverlay .task-col .dropdown-subtasks {
  width: 100%;
}

#taskOverlay textarea.title {
  height: 120px;
  resize: vertical;
}

#taskOverlay .prioDivsWrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#taskOverlay .prioGrade {
  width: auto;
}

#taskOverlay .task-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

#taskOverlay .task-required-hint {
  margin-top: 6px;
  color: #6b7280;
  font-size: 16px;
}

.task-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 6000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.task-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.task-modal {
  background: #fff;
  max-height: 94vh;
  border-radius: 30px;
  overflow: auto;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.16);
  position: relative;
  scrollbar-width: none;
  &::-webkit-scrollbar {
    display: none;
  }
}

.overlay-close {
  width: 33px;
  height: 33px;
  position: absolute;
  top: 52px;
  right: 36px;
  background-image: url(../assets/svg/cancel.svg);
  background-repeat: no-repeat;
  cursor: pointer;
}

.overlay-close:hover {
  background-image: url(../assets/svg/cancel_hover.svg);
}

.overlay-close:active {
  background-image: url(../assets/svg/cancel_clicked.svg);
}

.divInputTitleDescriptionDueDate {
  width: 100%;
}

#taskDetailOverlay .subtasks__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0px 18px;
  border-radius: 10px;
  width: max-content;
  max-width: 100%;
}

#taskDetailOverlay .subtasks__item:hover,
#taskDetailOverlay .subtasks__item:focus-within {
  background-color: #eeeeee;
}

.subtasks__item:hover .cb--checked {
  background-image: url(../assets/svg/checked_hover.svg);
}

.subtasks__item:hover .cb--unchecked {
  background-image: url(../assets/svg/checkbox_hover.svg);
}

#taskOverlay .task-overlay-panel::-webkit-scrollbar {
  display: none;
}

#taskOverlay.edit-mode .task-overlay-panel {
  width: 530px;
  padding-top: 0;
  height: 88vh;
  overflow: scroll;
}

#taskOverlay.edit-mode .divider,
#taskOverlay.edit-mode .hideDesktop,
#taskOverlay.edit-mode h1,
#taskOverlay.edit-mode .hideMobile,
#taskOverlay.edit-mode .requiredAsterisk,
#taskOverlay.edit-mode #category {
  display: none;
}

#taskOverlay.edit-mode .overlay-close {
  position: sticky;
  top: 0;
  width: 96%;
  background-color: white;
  background-position: right bottom;
  height: 70px;
  z-index: 5;
  width: 100%;
}

#taskOverlay.edit-mode .addTaskOverlayWrapper {
  padding-top: 0;
}

#taskOverlay.edit-mode .addTaskOverlayFooter {
  position: sticky;
  bottom: 0px;
  width: 100%;
  display: block;
  background: white;
  padding: 12px 0 40px 0;
}

#taskOverlay.edit-mode .addOrClear {
  justify-content: flex-end;
  padding-top: 5px;
  padding-right: 35px;
}

#taskOverlay.edit-mode .addOrClearBtn {
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2);
}

#taskOverlay.edit-mode .addTaskForm {
  justify-content: center;
  flex-wrap: wrap;
}

#taskOverlay.edit-mode .divInputTitleDescriptionDueDate {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#taskOverlay.edit-mode .addTaskErrors {
  align-self: flex-start;
  margin-left: 35px;
}

.task-overlay .task-modal {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
  will-change: transform, opacity;
}

.task-overlay.open .task-modal {
  transform: translateX(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .task-overlay .task-modal {
    transition: transform 300ms ease, opacity 300ms ease;
  }
}
