@import "normalize.css";

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  margin: 0;
  padding: 0;
}

br {
  width: 0px;
  height: 0px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #3C3C3B;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/*************** Eom wrapper ***************/

.eom-wrapper {
  padding: 24px;
  background: #F8FCFF;
}

.eom-body {
  padding: 32px;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 8px 32px rgba(121, 140, 157, 0.12);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
}

/*************** Button ***************/
button {
  align-items: flex-start;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
  letter-spacing: inherit;
  word-spacing: inherit;
  text-transform: none;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  text-shadow: none;
  font: inherit;
  line-height: inherit;
}

.button {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  background: #8BD74B;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  transition: 0.2s ease-out;
  transition-property: background-color, color, border-color;
}

.button:hover {
  background: #46B755;
}

.button[disabled] {
  background-color: #C7EFA5;
  cursor: default;
}

.button-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-position: center center;
  background-repeat: no-repeat;
}

.button-ico_left {
  margin-right: 4px;
}

.button-ico_right {
  margin-left: 4px;
}

.button_secondary {
  border-color: currentColor;
  color: #8BD74B;
  background: transparent !important;
}

.button_secondary:hover {
  color: #1F5126;
}

.button_secondary.button_green[disabled] {
  color: #C7EFA5;
}

/*************** Card ***************/
.card *,
.card *::before,
.card *::after {
  box-sizing: border-box;
}

.card {
  position: relative;
  padding: 40px 94px 40px 64px;
  margin-bottom: 40px;
  border-top: 2px solid;
  border-radius: 0 0 24px 24px;
  background: #F2F2F2;
  color: #3C3C3B;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.card_green {
  border-color: #8BD74B;
}

.card-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 40px;
  background: url("assets/icons/card-label.svg") 9px 8px no-repeat;
  border-bottom-right-radius: 16px;
}

.card_green .card-label {
  background-color: #8BD74B;
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
}

.card-about {
  max-width: 800px;
}

.card-about ul {
  list-style-type: none;
}

.card-about li {
  position: relative;
  padding-left: 12px;
}

.card-about li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  display: block;
  width: 4px;
  height: 4px;
  background-color: #8BD74B;
  border-radius: 50%;
}

.card-title {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
}

.card-image-wrapper {
  flex-shrink: 0;
  max-width: 120px;
  margin-top: 30px;
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

[data-show='false'] {
  display: none;
}

[data-show='true'] {
  display: block;
}


/*************** Text wrapper ***************/

.text-wrapper {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.text-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-wrapper h4:not(:last-child),
.text-wrapper h5:not(:last-child),
.text-wrapper h6:not(:last-child),
.text-wrapper p:not(:last-child),
.text-list:not(:last-child) {
  margin-bottom: 12px;
}

.text-list li {
  position: relative;
  padding-left: 12px;
}

.text-list li:not(:first-child) {
  margin-top: 8px;
}

.text-list li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.text-list_xl li::before {
  width: 6px;
  height: 6px;
}

/*************** Droppable ***************/

.droppable {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  background: #ECFCDE;
  color: #8BD74B;
  transition: border-color 0.2s ease-out, color 0.2s ease-out;
  border: 1px dashed #8BD74B;
  box-sizing: border-box;
}

.droppable,
.droppable + .draggable {
  min-height: 104px;
}

.droppable_image,
.droppable_image + .draggable {
  min-width: 164px;
  min-height: 136px;
}

.droppable-area {
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-right: 0;
  padding-bottom: 0;
  min-height: 140px;
}

.droppable-area .draggable {
  margin-right: 12px;
  margin-bottom: 12px;
}
.droppable-area .draggable:last-child {
  margin-bottom: 68px;
}

.droppable.ui-droppable-hover {
  border-color: #46B755;
  color: #46B755;
}

.droppable-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transform: translate(-50%, -50%);
}
.droppable-placeholder:not(:last-child) {
  display: none;
}

/*************** Draggable ***************/

.draggable {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  height: 100%;
  padding: 16px  16px 16px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
  box-sizing: border-box;
  cursor: move;
  hyphens: none;
}

.draggable::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  bottom: -1px;
  width: 8px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  background: #8BD74B;
  transition: background-color 0.2s ease-out;
}

.draggable-ico_drag {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 20px;
  margin-right: 8px;
  background: url("assets/icons/drag-dots.svg") center center;
}

.draggable-button_dismiss {
  margin-left: 10px;
}

.draggable-ico_success {
  margin-left: 10px;
}

.draggable-ico_dismiss,
.draggable-ico_success {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.draggable-ico_success {
  color: #46B755;
}

.draggable-ico_dismiss {
  background: url("assets/icons/dismiss.svg");
}

.draggable-text {
  margin: 0 auto 0 0;
  text-align: left;
  color: #3C3C3B;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.draggable-image {
  width: 96px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
}

.droppable + .draggable:not(.draggable_success) .draggable-image {
  width: 68px;
}

.draggable:not(.draggable_dragged):not(.draggable_missing):not(.draggable_disabled):not(.draggable_failure):hover::before {
  background: #46B755;
}

.draggable_dragged {
  box-shadow: 0 8px 32px rgba(121, 140, 157, 0.12);
}

.draggable_dragged::before {
  background: #46B755;
;
}

.draggable_missing .draggable-button_dismiss,
.draggable_dragged .draggable-button_dismiss {
  opacity: 0;
}

.draggable_success,
.draggable_missing,
.draggable_disabled {
  cursor: auto;
  box-shadow: none;
}

.draggable_missing::before,
.draggable_disabled::before {
  background: #B0E881;
  transition: none;
}

.draggable_success .draggable-ico_drag,
.draggable_missing .draggable-ico_drag,
.draggable_disabled .draggable-ico_drag {
  display: none;
}
.draggable_disabled:not(.draggable_success):not(.draggable_failure),
.draggable_missing {
  padding-right: 48px;
}

.draggable_missing .draggable-text,
.draggable_disabled:not(.draggable_success) .draggable-text {
  color: #798C9D;
}

.draggable_missing .draggable-image,
.draggable_disabled:not(.draggable_success) .draggable-image {
  opacity: 0.5;
}

.draggable_success {
  border-color: #46B755;
}

.draggable_success::before {
  background: #46B755;
}

.draggable_failure {
  border-color: #FF564E !important;
}

.draggable_failure::before {
  background: #FF564E !important;
}

/*************** Drag and Drop Cards Box ***************/

.dnd-cards-box {
  display: grid;
  align-content: flex-start;
  gap: 24px;

  padding: 24px;
  background: #F8FCFF;
  border-radius: 8px;
}

.dnd-cards-box__title {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.dnd-cards-box__cells {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: flex-start;
  gap: 12px;
}

/*************** Task ***************/

.task-box {
  padding: 32px 32px 56px;
  background: #FFFFFF;
  box-shadow: 0px 2px 12px rgba(121, 140, 157, 0.16);
  border-radius: 8px;
}

.task-content {
  margin-bottom: 40px;
}

.task_completed {
  pointer-events: none;
  user-select: none;
}

/*************** Construction card ***************/

.construction-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border: 1px solid #EBF4FD;
  box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
  border-radius: 8px;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  background: #FFFFFF;
}

.construction-card_sm {
  padding: 12px;
}

.construction-card-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}
.construction-card-title:not(:last-child) {
  margin-bottom: 8px;
}

.construction-card-text {
  margin: 0;
}

/*************** Scheme ***************/
.grid {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--schema-gap-row) var(--schema-gap-column)
}
.grid .g-col-1 {
  grid-column: auto/span 1
}
.grid .g-col-2 {
  grid-column: auto/span 2
}
.grid .g-col-3 {
  grid-column: auto/span 3
}
.grid .g-col-4 {
  grid-column: auto/span 4
}
.grid .g-col-5 {
  grid-column: auto/span 5
}
.grid .g-col-6 {
  grid-column: auto/span 6
}
.grid .g-col-7 {
  grid-column: auto/span 7
}
.grid .g-col-8 {
  grid-column: auto/span 8
}
.grid .g-col-9 {
  grid-column: auto/span 9
}
.grid .g-col-10 {
  grid-column: auto/span 10
}
.grid .g-col-11 {
  grid-column: auto/span 11
}
.grid .g-col-12 {
  grid-column: auto/span 12
}

.grid .g-start-1 {
  grid-column-start: 1
}
.grid .g-start-2 {
  grid-column-start: 2
}
.grid .g-start-3 {
  grid-column-start: 3
}
.grid .g-start-4 {
  grid-column-start: 4
}
.grid .g-start-5 {
  grid-column-start: 5
}
.grid .g-start-6 {
  grid-column-start: 6
}
.grid .g-start-7 {
  grid-column-start: 7
}
.grid .g-start-8 {
  grid-column-start: 8
}
.grid .g-start-9 {
  grid-column-start: 9
}
.grid .g-start-10 {
  grid-column-start: 10
}
.grid .g-start-11 {
  grid-column-start: 11
}

.scheme-wrapper + div {
  height: 100%;
}

.scheme *,
.scheme *::before,
.scheme *::after {
  box-sizing: border-box;
}

.scheme {
  --schema-gap-row: 40px;
  --schema-gap-column: 24px;
}

.scheme-block {
  position: relative;
  width: 100%;
}

.scheme-wrapper {
  position: relative;
}

.scheme-block-line {
  position: absolute;
  top: calc((var(--schema-gap-row) - 8px) * -1);
  left: 50%;
  height: calc(var(--schema-gap-row) - 16px);
  width: 14px;
  background: url("assets/icons/chevron-down.svg") center bottom no-repeat;
  transform: translateX(-50%);
}
.scheme-block-line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 1px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #DAE6F2;
}

/*************** Toast ***************/

.toast {
  display: inline-flex;
  position: absolute;
  top: 8px;
  right: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
  color: #3C3C3B;
  background: #FFFFFF;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  transform: translateY(-100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.toast_show {
  opacity: 1;
}

.toast-ico {
  position: absolute;
  top: -1px;
  left: -1px;
  bottom: -1px;
  width: 48px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  background-position: center center;
  background-repeat: no-repeat;
}

.toast-message {
  margin: 0;
  padding: 12px 16px 12px 64px;
}

.toast_success {
  border-color: #46B755;
}
.toast_success .toast-ico {
  background-color: #46B755;
  background-image: url(assets/icons/push-check.svg);
}

.toast_error {
  border-color: #FF564E;
}
.toast_error .toast-ico {
  background-color: #FF564E;
  background-image: url(assets/icons/push-error.svg);
}

.toast_warning {
  border-color: #FCAC00;
}
.toast_warning .toast-ico {
  background-color: #FCAC00;
  background-image: url(assets/icons/push-warning.svg);
}

/*************** Footer eom ***************/

.footer-eom-body-padding {
  height: 80px;
}

.footer-eom {
  position: sticky;
  bottom: 0;
  margin: 0 -32px -32px;
  padding: 16px 32px;
  border-top: 1px solid #EBF4FD;
  background: #FFFFFF;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
}

.footer-eom-content {
  display: flex;
  gap: 32px;
}

.footer-eom-content.disabled {
  display: none;
}

.footer-buttons {
  display: flex;
  align-items: center;

}

.footer-buttons:first-child,
.footer-pagination {
  flex-basis: 0;
  flex-grow: 1;
}

.footer-buttons:first-child:last-child {
  flex-grow: 0;
  margin-left: auto;
}

.footer-buttons .button:not(:first-child) {
  margin-left: 16px;
}

.footer-buttons {
  justify-content: flex-end;
}

/*************** Pagination ***************/

.pagination {
  display: flex;
  align-items: center;
}

.pagination-dots {
  display: flex;
  align-items: center;
}

.pagination-dot {
  margin: 0 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #DEE3E8;
  transition: background 0.15s ease-out;
}

.footer-eom_green .pagination-dot_active {
  background: #8BD74B;
}

/*************** Pages ***************/

.page {
  display: none;
}

.page_active {
  display: block;
}

.page-inner-hidden {
  display: none;
}

.page-outer {
  display: none;
}

.page-outer_active {
  display: block;
}

/*************** Response ***************/

@media (max-width: 1400px) {
  .eom-body {
    max-width: 1140px;
  }
}

@media (max-width: 1200px) {
  .eom-body {
    max-width: 992px;
  }

  .eom-wrapper {
    padding: 16px;
  }

  .eom-body {
    padding: 16px;
  }

  .eom-container {
    max-width: 100%;
  }

  .card {
    padding: 48px 24px 40px 24px;
    margin-bottom: 24px;
  }

  .card-image-wrapper {
    margin-top: 30px;
  }

  .card-content {
    gap: 46px;
  }

  .task-box {
    padding: 0;
    box-shadow: none;
    border-radius: 0px;
  }

  .task-content {
    padding: 32px 32px 56px;
    margin-bottom: 0px;
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgb(121 140 157 / 12%);
    border-radius: 8px;
  }

  .scheme {
    --schema-gap-column: 8px;
  }

  .toast {
    right: 16px;
  }

  .dnd-cards-box {
    flex: 100%;
    position: sticky;
    bottom: 81px;
    margin-top: 56px;
    margin-right: -16px;
    margin-left: -16px;
    margin-bottom: 0;
    border-top: 1px solid #DAE6F2;
    border-radius: unset;
    overflow-y: auto;
    max-height: 224px;
    box-sizing: border-box;
    width: auto;
    background: rgb(248, 252, 255);
    z-index: 999;
  }

  .dnd-cards-box::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8px;
  }

  .dnd-cards-box::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #dee3e8;
    border: 2px solid #f8fcff;
  }

  .dnd-cards-box::-webkit-scrollbar-thumb:hover {
    background-color: #caccce;
  }

  .footer-eom {
    padding: 16px;
    margin: 0 -16px -16px;
  }

  .footer-eom-body-padding {
    height: 56px;
  }

  .footer-eom-body-padding.hide {
    display: none;
  }

  .draggable {
    z-index: 999;
  }
}

@media (max-width: 1024px) {
  .eom-body {
    max-width: 720px;
  }

  .card-image-wrapper {
    max-width: 100px;
    margin-top: 4px;
  }

  .task-content {
    padding: 24px 16px 56px;
  }

  .dnd-cards-box {
    max-height: 156px;
    bottom: 0;
  }

  .draggable {
    padding-right: 12px;
    padding-left: 16px;
    hyphens: auto;
  }

  .draggable-button_dismiss {
    margin-left: auto;
  }

  .footer-eom {
    position: relative;
  }
}


/** Adaptive Overlay **/

.adaptive-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background-color: #ffffff;
}

.adaptive-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 408px;
  height: 270px;
}

.adaptive-overlay-content p {
  text-align: center;
  font-family: 'Inter';
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #183b59;
  margin-top: 24px;
}

@media (min-width: 844px) {
  .adaptive-overlay {
    display: none;
  }
}

@media (max-width: 843px) {
  body {
    overflow: hidden;
  }
}
