@import "normalize.css";

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #183B59;
}

/*************** 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;
}

.eom-container {

}

/*************** Text wrapper ***************/

.text-wrapper {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.text-wrapper h1:not(:last-child),
.text-wrapper h2:not(:last-child),
.text-wrapper h3:not(:last-child) {
  margin-bottom: 16px;
}

.text-wrapper h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
}

.text-wrapper h5 {
  font-weight: 600;
  font-size: 18px;
}

.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-wrapper ul:not(:last-child) {
  margin-bottom: 12px;
}

.text-wrapper strong {
  font-weight: 600;
  font-size: 18px;
}

.text-wrapper ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 12px;
}

.text-wrapper ul li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #8BD74B;
}

.text-wrapper ul li:not(:last-child) {
  margin-bottom: 8px;
}

.text-wrapper_blue ul li::before {
  background-color: #3F8CFF;
}

.text-wrapper_orange ul li::before {
  background-color: #FF9432;
}

.text-wrapper a {
  color: #8BD74B;
}

.text-wrapper a:hover {
  text-decoration: none;
}

.text-wrapper_blue a {
  color: #3F8CFF;
}

.text-wrapper_orange a {
  color: #FF9432;
}

/*************** Card ***************/

.card *,
.card *::before,
.card *::after {
  box-sizing: border-box;
}

.card {
  position: relative;
  padding: 40px 64px;
  margin-bottom: 40px;
  border-top: 2px solid #8BD74B;
  border-radius: 0 0 24px 24px;
  background: #F2F2F2;
  color: #183B59;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.card-label {
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 40px;
  background: #8BD74B url("assets/icons/text.svg") 5px center no-repeat;
  border-bottom-right-radius: 16px;
}

.card-content {
  display: flex;
  justify-content: space-between;
}

.card-about {
  max-width: 800px;
}

.card-title {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
}

.card-image-wrapper {
  flex-shrink: 0;
  margin-left: 40px;
  width: 260px;
  padding: 30px 30px 0;
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.card_xl .card-image-wrapper {
  width: 300px;
}

.card_m .card-image-wrapper {
  width: 220px;
}

.card_s .card-image-wrapper {
  width: 180px;
}

.card_xs .card-image-wrapper {
  width: 160px;
}

.card_blue {
  border-color: #3F8CFF;
}

.card_blue .card-label,
.card_blue .text-wrapper ul li::before {
  background-color: #3F8CFF;
}

.card_blue .text-wrapper a {
  color: #3F8CFF;
}

.card_orange {
  border-color: #FF9432;
}

.card_orange .card-label,
.card_orange .text-wrapper ul li::before {
  background-color: #FF9432;
}

.card_orange .text-wrapper a {
  color: #FF9432;
}

/*************** Task Box ***************/

.task-box {
  position: relative;

  display: grid;
  gap: 40px;

  padding: 32px 32px 56px;
  background: #FFFFFF;

  box-shadow: 0 2px 12px rgba(121, 140, 157, 0.16);
  border-radius: 8px;
}

.task-box .badge {
  position: absolute;
  top: 0;
  left: 0;
}

/*************** 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;
}
.footer-eom-content {
  display: flex;
  gap: 32px;
}
.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;
}

/*************** 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: #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_blue {
  background: #3F8CFF;
}
.button_blue:hover {
  background: #0C6ED6;
}
.button_blue[disabled] {
  background: #CBE2FE;
}

.button_orange {
  background: #FF9432;
}
.button_orange:hover {
  background: #FF790B;
}
.button_orange[disabled] {
  background: #FFDEAD;
}

.button_secondary {
  border-color:currentColor;
  color: #8BD74B;
  background: transparent !important;
}
.button_secondary:hover {
  color: #1F5126;
}
.button_secondary[disabled] {
  color: #C7EFA5;
}

.button_secondary.button_blue {
  color: #3F8CFF;
}
.button_secondary.button_blue:hover {
  color: #07417E;
}
.button_secondary.button_blue[disabled] {
  color: #CBE2FE;
}

.button_secondary.button_orange {
  color: #FF9432;
}
.button_secondary.button_orange:hover {
  color: #FF790B;
}
.button_secondary.button_orange[disabled] {
  color: #FFDEAD;
}

/*************** Gradient Table Container ***************/

.gradient-table-container {
  display: grid;
  grid-template-columns: 510px auto;
  gap: 40px;
}

.gradient-table-container__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #183B59;
  margin: 0 0 16px;
}

/*************** Gradient Table ***************/

.gradient-table {
  border-spacing: 0;
  width: 100%;
  text-align: center;
  table-layout: fixed;
}


.gradient-table thead>tr {
  background: linear-gradient(90deg, #46B755 0%, #B0E881 100%);
}

.gradient-table th:not(:last-child):before {
  content: '';
  position: absolute;
  top: 24px;
  right: -1px;

  width: 1px;
  height: calc(100% - 48px);

  background: white;
}

.gradient-table tbody>tr:nth-child(odd) {
  background-color: #ECFCDE;
}

.gradient-table td {
  padding: 8px;
  border: 1px solid #8BD74B;
}

.gradient-table tr:last-child td {
  border-bottom-width: 2px;
}

.gradient-table>tbody>tr:first-child>td:first-child {
  border-top-left-radius: 8px;
}

.gradient-table>tbody>tr:first-child>td:last-child {
  border-top-right-radius: 8px;
}


.gradient-table td:first-child {
  border-left-width: 2px;
}

.gradient-table td:last-child {
  border-right-width: 2px;
}

.gradient-table>thead>tr:first-child>th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.gradient-table>thead>tr:first-child>th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.gradient-table>tbody>tr:last-child>td:first-child {
  border-bottom-left-radius: 8px;
}

.gradient-table>tbody>tr:last-child>td:last-child {
  border-bottom-right-radius: 8px;
}

tbody tr>td:first-child{
  width: 116px;
  box-sizing: border-box;
}

.gradient-table .draggable{
  height: 56px;
}

/*************** Numbered List ***************/

.numbered-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.numbered-list > li {
  position: relative;
  padding-left: 32px;
  line-height: 24px;
  margin: 8px 0;
  counter-increment: li-num;
}
.numbered-list > li .numbered-list > li {
  counter-reset: li-num;
}
.numbered-list > li::before {
  position: absolute;
  content: counters(li-num,'.');
  top: 0;
  left: 0;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  background: #8BD74B;
  border-radius: 0 0 16px 0;
  text-align: center;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #FFFFFF;
  box-sizing: border-box;
}


/*************** Droppable ***************/

.droppable {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 186px;
  min-height: 56px;
  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_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%);
  white-space: nowrap;
}
.droppable-placeholder:not(:last-child) {
  display: none;
}

/*************** Draggable ***************/

.draggable {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  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;
}

.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-ico_success,
.draggable-button_dismiss {
  margin-left: 12px;
}

.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: #183B59;
  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;
}

.dnd_blue .droppable {
  border-color: #3F8CFF;
  background: #EBF3FF;
  color: #86BCFC;
}
.dnd_blue .draggable::before {
  background: #3F8CFF;
}
.dnd_blue .draggable:not(.draggable_dragged):not(.draggable_missing):not(.draggable_disabled):not(.draggable_failure):hover::before {
  background: #0C6ED6;
}
.dnd_blue .draggable_dragged::before {
  background: #0C6ED6;
}
.dnd_blue .draggable_missing::before,
.dnd_blue .draggable_disabled::before {
  background: #86BCFC;
}
.dnd_blue .draggable_success {
  border-color: #3F8CFF;
}
.dnd_blue .draggable_success::before {
  background: #3F8CFF;
}
.dnd_blue .draggable-ico_success {
  color: #0C6ED6;
}

.dnd_orange .droppable {
  border-color: #FF9432;
  background: #FFEED6;
  color: #FFB546;
}
.dnd_orange .draggable::before {
  background: #FF9432;
}
.dnd_orange .draggable:not(.draggable_dragged):not(.draggable_missing):not(.draggable_disabled):not(.draggable_failure):hover::before {
  background: #FF790B;
}
.dnd_orange .draggable_dragged::before {
  background: #FF790B;
}
.dnd_orange .draggable_missing::before,
.dnd_orange .draggable_disabled::before {
  background: #FFB546;
}
.dnd_orange .draggable_success {
  border-color: #FCAC00;
}
.dnd_orange .draggable_success::before {
  background: #FCAC00;
}
.dnd_orange .draggable-ico_success {
  color: #FF790B;
}

/*************** 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(4, 1fr);
  align-content: flex-start;
  gap: 12px;
}

/*************** 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: #183B59;
  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);
}

.gradient-table .draggable-text{
  max-height: 40px;
  overflow-y: auto;
}

.gradient-table .draggable-text::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
}

.gradient-table .draggable-text::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #dee3e8;
  border: 2px solid #f8fcff;
}

.gradient-table .draggable-text::-webkit-scrollbar-thumb:hover {
  background-color: #caccce;
}

@media (max-width: 1400px) {
  .eom-body {
    max-width: 1140px;
  }

  .footer-eom-body-padding{
    height: 56px;
  }
}

@media (max-width: 1200px) {
  .eom-body {
    max-width: 992px;
  }

  .eom-wrapper {
    padding: 16px;
  }

  .eom-body {
    padding: 16px;
  }

  .card {
    padding: 40px 0 40px 24px;
    margin-bottom: 24px;
  }

  .card-image-wrapper {
    width: 180px;
    margin-left: 16px;
  }

  .card-about {
    padding-top: 8px;
  }

  .footer-eom-body-padding{
    display: none;
  }

  .footer-eom {
    padding: 16px;
    margin: 0 -16px -16px;
  }

  .dnd-cards-box {
    position: sticky;
    bottom: 81px;
    margin-top: 56px;
    margin-left: -16px;
    margin-right: -16px;
    border-top: 1px solid #DAE6F2;
    border-radius: unset;
    overflow-y: auto;
    max-height: 224px;
    box-sizing: border-box;
    background-color: #f8fcff;
  }

  .toast{
    right: 16px;
  }

  .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;
  }

  .task-box{
    padding: unset;
    box-shadow: unset;
    gap: 0;
  }

  .gradient-table-container{
    padding: 32px 32px 56px;
    box-shadow: 0 2px 12px rgb(121 140 157 / 16%);
    border-radius: 8px;
  }

  .gradient-table-container{
    grid-template-columns: 400px auto;
  }

  .card_m .card-image-wrapper{
    width: 180px;
  }

}

@media (max-width: 1024px) {
  .eom-body {
    max-width: 720px;
  }

  .footer-eom{
    position: relative;
  }

  .dnd-cards-box {
    max-height: 156px;
    bottom: 0;
  }

  .gradient-table-container{
    grid-template-columns: 280px auto;
    gap: 32px;
    padding: 24px 24px 56px;
  }

  .dnd-cards-box__cells{
    grid-template-columns: repeat(3, 1fr);
  }

  tbody tr>td:first-child{
    width: 100px;
  }

  .card_m .card-image-wrapper{
    width: 160px;
  }
}


/** 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;
  }
}
