#edit-task-overlay {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  background-color: var(--overlay-background);
}

.task-large-edit {
  max-height: 90vh;
  width: 525px;
  background-color: white;
  box-shadow: 0px 0px 4px 1px lightgray;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 5;
}

.form-container {
  padding: 18px;
  padding-bottom: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.header {
  background-color: white;
  z-index: 10;
  padding: 18px;
  height: 36px;
}

.footer {
  position: sticky;
  bottom: 0;
  right: 0;
  background-color: white;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  z-index: 10;
}

.outer {
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.urgency-button {
  width: 100%;
  height: 56px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 10px;
  padding: 16px 10px 16px 10px;
  flex: 1;
  font-family: "Inter";
  font-size: 20px;
  line-height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 125ms ease-in-out;
}

.urgency-button svg {
  margin-left: 8px;
}

.urgency-button:hover {
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.urgent-button {
  background-color: white;
}

.urgent-active {
  background-color: #ff3d00;
  color: white;
  font-size: 21px;
  font-weight: 700;
}

.urgent-active svg path {
  fill: white;
}

.urgent-active:hover {
  box-shadow: none;
}

.medium-button {
  background-color: white;
}

.medium-active {
  background-color: rgba(255, 168, 0, 1);
  color: white;
  font-size: 21px;
  font-weight: 700;
}

.medium-active svg path {
  fill: white;
}

.medium-active:hover {
  box-shadow: none;
}

.low-button {
  background-color: white;
}

.low-active {
  background-color: rgba(122, 226, 41, 1);
  color: white;
  font-size: 21px;
  font-weight: 700;
}

.low-active svg path {
  fill: white;
}

.low-active:hover {
  box-shadow: none;
}

/* urgency selector buttons end */

/* inputfields */

label {
  margin-bottom: 8px;
  display: block;
}

.label-spacing {
  margin-top: 16px;
}

.inputfield-basic-design {
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  background-color: white;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
}

.inputfield-basic-design:focus {
  border: solid 1px;
  border-color: #29abe2;
  outline: none;
}

details:focus {
  border: solid 1px;
  border-color: #29abe2;
  outline: none;
}

::placeholder {
  font-family: "Inter", sans-serif;
  color: #d1d1d1;
}

.subtask-field {
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  background-color: white;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  padding-right: 8px;
  display: flex;
  align-items: center;
}

.subtask-field svg {
  height: 20px;
  width: 20px;
  padding: 8px;
  cursor: pointer;
}

.subtask-field div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.subtask-field div:hover {
  border-radius: 100px;
  border: none;
  background-color: #f0f0f0;
}

.subtask-field hr {
  height: 24px;
  width: 1px;
  background-color: #d1d1d1;
  border: none;
}

.subtask-field:focus-within {
  border: solid 1px;
  border-color: #29abe2;
  outline: none;
}

.subtasks-input {
  background-image: url("img/add-subtask-icon.png");
  background-position: right center;
  background-repeat: no-repeat;
  padding-right: 30px;
  flex: 1;
  cursor: pointer;
  margin: 0;
  outline: none;
  border: none;
  padding: 10px;
  border-radius: 10px;
}

.subtasks-input:is(:placeholder-shown) ~ div {
  display: none;
}

.subtasks-input:is(:placeholder-shown) ~ hr {
  display: none;
}

.subtasks-input:not(:placeholder-shown) {
  background-image: none;
}

.addedsubtasks {
  margin-left: 8px;
  margin-right: 8px;
  display: flex;
  flex-direction: column;
}

fieldset {
  border: 0;
  padding: 0;
  width: 100%;
}

fieldset legend {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

summary::-webkit-details-marker {
  display: none;
}

summary .summary-text {
  display: inline;
  transition: opacity 0.2s ease;
}

details[open] summary .summary-text {
  opacity: 0;
}

.cl-avatar-space {
  margin-right: 10px;
  margin-left: 0;
}

.required {
  color: red;
}

.assigned-person {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  margin-left: 10px;
}

.category-option {
  cursor: pointer;
  padding: 4px 0;
}

details {
  border: 1px solid #767676;
  border-radius: 3px;
  display: inline-flex;
  flex-direction: column;
  padding: 3px 6px;
  width: 100%;
}

details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

details summary::marker,
details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "\25BC";
  display: inline-block;
  font-size: 0.6rem;
  height: 1rem;
  line-height: 1rem;
  margin-left: 0.5rem;
  transition: transform 0.25s;
}

details[open] summary::after {
  transform: rotate(180deg);
}

details[open] summary {
  margin-bottom: 1rem;
}

details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

details li {
  display: flex;
  align-items: center;
  padding: 8px 8px;
  cursor: pointer;
}

details ul li:hover {
  background: #eee;
  border-radius: 10px;
}

.task-avatar {
  background-color: orange;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid white;
  border-radius: 100%;
  width: 36px;
  height: 36px;
  margin-left: 0px;
}

.cl-avatar-space {
  margin-right: 10px;
  margin-left: 0;
}

.assigned-person {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  margin-left: 10px;
}

.custom-checkbox {
  display: none;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-grow: 1;
  justify-content: flex-end;
  margin-bottom: 0;
}

.checkbox-icon {
  width: 19px;
  height: 18px;
  transition: all 0.3s ease;
}

.custom-checkbox:checked
  + .custom-checkbox-label
  .checkbox-icon
  svg
  .unchecked {
  display: none;
}

.custom-checkbox:checked + .custom-checkbox-label .checkbox-icon svg .checked {
  display: block;
}

.custom-checkbox + .custom-checkbox-label .checkbox-icon svg .checked {
  display: none;
}

.selected-contacts {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* category item */

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 5px;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

/* subtasks */

.addedsubtasks svg {
  height: 20px;
  width: 20px;
  cursor: pointer;
}

.subtask-icons hr {
  height: 24px;
  width: 1px;
  background-color: #d1d1d1;
  border: none;
}

.addedsubtasks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.addedsubtasks li:hover {
  background-color: #f0f0f0;
  border-radius: 10px;
}

.subtask-icons {
  opacity: 0;
  align-items: center;
  gap: 10px;
  display: flex;
  margin-right: 15px;
}

.subtask-icons svg {
  transition: transform 0.2s ease;
}

.subtask-icons svg:hover {
  transform: scale(1.1);
}

.addedsubtasks li:hover .subtask-icons {
  opacity: 1;
}

.edit-svg,
.delete-svg {
  cursor: pointer;
}

.subtask-input {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  background: none;
  font: inherit;
  color: inherit;
}

/*  */
.subtask-icons {
  display: none;
  gap: 10px;
  align-items: center;
  position: relative;
}

li:focus-within {
  border-bottom: 2px solid var(--brand-blue);
}

.subtask-input:focus {
  background-color: white;
}

li:hover .initial-icons {
  display: flex;
}

.add-delete-icons {
  display: flex;
  gap: 8px;
}

.add-delete-icons,
.initial-icons {
  display: none;
}

li .add-delete-icons {
  display: none;
}

li:hover .initial-icons .delete-svg {
  display: block;
}

.edit-svg,
.add-svg,
.delete-svg {
  width: 19px;
  height: 19px;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
}

.edit-svg {
  background-image: url("img/edit-icon.png");
}

.add-svg {
  background-image: url("img/check-icon.png");
}

.delete-svg {
  background-image: url("img/delete-icon.png");
}

.subtask-input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  padding: 10px;
  box-sizing: border-box;
}

.tl-close-btn {
  position: sticky;
  top: 0;
  right: 0;
  padding: 10px;
  cursor: pointer;
  display: flex;
  justify-content: flex-end;
  background-color: white;
  z-index: 10;
  margin-left: auto;
}

.sticky-button {
  position: sticky;
  bottom: 0;
  right: 0;
  cursor: pointer;
  z-index: 10;
  margin: 20px;
}

button {
  font-family: "Inter";
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  padding-block: 0;
  padding-inline: 0;
}

.tl-button-primary {
  background-color: rgba(42, 54, 71, 1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 16px 12px 16px;
  border: 1px;
  border-radius: 10px;
  width: 60px;
}

.tl-button-primary svg {
  fill: white;
}

.tl-button-primary-section {
  display: flex;
  justify-content: flex-end;
}

.tl-button-primary:hover {
  background-color: rgba(41, 171, 226, 1);
  cursor: pointer;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.3);
}

/* scrollbar */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: white;
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 168, 168, 1);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7e7e7e;
}

@media (max-width: 540px) {
  .task-large-edit {
    width: calc(100% - 8px);
  }

  .addedsubtasks {
    padding-inline-start: 0px;
  }
}
